konoha-mcp 2.2.22 → 2.2.24

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 (1306) hide show
  1. package/NOTICE +104 -0
  2. package/README.md +177 -67
  3. package/apps/web/build/adapter-node.js +1 -1
  4. package/apps/web/build/build-meta.json +2 -2
  5. package/apps/web/build/client/_app/immutable/chunks/{KBylTpfW.js → DuefosH7.js} +1 -1
  6. package/apps/web/build/client/_app/immutable/chunks/DuefosH7.js.br +0 -0
  7. package/apps/web/build/client/_app/immutable/chunks/DuefosH7.js.gz +0 -0
  8. package/apps/web/build/client/_app/immutable/entry/{app.0Q5KqVd9.js → app.CKJ0NhrX.js} +2 -2
  9. package/apps/web/build/client/_app/immutable/entry/app.CKJ0NhrX.js.br +0 -0
  10. package/apps/web/build/client/_app/immutable/entry/app.CKJ0NhrX.js.gz +0 -0
  11. package/apps/web/build/client/_app/immutable/nodes/{0.BBjv3DpA.js → 0.7A6fQJ6z.js} +2 -2
  12. package/apps/web/build/client/_app/immutable/nodes/0.7A6fQJ6z.js.br +0 -0
  13. package/apps/web/build/client/_app/immutable/nodes/0.7A6fQJ6z.js.gz +0 -0
  14. package/apps/web/build/client/_app/immutable/nodes/{10.C2BZpDrE.js → 10.pUzjqr5I.js} +1 -1
  15. package/apps/web/build/client/_app/immutable/nodes/10.pUzjqr5I.js.br +0 -0
  16. package/apps/web/build/client/_app/immutable/nodes/10.pUzjqr5I.js.gz +0 -0
  17. package/apps/web/build/client/_app/immutable/nodes/{13.TOXVaTBr.js → 13.CQB_Ed6W.js} +1 -1
  18. package/apps/web/build/client/_app/immutable/nodes/13.CQB_Ed6W.js.br +0 -0
  19. package/apps/web/build/client/_app/immutable/nodes/{13.TOXVaTBr.js.gz → 13.CQB_Ed6W.js.gz} +0 -0
  20. package/apps/web/build/client/_app/immutable/nodes/{15.CMNaNfOv.js → 15.DEjD1oQx.js} +1 -1
  21. package/apps/web/build/client/_app/immutable/nodes/15.DEjD1oQx.js.br +0 -0
  22. package/apps/web/build/client/_app/immutable/nodes/15.DEjD1oQx.js.gz +0 -0
  23. package/apps/web/build/client/_app/immutable/nodes/{18.7_RnsyKC.js → 18.B2MI4v6y.js} +1 -1
  24. package/apps/web/build/client/_app/immutable/nodes/18.B2MI4v6y.js.br +0 -0
  25. package/apps/web/build/client/_app/immutable/nodes/18.B2MI4v6y.js.gz +0 -0
  26. package/apps/web/build/client/_app/immutable/nodes/{19.DzAZW6W8.js → 19.C_JGeqWp.js} +1 -1
  27. package/apps/web/build/client/_app/immutable/nodes/19.C_JGeqWp.js.br +0 -0
  28. package/apps/web/build/client/_app/immutable/nodes/19.C_JGeqWp.js.gz +0 -0
  29. package/apps/web/build/client/_app/immutable/nodes/{21.CR6wcqUw.js → 21.CeKhuazg.js} +1 -1
  30. package/apps/web/build/client/_app/immutable/nodes/21.CeKhuazg.js.br +0 -0
  31. package/apps/web/build/client/_app/immutable/nodes/21.CeKhuazg.js.gz +0 -0
  32. package/apps/web/build/client/_app/immutable/nodes/{22.DhDmRYyH.js → 22.CzJx13s1.js} +1 -1
  33. package/apps/web/build/client/_app/immutable/nodes/22.CzJx13s1.js.br +0 -0
  34. package/apps/web/build/client/_app/immutable/nodes/22.CzJx13s1.js.gz +0 -0
  35. package/apps/web/build/client/_app/immutable/nodes/{6.CfCYXJnn.js → 6.zt71o8ra.js} +1 -1
  36. package/apps/web/build/client/_app/immutable/nodes/6.zt71o8ra.js.br +0 -0
  37. package/apps/web/build/client/_app/immutable/nodes/6.zt71o8ra.js.gz +0 -0
  38. package/apps/web/build/client/_app/immutable/nodes/{7.D5JiaRhL.js → 7.C7IkuqU1.js} +1 -1
  39. package/apps/web/build/client/_app/immutable/nodes/7.C7IkuqU1.js.br +0 -0
  40. package/apps/web/build/client/_app/immutable/nodes/7.C7IkuqU1.js.gz +0 -0
  41. package/apps/web/build/client/_app/immutable/nodes/{8.DOWGEBtB.js → 8.B1uJLAFx.js} +1 -1
  42. package/apps/web/build/client/_app/immutable/nodes/8.B1uJLAFx.js.br +0 -0
  43. package/apps/web/build/client/_app/immutable/nodes/8.B1uJLAFx.js.gz +0 -0
  44. package/apps/web/build/client/_app/version.json +1 -1
  45. package/apps/web/build/client/_app/version.json.br +0 -0
  46. package/apps/web/build/client/_app/version.json.gz +0 -0
  47. package/apps/web/build/server/chunks/dialog.svelte.js +0 -21
  48. package/apps/web/build/server/chunks/dialog.svelte.js.map +1 -1
  49. package/apps/web/build/server/chunks/instance.js +3 -3
  50. package/apps/web/build/server/chunks/internal.js +1 -1
  51. package/apps/web/build/server/entries/pages/_layout.svelte.js +1 -1
  52. package/apps/web/build/server/entries/pages/_layout.svelte.js.map +1 -1
  53. package/apps/web/build/server/entries/pages/docs/_page.svelte.js +1 -1
  54. package/apps/web/build/server/entries/pages/docs/_page.svelte.js.map +1 -1
  55. package/apps/web/build/server/manifest-full.js +1 -1
  56. package/apps/web/build/server/manifest.js +1 -1
  57. package/apps/web/build/server/nodes/0.js +1 -1
  58. package/apps/web/build/server/nodes/10.js +1 -1
  59. package/apps/web/build/server/nodes/13.js +1 -1
  60. package/apps/web/build/server/nodes/15.js +1 -1
  61. package/apps/web/build/server/nodes/18.js +1 -1
  62. package/apps/web/build/server/nodes/19.js +1 -1
  63. package/apps/web/build/server/nodes/21.js +1 -1
  64. package/apps/web/build/server/nodes/22.js +1 -1
  65. package/apps/web/build/server/nodes/6.js +1 -1
  66. package/apps/web/build/server/nodes/7.js +1 -1
  67. package/apps/web/build/server/nodes/8.js +1 -1
  68. package/apps/web/build/server/server.js +1 -1
  69. package/apps/web/package.json +1 -1
  70. package/assets/konoha-flow-19-guardrail-denial-human-in-the-loop-resolution.webp +0 -0
  71. package/assets/konoha-qa-flow.webp +0 -0
  72. package/bin/cli.js +0 -5
  73. package/bin/commands/bridge.js +62 -4
  74. package/bin/commands/doctor.js +2 -0
  75. package/bin/commands/doctor_services.js +57 -0
  76. package/bin/commands/help.js +0 -1
  77. package/bin/commands/init.js +16 -5
  78. package/bin/commands/init_clients.js +95 -8
  79. package/bin/lib/config_defaults.js +3 -0
  80. package/bin/lib/format.js +1 -1
  81. package/bin/lib/runtime_install.js +141 -54
  82. package/node_modules/jszip/package.json +0 -4
  83. package/node_modules/xlsx-populate/lib/AppProperties.js +1 -1
  84. package/node_modules/xlsx-populate/lib/ArgHandler.js +1 -1
  85. package/node_modules/xlsx-populate/lib/Cell.js +1 -1
  86. package/node_modules/xlsx-populate/lib/ContentTypes.js +1 -1
  87. package/node_modules/xlsx-populate/lib/Encryptor.js +1 -1
  88. package/node_modules/xlsx-populate/lib/FormulaError.js +1 -1
  89. package/node_modules/xlsx-populate/lib/Relationships.js +1 -1
  90. package/node_modules/xlsx-populate/lib/RichText.js +1 -1
  91. package/node_modules/xlsx-populate/lib/RichTextFragment.js +1 -1
  92. package/node_modules/xlsx-populate/lib/Row.js +1 -1
  93. package/node_modules/xlsx-populate/lib/SharedStrings.js +1 -1
  94. package/node_modules/xlsx-populate/lib/Sheet.js +1 -1
  95. package/node_modules/xlsx-populate/lib/Style.js +1 -1
  96. package/node_modules/xlsx-populate/lib/StyleSheet.js +1 -1
  97. package/node_modules/xlsx-populate/lib/Workbook.js +1 -1
  98. package/node_modules/xlsx-populate/lib/XmlBuilder.js +1 -1
  99. package/node_modules/xlsx-populate/lib/addressConverter.js +1 -1
  100. package/node_modules/xlsx-populate/lib/lodash-lite.js +316 -0
  101. package/node_modules/xlsx-populate/lib/regexify.js +1 -1
  102. package/node_modules/xlsx-populate/lib/xmlq.js +1 -1
  103. package/node_modules/xlsx-populate/package.json +0 -4
  104. package/package.json +8 -6
  105. package/patches/gpt-tokenizer@4.1.0.patch +15 -0
  106. package/patches/jszip@3.10.2.patch +21 -0
  107. package/patches/picomatch@4.0.7.patch +18 -0
  108. package/patches/pptxgenjs@4.0.1.patch +7 -1
  109. package/patches/xlsx-populate@1.21.0.patch +627 -0
  110. package/src/agent_contract.js +21 -8
  111. package/src/agent_deployer.js +48 -35
  112. package/src/agent_file_safety.js +68 -0
  113. package/src/bridge/gateway.js +2 -0
  114. package/src/bridge/gateway_adapters.js +155 -29
  115. package/src/bridge/handlers/anthropic.js +95 -26
  116. package/src/bridge/handlers/openai.js +18 -5
  117. package/src/bridge/sidecar/raw.js +10 -2
  118. package/src/bridge/stream_usage.js +66 -0
  119. package/src/client_commands.js +190 -0
  120. package/src/code_intel/auto_index.js +158 -0
  121. package/src/code_intel/genin_retrieval.js +2 -0
  122. package/src/code_intel/indexer.js +48 -33
  123. package/src/code_intel/lsp_manager.js +16 -1
  124. package/src/code_intel/query.js +17 -34
  125. package/src/code_intel/related.js +19 -3
  126. package/src/code_intel/search_setup.js +69 -0
  127. package/src/code_intel/tools.js +23 -0
  128. package/src/code_intel/walker.js +27 -20
  129. package/src/cursor_bootstrap.js +1 -1
  130. package/src/db_bridges.js +53 -7
  131. package/src/db_recovery.js +9 -2
  132. package/src/db_recovery_salvage.js +149 -14
  133. package/src/db_schema.js +11 -2
  134. package/src/db_schema_repairs.js +1 -1
  135. package/src/embed_diagnostics.js +11 -9
  136. package/src/file_tools_mcp.js +17 -9
  137. package/src/global_skill_sync.js +3 -1
  138. package/src/guardrail_exceptions.js +160 -0
  139. package/src/guardrail_hitl.js +241 -0
  140. package/src/mcp/client_detection.js +29 -0
  141. package/src/mcp/langgraph/edges/router.js +3 -0
  142. package/src/mcp/langgraph/index.js +22 -3
  143. package/src/mcp/langgraph/nodes/dispatch.js +3 -12
  144. package/src/mcp/langgraph/nodes/execute.js +92 -16
  145. package/src/mcp/langgraph/nodes/review.js +59 -32
  146. package/src/mcp/langgraph/slice_executor_registry.js +22 -0
  147. package/src/mcp/langgraph/state.js +5 -0
  148. package/src/mcp/lazy_subagent.js +53 -11
  149. package/src/mcp/memory_project_context.js +110 -36
  150. package/src/mcp/memory_reporting.js +2 -0
  151. package/src/mcp/memory_subagent_runner.js +51 -22
  152. package/src/mcp/project_context_prompt.js +3 -1
  153. package/src/mcp/protocol.js +4 -1
  154. package/src/mcp/sannin_router.js +4 -1
  155. package/src/mcp/shared_context.js +171 -0
  156. package/src/mcp/skills_common.js +1 -0
  157. package/src/mcp/skills_retrieval.js +33 -11
  158. package/src/mcp/structured_judgment.js +172 -0
  159. package/src/mcp/subagent_spawner.js +175 -21
  160. package/src/mcp/todo_walkthrough_sync.js +7 -0
  161. package/src/mcp/tool_dispatch.js +46 -12
  162. package/src/mcp/workflow_completion_helpers.js +6 -1
  163. package/src/mcp/workflow_gates.js +118 -5
  164. package/src/mcp/workflow_sannin.js +128 -76
  165. package/src/mcp/workflow_sannin_dispatch.js +3 -1
  166. package/src/mcp_clients/claude_code_hooks.js +2 -3
  167. package/src/mcp_clients/command_code.js +2 -3
  168. package/src/mcp_tool_manifest.json +6 -14
  169. package/src/memory_brain.js +13 -0
  170. package/src/memory_brain_lifecycle.js +1 -1
  171. package/src/omp_manager.js +29 -19
  172. package/src/pi_blocker_template.js +2 -4
  173. package/src/pi_manager.js +5 -5
  174. package/src/project_konoha_mcp_guardrail.js +115 -0
  175. package/src/provider_usage_logger.js +92 -0
  176. package/src/schema_ddl.js +17 -1
  177. package/src/skill_manager.js +3 -0
  178. package/src/templates/.aislop/config.yml +3 -3
  179. package/src/templates/AGENTS.md +1 -1
  180. package/src/templates/GEMINI.md +1 -1
  181. package/src/templates/skills/anbu-skill/SKILL.md +1 -4
  182. package/src/templates/skills/anbu-skill/references/qa-automation.md +4 -4
  183. package/src/templates/skills/jonin-skill/SKILL.md +1 -1
  184. package/src/templates/skills/kage-skill/SKILL.md +1 -1
  185. package/src/templates/skills/konoha/SKILL.md +24 -122
  186. package/src/templates/skills/konoha/references/contract.md +2 -2
  187. package/src/templates/skills/konoha/references/mcp-tools-block.md +5 -0
  188. package/src/templates/skills/konoha/references/peragent-usage.md +15 -1
  189. package/src/token_usage.js +57 -0
  190. package/src/tools_savings_logger.js +26 -8
  191. package/src/web/controllers/activity_controller.js +1 -7
  192. package/src/web/controllers/core_controller.js +10 -1
  193. package/src/web/controllers/skills_controller.js +27 -3
  194. package/src/workflow/jonin-builder/live_browser_monitor.js +26 -50
  195. package/src/workflow/kage-reviewer/advisor_monitor.js +67 -2
  196. package/src/workflow/kage-reviewer/advisor_steering.js +52 -8
  197. package/src/workflow/qa-automation/qa_tools.js +13 -35
  198. package/src/workflow/tokubetsu-scribe/doc_engine_animation.js +19 -1
  199. package/src/workflow/tokubetsu-scribe/doc_engine_presentation.js +16 -2
  200. package/src/workflow/tokubetsu-scribe/doc_engine_spreadsheet.js +10 -1
  201. package/apps/web/build/client/_app/immutable/chunks/KBylTpfW.js.br +0 -0
  202. package/apps/web/build/client/_app/immutable/chunks/KBylTpfW.js.gz +0 -0
  203. package/apps/web/build/client/_app/immutable/entry/app.0Q5KqVd9.js.br +0 -0
  204. package/apps/web/build/client/_app/immutable/entry/app.0Q5KqVd9.js.gz +0 -0
  205. package/apps/web/build/client/_app/immutable/nodes/0.BBjv3DpA.js.br +0 -0
  206. package/apps/web/build/client/_app/immutable/nodes/0.BBjv3DpA.js.gz +0 -0
  207. package/apps/web/build/client/_app/immutable/nodes/10.C2BZpDrE.js.br +0 -0
  208. package/apps/web/build/client/_app/immutable/nodes/10.C2BZpDrE.js.gz +0 -0
  209. package/apps/web/build/client/_app/immutable/nodes/13.TOXVaTBr.js.br +0 -0
  210. package/apps/web/build/client/_app/immutable/nodes/15.CMNaNfOv.js.br +0 -0
  211. package/apps/web/build/client/_app/immutable/nodes/15.CMNaNfOv.js.gz +0 -0
  212. package/apps/web/build/client/_app/immutable/nodes/18.7_RnsyKC.js.br +0 -0
  213. package/apps/web/build/client/_app/immutable/nodes/18.7_RnsyKC.js.gz +0 -0
  214. package/apps/web/build/client/_app/immutable/nodes/19.DzAZW6W8.js.br +0 -0
  215. package/apps/web/build/client/_app/immutable/nodes/19.DzAZW6W8.js.gz +0 -0
  216. package/apps/web/build/client/_app/immutable/nodes/21.CR6wcqUw.js.br +0 -0
  217. package/apps/web/build/client/_app/immutable/nodes/21.CR6wcqUw.js.gz +0 -0
  218. package/apps/web/build/client/_app/immutable/nodes/22.DhDmRYyH.js.br +0 -0
  219. package/apps/web/build/client/_app/immutable/nodes/22.DhDmRYyH.js.gz +0 -0
  220. package/apps/web/build/client/_app/immutable/nodes/6.CfCYXJnn.js.br +0 -0
  221. package/apps/web/build/client/_app/immutable/nodes/6.CfCYXJnn.js.gz +0 -0
  222. package/apps/web/build/client/_app/immutable/nodes/7.D5JiaRhL.js.br +0 -0
  223. package/apps/web/build/client/_app/immutable/nodes/7.D5JiaRhL.js.gz +0 -0
  224. package/apps/web/build/client/_app/immutable/nodes/8.DOWGEBtB.js.br +0 -0
  225. package/apps/web/build/client/_app/immutable/nodes/8.DOWGEBtB.js.gz +0 -0
  226. package/bin/commands/browser.js +0 -147
  227. package/node_modules/jszip/dist/jszip.js +0 -11586
  228. package/node_modules/jszip/dist/jszip.min.js +0 -13
  229. package/node_modules/lodash/LICENSE +0 -47
  230. package/node_modules/lodash/README.md +0 -39
  231. package/node_modules/lodash/_DataView.js +0 -7
  232. package/node_modules/lodash/_Hash.js +0 -32
  233. package/node_modules/lodash/_LazyWrapper.js +0 -28
  234. package/node_modules/lodash/_ListCache.js +0 -32
  235. package/node_modules/lodash/_LodashWrapper.js +0 -22
  236. package/node_modules/lodash/_Map.js +0 -7
  237. package/node_modules/lodash/_MapCache.js +0 -32
  238. package/node_modules/lodash/_Promise.js +0 -7
  239. package/node_modules/lodash/_Set.js +0 -7
  240. package/node_modules/lodash/_SetCache.js +0 -27
  241. package/node_modules/lodash/_Stack.js +0 -27
  242. package/node_modules/lodash/_Symbol.js +0 -6
  243. package/node_modules/lodash/_Uint8Array.js +0 -6
  244. package/node_modules/lodash/_WeakMap.js +0 -7
  245. package/node_modules/lodash/_apply.js +0 -21
  246. package/node_modules/lodash/_arrayAggregator.js +0 -22
  247. package/node_modules/lodash/_arrayEach.js +0 -22
  248. package/node_modules/lodash/_arrayEachRight.js +0 -21
  249. package/node_modules/lodash/_arrayEvery.js +0 -23
  250. package/node_modules/lodash/_arrayFilter.js +0 -25
  251. package/node_modules/lodash/_arrayIncludes.js +0 -17
  252. package/node_modules/lodash/_arrayIncludesWith.js +0 -22
  253. package/node_modules/lodash/_arrayLikeKeys.js +0 -49
  254. package/node_modules/lodash/_arrayMap.js +0 -21
  255. package/node_modules/lodash/_arrayPush.js +0 -20
  256. package/node_modules/lodash/_arrayReduce.js +0 -26
  257. package/node_modules/lodash/_arrayReduceRight.js +0 -24
  258. package/node_modules/lodash/_arraySample.js +0 -15
  259. package/node_modules/lodash/_arraySampleSize.js +0 -17
  260. package/node_modules/lodash/_arrayShuffle.js +0 -15
  261. package/node_modules/lodash/_arraySome.js +0 -23
  262. package/node_modules/lodash/_asciiSize.js +0 -12
  263. package/node_modules/lodash/_asciiToArray.js +0 -12
  264. package/node_modules/lodash/_asciiWords.js +0 -15
  265. package/node_modules/lodash/_assignMergeValue.js +0 -20
  266. package/node_modules/lodash/_assignValue.js +0 -28
  267. package/node_modules/lodash/_assocIndexOf.js +0 -21
  268. package/node_modules/lodash/_baseAggregator.js +0 -21
  269. package/node_modules/lodash/_baseAssign.js +0 -17
  270. package/node_modules/lodash/_baseAssignIn.js +0 -17
  271. package/node_modules/lodash/_baseAssignValue.js +0 -25
  272. package/node_modules/lodash/_baseAt.js +0 -23
  273. package/node_modules/lodash/_baseClamp.js +0 -22
  274. package/node_modules/lodash/_baseClone.js +0 -166
  275. package/node_modules/lodash/_baseConforms.js +0 -18
  276. package/node_modules/lodash/_baseConformsTo.js +0 -27
  277. package/node_modules/lodash/_baseCreate.js +0 -30
  278. package/node_modules/lodash/_baseDelay.js +0 -21
  279. package/node_modules/lodash/_baseDifference.js +0 -67
  280. package/node_modules/lodash/_baseEach.js +0 -14
  281. package/node_modules/lodash/_baseEachRight.js +0 -14
  282. package/node_modules/lodash/_baseEvery.js +0 -21
  283. package/node_modules/lodash/_baseExtremum.js +0 -32
  284. package/node_modules/lodash/_baseFill.js +0 -32
  285. package/node_modules/lodash/_baseFilter.js +0 -21
  286. package/node_modules/lodash/_baseFindIndex.js +0 -24
  287. package/node_modules/lodash/_baseFindKey.js +0 -23
  288. package/node_modules/lodash/_baseFlatten.js +0 -38
  289. package/node_modules/lodash/_baseFor.js +0 -16
  290. package/node_modules/lodash/_baseForOwn.js +0 -16
  291. package/node_modules/lodash/_baseForOwnRight.js +0 -16
  292. package/node_modules/lodash/_baseForRight.js +0 -15
  293. package/node_modules/lodash/_baseFunctions.js +0 -19
  294. package/node_modules/lodash/_baseGet.js +0 -24
  295. package/node_modules/lodash/_baseGetAllKeys.js +0 -20
  296. package/node_modules/lodash/_baseGetTag.js +0 -28
  297. package/node_modules/lodash/_baseGt.js +0 -14
  298. package/node_modules/lodash/_baseHas.js +0 -19
  299. package/node_modules/lodash/_baseHasIn.js +0 -13
  300. package/node_modules/lodash/_baseInRange.js +0 -18
  301. package/node_modules/lodash/_baseIndexOf.js +0 -20
  302. package/node_modules/lodash/_baseIndexOfWith.js +0 -23
  303. package/node_modules/lodash/_baseIntersection.js +0 -74
  304. package/node_modules/lodash/_baseInverter.js +0 -21
  305. package/node_modules/lodash/_baseInvoke.js +0 -24
  306. package/node_modules/lodash/_baseIsArguments.js +0 -18
  307. package/node_modules/lodash/_baseIsArrayBuffer.js +0 -17
  308. package/node_modules/lodash/_baseIsDate.js +0 -18
  309. package/node_modules/lodash/_baseIsEqual.js +0 -28
  310. package/node_modules/lodash/_baseIsEqualDeep.js +0 -83
  311. package/node_modules/lodash/_baseIsMap.js +0 -18
  312. package/node_modules/lodash/_baseIsMatch.js +0 -62
  313. package/node_modules/lodash/_baseIsNaN.js +0 -12
  314. package/node_modules/lodash/_baseIsNative.js +0 -47
  315. package/node_modules/lodash/_baseIsRegExp.js +0 -18
  316. package/node_modules/lodash/_baseIsSet.js +0 -18
  317. package/node_modules/lodash/_baseIsTypedArray.js +0 -60
  318. package/node_modules/lodash/_baseIteratee.js +0 -31
  319. package/node_modules/lodash/_baseKeys.js +0 -30
  320. package/node_modules/lodash/_baseKeysIn.js +0 -33
  321. package/node_modules/lodash/_baseLodash.js +0 -10
  322. package/node_modules/lodash/_baseLt.js +0 -14
  323. package/node_modules/lodash/_baseMap.js +0 -22
  324. package/node_modules/lodash/_baseMatches.js +0 -22
  325. package/node_modules/lodash/_baseMatchesProperty.js +0 -33
  326. package/node_modules/lodash/_baseMean.js +0 -20
  327. package/node_modules/lodash/_baseMerge.js +0 -42
  328. package/node_modules/lodash/_baseMergeDeep.js +0 -94
  329. package/node_modules/lodash/_baseNth.js +0 -20
  330. package/node_modules/lodash/_baseOrderBy.js +0 -49
  331. package/node_modules/lodash/_basePick.js +0 -19
  332. package/node_modules/lodash/_basePickBy.js +0 -30
  333. package/node_modules/lodash/_baseProperty.js +0 -14
  334. package/node_modules/lodash/_basePropertyDeep.js +0 -16
  335. package/node_modules/lodash/_basePropertyOf.js +0 -14
  336. package/node_modules/lodash/_basePullAll.js +0 -51
  337. package/node_modules/lodash/_basePullAt.js +0 -37
  338. package/node_modules/lodash/_baseRandom.js +0 -18
  339. package/node_modules/lodash/_baseRange.js +0 -28
  340. package/node_modules/lodash/_baseReduce.js +0 -23
  341. package/node_modules/lodash/_baseRepeat.js +0 -35
  342. package/node_modules/lodash/_baseRest.js +0 -17
  343. package/node_modules/lodash/_baseSample.js +0 -15
  344. package/node_modules/lodash/_baseSampleSize.js +0 -18
  345. package/node_modules/lodash/_baseSet.js +0 -51
  346. package/node_modules/lodash/_baseSetData.js +0 -17
  347. package/node_modules/lodash/_baseSetToString.js +0 -22
  348. package/node_modules/lodash/_baseShuffle.js +0 -15
  349. package/node_modules/lodash/_baseSlice.js +0 -31
  350. package/node_modules/lodash/_baseSome.js +0 -22
  351. package/node_modules/lodash/_baseSortBy.js +0 -21
  352. package/node_modules/lodash/_baseSortedIndex.js +0 -42
  353. package/node_modules/lodash/_baseSortedIndexBy.js +0 -67
  354. package/node_modules/lodash/_baseSortedUniq.js +0 -30
  355. package/node_modules/lodash/_baseSum.js +0 -24
  356. package/node_modules/lodash/_baseTimes.js +0 -20
  357. package/node_modules/lodash/_baseToNumber.js +0 -24
  358. package/node_modules/lodash/_baseToPairs.js +0 -18
  359. package/node_modules/lodash/_baseToString.js +0 -37
  360. package/node_modules/lodash/_baseTrim.js +0 -19
  361. package/node_modules/lodash/_baseUnary.js +0 -14
  362. package/node_modules/lodash/_baseUniq.js +0 -72
  363. package/node_modules/lodash/_baseUnset.js +0 -52
  364. package/node_modules/lodash/_baseUpdate.js +0 -18
  365. package/node_modules/lodash/_baseValues.js +0 -19
  366. package/node_modules/lodash/_baseWhile.js +0 -26
  367. package/node_modules/lodash/_baseWrapperValue.js +0 -25
  368. package/node_modules/lodash/_baseXor.js +0 -36
  369. package/node_modules/lodash/_baseZipObject.js +0 -23
  370. package/node_modules/lodash/_cacheHas.js +0 -13
  371. package/node_modules/lodash/_castArrayLikeObject.js +0 -14
  372. package/node_modules/lodash/_castFunction.js +0 -14
  373. package/node_modules/lodash/_castPath.js +0 -21
  374. package/node_modules/lodash/_castRest.js +0 -14
  375. package/node_modules/lodash/_castSlice.js +0 -18
  376. package/node_modules/lodash/_charsEndIndex.js +0 -19
  377. package/node_modules/lodash/_charsStartIndex.js +0 -20
  378. package/node_modules/lodash/_cloneArrayBuffer.js +0 -16
  379. package/node_modules/lodash/_cloneBuffer.js +0 -35
  380. package/node_modules/lodash/_cloneDataView.js +0 -16
  381. package/node_modules/lodash/_cloneRegExp.js +0 -17
  382. package/node_modules/lodash/_cloneSymbol.js +0 -18
  383. package/node_modules/lodash/_cloneTypedArray.js +0 -16
  384. package/node_modules/lodash/_compareAscending.js +0 -41
  385. package/node_modules/lodash/_compareMultiple.js +0 -44
  386. package/node_modules/lodash/_composeArgs.js +0 -39
  387. package/node_modules/lodash/_composeArgsRight.js +0 -41
  388. package/node_modules/lodash/_copyArray.js +0 -20
  389. package/node_modules/lodash/_copyObject.js +0 -40
  390. package/node_modules/lodash/_copySymbols.js +0 -16
  391. package/node_modules/lodash/_copySymbolsIn.js +0 -16
  392. package/node_modules/lodash/_coreJsData.js +0 -6
  393. package/node_modules/lodash/_countHolders.js +0 -21
  394. package/node_modules/lodash/_createAggregator.js +0 -23
  395. package/node_modules/lodash/_createAssigner.js +0 -37
  396. package/node_modules/lodash/_createBaseEach.js +0 -32
  397. package/node_modules/lodash/_createBaseFor.js +0 -25
  398. package/node_modules/lodash/_createBind.js +0 -28
  399. package/node_modules/lodash/_createCaseFirst.js +0 -33
  400. package/node_modules/lodash/_createCompounder.js +0 -24
  401. package/node_modules/lodash/_createCtor.js +0 -37
  402. package/node_modules/lodash/_createCurry.js +0 -46
  403. package/node_modules/lodash/_createFind.js +0 -25
  404. package/node_modules/lodash/_createFlow.js +0 -78
  405. package/node_modules/lodash/_createHybrid.js +0 -92
  406. package/node_modules/lodash/_createInverter.js +0 -17
  407. package/node_modules/lodash/_createMathOperation.js +0 -38
  408. package/node_modules/lodash/_createOver.js +0 -27
  409. package/node_modules/lodash/_createPadding.js +0 -33
  410. package/node_modules/lodash/_createPartial.js +0 -43
  411. package/node_modules/lodash/_createRange.js +0 -30
  412. package/node_modules/lodash/_createRecurry.js +0 -56
  413. package/node_modules/lodash/_createRelationalOperation.js +0 -20
  414. package/node_modules/lodash/_createRound.js +0 -35
  415. package/node_modules/lodash/_createSet.js +0 -19
  416. package/node_modules/lodash/_createToPairs.js +0 -30
  417. package/node_modules/lodash/_createWrap.js +0 -106
  418. package/node_modules/lodash/_customDefaultsAssignIn.js +0 -29
  419. package/node_modules/lodash/_customDefaultsMerge.js +0 -28
  420. package/node_modules/lodash/_customOmitClone.js +0 -16
  421. package/node_modules/lodash/_deburrLetter.js +0 -71
  422. package/node_modules/lodash/_defineProperty.js +0 -11
  423. package/node_modules/lodash/_equalArrays.js +0 -84
  424. package/node_modules/lodash/_equalByTag.js +0 -112
  425. package/node_modules/lodash/_equalObjects.js +0 -90
  426. package/node_modules/lodash/_escapeHtmlChar.js +0 -21
  427. package/node_modules/lodash/_escapeStringChar.js +0 -22
  428. package/node_modules/lodash/_flatRest.js +0 -16
  429. package/node_modules/lodash/_freeGlobal.js +0 -4
  430. package/node_modules/lodash/_getAllKeys.js +0 -16
  431. package/node_modules/lodash/_getAllKeysIn.js +0 -17
  432. package/node_modules/lodash/_getData.js +0 -15
  433. package/node_modules/lodash/_getFuncName.js +0 -31
  434. package/node_modules/lodash/_getHolder.js +0 -13
  435. package/node_modules/lodash/_getMapData.js +0 -18
  436. package/node_modules/lodash/_getMatchData.js +0 -24
  437. package/node_modules/lodash/_getNative.js +0 -17
  438. package/node_modules/lodash/_getPrototype.js +0 -6
  439. package/node_modules/lodash/_getRawTag.js +0 -46
  440. package/node_modules/lodash/_getSymbols.js +0 -30
  441. package/node_modules/lodash/_getSymbolsIn.js +0 -25
  442. package/node_modules/lodash/_getTag.js +0 -58
  443. package/node_modules/lodash/_getValue.js +0 -13
  444. package/node_modules/lodash/_getView.js +0 -33
  445. package/node_modules/lodash/_getWrapDetails.js +0 -17
  446. package/node_modules/lodash/_hasPath.js +0 -39
  447. package/node_modules/lodash/_hasUnicode.js +0 -26
  448. package/node_modules/lodash/_hasUnicodeWord.js +0 -15
  449. package/node_modules/lodash/_hashClear.js +0 -15
  450. package/node_modules/lodash/_hashDelete.js +0 -17
  451. package/node_modules/lodash/_hashGet.js +0 -30
  452. package/node_modules/lodash/_hashHas.js +0 -23
  453. package/node_modules/lodash/_hashSet.js +0 -23
  454. package/node_modules/lodash/_initCloneArray.js +0 -26
  455. package/node_modules/lodash/_initCloneByTag.js +0 -77
  456. package/node_modules/lodash/_initCloneObject.js +0 -18
  457. package/node_modules/lodash/_insertWrapDetails.js +0 -23
  458. package/node_modules/lodash/_isFlattenable.js +0 -20
  459. package/node_modules/lodash/_isIndex.js +0 -25
  460. package/node_modules/lodash/_isIterateeCall.js +0 -30
  461. package/node_modules/lodash/_isKey.js +0 -29
  462. package/node_modules/lodash/_isKeyable.js +0 -15
  463. package/node_modules/lodash/_isLaziable.js +0 -28
  464. package/node_modules/lodash/_isMaskable.js +0 -14
  465. package/node_modules/lodash/_isMasked.js +0 -20
  466. package/node_modules/lodash/_isPrototype.js +0 -18
  467. package/node_modules/lodash/_isStrictComparable.js +0 -15
  468. package/node_modules/lodash/_iteratorToArray.js +0 -18
  469. package/node_modules/lodash/_lazyClone.js +0 -23
  470. package/node_modules/lodash/_lazyReverse.js +0 -23
  471. package/node_modules/lodash/_lazyValue.js +0 -69
  472. package/node_modules/lodash/_listCacheClear.js +0 -13
  473. package/node_modules/lodash/_listCacheDelete.js +0 -35
  474. package/node_modules/lodash/_listCacheGet.js +0 -19
  475. package/node_modules/lodash/_listCacheHas.js +0 -16
  476. package/node_modules/lodash/_listCacheSet.js +0 -26
  477. package/node_modules/lodash/_mapCacheClear.js +0 -21
  478. package/node_modules/lodash/_mapCacheDelete.js +0 -18
  479. package/node_modules/lodash/_mapCacheGet.js +0 -16
  480. package/node_modules/lodash/_mapCacheHas.js +0 -16
  481. package/node_modules/lodash/_mapCacheSet.js +0 -22
  482. package/node_modules/lodash/_mapToArray.js +0 -18
  483. package/node_modules/lodash/_matchesStrictComparable.js +0 -20
  484. package/node_modules/lodash/_memoizeCapped.js +0 -26
  485. package/node_modules/lodash/_mergeData.js +0 -90
  486. package/node_modules/lodash/_metaMap.js +0 -6
  487. package/node_modules/lodash/_nativeCreate.js +0 -6
  488. package/node_modules/lodash/_nativeKeys.js +0 -6
  489. package/node_modules/lodash/_nativeKeysIn.js +0 -20
  490. package/node_modules/lodash/_nodeUtil.js +0 -30
  491. package/node_modules/lodash/_objectToString.js +0 -22
  492. package/node_modules/lodash/_overArg.js +0 -15
  493. package/node_modules/lodash/_overRest.js +0 -36
  494. package/node_modules/lodash/_parent.js +0 -16
  495. package/node_modules/lodash/_reEscape.js +0 -4
  496. package/node_modules/lodash/_reEvaluate.js +0 -4
  497. package/node_modules/lodash/_reInterpolate.js +0 -4
  498. package/node_modules/lodash/_realNames.js +0 -4
  499. package/node_modules/lodash/_reorder.js +0 -29
  500. package/node_modules/lodash/_replaceHolders.js +0 -29
  501. package/node_modules/lodash/_root.js +0 -9
  502. package/node_modules/lodash/_safeGet.js +0 -21
  503. package/node_modules/lodash/_setCacheAdd.js +0 -19
  504. package/node_modules/lodash/_setCacheHas.js +0 -14
  505. package/node_modules/lodash/_setData.js +0 -20
  506. package/node_modules/lodash/_setToArray.js +0 -18
  507. package/node_modules/lodash/_setToPairs.js +0 -18
  508. package/node_modules/lodash/_setToString.js +0 -14
  509. package/node_modules/lodash/_setWrapToString.js +0 -21
  510. package/node_modules/lodash/_shortOut.js +0 -37
  511. package/node_modules/lodash/_shuffleSelf.js +0 -28
  512. package/node_modules/lodash/_stackClear.js +0 -15
  513. package/node_modules/lodash/_stackDelete.js +0 -18
  514. package/node_modules/lodash/_stackGet.js +0 -14
  515. package/node_modules/lodash/_stackHas.js +0 -14
  516. package/node_modules/lodash/_stackSet.js +0 -34
  517. package/node_modules/lodash/_strictIndexOf.js +0 -23
  518. package/node_modules/lodash/_strictLastIndexOf.js +0 -21
  519. package/node_modules/lodash/_stringSize.js +0 -18
  520. package/node_modules/lodash/_stringToArray.js +0 -18
  521. package/node_modules/lodash/_stringToPath.js +0 -27
  522. package/node_modules/lodash/_toKey.js +0 -21
  523. package/node_modules/lodash/_toSource.js +0 -26
  524. package/node_modules/lodash/_trimmedEndIndex.js +0 -19
  525. package/node_modules/lodash/_unescapeHtmlChar.js +0 -21
  526. package/node_modules/lodash/_unicodeSize.js +0 -44
  527. package/node_modules/lodash/_unicodeToArray.js +0 -40
  528. package/node_modules/lodash/_unicodeWords.js +0 -69
  529. package/node_modules/lodash/_updateWrapDetails.js +0 -46
  530. package/node_modules/lodash/_wrapperClone.js +0 -23
  531. package/node_modules/lodash/add.js +0 -22
  532. package/node_modules/lodash/after.js +0 -42
  533. package/node_modules/lodash/array.js +0 -67
  534. package/node_modules/lodash/ary.js +0 -29
  535. package/node_modules/lodash/assign.js +0 -58
  536. package/node_modules/lodash/assignIn.js +0 -40
  537. package/node_modules/lodash/assignInWith.js +0 -38
  538. package/node_modules/lodash/assignWith.js +0 -37
  539. package/node_modules/lodash/at.js +0 -23
  540. package/node_modules/lodash/attempt.js +0 -35
  541. package/node_modules/lodash/before.js +0 -40
  542. package/node_modules/lodash/bind.js +0 -57
  543. package/node_modules/lodash/bindAll.js +0 -41
  544. package/node_modules/lodash/bindKey.js +0 -68
  545. package/node_modules/lodash/camelCase.js +0 -29
  546. package/node_modules/lodash/capitalize.js +0 -23
  547. package/node_modules/lodash/castArray.js +0 -44
  548. package/node_modules/lodash/ceil.js +0 -26
  549. package/node_modules/lodash/chain.js +0 -38
  550. package/node_modules/lodash/chunk.js +0 -50
  551. package/node_modules/lodash/clamp.js +0 -39
  552. package/node_modules/lodash/clone.js +0 -36
  553. package/node_modules/lodash/cloneDeep.js +0 -29
  554. package/node_modules/lodash/cloneDeepWith.js +0 -40
  555. package/node_modules/lodash/cloneWith.js +0 -42
  556. package/node_modules/lodash/collection.js +0 -30
  557. package/node_modules/lodash/commit.js +0 -33
  558. package/node_modules/lodash/compact.js +0 -31
  559. package/node_modules/lodash/concat.js +0 -43
  560. package/node_modules/lodash/cond.js +0 -60
  561. package/node_modules/lodash/conforms.js +0 -35
  562. package/node_modules/lodash/conformsTo.js +0 -32
  563. package/node_modules/lodash/constant.js +0 -26
  564. package/node_modules/lodash/core.js +0 -3877
  565. package/node_modules/lodash/core.min.js +0 -30
  566. package/node_modules/lodash/countBy.js +0 -40
  567. package/node_modules/lodash/create.js +0 -43
  568. package/node_modules/lodash/curry.js +0 -57
  569. package/node_modules/lodash/curryRight.js +0 -54
  570. package/node_modules/lodash/date.js +0 -3
  571. package/node_modules/lodash/debounce.js +0 -191
  572. package/node_modules/lodash/deburr.js +0 -45
  573. package/node_modules/lodash/defaultTo.js +0 -25
  574. package/node_modules/lodash/defaults.js +0 -64
  575. package/node_modules/lodash/defaultsDeep.js +0 -30
  576. package/node_modules/lodash/defer.js +0 -26
  577. package/node_modules/lodash/delay.js +0 -28
  578. package/node_modules/lodash/difference.js +0 -33
  579. package/node_modules/lodash/differenceBy.js +0 -44
  580. package/node_modules/lodash/differenceWith.js +0 -40
  581. package/node_modules/lodash/divide.js +0 -22
  582. package/node_modules/lodash/drop.js +0 -38
  583. package/node_modules/lodash/dropRight.js +0 -39
  584. package/node_modules/lodash/dropRightWhile.js +0 -45
  585. package/node_modules/lodash/dropWhile.js +0 -45
  586. package/node_modules/lodash/each.js +0 -1
  587. package/node_modules/lodash/eachRight.js +0 -1
  588. package/node_modules/lodash/endsWith.js +0 -43
  589. package/node_modules/lodash/entries.js +0 -1
  590. package/node_modules/lodash/entriesIn.js +0 -1
  591. package/node_modules/lodash/eq.js +0 -37
  592. package/node_modules/lodash/escape.js +0 -43
  593. package/node_modules/lodash/escapeRegExp.js +0 -32
  594. package/node_modules/lodash/every.js +0 -56
  595. package/node_modules/lodash/extend.js +0 -1
  596. package/node_modules/lodash/extendWith.js +0 -1
  597. package/node_modules/lodash/fill.js +0 -45
  598. package/node_modules/lodash/filter.js +0 -52
  599. package/node_modules/lodash/find.js +0 -42
  600. package/node_modules/lodash/findIndex.js +0 -55
  601. package/node_modules/lodash/findKey.js +0 -44
  602. package/node_modules/lodash/findLast.js +0 -25
  603. package/node_modules/lodash/findLastIndex.js +0 -59
  604. package/node_modules/lodash/findLastKey.js +0 -44
  605. package/node_modules/lodash/first.js +0 -1
  606. package/node_modules/lodash/flatMap.js +0 -29
  607. package/node_modules/lodash/flatMapDeep.js +0 -31
  608. package/node_modules/lodash/flatMapDepth.js +0 -31
  609. package/node_modules/lodash/flatten.js +0 -22
  610. package/node_modules/lodash/flattenDeep.js +0 -25
  611. package/node_modules/lodash/flattenDepth.js +0 -33
  612. package/node_modules/lodash/flip.js +0 -28
  613. package/node_modules/lodash/floor.js +0 -26
  614. package/node_modules/lodash/flow.js +0 -27
  615. package/node_modules/lodash/flowRight.js +0 -26
  616. package/node_modules/lodash/forEach.js +0 -41
  617. package/node_modules/lodash/forEachRight.js +0 -31
  618. package/node_modules/lodash/forIn.js +0 -39
  619. package/node_modules/lodash/forInRight.js +0 -37
  620. package/node_modules/lodash/forOwn.js +0 -36
  621. package/node_modules/lodash/forOwnRight.js +0 -34
  622. package/node_modules/lodash/fp/F.js +0 -1
  623. package/node_modules/lodash/fp/T.js +0 -1
  624. package/node_modules/lodash/fp/__.js +0 -1
  625. package/node_modules/lodash/fp/_baseConvert.js +0 -569
  626. package/node_modules/lodash/fp/_convertBrowser.js +0 -18
  627. package/node_modules/lodash/fp/_falseOptions.js +0 -7
  628. package/node_modules/lodash/fp/_mapping.js +0 -358
  629. package/node_modules/lodash/fp/_util.js +0 -16
  630. package/node_modules/lodash/fp/add.js +0 -5
  631. package/node_modules/lodash/fp/after.js +0 -5
  632. package/node_modules/lodash/fp/all.js +0 -1
  633. package/node_modules/lodash/fp/allPass.js +0 -1
  634. package/node_modules/lodash/fp/always.js +0 -1
  635. package/node_modules/lodash/fp/any.js +0 -1
  636. package/node_modules/lodash/fp/anyPass.js +0 -1
  637. package/node_modules/lodash/fp/apply.js +0 -1
  638. package/node_modules/lodash/fp/array.js +0 -2
  639. package/node_modules/lodash/fp/ary.js +0 -5
  640. package/node_modules/lodash/fp/assign.js +0 -5
  641. package/node_modules/lodash/fp/assignAll.js +0 -5
  642. package/node_modules/lodash/fp/assignAllWith.js +0 -5
  643. package/node_modules/lodash/fp/assignIn.js +0 -5
  644. package/node_modules/lodash/fp/assignInAll.js +0 -5
  645. package/node_modules/lodash/fp/assignInAllWith.js +0 -5
  646. package/node_modules/lodash/fp/assignInWith.js +0 -5
  647. package/node_modules/lodash/fp/assignWith.js +0 -5
  648. package/node_modules/lodash/fp/assoc.js +0 -1
  649. package/node_modules/lodash/fp/assocPath.js +0 -1
  650. package/node_modules/lodash/fp/at.js +0 -5
  651. package/node_modules/lodash/fp/attempt.js +0 -5
  652. package/node_modules/lodash/fp/before.js +0 -5
  653. package/node_modules/lodash/fp/bind.js +0 -5
  654. package/node_modules/lodash/fp/bindAll.js +0 -5
  655. package/node_modules/lodash/fp/bindKey.js +0 -5
  656. package/node_modules/lodash/fp/camelCase.js +0 -5
  657. package/node_modules/lodash/fp/capitalize.js +0 -5
  658. package/node_modules/lodash/fp/castArray.js +0 -5
  659. package/node_modules/lodash/fp/ceil.js +0 -5
  660. package/node_modules/lodash/fp/chain.js +0 -5
  661. package/node_modules/lodash/fp/chunk.js +0 -5
  662. package/node_modules/lodash/fp/clamp.js +0 -5
  663. package/node_modules/lodash/fp/clone.js +0 -5
  664. package/node_modules/lodash/fp/cloneDeep.js +0 -5
  665. package/node_modules/lodash/fp/cloneDeepWith.js +0 -5
  666. package/node_modules/lodash/fp/cloneWith.js +0 -5
  667. package/node_modules/lodash/fp/collection.js +0 -2
  668. package/node_modules/lodash/fp/commit.js +0 -5
  669. package/node_modules/lodash/fp/compact.js +0 -5
  670. package/node_modules/lodash/fp/complement.js +0 -1
  671. package/node_modules/lodash/fp/compose.js +0 -1
  672. package/node_modules/lodash/fp/concat.js +0 -5
  673. package/node_modules/lodash/fp/cond.js +0 -5
  674. package/node_modules/lodash/fp/conforms.js +0 -1
  675. package/node_modules/lodash/fp/conformsTo.js +0 -5
  676. package/node_modules/lodash/fp/constant.js +0 -5
  677. package/node_modules/lodash/fp/contains.js +0 -1
  678. package/node_modules/lodash/fp/convert.js +0 -18
  679. package/node_modules/lodash/fp/countBy.js +0 -5
  680. package/node_modules/lodash/fp/create.js +0 -5
  681. package/node_modules/lodash/fp/curry.js +0 -5
  682. package/node_modules/lodash/fp/curryN.js +0 -5
  683. package/node_modules/lodash/fp/curryRight.js +0 -5
  684. package/node_modules/lodash/fp/curryRightN.js +0 -5
  685. package/node_modules/lodash/fp/date.js +0 -2
  686. package/node_modules/lodash/fp/debounce.js +0 -5
  687. package/node_modules/lodash/fp/deburr.js +0 -5
  688. package/node_modules/lodash/fp/defaultTo.js +0 -5
  689. package/node_modules/lodash/fp/defaults.js +0 -5
  690. package/node_modules/lodash/fp/defaultsAll.js +0 -5
  691. package/node_modules/lodash/fp/defaultsDeep.js +0 -5
  692. package/node_modules/lodash/fp/defaultsDeepAll.js +0 -5
  693. package/node_modules/lodash/fp/defer.js +0 -5
  694. package/node_modules/lodash/fp/delay.js +0 -5
  695. package/node_modules/lodash/fp/difference.js +0 -5
  696. package/node_modules/lodash/fp/differenceBy.js +0 -5
  697. package/node_modules/lodash/fp/differenceWith.js +0 -5
  698. package/node_modules/lodash/fp/dissoc.js +0 -1
  699. package/node_modules/lodash/fp/dissocPath.js +0 -1
  700. package/node_modules/lodash/fp/divide.js +0 -5
  701. package/node_modules/lodash/fp/drop.js +0 -5
  702. package/node_modules/lodash/fp/dropLast.js +0 -1
  703. package/node_modules/lodash/fp/dropLastWhile.js +0 -1
  704. package/node_modules/lodash/fp/dropRight.js +0 -5
  705. package/node_modules/lodash/fp/dropRightWhile.js +0 -5
  706. package/node_modules/lodash/fp/dropWhile.js +0 -5
  707. package/node_modules/lodash/fp/each.js +0 -1
  708. package/node_modules/lodash/fp/eachRight.js +0 -1
  709. package/node_modules/lodash/fp/endsWith.js +0 -5
  710. package/node_modules/lodash/fp/entries.js +0 -1
  711. package/node_modules/lodash/fp/entriesIn.js +0 -1
  712. package/node_modules/lodash/fp/eq.js +0 -5
  713. package/node_modules/lodash/fp/equals.js +0 -1
  714. package/node_modules/lodash/fp/escape.js +0 -5
  715. package/node_modules/lodash/fp/escapeRegExp.js +0 -5
  716. package/node_modules/lodash/fp/every.js +0 -5
  717. package/node_modules/lodash/fp/extend.js +0 -1
  718. package/node_modules/lodash/fp/extendAll.js +0 -1
  719. package/node_modules/lodash/fp/extendAllWith.js +0 -1
  720. package/node_modules/lodash/fp/extendWith.js +0 -1
  721. package/node_modules/lodash/fp/fill.js +0 -5
  722. package/node_modules/lodash/fp/filter.js +0 -5
  723. package/node_modules/lodash/fp/find.js +0 -5
  724. package/node_modules/lodash/fp/findFrom.js +0 -5
  725. package/node_modules/lodash/fp/findIndex.js +0 -5
  726. package/node_modules/lodash/fp/findIndexFrom.js +0 -5
  727. package/node_modules/lodash/fp/findKey.js +0 -5
  728. package/node_modules/lodash/fp/findLast.js +0 -5
  729. package/node_modules/lodash/fp/findLastFrom.js +0 -5
  730. package/node_modules/lodash/fp/findLastIndex.js +0 -5
  731. package/node_modules/lodash/fp/findLastIndexFrom.js +0 -5
  732. package/node_modules/lodash/fp/findLastKey.js +0 -5
  733. package/node_modules/lodash/fp/first.js +0 -1
  734. package/node_modules/lodash/fp/flatMap.js +0 -5
  735. package/node_modules/lodash/fp/flatMapDeep.js +0 -5
  736. package/node_modules/lodash/fp/flatMapDepth.js +0 -5
  737. package/node_modules/lodash/fp/flatten.js +0 -5
  738. package/node_modules/lodash/fp/flattenDeep.js +0 -5
  739. package/node_modules/lodash/fp/flattenDepth.js +0 -5
  740. package/node_modules/lodash/fp/flip.js +0 -5
  741. package/node_modules/lodash/fp/floor.js +0 -5
  742. package/node_modules/lodash/fp/flow.js +0 -5
  743. package/node_modules/lodash/fp/flowRight.js +0 -5
  744. package/node_modules/lodash/fp/forEach.js +0 -5
  745. package/node_modules/lodash/fp/forEachRight.js +0 -5
  746. package/node_modules/lodash/fp/forIn.js +0 -5
  747. package/node_modules/lodash/fp/forInRight.js +0 -5
  748. package/node_modules/lodash/fp/forOwn.js +0 -5
  749. package/node_modules/lodash/fp/forOwnRight.js +0 -5
  750. package/node_modules/lodash/fp/fromPairs.js +0 -5
  751. package/node_modules/lodash/fp/function.js +0 -2
  752. package/node_modules/lodash/fp/functions.js +0 -5
  753. package/node_modules/lodash/fp/functionsIn.js +0 -5
  754. package/node_modules/lodash/fp/get.js +0 -5
  755. package/node_modules/lodash/fp/getOr.js +0 -5
  756. package/node_modules/lodash/fp/groupBy.js +0 -5
  757. package/node_modules/lodash/fp/gt.js +0 -5
  758. package/node_modules/lodash/fp/gte.js +0 -5
  759. package/node_modules/lodash/fp/has.js +0 -5
  760. package/node_modules/lodash/fp/hasIn.js +0 -5
  761. package/node_modules/lodash/fp/head.js +0 -5
  762. package/node_modules/lodash/fp/identical.js +0 -1
  763. package/node_modules/lodash/fp/identity.js +0 -5
  764. package/node_modules/lodash/fp/inRange.js +0 -5
  765. package/node_modules/lodash/fp/includes.js +0 -5
  766. package/node_modules/lodash/fp/includesFrom.js +0 -5
  767. package/node_modules/lodash/fp/indexBy.js +0 -1
  768. package/node_modules/lodash/fp/indexOf.js +0 -5
  769. package/node_modules/lodash/fp/indexOfFrom.js +0 -5
  770. package/node_modules/lodash/fp/init.js +0 -1
  771. package/node_modules/lodash/fp/initial.js +0 -5
  772. package/node_modules/lodash/fp/intersection.js +0 -5
  773. package/node_modules/lodash/fp/intersectionBy.js +0 -5
  774. package/node_modules/lodash/fp/intersectionWith.js +0 -5
  775. package/node_modules/lodash/fp/invert.js +0 -5
  776. package/node_modules/lodash/fp/invertBy.js +0 -5
  777. package/node_modules/lodash/fp/invertObj.js +0 -1
  778. package/node_modules/lodash/fp/invoke.js +0 -5
  779. package/node_modules/lodash/fp/invokeArgs.js +0 -5
  780. package/node_modules/lodash/fp/invokeArgsMap.js +0 -5
  781. package/node_modules/lodash/fp/invokeMap.js +0 -5
  782. package/node_modules/lodash/fp/isArguments.js +0 -5
  783. package/node_modules/lodash/fp/isArray.js +0 -5
  784. package/node_modules/lodash/fp/isArrayBuffer.js +0 -5
  785. package/node_modules/lodash/fp/isArrayLike.js +0 -5
  786. package/node_modules/lodash/fp/isArrayLikeObject.js +0 -5
  787. package/node_modules/lodash/fp/isBoolean.js +0 -5
  788. package/node_modules/lodash/fp/isBuffer.js +0 -5
  789. package/node_modules/lodash/fp/isDate.js +0 -5
  790. package/node_modules/lodash/fp/isElement.js +0 -5
  791. package/node_modules/lodash/fp/isEmpty.js +0 -5
  792. package/node_modules/lodash/fp/isEqual.js +0 -5
  793. package/node_modules/lodash/fp/isEqualWith.js +0 -5
  794. package/node_modules/lodash/fp/isError.js +0 -5
  795. package/node_modules/lodash/fp/isFinite.js +0 -5
  796. package/node_modules/lodash/fp/isFunction.js +0 -5
  797. package/node_modules/lodash/fp/isInteger.js +0 -5
  798. package/node_modules/lodash/fp/isLength.js +0 -5
  799. package/node_modules/lodash/fp/isMap.js +0 -5
  800. package/node_modules/lodash/fp/isMatch.js +0 -5
  801. package/node_modules/lodash/fp/isMatchWith.js +0 -5
  802. package/node_modules/lodash/fp/isNaN.js +0 -5
  803. package/node_modules/lodash/fp/isNative.js +0 -5
  804. package/node_modules/lodash/fp/isNil.js +0 -5
  805. package/node_modules/lodash/fp/isNull.js +0 -5
  806. package/node_modules/lodash/fp/isNumber.js +0 -5
  807. package/node_modules/lodash/fp/isObject.js +0 -5
  808. package/node_modules/lodash/fp/isObjectLike.js +0 -5
  809. package/node_modules/lodash/fp/isPlainObject.js +0 -5
  810. package/node_modules/lodash/fp/isRegExp.js +0 -5
  811. package/node_modules/lodash/fp/isSafeInteger.js +0 -5
  812. package/node_modules/lodash/fp/isSet.js +0 -5
  813. package/node_modules/lodash/fp/isString.js +0 -5
  814. package/node_modules/lodash/fp/isSymbol.js +0 -5
  815. package/node_modules/lodash/fp/isTypedArray.js +0 -5
  816. package/node_modules/lodash/fp/isUndefined.js +0 -5
  817. package/node_modules/lodash/fp/isWeakMap.js +0 -5
  818. package/node_modules/lodash/fp/isWeakSet.js +0 -5
  819. package/node_modules/lodash/fp/iteratee.js +0 -5
  820. package/node_modules/lodash/fp/join.js +0 -5
  821. package/node_modules/lodash/fp/juxt.js +0 -1
  822. package/node_modules/lodash/fp/kebabCase.js +0 -5
  823. package/node_modules/lodash/fp/keyBy.js +0 -5
  824. package/node_modules/lodash/fp/keys.js +0 -5
  825. package/node_modules/lodash/fp/keysIn.js +0 -5
  826. package/node_modules/lodash/fp/lang.js +0 -2
  827. package/node_modules/lodash/fp/last.js +0 -5
  828. package/node_modules/lodash/fp/lastIndexOf.js +0 -5
  829. package/node_modules/lodash/fp/lastIndexOfFrom.js +0 -5
  830. package/node_modules/lodash/fp/lowerCase.js +0 -5
  831. package/node_modules/lodash/fp/lowerFirst.js +0 -5
  832. package/node_modules/lodash/fp/lt.js +0 -5
  833. package/node_modules/lodash/fp/lte.js +0 -5
  834. package/node_modules/lodash/fp/map.js +0 -5
  835. package/node_modules/lodash/fp/mapKeys.js +0 -5
  836. package/node_modules/lodash/fp/mapValues.js +0 -5
  837. package/node_modules/lodash/fp/matches.js +0 -1
  838. package/node_modules/lodash/fp/matchesProperty.js +0 -5
  839. package/node_modules/lodash/fp/math.js +0 -2
  840. package/node_modules/lodash/fp/max.js +0 -5
  841. package/node_modules/lodash/fp/maxBy.js +0 -5
  842. package/node_modules/lodash/fp/mean.js +0 -5
  843. package/node_modules/lodash/fp/meanBy.js +0 -5
  844. package/node_modules/lodash/fp/memoize.js +0 -5
  845. package/node_modules/lodash/fp/merge.js +0 -5
  846. package/node_modules/lodash/fp/mergeAll.js +0 -5
  847. package/node_modules/lodash/fp/mergeAllWith.js +0 -5
  848. package/node_modules/lodash/fp/mergeWith.js +0 -5
  849. package/node_modules/lodash/fp/method.js +0 -5
  850. package/node_modules/lodash/fp/methodOf.js +0 -5
  851. package/node_modules/lodash/fp/min.js +0 -5
  852. package/node_modules/lodash/fp/minBy.js +0 -5
  853. package/node_modules/lodash/fp/mixin.js +0 -5
  854. package/node_modules/lodash/fp/multiply.js +0 -5
  855. package/node_modules/lodash/fp/nAry.js +0 -1
  856. package/node_modules/lodash/fp/negate.js +0 -5
  857. package/node_modules/lodash/fp/next.js +0 -5
  858. package/node_modules/lodash/fp/noop.js +0 -5
  859. package/node_modules/lodash/fp/now.js +0 -5
  860. package/node_modules/lodash/fp/nth.js +0 -5
  861. package/node_modules/lodash/fp/nthArg.js +0 -5
  862. package/node_modules/lodash/fp/number.js +0 -2
  863. package/node_modules/lodash/fp/object.js +0 -2
  864. package/node_modules/lodash/fp/omit.js +0 -5
  865. package/node_modules/lodash/fp/omitAll.js +0 -1
  866. package/node_modules/lodash/fp/omitBy.js +0 -5
  867. package/node_modules/lodash/fp/once.js +0 -5
  868. package/node_modules/lodash/fp/orderBy.js +0 -5
  869. package/node_modules/lodash/fp/over.js +0 -5
  870. package/node_modules/lodash/fp/overArgs.js +0 -5
  871. package/node_modules/lodash/fp/overEvery.js +0 -5
  872. package/node_modules/lodash/fp/overSome.js +0 -5
  873. package/node_modules/lodash/fp/pad.js +0 -5
  874. package/node_modules/lodash/fp/padChars.js +0 -5
  875. package/node_modules/lodash/fp/padCharsEnd.js +0 -5
  876. package/node_modules/lodash/fp/padCharsStart.js +0 -5
  877. package/node_modules/lodash/fp/padEnd.js +0 -5
  878. package/node_modules/lodash/fp/padStart.js +0 -5
  879. package/node_modules/lodash/fp/parseInt.js +0 -5
  880. package/node_modules/lodash/fp/partial.js +0 -5
  881. package/node_modules/lodash/fp/partialRight.js +0 -5
  882. package/node_modules/lodash/fp/partition.js +0 -5
  883. package/node_modules/lodash/fp/path.js +0 -1
  884. package/node_modules/lodash/fp/pathEq.js +0 -1
  885. package/node_modules/lodash/fp/pathOr.js +0 -1
  886. package/node_modules/lodash/fp/paths.js +0 -1
  887. package/node_modules/lodash/fp/pick.js +0 -5
  888. package/node_modules/lodash/fp/pickAll.js +0 -1
  889. package/node_modules/lodash/fp/pickBy.js +0 -5
  890. package/node_modules/lodash/fp/pipe.js +0 -1
  891. package/node_modules/lodash/fp/placeholder.js +0 -6
  892. package/node_modules/lodash/fp/plant.js +0 -5
  893. package/node_modules/lodash/fp/pluck.js +0 -1
  894. package/node_modules/lodash/fp/prop.js +0 -1
  895. package/node_modules/lodash/fp/propEq.js +0 -1
  896. package/node_modules/lodash/fp/propOr.js +0 -1
  897. package/node_modules/lodash/fp/property.js +0 -1
  898. package/node_modules/lodash/fp/propertyOf.js +0 -5
  899. package/node_modules/lodash/fp/props.js +0 -1
  900. package/node_modules/lodash/fp/pull.js +0 -5
  901. package/node_modules/lodash/fp/pullAll.js +0 -5
  902. package/node_modules/lodash/fp/pullAllBy.js +0 -5
  903. package/node_modules/lodash/fp/pullAllWith.js +0 -5
  904. package/node_modules/lodash/fp/pullAt.js +0 -5
  905. package/node_modules/lodash/fp/random.js +0 -5
  906. package/node_modules/lodash/fp/range.js +0 -5
  907. package/node_modules/lodash/fp/rangeRight.js +0 -5
  908. package/node_modules/lodash/fp/rangeStep.js +0 -5
  909. package/node_modules/lodash/fp/rangeStepRight.js +0 -5
  910. package/node_modules/lodash/fp/rearg.js +0 -5
  911. package/node_modules/lodash/fp/reduce.js +0 -5
  912. package/node_modules/lodash/fp/reduceRight.js +0 -5
  913. package/node_modules/lodash/fp/reject.js +0 -5
  914. package/node_modules/lodash/fp/remove.js +0 -5
  915. package/node_modules/lodash/fp/repeat.js +0 -5
  916. package/node_modules/lodash/fp/replace.js +0 -5
  917. package/node_modules/lodash/fp/rest.js +0 -5
  918. package/node_modules/lodash/fp/restFrom.js +0 -5
  919. package/node_modules/lodash/fp/result.js +0 -5
  920. package/node_modules/lodash/fp/reverse.js +0 -5
  921. package/node_modules/lodash/fp/round.js +0 -5
  922. package/node_modules/lodash/fp/sample.js +0 -5
  923. package/node_modules/lodash/fp/sampleSize.js +0 -5
  924. package/node_modules/lodash/fp/seq.js +0 -2
  925. package/node_modules/lodash/fp/set.js +0 -5
  926. package/node_modules/lodash/fp/setWith.js +0 -5
  927. package/node_modules/lodash/fp/shuffle.js +0 -5
  928. package/node_modules/lodash/fp/size.js +0 -5
  929. package/node_modules/lodash/fp/slice.js +0 -5
  930. package/node_modules/lodash/fp/snakeCase.js +0 -5
  931. package/node_modules/lodash/fp/some.js +0 -5
  932. package/node_modules/lodash/fp/sortBy.js +0 -5
  933. package/node_modules/lodash/fp/sortedIndex.js +0 -5
  934. package/node_modules/lodash/fp/sortedIndexBy.js +0 -5
  935. package/node_modules/lodash/fp/sortedIndexOf.js +0 -5
  936. package/node_modules/lodash/fp/sortedLastIndex.js +0 -5
  937. package/node_modules/lodash/fp/sortedLastIndexBy.js +0 -5
  938. package/node_modules/lodash/fp/sortedLastIndexOf.js +0 -5
  939. package/node_modules/lodash/fp/sortedUniq.js +0 -5
  940. package/node_modules/lodash/fp/sortedUniqBy.js +0 -5
  941. package/node_modules/lodash/fp/split.js +0 -5
  942. package/node_modules/lodash/fp/spread.js +0 -5
  943. package/node_modules/lodash/fp/spreadFrom.js +0 -5
  944. package/node_modules/lodash/fp/startCase.js +0 -5
  945. package/node_modules/lodash/fp/startsWith.js +0 -5
  946. package/node_modules/lodash/fp/string.js +0 -2
  947. package/node_modules/lodash/fp/stubArray.js +0 -5
  948. package/node_modules/lodash/fp/stubFalse.js +0 -5
  949. package/node_modules/lodash/fp/stubObject.js +0 -5
  950. package/node_modules/lodash/fp/stubString.js +0 -5
  951. package/node_modules/lodash/fp/stubTrue.js +0 -5
  952. package/node_modules/lodash/fp/subtract.js +0 -5
  953. package/node_modules/lodash/fp/sum.js +0 -5
  954. package/node_modules/lodash/fp/sumBy.js +0 -5
  955. package/node_modules/lodash/fp/symmetricDifference.js +0 -1
  956. package/node_modules/lodash/fp/symmetricDifferenceBy.js +0 -1
  957. package/node_modules/lodash/fp/symmetricDifferenceWith.js +0 -1
  958. package/node_modules/lodash/fp/tail.js +0 -5
  959. package/node_modules/lodash/fp/take.js +0 -5
  960. package/node_modules/lodash/fp/takeLast.js +0 -1
  961. package/node_modules/lodash/fp/takeLastWhile.js +0 -1
  962. package/node_modules/lodash/fp/takeRight.js +0 -5
  963. package/node_modules/lodash/fp/takeRightWhile.js +0 -5
  964. package/node_modules/lodash/fp/takeWhile.js +0 -5
  965. package/node_modules/lodash/fp/tap.js +0 -5
  966. package/node_modules/lodash/fp/template.js +0 -5
  967. package/node_modules/lodash/fp/templateSettings.js +0 -5
  968. package/node_modules/lodash/fp/throttle.js +0 -5
  969. package/node_modules/lodash/fp/thru.js +0 -5
  970. package/node_modules/lodash/fp/times.js +0 -5
  971. package/node_modules/lodash/fp/toArray.js +0 -5
  972. package/node_modules/lodash/fp/toFinite.js +0 -5
  973. package/node_modules/lodash/fp/toInteger.js +0 -5
  974. package/node_modules/lodash/fp/toIterator.js +0 -5
  975. package/node_modules/lodash/fp/toJSON.js +0 -5
  976. package/node_modules/lodash/fp/toLength.js +0 -5
  977. package/node_modules/lodash/fp/toLower.js +0 -5
  978. package/node_modules/lodash/fp/toNumber.js +0 -5
  979. package/node_modules/lodash/fp/toPairs.js +0 -5
  980. package/node_modules/lodash/fp/toPairsIn.js +0 -5
  981. package/node_modules/lodash/fp/toPath.js +0 -5
  982. package/node_modules/lodash/fp/toPlainObject.js +0 -5
  983. package/node_modules/lodash/fp/toSafeInteger.js +0 -5
  984. package/node_modules/lodash/fp/toString.js +0 -5
  985. package/node_modules/lodash/fp/toUpper.js +0 -5
  986. package/node_modules/lodash/fp/transform.js +0 -5
  987. package/node_modules/lodash/fp/trim.js +0 -5
  988. package/node_modules/lodash/fp/trimChars.js +0 -5
  989. package/node_modules/lodash/fp/trimCharsEnd.js +0 -5
  990. package/node_modules/lodash/fp/trimCharsStart.js +0 -5
  991. package/node_modules/lodash/fp/trimEnd.js +0 -5
  992. package/node_modules/lodash/fp/trimStart.js +0 -5
  993. package/node_modules/lodash/fp/truncate.js +0 -5
  994. package/node_modules/lodash/fp/unapply.js +0 -1
  995. package/node_modules/lodash/fp/unary.js +0 -5
  996. package/node_modules/lodash/fp/unescape.js +0 -5
  997. package/node_modules/lodash/fp/union.js +0 -5
  998. package/node_modules/lodash/fp/unionBy.js +0 -5
  999. package/node_modules/lodash/fp/unionWith.js +0 -5
  1000. package/node_modules/lodash/fp/uniq.js +0 -5
  1001. package/node_modules/lodash/fp/uniqBy.js +0 -5
  1002. package/node_modules/lodash/fp/uniqWith.js +0 -5
  1003. package/node_modules/lodash/fp/uniqueId.js +0 -5
  1004. package/node_modules/lodash/fp/unnest.js +0 -1
  1005. package/node_modules/lodash/fp/unset.js +0 -5
  1006. package/node_modules/lodash/fp/unzip.js +0 -5
  1007. package/node_modules/lodash/fp/unzipWith.js +0 -5
  1008. package/node_modules/lodash/fp/update.js +0 -5
  1009. package/node_modules/lodash/fp/updateWith.js +0 -5
  1010. package/node_modules/lodash/fp/upperCase.js +0 -5
  1011. package/node_modules/lodash/fp/upperFirst.js +0 -5
  1012. package/node_modules/lodash/fp/useWith.js +0 -1
  1013. package/node_modules/lodash/fp/util.js +0 -2
  1014. package/node_modules/lodash/fp/value.js +0 -5
  1015. package/node_modules/lodash/fp/valueOf.js +0 -5
  1016. package/node_modules/lodash/fp/values.js +0 -5
  1017. package/node_modules/lodash/fp/valuesIn.js +0 -5
  1018. package/node_modules/lodash/fp/where.js +0 -1
  1019. package/node_modules/lodash/fp/whereEq.js +0 -1
  1020. package/node_modules/lodash/fp/without.js +0 -5
  1021. package/node_modules/lodash/fp/words.js +0 -5
  1022. package/node_modules/lodash/fp/wrap.js +0 -5
  1023. package/node_modules/lodash/fp/wrapperAt.js +0 -5
  1024. package/node_modules/lodash/fp/wrapperChain.js +0 -5
  1025. package/node_modules/lodash/fp/wrapperLodash.js +0 -5
  1026. package/node_modules/lodash/fp/wrapperReverse.js +0 -5
  1027. package/node_modules/lodash/fp/wrapperValue.js +0 -5
  1028. package/node_modules/lodash/fp/xor.js +0 -5
  1029. package/node_modules/lodash/fp/xorBy.js +0 -5
  1030. package/node_modules/lodash/fp/xorWith.js +0 -5
  1031. package/node_modules/lodash/fp/zip.js +0 -5
  1032. package/node_modules/lodash/fp/zipAll.js +0 -5
  1033. package/node_modules/lodash/fp/zipObj.js +0 -1
  1034. package/node_modules/lodash/fp/zipObject.js +0 -5
  1035. package/node_modules/lodash/fp/zipObjectDeep.js +0 -5
  1036. package/node_modules/lodash/fp/zipWith.js +0 -5
  1037. package/node_modules/lodash/fp.js +0 -2
  1038. package/node_modules/lodash/fromPairs.js +0 -30
  1039. package/node_modules/lodash/function.js +0 -25
  1040. package/node_modules/lodash/functions.js +0 -31
  1041. package/node_modules/lodash/functionsIn.js +0 -31
  1042. package/node_modules/lodash/get.js +0 -33
  1043. package/node_modules/lodash/groupBy.js +0 -41
  1044. package/node_modules/lodash/gt.js +0 -29
  1045. package/node_modules/lodash/gte.js +0 -30
  1046. package/node_modules/lodash/has.js +0 -35
  1047. package/node_modules/lodash/hasIn.js +0 -34
  1048. package/node_modules/lodash/head.js +0 -23
  1049. package/node_modules/lodash/identity.js +0 -21
  1050. package/node_modules/lodash/inRange.js +0 -55
  1051. package/node_modules/lodash/includes.js +0 -53
  1052. package/node_modules/lodash/index.js +0 -1
  1053. package/node_modules/lodash/indexOf.js +0 -42
  1054. package/node_modules/lodash/initial.js +0 -22
  1055. package/node_modules/lodash/intersection.js +0 -30
  1056. package/node_modules/lodash/intersectionBy.js +0 -45
  1057. package/node_modules/lodash/intersectionWith.js +0 -41
  1058. package/node_modules/lodash/invert.js +0 -42
  1059. package/node_modules/lodash/invertBy.js +0 -56
  1060. package/node_modules/lodash/invoke.js +0 -24
  1061. package/node_modules/lodash/invokeMap.js +0 -41
  1062. package/node_modules/lodash/isArguments.js +0 -36
  1063. package/node_modules/lodash/isArray.js +0 -26
  1064. package/node_modules/lodash/isArrayBuffer.js +0 -27
  1065. package/node_modules/lodash/isArrayLike.js +0 -33
  1066. package/node_modules/lodash/isArrayLikeObject.js +0 -33
  1067. package/node_modules/lodash/isBoolean.js +0 -29
  1068. package/node_modules/lodash/isBuffer.js +0 -38
  1069. package/node_modules/lodash/isDate.js +0 -27
  1070. package/node_modules/lodash/isElement.js +0 -25
  1071. package/node_modules/lodash/isEmpty.js +0 -77
  1072. package/node_modules/lodash/isEqual.js +0 -35
  1073. package/node_modules/lodash/isEqualWith.js +0 -41
  1074. package/node_modules/lodash/isError.js +0 -36
  1075. package/node_modules/lodash/isFinite.js +0 -36
  1076. package/node_modules/lodash/isFunction.js +0 -37
  1077. package/node_modules/lodash/isInteger.js +0 -33
  1078. package/node_modules/lodash/isLength.js +0 -35
  1079. package/node_modules/lodash/isMap.js +0 -27
  1080. package/node_modules/lodash/isMatch.js +0 -36
  1081. package/node_modules/lodash/isMatchWith.js +0 -41
  1082. package/node_modules/lodash/isNaN.js +0 -38
  1083. package/node_modules/lodash/isNative.js +0 -40
  1084. package/node_modules/lodash/isNil.js +0 -25
  1085. package/node_modules/lodash/isNull.js +0 -22
  1086. package/node_modules/lodash/isNumber.js +0 -38
  1087. package/node_modules/lodash/isObject.js +0 -31
  1088. package/node_modules/lodash/isObjectLike.js +0 -29
  1089. package/node_modules/lodash/isPlainObject.js +0 -62
  1090. package/node_modules/lodash/isRegExp.js +0 -27
  1091. package/node_modules/lodash/isSafeInteger.js +0 -37
  1092. package/node_modules/lodash/isSet.js +0 -27
  1093. package/node_modules/lodash/isString.js +0 -30
  1094. package/node_modules/lodash/isSymbol.js +0 -29
  1095. package/node_modules/lodash/isTypedArray.js +0 -27
  1096. package/node_modules/lodash/isUndefined.js +0 -22
  1097. package/node_modules/lodash/isWeakMap.js +0 -28
  1098. package/node_modules/lodash/isWeakSet.js +0 -28
  1099. package/node_modules/lodash/iteratee.js +0 -53
  1100. package/node_modules/lodash/join.js +0 -26
  1101. package/node_modules/lodash/kebabCase.js +0 -28
  1102. package/node_modules/lodash/keyBy.js +0 -36
  1103. package/node_modules/lodash/keys.js +0 -37
  1104. package/node_modules/lodash/keysIn.js +0 -32
  1105. package/node_modules/lodash/lang.js +0 -58
  1106. package/node_modules/lodash/last.js +0 -20
  1107. package/node_modules/lodash/lastIndexOf.js +0 -46
  1108. package/node_modules/lodash/lodash.js +0 -17259
  1109. package/node_modules/lodash/lodash.min.js +0 -136
  1110. package/node_modules/lodash/lowerCase.js +0 -27
  1111. package/node_modules/lodash/lowerFirst.js +0 -22
  1112. package/node_modules/lodash/lt.js +0 -29
  1113. package/node_modules/lodash/lte.js +0 -30
  1114. package/node_modules/lodash/map.js +0 -53
  1115. package/node_modules/lodash/mapKeys.js +0 -36
  1116. package/node_modules/lodash/mapValues.js +0 -43
  1117. package/node_modules/lodash/matches.js +0 -46
  1118. package/node_modules/lodash/matchesProperty.js +0 -44
  1119. package/node_modules/lodash/math.js +0 -17
  1120. package/node_modules/lodash/max.js +0 -29
  1121. package/node_modules/lodash/maxBy.js +0 -34
  1122. package/node_modules/lodash/mean.js +0 -22
  1123. package/node_modules/lodash/meanBy.js +0 -31
  1124. package/node_modules/lodash/memoize.js +0 -73
  1125. package/node_modules/lodash/merge.js +0 -39
  1126. package/node_modules/lodash/mergeWith.js +0 -39
  1127. package/node_modules/lodash/method.js +0 -34
  1128. package/node_modules/lodash/methodOf.js +0 -33
  1129. package/node_modules/lodash/min.js +0 -29
  1130. package/node_modules/lodash/minBy.js +0 -34
  1131. package/node_modules/lodash/mixin.js +0 -74
  1132. package/node_modules/lodash/multiply.js +0 -22
  1133. package/node_modules/lodash/negate.js +0 -40
  1134. package/node_modules/lodash/next.js +0 -35
  1135. package/node_modules/lodash/noop.js +0 -17
  1136. package/node_modules/lodash/now.js +0 -23
  1137. package/node_modules/lodash/nth.js +0 -29
  1138. package/node_modules/lodash/nthArg.js +0 -32
  1139. package/node_modules/lodash/number.js +0 -5
  1140. package/node_modules/lodash/object.js +0 -49
  1141. package/node_modules/lodash/omit.js +0 -57
  1142. package/node_modules/lodash/omitBy.js +0 -29
  1143. package/node_modules/lodash/once.js +0 -25
  1144. package/node_modules/lodash/orderBy.js +0 -47
  1145. package/node_modules/lodash/over.js +0 -24
  1146. package/node_modules/lodash/overArgs.js +0 -61
  1147. package/node_modules/lodash/overEvery.js +0 -34
  1148. package/node_modules/lodash/overSome.js +0 -37
  1149. package/node_modules/lodash/package.json +0 -19
  1150. package/node_modules/lodash/pad.js +0 -49
  1151. package/node_modules/lodash/padEnd.js +0 -39
  1152. package/node_modules/lodash/padStart.js +0 -39
  1153. package/node_modules/lodash/parseInt.js +0 -43
  1154. package/node_modules/lodash/partial.js +0 -50
  1155. package/node_modules/lodash/partialRight.js +0 -49
  1156. package/node_modules/lodash/partition.js +0 -43
  1157. package/node_modules/lodash/pick.js +0 -25
  1158. package/node_modules/lodash/pickBy.js +0 -37
  1159. package/node_modules/lodash/plant.js +0 -48
  1160. package/node_modules/lodash/property.js +0 -32
  1161. package/node_modules/lodash/propertyOf.js +0 -30
  1162. package/node_modules/lodash/pull.js +0 -29
  1163. package/node_modules/lodash/pullAll.js +0 -29
  1164. package/node_modules/lodash/pullAllBy.js +0 -33
  1165. package/node_modules/lodash/pullAllWith.js +0 -32
  1166. package/node_modules/lodash/pullAt.js +0 -43
  1167. package/node_modules/lodash/random.js +0 -91
  1168. package/node_modules/lodash/range.js +0 -46
  1169. package/node_modules/lodash/rangeRight.js +0 -41
  1170. package/node_modules/lodash/rearg.js +0 -33
  1171. package/node_modules/lodash/reduce.js +0 -51
  1172. package/node_modules/lodash/reduceRight.js +0 -36
  1173. package/node_modules/lodash/reject.js +0 -46
  1174. package/node_modules/lodash/remove.js +0 -53
  1175. package/node_modules/lodash/repeat.js +0 -37
  1176. package/node_modules/lodash/replace.js +0 -29
  1177. package/node_modules/lodash/rest.js +0 -40
  1178. package/node_modules/lodash/result.js +0 -56
  1179. package/node_modules/lodash/reverse.js +0 -34
  1180. package/node_modules/lodash/round.js +0 -26
  1181. package/node_modules/lodash/sample.js +0 -24
  1182. package/node_modules/lodash/sampleSize.js +0 -37
  1183. package/node_modules/lodash/seq.js +0 -16
  1184. package/node_modules/lodash/set.js +0 -35
  1185. package/node_modules/lodash/setWith.js +0 -32
  1186. package/node_modules/lodash/shuffle.js +0 -25
  1187. package/node_modules/lodash/size.js +0 -46
  1188. package/node_modules/lodash/slice.js +0 -37
  1189. package/node_modules/lodash/snakeCase.js +0 -28
  1190. package/node_modules/lodash/some.js +0 -51
  1191. package/node_modules/lodash/sortBy.js +0 -48
  1192. package/node_modules/lodash/sortedIndex.js +0 -24
  1193. package/node_modules/lodash/sortedIndexBy.js +0 -33
  1194. package/node_modules/lodash/sortedIndexOf.js +0 -31
  1195. package/node_modules/lodash/sortedLastIndex.js +0 -25
  1196. package/node_modules/lodash/sortedLastIndexBy.js +0 -33
  1197. package/node_modules/lodash/sortedLastIndexOf.js +0 -31
  1198. package/node_modules/lodash/sortedUniq.js +0 -24
  1199. package/node_modules/lodash/sortedUniqBy.js +0 -26
  1200. package/node_modules/lodash/split.js +0 -52
  1201. package/node_modules/lodash/spread.js +0 -63
  1202. package/node_modules/lodash/startCase.js +0 -29
  1203. package/node_modules/lodash/startsWith.js +0 -39
  1204. package/node_modules/lodash/string.js +0 -33
  1205. package/node_modules/lodash/stubArray.js +0 -23
  1206. package/node_modules/lodash/stubFalse.js +0 -18
  1207. package/node_modules/lodash/stubObject.js +0 -23
  1208. package/node_modules/lodash/stubString.js +0 -18
  1209. package/node_modules/lodash/stubTrue.js +0 -18
  1210. package/node_modules/lodash/subtract.js +0 -22
  1211. package/node_modules/lodash/sum.js +0 -24
  1212. package/node_modules/lodash/sumBy.js +0 -33
  1213. package/node_modules/lodash/tail.js +0 -22
  1214. package/node_modules/lodash/take.js +0 -37
  1215. package/node_modules/lodash/takeRight.js +0 -39
  1216. package/node_modules/lodash/takeRightWhile.js +0 -45
  1217. package/node_modules/lodash/takeWhile.js +0 -45
  1218. package/node_modules/lodash/tap.js +0 -29
  1219. package/node_modules/lodash/template.js +0 -284
  1220. package/node_modules/lodash/templateSettings.js +0 -71
  1221. package/node_modules/lodash/throttle.js +0 -69
  1222. package/node_modules/lodash/thru.js +0 -28
  1223. package/node_modules/lodash/times.js +0 -51
  1224. package/node_modules/lodash/toArray.js +0 -58
  1225. package/node_modules/lodash/toFinite.js +0 -42
  1226. package/node_modules/lodash/toInteger.js +0 -36
  1227. package/node_modules/lodash/toIterator.js +0 -23
  1228. package/node_modules/lodash/toJSON.js +0 -1
  1229. package/node_modules/lodash/toLength.js +0 -38
  1230. package/node_modules/lodash/toLower.js +0 -28
  1231. package/node_modules/lodash/toNumber.js +0 -64
  1232. package/node_modules/lodash/toPairs.js +0 -30
  1233. package/node_modules/lodash/toPairsIn.js +0 -30
  1234. package/node_modules/lodash/toPath.js +0 -33
  1235. package/node_modules/lodash/toPlainObject.js +0 -32
  1236. package/node_modules/lodash/toSafeInteger.js +0 -37
  1237. package/node_modules/lodash/toString.js +0 -28
  1238. package/node_modules/lodash/toUpper.js +0 -28
  1239. package/node_modules/lodash/transform.js +0 -65
  1240. package/node_modules/lodash/trim.js +0 -47
  1241. package/node_modules/lodash/trimEnd.js +0 -41
  1242. package/node_modules/lodash/trimStart.js +0 -43
  1243. package/node_modules/lodash/truncate.js +0 -111
  1244. package/node_modules/lodash/unary.js +0 -22
  1245. package/node_modules/lodash/unescape.js +0 -34
  1246. package/node_modules/lodash/union.js +0 -26
  1247. package/node_modules/lodash/unionBy.js +0 -39
  1248. package/node_modules/lodash/unionWith.js +0 -34
  1249. package/node_modules/lodash/uniq.js +0 -25
  1250. package/node_modules/lodash/uniqBy.js +0 -31
  1251. package/node_modules/lodash/uniqWith.js +0 -28
  1252. package/node_modules/lodash/uniqueId.js +0 -28
  1253. package/node_modules/lodash/unset.js +0 -34
  1254. package/node_modules/lodash/unzip.js +0 -45
  1255. package/node_modules/lodash/unzipWith.js +0 -39
  1256. package/node_modules/lodash/update.js +0 -35
  1257. package/node_modules/lodash/updateWith.js +0 -33
  1258. package/node_modules/lodash/upperCase.js +0 -27
  1259. package/node_modules/lodash/upperFirst.js +0 -22
  1260. package/node_modules/lodash/util.js +0 -34
  1261. package/node_modules/lodash/value.js +0 -1
  1262. package/node_modules/lodash/valueOf.js +0 -1
  1263. package/node_modules/lodash/values.js +0 -34
  1264. package/node_modules/lodash/valuesIn.js +0 -32
  1265. package/node_modules/lodash/without.js +0 -31
  1266. package/node_modules/lodash/words.js +0 -35
  1267. package/node_modules/lodash/wrap.js +0 -30
  1268. package/node_modules/lodash/wrapperAt.js +0 -48
  1269. package/node_modules/lodash/wrapperChain.js +0 -34
  1270. package/node_modules/lodash/wrapperLodash.js +0 -147
  1271. package/node_modules/lodash/wrapperReverse.js +0 -44
  1272. package/node_modules/lodash/wrapperValue.js +0 -21
  1273. package/node_modules/lodash/xor.js +0 -28
  1274. package/node_modules/lodash/xorBy.js +0 -39
  1275. package/node_modules/lodash/xorWith.js +0 -34
  1276. package/node_modules/lodash/zip.js +0 -22
  1277. package/node_modules/lodash/zipObject.js +0 -24
  1278. package/node_modules/lodash/zipObjectDeep.js +0 -23
  1279. package/node_modules/lodash/zipWith.js +0 -32
  1280. package/node_modules/pptxgenjs/dist/pptxgen.bundle.js +0 -96
  1281. package/node_modules/pptxgenjs/dist/pptxgen.bundle.js.map +0 -1
  1282. package/node_modules/xlsx-populate/browser/xlsx-populate-no-encryption.js +0 -44482
  1283. package/node_modules/xlsx-populate/browser/xlsx-populate-no-encryption.min.js +0 -2
  1284. package/node_modules/xlsx-populate/browser/xlsx-populate-no-encryption.min.js.map +0 -1
  1285. package/node_modules/xlsx-populate/browser/xlsx-populate.js +0 -63193
  1286. package/node_modules/xlsx-populate/browser/xlsx-populate.min.js +0 -2
  1287. package/node_modules/xlsx-populate/browser/xlsx-populate.min.js.map +0 -1
  1288. package/node_modules/xlsx-populate/examples/basic/index.js +0 -14
  1289. package/node_modules/xlsx-populate/examples/basic/out.xlsx +0 -0
  1290. package/node_modules/xlsx-populate/examples/browser/index.html +0 -127
  1291. package/node_modules/xlsx-populate/examples/encryption/in.xlsx +0 -0
  1292. package/node_modules/xlsx-populate/examples/encryption/index.js +0 -14
  1293. package/node_modules/xlsx-populate/examples/encryption/out.xlsx +0 -0
  1294. package/node_modules/xlsx-populate/examples/ranges/index.js +0 -22
  1295. package/node_modules/xlsx-populate/examples/ranges/out.xlsx +0 -0
  1296. package/node_modules/xlsx-populate/examples/ranges/template.xlsx +0 -0
  1297. package/node_modules/xlsx-populate/examples/styles/index.js +0 -156
  1298. package/node_modules/xlsx-populate/examples/styles/out.xlsx +0 -0
  1299. package/src/templates/skills/konoha/references/architecture.md +0 -74
  1300. package/src/templates/skills/konoha/references/benchmark.md +0 -53
  1301. package/src/templates/skills/konoha/references/docs.md +0 -46
  1302. package/src/templates/skills/konoha/references/test.md +0 -64
  1303. package/src/templates/skills/konoha/references/workflow.md +0 -104
  1304. package/src/workflow/qa-automation/browser_container_agent.js +0 -269
  1305. package/src/workflow/qa-automation/browser_session_manager.js +0 -399
  1306. package/src/workflow/qa-automation/browser_workspace_security.js +0 -162
@@ -1,4 +1,4 @@
1
- import{$ as e,B as t,C as n,F as r,I as i,J as a,M as o,O as s,P as c,Q as l,S as u,T as d,U as f,V as p,Z as m,a as h,ct as g,et as _,f as v,ft as y,i as b,it as x,l as S,lt as C,nt as w,o as T,ot as E,p as D,pt as O,rt as k,st as A,t as j,tt as M,u as N,z as P}from"../chunks/C5rL-2rZ.js";import{t as F}from"../chunks/CMfYCyHI.js";import{t as I}from"../chunks/DVDyaR1u.js";import"../chunks/kQisoOdf.js";import{t as L}from"../chunks/DExkVRiT.js";import{t as R}from"../chunks/KBylTpfW.js";import"../chunks/BRFppjEf.js";import{t as ee}from"../chunks/KQlRtB_5.js";var z=i(`<div class="p-5 rounded-2xl border animate-pulse space-y-3" style="background: var(--color-surface); border-color: var(--color-border);"><div class="w-3/4 h-4 rounded theme-bg-soft"></div> <div class="w-1/2 h-3 rounded theme-bg-soft"></div> <div class="w-full h-8 rounded-xl theme-bg-soft pt-2"></div></div>`),B=i(`<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"></div>`),V=i(`<div class="p-6 rounded-2xl border text-xs text-status-danger bg-status-danger-soft border-status-danger-soft"> </div>`),H=i(`<div class="p-16 text-center rounded-3xl border" style="background: var(--color-surface); border-color: var(--color-border);"><div class="w-12 h-12 rounded-2xl mx-auto mb-3 flex items-center justify-center border text-xl" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"><svg class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg></div> <h3 class="text-sm font-bold" style="color: var(--color-text);"> </h3> <p class="text-xs mt-1" style="color: var(--color-text-muted);">Try searching for "react", "docker", "kubernetes", "tailwind", or "nextjs".</p></div>`),U=i(`<span class="px-2 py-0.5 rounded-full text-[10px] font-bold border shrink-0 text-action-primary border-status-info-soft bg-status-info-soft"> </span>`),W=i(`<div class="flex items-center gap-1.5 text-xs" style="color: var(--color-text-muted);"><svg class="w-3.5 h-3.5 shrink-0" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.53 1.032 1.53 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"></path></svg> <a target="_blank" rel="noopener noreferrer" class="hover:underline font-mono truncate text-[11px]" style="color: var(--color-primary);"> </a></div>`),G=i(`<div class="w-full py-2 rounded-xl border text-xs font-bold flex items-center justify-center gap-1.5 opacity-80" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text-muted);"><svg class="w-4 h-4 text-status-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span>Already Installed in Village</span></div>`),K=i(`<span class="animate-spin w-3.5 h-3.5 border-2 border-white border-t-transparent rounded-full"></span> <span> </span>`,1),te=i(`<svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> <span>Install Skill</span>`,1),ne=i(`<button type="button" class="w-full py-2 rounded-xl text-xs font-bold text-white flex items-center justify-center gap-2 transition-all hover:scale-[1.02] shadow-md cursor-pointer disabled:opacity-50" style="background: linear-gradient(135deg, var(--color-primary), var(--color-accent, #6366f1));"><!></button>`),q=i(`<div class="p-5 rounded-2xl border flex flex-col justify-between gap-4 transition-all hover:scale-[1.01] hover:border-[var(--color-primary)] shadow-sm" style="background: var(--color-surface); border-color: var(--color-border);"><div class="space-y-2"><div class="flex items-start justify-between gap-2"><div class="flex items-center gap-2"><span class="text-xs font-mono px-2 py-0.5 rounded-md border font-bold" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text-muted);"></span> <span class="text-xs font-black font-mono truncate max-w-[180px]" style="color: var(--color-text);"> </span></div> <!></div> <!></div> <div class="pt-2 border-t" style="border-color: var(--color-border);"><!></div></div>`),re=i(`<div class="space-y-4"><div class="flex items-center justify-between flex-wrap gap-3 p-4 rounded-2xl border" style="background: var(--color-surface); border-color: var(--color-border);"><div class="flex items-center gap-3"><div class="w-9 h-9 rounded-xl flex items-center justify-center border font-bold" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path></svg></div> <div><h2 class="text-sm sm:text-base font-bold" style="color: var(--color-text);">skills.sh Global Registry Search</h2> <p class="text-xs" style="color: var(--color-text-muted);">Equivalent to <code class="px-1.5 py-0.5 rounded font-mono text-[11px] theme-bg-subtle"> </code> · 1-click install</p></div></div> <div class="flex items-center gap-2 text-xs font-semibold" style="color: var(--color-text-muted);"><span> </span></div></div> <!></div>`);function ie(r,i){C(i,!0);let s=j(i,`registryResults`,19,()=>[]),p=j(i,`installingSkill`,3,null);var m=re(),h=l(m),v=l(h),b=M(l(v),2),x=M(l(b),2),S=M(l(x)),w=_(S);y(),O(x),O(b),O(v);var D=M(v,2),k=l(D),A=_(k);O(D),O(h);var N=M(h,2),P=e=>{var t=B();u(t,20,()=>[,,,,,,],n,(e,t)=>{var n=z();c(e,n)}),O(t),c(e,t)},F=e=>{var t=V(),n=_(t);a(()=>o(n,`Failed to query skills.sh registry: ${i.registryError??``}`)),c(e,t)},I=e=>{var t=H(),n=M(l(t),2),r=_(n);y(2),O(t),a(()=>o(r,`No skills found matching "${i.searchQuery??``}"`)),c(e,t)},L=r=>{var m=B();u(m,21,s,n,(n,r,s)=>{let u=E(()=>f(r).skillId||f(r).name),m=E(()=>i.isinstalled(f(u)));var h=q(),g=l(h),v=l(g),b=l(v),x=l(b);x.textContent=`#${s+1}`;var S=M(x,2),C=_(S,!0);O(b);var w=M(b,2),D=e=>{var t=U(),n=_(t);a(e=>o(n,`${e??``} installs`),[()=>f(r).installs.toLocaleString()]),c(e,t)};d(w,e=>{f(r).installs!==void 0&&e(D)}),O(v);var k=M(v,2),A=e=>{var t=W(),n=M(l(t),2),i=_(n,!0);O(t),a(()=>{T(n,`href`,`https://github.com/${f(r).source??``}`),o(i,f(r).source)}),c(e,t)};d(k,e=>{f(r).source&&e(A)}),O(g);var j=M(g,2),N=l(j),P=e=>{var t=G();c(e,t)},F=n=>{var s=ne(),m=l(s),h=t=>{var n=K(),r=M(e(n),2),i=_(r);a(()=>o(i,`Installing "${f(u)??``}"...`)),c(t,n)},g=e=>{var t=te();y(2),c(e,t)};d(m,e=>{p()===f(u)?e(h):e(g,-1)}),O(s),a(()=>s.disabled=p()===f(u)),t(`click`,s,()=>i.oninstall(f(r))),c(n,s)};d(N,e=>{f(m)?e(P):e(F,-1)}),O(j),O(h),a(()=>{T(S,`title`,f(u)),o(C,f(u))}),c(n,h)}),O(m),c(r,m)};d(N,e=>{i.registryLoading?e(P):i.registryError?e(F,1):s().length===0?e(I,2):e(L,-1)}),O(m),a(()=>{o(w,`konoha skill search ${(i.searchQuery||`react`)??``}`),o(A,`Found ${s().length??``} open-source skills`)}),c(r,m),g()}P([`click`]);var ae=i(`<div class="p-12 text-center rounded-3xl border" style="background: var(--color-surface); border-color: var(--color-border);"><div class="inline-block animate-spin w-8 h-8 rounded-full border-4 border-t-transparent mb-3" style="border-color: var(--color-primary); border-top-color: transparent;"></div> <p class="text-xs font-semibold" style="color: var(--color-text-muted);">Fetching skill content...</p></div>`),oe=i(`<option> </option>`),se=i(`<span class="px-2.5 py-1 rounded-lg border text-xs font-medium" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text);"> </span>`),ce=i(`<div><span class="text-[11px] font-bold uppercase tracking-wider block mb-2" style="color: var(--color-text-muted);">Indexed Keywords & Tags:</span> <div class="flex flex-wrap gap-1.5"></div></div>`),le=i(`<div><div class="flex items-center justify-between mb-2"><span class="text-[11px] font-bold uppercase tracking-wider" style="color: var(--color-text-muted);">Skill Instructions / Manual:</span> <span class="text-[11px] font-mono" style="color: var(--color-text-muted);"> </span></div> <pre class="p-5 rounded-2xl border text-xs font-mono overflow-x-auto whitespace-pre-wrap max-h-[50vh] overflow-y-auto leading-relaxed" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text);"> </pre></div>`),ue=i(`<div class="p-2.5 rounded-xl border text-[11px] font-mono overflow-x-auto" style="background: var(--color-surface-hover); border-color: var(--color-border);"><span class="font-bold theme-text-muted mr-2">Vector Sample:</span> <span class="text-[var(--theme-success)] "> </span></div>`),J=i(`<div class="p-4 rounded-2xl border space-y-2.5 transition-all hover:border-status-success-soft" style="background: var(--color-surface); border-color: var(--color-border);"><div class="flex items-center justify-between gap-2"><span class="text-xs font-bold px-2 py-0.5 rounded-lg border text-action-primary border-status-info-soft bg-status-info-soft font-mono"> </span> <span class="text-[10px] font-mono px-2 py-0.5 rounded-lg border text-status-success border-status-success-soft bg-status-success-soft">384-dim Float32 Vector</span></div> <!> <div class="text-xs font-mono p-3 rounded-xl border leading-relaxed whitespace-pre-wrap max-h-32 overflow-y-auto" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text);"> </div></div>`),de=i(`<div class="space-y-3 max-h-[50vh] overflow-y-auto pr-1"></div>`),fe=i(`<div class="p-8 text-center rounded-2xl border space-y-3" style="background: var(--color-surface-hover); border-color: var(--color-border);"><p class="text-xs font-semibold" style="color: var(--color-text-muted);">No vector chunks generated for this skill yet.</p> <p class="text-[11px]" style="color: var(--color-text-muted);">Click below or run <code class="px-1.5 py-0.5 rounded theme-bg-subtle font-mono">konoha migrate</code> to vectorize all skills into sqlite-vector.</p> <button type="button" class="btn-3d btn-3d-primary px-4 py-2 rounded-xl text-xs font-bold inline-flex items-center gap-2 cursor-pointer shadow-md disabled:opacity-50"><svg fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <span> </span></button></div>`),pe=i(`<div class="space-y-4"><div class="p-3.5 rounded-xl border flex flex-wrap items-center justify-between gap-3 text-xs" style="background: var(--color-surface-hover); border-color: var(--color-border);"><div class="flex items-center gap-2"><span class="w-2 h-2 rounded-full bg-status-success-soft animate-pulse"></span> <span class="font-bold" style="color: var(--color-text);">Models:</span> <span class="font-mono text-[var(--theme-success)] font-bold">IBM Granite 97M (ONNX) + MS MARCO MiniLM</span></div> <div class="flex items-center gap-3 text-[11px] font-mono" style="color: var(--color-text-muted);"><span>Embedding: <b class="text-action-primary ">384-dim (Cosine)</b></span> <span>RAG Reranker: <b class="text-action-primary ">Cross-Encoder + RRF (k=60)</b></span> <span>Execution: <b class="text-[var(--theme-success)] ">100% Offline INT8</b></span></div></div> <!></div>`),Y=i(`<div class="p-6 rounded-3xl border shadow-sm space-y-6" style="background: var(--color-surface); border-color: var(--color-border);"><div class="flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b pb-4" style="border-color: var(--color-border);"><div><div class="flex items-center gap-2"><h2 class="text-xl font-bold" style="color: var(--color-text);"> </h2> <span class="text-xs px-2.5 py-0.5 rounded-full border font-bold uppercase" style="background: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"> </span></div> <p class="text-[11px] font-mono mt-1" style="color: var(--color-text-muted);"> </p></div> <div class="flex items-center gap-2"><button type="button" class="px-3 py-1.5 rounded-xl border text-xs font-semibold flex items-center gap-1.5 transition-all text-status-danger border-status-danger-soft bg-status-danger-soft hover:bg-status-danger-soft cursor-pointer"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg> <span>Delete Skill</span></button></div></div> <div class="p-4 rounded-2xl border flex flex-col sm:flex-row items-center justify-between gap-4" style="background: var(--color-surface-hover); border-color: var(--color-border);"><div class="flex items-center gap-2"><span class="w-2 h-2 rounded-full bg-status-success-soft animate-pulse"></span> <span class="text-xs font-bold" style="color: var(--color-text);">Embed / Unembed for Ninja Subagent:</span></div> <div class="flex items-center gap-2 w-full sm:w-auto"><select class="px-3 py-1.5 rounded-[3px] border text-xs font-semibold focus:outline-none login-field-effect" style="background: var(--color-surface); color: var(--color-text);"></select> <button type="button" class="px-3 py-1.5 rounded-[3px] border text-xs font-bold transition-all hover:scale-105 cursor-pointer text-status-success border-status-success-soft bg-status-success-soft/15">Embed</button> <button type="button" class="px-3 py-1.5 rounded-xl border text-xs font-bold transition-all hover:scale-105 cursor-pointer theme-text-secondary theme-border theme-bg-subtle">Unembed</button></div></div> <!> <div class="space-y-4"><div class="flex items-center gap-2 border-b pb-2" style="border-color: var(--color-border);"><button type="button"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <span>Instructions & Manual</span></button> <button type="button"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <span>Vector Chunks & Embeddings</span> <span> </span></button></div> <!></div></div>`),me=i(`<div class="p-12 text-center rounded-3xl border space-y-4" style="background: var(--color-surface); border-color: var(--color-border);"><div class="w-12 h-12 rounded-2xl mx-auto flex items-center justify-center border text-xl" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"><svg class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path></svg></div> <div><h3 class="text-base font-bold" style="color: var(--color-text);"> </h3> <p class="text-xs max-w-md mx-auto mt-1" style="color: var(--color-text-muted);">Search the public registry on <code class="font-mono text-xs">skills.sh</code> (exact CLI equivalent: <code class="font-mono text-xs"> </code>).</p></div> <button type="button" class="px-5 py-2.5 rounded-xl text-xs font-bold text-white inline-flex items-center gap-2 shadow-md cursor-pointer hover:scale-105 transition-all" style="background: linear-gradient(135deg, var(--color-primary), var(--color-accent, #6366f1));"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg> <span> </span></button></div>`),X=i(`<div class="p-16 text-center rounded-3xl border" style="background: var(--color-surface); border-color: var(--color-border);"><div class="w-12 h-12 rounded-2xl mx-auto mb-3 flex items-center justify-center border" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"><svg class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"></path></svg></div> <h3 class="text-sm font-bold" style="color: var(--color-text);">Select a skill to inspect</h3> <p class="text-xs mt-1" style="color: var(--color-text-muted);">Select any skill from the left list to view SOP instructions or embed it into agents.</p></div>`),he=i(`<div class="lg:col-span-2"><!></div>`);function ge(i,s){C(s,!0);let p=j(s,`selectedSkill`,3,null),m=j(s,`bind`,7),h=j(s,`activeTab`,15,`content`),v=j(s,`isEmbedding`,3,!1),b=j(s,`searchQuery`,3,``),x=j(s,`agentsList`,19,()=>[]);var w=he(),T=l(w),E=e=>{var t=ae();c(e,t)},k=e=>{var r=Y(),i=l(r),g=l(i),b=l(g),C=l(b),w=_(C,!0),T=M(C,2),E=_(T,!0);O(b);var k=M(b,2),A=_(k);O(g);var j=M(g,2),P=_(j);O(i);var F=M(i,2),I=M(l(F),2),L=l(I);u(L,21,x,n,(e,t)=>{var n=oe(),r=_(n,!0),i={};a(()=>{o(r,f(t).name),i!==(i=f(t).id)&&(n.value=(n.__value=i)??``)}),c(e,n)}),O(L),N(L);var R=M(L,2),ee=M(R,2);O(I),O(F);var z=M(F,2),B=e=>{var t=ce(),r=M(l(t),2);u(r,21,()=>String(p().tags).split(`,`),n,(e,t)=>{var n=se(),r=_(n,!0);a(e=>o(r,e),[()=>f(t).trim()]),c(e,n)}),O(r),O(t),c(e,t)};d(z,e=>{p().tags&&e(B)});var V=M(z,2),H=l(V),U=l(H),W=M(U,2),G=M(l(W),4),K=_(G,!0);O(W),O(H);var te=M(H,2),ne=e=>{var t=le(),n=l(t),r=M(l(n),2),i=_(r);O(n);var s=M(n,2),u=_(s,!0);O(t),a(()=>{o(i,`${(p().line_count||0)??``} lines (${(p().byte_size||0)??``} bytes)`),o(u,p().content)}),c(e,t)},q=e=>{var r=pe(),i=M(l(r),2),m=e=>{var t=de();u(t,21,()=>p().chunks,n,(e,t)=>{var n=J(),r=l(n),i=l(r),s=_(i);y(2),O(r);var u=M(r,2),p=e=>{var n=ue(),r=M(l(n),2),i=_(r);O(n),a(e=>o(i,`[${e??``} ... 384 dimensions]`),[()=>f(t).vector_sample.join(`, `)]),c(e,n)};d(u,e=>{f(t).vector_sample&&f(t).vector_sample.length>0&&e(p)});var m=M(u,2),h=_(m,!0);O(n),a(()=>{o(s,`Chunk #${f(t).chunk_index+1}`),o(h,f(t).chunk_text)}),c(e,n)}),O(t),c(e,t)},h=e=>{var n=fe(),r=M(l(n),4),i=l(r),u=M(i,2),d=_(u,!0);O(r),O(n),a(()=>{r.disabled=v(),D(i,0,`w-4 h-4 ${v()?`animate-spin`:``}`),o(d,v()?`Vectorizing Skills...`:`Re-embed Vectors Now`)}),t(`click`,r,function(...e){s.onreembed?.apply(this,e)}),c(e,n)};d(i,e=>{p().chunks&&p().chunks.length>0?e(m):e(h,-1)}),O(r),c(e,r)};d(te,e=>{h()===`instructions`?e(ne):h()===`vectors`&&e(q,1)}),O(V),O(r),a(()=>{o(w,p().name),o(E,p().type||`skill`),o(A,`Path: ${(p().file_path||`Embedded in SQLite database`)??``}`),D(U,1,`btn-3d px-3.5 py-1.5 rounded-xl text-xs font-bold transition-all cursor-pointer flex items-center gap-1.5 ${h()===`instructions`?`btn-3d-primary text-white shadow-sm`:`btn-3d-secondary`}`),D(W,1,`btn-3d px-3.5 py-1.5 rounded-xl text-xs font-bold transition-all cursor-pointer flex items-center gap-1.5 ${h()===`vectors`?`btn-3d-primary text-white shadow-sm`:`btn-3d-secondary`}`),D(G,1,`px-1.5 py-0.2 rounded-full text-[10px] font-mono ${h()===`vectors`?`theme-bg-muted`:`bg-status-success-soft text-[var(--theme-success)] `}`),o(K,p().chunks_count||p().chunks?.length||0)}),t(`click`,P,()=>s.ondelete(p().name)),S(L,m),t(`click`,R,()=>s.onembed(p().name,m())),t(`click`,ee,()=>s.onunembed(p().name,m())),t(`click`,U,()=>h(`instructions`)),t(`click`,W,()=>h(`vectors`)),c(e,r)},A=n=>{var i=r(),u=e(i),f=e=>{var n=me(),r=M(l(n),2),i=l(r),u=_(i),d=M(i,2),f=M(l(d),3),p=_(f);y(),O(d),O(r);var m=M(r,2),h=M(l(m),2),g=_(h);O(m),O(n),a(()=>{o(u,`No local skills matching "${b()??``}"`),o(p,`konoha skill search ${b()??``}`),o(g,`Search skills.sh for "${b()??``}"`)}),t(`click`,m,()=>s.onregistry(b())),c(e,n)},p=e=>{var t=X();c(e,t)};d(u,e=>{s.skills.length===0&&b()?e(f):e(p,-1)}),c(n,i)};d(T,e=>{s.skillDetailLoading?e(E):p()?e(k,1):e(A,-1)}),O(w),c(i,w),g()}P([`click`]);var Z=i(`<option> </option>`),_e=i(`<span class="animate-spin w-3.5 h-3.5 border-2 border-white border-t-transparent rounded-full"></span> <span>Creating...</span>`,1),ve=i(`<span>Save & Index Skill</span>`),Q=i(`<div class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-[var(--theme-overlay)] 40 backdrop-blur-sm animate-in fade-in duration-150"><div class="modal-card modal-3d w-full max-w-2xl p-6 rounded-3xl border shadow-2xl space-y-4 animate-in zoom-in-95 duration-150 max-h-[90vh] overflow-y-auto glass-frost-strong" style="border-color: var(--theme-modal-border, color-mix(in srgb, var(--theme-grad-1) 38%, var(--color-border))); color: var(--color-text); box-shadow: var(--theme-modal-shadow, var(--shadow-3d));"><div class="flex items-center justify-between pb-3 border-b" style="border-color: var(--color-border);"><div class="flex items-center gap-2.5"><div class="w-8 h-8 rounded-xl flex items-center justify-center border shadow-sm" style="background: var(--theme-4gradient); border-color: transparent; color: #ffffff;"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path></svg></div> <div><h3 class="text-base font-bold" style="color: var(--color-text);">Create New Ninja Skill</h3> <p class="text-xs" style="color: var(--color-text-muted);">Define rules, instructions, and SOPs for subagents</p></div></div> <button type="button" class="w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold border transition-colors hover:scale-105 cursor-pointer" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);" aria-label="Close create skill modal"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div> <div class="space-y-3.5"><div><label for="skill-name" class="block text-xs font-bold mb-1" style="color: var(--color-text);">Skill Name (slug)</label> <input id="skill-name" type="text" placeholder="e.g. docker-compose-scaffolding, redis-caching-skill" class="w-full px-3.5 py-2.5 rounded-[3px] border text-xs login-field-effect input-theme font-mono" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text);"/></div> <div><label for="skill-desc" class="block text-xs font-bold mb-1" style="color: var(--color-text);">Description (short summary)</label> <input id="skill-desc" type="text" placeholder="Standard Operating Procedures for scaffolding docker-compose clusters..." class="w-full px-3.5 py-2.5 rounded-[3px] border text-xs login-field-effect input-theme font-medium" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text);"/></div> <div class="grid grid-cols-1 sm:grid-cols-2 gap-3"><div><label for="skill-tags" class="block text-xs font-bold mb-1" style="color: var(--color-text);">Tags (comma-separated)</label> <input id="skill-tags" type="text" placeholder="docker, devops, compose, backend" class="w-full px-3.5 py-2.5 rounded-[3px] border text-xs login-field-effect input-theme" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text);"/></div> <div><label for="skill-embed" class="block text-xs font-bold mb-1" style="color: var(--color-text);">Embed in Agent (optional)</label> <select id="skill-embed" class="w-full px-3.5 py-2.5 rounded-[3px] border text-xs font-semibold login-field-effect focus:outline-none" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text);"><option>None (Global standalone skill)</option><!></select></div></div> <div><label for="skill-content" class="block text-xs font-bold mb-1" style="color: var(--color-text);">Instruction Manual / SOP Content (Markdown)</label> <textarea id="skill-content" rows="8" class="w-full p-3.5 rounded-[3px] border text-xs font-mono login-field-effect input-theme leading-relaxed" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text);"></textarea></div></div> <div class="flex items-center justify-end gap-3 pt-3 border-t" style="border-color: var(--color-border);"><button type="button" class="btn-3d btn-3d-secondary px-4 py-2.5 rounded-xl border text-xs font-semibold cursor-pointer">Cancel</button> <button type="button" class="btn-3d btn-3d-primary px-5 py-2.5 rounded-xl font-bold text-xs flex items-center gap-2 cursor-pointer text-white shadow-md disabled:opacity-50"><!></button></div></div></div>`);function ye(i,s){C(s,!0);let p=j(s,`newSkill`,15),m=j(s,`agentsList`,19,()=>[]),v=j(s,`isSubmitting`,3,!1),x=j(s,`open`,3,!1);var w=r(),T=e(w),E=e=>{var r=Q(),i=l(r),g=l(i),x=M(l(g),2);O(g);var C=M(g,2),w=l(C),T=M(l(w),2);h(T),O(w);var E=M(w,2),D=M(l(E),2);h(D),O(E);var k=M(E,2),j=l(k),P=M(l(j),2);h(P),O(j);var F=M(j,2),I=M(l(F),2),L=l(I);L.value=L.__value=``;var R=M(L);u(R,17,m,n,(e,t)=>{var n=Z(),r=_(n,!0),i={};a(()=>{o(r,f(t).name),i!==(i=f(t).id)&&(n.value=(n.__value=i)??``)}),c(e,n)}),O(I),N(I),O(F),O(k);var ee=M(k,2),z=M(l(ee),2);A(z),O(ee),O(C);var B=M(C,2),V=l(B),H=M(V,2),U=l(H),W=e=>{var t=_e();y(2),c(e,t)},G=e=>{var t=ve();c(e,t)};d(U,e=>{v()?e(W):e(G,-1)}),O(H),O(B),O(i),O(r),a(e=>H.disabled=e,[()=>v()||!p().name.trim()]),t(`click`,r,function(...e){s.onclose?.apply(this,e)}),t(`click`,i,e=>e.stopPropagation()),t(`click`,x,function(...e){s.onclose?.apply(this,e)}),b(T,()=>p().name,e=>p(p().name=e,!0)),b(D,()=>p().description,e=>p(p().description=e,!0)),b(P,()=>p().tags,e=>p(p().tags=e,!0)),S(I,()=>p().embed_agent,e=>p(p().embed_agent=e,!0)),b(z,()=>p().content,e=>p(p().content=e,!0)),t(`click`,V,function(...e){s.onclose?.apply(this,e)}),t(`click`,H,function(...e){s.onsubmit?.apply(this,e)}),c(e,r)};d(T,e=>{x()&&e(E)}),c(i,w),g()}P([`click`]);var be=i(`<button type="button" class="absolute right-3 top-1/2 -translate-y-1/2 text-xs font-bold opacity-60 hover:opacity-100 cursor-pointer flex items-center justify-center w-5 h-5" style="color: var(--color-text-muted);" aria-label="Clear registry query"><svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>`),xe=i(`<div class="p-4 rounded-2xl border animate-pulse flex items-center justify-between" style="background: var(--color-surface); border-color: var(--color-border);"><div class="space-y-2"><div class="w-32 h-4 rounded theme-bg-soft"></div> <div class="w-48 h-3 rounded theme-bg-soft"></div></div> <div class="w-20 h-8 rounded-xl theme-bg-soft"></div></div>`),Se=i(`<div class="space-y-2"></div>`),Ce=i(`<div class="p-4 rounded-2xl border text-xs text-status-danger bg-status-danger-soft" style="border-color: rgba(239, 68, 68, 0.3);"> </div>`),we=i(`<div class="flex flex-col items-center justify-center py-12 text-center"><svg class="w-10 h-10 mb-2 opacity-40" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg> <p class="text-xs font-semibold" style="color: var(--color-text);">No skills found</p> <p class="text-xs mt-1" style="color: var(--color-text-muted);">Try searching for popular topics like "docker", "k8s", "helm", or "nextjs"</p></div>`),Te=i(`<span class="px-2 py-0.5 rounded-full text-[10px] font-semibold border" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text-muted);"> </span>`),Ee=i(`<div class="flex items-center gap-1 text-[11px]" style="color: var(--color-text-muted);"><span>Source:</span> <a target="_blank" rel="noopener noreferrer" class="hover:underline font-mono inline-flex items-center gap-1" style="color: var(--color-primary);"> <svg class="w-2.5 h-2.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></div>`),De=i(`<span class="px-3 py-1.5 rounded-xl border text-xs font-semibold inline-flex items-center gap-1.5 opacity-80" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text-muted);"><svg class="w-3.5 h-3.5 text-status-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span>Installed</span></span>`),Oe=i(`<span class="animate-spin w-3 h-3 border-2 border-white border-t-transparent rounded-full"></span> <span>Installing...</span>`,1),ke=i(`<svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> <span>Install</span>`,1),Ae=i(`<button type="button" class="px-3.5 py-1.5 rounded-xl text-xs font-bold text-white flex items-center gap-1.5 transition-all hover:scale-105 shadow-sm cursor-pointer disabled:opacity-50" style="background: linear-gradient(135deg, var(--color-primary), var(--color-accent, #6366f1));"><!></button>`),je=i(`<div class="p-3.5 rounded-2xl border flex items-center justify-between gap-3 transition-all hover:border-[var(--color-primary)]" style="background: var(--color-surface); border-color: var(--color-border);"><div class="space-y-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-xs font-bold font-mono truncate" style="color: var(--color-text);"> </span> <!></div> <!></div> <div class="shrink-0"><!></div></div>`),$=i(`<div class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-[var(--theme-overlay)] 40 backdrop-blur-sm animate-in fade-in duration-150"><div class="modal-card modal-3d w-full max-w-2xl p-6 rounded-3xl border shadow-2xl space-y-4 animate-in zoom-in-95 duration-150 max-h-[90vh] flex flex-col glass-frost-strong" style="border-color: var(--theme-modal-border, color-mix(in srgb, var(--theme-grad-1) 38%, var(--color-border))); color: var(--color-text); box-shadow: var(--theme-modal-shadow, var(--shadow-3d));"><div class="flex items-center justify-between pb-3 border-b" style="border-color: var(--color-border);"><div class="flex items-center gap-2.5"><div class="w-8 h-8 rounded-xl flex items-center justify-center border shadow-sm" style="background: var(--theme-4gradient); border-color: transparent; color: #ffffff;"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path></svg></div> <div><h3 class="text-base font-bold" style="color: var(--color-text);">skills.sh Public Registry</h3> <p class="text-xs" style="color: var(--color-text-muted);">Search and install open-source agent skills into your village with 1-click</p></div></div> <button type="button" class="w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold border transition-colors hover:scale-105 cursor-pointer" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);" aria-label="Close registry modal"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div> <div class="relative w-full"><svg class="w-4 h-4 absolute left-3.5 top-1/2 -translate-y-1/2" style="color: var(--color-text-muted);" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg> <input type="text" placeholder="Search skills.sh (e.g. docker, kubernetes, security, react)..." class="w-full pl-10 pr-10 py-2.5 rounded-[3px] border text-xs input-theme font-medium login-field-effect" style="background: var(--color-surface-hover); color: var(--color-text);"/> <!></div> <div class="flex-1 overflow-y-auto space-y-2.5 min-h-[260px] max-h-[460px] pr-1"><!></div> <div class="flex items-center justify-between pt-3 border-t text-xs" style="border-color: var(--color-border); color: var(--color-text-muted);"><span>Powered by <a href="https://skills.sh" target="_blank" rel="noopener noreferrer" class="hover:underline font-semibold" style="color: var(--color-primary);">skills.sh</a></span> <button type="button" class="btn-3d btn-3d-secondary px-4 py-2 rounded-xl border font-semibold cursor-pointer">Close</button></div></div></div>`);function Me(i,s){C(s,!0);let p=j(s,`registryQuery`,15,``),m=j(s,`registryError`,3,null),v=j(s,`installingSkill`,3,null),x=j(s,`open`,3,!1);var S=r(),w=e(S),D=i=>{var g=$(),x=l(g),S=l(x),C=M(l(S),2);O(S);var w=M(S,2),D=M(l(w),2);h(D);var k=M(D,2),A=e=>{var n=be();t(`click`,n,()=>{p(``),s.oninput()}),c(e,n)};d(k,e=>{p()&&e(A)}),O(w);var j=M(w,2),N=l(j),P=e=>{var t=Se();u(t,20,()=>[,,,,],n,(e,t)=>{var n=xe();c(e,n)}),O(t),c(e,t)},F=e=>{var t=Ce(),n=_(t);a(()=>o(n,`Failed to fetch from skills.sh registry: ${m()??``}`)),c(e,t)},I=e=>{var t=we();c(e,t)},L=i=>{var p=r(),m=e(p);u(m,17,()=>s.registryResults,n,(e,n)=>{let r=E(()=>f(n).skillId||f(n).name),i=E(()=>s.isinstalled(f(r)));var u=je(),p=l(u),m=l(p),h=l(m),g=_(h,!0),b=M(h,2),x=e=>{var t=Te(),r=_(t);a(e=>o(r,`${e??``} installs`),[()=>f(n).installs.toLocaleString()]),c(e,t)};d(b,e=>{f(n).installs!==void 0&&e(x)}),O(m);var S=M(m,2),C=e=>{var t=Ee(),r=M(l(t),2),i=l(r);y(),O(r),O(t),a(()=>{T(r,`href`,`https://github.com/${f(n).source??``}`),o(i,`github.com/${f(n).source??``} `)}),c(e,t)};d(S,e=>{f(n).source&&e(C)}),O(p);var w=M(p,2),D=l(w),k=e=>{var t=De();c(e,t)},A=e=>{var i=Ae(),o=l(i),u=e=>{var t=Oe();y(2),c(e,t)},p=e=>{var t=ke();y(2),c(e,t)};d(o,e=>{v()===f(r)?e(u):e(p,-1)}),O(i),a(()=>i.disabled=v()===f(r)),t(`click`,i,()=>s.oninstall(f(n))),c(e,i)};d(D,e=>{f(i)?e(k):e(A,-1)}),O(w),O(u),a(()=>o(g,f(r))),c(e,u)}),c(i,p)};d(N,e=>{s.registryLoading?e(P):m()?e(F,1):s.registryResults.length===0?e(I,2):e(L,-1)}),O(j);var R=M(j,2),ee=M(l(R),2);O(R),O(x),O(g),t(`click`,g,function(...e){s.onclose?.apply(this,e)}),t(`click`,x,e=>e.stopPropagation()),t(`click`,C,function(...e){s.onclose?.apply(this,e)}),t(`input`,D,function(...e){s.handleRegistrySearchInput?.apply(this,e)}),b(D,p),t(`click`,ee,function(...e){s.onclose?.apply(this,e)}),c(i,g)};d(w,e=>{x()&&e(D)}),c(i,S),g()}P([`click`,`input`]);var Ne=i(`<button type="button" class="btn-3d btn-3d-primary px-5 py-2.5 rounded-[3px] font-bold text-xs flex items-center gap-2 cursor-pointer shadow-md text-white"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path></svg> <span>Create New Skill</span></button> <button type="button" title="Search skills on skills.sh registry (konoha skill search &lt;query>)"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg> <span>Search skills.sh</span></button> <button type="button" class="btn-3d btn-3d-secondary px-4 py-2.5 rounded-[3px] border text-xs font-semibold flex items-center gap-2 cursor-pointer shadow-sm" title="Run konoha migrate to re-index all skills into SQLite FTS5"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path></svg> <span>Re-index FTS5</span></button> <button type="button" class="btn-3d btn-3d-primary px-4 py-2.5 rounded-[3px] border text-xs font-semibold flex items-center gap-2 cursor-pointer shadow-md disabled:opacity-50" title="Generate IBM Granite ONNX 384-dim neural vector embeddings for all skills into vector database"><svg fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <span> </span></button>`,1),Pe=i(`<button type="button" class="absolute right-3 top-1/2 -translate-y-1/2 text-xs font-bold opacity-60 hover:opacity-100 cursor-pointer flex items-center justify-center w-5 h-5" style="color: var(--color-text-muted);" aria-label="Clear skill search"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>`),Fe=i(`<span class="px-2.5 py-1 rounded-lg text-[11px] font-bold badge-3d-subflex items-center gap-1 border"><svg class="w-3 h-3 text-status-info" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path></svg> <span>skills.sh Public Registry</span></span> <span class="text-xs font-bold" style="color: var(--color-text-muted);"> </span>`,1),Ie=i(`<span><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <span> </span></span> <span class="text-xs font-bold" style="color: var(--color-text-muted);"> </span>`,1),Le=i(`<div class="p-3.5 rounded-[3px] border flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 text-xs" style="
1
+ import{$ as e,B as t,C as n,F as r,I as i,J as a,M as o,O as s,P as c,Q as l,S as u,T as d,U as f,V as p,Z as m,a as h,ct as g,et as _,f as v,ft as y,i as b,it as x,l as S,lt as C,nt as w,o as T,ot as E,p as D,pt as O,rt as k,st as A,t as j,tt as M,u as N,z as P}from"../chunks/C5rL-2rZ.js";import{t as F}from"../chunks/CMfYCyHI.js";import{t as I}from"../chunks/DVDyaR1u.js";import"../chunks/kQisoOdf.js";import{t as L}from"../chunks/DExkVRiT.js";import{t as R}from"../chunks/DuefosH7.js";import"../chunks/BRFppjEf.js";import{t as ee}from"../chunks/KQlRtB_5.js";var z=i(`<div class="p-5 rounded-2xl border animate-pulse space-y-3" style="background: var(--color-surface); border-color: var(--color-border);"><div class="w-3/4 h-4 rounded theme-bg-soft"></div> <div class="w-1/2 h-3 rounded theme-bg-soft"></div> <div class="w-full h-8 rounded-xl theme-bg-soft pt-2"></div></div>`),B=i(`<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"></div>`),V=i(`<div class="p-6 rounded-2xl border text-xs text-status-danger bg-status-danger-soft border-status-danger-soft"> </div>`),H=i(`<div class="p-16 text-center rounded-3xl border" style="background: var(--color-surface); border-color: var(--color-border);"><div class="w-12 h-12 rounded-2xl mx-auto mb-3 flex items-center justify-center border text-xl" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"><svg class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg></div> <h3 class="text-sm font-bold" style="color: var(--color-text);"> </h3> <p class="text-xs mt-1" style="color: var(--color-text-muted);">Try searching for "react", "docker", "kubernetes", "tailwind", or "nextjs".</p></div>`),U=i(`<span class="px-2 py-0.5 rounded-full text-[10px] font-bold border shrink-0 text-action-primary border-status-info-soft bg-status-info-soft"> </span>`),W=i(`<div class="flex items-center gap-1.5 text-xs" style="color: var(--color-text-muted);"><svg class="w-3.5 h-3.5 shrink-0" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.53 1.032 1.53 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"></path></svg> <a target="_blank" rel="noopener noreferrer" class="hover:underline font-mono truncate text-[11px]" style="color: var(--color-primary);"> </a></div>`),G=i(`<div class="w-full py-2 rounded-xl border text-xs font-bold flex items-center justify-center gap-1.5 opacity-80" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text-muted);"><svg class="w-4 h-4 text-status-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span>Already Installed in Village</span></div>`),K=i(`<span class="animate-spin w-3.5 h-3.5 border-2 border-white border-t-transparent rounded-full"></span> <span> </span>`,1),te=i(`<svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> <span>Install Skill</span>`,1),ne=i(`<button type="button" class="w-full py-2 rounded-xl text-xs font-bold text-white flex items-center justify-center gap-2 transition-all hover:scale-[1.02] shadow-md cursor-pointer disabled:opacity-50" style="background: linear-gradient(135deg, var(--color-primary), var(--color-accent, #6366f1));"><!></button>`),q=i(`<div class="p-5 rounded-2xl border flex flex-col justify-between gap-4 transition-all hover:scale-[1.01] hover:border-[var(--color-primary)] shadow-sm" style="background: var(--color-surface); border-color: var(--color-border);"><div class="space-y-2"><div class="flex items-start justify-between gap-2"><div class="flex items-center gap-2"><span class="text-xs font-mono px-2 py-0.5 rounded-md border font-bold" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text-muted);"></span> <span class="text-xs font-black font-mono truncate max-w-[180px]" style="color: var(--color-text);"> </span></div> <!></div> <!></div> <div class="pt-2 border-t" style="border-color: var(--color-border);"><!></div></div>`),re=i(`<div class="space-y-4"><div class="flex items-center justify-between flex-wrap gap-3 p-4 rounded-2xl border" style="background: var(--color-surface); border-color: var(--color-border);"><div class="flex items-center gap-3"><div class="w-9 h-9 rounded-xl flex items-center justify-center border font-bold" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path></svg></div> <div><h2 class="text-sm sm:text-base font-bold" style="color: var(--color-text);">skills.sh Global Registry Search</h2> <p class="text-xs" style="color: var(--color-text-muted);">Equivalent to <code class="px-1.5 py-0.5 rounded font-mono text-[11px] theme-bg-subtle"> </code> · 1-click install</p></div></div> <div class="flex items-center gap-2 text-xs font-semibold" style="color: var(--color-text-muted);"><span> </span></div></div> <!></div>`);function ie(r,i){C(i,!0);let s=j(i,`registryResults`,19,()=>[]),p=j(i,`installingSkill`,3,null);var m=re(),h=l(m),v=l(h),b=M(l(v),2),x=M(l(b),2),S=M(l(x)),w=_(S);y(),O(x),O(b),O(v);var D=M(v,2),k=l(D),A=_(k);O(D),O(h);var N=M(h,2),P=e=>{var t=B();u(t,20,()=>[,,,,,,],n,(e,t)=>{var n=z();c(e,n)}),O(t),c(e,t)},F=e=>{var t=V(),n=_(t);a(()=>o(n,`Failed to query skills.sh registry: ${i.registryError??``}`)),c(e,t)},I=e=>{var t=H(),n=M(l(t),2),r=_(n);y(2),O(t),a(()=>o(r,`No skills found matching "${i.searchQuery??``}"`)),c(e,t)},L=r=>{var m=B();u(m,21,s,n,(n,r,s)=>{let u=E(()=>f(r).skillId||f(r).name),m=E(()=>i.isinstalled(f(u)));var h=q(),g=l(h),v=l(g),b=l(v),x=l(b);x.textContent=`#${s+1}`;var S=M(x,2),C=_(S,!0);O(b);var w=M(b,2),D=e=>{var t=U(),n=_(t);a(e=>o(n,`${e??``} installs`),[()=>f(r).installs.toLocaleString()]),c(e,t)};d(w,e=>{f(r).installs!==void 0&&e(D)}),O(v);var k=M(v,2),A=e=>{var t=W(),n=M(l(t),2),i=_(n,!0);O(t),a(()=>{T(n,`href`,`https://github.com/${f(r).source??``}`),o(i,f(r).source)}),c(e,t)};d(k,e=>{f(r).source&&e(A)}),O(g);var j=M(g,2),N=l(j),P=e=>{var t=G();c(e,t)},F=n=>{var s=ne(),m=l(s),h=t=>{var n=K(),r=M(e(n),2),i=_(r);a(()=>o(i,`Installing "${f(u)??``}"...`)),c(t,n)},g=e=>{var t=te();y(2),c(e,t)};d(m,e=>{p()===f(u)?e(h):e(g,-1)}),O(s),a(()=>s.disabled=p()===f(u)),t(`click`,s,()=>i.oninstall(f(r))),c(n,s)};d(N,e=>{f(m)?e(P):e(F,-1)}),O(j),O(h),a(()=>{T(S,`title`,f(u)),o(C,f(u))}),c(n,h)}),O(m),c(r,m)};d(N,e=>{i.registryLoading?e(P):i.registryError?e(F,1):s().length===0?e(I,2):e(L,-1)}),O(m),a(()=>{o(w,`konoha skill search ${(i.searchQuery||`react`)??``}`),o(A,`Found ${s().length??``} open-source skills`)}),c(r,m),g()}P([`click`]);var ae=i(`<div class="p-12 text-center rounded-3xl border" style="background: var(--color-surface); border-color: var(--color-border);"><div class="inline-block animate-spin w-8 h-8 rounded-full border-4 border-t-transparent mb-3" style="border-color: var(--color-primary); border-top-color: transparent;"></div> <p class="text-xs font-semibold" style="color: var(--color-text-muted);">Fetching skill content...</p></div>`),oe=i(`<option> </option>`),se=i(`<span class="px-2.5 py-1 rounded-lg border text-xs font-medium" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text);"> </span>`),ce=i(`<div><span class="text-[11px] font-bold uppercase tracking-wider block mb-2" style="color: var(--color-text-muted);">Indexed Keywords & Tags:</span> <div class="flex flex-wrap gap-1.5"></div></div>`),le=i(`<div><div class="flex items-center justify-between mb-2"><span class="text-[11px] font-bold uppercase tracking-wider" style="color: var(--color-text-muted);">Skill Instructions / Manual:</span> <span class="text-[11px] font-mono" style="color: var(--color-text-muted);"> </span></div> <pre class="p-5 rounded-2xl border text-xs font-mono overflow-x-auto whitespace-pre-wrap max-h-[50vh] overflow-y-auto leading-relaxed" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text);"> </pre></div>`),ue=i(`<div class="p-2.5 rounded-xl border text-[11px] font-mono overflow-x-auto" style="background: var(--color-surface-hover); border-color: var(--color-border);"><span class="font-bold theme-text-muted mr-2">Vector Sample:</span> <span class="text-[var(--theme-success)] "> </span></div>`),J=i(`<div class="p-4 rounded-2xl border space-y-2.5 transition-all hover:border-status-success-soft" style="background: var(--color-surface); border-color: var(--color-border);"><div class="flex items-center justify-between gap-2"><span class="text-xs font-bold px-2 py-0.5 rounded-lg border text-action-primary border-status-info-soft bg-status-info-soft font-mono"> </span> <span class="text-[10px] font-mono px-2 py-0.5 rounded-lg border text-status-success border-status-success-soft bg-status-success-soft">384-dim Float32 Vector</span></div> <!> <div class="text-xs font-mono p-3 rounded-xl border leading-relaxed whitespace-pre-wrap max-h-32 overflow-y-auto" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text);"> </div></div>`),de=i(`<div class="space-y-3 max-h-[50vh] overflow-y-auto pr-1"></div>`),fe=i(`<div class="p-8 text-center rounded-2xl border space-y-3" style="background: var(--color-surface-hover); border-color: var(--color-border);"><p class="text-xs font-semibold" style="color: var(--color-text-muted);">No vector chunks generated for this skill yet.</p> <p class="text-[11px]" style="color: var(--color-text-muted);">Click below or run <code class="px-1.5 py-0.5 rounded theme-bg-subtle font-mono">konoha migrate</code> to vectorize all skills into sqlite-vector.</p> <button type="button" class="btn-3d btn-3d-primary px-4 py-2 rounded-xl text-xs font-bold inline-flex items-center gap-2 cursor-pointer shadow-md disabled:opacity-50"><svg fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <span> </span></button></div>`),pe=i(`<div class="space-y-4"><div class="p-3.5 rounded-xl border flex flex-wrap items-center justify-between gap-3 text-xs" style="background: var(--color-surface-hover); border-color: var(--color-border);"><div class="flex items-center gap-2"><span class="w-2 h-2 rounded-full bg-status-success-soft animate-pulse"></span> <span class="font-bold" style="color: var(--color-text);">Models:</span> <span class="font-mono text-[var(--theme-success)] font-bold">IBM Granite 97M (ONNX) + MS MARCO MiniLM</span></div> <div class="flex items-center gap-3 text-[11px] font-mono" style="color: var(--color-text-muted);"><span>Embedding: <b class="text-action-primary ">384-dim (Cosine)</b></span> <span>RAG Reranker: <b class="text-action-primary ">Cross-Encoder + RRF (k=60)</b></span> <span>Execution: <b class="text-[var(--theme-success)] ">100% Offline INT8</b></span></div></div> <!></div>`),Y=i(`<div class="p-6 rounded-3xl border shadow-sm space-y-6" style="background: var(--color-surface); border-color: var(--color-border);"><div class="flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b pb-4" style="border-color: var(--color-border);"><div><div class="flex items-center gap-2"><h2 class="text-xl font-bold" style="color: var(--color-text);"> </h2> <span class="text-xs px-2.5 py-0.5 rounded-full border font-bold uppercase" style="background: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"> </span></div> <p class="text-[11px] font-mono mt-1" style="color: var(--color-text-muted);"> </p></div> <div class="flex items-center gap-2"><button type="button" class="px-3 py-1.5 rounded-xl border text-xs font-semibold flex items-center gap-1.5 transition-all text-status-danger border-status-danger-soft bg-status-danger-soft hover:bg-status-danger-soft cursor-pointer"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg> <span>Delete Skill</span></button></div></div> <div class="p-4 rounded-2xl border flex flex-col sm:flex-row items-center justify-between gap-4" style="background: var(--color-surface-hover); border-color: var(--color-border);"><div class="flex items-center gap-2"><span class="w-2 h-2 rounded-full bg-status-success-soft animate-pulse"></span> <span class="text-xs font-bold" style="color: var(--color-text);">Embed / Unembed for Ninja Subagent:</span></div> <div class="flex items-center gap-2 w-full sm:w-auto"><select class="px-3 py-1.5 rounded-[3px] border text-xs font-semibold focus:outline-none login-field-effect" style="background: var(--color-surface); color: var(--color-text);"></select> <button type="button" class="px-3 py-1.5 rounded-[3px] border text-xs font-bold transition-all hover:scale-105 cursor-pointer text-status-success border-status-success-soft bg-status-success-soft/15">Embed</button> <button type="button" class="px-3 py-1.5 rounded-xl border text-xs font-bold transition-all hover:scale-105 cursor-pointer theme-text-secondary theme-border theme-bg-subtle">Unembed</button></div></div> <!> <div class="space-y-4"><div class="flex items-center gap-2 border-b pb-2" style="border-color: var(--color-border);"><button type="button"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <span>Instructions & Manual</span></button> <button type="button"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <span>Vector Chunks & Embeddings</span> <span> </span></button></div> <!></div></div>`),me=i(`<div class="p-12 text-center rounded-3xl border space-y-4" style="background: var(--color-surface); border-color: var(--color-border);"><div class="w-12 h-12 rounded-2xl mx-auto flex items-center justify-center border text-xl" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"><svg class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path></svg></div> <div><h3 class="text-base font-bold" style="color: var(--color-text);"> </h3> <p class="text-xs max-w-md mx-auto mt-1" style="color: var(--color-text-muted);">Search the public registry on <code class="font-mono text-xs">skills.sh</code> (exact CLI equivalent: <code class="font-mono text-xs"> </code>).</p></div> <button type="button" class="px-5 py-2.5 rounded-xl text-xs font-bold text-white inline-flex items-center gap-2 shadow-md cursor-pointer hover:scale-105 transition-all" style="background: linear-gradient(135deg, var(--color-primary), var(--color-accent, #6366f1));"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg> <span> </span></button></div>`),X=i(`<div class="p-16 text-center rounded-3xl border" style="background: var(--color-surface); border-color: var(--color-border);"><div class="w-12 h-12 rounded-2xl mx-auto mb-3 flex items-center justify-center border" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"><svg class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"></path></svg></div> <h3 class="text-sm font-bold" style="color: var(--color-text);">Select a skill to inspect</h3> <p class="text-xs mt-1" style="color: var(--color-text-muted);">Select any skill from the left list to view SOP instructions or embed it into agents.</p></div>`),he=i(`<div class="lg:col-span-2"><!></div>`);function ge(i,s){C(s,!0);let p=j(s,`selectedSkill`,3,null),m=j(s,`bind`,7),h=j(s,`activeTab`,15,`content`),v=j(s,`isEmbedding`,3,!1),b=j(s,`searchQuery`,3,``),x=j(s,`agentsList`,19,()=>[]);var w=he(),T=l(w),E=e=>{var t=ae();c(e,t)},k=e=>{var r=Y(),i=l(r),g=l(i),b=l(g),C=l(b),w=_(C,!0),T=M(C,2),E=_(T,!0);O(b);var k=M(b,2),A=_(k);O(g);var j=M(g,2),P=_(j);O(i);var F=M(i,2),I=M(l(F),2),L=l(I);u(L,21,x,n,(e,t)=>{var n=oe(),r=_(n,!0),i={};a(()=>{o(r,f(t).name),i!==(i=f(t).id)&&(n.value=(n.__value=i)??``)}),c(e,n)}),O(L),N(L);var R=M(L,2),ee=M(R,2);O(I),O(F);var z=M(F,2),B=e=>{var t=ce(),r=M(l(t),2);u(r,21,()=>String(p().tags).split(`,`),n,(e,t)=>{var n=se(),r=_(n,!0);a(e=>o(r,e),[()=>f(t).trim()]),c(e,n)}),O(r),O(t),c(e,t)};d(z,e=>{p().tags&&e(B)});var V=M(z,2),H=l(V),U=l(H),W=M(U,2),G=M(l(W),4),K=_(G,!0);O(W),O(H);var te=M(H,2),ne=e=>{var t=le(),n=l(t),r=M(l(n),2),i=_(r);O(n);var s=M(n,2),u=_(s,!0);O(t),a(()=>{o(i,`${(p().line_count||0)??``} lines (${(p().byte_size||0)??``} bytes)`),o(u,p().content)}),c(e,t)},q=e=>{var r=pe(),i=M(l(r),2),m=e=>{var t=de();u(t,21,()=>p().chunks,n,(e,t)=>{var n=J(),r=l(n),i=l(r),s=_(i);y(2),O(r);var u=M(r,2),p=e=>{var n=ue(),r=M(l(n),2),i=_(r);O(n),a(e=>o(i,`[${e??``} ... 384 dimensions]`),[()=>f(t).vector_sample.join(`, `)]),c(e,n)};d(u,e=>{f(t).vector_sample&&f(t).vector_sample.length>0&&e(p)});var m=M(u,2),h=_(m,!0);O(n),a(()=>{o(s,`Chunk #${f(t).chunk_index+1}`),o(h,f(t).chunk_text)}),c(e,n)}),O(t),c(e,t)},h=e=>{var n=fe(),r=M(l(n),4),i=l(r),u=M(i,2),d=_(u,!0);O(r),O(n),a(()=>{r.disabled=v(),D(i,0,`w-4 h-4 ${v()?`animate-spin`:``}`),o(d,v()?`Vectorizing Skills...`:`Re-embed Vectors Now`)}),t(`click`,r,function(...e){s.onreembed?.apply(this,e)}),c(e,n)};d(i,e=>{p().chunks&&p().chunks.length>0?e(m):e(h,-1)}),O(r),c(e,r)};d(te,e=>{h()===`instructions`?e(ne):h()===`vectors`&&e(q,1)}),O(V),O(r),a(()=>{o(w,p().name),o(E,p().type||`skill`),o(A,`Path: ${(p().file_path||`Embedded in SQLite database`)??``}`),D(U,1,`btn-3d px-3.5 py-1.5 rounded-xl text-xs font-bold transition-all cursor-pointer flex items-center gap-1.5 ${h()===`instructions`?`btn-3d-primary text-white shadow-sm`:`btn-3d-secondary`}`),D(W,1,`btn-3d px-3.5 py-1.5 rounded-xl text-xs font-bold transition-all cursor-pointer flex items-center gap-1.5 ${h()===`vectors`?`btn-3d-primary text-white shadow-sm`:`btn-3d-secondary`}`),D(G,1,`px-1.5 py-0.2 rounded-full text-[10px] font-mono ${h()===`vectors`?`theme-bg-muted`:`bg-status-success-soft text-[var(--theme-success)] `}`),o(K,p().chunks_count||p().chunks?.length||0)}),t(`click`,P,()=>s.ondelete(p().name)),S(L,m),t(`click`,R,()=>s.onembed(p().name,m())),t(`click`,ee,()=>s.onunembed(p().name,m())),t(`click`,U,()=>h(`instructions`)),t(`click`,W,()=>h(`vectors`)),c(e,r)},A=n=>{var i=r(),u=e(i),f=e=>{var n=me(),r=M(l(n),2),i=l(r),u=_(i),d=M(i,2),f=M(l(d),3),p=_(f);y(),O(d),O(r);var m=M(r,2),h=M(l(m),2),g=_(h);O(m),O(n),a(()=>{o(u,`No local skills matching "${b()??``}"`),o(p,`konoha skill search ${b()??``}`),o(g,`Search skills.sh for "${b()??``}"`)}),t(`click`,m,()=>s.onregistry(b())),c(e,n)},p=e=>{var t=X();c(e,t)};d(u,e=>{s.skills.length===0&&b()?e(f):e(p,-1)}),c(n,i)};d(T,e=>{s.skillDetailLoading?e(E):p()?e(k,1):e(A,-1)}),O(w),c(i,w),g()}P([`click`]);var Z=i(`<option> </option>`),_e=i(`<span class="animate-spin w-3.5 h-3.5 border-2 border-white border-t-transparent rounded-full"></span> <span>Creating...</span>`,1),ve=i(`<span>Save & Index Skill</span>`),Q=i(`<div class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-[var(--theme-overlay)] 40 backdrop-blur-sm animate-in fade-in duration-150"><div class="modal-card modal-3d w-full max-w-2xl p-6 rounded-3xl border shadow-2xl space-y-4 animate-in zoom-in-95 duration-150 max-h-[90vh] overflow-y-auto glass-frost-strong" style="border-color: var(--theme-modal-border, color-mix(in srgb, var(--theme-grad-1) 38%, var(--color-border))); color: var(--color-text); box-shadow: var(--theme-modal-shadow, var(--shadow-3d));"><div class="flex items-center justify-between pb-3 border-b" style="border-color: var(--color-border);"><div class="flex items-center gap-2.5"><div class="w-8 h-8 rounded-xl flex items-center justify-center border shadow-sm" style="background: var(--theme-4gradient); border-color: transparent; color: #ffffff;"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path></svg></div> <div><h3 class="text-base font-bold" style="color: var(--color-text);">Create New Ninja Skill</h3> <p class="text-xs" style="color: var(--color-text-muted);">Define rules, instructions, and SOPs for subagents</p></div></div> <button type="button" class="w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold border transition-colors hover:scale-105 cursor-pointer" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);" aria-label="Close create skill modal"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div> <div class="space-y-3.5"><div><label for="skill-name" class="block text-xs font-bold mb-1" style="color: var(--color-text);">Skill Name (slug)</label> <input id="skill-name" type="text" placeholder="e.g. docker-compose-scaffolding, redis-caching-skill" class="w-full px-3.5 py-2.5 rounded-[3px] border text-xs login-field-effect input-theme font-mono" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text);"/></div> <div><label for="skill-desc" class="block text-xs font-bold mb-1" style="color: var(--color-text);">Description (short summary)</label> <input id="skill-desc" type="text" placeholder="Standard Operating Procedures for scaffolding docker-compose clusters..." class="w-full px-3.5 py-2.5 rounded-[3px] border text-xs login-field-effect input-theme font-medium" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text);"/></div> <div class="grid grid-cols-1 sm:grid-cols-2 gap-3"><div><label for="skill-tags" class="block text-xs font-bold mb-1" style="color: var(--color-text);">Tags (comma-separated)</label> <input id="skill-tags" type="text" placeholder="docker, devops, compose, backend" class="w-full px-3.5 py-2.5 rounded-[3px] border text-xs login-field-effect input-theme" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text);"/></div> <div><label for="skill-embed" class="block text-xs font-bold mb-1" style="color: var(--color-text);">Embed in Agent (optional)</label> <select id="skill-embed" class="w-full px-3.5 py-2.5 rounded-[3px] border text-xs font-semibold login-field-effect focus:outline-none" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text);"><option>None (Global standalone skill)</option><!></select></div></div> <div><label for="skill-content" class="block text-xs font-bold mb-1" style="color: var(--color-text);">Instruction Manual / SOP Content (Markdown)</label> <textarea id="skill-content" rows="8" class="w-full p-3.5 rounded-[3px] border text-xs font-mono login-field-effect input-theme leading-relaxed" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text);"></textarea></div></div> <div class="flex items-center justify-end gap-3 pt-3 border-t" style="border-color: var(--color-border);"><button type="button" class="btn-3d btn-3d-secondary px-4 py-2.5 rounded-xl border text-xs font-semibold cursor-pointer">Cancel</button> <button type="button" class="btn-3d btn-3d-primary px-5 py-2.5 rounded-xl font-bold text-xs flex items-center gap-2 cursor-pointer text-white shadow-md disabled:opacity-50"><!></button></div></div></div>`);function ye(i,s){C(s,!0);let p=j(s,`newSkill`,15),m=j(s,`agentsList`,19,()=>[]),v=j(s,`isSubmitting`,3,!1),x=j(s,`open`,3,!1);var w=r(),T=e(w),E=e=>{var r=Q(),i=l(r),g=l(i),x=M(l(g),2);O(g);var C=M(g,2),w=l(C),T=M(l(w),2);h(T),O(w);var E=M(w,2),D=M(l(E),2);h(D),O(E);var k=M(E,2),j=l(k),P=M(l(j),2);h(P),O(j);var F=M(j,2),I=M(l(F),2),L=l(I);L.value=L.__value=``;var R=M(L);u(R,17,m,n,(e,t)=>{var n=Z(),r=_(n,!0),i={};a(()=>{o(r,f(t).name),i!==(i=f(t).id)&&(n.value=(n.__value=i)??``)}),c(e,n)}),O(I),N(I),O(F),O(k);var ee=M(k,2),z=M(l(ee),2);A(z),O(ee),O(C);var B=M(C,2),V=l(B),H=M(V,2),U=l(H),W=e=>{var t=_e();y(2),c(e,t)},G=e=>{var t=ve();c(e,t)};d(U,e=>{v()?e(W):e(G,-1)}),O(H),O(B),O(i),O(r),a(e=>H.disabled=e,[()=>v()||!p().name.trim()]),t(`click`,r,function(...e){s.onclose?.apply(this,e)}),t(`click`,i,e=>e.stopPropagation()),t(`click`,x,function(...e){s.onclose?.apply(this,e)}),b(T,()=>p().name,e=>p(p().name=e,!0)),b(D,()=>p().description,e=>p(p().description=e,!0)),b(P,()=>p().tags,e=>p(p().tags=e,!0)),S(I,()=>p().embed_agent,e=>p(p().embed_agent=e,!0)),b(z,()=>p().content,e=>p(p().content=e,!0)),t(`click`,V,function(...e){s.onclose?.apply(this,e)}),t(`click`,H,function(...e){s.onsubmit?.apply(this,e)}),c(e,r)};d(T,e=>{x()&&e(E)}),c(i,w),g()}P([`click`]);var be=i(`<button type="button" class="absolute right-3 top-1/2 -translate-y-1/2 text-xs font-bold opacity-60 hover:opacity-100 cursor-pointer flex items-center justify-center w-5 h-5" style="color: var(--color-text-muted);" aria-label="Clear registry query"><svg class="w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>`),xe=i(`<div class="p-4 rounded-2xl border animate-pulse flex items-center justify-between" style="background: var(--color-surface); border-color: var(--color-border);"><div class="space-y-2"><div class="w-32 h-4 rounded theme-bg-soft"></div> <div class="w-48 h-3 rounded theme-bg-soft"></div></div> <div class="w-20 h-8 rounded-xl theme-bg-soft"></div></div>`),Se=i(`<div class="space-y-2"></div>`),Ce=i(`<div class="p-4 rounded-2xl border text-xs text-status-danger bg-status-danger-soft" style="border-color: rgba(239, 68, 68, 0.3);"> </div>`),we=i(`<div class="flex flex-col items-center justify-center py-12 text-center"><svg class="w-10 h-10 mb-2 opacity-40" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg> <p class="text-xs font-semibold" style="color: var(--color-text);">No skills found</p> <p class="text-xs mt-1" style="color: var(--color-text-muted);">Try searching for popular topics like "docker", "k8s", "helm", or "nextjs"</p></div>`),Te=i(`<span class="px-2 py-0.5 rounded-full text-[10px] font-semibold border" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text-muted);"> </span>`),Ee=i(`<div class="flex items-center gap-1 text-[11px]" style="color: var(--color-text-muted);"><span>Source:</span> <a target="_blank" rel="noopener noreferrer" class="hover:underline font-mono inline-flex items-center gap-1" style="color: var(--color-primary);"> <svg class="w-2.5 h-2.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path></svg></a></div>`),De=i(`<span class="px-3 py-1.5 rounded-xl border text-xs font-semibold inline-flex items-center gap-1.5 opacity-80" style="background: var(--color-surface-hover); border-color: var(--color-border); color: var(--color-text-muted);"><svg class="w-3.5 h-3.5 text-status-success" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span>Installed</span></span>`),Oe=i(`<span class="animate-spin w-3 h-3 border-2 border-white border-t-transparent rounded-full"></span> <span>Installing...</span>`,1),ke=i(`<svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path></svg> <span>Install</span>`,1),Ae=i(`<button type="button" class="px-3.5 py-1.5 rounded-xl text-xs font-bold text-white flex items-center gap-1.5 transition-all hover:scale-105 shadow-sm cursor-pointer disabled:opacity-50" style="background: linear-gradient(135deg, var(--color-primary), var(--color-accent, #6366f1));"><!></button>`),je=i(`<div class="p-3.5 rounded-2xl border flex items-center justify-between gap-3 transition-all hover:border-[var(--color-primary)]" style="background: var(--color-surface); border-color: var(--color-border);"><div class="space-y-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-xs font-bold font-mono truncate" style="color: var(--color-text);"> </span> <!></div> <!></div> <div class="shrink-0"><!></div></div>`),$=i(`<div class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-[var(--theme-overlay)] 40 backdrop-blur-sm animate-in fade-in duration-150"><div class="modal-card modal-3d w-full max-w-2xl p-6 rounded-3xl border shadow-2xl space-y-4 animate-in zoom-in-95 duration-150 max-h-[90vh] flex flex-col glass-frost-strong" style="border-color: var(--theme-modal-border, color-mix(in srgb, var(--theme-grad-1) 38%, var(--color-border))); color: var(--color-text); box-shadow: var(--theme-modal-shadow, var(--shadow-3d));"><div class="flex items-center justify-between pb-3 border-b" style="border-color: var(--color-border);"><div class="flex items-center gap-2.5"><div class="w-8 h-8 rounded-xl flex items-center justify-center border shadow-sm" style="background: var(--theme-4gradient); border-color: transparent; color: #ffffff;"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path></svg></div> <div><h3 class="text-base font-bold" style="color: var(--color-text);">skills.sh Public Registry</h3> <p class="text-xs" style="color: var(--color-text-muted);">Search and install open-source agent skills into your village with 1-click</p></div></div> <button type="button" class="w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold border transition-colors hover:scale-105 cursor-pointer" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);" aria-label="Close registry modal"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div> <div class="relative w-full"><svg class="w-4 h-4 absolute left-3.5 top-1/2 -translate-y-1/2" style="color: var(--color-text-muted);" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg> <input type="text" placeholder="Search skills.sh (e.g. docker, kubernetes, security, react)..." class="w-full pl-10 pr-10 py-2.5 rounded-[3px] border text-xs input-theme font-medium login-field-effect" style="background: var(--color-surface-hover); color: var(--color-text);"/> <!></div> <div class="flex-1 overflow-y-auto space-y-2.5 min-h-[260px] max-h-[460px] pr-1"><!></div> <div class="flex items-center justify-between pt-3 border-t text-xs" style="border-color: var(--color-border); color: var(--color-text-muted);"><span>Powered by <a href="https://skills.sh" target="_blank" rel="noopener noreferrer" class="hover:underline font-semibold" style="color: var(--color-primary);">skills.sh</a></span> <button type="button" class="btn-3d btn-3d-secondary px-4 py-2 rounded-xl border font-semibold cursor-pointer">Close</button></div></div></div>`);function Me(i,s){C(s,!0);let p=j(s,`registryQuery`,15,``),m=j(s,`registryError`,3,null),v=j(s,`installingSkill`,3,null),x=j(s,`open`,3,!1);var S=r(),w=e(S),D=i=>{var g=$(),x=l(g),S=l(x),C=M(l(S),2);O(S);var w=M(S,2),D=M(l(w),2);h(D);var k=M(D,2),A=e=>{var n=be();t(`click`,n,()=>{p(``),s.oninput()}),c(e,n)};d(k,e=>{p()&&e(A)}),O(w);var j=M(w,2),N=l(j),P=e=>{var t=Se();u(t,20,()=>[,,,,],n,(e,t)=>{var n=xe();c(e,n)}),O(t),c(e,t)},F=e=>{var t=Ce(),n=_(t);a(()=>o(n,`Failed to fetch from skills.sh registry: ${m()??``}`)),c(e,t)},I=e=>{var t=we();c(e,t)},L=i=>{var p=r(),m=e(p);u(m,17,()=>s.registryResults,n,(e,n)=>{let r=E(()=>f(n).skillId||f(n).name),i=E(()=>s.isinstalled(f(r)));var u=je(),p=l(u),m=l(p),h=l(m),g=_(h,!0),b=M(h,2),x=e=>{var t=Te(),r=_(t);a(e=>o(r,`${e??``} installs`),[()=>f(n).installs.toLocaleString()]),c(e,t)};d(b,e=>{f(n).installs!==void 0&&e(x)}),O(m);var S=M(m,2),C=e=>{var t=Ee(),r=M(l(t),2),i=l(r);y(),O(r),O(t),a(()=>{T(r,`href`,`https://github.com/${f(n).source??``}`),o(i,`github.com/${f(n).source??``} `)}),c(e,t)};d(S,e=>{f(n).source&&e(C)}),O(p);var w=M(p,2),D=l(w),k=e=>{var t=De();c(e,t)},A=e=>{var i=Ae(),o=l(i),u=e=>{var t=Oe();y(2),c(e,t)},p=e=>{var t=ke();y(2),c(e,t)};d(o,e=>{v()===f(r)?e(u):e(p,-1)}),O(i),a(()=>i.disabled=v()===f(r)),t(`click`,i,()=>s.oninstall(f(n))),c(e,i)};d(D,e=>{f(i)?e(k):e(A,-1)}),O(w),O(u),a(()=>o(g,f(r))),c(e,u)}),c(i,p)};d(N,e=>{s.registryLoading?e(P):m()?e(F,1):s.registryResults.length===0?e(I,2):e(L,-1)}),O(j);var R=M(j,2),ee=M(l(R),2);O(R),O(x),O(g),t(`click`,g,function(...e){s.onclose?.apply(this,e)}),t(`click`,x,e=>e.stopPropagation()),t(`click`,C,function(...e){s.onclose?.apply(this,e)}),t(`input`,D,function(...e){s.handleRegistrySearchInput?.apply(this,e)}),b(D,p),t(`click`,ee,function(...e){s.onclose?.apply(this,e)}),c(i,g)};d(w,e=>{x()&&e(D)}),c(i,S),g()}P([`click`,`input`]);var Ne=i(`<button type="button" class="btn-3d btn-3d-primary px-5 py-2.5 rounded-[3px] font-bold text-xs flex items-center gap-2 cursor-pointer shadow-md text-white"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path></svg> <span>Create New Skill</span></button> <button type="button" title="Search skills on skills.sh registry (konoha skill search &lt;query>)"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg> <span>Search skills.sh</span></button> <button type="button" class="btn-3d btn-3d-secondary px-4 py-2.5 rounded-[3px] border text-xs font-semibold flex items-center gap-2 cursor-pointer shadow-sm" title="Run konoha migrate to re-index all skills into SQLite FTS5"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path></svg> <span>Re-index FTS5</span></button> <button type="button" class="btn-3d btn-3d-primary px-4 py-2.5 rounded-[3px] border text-xs font-semibold flex items-center gap-2 cursor-pointer shadow-md disabled:opacity-50" title="Generate IBM Granite ONNX 384-dim neural vector embeddings for all skills into vector database"><svg fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <span> </span></button>`,1),Pe=i(`<button type="button" class="absolute right-3 top-1/2 -translate-y-1/2 text-xs font-bold opacity-60 hover:opacity-100 cursor-pointer flex items-center justify-center w-5 h-5" style="color: var(--color-text-muted);" aria-label="Clear skill search"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button>`),Fe=i(`<span class="px-2.5 py-1 rounded-lg text-[11px] font-bold badge-3d-subflex items-center gap-1 border"><svg class="w-3 h-3 text-status-info" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"></path></svg> <span>skills.sh Public Registry</span></span> <span class="text-xs font-bold" style="color: var(--color-text-muted);"> </span>`,1),Ie=i(`<span><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <span> </span></span> <span class="text-xs font-bold" style="color: var(--color-text-muted);"> </span>`,1),Le=i(`<div class="p-3.5 rounded-[3px] border flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 text-xs" style="
2
2
  background: color-mix(in srgb, var(--theme-warning, #f59e0b) 12%, transparent);
3
3
  border-color: color-mix(in srgb, var(--theme-warning, #f59e0b) 35%, transparent);
4
4
  color: var(--theme-warning, #f59e0b);
@@ -1 +1 @@
1
- import{B as e,I as t,J as n,L as r,M as i,O as a,P as o,Q as s,S as c,T as l,U as u,V as d,a as f,ct as p,et as m,ft as h,i as g,it as _,l as v,lt as y,nt as b,o as ee,ot as te,p as x,pt as S,rt as C,st as w,tt as T,u as E,z as D}from"../chunks/C5rL-2rZ.js";import{t as O}from"../chunks/CMfYCyHI.js";import{t as k}from"../chunks/DVDyaR1u.js";import{t as A}from"../chunks/KBylTpfW.js";import"../chunks/BRFppjEf.js";import{t as ne}from"../chunks/KQlRtB_5.js";var re=r(`<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg>`),ie=r(`<svg class="animate-spin w-4 h-4" viewBox="0 0 24 24" fill="none"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"></path></svg>`),ae=t(`<svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span>Ready</span>`,1),oe=t(`<svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg> <span>Not Ready</span>`,1),se=t(`<li> </li>`),ce=t(`<ul class="list-disc list-inside space-y-1 text-sm font-semibold theme-text-secondary"></ul>`),le=t(`<p class="text-sm font-semibold text-status-success">Task passes all Definition of Ready criteria.</p>`),ue=t(`<div class="mt-5 rounded-[3px] border p-4 space-y-3" style="border-color: var(--color-border, #e2e8f0); background-color: var(--color-primary-glow, #faf5ff);"><div class="flex flex-wrap items-center gap-2"><span><!></span> <span> </span></div> <!></div>`),de=r(`<svg class="animate-spin w-3.5 h-3.5" viewBox="0 0 24 24" fill="none"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"></path></svg>`),fe=t(`<button class="btn-3d inline-flex items-center gap-1.5 px-3 py-2 rounded-[3px] font-bold text-xs badge-status badge-status-danger cursor-pointer hover:bg-status-danger-soft disabled:opacity-50" title="Clear tasks to prevent stale task hallucination"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg> Clear Tasks</button>`),pe=t(`<div class="metric-card-3d rounded-[5px] p-10 border flex items-center justify-center" style="border-color: color-mix(in srgb, var(--theme-grad-1) 20%, var(--color-border));"><svg class="animate-spin w-8 h-8" style="color: var(--color-primary, #7c3aed);" viewBox="0 0 24 24" fill="none"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"></path></svg></div>`),j=t(`<div class="metric-card-3d rounded-[5px] p-10 border text-center" style="border-color: color-mix(in srgb, var(--theme-grad-1) 20%, var(--color-border));"><p class="text-sm font-bold theme-text-muted">No SDLC tasks found. Tasks are created automatically by agents during SDLC execution.</p></div>`),me=t(`<span class="px-2 py-0.5 rounded-[3px] text-xs font-bold border badge-status badge-status-info"> </span>`),he=t(`<span> </span>`),ge=t(`<span class="px-2 py-0.5 rounded-[3px] text-xs font-bold border badge-status badge-status-warning"> </span>`),_e=r(`<svg class="animate-spin w-3 h-3" viewBox="0 0 24 24" fill="none"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"></path></svg>`),ve=r(`<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"></path></svg>`),ye=t(`<button type="button" class="btn-3d px-2.5 py-1 rounded-[3px] font-bold text-xs badge-status badge-status-success cursor-pointer hover:opacity-90 disabled:opacity-50 inline-flex items-center gap-1" title="Approve Gate 1 Plan"><!> Approve Plan</button>`),be=r(`<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>`),xe=t(`<button type="button" class="btn-3d px-2.5 py-1 rounded-[3px] font-bold text-xs badge-status badge-status-success cursor-pointer hover:opacity-90 disabled:opacity-50 inline-flex items-center gap-1" title="Gate 2 Human Sign Off"><!> Sign Off</button>`),Se=t(`<p class="text-xs font-bold theme-text-muted">Project: <code class="theme-text-secondary"> </code></p>`),Ce=t(`<div><h3 class="text-xs font-black theme-text-secondary uppercase tracking-wide mb-1.5">DoR Missing Criteria</h3> <ul class="list-disc list-inside space-y-0.5 text-sm font-semibold theme-text-secondary"></ul></div>`),we=t(`<div><h3 class="text-xs font-black theme-text-secondary uppercase tracking-wide mb-1.5">Zero-AI-Slop Gate</h3> <pre class="text-xs font-semibold theme-text-secondary theme-bg-surface border rounded-[3px] p-3 overflow-x-auto" style="border-color: var(--color-border, #e2e8f0);"> </pre></div>`),Te=t(`<div><h3 class="text-xs font-black theme-text-secondary uppercase tracking-wide mb-1.5">Evidence</h3> <pre class="text-xs font-semibold theme-text-secondary theme-bg-surface border rounded-[3px] p-3 overflow-x-auto" style="border-color: var(--color-border, #e2e8f0);"> </pre></div>`),Ee=t(`<div class="p-3 rounded-[3px] border badge-status badge-status-warning text-xs font-semibold space-y-1"><div class="flex items-center justify-between"><span class="font-bold">⚠️ Reconciled Stale Task</span> <span class="font-mono text-[11px]"> </span></div> <p class="theme-text-secondary">Previous status: <span class="font-bold"> </span> </p></div>`),De=t(`<p class="text-xs font-semibold theme-text-muted">No gate results or evidence recorded for this task yet.</p>`),Oe=t(`<button type="button" class="btn-3d inline-flex items-center gap-1.5 px-3 py-1.5 rounded-[3px] text-xs font-bold badge-status badge-status-info cursor-pointer hover:opacity-90"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path></svg> Restart Task</button>`),ke=t(`<div></div>`),Ae=t(`<div class="border-t px-4 sm:px-5 py-4 space-y-4 theme-bg-muted" style="border-color: var(--color-border, #e2e8f0);"><!> <!> <!> <!> <!> <!> <div class="flex items-center justify-between pt-2 border-t" style="border-color: var(--color-border, #e2e8f0);"><!> <button type="button" class="btn-3d inline-flex items-center gap-1.5 px-3 py-1.5 rounded-[3px] text-xs font-bold badge-status badge-status-danger hover:bg-status-danger-soft cursor-pointer"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg> Delete Task</button></div></div>`),je=t(`<div class="metric-card-3d rounded-[5px] border overflow-hidden transition-all" style="border-color: color-mix(in srgb, var(--theme-grad-1) 22%, var(--color-border));"><div class="w-full p-4 sm:p-5 flex flex-wrap items-start justify-between gap-3 hover-bg-muted transition-colors"><button type="button" class="min-w-0 flex-1 space-y-1.5 text-left cursor-pointer focus:outline-none"><div class="flex flex-wrap items-center gap-2"><code class="text-xs font-bold theme-text-muted"> </code> <span> </span> <span class="px-2 py-0.5 rounded-[3px] text-xs font-bold border theme-bg-subtle theme-text-secondary theme-border-strong-b"> </span> <!> <!> <!> <!></div> <p class="text-sm font-semibold theme-text break-words line-clamp-2"> </p></button> <div class="flex items-center gap-2 shrink-0"><span class="text-xs font-semibold theme-text-muted"> </span> <!> <button type="button" class="p-1.5 rounded-[3px] theme-text-muted hover:text-[var(--theme-danger)] hover:bg-status-danger-soft transition-colors cursor-pointer" title="Delete this task" aria-label="Delete task"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg></button> <button type="button" class="p-1.5 rounded-[3px] theme-text-muted hover:theme-text hover-bg-subtle transition-colors cursor-pointer" aria-label="Toggle details"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"></path></svg></button></div></div> <!></div>`),Me=t(`<div class="space-y-3"></div>`),Ne=t(`<div class="space-y-8 w-full"><!> <section class="metric-card-3d rounded-[5px] p-6 space-y-4 border" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><h2 class="text-lg font-bold theme-text mb-4">Project Configuration</h2> <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-4"><label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">Project Path</span> <input type="text" placeholder="/absolute/path/to/project" class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"/></label> <label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">DoR Mode</span> <select class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"><option>Advisory</option><option>Enforced</option></select></label> <label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">Review Mode</span> <select class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"><option>Self</option><option>Cross-Provider</option></select></label> <label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">HITL Mode</span> <select class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"><option>Enabled (Safe)</option><option>Disabled (Autonomous)</option></select></label> <label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">Advisor Guard (≤8k tok/turn)</span> <select class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"><option>Real-Time Idle Monitor (Default)</option><option>Turn Gate Only</option><option>Off</option></select></label> <label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">Agent Input Quota (tok/agent)</span> <input type="number" min="1000" step="1000" placeholder="100000" class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"/></label></div> <div class="mt-4 flex items-center gap-3"><button class="btn-3d btn-3d-primary inline-flex items-center gap-2 px-5 py-2.5 rounded-[3px] font-bold text-xs text-white shadow-md cursor-pointer disabled:opacity-50"><!> Save Configuration</button> <button class="btn-3d btn-3d-secondary inline-flex items-center gap-2 px-5 py-2.5 rounded-[3px] font-bold text-xs cursor-pointer disabled:opacity-50">Reload</button></div></section> <section class="metric-card-3d rounded-[5px] p-6 space-y-4 border" style="border-color: color-mix(in srgb, var(--theme-grad-2) 28%, var(--color-border));"><h2 class="text-lg font-bold theme-text mb-2">Definition of Ready Check</h2> <p class="text-xs font-semibold theme-text-muted mb-4">Validate a task description before delegation — substance, placeholders, file references, and domain alignment.</p> <textarea rows="3" placeholder="Describe the task to check against Definition of Ready gates..." class="w-full px-3 py-2 rounded-[3px] border text-xs font-bold theme-text-secondary theme-bg-surface login-field-effect focus:outline-none"></textarea> <div class="mt-3"><button class="btn-3d btn-3d-primary inline-flex items-center gap-2 px-5 py-2.5 rounded-[3px] font-bold text-xs text-white shadow-md cursor-pointer disabled:opacity-50"><!> Check Readiness</button></div> <!></section> <section class="space-y-4"><div class="flex flex-wrap items-center justify-between gap-3"><h2 class="text-lg font-bold theme-text"> </h2> <div class="flex items-center gap-2"><input type="text" placeholder="Filter by project path…" title="Leave empty to show tasks from every project" class="w-48 px-3 py-2 rounded-[3px] border text-xs font-bold theme-text-secondary theme-bg-surface login-field-effect focus:outline-none"/> <select class="px-3 py-2 rounded-[3px] border text-xs font-bold theme-text-secondary theme-bg-surface login-field-effect focus:outline-none"><option>All Statuses</option><option>Draft</option><option>Pending</option><option>In Progress</option><option>Completed</option><option>Verified</option><option>Blocked</option><option>Timed Out (Stale)</option></select> <button class="btn-3d btn-3d-secondary inline-flex items-center gap-1.5 px-3 py-2 rounded-[3px] font-bold text-xs cursor-pointer disabled:opacity-50" title="Reconcile old tasks stuck in_progress past their heartbeat lease"><svg class="w-3.5 h-3.5 text-[var(--theme-warning)]" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> Reconcile Stale</button> <button class="btn-3d btn-3d-secondary inline-flex items-center gap-2 px-4 py-2 rounded-[3px] font-bold text-xs cursor-pointer disabled:opacity-50" aria-label="Refresh"><!> Refresh</button> <!></div></div> <!></section></div>`);function M(t,r){y(r,!0);let D=_(``),M=_(`advisory`),N=_(`self`),P=_(`enabled`),F=_(`realtime-idle`),I=_(8192),L=_(1e5),Pe=_(!1),R=_(!1),z=_(``),B=_(null),V=_(!1),H=_(b([])),U=_(!1),W=_(``),G=_(``),K=_(null),Fe={draft:`theme-bg-subtle theme-text-secondary theme-border`,pending:`badge-status badge-status-warning`,pending_plan_approval:`badge-status badge-status-warning`,in_progress:`badge-status badge-status-info`,remediating:`badge-status badge-status-warning`,pending_human_signoff:`badge-status badge-status-warning`,completed:`badge-status badge-status-success`,verified:`badge-status badge-status-info`,blocked:`badge-status badge-status-danger`,timed_out:`badge-status badge-status-danger`,stale:`badge-status badge-status-danger`,failed:`badge-status badge-status-danger`},Ie={pending_plan_approval:`Pending Gate 1`,pending_human_signoff:`Pending Gate 2`,pending:`Processing`,processing:`Processing`,in_progress:`Processing`,remediating:`Remediate`,remediation:`Remediate`,remediate:`Remediate`,blocked:`Remediate`,plan_approved:`Approved`,approved:`Approved`,completed:`Completed`};function Le(e){return Ie[String(e||``).toLowerCase()]||String(e||``).toUpperCase()}function Re(e){return Fe[e]||`theme-bg-subtle theme-text-secondary theme-border`}let ze={antigravity:`Antigravity`,cursor:`Cursor`,claude:`Claude Code`,claudecode:`Claude Code`,omp:`OMP`,codex:`Codex`,opendevin:`OpenDevin`,cline:`Cline`,universal:`Universal`};function Be(e){if(!e)return`Universal`;let t=String(e).toLowerCase().trim();return ze[t]||e.charAt(0).toUpperCase()+e.slice(1)}let q=_(null);async function Ve(e,t){if(t&&t.stopPropagation(),u(q))return;let n=e.status===`pending_human_signoff`,r=n?`Sign Off`:`Approve Plan`;if(await A({title:`${r} for ${e.id}?`,message:n?`Complete Gate 2 sign-off to mark this task completed?`:`Approve Gate 1 plan and resume execution in progress?`,confirmText:r,variant:`primary`})){C(q,e.id,!0);try{await k.post(`/api/v1/sdlc/tasks/${encodeURIComponent(e.id)}/approve`,{}),O.success(`${r} successful for ${e.id}`),await J()}catch(e){O.error(`Approval failed: ${e.message}`)}finally{C(q,null)}}}async function He(){C(Pe,!0);try{let e=u(D)?`?project=${encodeURIComponent(u(D))}`:``,t=await k.get(`/api/v1/sdlc/config${e}`);C(D,t.project_path||u(D),!0),C(M,t.dor_mode||`advisory`,!0),C(N,t.review_mode||`self`,!0),C(P,t.hitl_mode||`enabled`,!0),C(F,t.advisor_mode||`realtime-idle`,!0),C(I,t.advisor_max_tokens||8192,!0),C(L,t.agent_input_token_quota||1e5,!0)}catch(e){O.error(`Failed to load SDLC config: `+e.message)}finally{C(Pe,!1)}}async function Ue(){if(!u(D).trim())O.warning(`Project path is required to set SDLC configuration.`);else{C(R,!0);try{let e=Number(u(L))>0?Math.floor(Number(u(L))):1e5,t=await k.patch(`/api/v1/sdlc/config`,{project_path:u(D).trim(),dor_mode:u(M),review_mode:u(N),hitl_mode:u(P),advisor_mode:u(F),advisor_max_tokens:u(I),agent_input_token_quota:e});C(M,t.dor_mode||u(M),!0),C(N,t.review_mode||u(N),!0),C(P,t.hitl_mode||u(P),!0),C(F,t.advisor_mode||u(F),!0),C(I,t.advisor_max_tokens||u(I),!0),C(L,t.agent_input_token_quota||e,!0),O.success(`SDLC configuration saved`)}catch(e){O.error(`Failed to save SDLC config: `+e.message)}finally{C(R,!1)}}}async function We(){if(!u(z).trim())O.warning(`Enter a task description to check readiness.`);else{C(V,!0),C(B,null);try{C(B,await k.post(`/api/v1/sdlc/check-readiness`,{task:u(z).trim(),project_path:u(D)||void 0}),!0)}catch(e){O.error(`Readiness check failed: `+e.message)}finally{C(V,!1)}}}async function J(){C(U,!0);try{let e=new URLSearchParams;u(W)&&e.set(`status`,u(W)),u(G)&&e.set(`project`,u(G).trim()),e.set(`limit`,`200`);let t=await k.get(`/api/v1/sdlc/tasks?${e.toString()}`);C(H,t.tasks||[],!0)}catch(e){O.error(`Failed to load tasks: `+e.message)}finally{C(U,!1)}}function Ge(e){C(K,u(K)===e?null:e,!0)}function Ke(e){return e===`high`?`bg-emerald-100 text-status-success border-status-success-soft`:e===`medium`?`bg-amber-100 text-status-warning border-status-warning-soft`:`bg-rose-100 text-status-danger border-status-danger-soft`}async function qe(e,t){if(t&&t.stopPropagation(),await A({title:`Delete SDLC Task?`,message:`Are you sure you want to delete task "${e}"? This action cannot be undone.`,confirmText:`Delete Task`,variant:`danger`}))try{await k.delete(`/api/v1/sdlc/tasks/${encodeURIComponent(e)}`),O.success(`Task deleted successfully`),await J()}catch(e){O.error(`Failed to delete task: `+e.message)}}async function Je(e,t){t&&t.stopPropagation();try{await k.post(`/api/v1/sdlc/tasks/${encodeURIComponent(e)}/restart`,{}),O.success(`Task "${e}" restarted`),await J()}catch(e){O.error(`Failed to restart task: `+e.message)}}async function Ye(){let e=!!(u(W)||u(G)),t=e?`Are you sure you want to clear all tasks matching the current filter (Status: "${u(W)||`All`}", Project: "${u(G)||`All`}")?`:`Are you sure you want to clear ALL SDLC tasks across all sessions? This clears obsolete task history.`;if(await A({title:e?`Clear Filtered Tasks?`:`Clear All SDLC Tasks?`,message:t,confirmText:`Clear Tasks`,variant:`danger`}))try{let t=new URLSearchParams;e?(u(W)&&t.set(`status`,u(W)),u(G)&&t.set(`project`,u(G).trim())):t.set(`all`,`true`);let n=await k.delete(`/api/v1/sdlc/tasks?${t.toString()}`);O.success(`Cleared ${n.deleted||0} task(s)`),await J()}catch(e){O.error(`Failed to clear tasks: `+e.message)}}async function Xe(){C(U,!0);try{let e=await k.post(`/api/v1/sdlc/tasks/reconcile`,{});e.reconciled_count>0?O.success(`Reconciled ${e.reconciled_count} stale in-progress task(s)`):O.info(`No stale tasks found. All active tasks have live heartbeats.`),await J()}catch(e){O.error(`Reconciliation failed: `+e.message)}finally{C(U,!1)}}a(()=>{He(),J()});var Ze=Ne();{let t=e=>{var t=re();o(e,t)};var Qe=s(Ze);ne(Qe,{title:`SDLC Tasks`,badgeText:`SDLC Governance`,get badgeIcon(){return t},description:`Definition of Ready checks, cross-provider review enforcement, zero-AI-slop gate results, and per-project SDLC configuration.`});var $e=T(Qe,2),et=T(s($e),2),tt=s(et),nt=T(s(tt),2);f(nt),S(tt);var rt=T(tt,2),Y=T(s(rt),2),it=s(Y);it.value=it.__value=`advisory`;var at=T(it);at.value=at.__value=`enforced`,S(Y),E(Y),S(rt);var ot=T(rt,2),st=T(s(ot),2),ct=s(st);ct.value=ct.__value=`self`;var lt=T(ct);lt.value=lt.__value=`cross-provider`,S(st),E(st),S(ot);var ut=T(ot,2),dt=T(s(ut),2),ft=s(dt);ft.value=ft.__value=`enabled`;var pt=T(ft);pt.value=pt.__value=`disabled`,S(dt),E(dt),S(ut);var mt=T(ut,2),ht=T(s(mt),2),gt=s(ht);gt.value=gt.__value=`realtime-idle`;var _t=T(gt);_t.value=_t.__value=`turn-gate`;var vt=T(_t);vt.value=vt.__value=`off`,S(ht),E(ht),S(mt);var yt=T(mt,2),bt=T(s(yt),2);f(bt),S(yt),S(et);var xt=T(et,2),X=s(xt),St=s(X),Ct=e=>{var t=ie();o(e,t)};l(St,e=>{u(R)&&e(Ct)}),h(),S(X);var wt=T(X,2);S(xt),S($e);var Tt=T($e,2),Et=T(s(Tt),4);w(Et);var Dt=T(Et,2),Ot=s(Dt),kt=s(Ot),At=e=>{var t=ie();o(e,t)};l(kt,e=>{u(V)&&e(At)}),h(),S(Ot),S(Dt);var jt=T(Dt,2),Mt=e=>{var t=ue(),r=s(t),a=s(r),d=s(a),f=e=>{var t=ae();h(2),o(e,t)},p=e=>{var t=oe();h(2),o(e,t)};l(d,e=>{u(B).ready?e(f):e(p,-1)}),S(a);var g=T(a,2),_=m(g);S(r);var v=T(r,2),y=e=>{var t=ce();c(t,20,()=>u(B).missing,e=>e,(e,t)=>{var r=se(),a=m(r,!0);n(()=>i(a,t)),o(e,r)}),S(t),o(e,t)},b=e=>{var t=le();o(e,t)};l(v,e=>{u(B).missing&&u(B).missing.length>0?e(y):u(B).ready&&e(b,1)}),S(t),n(e=>{x(a,1,`px-2.5 py-1 rounded-[3px] text-xs font-bold border flex items-center gap-1 ${u(B).ready?`badge-status badge-status-success`:`badge-status badge-status-danger`}`),x(g,1,`px-2.5 py-1 rounded-[3px] text-xs font-bold border ${e??``}`),i(_,`Confidence: ${(u(B).confidence||`n/a`)??``}`)},[()=>Ke(u(B).confidence)]),o(e,t)};l(jt,e=>{u(B)&&e(Mt)}),S(Tt);var Nt=T(Tt,2),Pt=s(Nt),Ft=s(Pt),It=m(Ft),Lt=T(Ft,2),Z=s(Lt);f(Z);var Q=T(Z,2),Rt=s(Q);Rt.value=Rt.__value=``;var zt=T(Rt);zt.value=zt.__value=`draft`;var Bt=T(zt);Bt.value=Bt.__value=`pending`;var Vt=T(Bt);Vt.value=Vt.__value=`in_progress`;var Ht=T(Vt);Ht.value=Ht.__value=`completed`;var Ut=T(Ht);Ut.value=Ut.__value=`verified`;var Wt=T(Ut);Wt.value=Wt.__value=`blocked`;var Gt=T(Wt);Gt.value=Gt.__value=`timed_out`,S(Q),E(Q);var Kt=T(Q,2),$=T(Kt,2),qt=s($),Jt=e=>{var t=de();o(e,t)};l(qt,e=>{u(U)&&e(Jt)}),h(),S($);var Yt=T($,2),Xt=t=>{var r=fe();n(()=>r.disabled=u(U)),e(`click`,r,Ye),o(t,r)};l(Yt,e=>{u(H).length>0&&e(Xt)}),S(Lt),S(Pt);var Zt=T(Pt,2),Qt=e=>{var t=pe();o(e,t)},$t=e=>{var t=j();o(e,t)},en=t=>{var r=Me();c(r,21,()=>u(H),e=>e.id,(t,r)=>{var a=je(),d=s(a),f=s(d),p=s(f),g=s(p),_=m(g,!0),v=T(g,2),y=m(v,!0),b=T(v,2),C=m(b),w=T(b,2),E=e=>{var t=me(),a=m(t);n(e=>i(a,`Client: ${e??``}`),[()=>Be(u(r).client)]),o(e,t)};l(w,e=>{u(r).client&&e(E)});var D=T(w,2),O=e=>{var t=he(),a=m(t);n(()=>{x(t,1,`px-2 py-0.5 rounded-[3px] text-xs font-bold border ${u(r).dor_result.ready?`badge-status badge-status-success`:`badge-status badge-status-danger`}`),i(a,`DoR: ${u(r).dor_result.ready?`ready`:`not ready`}`)}),o(e,t)};l(D,e=>{u(r).dor_result&&u(r).dor_result.ready!==void 0&&e(O)});var k=T(D,2),A=e=>{var t=he(),a=m(t);n(()=>{x(t,1,`px-2 py-0.5 rounded-[3px] text-xs font-bold border ${u(r).slop_result.pass?`badge-status badge-status-success`:`badge-status badge-status-danger`}`),i(a,`Slop: ${u(r).slop_result.pass?`clean`:`findings`}`)}),o(e,t)};l(k,e=>{u(r).slop_result&&u(r).slop_result.pass!==void 0&&e(A)});var ne=T(k,2),re=e=>{var t=ge(),a=m(t);n(()=>i(a,`${u(r).slop_cycles??``} cycle${u(r).slop_cycles===1?``:`s`}`)),o(e,t)};l(ne,e=>{u(r).slop_cycles>0&&e(re)}),S(p);var ie=T(p,2),ae=m(ie,!0);S(f);var oe=T(f,2),ce=s(oe),le=m(ce,!0),ue=T(ce,2),de=t=>{var i=ye(),a=s(i),c=e=>{var t=_e();o(e,t)},d=e=>{var t=ve();o(e,t)};l(a,e=>{u(q)===u(r).id?e(c):e(d,-1)}),h(),S(i),n(()=>i.disabled=u(q)===u(r).id),e(`click`,i,e=>Ve(u(r),e)),o(t,i)},fe=t=>{var i=xe(),a=s(i),c=e=>{var t=_e();o(e,t)},d=e=>{var t=be();o(e,t)};l(a,e=>{u(q)===u(r).id?e(c):e(d,-1)}),h(),S(i),n(()=>i.disabled=u(q)===u(r).id),e(`click`,i,e=>Ve(u(r),e)),o(t,i)};l(ue,e=>{u(r).status===`pending_plan_approval`?e(de):u(r).status===`pending_human_signoff`&&e(fe,1)});var pe=T(ue,2),j=T(pe,2),Me=m(j);S(oe),S(d);var Ne=T(d,2),M=t=>{var a=Ae(),d=s(a),f=e=>{var t=Se(),a=T(s(t)),c=m(a,!0);S(t),n(()=>i(c,u(r).project_path)),o(e,t)};l(d,e=>{u(r).project_path&&e(f)});var p=T(d,2),h=e=>{var t=Ce(),a=T(s(t),2);c(a,20,()=>u(r).dor_result.missing,e=>e,(e,t)=>{var r=se(),a=m(r,!0);n(()=>i(a,t)),o(e,r)}),S(a),S(t),o(e,t)};l(p,e=>{u(r).dor_result&&u(r).dor_result.missing&&u(r).dor_result.missing.length>0&&e(h)});var g=T(p,2),_=e=>{var t=we(),a=T(s(t),2),c=m(a,!0);S(t),n(e=>i(c,e),[()=>JSON.stringify(u(r).slop_result,null,2)]),o(e,t)},v=te(()=>u(r).slop_result&&Object.keys(u(r).slop_result).length>0);l(g,e=>{u(v)&&e(_)});var y=T(g,2),b=e=>{var t=Te(),a=T(s(t),2),c=m(a,!0);S(t),n(e=>i(c,e),[()=>JSON.stringify(u(r).evidence,null,2)]),o(e,t)},ee=te(()=>u(r).evidence&&Object.keys(u(r).evidence).length>0);l(y,e=>{u(ee)&&e(b)});var x=T(y,2),C=e=>{var t=Ee(),a=s(t),c=T(s(a),2),l=m(c,!0);S(a);var d=T(a,2),f=T(s(d)),p=m(f,!0),h=T(f);S(d),S(t),n(()=>{i(l,u(r).evidence.reconciliation.reconciled_at||``),i(p,u(r).evidence.reconciliation.previous_status),i(h,` • Reason: ${u(r).evidence.reconciliation.reason??``}`)}),o(e,t)};l(x,e=>{u(r).evidence&&u(r).evidence.reconciliation&&e(C)});var w=T(x,2),E=e=>{var t=De();o(e,t)},D=te(()=>(!u(r).dor_result||Object.keys(u(r).dor_result).length===0)&&(!u(r).slop_result||Object.keys(u(r).slop_result).length===0)&&(!u(r).evidence||Object.keys(u(r).evidence).length===0));l(w,e=>{u(D)&&e(E)});var O=T(w,2),k=s(O),A=t=>{var n=Oe();e(`click`,n,e=>Je(u(r).id,e)),o(t,n)},ne=e=>{var t=ke();o(e,t)};l(k,e=>{u(r).status===`timed_out`||u(r).status===`blocked`||u(r).status===`failed`?e(A):e(ne,-1)});var re=T(k,2);S(O),S(a),e(`click`,re,e=>qe(u(r).id,e)),o(t,a)};l(Ne,e=>{u(K)===u(r).id&&e(M)}),S(a),n((e,t)=>{i(_,u(r).id),x(v,1,`px-2 py-0.5 rounded-[3px] text-xs font-bold border ${e??``}`),i(y,t),i(C,`review: ${(u(r).review_mode||`self`)??``}`),i(ae,u(r).description),i(le,u(r).updated_at||``),ee(j,`title`,u(K)===u(r).id?`Collapse details`:`Expand details`),x(Me,0,`w-4 h-4 transition-transform ${u(K)===u(r).id?`rotate-180`:``}`)},[()=>Re(u(r).status),()=>Le(u(r).status)]),e(`click`,f,()=>Ge(u(r).id)),e(`click`,pe,e=>qe(u(r).id,e)),e(`click`,j,()=>Ge(u(r).id)),o(t,a)}),S(r),o(t,r)};l(Zt,e=>{u(U)&&u(H).length===0?e(Qt):u(H).length===0?e($t,1):e(en,-1)}),S(Nt),S(Ze),n(e=>{X.disabled=u(R),wt.disabled=u(Pe),Ot.disabled=e,i(It,`Tasks (${u(H).length??``})`),Kt.disabled=u(U),$.disabled=u(U)},[()=>u(V)||!u(z).trim()]),g(nt,()=>u(D),e=>C(D,e)),v(Y,()=>u(M),e=>C(M,e)),v(st,()=>u(N),e=>C(N,e)),v(dt,()=>u(P),e=>C(P,e)),v(ht,()=>u(F),e=>C(F,e)),g(bt,()=>u(L),e=>C(L,e)),e(`click`,X,Ue),e(`click`,wt,He),g(Et,()=>u(z),e=>C(z,e)),e(`click`,Ot,We),e(`keydown`,Z,e=>{e.key===`Enter`&&J()}),d(`blur`,Z,()=>J()),g(Z,()=>u(G),e=>C(G,e)),e(`change`,Q,J),v(Q,()=>u(W),e=>C(W,e)),e(`click`,Kt,Xe),e(`click`,$,J)}o(t,Ze),p()}D([`click`,`keydown`,`change`]);function N(e){M(e,{})}export{N as component};
1
+ import{B as e,I as t,J as n,L as r,M as i,O as a,P as o,Q as s,S as c,T as l,U as u,V as d,a as f,ct as p,et as m,ft as h,i as g,it as _,l as v,lt as y,nt as b,o as ee,ot as te,p as x,pt as S,rt as C,st as w,tt as T,u as E,z as D}from"../chunks/C5rL-2rZ.js";import{t as O}from"../chunks/CMfYCyHI.js";import{t as k}from"../chunks/DVDyaR1u.js";import{t as A}from"../chunks/DuefosH7.js";import"../chunks/BRFppjEf.js";import{t as ne}from"../chunks/KQlRtB_5.js";var re=r(`<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path></svg>`),ie=r(`<svg class="animate-spin w-4 h-4" viewBox="0 0 24 24" fill="none"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"></path></svg>`),ae=t(`<svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span>Ready</span>`,1),oe=t(`<svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg> <span>Not Ready</span>`,1),se=t(`<li> </li>`),ce=t(`<ul class="list-disc list-inside space-y-1 text-sm font-semibold theme-text-secondary"></ul>`),le=t(`<p class="text-sm font-semibold text-status-success">Task passes all Definition of Ready criteria.</p>`),ue=t(`<div class="mt-5 rounded-[3px] border p-4 space-y-3" style="border-color: var(--color-border, #e2e8f0); background-color: var(--color-primary-glow, #faf5ff);"><div class="flex flex-wrap items-center gap-2"><span><!></span> <span> </span></div> <!></div>`),de=r(`<svg class="animate-spin w-3.5 h-3.5" viewBox="0 0 24 24" fill="none"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"></path></svg>`),fe=t(`<button class="btn-3d inline-flex items-center gap-1.5 px-3 py-2 rounded-[3px] font-bold text-xs badge-status badge-status-danger cursor-pointer hover:bg-status-danger-soft disabled:opacity-50" title="Clear tasks to prevent stale task hallucination"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg> Clear Tasks</button>`),pe=t(`<div class="metric-card-3d rounded-[5px] p-10 border flex items-center justify-center" style="border-color: color-mix(in srgb, var(--theme-grad-1) 20%, var(--color-border));"><svg class="animate-spin w-8 h-8" style="color: var(--color-primary, #7c3aed);" viewBox="0 0 24 24" fill="none"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"></path></svg></div>`),j=t(`<div class="metric-card-3d rounded-[5px] p-10 border text-center" style="border-color: color-mix(in srgb, var(--theme-grad-1) 20%, var(--color-border));"><p class="text-sm font-bold theme-text-muted">No SDLC tasks found. Tasks are created automatically by agents during SDLC execution.</p></div>`),me=t(`<span class="px-2 py-0.5 rounded-[3px] text-xs font-bold border badge-status badge-status-info"> </span>`),he=t(`<span> </span>`),ge=t(`<span class="px-2 py-0.5 rounded-[3px] text-xs font-bold border badge-status badge-status-warning"> </span>`),_e=r(`<svg class="animate-spin w-3 h-3" viewBox="0 0 24 24" fill="none"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"></path></svg>`),ve=r(`<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7"></path></svg>`),ye=t(`<button type="button" class="btn-3d px-2.5 py-1 rounded-[3px] font-bold text-xs badge-status badge-status-success cursor-pointer hover:opacity-90 disabled:opacity-50 inline-flex items-center gap-1" title="Approve Gate 1 Plan"><!> Approve Plan</button>`),be=r(`<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>`),xe=t(`<button type="button" class="btn-3d px-2.5 py-1 rounded-[3px] font-bold text-xs badge-status badge-status-success cursor-pointer hover:opacity-90 disabled:opacity-50 inline-flex items-center gap-1" title="Gate 2 Human Sign Off"><!> Sign Off</button>`),Se=t(`<p class="text-xs font-bold theme-text-muted">Project: <code class="theme-text-secondary"> </code></p>`),Ce=t(`<div><h3 class="text-xs font-black theme-text-secondary uppercase tracking-wide mb-1.5">DoR Missing Criteria</h3> <ul class="list-disc list-inside space-y-0.5 text-sm font-semibold theme-text-secondary"></ul></div>`),we=t(`<div><h3 class="text-xs font-black theme-text-secondary uppercase tracking-wide mb-1.5">Zero-AI-Slop Gate</h3> <pre class="text-xs font-semibold theme-text-secondary theme-bg-surface border rounded-[3px] p-3 overflow-x-auto" style="border-color: var(--color-border, #e2e8f0);"> </pre></div>`),Te=t(`<div><h3 class="text-xs font-black theme-text-secondary uppercase tracking-wide mb-1.5">Evidence</h3> <pre class="text-xs font-semibold theme-text-secondary theme-bg-surface border rounded-[3px] p-3 overflow-x-auto" style="border-color: var(--color-border, #e2e8f0);"> </pre></div>`),Ee=t(`<div class="p-3 rounded-[3px] border badge-status badge-status-warning text-xs font-semibold space-y-1"><div class="flex items-center justify-between"><span class="font-bold">⚠️ Reconciled Stale Task</span> <span class="font-mono text-[11px]"> </span></div> <p class="theme-text-secondary">Previous status: <span class="font-bold"> </span> </p></div>`),De=t(`<p class="text-xs font-semibold theme-text-muted">No gate results or evidence recorded for this task yet.</p>`),Oe=t(`<button type="button" class="btn-3d inline-flex items-center gap-1.5 px-3 py-1.5 rounded-[3px] text-xs font-bold badge-status badge-status-info cursor-pointer hover:opacity-90"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"></path></svg> Restart Task</button>`),ke=t(`<div></div>`),Ae=t(`<div class="border-t px-4 sm:px-5 py-4 space-y-4 theme-bg-muted" style="border-color: var(--color-border, #e2e8f0);"><!> <!> <!> <!> <!> <!> <div class="flex items-center justify-between pt-2 border-t" style="border-color: var(--color-border, #e2e8f0);"><!> <button type="button" class="btn-3d inline-flex items-center gap-1.5 px-3 py-1.5 rounded-[3px] text-xs font-bold badge-status badge-status-danger hover:bg-status-danger-soft cursor-pointer"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg> Delete Task</button></div></div>`),je=t(`<div class="metric-card-3d rounded-[5px] border overflow-hidden transition-all" style="border-color: color-mix(in srgb, var(--theme-grad-1) 22%, var(--color-border));"><div class="w-full p-4 sm:p-5 flex flex-wrap items-start justify-between gap-3 hover-bg-muted transition-colors"><button type="button" class="min-w-0 flex-1 space-y-1.5 text-left cursor-pointer focus:outline-none"><div class="flex flex-wrap items-center gap-2"><code class="text-xs font-bold theme-text-muted"> </code> <span> </span> <span class="px-2 py-0.5 rounded-[3px] text-xs font-bold border theme-bg-subtle theme-text-secondary theme-border-strong-b"> </span> <!> <!> <!> <!></div> <p class="text-sm font-semibold theme-text break-words line-clamp-2"> </p></button> <div class="flex items-center gap-2 shrink-0"><span class="text-xs font-semibold theme-text-muted"> </span> <!> <button type="button" class="p-1.5 rounded-[3px] theme-text-muted hover:text-[var(--theme-danger)] hover:bg-status-danger-soft transition-colors cursor-pointer" title="Delete this task" aria-label="Delete task"><svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg></button> <button type="button" class="p-1.5 rounded-[3px] theme-text-muted hover:theme-text hover-bg-subtle transition-colors cursor-pointer" aria-label="Toggle details"><svg fill="none" stroke="currentColor" viewBox="0 0 24 24" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"></path></svg></button></div></div> <!></div>`),Me=t(`<div class="space-y-3"></div>`),Ne=t(`<div class="space-y-8 w-full"><!> <section class="metric-card-3d rounded-[5px] p-6 space-y-4 border" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><h2 class="text-lg font-bold theme-text mb-4">Project Configuration</h2> <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-6 gap-4"><label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">Project Path</span> <input type="text" placeholder="/absolute/path/to/project" class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"/></label> <label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">DoR Mode</span> <select class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"><option>Advisory</option><option>Enforced</option></select></label> <label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">Review Mode</span> <select class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"><option>Self</option><option>Cross-Provider</option></select></label> <label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">HITL Mode</span> <select class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"><option>Enabled (Safe)</option><option>Disabled (Autonomous)</option></select></label> <label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">Advisor Guard (≤8k tok/turn)</span> <select class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"><option>Real-Time Idle Monitor (Default)</option><option>Turn Gate Only</option><option>Off</option></select></label> <label class="block"><span class="block text-xs font-bold theme-text-secondary mb-1.5">Agent Input Quota (tok/agent)</span> <input type="number" min="1000" step="1000" placeholder="100000" class="w-full px-3 py-2 rounded-[3px] border text-sm font-semibold theme-text theme-bg-surface login-field-effect input-theme"/></label></div> <div class="mt-4 flex items-center gap-3"><button class="btn-3d btn-3d-primary inline-flex items-center gap-2 px-5 py-2.5 rounded-[3px] font-bold text-xs text-white shadow-md cursor-pointer disabled:opacity-50"><!> Save Configuration</button> <button class="btn-3d btn-3d-secondary inline-flex items-center gap-2 px-5 py-2.5 rounded-[3px] font-bold text-xs cursor-pointer disabled:opacity-50">Reload</button></div></section> <section class="metric-card-3d rounded-[5px] p-6 space-y-4 border" style="border-color: color-mix(in srgb, var(--theme-grad-2) 28%, var(--color-border));"><h2 class="text-lg font-bold theme-text mb-2">Definition of Ready Check</h2> <p class="text-xs font-semibold theme-text-muted mb-4">Validate a task description before delegation — substance, placeholders, file references, and domain alignment.</p> <textarea rows="3" placeholder="Describe the task to check against Definition of Ready gates..." class="w-full px-3 py-2 rounded-[3px] border text-xs font-bold theme-text-secondary theme-bg-surface login-field-effect focus:outline-none"></textarea> <div class="mt-3"><button class="btn-3d btn-3d-primary inline-flex items-center gap-2 px-5 py-2.5 rounded-[3px] font-bold text-xs text-white shadow-md cursor-pointer disabled:opacity-50"><!> Check Readiness</button></div> <!></section> <section class="space-y-4"><div class="flex flex-wrap items-center justify-between gap-3"><h2 class="text-lg font-bold theme-text"> </h2> <div class="flex items-center gap-2"><input type="text" placeholder="Filter by project path…" title="Leave empty to show tasks from every project" class="w-48 px-3 py-2 rounded-[3px] border text-xs font-bold theme-text-secondary theme-bg-surface login-field-effect focus:outline-none"/> <select class="px-3 py-2 rounded-[3px] border text-xs font-bold theme-text-secondary theme-bg-surface login-field-effect focus:outline-none"><option>All Statuses</option><option>Draft</option><option>Pending</option><option>In Progress</option><option>Completed</option><option>Verified</option><option>Blocked</option><option>Timed Out (Stale)</option></select> <button class="btn-3d btn-3d-secondary inline-flex items-center gap-1.5 px-3 py-2 rounded-[3px] font-bold text-xs cursor-pointer disabled:opacity-50" title="Reconcile old tasks stuck in_progress past their heartbeat lease"><svg class="w-3.5 h-3.5 text-[var(--theme-warning)]" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> Reconcile Stale</button> <button class="btn-3d btn-3d-secondary inline-flex items-center gap-2 px-4 py-2 rounded-[3px] font-bold text-xs cursor-pointer disabled:opacity-50" aria-label="Refresh"><!> Refresh</button> <!></div></div> <!></section></div>`);function M(t,r){y(r,!0);let D=_(``),M=_(`advisory`),N=_(`self`),P=_(`enabled`),F=_(`realtime-idle`),I=_(8192),L=_(1e5),Pe=_(!1),R=_(!1),z=_(``),B=_(null),V=_(!1),H=_(b([])),U=_(!1),W=_(``),G=_(``),K=_(null),Fe={draft:`theme-bg-subtle theme-text-secondary theme-border`,pending:`badge-status badge-status-warning`,pending_plan_approval:`badge-status badge-status-warning`,in_progress:`badge-status badge-status-info`,remediating:`badge-status badge-status-warning`,pending_human_signoff:`badge-status badge-status-warning`,completed:`badge-status badge-status-success`,verified:`badge-status badge-status-info`,blocked:`badge-status badge-status-danger`,timed_out:`badge-status badge-status-danger`,stale:`badge-status badge-status-danger`,failed:`badge-status badge-status-danger`},Ie={pending_plan_approval:`Pending Gate 1`,pending_human_signoff:`Pending Gate 2`,pending:`Processing`,processing:`Processing`,in_progress:`Processing`,remediating:`Remediate`,remediation:`Remediate`,remediate:`Remediate`,blocked:`Remediate`,plan_approved:`Approved`,approved:`Approved`,completed:`Completed`};function Le(e){return Ie[String(e||``).toLowerCase()]||String(e||``).toUpperCase()}function Re(e){return Fe[e]||`theme-bg-subtle theme-text-secondary theme-border`}let ze={antigravity:`Antigravity`,cursor:`Cursor`,claude:`Claude Code`,claudecode:`Claude Code`,omp:`OMP`,codex:`Codex`,opendevin:`OpenDevin`,cline:`Cline`,universal:`Universal`};function Be(e){if(!e)return`Universal`;let t=String(e).toLowerCase().trim();return ze[t]||e.charAt(0).toUpperCase()+e.slice(1)}let q=_(null);async function Ve(e,t){if(t&&t.stopPropagation(),u(q))return;let n=e.status===`pending_human_signoff`,r=n?`Sign Off`:`Approve Plan`;if(await A({title:`${r} for ${e.id}?`,message:n?`Complete Gate 2 sign-off to mark this task completed?`:`Approve Gate 1 plan and resume execution in progress?`,confirmText:r,variant:`primary`})){C(q,e.id,!0);try{await k.post(`/api/v1/sdlc/tasks/${encodeURIComponent(e.id)}/approve`,{}),O.success(`${r} successful for ${e.id}`),await J()}catch(e){O.error(`Approval failed: ${e.message}`)}finally{C(q,null)}}}async function He(){C(Pe,!0);try{let e=u(D)?`?project=${encodeURIComponent(u(D))}`:``,t=await k.get(`/api/v1/sdlc/config${e}`);C(D,t.project_path||u(D),!0),C(M,t.dor_mode||`advisory`,!0),C(N,t.review_mode||`self`,!0),C(P,t.hitl_mode||`enabled`,!0),C(F,t.advisor_mode||`realtime-idle`,!0),C(I,t.advisor_max_tokens||8192,!0),C(L,t.agent_input_token_quota||1e5,!0)}catch(e){O.error(`Failed to load SDLC config: `+e.message)}finally{C(Pe,!1)}}async function Ue(){if(!u(D).trim())O.warning(`Project path is required to set SDLC configuration.`);else{C(R,!0);try{let e=Number(u(L))>0?Math.floor(Number(u(L))):1e5,t=await k.patch(`/api/v1/sdlc/config`,{project_path:u(D).trim(),dor_mode:u(M),review_mode:u(N),hitl_mode:u(P),advisor_mode:u(F),advisor_max_tokens:u(I),agent_input_token_quota:e});C(M,t.dor_mode||u(M),!0),C(N,t.review_mode||u(N),!0),C(P,t.hitl_mode||u(P),!0),C(F,t.advisor_mode||u(F),!0),C(I,t.advisor_max_tokens||u(I),!0),C(L,t.agent_input_token_quota||e,!0),O.success(`SDLC configuration saved`)}catch(e){O.error(`Failed to save SDLC config: `+e.message)}finally{C(R,!1)}}}async function We(){if(!u(z).trim())O.warning(`Enter a task description to check readiness.`);else{C(V,!0),C(B,null);try{C(B,await k.post(`/api/v1/sdlc/check-readiness`,{task:u(z).trim(),project_path:u(D)||void 0}),!0)}catch(e){O.error(`Readiness check failed: `+e.message)}finally{C(V,!1)}}}async function J(){C(U,!0);try{let e=new URLSearchParams;u(W)&&e.set(`status`,u(W)),u(G)&&e.set(`project`,u(G).trim()),e.set(`limit`,`200`);let t=await k.get(`/api/v1/sdlc/tasks?${e.toString()}`);C(H,t.tasks||[],!0)}catch(e){O.error(`Failed to load tasks: `+e.message)}finally{C(U,!1)}}function Ge(e){C(K,u(K)===e?null:e,!0)}function Ke(e){return e===`high`?`bg-emerald-100 text-status-success border-status-success-soft`:e===`medium`?`bg-amber-100 text-status-warning border-status-warning-soft`:`bg-rose-100 text-status-danger border-status-danger-soft`}async function qe(e,t){if(t&&t.stopPropagation(),await A({title:`Delete SDLC Task?`,message:`Are you sure you want to delete task "${e}"? This action cannot be undone.`,confirmText:`Delete Task`,variant:`danger`}))try{await k.delete(`/api/v1/sdlc/tasks/${encodeURIComponent(e)}`),O.success(`Task deleted successfully`),await J()}catch(e){O.error(`Failed to delete task: `+e.message)}}async function Je(e,t){t&&t.stopPropagation();try{await k.post(`/api/v1/sdlc/tasks/${encodeURIComponent(e)}/restart`,{}),O.success(`Task "${e}" restarted`),await J()}catch(e){O.error(`Failed to restart task: `+e.message)}}async function Ye(){let e=!!(u(W)||u(G)),t=e?`Are you sure you want to clear all tasks matching the current filter (Status: "${u(W)||`All`}", Project: "${u(G)||`All`}")?`:`Are you sure you want to clear ALL SDLC tasks across all sessions? This clears obsolete task history.`;if(await A({title:e?`Clear Filtered Tasks?`:`Clear All SDLC Tasks?`,message:t,confirmText:`Clear Tasks`,variant:`danger`}))try{let t=new URLSearchParams;e?(u(W)&&t.set(`status`,u(W)),u(G)&&t.set(`project`,u(G).trim())):t.set(`all`,`true`);let n=await k.delete(`/api/v1/sdlc/tasks?${t.toString()}`);O.success(`Cleared ${n.deleted||0} task(s)`),await J()}catch(e){O.error(`Failed to clear tasks: `+e.message)}}async function Xe(){C(U,!0);try{let e=await k.post(`/api/v1/sdlc/tasks/reconcile`,{});e.reconciled_count>0?O.success(`Reconciled ${e.reconciled_count} stale in-progress task(s)`):O.info(`No stale tasks found. All active tasks have live heartbeats.`),await J()}catch(e){O.error(`Reconciliation failed: `+e.message)}finally{C(U,!1)}}a(()=>{He(),J()});var Ze=Ne();{let t=e=>{var t=re();o(e,t)};var Qe=s(Ze);ne(Qe,{title:`SDLC Tasks`,badgeText:`SDLC Governance`,get badgeIcon(){return t},description:`Definition of Ready checks, cross-provider review enforcement, zero-AI-slop gate results, and per-project SDLC configuration.`});var $e=T(Qe,2),et=T(s($e),2),tt=s(et),nt=T(s(tt),2);f(nt),S(tt);var rt=T(tt,2),Y=T(s(rt),2),it=s(Y);it.value=it.__value=`advisory`;var at=T(it);at.value=at.__value=`enforced`,S(Y),E(Y),S(rt);var ot=T(rt,2),st=T(s(ot),2),ct=s(st);ct.value=ct.__value=`self`;var lt=T(ct);lt.value=lt.__value=`cross-provider`,S(st),E(st),S(ot);var ut=T(ot,2),dt=T(s(ut),2),ft=s(dt);ft.value=ft.__value=`enabled`;var pt=T(ft);pt.value=pt.__value=`disabled`,S(dt),E(dt),S(ut);var mt=T(ut,2),ht=T(s(mt),2),gt=s(ht);gt.value=gt.__value=`realtime-idle`;var _t=T(gt);_t.value=_t.__value=`turn-gate`;var vt=T(_t);vt.value=vt.__value=`off`,S(ht),E(ht),S(mt);var yt=T(mt,2),bt=T(s(yt),2);f(bt),S(yt),S(et);var xt=T(et,2),X=s(xt),St=s(X),Ct=e=>{var t=ie();o(e,t)};l(St,e=>{u(R)&&e(Ct)}),h(),S(X);var wt=T(X,2);S(xt),S($e);var Tt=T($e,2),Et=T(s(Tt),4);w(Et);var Dt=T(Et,2),Ot=s(Dt),kt=s(Ot),At=e=>{var t=ie();o(e,t)};l(kt,e=>{u(V)&&e(At)}),h(),S(Ot),S(Dt);var jt=T(Dt,2),Mt=e=>{var t=ue(),r=s(t),a=s(r),d=s(a),f=e=>{var t=ae();h(2),o(e,t)},p=e=>{var t=oe();h(2),o(e,t)};l(d,e=>{u(B).ready?e(f):e(p,-1)}),S(a);var g=T(a,2),_=m(g);S(r);var v=T(r,2),y=e=>{var t=ce();c(t,20,()=>u(B).missing,e=>e,(e,t)=>{var r=se(),a=m(r,!0);n(()=>i(a,t)),o(e,r)}),S(t),o(e,t)},b=e=>{var t=le();o(e,t)};l(v,e=>{u(B).missing&&u(B).missing.length>0?e(y):u(B).ready&&e(b,1)}),S(t),n(e=>{x(a,1,`px-2.5 py-1 rounded-[3px] text-xs font-bold border flex items-center gap-1 ${u(B).ready?`badge-status badge-status-success`:`badge-status badge-status-danger`}`),x(g,1,`px-2.5 py-1 rounded-[3px] text-xs font-bold border ${e??``}`),i(_,`Confidence: ${(u(B).confidence||`n/a`)??``}`)},[()=>Ke(u(B).confidence)]),o(e,t)};l(jt,e=>{u(B)&&e(Mt)}),S(Tt);var Nt=T(Tt,2),Pt=s(Nt),Ft=s(Pt),It=m(Ft),Lt=T(Ft,2),Z=s(Lt);f(Z);var Q=T(Z,2),Rt=s(Q);Rt.value=Rt.__value=``;var zt=T(Rt);zt.value=zt.__value=`draft`;var Bt=T(zt);Bt.value=Bt.__value=`pending`;var Vt=T(Bt);Vt.value=Vt.__value=`in_progress`;var Ht=T(Vt);Ht.value=Ht.__value=`completed`;var Ut=T(Ht);Ut.value=Ut.__value=`verified`;var Wt=T(Ut);Wt.value=Wt.__value=`blocked`;var Gt=T(Wt);Gt.value=Gt.__value=`timed_out`,S(Q),E(Q);var Kt=T(Q,2),$=T(Kt,2),qt=s($),Jt=e=>{var t=de();o(e,t)};l(qt,e=>{u(U)&&e(Jt)}),h(),S($);var Yt=T($,2),Xt=t=>{var r=fe();n(()=>r.disabled=u(U)),e(`click`,r,Ye),o(t,r)};l(Yt,e=>{u(H).length>0&&e(Xt)}),S(Lt),S(Pt);var Zt=T(Pt,2),Qt=e=>{var t=pe();o(e,t)},$t=e=>{var t=j();o(e,t)},en=t=>{var r=Me();c(r,21,()=>u(H),e=>e.id,(t,r)=>{var a=je(),d=s(a),f=s(d),p=s(f),g=s(p),_=m(g,!0),v=T(g,2),y=m(v,!0),b=T(v,2),C=m(b),w=T(b,2),E=e=>{var t=me(),a=m(t);n(e=>i(a,`Client: ${e??``}`),[()=>Be(u(r).client)]),o(e,t)};l(w,e=>{u(r).client&&e(E)});var D=T(w,2),O=e=>{var t=he(),a=m(t);n(()=>{x(t,1,`px-2 py-0.5 rounded-[3px] text-xs font-bold border ${u(r).dor_result.ready?`badge-status badge-status-success`:`badge-status badge-status-danger`}`),i(a,`DoR: ${u(r).dor_result.ready?`ready`:`not ready`}`)}),o(e,t)};l(D,e=>{u(r).dor_result&&u(r).dor_result.ready!==void 0&&e(O)});var k=T(D,2),A=e=>{var t=he(),a=m(t);n(()=>{x(t,1,`px-2 py-0.5 rounded-[3px] text-xs font-bold border ${u(r).slop_result.pass?`badge-status badge-status-success`:`badge-status badge-status-danger`}`),i(a,`Slop: ${u(r).slop_result.pass?`clean`:`findings`}`)}),o(e,t)};l(k,e=>{u(r).slop_result&&u(r).slop_result.pass!==void 0&&e(A)});var ne=T(k,2),re=e=>{var t=ge(),a=m(t);n(()=>i(a,`${u(r).slop_cycles??``} cycle${u(r).slop_cycles===1?``:`s`}`)),o(e,t)};l(ne,e=>{u(r).slop_cycles>0&&e(re)}),S(p);var ie=T(p,2),ae=m(ie,!0);S(f);var oe=T(f,2),ce=s(oe),le=m(ce,!0),ue=T(ce,2),de=t=>{var i=ye(),a=s(i),c=e=>{var t=_e();o(e,t)},d=e=>{var t=ve();o(e,t)};l(a,e=>{u(q)===u(r).id?e(c):e(d,-1)}),h(),S(i),n(()=>i.disabled=u(q)===u(r).id),e(`click`,i,e=>Ve(u(r),e)),o(t,i)},fe=t=>{var i=xe(),a=s(i),c=e=>{var t=_e();o(e,t)},d=e=>{var t=be();o(e,t)};l(a,e=>{u(q)===u(r).id?e(c):e(d,-1)}),h(),S(i),n(()=>i.disabled=u(q)===u(r).id),e(`click`,i,e=>Ve(u(r),e)),o(t,i)};l(ue,e=>{u(r).status===`pending_plan_approval`?e(de):u(r).status===`pending_human_signoff`&&e(fe,1)});var pe=T(ue,2),j=T(pe,2),Me=m(j);S(oe),S(d);var Ne=T(d,2),M=t=>{var a=Ae(),d=s(a),f=e=>{var t=Se(),a=T(s(t)),c=m(a,!0);S(t),n(()=>i(c,u(r).project_path)),o(e,t)};l(d,e=>{u(r).project_path&&e(f)});var p=T(d,2),h=e=>{var t=Ce(),a=T(s(t),2);c(a,20,()=>u(r).dor_result.missing,e=>e,(e,t)=>{var r=se(),a=m(r,!0);n(()=>i(a,t)),o(e,r)}),S(a),S(t),o(e,t)};l(p,e=>{u(r).dor_result&&u(r).dor_result.missing&&u(r).dor_result.missing.length>0&&e(h)});var g=T(p,2),_=e=>{var t=we(),a=T(s(t),2),c=m(a,!0);S(t),n(e=>i(c,e),[()=>JSON.stringify(u(r).slop_result,null,2)]),o(e,t)},v=te(()=>u(r).slop_result&&Object.keys(u(r).slop_result).length>0);l(g,e=>{u(v)&&e(_)});var y=T(g,2),b=e=>{var t=Te(),a=T(s(t),2),c=m(a,!0);S(t),n(e=>i(c,e),[()=>JSON.stringify(u(r).evidence,null,2)]),o(e,t)},ee=te(()=>u(r).evidence&&Object.keys(u(r).evidence).length>0);l(y,e=>{u(ee)&&e(b)});var x=T(y,2),C=e=>{var t=Ee(),a=s(t),c=T(s(a),2),l=m(c,!0);S(a);var d=T(a,2),f=T(s(d)),p=m(f,!0),h=T(f);S(d),S(t),n(()=>{i(l,u(r).evidence.reconciliation.reconciled_at||``),i(p,u(r).evidence.reconciliation.previous_status),i(h,` • Reason: ${u(r).evidence.reconciliation.reason??``}`)}),o(e,t)};l(x,e=>{u(r).evidence&&u(r).evidence.reconciliation&&e(C)});var w=T(x,2),E=e=>{var t=De();o(e,t)},D=te(()=>(!u(r).dor_result||Object.keys(u(r).dor_result).length===0)&&(!u(r).slop_result||Object.keys(u(r).slop_result).length===0)&&(!u(r).evidence||Object.keys(u(r).evidence).length===0));l(w,e=>{u(D)&&e(E)});var O=T(w,2),k=s(O),A=t=>{var n=Oe();e(`click`,n,e=>Je(u(r).id,e)),o(t,n)},ne=e=>{var t=ke();o(e,t)};l(k,e=>{u(r).status===`timed_out`||u(r).status===`blocked`||u(r).status===`failed`?e(A):e(ne,-1)});var re=T(k,2);S(O),S(a),e(`click`,re,e=>qe(u(r).id,e)),o(t,a)};l(Ne,e=>{u(K)===u(r).id&&e(M)}),S(a),n((e,t)=>{i(_,u(r).id),x(v,1,`px-2 py-0.5 rounded-[3px] text-xs font-bold border ${e??``}`),i(y,t),i(C,`review: ${(u(r).review_mode||`self`)??``}`),i(ae,u(r).description),i(le,u(r).updated_at||``),ee(j,`title`,u(K)===u(r).id?`Collapse details`:`Expand details`),x(Me,0,`w-4 h-4 transition-transform ${u(K)===u(r).id?`rotate-180`:``}`)},[()=>Re(u(r).status),()=>Le(u(r).status)]),e(`click`,f,()=>Ge(u(r).id)),e(`click`,pe,e=>qe(u(r).id,e)),e(`click`,j,()=>Ge(u(r).id)),o(t,a)}),S(r),o(t,r)};l(Zt,e=>{u(U)&&u(H).length===0?e(Qt):u(H).length===0?e($t,1):e(en,-1)}),S(Nt),S(Ze),n(e=>{X.disabled=u(R),wt.disabled=u(Pe),Ot.disabled=e,i(It,`Tasks (${u(H).length??``})`),Kt.disabled=u(U),$.disabled=u(U)},[()=>u(V)||!u(z).trim()]),g(nt,()=>u(D),e=>C(D,e)),v(Y,()=>u(M),e=>C(M,e)),v(st,()=>u(N),e=>C(N,e)),v(dt,()=>u(P),e=>C(P,e)),v(ht,()=>u(F),e=>C(F,e)),g(bt,()=>u(L),e=>C(L,e)),e(`click`,X,Ue),e(`click`,wt,He),g(Et,()=>u(z),e=>C(z,e)),e(`click`,Ot,We),e(`keydown`,Z,e=>{e.key===`Enter`&&J()}),d(`blur`,Z,()=>J()),g(Z,()=>u(G),e=>C(G,e)),e(`change`,Q,J),v(Q,()=>u(W),e=>C(W,e)),e(`click`,Kt,Xe),e(`click`,$,J)}o(t,Ze),p()}D([`click`,`keydown`,`change`]);function N(e){M(e,{})}export{N as component};
@@ -1 +1 @@
1
- import{$ as e,B as t,C as n,F as r,I as i,J as a,L as o,M as s,O as c,P as l,Q as u,S as d,T as f,U as p,a as m,ct as h,d as g,et as _,ft as v,i as y,it as b,l as x,lt as S,nt as C,o as w,ot as T,p as E,pt as D,rt as O,s as k,st as ee,t as A,tt as j,u as te,z as M}from"../chunks/C5rL-2rZ.js";import{t as N}from"../chunks/CMfYCyHI.js";import{t as P}from"../chunks/DVDyaR1u.js";import{t as ne}from"../chunks/KBylTpfW.js";import"../chunks/BRFppjEf.js";import{t as re}from"../chunks/KQlRtB_5.js";var F=i(`<option> </option>`),I=i(`<optgroup label="Discovered Client / Bridge Models"></optgroup>`),ie=i(`<div role="presentation" class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-[var(--theme-overlay)] 35 backdrop-blur-sm animate-in fade-in duration-150"><div class="modal-card modal-3d w-full max-w-lg max-h-[90vh] overflow-y-auto p-6 sm:p-8 rounded-[3px] border shadow-2xl space-y-5 animate-in zoom-in-95 duration-150 glass-frost-strong" style="border-color: var(--theme-modal-border, color-mix(in srgb, var(--theme-grad-1) 38%, var(--color-border))); color: var(--color-text); box-shadow: var(--theme-modal-shadow, var(--shadow-3d));"><div class="flex items-center justify-between pb-3 border-b" style="border-color: var(--color-border);"><div class="flex items-center gap-2.5"><div class="w-8 h-8 rounded-[3px] flex items-center justify-center font-bold text-xs text-white shadow-sm" style="background: var(--theme-4gradient);"><svg class="w-4 h-4 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg></div> <div><h3 class="text-base font-bold" style="color: var(--color-text);">Create Custom Ninja Subagent</h3> <p class="text-xs" style="color: var(--color-text-muted);">Configure name, role, and custom instructions</p></div></div> <button type="button" class="w-7 h-7 rounded-[3px] flex items-center justify-center text-xs font-bold border transition-colors hover:scale-105 cursor-pointer" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);" aria-label="Close modal"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div> <div class="space-y-4 text-xs"><div><label for="create-ninja-name" class="font-bold block mb-1" style="color: var(--color-text);">Name (ID) *</label> <input id="create-ninja-name" type="text" placeholder="e.g. shinobi-coder" class="w-full px-3 py-2 text-xs rounded-[3px] border login-field-effect focus:outline-hidden" style="background: var(--color-surface); color: var(--color-text);"/> <p class="text-[11px] mt-1" style="color: var(--color-text-muted);">Unique identifier. Alphanumeric, underscores, or hyphens.</p></div> <div><label for="create-ninja-title" class="font-bold block mb-1" style="color: var(--color-text);">Title</label> <input id="create-ninja-title" type="text" placeholder="e.g. Visual Ninja Specialist" class="w-full px-3 py-2 text-xs rounded-[3px] border login-field-effect focus:outline-hidden" style="background: var(--color-surface); color: var(--color-text);"/></div> <div><label for="create-ninja-purpose" class="font-bold block mb-1" style="color: var(--color-text);">Purpose</label> <input id="create-ninja-purpose" type="text" placeholder="e.g. Specialized UI component generator" class="w-full px-3 py-2 text-xs rounded-[3px] border login-field-effect focus:outline-hidden" style="background: var(--color-surface); color: var(--color-text);"/></div> <div><label for="create-ninja-desc" class="font-bold block mb-1" style="color: var(--color-text);">Description</label> <textarea id="create-ninja-desc" rows="2" placeholder="Brief explanation of when to dispatch this subagent..." class="w-full px-3 py-2 text-xs rounded-[3px] border focus:outline-hidden resize-y login-field-effect" style="background: var(--color-surface); color: var(--color-text);"></textarea></div> <div><label for="create-ninja-inst" class="font-bold block mb-1" style="color: var(--color-text);">System Instructions</label> <textarea id="create-ninja-inst" rows="3" placeholder="Prompt and standard operating procedures for this agent..." class="w-full px-3 py-2 text-xs font-mono rounded-[3px] border focus:outline-hidden resize-y login-field-effect" style="background: var(--color-surface); color: var(--color-text);"></textarea></div> <div><label for="create-ninja-model" class="font-bold block mb-1" style="color: var(--color-text);">Model Assignment (Optional)</label> <div class="space-y-1.5"><select id="create-ninja-model" class="w-full px-3 py-2 text-xs rounded-[3px] border focus:outline-hidden login-field-effect" style="background: var(--color-surface); color: var(--color-text);"><option>⤺ Inherit (host client default)</option><!></select> <input type="text" placeholder="Or custom model string..." class="w-full px-3 py-1.5 text-xs font-mono rounded-[3px] border focus:outline-hidden login-field-effect" style="background: var(--color-surface); color: var(--color-text);"/></div></div></div> <div class="flex justify-end gap-2.5 pt-3 border-t" style="border-color: var(--color-border);"><button type="button" class="btn-3d btn-3d-secondary px-4 py-2 text-xs font-bold rounded-[3px] cursor-pointer">Cancel</button> <button type="button" class="btn-3d btn-3d-primary px-5 py-2 text-xs font-bold rounded-[3px] text-white cursor-pointer shadow-md"> </button></div></div></div>`);function ae(i,o){S(o,!0);let c=A(o,`createName`,15),g=A(o,`createTitle`,15),b=A(o,`createPurpose`,15),C=A(o,`createDescription`,15),w=A(o,`createInstructions`,15),T=A(o,`createModel`,15),E=A(o,`open`,3,!1),O=A(o,`bridgeModels`,19,()=>[]);var k=r(),M=e(k),N=e=>{var r=ie(),i=u(r),h=u(i),S=j(u(h),2);D(h);var E=j(h,2),k=u(E),A=j(u(k),2);m(A),v(2),D(k);var M=j(k,2),N=j(u(M),2);m(N),D(M);var P=j(M,2),ne=j(u(P),2);m(ne),D(P);var re=j(P,2),ae=j(u(re),2);ee(ae),D(re);var oe=j(re,2),L=j(u(oe),2);ee(L),D(oe);var se=j(oe,2),R=j(u(se),2),z=u(R),ce=u(z);ce.value=ce.__value=``;var le=j(ce),ue=e=>{var t=I();d(t,21,O,n,(e,t)=>{var n=F(),r=_(n),i={};a(()=>{s(r,`${(p(t).model_name||p(t).id)??``} ${p(t).bridge?`(${p(t).bridge})`:``}`),i!==(i=p(t).id)&&(n.value=(n.__value=i)??``)}),l(e,n)}),D(t),l(e,t)};f(le,e=>{O().length>0&&e(ue)}),D(z),te(z);var de=j(z,2);m(de),D(R),D(se),D(E);var fe=j(E,2),pe=u(fe),me=j(pe,2),he=_(me,!0);D(fe),D(i),D(r),a(()=>{me.disabled=o.createSubmitting,s(he,o.createSubmitting?`Creating...`:`Create Ninja`)}),t(`click`,r,e=>{e.target===e.currentTarget&&o.onclose()}),t(`click`,i,e=>e.stopPropagation()),t(`click`,S,function(...e){o.onclose?.apply(this,e)}),y(A,c),y(N,g),y(ne,b),y(ae,C),y(L,w),x(z,T),y(de,T),t(`click`,pe,function(...e){o.onclose?.apply(this,e)}),t(`click`,me,function(...e){o.onsubmit?.apply(this,e)}),l(e,r)};f(M,e=>{E()&&e(N)}),l(i,k),h()}M([`click`]);var oe=o(`<svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>`),L=i(`<button type="button" class="btn-3d btn-3d-primary px-4 py-3 rounded-[3px] text-xs font-bold text-white flex items-center gap-2 cursor-pointer shadow-md"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path></svg> Add Custom Ninja</button>`),se=i(`<div class="glass-card-3d px-4 py-3 rounded-[3px] border text-center" style="background: var(--color-surface); border-color: var(--color-border);"><div class="text-xs font-bold" style="color: var(--color-text-muted);">Official Roster</div> <div class="text-xl font-black text-[var(--theme-success)]"> </div></div> <div class="glass-card-3d px-4 py-3 rounded-[3px] border text-center" style="background: var(--color-surface); border-color: var(--color-border);"><div class="text-xs font-bold" style="color: var(--color-text-muted);">Skills Bound</div> <div class="text-xl font-black text-action-primary"> </div></div>`,1),R=i(`<div class="p-4 rounded-[3px] border badge-status badge-status-danger text-xs font-semibold"> </div>`),z=i(`<div class="flex items-center justify-center py-16 theme-text-secondary text-sm font-semibold"><div class="flex items-center gap-3"><svg class="animate-spin w-5 h-5 text-action-primary" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v8H4z"></path></svg> <span>Loading Ninja roster...</span></div></div>`),ce=i(`<span class="px-2 py-0.5 rounded-[3px] text-[10px] font-bold badge-status badge-status-warning flex items-center gap-1" title="Protected Village Ninja - Cannot be deleted"><svg class="w-3 h-3 text-[var(--theme-warning)]" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg> <span>Protected</span></span>`),le=i(`<div class="flex items-center gap-1"><button type="button" class="p-1 rounded-[3px] theme-text-muted hover:text-status-info hover:bg-status-info-soft transition-colors cursor-pointer" title="Edit custom ninja"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path></svg></button> <button type="button" class="p-1 rounded-[3px] theme-text-muted hover:text-[var(--theme-danger)] hover:bg-status-danger-soft transition-colors cursor-pointer" title="Delete custom agent"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg></button></div>`),ue=i(`<span class="px-2 py-0.5 rounded-[3px] text-[10px] font-mono font-bold badge-status badge-status-success">assigned</span>`),de=i(`<span class="px-2 py-0.5 rounded-[3px] text-[10px] font-mono font-bold border" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);">inherit</span>`),fe=i(`<option> </option>`),pe=i(`<optgroup label="9router Endpoints (Auto-Detected Local Gateway)"></optgroup>`),me=i(`<optgroup label="LLM Bridges &amp; Connected Clients"></optgroup>`),he=i(`<div class="flex items-center gap-1.5 text-[10px] font-mono text-status-success pt-0.5"><span class="w-1.5 h-1.5 rounded-full bg-status-success"></span> <span> </span></div>`),ge=i('<div class="flex items-center gap-1.5 text-[10px] font-mono text-status-warning pt-0.5"><span class="w-1.5 h-1.5 rounded-full bg-status-warning"></span> <span>9router installed (service offline — run `9router` to activate)</span></div>'),_e=i(`<div class="flex items-center gap-1.5 text-[10px] font-mono theme-text-muted pt-0.5"><span>9router not detected locally</span></div>`),ve=i(`<div class="flex items-center gap-1.5 pt-1"><input type="text" placeholder="e.g. claude-3-7-sonnet" class="flex-1 px-2.5 py-1.5 rounded-[3px] border text-xs font-mono login-field-effect" style="background: var(--color-surface); color: var(--color-text);"/> <button type="button" class="btn-3d px-2.5 py-1.5 rounded-[3px] text-xs font-bold text-white bg-action-primary hover:brightness-110 cursor-pointer">Set</button></div>`),ye=i(`<span class="px-1.5 py-0.5 rounded-[3px] text-[9px] font-mono font-bold gradient-badge shrink-0">active</span>`),be=i(`<label class="flex items-center justify-between p-2 rounded-[3px] border cursor-pointer text-xs transition-colors hover:bg-black/5" style="background: var(--color-surface); border-color: var(--color-border);"><div class="flex items-center gap-2 min-w-0 pr-2"><span style="color: var(--color-text);"> </span> <!></div> <input type="checkbox" class="rounded-[3px] w-4 h-4 cursor-pointer shrink-0 ml-2" style="accent-color: var(--color-primary);"/></label>`),xe=i(`<div class="metric-card-3d flex flex-col justify-between p-6 rounded-[5px] border" style="border-color: color-mix(in srgb, var(--theme-grad-2) 28%, var(--color-border));"><div><div class="flex items-start justify-between gap-4 mb-4"><div class="flex items-center gap-3"><div class="w-11 h-11 rounded-[3px] flex items-center justify-center shadow-md text-white shrink-0" style="background: var(--theme-4gradient); box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-grad-1) 35%, transparent);"><svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg></div> <div><h3 class="text-base font-black tracking-tight" style="color: var(--color-text);"> </h3> <span class="inline-block text-[11px] font-bold uppercase tracking-wider gradient-text"> </span></div></div> <div class="flex flex-col items-end gap-1"><!> <span class="px-2 py-0.5 rounded-[3px] text-[10px] font-mono font-bold badge-3d-subtle"> </span></div></div> <p class="text-xs font-semibold mb-4 leading-relaxed" style="color: var(--color-text-muted);"> </p> <div class="space-y-2 mb-6"><div class="flex items-center justify-between text-xs font-bold" style="color: var(--color-text);"><span>Model Assignment</span> <!></div> <div class="space-y-1.5"><select class="w-full p-2 rounded-[3px] border text-xs font-mono font-bold cursor-pointer login-field-effect" style="background: var(--color-surface); color: var(--color-text);"><option>⤺ Inherit (host client default)</option><!><!><!><option>✎ Custom model string...</option></select> <!> <!></div></div> <div class="space-y-3 pt-4 border-t" style="border-color: var(--color-border);"><div class="flex items-center justify-between text-xs font-bold" style="color: var(--color-text);"><span>Embedded Skill References</span> <span class="font-mono text-[11px]" style="color: var(--color-text-muted);"> </span></div> <div class="space-y-1.5 max-h-56 overflow-y-auto pr-1"></div></div></div></div>`),Se=i(`<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 perspective-container"></div>`),Ce=i(`<div role="presentation" class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-[var(--theme-overlay)] 35 backdrop-blur-sm animate-in fade-in duration-150"><div class="modal-card modal-3d w-full max-w-lg max-h-[90vh] overflow-y-auto p-6 sm:p-8 rounded-[3px] border shadow-2xl space-y-5 animate-in zoom-in-95 duration-150 glass-frost-strong" style="border-color: var(--theme-modal-border, color-mix(in srgb, var(--theme-grad-1) 38%, var(--color-border))); color: var(--color-text); box-shadow: var(--theme-modal-shadow, var(--shadow-3d));"><div class="flex items-center justify-between pb-3 border-b" style="border-color: var(--color-border);"><div class="flex items-center gap-2.5"><div class="w-8 h-8 rounded-[3px] flex items-center justify-center font-bold text-xs text-white shadow-sm" style="background: var(--theme-4gradient);"><svg class="w-4 h-4 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path></svg></div> <div><h3 class="text-base font-bold" style="color: var(--color-text);"> </h3> <p class="text-xs" style="color: var(--color-text-muted);">Update custom title, role, and instructions</p></div></div> <button type="button" class="w-7 h-7 rounded-[3px] flex items-center justify-center text-xs font-bold border transition-colors hover:scale-105 cursor-pointer" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);" aria-label="Close edit modal"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div> <div class="space-y-4 text-xs"><div><label for="edit-ninja-title" class="font-bold block mb-1" style="color: var(--color-text);">Title</label> <input id="edit-ninja-title" type="text" placeholder="e.g. Visual Ninja Specialist" class="w-full px-3 py-2 text-xs rounded-[3px] border focus:outline-hidden login-field-effect" style="background: var(--color-surface); color: var(--color-text);"/></div> <div><label for="edit-ninja-purpose" class="font-bold block mb-1" style="color: var(--color-text);">Purpose</label> <input id="edit-ninja-purpose" type="text" placeholder="e.g. Specialized UI component generator" class="w-full px-3 py-2 text-xs rounded-[3px] border focus:outline-hidden login-field-effect" style="background: var(--color-surface); color: var(--color-text);"/></div> <div><label for="edit-ninja-desc" class="font-bold block mb-1" style="color: var(--color-text);">Description</label> <textarea id="edit-ninja-desc" rows="2" placeholder="Brief explanation of when to dispatch this subagent..." class="w-full px-3 py-2 text-xs rounded-[3px] border focus:outline-hidden resize-y login-field-effect" style="background: var(--color-surface); color: var(--color-text);"></textarea></div> <div><label for="edit-ninja-inst" class="font-bold block mb-1" style="color: var(--color-text);">System Instructions</label> <textarea id="edit-ninja-inst" rows="3" placeholder="Prompt and standard operating procedures for this agent..." class="w-full px-3 py-2 text-xs font-mono rounded-[3px] border focus:outline-hidden resize-y login-field-effect" style="background: var(--color-surface); color: var(--color-text);"></textarea></div></div> <div class="flex justify-end gap-2.5 pt-3 border-t" style="border-color: var(--color-border);"><button type="button" class="btn-3d btn-3d-secondary px-4 py-2 text-xs font-bold rounded-[3px] cursor-pointer">Cancel</button> <button type="button" class="btn-3d btn-3d-primary px-5 py-2 text-xs font-bold rounded-[3px] text-white cursor-pointer shadow-md"> </button></div></div></div>`),we=i(`<div class="space-y-8 w-full"><!> <!> <!></div> <!> <!>`,1);function Te(r,i){S(i,!0);let o=b(C([])),x=b(C([])),A=b(C([])),M=b(null),F=b(!0),I=b(``),ie=T(()=>p(A).filter(e=>e.bridge===`9router`||e.source===`9router`)),Te=T(()=>(p(o)||[]).filter(e=>String(e.name||``).toLowerCase()!==`yamanaka`)),Ee=T(()=>p(A).filter(e=>e.bridge!==`9router`&&e.source!==`9router`)),De={sannin:`M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z`,kage:`M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z`,jonin:`M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01`,anbu:`M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z`,chunin:`M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9`,genin:`M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z`,"tokubetsu-jonin":`M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z`,akatsuki:`M20.618 5.984A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016zM12 9v2m0 4h.01`,yamanaka:`M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4`},B=new Set([`sannin`,`genin`,`kage`,`chunin`,`jonin`,`anbu`,`tokubetsu-jonin`,`akatsuki`,`yamanaka`]);function Oe(e){if(!e)return!1;let t=String(e).toLowerCase().replace(/^(mcp_|_mcp_|mcp-)/,``);return B.has(t)}let V=[`sannin-skill`,`genin-skill`,`kage-skill`,`chunin-skill`,`jonin-skill`,`anbu-skill`,`tokubetsu-jonin-skill`,`akatsuki-skill`,`konoha`,`antislop`,`i-have-adhd`];function ke(e){let t=e.skills||[],n=new Set(t),r=[...t];return V.forEach(e=>{n.has(e)||r.push(e)}),r}async function H(){O(F,!0),O(I,``);try{let e=P.get(`/api/v1/skills?limit=1000`).catch(()=>null),t=P.get(`/api/v1/bridges/models`).catch(()=>null);O(o,await P.get(`/api/v1/agents`),!0);let n=new Set(V);(p(o)||[]).forEach(e=>{(e.skills||[]).forEach(e=>n.add(e))}),O(x,Array.from(n).sort(),!0),O(F,!1);let[r,i]=await Promise.all([e,t]);if(Array.isArray(r)){let e=new Set(n);r.forEach(t=>{t.name&&e.add(t.name),t.skill_name&&e.add(t.skill_name)}),O(x,Array.from(e).sort(),!0)}i&&typeof i==`object`?(O(A,i.models||[],!0),O(M,i.nine_router||null,!0)):(O(A,[],!0),O(M,null))}catch(e){O(I,e.message,!0)}finally{O(F,!1)}}async function Ae(e,t,n){let r=!n;try{await P.patch(`/api/v1/agents/`+encodeURIComponent(e.name)+`/skills/`+encodeURIComponent(t),{embedded:r}),r?(e.skills||=[],e.skills.includes(t)||e.skills.push(t)):e.skills&&=e.skills.filter(e=>e!==t),O(o,[...p(o)],!0)}catch(e){N.error(`Toggle failed: `+e.message)}}async function je(e,t){let n=t===``?null:t;try{await P.patch(`/api/v1/agents/`+encodeURIComponent(e.name)+`/model`,{model:n}),n?e.model=n:delete e.model,O(o,[...p(o)],!0),N.success(`Model updated for @${e.name}`)}catch(e){N.error(`Model assignment failed: `+e.message)}}let U=C({});async function Me(e){await je(e,(U[e.name]||``).trim())}let W=b(!1),G=b(``),K=b(``),Ne=b(``),q=b(``),Pe=b(``),J=b(``),Y=b(!1),X=b(!1),Z=b(null),Fe=b(``),Ie=b(``),Q=b(``),Le=b(``),Re=b(``),$=b(!1);function ze(){O(G,``),O(K,``),O(Ne,``),O(q,``),O(Pe,``),O(J,``),O(W,!0)}function Be(e){Oe(e.name)?N.info(`Subagent "@${e.name}" is a protected official Konoha ninja agent. Core attributes are immutable. You can toggle models and skills directly on the card.`):(O(Z,e,!0),O(Fe,e.title||``,!0),O(Ie,e.purpose||``,!0),O(Q,e.description||``,!0),O(Le,e.instructions||``,!0),O(Re,e.model||``,!0),O(X,!0))}async function Ve(){if(!p(G).trim())N.warning(`Please enter a name for the custom ninja.`);else{O(Y,!0);try{await P.post(`/api/v1/agents`,{name:p(G).trim(),title:p(K).trim()||void 0,purpose:p(Ne).trim()||void 0,description:p(q).trim()||void 0,instructions:p(Pe).trim()||void 0,model:p(J).trim()||null}),N.success(`Custom subagent "@${p(G).trim()}" has been created.`),O(W,!1),await H()}catch(e){N.error(`Creation failed: `+e.message)}finally{O(Y,!1)}}}async function He(){if(p(Z)){O($,!0);try{await P.put(`/api/v1/agents/${encodeURIComponent(p(Z).name)}`,{title:p(Fe).trim(),purpose:p(Ie).trim(),description:p(Q).trim(),instructions:p(Le).trim(),model:p(Re).trim()||null}),N.success(`Custom subagent "@${p(Z).name}" updated successfully.`),O(X,!1),await H()}catch(e){N.error(`Update failed: `+e.message)}finally{O($,!1)}}}async function Ue(e){if(Oe(e))N.warning(`Subagent "@${e}" is a protected official Konoha ninja agent and cannot be deleted.`);else if(await ne({title:`Delete Custom Agent?`,message:`Are you sure you want to delete custom agent "@${e}"? This action cannot be undone.`,confirmText:`Delete`,variant:`danger`}))try{await P.delete(`/api/v1/agents/${encodeURIComponent(e)}`),N.success(`Custom agent "@${e}" has been deleted.`),await H()}catch(e){N.error(`Deletion failed: `+e.message)}}c(H);var We=we(),Ge=e(We);{let r=e=>{var t=oe();l(e,t)},i=e=>{var n=L();t(`click`,n,ze),l(e,n)},o=t=>{var n=se(),r=e(n),i=j(u(r),2),o=_(i);D(r);var c=j(r,2),d=j(u(c),2),f=_(d);D(c),a(()=>{s(o,`${B.size??``} Protected`),s(f,`${p(x).length??``} Indexed`)}),l(t,n)};var Ke=u(Ge);re(Ke,{title:`Ninja Subagents (Protected Village Roster)`,badgeText:`Official Subagent Roster`,get badgeIcon(){return r},description:`Autonomous specialized agents orchestrating tasks, audits, research, and frontend builds. Official ninjas are permanently protected against deletion.`,get actions(){return i},get stats(){return o}});var qe=j(Ke,2),Je=e=>{var t=R(),n=_(t,!0);a(()=>s(n,p(I))),l(e,t)};f(qe,e=>{p(I)&&e(Je)});var Ye=j(qe,2),Xe=e=>{var t=z();l(e,t)},Ze=e=>{var r=Se();d(r,21,()=>p(Te),n,(e,r)=>{var i=xe(),o=u(i),c=u(o),h=u(c),v=u(h),b=u(v),x=_(b);D(v);var S=j(v,2),C=u(S),O=_(C),ee=j(C,2),N=_(ee,!0);D(S),D(h);var P=j(h,2),ne=u(P),re=e=>{var t=ce();l(e,t)},F=T(()=>Oe(p(r).name)),I=e=>{var n=le(),i=u(n),a=j(i,2);D(n),t(`click`,i,()=>Be(p(r))),t(`click`,a,()=>Ue(p(r).name)),l(e,n)};f(ne,e=>{p(F)?e(re):e(I,-1)});var ae=j(ne,2),oe=_(ae);D(P),D(c);var L=j(c,2),se=_(L,!0),R=j(L,2),z=u(R),Se=j(u(z),2),Ce=e=>{var t=ue();l(e,t)},we=e=>{var t=de();l(e,t)};f(Se,e=>{p(r).model?e(Ce):e(we,-1)}),D(z);var Te=j(z,2),B=u(Te),V=u(B);V.value=V.__value=``;var H=j(V),W=e=>{var t=fe(),n=_(t),i={};a(()=>{s(n,`${p(r).model??``} (Custom Assigned)`),i!==(i=p(r).model)&&(t.value=(t.__value=i)??``)}),l(e,t)},G=T(()=>p(r).model&&!p(A).some(e=>e.id===p(r).model));f(H,e=>{p(G)&&e(W)});var K=j(H),Ne=e=>{var t=pe();d(t,21,()=>p(ie),n,(e,t)=>{var n=fe(),r=_(n,!0),i={};a(()=>{s(r,p(t).id),i!==(i=p(t).id)&&(n.value=(n.__value=i)??``)}),l(e,n)}),D(t),l(e,t)};f(K,e=>{p(ie).length>0&&e(Ne)});var q=j(K),Pe=e=>{var t=me();d(t,21,()=>p(Ee),n,(e,t)=>{var n=fe(),r=_(n),i={};a(()=>{s(r,`${(p(t).model_name||p(t).id)??``} ${p(t).bridge?`(${p(t).bridge})`:``}`),i!==(i=p(t).id)&&(n.value=(n.__value=i)??``)}),l(e,n)}),D(t),l(e,t)};f(q,e=>{p(Ee).length>0&&e(Pe)});var J=j(q);J.value=J.__value=`__custom__`,D(B);var Y;te(B);var X=j(B,2),Z=e=>{var t=he(),n=j(u(t),2),r=_(n);D(t),a(()=>s(r,`9router active (${p(ie).length??``} endpoints on :${p(M).port??``})`)),l(e,t)},Fe=e=>{var t=ge();l(e,t)},Ie=e=>{var t=_e();l(e,t)};f(X,e=>{p(M)?.running?e(Z):p(M)?.installed?e(Fe,1):e(Ie,-1)});var Q=j(X,2),Le=e=>{var n=ve(),i=u(n);m(i);var a=j(i,2);D(n),y(i,()=>U[p(r).name],e=>U[p(r).name]=e),t(`click`,a,()=>Me(p(r))),l(e,n)},Re=T(()=>U[p(r).name]!==void 0||p(r).model&&!p(A).some(e=>e.id===p(r).model));f(Q,e=>{p(Re)&&e(Le)}),D(Te),D(R);var $=j(R,2),ze=u($),Ve=j(u(ze),2),He=_(Ve);D(ze);var We=j(ze,2);d(We,21,()=>ke(p(r)),n,(e,n)=>{let i=T(()=>p(r).skills&&p(r).skills.includes(p(n)));var o=be(),c=u(o),d=u(c),h=_(d,!0),g=j(d,2),v=e=>{var t=ye();l(e,t)};f(g,e=>{p(i)&&e(v)}),D(c);var y=j(c,2);m(y),D(o),a(()=>{E(d,1,`font-mono text-xs font-bold truncate ${p(i)?``:`opacity-50`}`),w(d,`title`,p(n)),s(h,p(n)),k(y,p(i))}),t(`change`,y,()=>Ae(p(r),p(n),p(i))),l(e,o)}),D(We),D($),D(o),D(i),a(()=>{w(x,`d`,De[p(r).name]||`M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z`),s(O,`@${p(r).name??``}`),s(N,p(r).title||`Ninja Subagent`),s(oe,`${(p(r).skills?p(r).skills.length:0)??``} skills`),s(se,p(r).description),Y!==(Y=p(r).model||``)&&(B.value=(B.__value=Y)??``,g(B,Y)),s(He,`${(p(r).skills?p(r).skills.length:0)??``} active`)}),t(`change`,B,e=>{let t=e.currentTarget.value;t===`__custom__`?U[p(r).name]=p(r).model||``:je(p(r),t)}),l(e,i)}),D(r),l(e,r)};f(Ye,e=>{p(F)?e(Xe):e(Ze,-1)}),D(Ge)}var Qe=j(Ge,2);ae(Qe,{get open(){return p(W)},get bridgeModels(){return p(A)},onclose:()=>{O(W,!1)},onsubmit:Ve,get createName(){return p(G)},set createName(e){O(G,e,!0)},get createTitle(){return p(K)},set createTitle(e){O(K,e,!0)},get createPurpose(){return p(Ne)},set createPurpose(e){O(Ne,e,!0)},get createDescription(){return p(q)},set createDescription(e){O(q,e,!0)},get createInstructions(){return p(Pe)},set createInstructions(e){O(Pe,e,!0)},get createModel(){return p(J)},set createModel(e){O(J,e,!0)},get createSubmitting(){return p(Y)},set createSubmitting(e){O(Y,e,!0)}});var $e=j(Qe,2),et=e=>{var n=Ce(),r=u(n),i=u(r),o=u(i),c=j(u(o),2),d=u(c),f=_(d);v(2),D(c),D(o);var h=j(o,2);D(i);var g=j(i,2),b=u(g),x=j(u(b),2);m(x),D(b);var S=j(b,2),C=j(u(S),2);m(C),D(S);var w=j(S,2),T=j(u(w),2);ee(T),D(w);var E=j(w,2),k=j(u(E),2);ee(k),D(E),D(g);var A=j(g,2),te=u(A),M=j(te,2),N=_(M,!0);D(A),D(r),D(n),a(()=>{s(f,`Edit Custom Ninja @${p(Z).name??``}`),M.disabled=p($),s(N,p($)?`Updating...`:`Save Changes`)}),t(`click`,n,e=>{e.target===e.currentTarget&&O(X,!1)}),t(`click`,r,e=>e.stopPropagation()),t(`click`,h,()=>{O(X,!1)}),y(x,()=>p(Fe),e=>O(Fe,e)),y(C,()=>p(Ie),e=>O(Ie,e)),y(T,()=>p(Q),e=>O(Q,e)),y(k,()=>p(Le),e=>O(Le,e)),t(`click`,te,()=>{O(X,!1)}),t(`click`,M,He),l(e,n)};f($e,e=>{p(X)&&p(Z)&&e(et)}),l(r,We),h()}M([`click`,`change`]);function Ee(e){Te(e,{})}export{Ee as component};
1
+ import{$ as e,B as t,C as n,F as r,I as i,J as a,L as o,M as s,O as c,P as l,Q as u,S as d,T as f,U as p,a as m,ct as h,d as g,et as _,ft as v,i as y,it as b,l as x,lt as S,nt as C,o as w,ot as T,p as E,pt as D,rt as O,s as k,st as ee,t as A,tt as j,u as te,z as M}from"../chunks/C5rL-2rZ.js";import{t as N}from"../chunks/CMfYCyHI.js";import{t as P}from"../chunks/DVDyaR1u.js";import{t as ne}from"../chunks/DuefosH7.js";import"../chunks/BRFppjEf.js";import{t as re}from"../chunks/KQlRtB_5.js";var F=i(`<option> </option>`),I=i(`<optgroup label="Discovered Client / Bridge Models"></optgroup>`),ie=i(`<div role="presentation" class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-[var(--theme-overlay)] 35 backdrop-blur-sm animate-in fade-in duration-150"><div class="modal-card modal-3d w-full max-w-lg max-h-[90vh] overflow-y-auto p-6 sm:p-8 rounded-[3px] border shadow-2xl space-y-5 animate-in zoom-in-95 duration-150 glass-frost-strong" style="border-color: var(--theme-modal-border, color-mix(in srgb, var(--theme-grad-1) 38%, var(--color-border))); color: var(--color-text); box-shadow: var(--theme-modal-shadow, var(--shadow-3d));"><div class="flex items-center justify-between pb-3 border-b" style="border-color: var(--color-border);"><div class="flex items-center gap-2.5"><div class="w-8 h-8 rounded-[3px] flex items-center justify-center font-bold text-xs text-white shadow-sm" style="background: var(--theme-4gradient);"><svg class="w-4 h-4 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg></div> <div><h3 class="text-base font-bold" style="color: var(--color-text);">Create Custom Ninja Subagent</h3> <p class="text-xs" style="color: var(--color-text-muted);">Configure name, role, and custom instructions</p></div></div> <button type="button" class="w-7 h-7 rounded-[3px] flex items-center justify-center text-xs font-bold border transition-colors hover:scale-105 cursor-pointer" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);" aria-label="Close modal"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div> <div class="space-y-4 text-xs"><div><label for="create-ninja-name" class="font-bold block mb-1" style="color: var(--color-text);">Name (ID) *</label> <input id="create-ninja-name" type="text" placeholder="e.g. shinobi-coder" class="w-full px-3 py-2 text-xs rounded-[3px] border login-field-effect focus:outline-hidden" style="background: var(--color-surface); color: var(--color-text);"/> <p class="text-[11px] mt-1" style="color: var(--color-text-muted);">Unique identifier. Alphanumeric, underscores, or hyphens.</p></div> <div><label for="create-ninja-title" class="font-bold block mb-1" style="color: var(--color-text);">Title</label> <input id="create-ninja-title" type="text" placeholder="e.g. Visual Ninja Specialist" class="w-full px-3 py-2 text-xs rounded-[3px] border login-field-effect focus:outline-hidden" style="background: var(--color-surface); color: var(--color-text);"/></div> <div><label for="create-ninja-purpose" class="font-bold block mb-1" style="color: var(--color-text);">Purpose</label> <input id="create-ninja-purpose" type="text" placeholder="e.g. Specialized UI component generator" class="w-full px-3 py-2 text-xs rounded-[3px] border login-field-effect focus:outline-hidden" style="background: var(--color-surface); color: var(--color-text);"/></div> <div><label for="create-ninja-desc" class="font-bold block mb-1" style="color: var(--color-text);">Description</label> <textarea id="create-ninja-desc" rows="2" placeholder="Brief explanation of when to dispatch this subagent..." class="w-full px-3 py-2 text-xs rounded-[3px] border focus:outline-hidden resize-y login-field-effect" style="background: var(--color-surface); color: var(--color-text);"></textarea></div> <div><label for="create-ninja-inst" class="font-bold block mb-1" style="color: var(--color-text);">System Instructions</label> <textarea id="create-ninja-inst" rows="3" placeholder="Prompt and standard operating procedures for this agent..." class="w-full px-3 py-2 text-xs font-mono rounded-[3px] border focus:outline-hidden resize-y login-field-effect" style="background: var(--color-surface); color: var(--color-text);"></textarea></div> <div><label for="create-ninja-model" class="font-bold block mb-1" style="color: var(--color-text);">Model Assignment (Optional)</label> <div class="space-y-1.5"><select id="create-ninja-model" class="w-full px-3 py-2 text-xs rounded-[3px] border focus:outline-hidden login-field-effect" style="background: var(--color-surface); color: var(--color-text);"><option>⤺ Inherit (host client default)</option><!></select> <input type="text" placeholder="Or custom model string..." class="w-full px-3 py-1.5 text-xs font-mono rounded-[3px] border focus:outline-hidden login-field-effect" style="background: var(--color-surface); color: var(--color-text);"/></div></div></div> <div class="flex justify-end gap-2.5 pt-3 border-t" style="border-color: var(--color-border);"><button type="button" class="btn-3d btn-3d-secondary px-4 py-2 text-xs font-bold rounded-[3px] cursor-pointer">Cancel</button> <button type="button" class="btn-3d btn-3d-primary px-5 py-2 text-xs font-bold rounded-[3px] text-white cursor-pointer shadow-md"> </button></div></div></div>`);function ae(i,o){S(o,!0);let c=A(o,`createName`,15),g=A(o,`createTitle`,15),b=A(o,`createPurpose`,15),C=A(o,`createDescription`,15),w=A(o,`createInstructions`,15),T=A(o,`createModel`,15),E=A(o,`open`,3,!1),O=A(o,`bridgeModels`,19,()=>[]);var k=r(),M=e(k),N=e=>{var r=ie(),i=u(r),h=u(i),S=j(u(h),2);D(h);var E=j(h,2),k=u(E),A=j(u(k),2);m(A),v(2),D(k);var M=j(k,2),N=j(u(M),2);m(N),D(M);var P=j(M,2),ne=j(u(P),2);m(ne),D(P);var re=j(P,2),ae=j(u(re),2);ee(ae),D(re);var oe=j(re,2),L=j(u(oe),2);ee(L),D(oe);var se=j(oe,2),R=j(u(se),2),z=u(R),ce=u(z);ce.value=ce.__value=``;var le=j(ce),ue=e=>{var t=I();d(t,21,O,n,(e,t)=>{var n=F(),r=_(n),i={};a(()=>{s(r,`${(p(t).model_name||p(t).id)??``} ${p(t).bridge?`(${p(t).bridge})`:``}`),i!==(i=p(t).id)&&(n.value=(n.__value=i)??``)}),l(e,n)}),D(t),l(e,t)};f(le,e=>{O().length>0&&e(ue)}),D(z),te(z);var de=j(z,2);m(de),D(R),D(se),D(E);var fe=j(E,2),pe=u(fe),me=j(pe,2),he=_(me,!0);D(fe),D(i),D(r),a(()=>{me.disabled=o.createSubmitting,s(he,o.createSubmitting?`Creating...`:`Create Ninja`)}),t(`click`,r,e=>{e.target===e.currentTarget&&o.onclose()}),t(`click`,i,e=>e.stopPropagation()),t(`click`,S,function(...e){o.onclose?.apply(this,e)}),y(A,c),y(N,g),y(ne,b),y(ae,C),y(L,w),x(z,T),y(de,T),t(`click`,pe,function(...e){o.onclose?.apply(this,e)}),t(`click`,me,function(...e){o.onsubmit?.apply(this,e)}),l(e,r)};f(M,e=>{E()&&e(N)}),l(i,k),h()}M([`click`]);var oe=o(`<svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>`),L=i(`<button type="button" class="btn-3d btn-3d-primary px-4 py-3 rounded-[3px] text-xs font-bold text-white flex items-center gap-2 cursor-pointer shadow-md"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path></svg> Add Custom Ninja</button>`),se=i(`<div class="glass-card-3d px-4 py-3 rounded-[3px] border text-center" style="background: var(--color-surface); border-color: var(--color-border);"><div class="text-xs font-bold" style="color: var(--color-text-muted);">Official Roster</div> <div class="text-xl font-black text-[var(--theme-success)]"> </div></div> <div class="glass-card-3d px-4 py-3 rounded-[3px] border text-center" style="background: var(--color-surface); border-color: var(--color-border);"><div class="text-xs font-bold" style="color: var(--color-text-muted);">Skills Bound</div> <div class="text-xl font-black text-action-primary"> </div></div>`,1),R=i(`<div class="p-4 rounded-[3px] border badge-status badge-status-danger text-xs font-semibold"> </div>`),z=i(`<div class="flex items-center justify-center py-16 theme-text-secondary text-sm font-semibold"><div class="flex items-center gap-3"><svg class="animate-spin w-5 h-5 text-action-primary" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v8H4z"></path></svg> <span>Loading Ninja roster...</span></div></div>`),ce=i(`<span class="px-2 py-0.5 rounded-[3px] text-[10px] font-bold badge-status badge-status-warning flex items-center gap-1" title="Protected Village Ninja - Cannot be deleted"><svg class="w-3 h-3 text-[var(--theme-warning)]" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"></path></svg> <span>Protected</span></span>`),le=i(`<div class="flex items-center gap-1"><button type="button" class="p-1 rounded-[3px] theme-text-muted hover:text-status-info hover:bg-status-info-soft transition-colors cursor-pointer" title="Edit custom ninja"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path></svg></button> <button type="button" class="p-1 rounded-[3px] theme-text-muted hover:text-[var(--theme-danger)] hover:bg-status-danger-soft transition-colors cursor-pointer" title="Delete custom agent"><svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"></path></svg></button></div>`),ue=i(`<span class="px-2 py-0.5 rounded-[3px] text-[10px] font-mono font-bold badge-status badge-status-success">assigned</span>`),de=i(`<span class="px-2 py-0.5 rounded-[3px] text-[10px] font-mono font-bold border" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);">inherit</span>`),fe=i(`<option> </option>`),pe=i(`<optgroup label="9router Endpoints (Auto-Detected Local Gateway)"></optgroup>`),me=i(`<optgroup label="LLM Bridges &amp; Connected Clients"></optgroup>`),he=i(`<div class="flex items-center gap-1.5 text-[10px] font-mono text-status-success pt-0.5"><span class="w-1.5 h-1.5 rounded-full bg-status-success"></span> <span> </span></div>`),ge=i('<div class="flex items-center gap-1.5 text-[10px] font-mono text-status-warning pt-0.5"><span class="w-1.5 h-1.5 rounded-full bg-status-warning"></span> <span>9router installed (service offline — run `9router` to activate)</span></div>'),_e=i(`<div class="flex items-center gap-1.5 text-[10px] font-mono theme-text-muted pt-0.5"><span>9router not detected locally</span></div>`),ve=i(`<div class="flex items-center gap-1.5 pt-1"><input type="text" placeholder="e.g. claude-3-7-sonnet" class="flex-1 px-2.5 py-1.5 rounded-[3px] border text-xs font-mono login-field-effect" style="background: var(--color-surface); color: var(--color-text);"/> <button type="button" class="btn-3d px-2.5 py-1.5 rounded-[3px] text-xs font-bold text-white bg-action-primary hover:brightness-110 cursor-pointer">Set</button></div>`),ye=i(`<span class="px-1.5 py-0.5 rounded-[3px] text-[9px] font-mono font-bold gradient-badge shrink-0">active</span>`),be=i(`<label class="flex items-center justify-between p-2 rounded-[3px] border cursor-pointer text-xs transition-colors hover:bg-black/5" style="background: var(--color-surface); border-color: var(--color-border);"><div class="flex items-center gap-2 min-w-0 pr-2"><span style="color: var(--color-text);"> </span> <!></div> <input type="checkbox" class="rounded-[3px] w-4 h-4 cursor-pointer shrink-0 ml-2" style="accent-color: var(--color-primary);"/></label>`),xe=i(`<div class="metric-card-3d flex flex-col justify-between p-6 rounded-[5px] border" style="border-color: color-mix(in srgb, var(--theme-grad-2) 28%, var(--color-border));"><div><div class="flex items-start justify-between gap-4 mb-4"><div class="flex items-center gap-3"><div class="w-11 h-11 rounded-[3px] flex items-center justify-center shadow-md text-white shrink-0" style="background: var(--theme-4gradient); box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-grad-1) 35%, transparent);"><svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"></path></svg></div> <div><h3 class="text-base font-black tracking-tight" style="color: var(--color-text);"> </h3> <span class="inline-block text-[11px] font-bold uppercase tracking-wider gradient-text"> </span></div></div> <div class="flex flex-col items-end gap-1"><!> <span class="px-2 py-0.5 rounded-[3px] text-[10px] font-mono font-bold badge-3d-subtle"> </span></div></div> <p class="text-xs font-semibold mb-4 leading-relaxed" style="color: var(--color-text-muted);"> </p> <div class="space-y-2 mb-6"><div class="flex items-center justify-between text-xs font-bold" style="color: var(--color-text);"><span>Model Assignment</span> <!></div> <div class="space-y-1.5"><select class="w-full p-2 rounded-[3px] border text-xs font-mono font-bold cursor-pointer login-field-effect" style="background: var(--color-surface); color: var(--color-text);"><option>⤺ Inherit (host client default)</option><!><!><!><option>✎ Custom model string...</option></select> <!> <!></div></div> <div class="space-y-3 pt-4 border-t" style="border-color: var(--color-border);"><div class="flex items-center justify-between text-xs font-bold" style="color: var(--color-text);"><span>Embedded Skill References</span> <span class="font-mono text-[11px]" style="color: var(--color-text-muted);"> </span></div> <div class="space-y-1.5 max-h-56 overflow-y-auto pr-1"></div></div></div></div>`),Se=i(`<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 perspective-container"></div>`),Ce=i(`<div role="presentation" class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-[var(--theme-overlay)] 35 backdrop-blur-sm animate-in fade-in duration-150"><div class="modal-card modal-3d w-full max-w-lg max-h-[90vh] overflow-y-auto p-6 sm:p-8 rounded-[3px] border shadow-2xl space-y-5 animate-in zoom-in-95 duration-150 glass-frost-strong" style="border-color: var(--theme-modal-border, color-mix(in srgb, var(--theme-grad-1) 38%, var(--color-border))); color: var(--color-text); box-shadow: var(--theme-modal-shadow, var(--shadow-3d));"><div class="flex items-center justify-between pb-3 border-b" style="border-color: var(--color-border);"><div class="flex items-center gap-2.5"><div class="w-8 h-8 rounded-[3px] flex items-center justify-center font-bold text-xs text-white shadow-sm" style="background: var(--theme-4gradient);"><svg class="w-4 h-4 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path></svg></div> <div><h3 class="text-base font-bold" style="color: var(--color-text);"> </h3> <p class="text-xs" style="color: var(--color-text-muted);">Update custom title, role, and instructions</p></div></div> <button type="button" class="w-7 h-7 rounded-[3px] flex items-center justify-center text-xs font-bold border transition-colors hover:scale-105 cursor-pointer" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);" aria-label="Close edit modal"><svg class="w-3.5 h-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button></div> <div class="space-y-4 text-xs"><div><label for="edit-ninja-title" class="font-bold block mb-1" style="color: var(--color-text);">Title</label> <input id="edit-ninja-title" type="text" placeholder="e.g. Visual Ninja Specialist" class="w-full px-3 py-2 text-xs rounded-[3px] border focus:outline-hidden login-field-effect" style="background: var(--color-surface); color: var(--color-text);"/></div> <div><label for="edit-ninja-purpose" class="font-bold block mb-1" style="color: var(--color-text);">Purpose</label> <input id="edit-ninja-purpose" type="text" placeholder="e.g. Specialized UI component generator" class="w-full px-3 py-2 text-xs rounded-[3px] border focus:outline-hidden login-field-effect" style="background: var(--color-surface); color: var(--color-text);"/></div> <div><label for="edit-ninja-desc" class="font-bold block mb-1" style="color: var(--color-text);">Description</label> <textarea id="edit-ninja-desc" rows="2" placeholder="Brief explanation of when to dispatch this subagent..." class="w-full px-3 py-2 text-xs rounded-[3px] border focus:outline-hidden resize-y login-field-effect" style="background: var(--color-surface); color: var(--color-text);"></textarea></div> <div><label for="edit-ninja-inst" class="font-bold block mb-1" style="color: var(--color-text);">System Instructions</label> <textarea id="edit-ninja-inst" rows="3" placeholder="Prompt and standard operating procedures for this agent..." class="w-full px-3 py-2 text-xs font-mono rounded-[3px] border focus:outline-hidden resize-y login-field-effect" style="background: var(--color-surface); color: var(--color-text);"></textarea></div></div> <div class="flex justify-end gap-2.5 pt-3 border-t" style="border-color: var(--color-border);"><button type="button" class="btn-3d btn-3d-secondary px-4 py-2 text-xs font-bold rounded-[3px] cursor-pointer">Cancel</button> <button type="button" class="btn-3d btn-3d-primary px-5 py-2 text-xs font-bold rounded-[3px] text-white cursor-pointer shadow-md"> </button></div></div></div>`),we=i(`<div class="space-y-8 w-full"><!> <!> <!></div> <!> <!>`,1);function Te(r,i){S(i,!0);let o=b(C([])),x=b(C([])),A=b(C([])),M=b(null),F=b(!0),I=b(``),ie=T(()=>p(A).filter(e=>e.bridge===`9router`||e.source===`9router`)),Te=T(()=>(p(o)||[]).filter(e=>String(e.name||``).toLowerCase()!==`yamanaka`)),Ee=T(()=>p(A).filter(e=>e.bridge!==`9router`&&e.source!==`9router`)),De={sannin:`M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z`,kage:`M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z`,jonin:`M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01`,anbu:`M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z`,chunin:`M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9`,genin:`M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z`,"tokubetsu-jonin":`M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z`,akatsuki:`M20.618 5.984A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016zM12 9v2m0 4h.01`,yamanaka:`M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4`},B=new Set([`sannin`,`genin`,`kage`,`chunin`,`jonin`,`anbu`,`tokubetsu-jonin`,`akatsuki`,`yamanaka`]);function Oe(e){if(!e)return!1;let t=String(e).toLowerCase().replace(/^(mcp_|_mcp_|mcp-)/,``);return B.has(t)}let V=[`sannin-skill`,`genin-skill`,`kage-skill`,`chunin-skill`,`jonin-skill`,`anbu-skill`,`tokubetsu-jonin-skill`,`akatsuki-skill`,`konoha`,`antislop`,`i-have-adhd`];function ke(e){let t=e.skills||[],n=new Set(t),r=[...t];return V.forEach(e=>{n.has(e)||r.push(e)}),r}async function H(){O(F,!0),O(I,``);try{let e=P.get(`/api/v1/skills?limit=1000`).catch(()=>null),t=P.get(`/api/v1/bridges/models`).catch(()=>null);O(o,await P.get(`/api/v1/agents`),!0);let n=new Set(V);(p(o)||[]).forEach(e=>{(e.skills||[]).forEach(e=>n.add(e))}),O(x,Array.from(n).sort(),!0),O(F,!1);let[r,i]=await Promise.all([e,t]);if(Array.isArray(r)){let e=new Set(n);r.forEach(t=>{t.name&&e.add(t.name),t.skill_name&&e.add(t.skill_name)}),O(x,Array.from(e).sort(),!0)}i&&typeof i==`object`?(O(A,i.models||[],!0),O(M,i.nine_router||null,!0)):(O(A,[],!0),O(M,null))}catch(e){O(I,e.message,!0)}finally{O(F,!1)}}async function Ae(e,t,n){let r=!n;try{await P.patch(`/api/v1/agents/`+encodeURIComponent(e.name)+`/skills/`+encodeURIComponent(t),{embedded:r}),r?(e.skills||=[],e.skills.includes(t)||e.skills.push(t)):e.skills&&=e.skills.filter(e=>e!==t),O(o,[...p(o)],!0)}catch(e){N.error(`Toggle failed: `+e.message)}}async function je(e,t){let n=t===``?null:t;try{await P.patch(`/api/v1/agents/`+encodeURIComponent(e.name)+`/model`,{model:n}),n?e.model=n:delete e.model,O(o,[...p(o)],!0),N.success(`Model updated for @${e.name}`)}catch(e){N.error(`Model assignment failed: `+e.message)}}let U=C({});async function Me(e){await je(e,(U[e.name]||``).trim())}let W=b(!1),G=b(``),K=b(``),Ne=b(``),q=b(``),Pe=b(``),J=b(``),Y=b(!1),X=b(!1),Z=b(null),Fe=b(``),Ie=b(``),Q=b(``),Le=b(``),Re=b(``),$=b(!1);function ze(){O(G,``),O(K,``),O(Ne,``),O(q,``),O(Pe,``),O(J,``),O(W,!0)}function Be(e){Oe(e.name)?N.info(`Subagent "@${e.name}" is a protected official Konoha ninja agent. Core attributes are immutable. You can toggle models and skills directly on the card.`):(O(Z,e,!0),O(Fe,e.title||``,!0),O(Ie,e.purpose||``,!0),O(Q,e.description||``,!0),O(Le,e.instructions||``,!0),O(Re,e.model||``,!0),O(X,!0))}async function Ve(){if(!p(G).trim())N.warning(`Please enter a name for the custom ninja.`);else{O(Y,!0);try{await P.post(`/api/v1/agents`,{name:p(G).trim(),title:p(K).trim()||void 0,purpose:p(Ne).trim()||void 0,description:p(q).trim()||void 0,instructions:p(Pe).trim()||void 0,model:p(J).trim()||null}),N.success(`Custom subagent "@${p(G).trim()}" has been created.`),O(W,!1),await H()}catch(e){N.error(`Creation failed: `+e.message)}finally{O(Y,!1)}}}async function He(){if(p(Z)){O($,!0);try{await P.put(`/api/v1/agents/${encodeURIComponent(p(Z).name)}`,{title:p(Fe).trim(),purpose:p(Ie).trim(),description:p(Q).trim(),instructions:p(Le).trim(),model:p(Re).trim()||null}),N.success(`Custom subagent "@${p(Z).name}" updated successfully.`),O(X,!1),await H()}catch(e){N.error(`Update failed: `+e.message)}finally{O($,!1)}}}async function Ue(e){if(Oe(e))N.warning(`Subagent "@${e}" is a protected official Konoha ninja agent and cannot be deleted.`);else if(await ne({title:`Delete Custom Agent?`,message:`Are you sure you want to delete custom agent "@${e}"? This action cannot be undone.`,confirmText:`Delete`,variant:`danger`}))try{await P.delete(`/api/v1/agents/${encodeURIComponent(e)}`),N.success(`Custom agent "@${e}" has been deleted.`),await H()}catch(e){N.error(`Deletion failed: `+e.message)}}c(H);var We=we(),Ge=e(We);{let r=e=>{var t=oe();l(e,t)},i=e=>{var n=L();t(`click`,n,ze),l(e,n)},o=t=>{var n=se(),r=e(n),i=j(u(r),2),o=_(i);D(r);var c=j(r,2),d=j(u(c),2),f=_(d);D(c),a(()=>{s(o,`${B.size??``} Protected`),s(f,`${p(x).length??``} Indexed`)}),l(t,n)};var Ke=u(Ge);re(Ke,{title:`Ninja Subagents (Protected Village Roster)`,badgeText:`Official Subagent Roster`,get badgeIcon(){return r},description:`Autonomous specialized agents orchestrating tasks, audits, research, and frontend builds. Official ninjas are permanently protected against deletion.`,get actions(){return i},get stats(){return o}});var qe=j(Ke,2),Je=e=>{var t=R(),n=_(t,!0);a(()=>s(n,p(I))),l(e,t)};f(qe,e=>{p(I)&&e(Je)});var Ye=j(qe,2),Xe=e=>{var t=z();l(e,t)},Ze=e=>{var r=Se();d(r,21,()=>p(Te),n,(e,r)=>{var i=xe(),o=u(i),c=u(o),h=u(c),v=u(h),b=u(v),x=_(b);D(v);var S=j(v,2),C=u(S),O=_(C),ee=j(C,2),N=_(ee,!0);D(S),D(h);var P=j(h,2),ne=u(P),re=e=>{var t=ce();l(e,t)},F=T(()=>Oe(p(r).name)),I=e=>{var n=le(),i=u(n),a=j(i,2);D(n),t(`click`,i,()=>Be(p(r))),t(`click`,a,()=>Ue(p(r).name)),l(e,n)};f(ne,e=>{p(F)?e(re):e(I,-1)});var ae=j(ne,2),oe=_(ae);D(P),D(c);var L=j(c,2),se=_(L,!0),R=j(L,2),z=u(R),Se=j(u(z),2),Ce=e=>{var t=ue();l(e,t)},we=e=>{var t=de();l(e,t)};f(Se,e=>{p(r).model?e(Ce):e(we,-1)}),D(z);var Te=j(z,2),B=u(Te),V=u(B);V.value=V.__value=``;var H=j(V),W=e=>{var t=fe(),n=_(t),i={};a(()=>{s(n,`${p(r).model??``} (Custom Assigned)`),i!==(i=p(r).model)&&(t.value=(t.__value=i)??``)}),l(e,t)},G=T(()=>p(r).model&&!p(A).some(e=>e.id===p(r).model));f(H,e=>{p(G)&&e(W)});var K=j(H),Ne=e=>{var t=pe();d(t,21,()=>p(ie),n,(e,t)=>{var n=fe(),r=_(n,!0),i={};a(()=>{s(r,p(t).id),i!==(i=p(t).id)&&(n.value=(n.__value=i)??``)}),l(e,n)}),D(t),l(e,t)};f(K,e=>{p(ie).length>0&&e(Ne)});var q=j(K),Pe=e=>{var t=me();d(t,21,()=>p(Ee),n,(e,t)=>{var n=fe(),r=_(n),i={};a(()=>{s(r,`${(p(t).model_name||p(t).id)??``} ${p(t).bridge?`(${p(t).bridge})`:``}`),i!==(i=p(t).id)&&(n.value=(n.__value=i)??``)}),l(e,n)}),D(t),l(e,t)};f(q,e=>{p(Ee).length>0&&e(Pe)});var J=j(q);J.value=J.__value=`__custom__`,D(B);var Y;te(B);var X=j(B,2),Z=e=>{var t=he(),n=j(u(t),2),r=_(n);D(t),a(()=>s(r,`9router active (${p(ie).length??``} endpoints on :${p(M).port??``})`)),l(e,t)},Fe=e=>{var t=ge();l(e,t)},Ie=e=>{var t=_e();l(e,t)};f(X,e=>{p(M)?.running?e(Z):p(M)?.installed?e(Fe,1):e(Ie,-1)});var Q=j(X,2),Le=e=>{var n=ve(),i=u(n);m(i);var a=j(i,2);D(n),y(i,()=>U[p(r).name],e=>U[p(r).name]=e),t(`click`,a,()=>Me(p(r))),l(e,n)},Re=T(()=>U[p(r).name]!==void 0||p(r).model&&!p(A).some(e=>e.id===p(r).model));f(Q,e=>{p(Re)&&e(Le)}),D(Te),D(R);var $=j(R,2),ze=u($),Ve=j(u(ze),2),He=_(Ve);D(ze);var We=j(ze,2);d(We,21,()=>ke(p(r)),n,(e,n)=>{let i=T(()=>p(r).skills&&p(r).skills.includes(p(n)));var o=be(),c=u(o),d=u(c),h=_(d,!0),g=j(d,2),v=e=>{var t=ye();l(e,t)};f(g,e=>{p(i)&&e(v)}),D(c);var y=j(c,2);m(y),D(o),a(()=>{E(d,1,`font-mono text-xs font-bold truncate ${p(i)?``:`opacity-50`}`),w(d,`title`,p(n)),s(h,p(n)),k(y,p(i))}),t(`change`,y,()=>Ae(p(r),p(n),p(i))),l(e,o)}),D(We),D($),D(o),D(i),a(()=>{w(x,`d`,De[p(r).name]||`M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z`),s(O,`@${p(r).name??``}`),s(N,p(r).title||`Ninja Subagent`),s(oe,`${(p(r).skills?p(r).skills.length:0)??``} skills`),s(se,p(r).description),Y!==(Y=p(r).model||``)&&(B.value=(B.__value=Y)??``,g(B,Y)),s(He,`${(p(r).skills?p(r).skills.length:0)??``} active`)}),t(`change`,B,e=>{let t=e.currentTarget.value;t===`__custom__`?U[p(r).name]=p(r).model||``:je(p(r),t)}),l(e,i)}),D(r),l(e,r)};f(Ye,e=>{p(F)?e(Xe):e(Ze,-1)}),D(Ge)}var Qe=j(Ge,2);ae(Qe,{get open(){return p(W)},get bridgeModels(){return p(A)},onclose:()=>{O(W,!1)},onsubmit:Ve,get createName(){return p(G)},set createName(e){O(G,e,!0)},get createTitle(){return p(K)},set createTitle(e){O(K,e,!0)},get createPurpose(){return p(Ne)},set createPurpose(e){O(Ne,e,!0)},get createDescription(){return p(q)},set createDescription(e){O(q,e,!0)},get createInstructions(){return p(Pe)},set createInstructions(e){O(Pe,e,!0)},get createModel(){return p(J)},set createModel(e){O(J,e,!0)},get createSubmitting(){return p(Y)},set createSubmitting(e){O(Y,e,!0)}});var $e=j(Qe,2),et=e=>{var n=Ce(),r=u(n),i=u(r),o=u(i),c=j(u(o),2),d=u(c),f=_(d);v(2),D(c),D(o);var h=j(o,2);D(i);var g=j(i,2),b=u(g),x=j(u(b),2);m(x),D(b);var S=j(b,2),C=j(u(S),2);m(C),D(S);var w=j(S,2),T=j(u(w),2);ee(T),D(w);var E=j(w,2),k=j(u(E),2);ee(k),D(E),D(g);var A=j(g,2),te=u(A),M=j(te,2),N=_(M,!0);D(A),D(r),D(n),a(()=>{s(f,`Edit Custom Ninja @${p(Z).name??``}`),M.disabled=p($),s(N,p($)?`Updating...`:`Save Changes`)}),t(`click`,n,e=>{e.target===e.currentTarget&&O(X,!1)}),t(`click`,r,e=>e.stopPropagation()),t(`click`,h,()=>{O(X,!1)}),y(x,()=>p(Fe),e=>O(Fe,e)),y(C,()=>p(Ie),e=>O(Ie,e)),y(T,()=>p(Q),e=>O(Q,e)),y(k,()=>p(Le),e=>O(Le,e)),t(`click`,te,()=>{O(X,!1)}),t(`click`,M,He),l(e,n)};f($e,e=>{p(X)&&p(Z)&&e(et)}),l(r,We),h()}M([`click`,`change`]);function Ee(e){Te(e,{})}export{Ee as component};