konoha-mcp 2.2.22 → 2.2.23

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 (1265) hide show
  1. package/NOTICE +66 -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.TYH87iYy.js} +2 -2
  9. package/apps/web/build/client/_app/immutable/entry/app.TYH87iYy.js.br +0 -0
  10. package/apps/web/build/client/_app/immutable/entry/app.TYH87iYy.js.gz +0 -0
  11. package/apps/web/build/client/_app/immutable/nodes/{0.BBjv3DpA.js → 0.D7dPIEWA.js} +2 -2
  12. package/apps/web/build/client/_app/immutable/nodes/0.D7dPIEWA.js.br +0 -0
  13. package/apps/web/build/client/_app/immutable/nodes/0.D7dPIEWA.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/{15.CMNaNfOv.js → 15.DEjD1oQx.js} +1 -1
  18. package/apps/web/build/client/_app/immutable/nodes/15.DEjD1oQx.js.br +0 -0
  19. package/apps/web/build/client/_app/immutable/nodes/15.DEjD1oQx.js.gz +0 -0
  20. package/apps/web/build/client/_app/immutable/nodes/{18.7_RnsyKC.js → 18.B2MI4v6y.js} +1 -1
  21. package/apps/web/build/client/_app/immutable/nodes/18.B2MI4v6y.js.br +0 -0
  22. package/apps/web/build/client/_app/immutable/nodes/18.B2MI4v6y.js.gz +0 -0
  23. package/apps/web/build/client/_app/immutable/nodes/{19.DzAZW6W8.js → 19.C_JGeqWp.js} +1 -1
  24. package/apps/web/build/client/_app/immutable/nodes/19.C_JGeqWp.js.br +0 -0
  25. package/apps/web/build/client/_app/immutable/nodes/19.C_JGeqWp.js.gz +0 -0
  26. package/apps/web/build/client/_app/immutable/nodes/{21.CR6wcqUw.js → 21.CeKhuazg.js} +1 -1
  27. package/apps/web/build/client/_app/immutable/nodes/21.CeKhuazg.js.br +0 -0
  28. package/apps/web/build/client/_app/immutable/nodes/21.CeKhuazg.js.gz +0 -0
  29. package/apps/web/build/client/_app/immutable/nodes/{22.DhDmRYyH.js → 22.CzJx13s1.js} +1 -1
  30. package/apps/web/build/client/_app/immutable/nodes/22.CzJx13s1.js.br +0 -0
  31. package/apps/web/build/client/_app/immutable/nodes/22.CzJx13s1.js.gz +0 -0
  32. package/apps/web/build/client/_app/immutable/nodes/{6.CfCYXJnn.js → 6.zt71o8ra.js} +1 -1
  33. package/apps/web/build/client/_app/immutable/nodes/6.zt71o8ra.js.br +0 -0
  34. package/apps/web/build/client/_app/immutable/nodes/6.zt71o8ra.js.gz +0 -0
  35. package/apps/web/build/client/_app/immutable/nodes/{7.D5JiaRhL.js → 7.C7IkuqU1.js} +1 -1
  36. package/apps/web/build/client/_app/immutable/nodes/7.C7IkuqU1.js.br +0 -0
  37. package/apps/web/build/client/_app/immutable/nodes/7.C7IkuqU1.js.gz +0 -0
  38. package/apps/web/build/client/_app/immutable/nodes/{8.DOWGEBtB.js → 8.B1uJLAFx.js} +1 -1
  39. package/apps/web/build/client/_app/immutable/nodes/8.B1uJLAFx.js.br +0 -0
  40. package/apps/web/build/client/_app/immutable/nodes/8.B1uJLAFx.js.gz +0 -0
  41. package/apps/web/build/client/_app/version.json +1 -1
  42. package/apps/web/build/client/_app/version.json.br +0 -0
  43. package/apps/web/build/client/_app/version.json.gz +0 -0
  44. package/apps/web/build/server/chunks/dialog.svelte.js +0 -21
  45. package/apps/web/build/server/chunks/dialog.svelte.js.map +1 -1
  46. package/apps/web/build/server/chunks/instance.js +3 -3
  47. package/apps/web/build/server/chunks/internal.js +1 -1
  48. package/apps/web/build/server/entries/pages/_layout.svelte.js +1 -1
  49. package/apps/web/build/server/entries/pages/_layout.svelte.js.map +1 -1
  50. package/apps/web/build/server/manifest-full.js +1 -1
  51. package/apps/web/build/server/manifest.js +1 -1
  52. package/apps/web/build/server/nodes/0.js +1 -1
  53. package/apps/web/build/server/nodes/10.js +1 -1
  54. package/apps/web/build/server/nodes/15.js +1 -1
  55. package/apps/web/build/server/nodes/18.js +1 -1
  56. package/apps/web/build/server/nodes/19.js +1 -1
  57. package/apps/web/build/server/nodes/21.js +1 -1
  58. package/apps/web/build/server/nodes/22.js +1 -1
  59. package/apps/web/build/server/nodes/6.js +1 -1
  60. package/apps/web/build/server/nodes/7.js +1 -1
  61. package/apps/web/build/server/nodes/8.js +1 -1
  62. package/apps/web/build/server/server.js +1 -1
  63. package/apps/web/package.json +1 -1
  64. package/assets/konoha-flow-19-guardrail-denial-human-in-the-loop-resolution.webp +0 -0
  65. package/assets/konoha-qa-flow.webp +0 -0
  66. package/bin/cli.js +0 -5
  67. package/bin/commands/help.js +0 -1
  68. package/bin/lib/format.js +1 -1
  69. package/node_modules/jszip/package.json +0 -4
  70. package/node_modules/xlsx-populate/lib/AppProperties.js +1 -1
  71. package/node_modules/xlsx-populate/lib/ArgHandler.js +1 -1
  72. package/node_modules/xlsx-populate/lib/Cell.js +1 -1
  73. package/node_modules/xlsx-populate/lib/ContentTypes.js +1 -1
  74. package/node_modules/xlsx-populate/lib/Encryptor.js +1 -1
  75. package/node_modules/xlsx-populate/lib/FormulaError.js +1 -1
  76. package/node_modules/xlsx-populate/lib/Relationships.js +1 -1
  77. package/node_modules/xlsx-populate/lib/RichText.js +1 -1
  78. package/node_modules/xlsx-populate/lib/RichTextFragment.js +1 -1
  79. package/node_modules/xlsx-populate/lib/Row.js +1 -1
  80. package/node_modules/xlsx-populate/lib/SharedStrings.js +1 -1
  81. package/node_modules/xlsx-populate/lib/Sheet.js +1 -1
  82. package/node_modules/xlsx-populate/lib/Style.js +1 -1
  83. package/node_modules/xlsx-populate/lib/StyleSheet.js +1 -1
  84. package/node_modules/xlsx-populate/lib/Workbook.js +1 -1
  85. package/node_modules/xlsx-populate/lib/XmlBuilder.js +1 -1
  86. package/node_modules/xlsx-populate/lib/addressConverter.js +1 -1
  87. package/node_modules/xlsx-populate/lib/lodash-lite.js +316 -0
  88. package/node_modules/xlsx-populate/lib/regexify.js +1 -1
  89. package/node_modules/xlsx-populate/lib/xmlq.js +1 -1
  90. package/node_modules/xlsx-populate/package.json +0 -4
  91. package/package.json +7 -6
  92. package/patches/jszip@3.10.2.patch +21 -0
  93. package/patches/picomatch@4.0.7.patch +18 -0
  94. package/patches/pptxgenjs@4.0.1.patch +7 -1
  95. package/patches/xlsx-populate@1.21.0.patch +627 -0
  96. package/src/agent_contract.js +21 -8
  97. package/src/agent_file_safety.js +11 -0
  98. package/src/code_intel/auto_index.js +158 -0
  99. package/src/code_intel/genin_retrieval.js +2 -0
  100. package/src/code_intel/indexer.js +48 -33
  101. package/src/code_intel/lsp_manager.js +16 -1
  102. package/src/code_intel/query.js +17 -34
  103. package/src/code_intel/related.js +19 -3
  104. package/src/code_intel/search_setup.js +69 -0
  105. package/src/code_intel/tools.js +23 -0
  106. package/src/code_intel/walker.js +27 -20
  107. package/src/cursor_bootstrap.js +1 -1
  108. package/src/db_recovery.js +9 -2
  109. package/src/db_recovery_salvage.js +149 -14
  110. package/src/db_schema_repairs.js +1 -1
  111. package/src/embed_diagnostics.js +11 -9
  112. package/src/guardrail_exceptions.js +160 -0
  113. package/src/guardrail_hitl.js +241 -0
  114. package/src/mcp/client_detection.js +29 -0
  115. package/src/mcp/langgraph/nodes/dispatch.js +0 -12
  116. package/src/mcp/langgraph/nodes/execute.js +5 -3
  117. package/src/mcp/langgraph/nodes/review.js +47 -32
  118. package/src/mcp/lazy_subagent.js +42 -10
  119. package/src/mcp/memory_project_context.js +106 -35
  120. package/src/mcp/memory_reporting.js +2 -0
  121. package/src/mcp/memory_subagent_runner.js +49 -21
  122. package/src/mcp/project_context_prompt.js +3 -1
  123. package/src/mcp/protocol.js +4 -1
  124. package/src/mcp/sannin_router.js +4 -1
  125. package/src/mcp/shared_context.js +171 -0
  126. package/src/mcp/skills_retrieval.js +33 -11
  127. package/src/mcp/structured_judgment.js +172 -0
  128. package/src/mcp/subagent_spawner.js +168 -21
  129. package/src/mcp/tool_dispatch.js +30 -12
  130. package/src/mcp/workflow_sannin.js +119 -73
  131. package/src/mcp/workflow_sannin_dispatch.js +3 -1
  132. package/src/mcp_clients/claude_code_hooks.js +2 -3
  133. package/src/mcp_clients/command_code.js +2 -3
  134. package/src/mcp_tool_manifest.json +1 -13
  135. package/src/memory_brain.js +13 -0
  136. package/src/memory_brain_lifecycle.js +1 -1
  137. package/src/omp_manager.js +29 -19
  138. package/src/pi_blocker_template.js +2 -4
  139. package/src/pi_manager.js +5 -5
  140. package/src/project_konoha_mcp_guardrail.js +115 -0
  141. package/src/skill_manager.js +3 -0
  142. package/src/templates/.aislop/config.yml +3 -3
  143. package/src/templates/AGENTS.md +1 -1
  144. package/src/templates/GEMINI.md +1 -1
  145. package/src/templates/skills/anbu-skill/SKILL.md +1 -4
  146. package/src/templates/skills/anbu-skill/references/qa-automation.md +4 -4
  147. package/src/templates/skills/jonin-skill/SKILL.md +1 -1
  148. package/src/templates/skills/konoha/SKILL.md +54 -10
  149. package/src/templates/skills/konoha/references/architecture.md +28 -3
  150. package/src/templates/skills/konoha/references/benchmark.md +72 -2
  151. package/src/templates/skills/konoha/references/contract.md +1 -1
  152. package/src/templates/skills/konoha/references/docs.md +9 -9
  153. package/src/templates/skills/konoha/references/mcp-tools-block.md +5 -0
  154. package/src/templates/skills/konoha/references/peragent-usage.md +15 -1
  155. package/src/templates/skills/konoha/references/test.md +15 -8
  156. package/src/templates/skills/konoha/references/workflow.md +3 -3
  157. package/src/web/controllers/activity_controller.js +1 -7
  158. package/src/web/controllers/skills_controller.js +27 -3
  159. package/src/workflow/jonin-builder/live_browser_monitor.js +4 -44
  160. package/src/workflow/kage-reviewer/advisor_monitor.js +67 -2
  161. package/src/workflow/kage-reviewer/advisor_steering.js +52 -8
  162. package/src/workflow/qa-automation/qa_tools.js +13 -35
  163. package/src/workflow/tokubetsu-scribe/doc_engine_animation.js +19 -1
  164. package/src/workflow/tokubetsu-scribe/doc_engine_presentation.js +16 -2
  165. package/src/workflow/tokubetsu-scribe/doc_engine_spreadsheet.js +10 -1
  166. package/apps/web/build/client/_app/immutable/chunks/KBylTpfW.js.br +0 -0
  167. package/apps/web/build/client/_app/immutable/chunks/KBylTpfW.js.gz +0 -0
  168. package/apps/web/build/client/_app/immutable/entry/app.0Q5KqVd9.js.br +0 -0
  169. package/apps/web/build/client/_app/immutable/entry/app.0Q5KqVd9.js.gz +0 -0
  170. package/apps/web/build/client/_app/immutable/nodes/0.BBjv3DpA.js.br +0 -0
  171. package/apps/web/build/client/_app/immutable/nodes/0.BBjv3DpA.js.gz +0 -0
  172. package/apps/web/build/client/_app/immutable/nodes/10.C2BZpDrE.js.br +0 -0
  173. package/apps/web/build/client/_app/immutable/nodes/10.C2BZpDrE.js.gz +0 -0
  174. package/apps/web/build/client/_app/immutable/nodes/15.CMNaNfOv.js.br +0 -0
  175. package/apps/web/build/client/_app/immutable/nodes/15.CMNaNfOv.js.gz +0 -0
  176. package/apps/web/build/client/_app/immutable/nodes/18.7_RnsyKC.js.br +0 -0
  177. package/apps/web/build/client/_app/immutable/nodes/18.7_RnsyKC.js.gz +0 -0
  178. package/apps/web/build/client/_app/immutable/nodes/19.DzAZW6W8.js.br +0 -0
  179. package/apps/web/build/client/_app/immutable/nodes/19.DzAZW6W8.js.gz +0 -0
  180. package/apps/web/build/client/_app/immutable/nodes/21.CR6wcqUw.js.br +0 -0
  181. package/apps/web/build/client/_app/immutable/nodes/21.CR6wcqUw.js.gz +0 -0
  182. package/apps/web/build/client/_app/immutable/nodes/22.DhDmRYyH.js.br +0 -0
  183. package/apps/web/build/client/_app/immutable/nodes/22.DhDmRYyH.js.gz +0 -0
  184. package/apps/web/build/client/_app/immutable/nodes/6.CfCYXJnn.js.br +0 -0
  185. package/apps/web/build/client/_app/immutable/nodes/6.CfCYXJnn.js.gz +0 -0
  186. package/apps/web/build/client/_app/immutable/nodes/7.D5JiaRhL.js.br +0 -0
  187. package/apps/web/build/client/_app/immutable/nodes/7.D5JiaRhL.js.gz +0 -0
  188. package/apps/web/build/client/_app/immutable/nodes/8.DOWGEBtB.js.br +0 -0
  189. package/apps/web/build/client/_app/immutable/nodes/8.DOWGEBtB.js.gz +0 -0
  190. package/bin/commands/browser.js +0 -147
  191. package/node_modules/jszip/dist/jszip.js +0 -11586
  192. package/node_modules/jszip/dist/jszip.min.js +0 -13
  193. package/node_modules/lodash/LICENSE +0 -47
  194. package/node_modules/lodash/README.md +0 -39
  195. package/node_modules/lodash/_DataView.js +0 -7
  196. package/node_modules/lodash/_Hash.js +0 -32
  197. package/node_modules/lodash/_LazyWrapper.js +0 -28
  198. package/node_modules/lodash/_ListCache.js +0 -32
  199. package/node_modules/lodash/_LodashWrapper.js +0 -22
  200. package/node_modules/lodash/_Map.js +0 -7
  201. package/node_modules/lodash/_MapCache.js +0 -32
  202. package/node_modules/lodash/_Promise.js +0 -7
  203. package/node_modules/lodash/_Set.js +0 -7
  204. package/node_modules/lodash/_SetCache.js +0 -27
  205. package/node_modules/lodash/_Stack.js +0 -27
  206. package/node_modules/lodash/_Symbol.js +0 -6
  207. package/node_modules/lodash/_Uint8Array.js +0 -6
  208. package/node_modules/lodash/_WeakMap.js +0 -7
  209. package/node_modules/lodash/_apply.js +0 -21
  210. package/node_modules/lodash/_arrayAggregator.js +0 -22
  211. package/node_modules/lodash/_arrayEach.js +0 -22
  212. package/node_modules/lodash/_arrayEachRight.js +0 -21
  213. package/node_modules/lodash/_arrayEvery.js +0 -23
  214. package/node_modules/lodash/_arrayFilter.js +0 -25
  215. package/node_modules/lodash/_arrayIncludes.js +0 -17
  216. package/node_modules/lodash/_arrayIncludesWith.js +0 -22
  217. package/node_modules/lodash/_arrayLikeKeys.js +0 -49
  218. package/node_modules/lodash/_arrayMap.js +0 -21
  219. package/node_modules/lodash/_arrayPush.js +0 -20
  220. package/node_modules/lodash/_arrayReduce.js +0 -26
  221. package/node_modules/lodash/_arrayReduceRight.js +0 -24
  222. package/node_modules/lodash/_arraySample.js +0 -15
  223. package/node_modules/lodash/_arraySampleSize.js +0 -17
  224. package/node_modules/lodash/_arrayShuffle.js +0 -15
  225. package/node_modules/lodash/_arraySome.js +0 -23
  226. package/node_modules/lodash/_asciiSize.js +0 -12
  227. package/node_modules/lodash/_asciiToArray.js +0 -12
  228. package/node_modules/lodash/_asciiWords.js +0 -15
  229. package/node_modules/lodash/_assignMergeValue.js +0 -20
  230. package/node_modules/lodash/_assignValue.js +0 -28
  231. package/node_modules/lodash/_assocIndexOf.js +0 -21
  232. package/node_modules/lodash/_baseAggregator.js +0 -21
  233. package/node_modules/lodash/_baseAssign.js +0 -17
  234. package/node_modules/lodash/_baseAssignIn.js +0 -17
  235. package/node_modules/lodash/_baseAssignValue.js +0 -25
  236. package/node_modules/lodash/_baseAt.js +0 -23
  237. package/node_modules/lodash/_baseClamp.js +0 -22
  238. package/node_modules/lodash/_baseClone.js +0 -166
  239. package/node_modules/lodash/_baseConforms.js +0 -18
  240. package/node_modules/lodash/_baseConformsTo.js +0 -27
  241. package/node_modules/lodash/_baseCreate.js +0 -30
  242. package/node_modules/lodash/_baseDelay.js +0 -21
  243. package/node_modules/lodash/_baseDifference.js +0 -67
  244. package/node_modules/lodash/_baseEach.js +0 -14
  245. package/node_modules/lodash/_baseEachRight.js +0 -14
  246. package/node_modules/lodash/_baseEvery.js +0 -21
  247. package/node_modules/lodash/_baseExtremum.js +0 -32
  248. package/node_modules/lodash/_baseFill.js +0 -32
  249. package/node_modules/lodash/_baseFilter.js +0 -21
  250. package/node_modules/lodash/_baseFindIndex.js +0 -24
  251. package/node_modules/lodash/_baseFindKey.js +0 -23
  252. package/node_modules/lodash/_baseFlatten.js +0 -38
  253. package/node_modules/lodash/_baseFor.js +0 -16
  254. package/node_modules/lodash/_baseForOwn.js +0 -16
  255. package/node_modules/lodash/_baseForOwnRight.js +0 -16
  256. package/node_modules/lodash/_baseForRight.js +0 -15
  257. package/node_modules/lodash/_baseFunctions.js +0 -19
  258. package/node_modules/lodash/_baseGet.js +0 -24
  259. package/node_modules/lodash/_baseGetAllKeys.js +0 -20
  260. package/node_modules/lodash/_baseGetTag.js +0 -28
  261. package/node_modules/lodash/_baseGt.js +0 -14
  262. package/node_modules/lodash/_baseHas.js +0 -19
  263. package/node_modules/lodash/_baseHasIn.js +0 -13
  264. package/node_modules/lodash/_baseInRange.js +0 -18
  265. package/node_modules/lodash/_baseIndexOf.js +0 -20
  266. package/node_modules/lodash/_baseIndexOfWith.js +0 -23
  267. package/node_modules/lodash/_baseIntersection.js +0 -74
  268. package/node_modules/lodash/_baseInverter.js +0 -21
  269. package/node_modules/lodash/_baseInvoke.js +0 -24
  270. package/node_modules/lodash/_baseIsArguments.js +0 -18
  271. package/node_modules/lodash/_baseIsArrayBuffer.js +0 -17
  272. package/node_modules/lodash/_baseIsDate.js +0 -18
  273. package/node_modules/lodash/_baseIsEqual.js +0 -28
  274. package/node_modules/lodash/_baseIsEqualDeep.js +0 -83
  275. package/node_modules/lodash/_baseIsMap.js +0 -18
  276. package/node_modules/lodash/_baseIsMatch.js +0 -62
  277. package/node_modules/lodash/_baseIsNaN.js +0 -12
  278. package/node_modules/lodash/_baseIsNative.js +0 -47
  279. package/node_modules/lodash/_baseIsRegExp.js +0 -18
  280. package/node_modules/lodash/_baseIsSet.js +0 -18
  281. package/node_modules/lodash/_baseIsTypedArray.js +0 -60
  282. package/node_modules/lodash/_baseIteratee.js +0 -31
  283. package/node_modules/lodash/_baseKeys.js +0 -30
  284. package/node_modules/lodash/_baseKeysIn.js +0 -33
  285. package/node_modules/lodash/_baseLodash.js +0 -10
  286. package/node_modules/lodash/_baseLt.js +0 -14
  287. package/node_modules/lodash/_baseMap.js +0 -22
  288. package/node_modules/lodash/_baseMatches.js +0 -22
  289. package/node_modules/lodash/_baseMatchesProperty.js +0 -33
  290. package/node_modules/lodash/_baseMean.js +0 -20
  291. package/node_modules/lodash/_baseMerge.js +0 -42
  292. package/node_modules/lodash/_baseMergeDeep.js +0 -94
  293. package/node_modules/lodash/_baseNth.js +0 -20
  294. package/node_modules/lodash/_baseOrderBy.js +0 -49
  295. package/node_modules/lodash/_basePick.js +0 -19
  296. package/node_modules/lodash/_basePickBy.js +0 -30
  297. package/node_modules/lodash/_baseProperty.js +0 -14
  298. package/node_modules/lodash/_basePropertyDeep.js +0 -16
  299. package/node_modules/lodash/_basePropertyOf.js +0 -14
  300. package/node_modules/lodash/_basePullAll.js +0 -51
  301. package/node_modules/lodash/_basePullAt.js +0 -37
  302. package/node_modules/lodash/_baseRandom.js +0 -18
  303. package/node_modules/lodash/_baseRange.js +0 -28
  304. package/node_modules/lodash/_baseReduce.js +0 -23
  305. package/node_modules/lodash/_baseRepeat.js +0 -35
  306. package/node_modules/lodash/_baseRest.js +0 -17
  307. package/node_modules/lodash/_baseSample.js +0 -15
  308. package/node_modules/lodash/_baseSampleSize.js +0 -18
  309. package/node_modules/lodash/_baseSet.js +0 -51
  310. package/node_modules/lodash/_baseSetData.js +0 -17
  311. package/node_modules/lodash/_baseSetToString.js +0 -22
  312. package/node_modules/lodash/_baseShuffle.js +0 -15
  313. package/node_modules/lodash/_baseSlice.js +0 -31
  314. package/node_modules/lodash/_baseSome.js +0 -22
  315. package/node_modules/lodash/_baseSortBy.js +0 -21
  316. package/node_modules/lodash/_baseSortedIndex.js +0 -42
  317. package/node_modules/lodash/_baseSortedIndexBy.js +0 -67
  318. package/node_modules/lodash/_baseSortedUniq.js +0 -30
  319. package/node_modules/lodash/_baseSum.js +0 -24
  320. package/node_modules/lodash/_baseTimes.js +0 -20
  321. package/node_modules/lodash/_baseToNumber.js +0 -24
  322. package/node_modules/lodash/_baseToPairs.js +0 -18
  323. package/node_modules/lodash/_baseToString.js +0 -37
  324. package/node_modules/lodash/_baseTrim.js +0 -19
  325. package/node_modules/lodash/_baseUnary.js +0 -14
  326. package/node_modules/lodash/_baseUniq.js +0 -72
  327. package/node_modules/lodash/_baseUnset.js +0 -52
  328. package/node_modules/lodash/_baseUpdate.js +0 -18
  329. package/node_modules/lodash/_baseValues.js +0 -19
  330. package/node_modules/lodash/_baseWhile.js +0 -26
  331. package/node_modules/lodash/_baseWrapperValue.js +0 -25
  332. package/node_modules/lodash/_baseXor.js +0 -36
  333. package/node_modules/lodash/_baseZipObject.js +0 -23
  334. package/node_modules/lodash/_cacheHas.js +0 -13
  335. package/node_modules/lodash/_castArrayLikeObject.js +0 -14
  336. package/node_modules/lodash/_castFunction.js +0 -14
  337. package/node_modules/lodash/_castPath.js +0 -21
  338. package/node_modules/lodash/_castRest.js +0 -14
  339. package/node_modules/lodash/_castSlice.js +0 -18
  340. package/node_modules/lodash/_charsEndIndex.js +0 -19
  341. package/node_modules/lodash/_charsStartIndex.js +0 -20
  342. package/node_modules/lodash/_cloneArrayBuffer.js +0 -16
  343. package/node_modules/lodash/_cloneBuffer.js +0 -35
  344. package/node_modules/lodash/_cloneDataView.js +0 -16
  345. package/node_modules/lodash/_cloneRegExp.js +0 -17
  346. package/node_modules/lodash/_cloneSymbol.js +0 -18
  347. package/node_modules/lodash/_cloneTypedArray.js +0 -16
  348. package/node_modules/lodash/_compareAscending.js +0 -41
  349. package/node_modules/lodash/_compareMultiple.js +0 -44
  350. package/node_modules/lodash/_composeArgs.js +0 -39
  351. package/node_modules/lodash/_composeArgsRight.js +0 -41
  352. package/node_modules/lodash/_copyArray.js +0 -20
  353. package/node_modules/lodash/_copyObject.js +0 -40
  354. package/node_modules/lodash/_copySymbols.js +0 -16
  355. package/node_modules/lodash/_copySymbolsIn.js +0 -16
  356. package/node_modules/lodash/_coreJsData.js +0 -6
  357. package/node_modules/lodash/_countHolders.js +0 -21
  358. package/node_modules/lodash/_createAggregator.js +0 -23
  359. package/node_modules/lodash/_createAssigner.js +0 -37
  360. package/node_modules/lodash/_createBaseEach.js +0 -32
  361. package/node_modules/lodash/_createBaseFor.js +0 -25
  362. package/node_modules/lodash/_createBind.js +0 -28
  363. package/node_modules/lodash/_createCaseFirst.js +0 -33
  364. package/node_modules/lodash/_createCompounder.js +0 -24
  365. package/node_modules/lodash/_createCtor.js +0 -37
  366. package/node_modules/lodash/_createCurry.js +0 -46
  367. package/node_modules/lodash/_createFind.js +0 -25
  368. package/node_modules/lodash/_createFlow.js +0 -78
  369. package/node_modules/lodash/_createHybrid.js +0 -92
  370. package/node_modules/lodash/_createInverter.js +0 -17
  371. package/node_modules/lodash/_createMathOperation.js +0 -38
  372. package/node_modules/lodash/_createOver.js +0 -27
  373. package/node_modules/lodash/_createPadding.js +0 -33
  374. package/node_modules/lodash/_createPartial.js +0 -43
  375. package/node_modules/lodash/_createRange.js +0 -30
  376. package/node_modules/lodash/_createRecurry.js +0 -56
  377. package/node_modules/lodash/_createRelationalOperation.js +0 -20
  378. package/node_modules/lodash/_createRound.js +0 -35
  379. package/node_modules/lodash/_createSet.js +0 -19
  380. package/node_modules/lodash/_createToPairs.js +0 -30
  381. package/node_modules/lodash/_createWrap.js +0 -106
  382. package/node_modules/lodash/_customDefaultsAssignIn.js +0 -29
  383. package/node_modules/lodash/_customDefaultsMerge.js +0 -28
  384. package/node_modules/lodash/_customOmitClone.js +0 -16
  385. package/node_modules/lodash/_deburrLetter.js +0 -71
  386. package/node_modules/lodash/_defineProperty.js +0 -11
  387. package/node_modules/lodash/_equalArrays.js +0 -84
  388. package/node_modules/lodash/_equalByTag.js +0 -112
  389. package/node_modules/lodash/_equalObjects.js +0 -90
  390. package/node_modules/lodash/_escapeHtmlChar.js +0 -21
  391. package/node_modules/lodash/_escapeStringChar.js +0 -22
  392. package/node_modules/lodash/_flatRest.js +0 -16
  393. package/node_modules/lodash/_freeGlobal.js +0 -4
  394. package/node_modules/lodash/_getAllKeys.js +0 -16
  395. package/node_modules/lodash/_getAllKeysIn.js +0 -17
  396. package/node_modules/lodash/_getData.js +0 -15
  397. package/node_modules/lodash/_getFuncName.js +0 -31
  398. package/node_modules/lodash/_getHolder.js +0 -13
  399. package/node_modules/lodash/_getMapData.js +0 -18
  400. package/node_modules/lodash/_getMatchData.js +0 -24
  401. package/node_modules/lodash/_getNative.js +0 -17
  402. package/node_modules/lodash/_getPrototype.js +0 -6
  403. package/node_modules/lodash/_getRawTag.js +0 -46
  404. package/node_modules/lodash/_getSymbols.js +0 -30
  405. package/node_modules/lodash/_getSymbolsIn.js +0 -25
  406. package/node_modules/lodash/_getTag.js +0 -58
  407. package/node_modules/lodash/_getValue.js +0 -13
  408. package/node_modules/lodash/_getView.js +0 -33
  409. package/node_modules/lodash/_getWrapDetails.js +0 -17
  410. package/node_modules/lodash/_hasPath.js +0 -39
  411. package/node_modules/lodash/_hasUnicode.js +0 -26
  412. package/node_modules/lodash/_hasUnicodeWord.js +0 -15
  413. package/node_modules/lodash/_hashClear.js +0 -15
  414. package/node_modules/lodash/_hashDelete.js +0 -17
  415. package/node_modules/lodash/_hashGet.js +0 -30
  416. package/node_modules/lodash/_hashHas.js +0 -23
  417. package/node_modules/lodash/_hashSet.js +0 -23
  418. package/node_modules/lodash/_initCloneArray.js +0 -26
  419. package/node_modules/lodash/_initCloneByTag.js +0 -77
  420. package/node_modules/lodash/_initCloneObject.js +0 -18
  421. package/node_modules/lodash/_insertWrapDetails.js +0 -23
  422. package/node_modules/lodash/_isFlattenable.js +0 -20
  423. package/node_modules/lodash/_isIndex.js +0 -25
  424. package/node_modules/lodash/_isIterateeCall.js +0 -30
  425. package/node_modules/lodash/_isKey.js +0 -29
  426. package/node_modules/lodash/_isKeyable.js +0 -15
  427. package/node_modules/lodash/_isLaziable.js +0 -28
  428. package/node_modules/lodash/_isMaskable.js +0 -14
  429. package/node_modules/lodash/_isMasked.js +0 -20
  430. package/node_modules/lodash/_isPrototype.js +0 -18
  431. package/node_modules/lodash/_isStrictComparable.js +0 -15
  432. package/node_modules/lodash/_iteratorToArray.js +0 -18
  433. package/node_modules/lodash/_lazyClone.js +0 -23
  434. package/node_modules/lodash/_lazyReverse.js +0 -23
  435. package/node_modules/lodash/_lazyValue.js +0 -69
  436. package/node_modules/lodash/_listCacheClear.js +0 -13
  437. package/node_modules/lodash/_listCacheDelete.js +0 -35
  438. package/node_modules/lodash/_listCacheGet.js +0 -19
  439. package/node_modules/lodash/_listCacheHas.js +0 -16
  440. package/node_modules/lodash/_listCacheSet.js +0 -26
  441. package/node_modules/lodash/_mapCacheClear.js +0 -21
  442. package/node_modules/lodash/_mapCacheDelete.js +0 -18
  443. package/node_modules/lodash/_mapCacheGet.js +0 -16
  444. package/node_modules/lodash/_mapCacheHas.js +0 -16
  445. package/node_modules/lodash/_mapCacheSet.js +0 -22
  446. package/node_modules/lodash/_mapToArray.js +0 -18
  447. package/node_modules/lodash/_matchesStrictComparable.js +0 -20
  448. package/node_modules/lodash/_memoizeCapped.js +0 -26
  449. package/node_modules/lodash/_mergeData.js +0 -90
  450. package/node_modules/lodash/_metaMap.js +0 -6
  451. package/node_modules/lodash/_nativeCreate.js +0 -6
  452. package/node_modules/lodash/_nativeKeys.js +0 -6
  453. package/node_modules/lodash/_nativeKeysIn.js +0 -20
  454. package/node_modules/lodash/_nodeUtil.js +0 -30
  455. package/node_modules/lodash/_objectToString.js +0 -22
  456. package/node_modules/lodash/_overArg.js +0 -15
  457. package/node_modules/lodash/_overRest.js +0 -36
  458. package/node_modules/lodash/_parent.js +0 -16
  459. package/node_modules/lodash/_reEscape.js +0 -4
  460. package/node_modules/lodash/_reEvaluate.js +0 -4
  461. package/node_modules/lodash/_reInterpolate.js +0 -4
  462. package/node_modules/lodash/_realNames.js +0 -4
  463. package/node_modules/lodash/_reorder.js +0 -29
  464. package/node_modules/lodash/_replaceHolders.js +0 -29
  465. package/node_modules/lodash/_root.js +0 -9
  466. package/node_modules/lodash/_safeGet.js +0 -21
  467. package/node_modules/lodash/_setCacheAdd.js +0 -19
  468. package/node_modules/lodash/_setCacheHas.js +0 -14
  469. package/node_modules/lodash/_setData.js +0 -20
  470. package/node_modules/lodash/_setToArray.js +0 -18
  471. package/node_modules/lodash/_setToPairs.js +0 -18
  472. package/node_modules/lodash/_setToString.js +0 -14
  473. package/node_modules/lodash/_setWrapToString.js +0 -21
  474. package/node_modules/lodash/_shortOut.js +0 -37
  475. package/node_modules/lodash/_shuffleSelf.js +0 -28
  476. package/node_modules/lodash/_stackClear.js +0 -15
  477. package/node_modules/lodash/_stackDelete.js +0 -18
  478. package/node_modules/lodash/_stackGet.js +0 -14
  479. package/node_modules/lodash/_stackHas.js +0 -14
  480. package/node_modules/lodash/_stackSet.js +0 -34
  481. package/node_modules/lodash/_strictIndexOf.js +0 -23
  482. package/node_modules/lodash/_strictLastIndexOf.js +0 -21
  483. package/node_modules/lodash/_stringSize.js +0 -18
  484. package/node_modules/lodash/_stringToArray.js +0 -18
  485. package/node_modules/lodash/_stringToPath.js +0 -27
  486. package/node_modules/lodash/_toKey.js +0 -21
  487. package/node_modules/lodash/_toSource.js +0 -26
  488. package/node_modules/lodash/_trimmedEndIndex.js +0 -19
  489. package/node_modules/lodash/_unescapeHtmlChar.js +0 -21
  490. package/node_modules/lodash/_unicodeSize.js +0 -44
  491. package/node_modules/lodash/_unicodeToArray.js +0 -40
  492. package/node_modules/lodash/_unicodeWords.js +0 -69
  493. package/node_modules/lodash/_updateWrapDetails.js +0 -46
  494. package/node_modules/lodash/_wrapperClone.js +0 -23
  495. package/node_modules/lodash/add.js +0 -22
  496. package/node_modules/lodash/after.js +0 -42
  497. package/node_modules/lodash/array.js +0 -67
  498. package/node_modules/lodash/ary.js +0 -29
  499. package/node_modules/lodash/assign.js +0 -58
  500. package/node_modules/lodash/assignIn.js +0 -40
  501. package/node_modules/lodash/assignInWith.js +0 -38
  502. package/node_modules/lodash/assignWith.js +0 -37
  503. package/node_modules/lodash/at.js +0 -23
  504. package/node_modules/lodash/attempt.js +0 -35
  505. package/node_modules/lodash/before.js +0 -40
  506. package/node_modules/lodash/bind.js +0 -57
  507. package/node_modules/lodash/bindAll.js +0 -41
  508. package/node_modules/lodash/bindKey.js +0 -68
  509. package/node_modules/lodash/camelCase.js +0 -29
  510. package/node_modules/lodash/capitalize.js +0 -23
  511. package/node_modules/lodash/castArray.js +0 -44
  512. package/node_modules/lodash/ceil.js +0 -26
  513. package/node_modules/lodash/chain.js +0 -38
  514. package/node_modules/lodash/chunk.js +0 -50
  515. package/node_modules/lodash/clamp.js +0 -39
  516. package/node_modules/lodash/clone.js +0 -36
  517. package/node_modules/lodash/cloneDeep.js +0 -29
  518. package/node_modules/lodash/cloneDeepWith.js +0 -40
  519. package/node_modules/lodash/cloneWith.js +0 -42
  520. package/node_modules/lodash/collection.js +0 -30
  521. package/node_modules/lodash/commit.js +0 -33
  522. package/node_modules/lodash/compact.js +0 -31
  523. package/node_modules/lodash/concat.js +0 -43
  524. package/node_modules/lodash/cond.js +0 -60
  525. package/node_modules/lodash/conforms.js +0 -35
  526. package/node_modules/lodash/conformsTo.js +0 -32
  527. package/node_modules/lodash/constant.js +0 -26
  528. package/node_modules/lodash/core.js +0 -3877
  529. package/node_modules/lodash/core.min.js +0 -30
  530. package/node_modules/lodash/countBy.js +0 -40
  531. package/node_modules/lodash/create.js +0 -43
  532. package/node_modules/lodash/curry.js +0 -57
  533. package/node_modules/lodash/curryRight.js +0 -54
  534. package/node_modules/lodash/date.js +0 -3
  535. package/node_modules/lodash/debounce.js +0 -191
  536. package/node_modules/lodash/deburr.js +0 -45
  537. package/node_modules/lodash/defaultTo.js +0 -25
  538. package/node_modules/lodash/defaults.js +0 -64
  539. package/node_modules/lodash/defaultsDeep.js +0 -30
  540. package/node_modules/lodash/defer.js +0 -26
  541. package/node_modules/lodash/delay.js +0 -28
  542. package/node_modules/lodash/difference.js +0 -33
  543. package/node_modules/lodash/differenceBy.js +0 -44
  544. package/node_modules/lodash/differenceWith.js +0 -40
  545. package/node_modules/lodash/divide.js +0 -22
  546. package/node_modules/lodash/drop.js +0 -38
  547. package/node_modules/lodash/dropRight.js +0 -39
  548. package/node_modules/lodash/dropRightWhile.js +0 -45
  549. package/node_modules/lodash/dropWhile.js +0 -45
  550. package/node_modules/lodash/each.js +0 -1
  551. package/node_modules/lodash/eachRight.js +0 -1
  552. package/node_modules/lodash/endsWith.js +0 -43
  553. package/node_modules/lodash/entries.js +0 -1
  554. package/node_modules/lodash/entriesIn.js +0 -1
  555. package/node_modules/lodash/eq.js +0 -37
  556. package/node_modules/lodash/escape.js +0 -43
  557. package/node_modules/lodash/escapeRegExp.js +0 -32
  558. package/node_modules/lodash/every.js +0 -56
  559. package/node_modules/lodash/extend.js +0 -1
  560. package/node_modules/lodash/extendWith.js +0 -1
  561. package/node_modules/lodash/fill.js +0 -45
  562. package/node_modules/lodash/filter.js +0 -52
  563. package/node_modules/lodash/find.js +0 -42
  564. package/node_modules/lodash/findIndex.js +0 -55
  565. package/node_modules/lodash/findKey.js +0 -44
  566. package/node_modules/lodash/findLast.js +0 -25
  567. package/node_modules/lodash/findLastIndex.js +0 -59
  568. package/node_modules/lodash/findLastKey.js +0 -44
  569. package/node_modules/lodash/first.js +0 -1
  570. package/node_modules/lodash/flatMap.js +0 -29
  571. package/node_modules/lodash/flatMapDeep.js +0 -31
  572. package/node_modules/lodash/flatMapDepth.js +0 -31
  573. package/node_modules/lodash/flatten.js +0 -22
  574. package/node_modules/lodash/flattenDeep.js +0 -25
  575. package/node_modules/lodash/flattenDepth.js +0 -33
  576. package/node_modules/lodash/flip.js +0 -28
  577. package/node_modules/lodash/floor.js +0 -26
  578. package/node_modules/lodash/flow.js +0 -27
  579. package/node_modules/lodash/flowRight.js +0 -26
  580. package/node_modules/lodash/forEach.js +0 -41
  581. package/node_modules/lodash/forEachRight.js +0 -31
  582. package/node_modules/lodash/forIn.js +0 -39
  583. package/node_modules/lodash/forInRight.js +0 -37
  584. package/node_modules/lodash/forOwn.js +0 -36
  585. package/node_modules/lodash/forOwnRight.js +0 -34
  586. package/node_modules/lodash/fp/F.js +0 -1
  587. package/node_modules/lodash/fp/T.js +0 -1
  588. package/node_modules/lodash/fp/__.js +0 -1
  589. package/node_modules/lodash/fp/_baseConvert.js +0 -569
  590. package/node_modules/lodash/fp/_convertBrowser.js +0 -18
  591. package/node_modules/lodash/fp/_falseOptions.js +0 -7
  592. package/node_modules/lodash/fp/_mapping.js +0 -358
  593. package/node_modules/lodash/fp/_util.js +0 -16
  594. package/node_modules/lodash/fp/add.js +0 -5
  595. package/node_modules/lodash/fp/after.js +0 -5
  596. package/node_modules/lodash/fp/all.js +0 -1
  597. package/node_modules/lodash/fp/allPass.js +0 -1
  598. package/node_modules/lodash/fp/always.js +0 -1
  599. package/node_modules/lodash/fp/any.js +0 -1
  600. package/node_modules/lodash/fp/anyPass.js +0 -1
  601. package/node_modules/lodash/fp/apply.js +0 -1
  602. package/node_modules/lodash/fp/array.js +0 -2
  603. package/node_modules/lodash/fp/ary.js +0 -5
  604. package/node_modules/lodash/fp/assign.js +0 -5
  605. package/node_modules/lodash/fp/assignAll.js +0 -5
  606. package/node_modules/lodash/fp/assignAllWith.js +0 -5
  607. package/node_modules/lodash/fp/assignIn.js +0 -5
  608. package/node_modules/lodash/fp/assignInAll.js +0 -5
  609. package/node_modules/lodash/fp/assignInAllWith.js +0 -5
  610. package/node_modules/lodash/fp/assignInWith.js +0 -5
  611. package/node_modules/lodash/fp/assignWith.js +0 -5
  612. package/node_modules/lodash/fp/assoc.js +0 -1
  613. package/node_modules/lodash/fp/assocPath.js +0 -1
  614. package/node_modules/lodash/fp/at.js +0 -5
  615. package/node_modules/lodash/fp/attempt.js +0 -5
  616. package/node_modules/lodash/fp/before.js +0 -5
  617. package/node_modules/lodash/fp/bind.js +0 -5
  618. package/node_modules/lodash/fp/bindAll.js +0 -5
  619. package/node_modules/lodash/fp/bindKey.js +0 -5
  620. package/node_modules/lodash/fp/camelCase.js +0 -5
  621. package/node_modules/lodash/fp/capitalize.js +0 -5
  622. package/node_modules/lodash/fp/castArray.js +0 -5
  623. package/node_modules/lodash/fp/ceil.js +0 -5
  624. package/node_modules/lodash/fp/chain.js +0 -5
  625. package/node_modules/lodash/fp/chunk.js +0 -5
  626. package/node_modules/lodash/fp/clamp.js +0 -5
  627. package/node_modules/lodash/fp/clone.js +0 -5
  628. package/node_modules/lodash/fp/cloneDeep.js +0 -5
  629. package/node_modules/lodash/fp/cloneDeepWith.js +0 -5
  630. package/node_modules/lodash/fp/cloneWith.js +0 -5
  631. package/node_modules/lodash/fp/collection.js +0 -2
  632. package/node_modules/lodash/fp/commit.js +0 -5
  633. package/node_modules/lodash/fp/compact.js +0 -5
  634. package/node_modules/lodash/fp/complement.js +0 -1
  635. package/node_modules/lodash/fp/compose.js +0 -1
  636. package/node_modules/lodash/fp/concat.js +0 -5
  637. package/node_modules/lodash/fp/cond.js +0 -5
  638. package/node_modules/lodash/fp/conforms.js +0 -1
  639. package/node_modules/lodash/fp/conformsTo.js +0 -5
  640. package/node_modules/lodash/fp/constant.js +0 -5
  641. package/node_modules/lodash/fp/contains.js +0 -1
  642. package/node_modules/lodash/fp/convert.js +0 -18
  643. package/node_modules/lodash/fp/countBy.js +0 -5
  644. package/node_modules/lodash/fp/create.js +0 -5
  645. package/node_modules/lodash/fp/curry.js +0 -5
  646. package/node_modules/lodash/fp/curryN.js +0 -5
  647. package/node_modules/lodash/fp/curryRight.js +0 -5
  648. package/node_modules/lodash/fp/curryRightN.js +0 -5
  649. package/node_modules/lodash/fp/date.js +0 -2
  650. package/node_modules/lodash/fp/debounce.js +0 -5
  651. package/node_modules/lodash/fp/deburr.js +0 -5
  652. package/node_modules/lodash/fp/defaultTo.js +0 -5
  653. package/node_modules/lodash/fp/defaults.js +0 -5
  654. package/node_modules/lodash/fp/defaultsAll.js +0 -5
  655. package/node_modules/lodash/fp/defaultsDeep.js +0 -5
  656. package/node_modules/lodash/fp/defaultsDeepAll.js +0 -5
  657. package/node_modules/lodash/fp/defer.js +0 -5
  658. package/node_modules/lodash/fp/delay.js +0 -5
  659. package/node_modules/lodash/fp/difference.js +0 -5
  660. package/node_modules/lodash/fp/differenceBy.js +0 -5
  661. package/node_modules/lodash/fp/differenceWith.js +0 -5
  662. package/node_modules/lodash/fp/dissoc.js +0 -1
  663. package/node_modules/lodash/fp/dissocPath.js +0 -1
  664. package/node_modules/lodash/fp/divide.js +0 -5
  665. package/node_modules/lodash/fp/drop.js +0 -5
  666. package/node_modules/lodash/fp/dropLast.js +0 -1
  667. package/node_modules/lodash/fp/dropLastWhile.js +0 -1
  668. package/node_modules/lodash/fp/dropRight.js +0 -5
  669. package/node_modules/lodash/fp/dropRightWhile.js +0 -5
  670. package/node_modules/lodash/fp/dropWhile.js +0 -5
  671. package/node_modules/lodash/fp/each.js +0 -1
  672. package/node_modules/lodash/fp/eachRight.js +0 -1
  673. package/node_modules/lodash/fp/endsWith.js +0 -5
  674. package/node_modules/lodash/fp/entries.js +0 -1
  675. package/node_modules/lodash/fp/entriesIn.js +0 -1
  676. package/node_modules/lodash/fp/eq.js +0 -5
  677. package/node_modules/lodash/fp/equals.js +0 -1
  678. package/node_modules/lodash/fp/escape.js +0 -5
  679. package/node_modules/lodash/fp/escapeRegExp.js +0 -5
  680. package/node_modules/lodash/fp/every.js +0 -5
  681. package/node_modules/lodash/fp/extend.js +0 -1
  682. package/node_modules/lodash/fp/extendAll.js +0 -1
  683. package/node_modules/lodash/fp/extendAllWith.js +0 -1
  684. package/node_modules/lodash/fp/extendWith.js +0 -1
  685. package/node_modules/lodash/fp/fill.js +0 -5
  686. package/node_modules/lodash/fp/filter.js +0 -5
  687. package/node_modules/lodash/fp/find.js +0 -5
  688. package/node_modules/lodash/fp/findFrom.js +0 -5
  689. package/node_modules/lodash/fp/findIndex.js +0 -5
  690. package/node_modules/lodash/fp/findIndexFrom.js +0 -5
  691. package/node_modules/lodash/fp/findKey.js +0 -5
  692. package/node_modules/lodash/fp/findLast.js +0 -5
  693. package/node_modules/lodash/fp/findLastFrom.js +0 -5
  694. package/node_modules/lodash/fp/findLastIndex.js +0 -5
  695. package/node_modules/lodash/fp/findLastIndexFrom.js +0 -5
  696. package/node_modules/lodash/fp/findLastKey.js +0 -5
  697. package/node_modules/lodash/fp/first.js +0 -1
  698. package/node_modules/lodash/fp/flatMap.js +0 -5
  699. package/node_modules/lodash/fp/flatMapDeep.js +0 -5
  700. package/node_modules/lodash/fp/flatMapDepth.js +0 -5
  701. package/node_modules/lodash/fp/flatten.js +0 -5
  702. package/node_modules/lodash/fp/flattenDeep.js +0 -5
  703. package/node_modules/lodash/fp/flattenDepth.js +0 -5
  704. package/node_modules/lodash/fp/flip.js +0 -5
  705. package/node_modules/lodash/fp/floor.js +0 -5
  706. package/node_modules/lodash/fp/flow.js +0 -5
  707. package/node_modules/lodash/fp/flowRight.js +0 -5
  708. package/node_modules/lodash/fp/forEach.js +0 -5
  709. package/node_modules/lodash/fp/forEachRight.js +0 -5
  710. package/node_modules/lodash/fp/forIn.js +0 -5
  711. package/node_modules/lodash/fp/forInRight.js +0 -5
  712. package/node_modules/lodash/fp/forOwn.js +0 -5
  713. package/node_modules/lodash/fp/forOwnRight.js +0 -5
  714. package/node_modules/lodash/fp/fromPairs.js +0 -5
  715. package/node_modules/lodash/fp/function.js +0 -2
  716. package/node_modules/lodash/fp/functions.js +0 -5
  717. package/node_modules/lodash/fp/functionsIn.js +0 -5
  718. package/node_modules/lodash/fp/get.js +0 -5
  719. package/node_modules/lodash/fp/getOr.js +0 -5
  720. package/node_modules/lodash/fp/groupBy.js +0 -5
  721. package/node_modules/lodash/fp/gt.js +0 -5
  722. package/node_modules/lodash/fp/gte.js +0 -5
  723. package/node_modules/lodash/fp/has.js +0 -5
  724. package/node_modules/lodash/fp/hasIn.js +0 -5
  725. package/node_modules/lodash/fp/head.js +0 -5
  726. package/node_modules/lodash/fp/identical.js +0 -1
  727. package/node_modules/lodash/fp/identity.js +0 -5
  728. package/node_modules/lodash/fp/inRange.js +0 -5
  729. package/node_modules/lodash/fp/includes.js +0 -5
  730. package/node_modules/lodash/fp/includesFrom.js +0 -5
  731. package/node_modules/lodash/fp/indexBy.js +0 -1
  732. package/node_modules/lodash/fp/indexOf.js +0 -5
  733. package/node_modules/lodash/fp/indexOfFrom.js +0 -5
  734. package/node_modules/lodash/fp/init.js +0 -1
  735. package/node_modules/lodash/fp/initial.js +0 -5
  736. package/node_modules/lodash/fp/intersection.js +0 -5
  737. package/node_modules/lodash/fp/intersectionBy.js +0 -5
  738. package/node_modules/lodash/fp/intersectionWith.js +0 -5
  739. package/node_modules/lodash/fp/invert.js +0 -5
  740. package/node_modules/lodash/fp/invertBy.js +0 -5
  741. package/node_modules/lodash/fp/invertObj.js +0 -1
  742. package/node_modules/lodash/fp/invoke.js +0 -5
  743. package/node_modules/lodash/fp/invokeArgs.js +0 -5
  744. package/node_modules/lodash/fp/invokeArgsMap.js +0 -5
  745. package/node_modules/lodash/fp/invokeMap.js +0 -5
  746. package/node_modules/lodash/fp/isArguments.js +0 -5
  747. package/node_modules/lodash/fp/isArray.js +0 -5
  748. package/node_modules/lodash/fp/isArrayBuffer.js +0 -5
  749. package/node_modules/lodash/fp/isArrayLike.js +0 -5
  750. package/node_modules/lodash/fp/isArrayLikeObject.js +0 -5
  751. package/node_modules/lodash/fp/isBoolean.js +0 -5
  752. package/node_modules/lodash/fp/isBuffer.js +0 -5
  753. package/node_modules/lodash/fp/isDate.js +0 -5
  754. package/node_modules/lodash/fp/isElement.js +0 -5
  755. package/node_modules/lodash/fp/isEmpty.js +0 -5
  756. package/node_modules/lodash/fp/isEqual.js +0 -5
  757. package/node_modules/lodash/fp/isEqualWith.js +0 -5
  758. package/node_modules/lodash/fp/isError.js +0 -5
  759. package/node_modules/lodash/fp/isFinite.js +0 -5
  760. package/node_modules/lodash/fp/isFunction.js +0 -5
  761. package/node_modules/lodash/fp/isInteger.js +0 -5
  762. package/node_modules/lodash/fp/isLength.js +0 -5
  763. package/node_modules/lodash/fp/isMap.js +0 -5
  764. package/node_modules/lodash/fp/isMatch.js +0 -5
  765. package/node_modules/lodash/fp/isMatchWith.js +0 -5
  766. package/node_modules/lodash/fp/isNaN.js +0 -5
  767. package/node_modules/lodash/fp/isNative.js +0 -5
  768. package/node_modules/lodash/fp/isNil.js +0 -5
  769. package/node_modules/lodash/fp/isNull.js +0 -5
  770. package/node_modules/lodash/fp/isNumber.js +0 -5
  771. package/node_modules/lodash/fp/isObject.js +0 -5
  772. package/node_modules/lodash/fp/isObjectLike.js +0 -5
  773. package/node_modules/lodash/fp/isPlainObject.js +0 -5
  774. package/node_modules/lodash/fp/isRegExp.js +0 -5
  775. package/node_modules/lodash/fp/isSafeInteger.js +0 -5
  776. package/node_modules/lodash/fp/isSet.js +0 -5
  777. package/node_modules/lodash/fp/isString.js +0 -5
  778. package/node_modules/lodash/fp/isSymbol.js +0 -5
  779. package/node_modules/lodash/fp/isTypedArray.js +0 -5
  780. package/node_modules/lodash/fp/isUndefined.js +0 -5
  781. package/node_modules/lodash/fp/isWeakMap.js +0 -5
  782. package/node_modules/lodash/fp/isWeakSet.js +0 -5
  783. package/node_modules/lodash/fp/iteratee.js +0 -5
  784. package/node_modules/lodash/fp/join.js +0 -5
  785. package/node_modules/lodash/fp/juxt.js +0 -1
  786. package/node_modules/lodash/fp/kebabCase.js +0 -5
  787. package/node_modules/lodash/fp/keyBy.js +0 -5
  788. package/node_modules/lodash/fp/keys.js +0 -5
  789. package/node_modules/lodash/fp/keysIn.js +0 -5
  790. package/node_modules/lodash/fp/lang.js +0 -2
  791. package/node_modules/lodash/fp/last.js +0 -5
  792. package/node_modules/lodash/fp/lastIndexOf.js +0 -5
  793. package/node_modules/lodash/fp/lastIndexOfFrom.js +0 -5
  794. package/node_modules/lodash/fp/lowerCase.js +0 -5
  795. package/node_modules/lodash/fp/lowerFirst.js +0 -5
  796. package/node_modules/lodash/fp/lt.js +0 -5
  797. package/node_modules/lodash/fp/lte.js +0 -5
  798. package/node_modules/lodash/fp/map.js +0 -5
  799. package/node_modules/lodash/fp/mapKeys.js +0 -5
  800. package/node_modules/lodash/fp/mapValues.js +0 -5
  801. package/node_modules/lodash/fp/matches.js +0 -1
  802. package/node_modules/lodash/fp/matchesProperty.js +0 -5
  803. package/node_modules/lodash/fp/math.js +0 -2
  804. package/node_modules/lodash/fp/max.js +0 -5
  805. package/node_modules/lodash/fp/maxBy.js +0 -5
  806. package/node_modules/lodash/fp/mean.js +0 -5
  807. package/node_modules/lodash/fp/meanBy.js +0 -5
  808. package/node_modules/lodash/fp/memoize.js +0 -5
  809. package/node_modules/lodash/fp/merge.js +0 -5
  810. package/node_modules/lodash/fp/mergeAll.js +0 -5
  811. package/node_modules/lodash/fp/mergeAllWith.js +0 -5
  812. package/node_modules/lodash/fp/mergeWith.js +0 -5
  813. package/node_modules/lodash/fp/method.js +0 -5
  814. package/node_modules/lodash/fp/methodOf.js +0 -5
  815. package/node_modules/lodash/fp/min.js +0 -5
  816. package/node_modules/lodash/fp/minBy.js +0 -5
  817. package/node_modules/lodash/fp/mixin.js +0 -5
  818. package/node_modules/lodash/fp/multiply.js +0 -5
  819. package/node_modules/lodash/fp/nAry.js +0 -1
  820. package/node_modules/lodash/fp/negate.js +0 -5
  821. package/node_modules/lodash/fp/next.js +0 -5
  822. package/node_modules/lodash/fp/noop.js +0 -5
  823. package/node_modules/lodash/fp/now.js +0 -5
  824. package/node_modules/lodash/fp/nth.js +0 -5
  825. package/node_modules/lodash/fp/nthArg.js +0 -5
  826. package/node_modules/lodash/fp/number.js +0 -2
  827. package/node_modules/lodash/fp/object.js +0 -2
  828. package/node_modules/lodash/fp/omit.js +0 -5
  829. package/node_modules/lodash/fp/omitAll.js +0 -1
  830. package/node_modules/lodash/fp/omitBy.js +0 -5
  831. package/node_modules/lodash/fp/once.js +0 -5
  832. package/node_modules/lodash/fp/orderBy.js +0 -5
  833. package/node_modules/lodash/fp/over.js +0 -5
  834. package/node_modules/lodash/fp/overArgs.js +0 -5
  835. package/node_modules/lodash/fp/overEvery.js +0 -5
  836. package/node_modules/lodash/fp/overSome.js +0 -5
  837. package/node_modules/lodash/fp/pad.js +0 -5
  838. package/node_modules/lodash/fp/padChars.js +0 -5
  839. package/node_modules/lodash/fp/padCharsEnd.js +0 -5
  840. package/node_modules/lodash/fp/padCharsStart.js +0 -5
  841. package/node_modules/lodash/fp/padEnd.js +0 -5
  842. package/node_modules/lodash/fp/padStart.js +0 -5
  843. package/node_modules/lodash/fp/parseInt.js +0 -5
  844. package/node_modules/lodash/fp/partial.js +0 -5
  845. package/node_modules/lodash/fp/partialRight.js +0 -5
  846. package/node_modules/lodash/fp/partition.js +0 -5
  847. package/node_modules/lodash/fp/path.js +0 -1
  848. package/node_modules/lodash/fp/pathEq.js +0 -1
  849. package/node_modules/lodash/fp/pathOr.js +0 -1
  850. package/node_modules/lodash/fp/paths.js +0 -1
  851. package/node_modules/lodash/fp/pick.js +0 -5
  852. package/node_modules/lodash/fp/pickAll.js +0 -1
  853. package/node_modules/lodash/fp/pickBy.js +0 -5
  854. package/node_modules/lodash/fp/pipe.js +0 -1
  855. package/node_modules/lodash/fp/placeholder.js +0 -6
  856. package/node_modules/lodash/fp/plant.js +0 -5
  857. package/node_modules/lodash/fp/pluck.js +0 -1
  858. package/node_modules/lodash/fp/prop.js +0 -1
  859. package/node_modules/lodash/fp/propEq.js +0 -1
  860. package/node_modules/lodash/fp/propOr.js +0 -1
  861. package/node_modules/lodash/fp/property.js +0 -1
  862. package/node_modules/lodash/fp/propertyOf.js +0 -5
  863. package/node_modules/lodash/fp/props.js +0 -1
  864. package/node_modules/lodash/fp/pull.js +0 -5
  865. package/node_modules/lodash/fp/pullAll.js +0 -5
  866. package/node_modules/lodash/fp/pullAllBy.js +0 -5
  867. package/node_modules/lodash/fp/pullAllWith.js +0 -5
  868. package/node_modules/lodash/fp/pullAt.js +0 -5
  869. package/node_modules/lodash/fp/random.js +0 -5
  870. package/node_modules/lodash/fp/range.js +0 -5
  871. package/node_modules/lodash/fp/rangeRight.js +0 -5
  872. package/node_modules/lodash/fp/rangeStep.js +0 -5
  873. package/node_modules/lodash/fp/rangeStepRight.js +0 -5
  874. package/node_modules/lodash/fp/rearg.js +0 -5
  875. package/node_modules/lodash/fp/reduce.js +0 -5
  876. package/node_modules/lodash/fp/reduceRight.js +0 -5
  877. package/node_modules/lodash/fp/reject.js +0 -5
  878. package/node_modules/lodash/fp/remove.js +0 -5
  879. package/node_modules/lodash/fp/repeat.js +0 -5
  880. package/node_modules/lodash/fp/replace.js +0 -5
  881. package/node_modules/lodash/fp/rest.js +0 -5
  882. package/node_modules/lodash/fp/restFrom.js +0 -5
  883. package/node_modules/lodash/fp/result.js +0 -5
  884. package/node_modules/lodash/fp/reverse.js +0 -5
  885. package/node_modules/lodash/fp/round.js +0 -5
  886. package/node_modules/lodash/fp/sample.js +0 -5
  887. package/node_modules/lodash/fp/sampleSize.js +0 -5
  888. package/node_modules/lodash/fp/seq.js +0 -2
  889. package/node_modules/lodash/fp/set.js +0 -5
  890. package/node_modules/lodash/fp/setWith.js +0 -5
  891. package/node_modules/lodash/fp/shuffle.js +0 -5
  892. package/node_modules/lodash/fp/size.js +0 -5
  893. package/node_modules/lodash/fp/slice.js +0 -5
  894. package/node_modules/lodash/fp/snakeCase.js +0 -5
  895. package/node_modules/lodash/fp/some.js +0 -5
  896. package/node_modules/lodash/fp/sortBy.js +0 -5
  897. package/node_modules/lodash/fp/sortedIndex.js +0 -5
  898. package/node_modules/lodash/fp/sortedIndexBy.js +0 -5
  899. package/node_modules/lodash/fp/sortedIndexOf.js +0 -5
  900. package/node_modules/lodash/fp/sortedLastIndex.js +0 -5
  901. package/node_modules/lodash/fp/sortedLastIndexBy.js +0 -5
  902. package/node_modules/lodash/fp/sortedLastIndexOf.js +0 -5
  903. package/node_modules/lodash/fp/sortedUniq.js +0 -5
  904. package/node_modules/lodash/fp/sortedUniqBy.js +0 -5
  905. package/node_modules/lodash/fp/split.js +0 -5
  906. package/node_modules/lodash/fp/spread.js +0 -5
  907. package/node_modules/lodash/fp/spreadFrom.js +0 -5
  908. package/node_modules/lodash/fp/startCase.js +0 -5
  909. package/node_modules/lodash/fp/startsWith.js +0 -5
  910. package/node_modules/lodash/fp/string.js +0 -2
  911. package/node_modules/lodash/fp/stubArray.js +0 -5
  912. package/node_modules/lodash/fp/stubFalse.js +0 -5
  913. package/node_modules/lodash/fp/stubObject.js +0 -5
  914. package/node_modules/lodash/fp/stubString.js +0 -5
  915. package/node_modules/lodash/fp/stubTrue.js +0 -5
  916. package/node_modules/lodash/fp/subtract.js +0 -5
  917. package/node_modules/lodash/fp/sum.js +0 -5
  918. package/node_modules/lodash/fp/sumBy.js +0 -5
  919. package/node_modules/lodash/fp/symmetricDifference.js +0 -1
  920. package/node_modules/lodash/fp/symmetricDifferenceBy.js +0 -1
  921. package/node_modules/lodash/fp/symmetricDifferenceWith.js +0 -1
  922. package/node_modules/lodash/fp/tail.js +0 -5
  923. package/node_modules/lodash/fp/take.js +0 -5
  924. package/node_modules/lodash/fp/takeLast.js +0 -1
  925. package/node_modules/lodash/fp/takeLastWhile.js +0 -1
  926. package/node_modules/lodash/fp/takeRight.js +0 -5
  927. package/node_modules/lodash/fp/takeRightWhile.js +0 -5
  928. package/node_modules/lodash/fp/takeWhile.js +0 -5
  929. package/node_modules/lodash/fp/tap.js +0 -5
  930. package/node_modules/lodash/fp/template.js +0 -5
  931. package/node_modules/lodash/fp/templateSettings.js +0 -5
  932. package/node_modules/lodash/fp/throttle.js +0 -5
  933. package/node_modules/lodash/fp/thru.js +0 -5
  934. package/node_modules/lodash/fp/times.js +0 -5
  935. package/node_modules/lodash/fp/toArray.js +0 -5
  936. package/node_modules/lodash/fp/toFinite.js +0 -5
  937. package/node_modules/lodash/fp/toInteger.js +0 -5
  938. package/node_modules/lodash/fp/toIterator.js +0 -5
  939. package/node_modules/lodash/fp/toJSON.js +0 -5
  940. package/node_modules/lodash/fp/toLength.js +0 -5
  941. package/node_modules/lodash/fp/toLower.js +0 -5
  942. package/node_modules/lodash/fp/toNumber.js +0 -5
  943. package/node_modules/lodash/fp/toPairs.js +0 -5
  944. package/node_modules/lodash/fp/toPairsIn.js +0 -5
  945. package/node_modules/lodash/fp/toPath.js +0 -5
  946. package/node_modules/lodash/fp/toPlainObject.js +0 -5
  947. package/node_modules/lodash/fp/toSafeInteger.js +0 -5
  948. package/node_modules/lodash/fp/toString.js +0 -5
  949. package/node_modules/lodash/fp/toUpper.js +0 -5
  950. package/node_modules/lodash/fp/transform.js +0 -5
  951. package/node_modules/lodash/fp/trim.js +0 -5
  952. package/node_modules/lodash/fp/trimChars.js +0 -5
  953. package/node_modules/lodash/fp/trimCharsEnd.js +0 -5
  954. package/node_modules/lodash/fp/trimCharsStart.js +0 -5
  955. package/node_modules/lodash/fp/trimEnd.js +0 -5
  956. package/node_modules/lodash/fp/trimStart.js +0 -5
  957. package/node_modules/lodash/fp/truncate.js +0 -5
  958. package/node_modules/lodash/fp/unapply.js +0 -1
  959. package/node_modules/lodash/fp/unary.js +0 -5
  960. package/node_modules/lodash/fp/unescape.js +0 -5
  961. package/node_modules/lodash/fp/union.js +0 -5
  962. package/node_modules/lodash/fp/unionBy.js +0 -5
  963. package/node_modules/lodash/fp/unionWith.js +0 -5
  964. package/node_modules/lodash/fp/uniq.js +0 -5
  965. package/node_modules/lodash/fp/uniqBy.js +0 -5
  966. package/node_modules/lodash/fp/uniqWith.js +0 -5
  967. package/node_modules/lodash/fp/uniqueId.js +0 -5
  968. package/node_modules/lodash/fp/unnest.js +0 -1
  969. package/node_modules/lodash/fp/unset.js +0 -5
  970. package/node_modules/lodash/fp/unzip.js +0 -5
  971. package/node_modules/lodash/fp/unzipWith.js +0 -5
  972. package/node_modules/lodash/fp/update.js +0 -5
  973. package/node_modules/lodash/fp/updateWith.js +0 -5
  974. package/node_modules/lodash/fp/upperCase.js +0 -5
  975. package/node_modules/lodash/fp/upperFirst.js +0 -5
  976. package/node_modules/lodash/fp/useWith.js +0 -1
  977. package/node_modules/lodash/fp/util.js +0 -2
  978. package/node_modules/lodash/fp/value.js +0 -5
  979. package/node_modules/lodash/fp/valueOf.js +0 -5
  980. package/node_modules/lodash/fp/values.js +0 -5
  981. package/node_modules/lodash/fp/valuesIn.js +0 -5
  982. package/node_modules/lodash/fp/where.js +0 -1
  983. package/node_modules/lodash/fp/whereEq.js +0 -1
  984. package/node_modules/lodash/fp/without.js +0 -5
  985. package/node_modules/lodash/fp/words.js +0 -5
  986. package/node_modules/lodash/fp/wrap.js +0 -5
  987. package/node_modules/lodash/fp/wrapperAt.js +0 -5
  988. package/node_modules/lodash/fp/wrapperChain.js +0 -5
  989. package/node_modules/lodash/fp/wrapperLodash.js +0 -5
  990. package/node_modules/lodash/fp/wrapperReverse.js +0 -5
  991. package/node_modules/lodash/fp/wrapperValue.js +0 -5
  992. package/node_modules/lodash/fp/xor.js +0 -5
  993. package/node_modules/lodash/fp/xorBy.js +0 -5
  994. package/node_modules/lodash/fp/xorWith.js +0 -5
  995. package/node_modules/lodash/fp/zip.js +0 -5
  996. package/node_modules/lodash/fp/zipAll.js +0 -5
  997. package/node_modules/lodash/fp/zipObj.js +0 -1
  998. package/node_modules/lodash/fp/zipObject.js +0 -5
  999. package/node_modules/lodash/fp/zipObjectDeep.js +0 -5
  1000. package/node_modules/lodash/fp/zipWith.js +0 -5
  1001. package/node_modules/lodash/fp.js +0 -2
  1002. package/node_modules/lodash/fromPairs.js +0 -30
  1003. package/node_modules/lodash/function.js +0 -25
  1004. package/node_modules/lodash/functions.js +0 -31
  1005. package/node_modules/lodash/functionsIn.js +0 -31
  1006. package/node_modules/lodash/get.js +0 -33
  1007. package/node_modules/lodash/groupBy.js +0 -41
  1008. package/node_modules/lodash/gt.js +0 -29
  1009. package/node_modules/lodash/gte.js +0 -30
  1010. package/node_modules/lodash/has.js +0 -35
  1011. package/node_modules/lodash/hasIn.js +0 -34
  1012. package/node_modules/lodash/head.js +0 -23
  1013. package/node_modules/lodash/identity.js +0 -21
  1014. package/node_modules/lodash/inRange.js +0 -55
  1015. package/node_modules/lodash/includes.js +0 -53
  1016. package/node_modules/lodash/index.js +0 -1
  1017. package/node_modules/lodash/indexOf.js +0 -42
  1018. package/node_modules/lodash/initial.js +0 -22
  1019. package/node_modules/lodash/intersection.js +0 -30
  1020. package/node_modules/lodash/intersectionBy.js +0 -45
  1021. package/node_modules/lodash/intersectionWith.js +0 -41
  1022. package/node_modules/lodash/invert.js +0 -42
  1023. package/node_modules/lodash/invertBy.js +0 -56
  1024. package/node_modules/lodash/invoke.js +0 -24
  1025. package/node_modules/lodash/invokeMap.js +0 -41
  1026. package/node_modules/lodash/isArguments.js +0 -36
  1027. package/node_modules/lodash/isArray.js +0 -26
  1028. package/node_modules/lodash/isArrayBuffer.js +0 -27
  1029. package/node_modules/lodash/isArrayLike.js +0 -33
  1030. package/node_modules/lodash/isArrayLikeObject.js +0 -33
  1031. package/node_modules/lodash/isBoolean.js +0 -29
  1032. package/node_modules/lodash/isBuffer.js +0 -38
  1033. package/node_modules/lodash/isDate.js +0 -27
  1034. package/node_modules/lodash/isElement.js +0 -25
  1035. package/node_modules/lodash/isEmpty.js +0 -77
  1036. package/node_modules/lodash/isEqual.js +0 -35
  1037. package/node_modules/lodash/isEqualWith.js +0 -41
  1038. package/node_modules/lodash/isError.js +0 -36
  1039. package/node_modules/lodash/isFinite.js +0 -36
  1040. package/node_modules/lodash/isFunction.js +0 -37
  1041. package/node_modules/lodash/isInteger.js +0 -33
  1042. package/node_modules/lodash/isLength.js +0 -35
  1043. package/node_modules/lodash/isMap.js +0 -27
  1044. package/node_modules/lodash/isMatch.js +0 -36
  1045. package/node_modules/lodash/isMatchWith.js +0 -41
  1046. package/node_modules/lodash/isNaN.js +0 -38
  1047. package/node_modules/lodash/isNative.js +0 -40
  1048. package/node_modules/lodash/isNil.js +0 -25
  1049. package/node_modules/lodash/isNull.js +0 -22
  1050. package/node_modules/lodash/isNumber.js +0 -38
  1051. package/node_modules/lodash/isObject.js +0 -31
  1052. package/node_modules/lodash/isObjectLike.js +0 -29
  1053. package/node_modules/lodash/isPlainObject.js +0 -62
  1054. package/node_modules/lodash/isRegExp.js +0 -27
  1055. package/node_modules/lodash/isSafeInteger.js +0 -37
  1056. package/node_modules/lodash/isSet.js +0 -27
  1057. package/node_modules/lodash/isString.js +0 -30
  1058. package/node_modules/lodash/isSymbol.js +0 -29
  1059. package/node_modules/lodash/isTypedArray.js +0 -27
  1060. package/node_modules/lodash/isUndefined.js +0 -22
  1061. package/node_modules/lodash/isWeakMap.js +0 -28
  1062. package/node_modules/lodash/isWeakSet.js +0 -28
  1063. package/node_modules/lodash/iteratee.js +0 -53
  1064. package/node_modules/lodash/join.js +0 -26
  1065. package/node_modules/lodash/kebabCase.js +0 -28
  1066. package/node_modules/lodash/keyBy.js +0 -36
  1067. package/node_modules/lodash/keys.js +0 -37
  1068. package/node_modules/lodash/keysIn.js +0 -32
  1069. package/node_modules/lodash/lang.js +0 -58
  1070. package/node_modules/lodash/last.js +0 -20
  1071. package/node_modules/lodash/lastIndexOf.js +0 -46
  1072. package/node_modules/lodash/lodash.js +0 -17259
  1073. package/node_modules/lodash/lodash.min.js +0 -136
  1074. package/node_modules/lodash/lowerCase.js +0 -27
  1075. package/node_modules/lodash/lowerFirst.js +0 -22
  1076. package/node_modules/lodash/lt.js +0 -29
  1077. package/node_modules/lodash/lte.js +0 -30
  1078. package/node_modules/lodash/map.js +0 -53
  1079. package/node_modules/lodash/mapKeys.js +0 -36
  1080. package/node_modules/lodash/mapValues.js +0 -43
  1081. package/node_modules/lodash/matches.js +0 -46
  1082. package/node_modules/lodash/matchesProperty.js +0 -44
  1083. package/node_modules/lodash/math.js +0 -17
  1084. package/node_modules/lodash/max.js +0 -29
  1085. package/node_modules/lodash/maxBy.js +0 -34
  1086. package/node_modules/lodash/mean.js +0 -22
  1087. package/node_modules/lodash/meanBy.js +0 -31
  1088. package/node_modules/lodash/memoize.js +0 -73
  1089. package/node_modules/lodash/merge.js +0 -39
  1090. package/node_modules/lodash/mergeWith.js +0 -39
  1091. package/node_modules/lodash/method.js +0 -34
  1092. package/node_modules/lodash/methodOf.js +0 -33
  1093. package/node_modules/lodash/min.js +0 -29
  1094. package/node_modules/lodash/minBy.js +0 -34
  1095. package/node_modules/lodash/mixin.js +0 -74
  1096. package/node_modules/lodash/multiply.js +0 -22
  1097. package/node_modules/lodash/negate.js +0 -40
  1098. package/node_modules/lodash/next.js +0 -35
  1099. package/node_modules/lodash/noop.js +0 -17
  1100. package/node_modules/lodash/now.js +0 -23
  1101. package/node_modules/lodash/nth.js +0 -29
  1102. package/node_modules/lodash/nthArg.js +0 -32
  1103. package/node_modules/lodash/number.js +0 -5
  1104. package/node_modules/lodash/object.js +0 -49
  1105. package/node_modules/lodash/omit.js +0 -57
  1106. package/node_modules/lodash/omitBy.js +0 -29
  1107. package/node_modules/lodash/once.js +0 -25
  1108. package/node_modules/lodash/orderBy.js +0 -47
  1109. package/node_modules/lodash/over.js +0 -24
  1110. package/node_modules/lodash/overArgs.js +0 -61
  1111. package/node_modules/lodash/overEvery.js +0 -34
  1112. package/node_modules/lodash/overSome.js +0 -37
  1113. package/node_modules/lodash/package.json +0 -19
  1114. package/node_modules/lodash/pad.js +0 -49
  1115. package/node_modules/lodash/padEnd.js +0 -39
  1116. package/node_modules/lodash/padStart.js +0 -39
  1117. package/node_modules/lodash/parseInt.js +0 -43
  1118. package/node_modules/lodash/partial.js +0 -50
  1119. package/node_modules/lodash/partialRight.js +0 -49
  1120. package/node_modules/lodash/partition.js +0 -43
  1121. package/node_modules/lodash/pick.js +0 -25
  1122. package/node_modules/lodash/pickBy.js +0 -37
  1123. package/node_modules/lodash/plant.js +0 -48
  1124. package/node_modules/lodash/property.js +0 -32
  1125. package/node_modules/lodash/propertyOf.js +0 -30
  1126. package/node_modules/lodash/pull.js +0 -29
  1127. package/node_modules/lodash/pullAll.js +0 -29
  1128. package/node_modules/lodash/pullAllBy.js +0 -33
  1129. package/node_modules/lodash/pullAllWith.js +0 -32
  1130. package/node_modules/lodash/pullAt.js +0 -43
  1131. package/node_modules/lodash/random.js +0 -91
  1132. package/node_modules/lodash/range.js +0 -46
  1133. package/node_modules/lodash/rangeRight.js +0 -41
  1134. package/node_modules/lodash/rearg.js +0 -33
  1135. package/node_modules/lodash/reduce.js +0 -51
  1136. package/node_modules/lodash/reduceRight.js +0 -36
  1137. package/node_modules/lodash/reject.js +0 -46
  1138. package/node_modules/lodash/remove.js +0 -53
  1139. package/node_modules/lodash/repeat.js +0 -37
  1140. package/node_modules/lodash/replace.js +0 -29
  1141. package/node_modules/lodash/rest.js +0 -40
  1142. package/node_modules/lodash/result.js +0 -56
  1143. package/node_modules/lodash/reverse.js +0 -34
  1144. package/node_modules/lodash/round.js +0 -26
  1145. package/node_modules/lodash/sample.js +0 -24
  1146. package/node_modules/lodash/sampleSize.js +0 -37
  1147. package/node_modules/lodash/seq.js +0 -16
  1148. package/node_modules/lodash/set.js +0 -35
  1149. package/node_modules/lodash/setWith.js +0 -32
  1150. package/node_modules/lodash/shuffle.js +0 -25
  1151. package/node_modules/lodash/size.js +0 -46
  1152. package/node_modules/lodash/slice.js +0 -37
  1153. package/node_modules/lodash/snakeCase.js +0 -28
  1154. package/node_modules/lodash/some.js +0 -51
  1155. package/node_modules/lodash/sortBy.js +0 -48
  1156. package/node_modules/lodash/sortedIndex.js +0 -24
  1157. package/node_modules/lodash/sortedIndexBy.js +0 -33
  1158. package/node_modules/lodash/sortedIndexOf.js +0 -31
  1159. package/node_modules/lodash/sortedLastIndex.js +0 -25
  1160. package/node_modules/lodash/sortedLastIndexBy.js +0 -33
  1161. package/node_modules/lodash/sortedLastIndexOf.js +0 -31
  1162. package/node_modules/lodash/sortedUniq.js +0 -24
  1163. package/node_modules/lodash/sortedUniqBy.js +0 -26
  1164. package/node_modules/lodash/split.js +0 -52
  1165. package/node_modules/lodash/spread.js +0 -63
  1166. package/node_modules/lodash/startCase.js +0 -29
  1167. package/node_modules/lodash/startsWith.js +0 -39
  1168. package/node_modules/lodash/string.js +0 -33
  1169. package/node_modules/lodash/stubArray.js +0 -23
  1170. package/node_modules/lodash/stubFalse.js +0 -18
  1171. package/node_modules/lodash/stubObject.js +0 -23
  1172. package/node_modules/lodash/stubString.js +0 -18
  1173. package/node_modules/lodash/stubTrue.js +0 -18
  1174. package/node_modules/lodash/subtract.js +0 -22
  1175. package/node_modules/lodash/sum.js +0 -24
  1176. package/node_modules/lodash/sumBy.js +0 -33
  1177. package/node_modules/lodash/tail.js +0 -22
  1178. package/node_modules/lodash/take.js +0 -37
  1179. package/node_modules/lodash/takeRight.js +0 -39
  1180. package/node_modules/lodash/takeRightWhile.js +0 -45
  1181. package/node_modules/lodash/takeWhile.js +0 -45
  1182. package/node_modules/lodash/tap.js +0 -29
  1183. package/node_modules/lodash/template.js +0 -284
  1184. package/node_modules/lodash/templateSettings.js +0 -71
  1185. package/node_modules/lodash/throttle.js +0 -69
  1186. package/node_modules/lodash/thru.js +0 -28
  1187. package/node_modules/lodash/times.js +0 -51
  1188. package/node_modules/lodash/toArray.js +0 -58
  1189. package/node_modules/lodash/toFinite.js +0 -42
  1190. package/node_modules/lodash/toInteger.js +0 -36
  1191. package/node_modules/lodash/toIterator.js +0 -23
  1192. package/node_modules/lodash/toJSON.js +0 -1
  1193. package/node_modules/lodash/toLength.js +0 -38
  1194. package/node_modules/lodash/toLower.js +0 -28
  1195. package/node_modules/lodash/toNumber.js +0 -64
  1196. package/node_modules/lodash/toPairs.js +0 -30
  1197. package/node_modules/lodash/toPairsIn.js +0 -30
  1198. package/node_modules/lodash/toPath.js +0 -33
  1199. package/node_modules/lodash/toPlainObject.js +0 -32
  1200. package/node_modules/lodash/toSafeInteger.js +0 -37
  1201. package/node_modules/lodash/toString.js +0 -28
  1202. package/node_modules/lodash/toUpper.js +0 -28
  1203. package/node_modules/lodash/transform.js +0 -65
  1204. package/node_modules/lodash/trim.js +0 -47
  1205. package/node_modules/lodash/trimEnd.js +0 -41
  1206. package/node_modules/lodash/trimStart.js +0 -43
  1207. package/node_modules/lodash/truncate.js +0 -111
  1208. package/node_modules/lodash/unary.js +0 -22
  1209. package/node_modules/lodash/unescape.js +0 -34
  1210. package/node_modules/lodash/union.js +0 -26
  1211. package/node_modules/lodash/unionBy.js +0 -39
  1212. package/node_modules/lodash/unionWith.js +0 -34
  1213. package/node_modules/lodash/uniq.js +0 -25
  1214. package/node_modules/lodash/uniqBy.js +0 -31
  1215. package/node_modules/lodash/uniqWith.js +0 -28
  1216. package/node_modules/lodash/uniqueId.js +0 -28
  1217. package/node_modules/lodash/unset.js +0 -34
  1218. package/node_modules/lodash/unzip.js +0 -45
  1219. package/node_modules/lodash/unzipWith.js +0 -39
  1220. package/node_modules/lodash/update.js +0 -35
  1221. package/node_modules/lodash/updateWith.js +0 -33
  1222. package/node_modules/lodash/upperCase.js +0 -27
  1223. package/node_modules/lodash/upperFirst.js +0 -22
  1224. package/node_modules/lodash/util.js +0 -34
  1225. package/node_modules/lodash/value.js +0 -1
  1226. package/node_modules/lodash/valueOf.js +0 -1
  1227. package/node_modules/lodash/values.js +0 -34
  1228. package/node_modules/lodash/valuesIn.js +0 -32
  1229. package/node_modules/lodash/without.js +0 -31
  1230. package/node_modules/lodash/words.js +0 -35
  1231. package/node_modules/lodash/wrap.js +0 -30
  1232. package/node_modules/lodash/wrapperAt.js +0 -48
  1233. package/node_modules/lodash/wrapperChain.js +0 -34
  1234. package/node_modules/lodash/wrapperLodash.js +0 -147
  1235. package/node_modules/lodash/wrapperReverse.js +0 -44
  1236. package/node_modules/lodash/wrapperValue.js +0 -21
  1237. package/node_modules/lodash/xor.js +0 -28
  1238. package/node_modules/lodash/xorBy.js +0 -39
  1239. package/node_modules/lodash/xorWith.js +0 -34
  1240. package/node_modules/lodash/zip.js +0 -22
  1241. package/node_modules/lodash/zipObject.js +0 -24
  1242. package/node_modules/lodash/zipObjectDeep.js +0 -23
  1243. package/node_modules/lodash/zipWith.js +0 -32
  1244. package/node_modules/pptxgenjs/dist/pptxgen.bundle.js +0 -96
  1245. package/node_modules/pptxgenjs/dist/pptxgen.bundle.js.map +0 -1
  1246. package/node_modules/xlsx-populate/browser/xlsx-populate-no-encryption.js +0 -44482
  1247. package/node_modules/xlsx-populate/browser/xlsx-populate-no-encryption.min.js +0 -2
  1248. package/node_modules/xlsx-populate/browser/xlsx-populate-no-encryption.min.js.map +0 -1
  1249. package/node_modules/xlsx-populate/browser/xlsx-populate.js +0 -63193
  1250. package/node_modules/xlsx-populate/browser/xlsx-populate.min.js +0 -2
  1251. package/node_modules/xlsx-populate/browser/xlsx-populate.min.js.map +0 -1
  1252. package/node_modules/xlsx-populate/examples/basic/index.js +0 -14
  1253. package/node_modules/xlsx-populate/examples/basic/out.xlsx +0 -0
  1254. package/node_modules/xlsx-populate/examples/browser/index.html +0 -127
  1255. package/node_modules/xlsx-populate/examples/encryption/in.xlsx +0 -0
  1256. package/node_modules/xlsx-populate/examples/encryption/index.js +0 -14
  1257. package/node_modules/xlsx-populate/examples/encryption/out.xlsx +0 -0
  1258. package/node_modules/xlsx-populate/examples/ranges/index.js +0 -22
  1259. package/node_modules/xlsx-populate/examples/ranges/out.xlsx +0 -0
  1260. package/node_modules/xlsx-populate/examples/ranges/template.xlsx +0 -0
  1261. package/node_modules/xlsx-populate/examples/styles/index.js +0 -156
  1262. package/node_modules/xlsx-populate/examples/styles/out.xlsx +0 -0
  1263. package/src/workflow/qa-automation/browser_container_agent.js +0 -269
  1264. package/src/workflow/qa-automation/browser_session_manager.js +0 -399
  1265. package/src/workflow/qa-automation/browser_workspace_security.js +0 -162
@@ -1,2 +1,2 @@
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,V as m,Z as h,_t as g,a as _,ct as v,et as y,f as b,ft as x,i as S,it as C,l as w,lt as T,nt as E,ot as D,p as O,pt as k,rt as A,st as j,t as M,tt as N,u as P,z as F}from"../chunks/C5rL-2rZ.js";import{t as I}from"../chunks/CMfYCyHI.js";import{t as L}from"../chunks/DVDyaR1u.js";import{t as R}from"../chunks/DExkVRiT.js";import{t as z}from"../chunks/KBylTpfW.js";import"../chunks/BRFppjEf.js";import{t as B}from"../chunks/KQlRtB_5.js";var V=i(`<option> </option>`),H=i(`<div role="presentation" class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-[var(--theme-overlay)] 40 backdrop-blur-md animate-in fade-in duration-150"><div class="modal-card modal-3d relative w-full max-w-lg max-h-[90vh] overflow-y-auto rounded-[3px] p-6 sm:p-8 border shadow-2xl space-y-6 glass-frost-strong animate-in zoom-in-95 duration-150" 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="M12 4v16m8-8H4"></path></svg></div> <h3 class="text-base font-bold" style="color: var(--color-text);">Add Persona Memory</h3></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"><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"><div class="grid grid-cols-2 gap-4"><div><label for="agent-select" class="block text-xs font-bold theme-text mb-1">Target Agent</label> <select id="agent-select" class="w-full px-3 py-2 rounded-[3px] text-xs font-semibold theme-text border theme-border-strong-b theme-bg-surface login-field-effect input-theme"></select></div> <div><label for="memory-type-select" class="block text-xs font-bold theme-text mb-1">Memory Type</label> <select id="memory-type-select" class="w-full px-3 py-2 rounded-[3px] text-xs font-semibold theme-text border theme-border-strong-b theme-bg-surface login-field-effect input-theme"><option>Rule (Strict Mandate)</option><option>Episodic (Learning / Incident)</option><option>Fact (System Knowledge)</option><option>Preference (User Style)</option></select></div></div> <div><label for="memory-title-input" class="block text-xs font-bold theme-text mb-1">Title (Optional)</label> <input id="memory-title-input" type="text" placeholder="e.g. Always enforce Pure Light mode" class="w-full px-3 py-2 rounded-[3px] text-xs font-semibold theme-text border theme-border-strong-b theme-bg-surface login-field-effect input-theme"/></div> <div><label for="memory-content-input" class="block text-xs font-bold theme-text mb-1">Memory Content</label> <textarea id="memory-content-input" rows="4" placeholder="Specific instruction, rule, pattern, or constraint to permanently remember..." class="w-full px-3 py-2 rounded-[3px] text-xs font-semibold theme-text border theme-border-strong-b theme-bg-surface login-field-effect input-theme"></textarea></div> <div><label for="memory-tags-input" class="block text-xs font-bold theme-text mb-1">Tags (Comma-separated)</label> <input id="memory-tags-input" type="text" placeholder="ui, theme, accessibility" class="w-full px-3 py-2 rounded-[3px] text-xs font-semibold theme-text border theme-border-strong-b theme-bg-surface login-field-effect input-theme"/></div></div> <div class="flex items-center justify-end gap-3 pt-4 border-t theme-border"><button type="button" class="btn-3d btn-3d-secondary px-4 py-2 rounded-xl text-xs font-bold cursor-pointer">Cancel</button> <button type="button" class="btn-3d btn-3d-primary px-5 py-2 rounded-xl text-xs font-bold text-white shadow-md cursor-pointer">Save Memory</button></div></div></div>`);function U(i,o){T(o,!0);let c=M(o,`newMemory`,15),m=M(o,`agents`,19,()=>[]),h=M(o,`open`,3,!1);var g=r(),b=e(g),x=e=>{var r=H(),i=u(r),f=u(i),h=N(u(f),2);k(f);var g=N(f,2),v=u(g),b=u(v),x=N(u(b),2);d(x,21,()=>m().filter(e=>e.id),n,(e,t)=>{var n=V(),r=y(n),i={};a(()=>{s(r,`${p(t).name??``}${p(t).title?` (${p(t).title})`:``}`),i!==(i=p(t).id)&&(n.value=(n.__value=i)??``)}),l(e,n)}),k(x),P(x),k(b);var C=N(b,2),T=N(u(C),2),E=u(T);E.value=E.__value=`rule`;var D=N(E);D.value=D.__value=`episodic`;var O=N(D);O.value=O.__value=`fact`;var A=N(O);A.value=A.__value=`preference`,k(T),P(T),k(C),k(v);var M=N(v,2),F=N(u(M),2);_(F),k(M);var I=N(M,2),L=N(u(I),2);j(L),k(I);var R=N(I,2),z=N(u(R),2);_(z),k(R),k(g);var B=N(g,2),U=u(B),ee=N(U,2);k(B),k(i),k(r),t(`click`,r,e=>{e.target===e.currentTarget&&o.onclose()}),t(`keydown`,r,e=>{e.key===`Escape`&&o.onclose()}),t(`click`,h,function(...e){o.onclose?.apply(this,e)}),w(x,()=>c().agentName,e=>c(c().agentName=e,!0)),w(T,()=>c().memoryType,e=>c(c().memoryType=e,!0)),S(F,()=>c().title,e=>c(c().title=e,!0)),S(L,()=>c().content,e=>c(c().content=e,!0)),S(z,()=>c().tags,e=>c(c().tags=e,!0)),t(`click`,U,function(...e){o.onclose?.apply(this,e)}),t(`click`,ee,function(...e){o.onsubmit?.apply(this,e)}),l(e,r)};f(b,e=>{h()&&e(x)}),l(i,g),v()}F([`click`,`keydown`]);var ee=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="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"></path></svg>`),te=i(`<button type="button" class="btn-3d inline-flex items-center gap-2 px-4 py-2.5 rounded-[3px] font-bold text-xs badge-status badge-status-danger hover:bg-status-danger-soft transition-all cursor-pointer shadow-sm" title="Prune episodic memories"><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> <span>Prune Memories</span></button> <button type="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"><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.5" d="M12 4v16m8-8H4"></path></svg> <span>Add Memory</span></button>`,1),ne=i(`<div class="relative z-10 flex items-center gap-2 mt-4 pt-4 border-t theme-border/60 w-full"><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="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg> <span> </span></button> <button type="button"><svg fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343A7.975 7.975 0 0120 13a7.975 7.975 0 01-2.343 5.657z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.879 16.121A3 3 0 1012.015 11L11 14H9c0 .768.293 1.536.879 2.121z"></path></svg> <span>Ninja's Soul</span></button></div>`),re=i(`<button type="button"> </button>`),ie=i(`<div class="p-4 rounded-[3px] border badge-status badge-status-danger text-xs font-semibold"> </div>`),ae=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 persona memories...</span></div></div>`),oe=i(`<div class="metric-card-3d p-12 text-center rounded-[3px] border border-dashed theme-border-strong-b" style="border-color: var(--color-border);"><p class="text-sm font-bold theme-text">No persona memories found.</p> <p class="text-xs font-semibold theme-text-secondary mt-1">Use the "Add Memory" button to save rules or learnings.</p></div>`),se=i(`<h4 class="text-sm font-extrabold theme-text tracking-tight"> </h4>`),ce=i(`<span class="theme-text-muted font-mono"> </span>`),le=i(`<div class="metric-card-3d rounded-[5px] p-5 border flex flex-col justify-between" style="border-color: color-mix(in srgb, var(--theme-grad-2) 28%, var(--color-border));"><div class="space-y-3"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><span class="px-2.5 py-0.5 rounded-[3px] text-[11px] font-bold border badge-status badge-status-info"> </span> <span class="px-2 py-0.5 rounded-[3px] text-[10px] font-extrabold uppercase border theme-bg-subtle theme-text theme-border"> </span></div> <button type="button" class="btn-3d p-1.5 rounded-[3px] theme-text-muted hover:text-[var(--theme-danger)] hover:bg-status-danger-soft border-transparent hover:border-status-danger-soft transition-all cursor-pointer" title="Delete memory" aria-label="Delete memory"><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> <!> <p class="text-xs font-semibold theme-text leading-relaxed whitespace-pre-wrap break-words"> </p></div> <div class="mt-4 pt-3 border-t theme-border flex items-center justify-between text-[10px] font-semibold theme-text-secondary"><span> </span> <!></div></div>`),ue=i(`<div class="grid grid-cols-1 md:grid-cols-2 gap-5"></div>`),de=i(`<div class="metric-card-3d rounded-[5px] p-5 border space-y-4" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><div class="flex flex-col md:flex-row gap-4 items-stretch md:items-center justify-between"><div class="flex items-center gap-1.5 overflow-x-auto pb-2 md:pb-0 scrollbar-none"></div> <div class="relative w-full md:w-72"><input type="text" placeholder="Search memories..." class="w-full pl-9 pr-4 py-2 rounded-[3px] text-xs font-semibold theme-text border transition-all login-field-effect input-theme" style="background-color: var(--color-surface); color: var(--color-text);"/> <svg class="w-4 h-4 absolute left-3 top-2.5 theme-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></div></div> <div class="flex items-center gap-1.5 overflow-x-auto pb-1 scrollbar-none text-xs font-semibold"><span class="theme-text-muted text-[11px] font-bold mr-1 uppercase tracking-wider">Type:</span> <!></div></div> <!> <!>`,1),fe=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's Soul doctrine...</span></div></div>`),pe=i(`<div class="p-3 rounded-[3px] border badge-status badge-status-warning text-xs font-semibold flex items-center justify-between"><span> </span> <button type="button" class="underline text-status-warning cursor-pointer font-bold">Retry</button></div>`),me=i(`<span class="px-1.5 py-0.5 rounded-[3px] text-[9px] font-black uppercase badge-status badge-status-warning shrink-0">i-have-adhd</span>`),he=i(`<div class="metric-card-3d rounded-[5px] p-5 border flex flex-col justify-between space-y-3" style="border-color: color-mix(in srgb, var(--theme-grad-2) 28%, var(--color-border));"><div class="space-y-2"><div class="flex items-center gap-2"><span class="w-6 h-6 rounded-[3px] flex items-center justify-center text-xs font-black text-white shrink-0 shadow-xs" style="background: var(--theme-4gradient);"></span> <h4 class="text-xs font-black theme-text truncate"> </h4> <!></div> <p class="text-xs font-semibold theme-text-secondary leading-relaxed pl-8"> </p></div></div>`),ge=i(`<div class="space-y-1"><span class="text-[10px] font-extrabold uppercase tracking-wider theme-text-muted">Sacred Calling</span> <p class="text-xs font-semibold theme-text-secondary leading-normal"> </p></div>`),_e=i(`<div class="space-y-1 p-2.5 rounded-[3px] bg-status-warning-soft/60 border badge-statuswarning-soft/80"><span class="text-[10px] font-extrabold uppercase tracking-wider text-status-warning flex items-center gap-1"><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="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <span>ADHD Shaping (i-have-adhd)</span></span> <p class="text-[11px] font-semibold theme-text-secondary leading-normal"> </p></div>`),ve=i(`<span class="px-2 py-0.5 rounded-[3px] text-[10px] font-bold border theme-bg-surface badge-status badge-status-info shadow-xs"> </span>`),ye=i(`<div class="space-y-1.5 p-2.5 rounded-[3px] bg-status-info-soft/60 border badge-statusinfo-soft/80"><span class="text-[10px] font-extrabold uppercase tracking-wider text-action-primary flex items-center gap-1"><svg class="w-3 h-3 text-action-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span>Anti-Slop Skills</span></span> <div class="flex flex-wrap gap-1.5 pt-0.5"></div></div>`),be=i(`<div class="metric-card-3d rounded-[5px] p-5 border flex flex-col justify-between space-y-4" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><div class="space-y-3"><div class="flex items-center justify-between gap-2 border-b theme-border-subtle pb-2"><div class="flex items-center gap-2.5"><div class="w-8 h-8 rounded-[3px] flex items-center justify-center shadow-xs text-white shrink-0" style="background: var(--theme-4gradient);"><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="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> <h4 class="text-sm font-black theme-text"> </h4></div> <span class="px-2 py-0.5 rounded-[3px] text-[10px] font-extrabold uppercase border badge-status badge-status-info"> </span></div> <p class="text-xs font-bold theme-text-secondary"> </p> <div class="p-3 rounded-[3px] theme-bg-muted border theme-border/80"><p class="text-[11px] font-medium italic theme-text leading-relaxed"> </p></div> <!> <!> <!></div> <div class="pt-3 border-t theme-border-subtle flex items-center justify-between text-[10px] font-semibold theme-text-muted"><span>Archetype Spirit</span> <span class="text-status-success font-bold flex items-center gap-1"><svg class="w-3 h-3 text-[var(--theme-success)]" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg> <span>Active</span></span></div></div>`),xe=i(`<!> <div class="metric-card-3d rounded-[5px] p-6 sm:p-8 border space-y-4" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><div class="flex items-center gap-2 text-xs font-black tracking-wider uppercase text-status-warning"><svg class="w-4 h-4 text-status-warning shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343A7.975 7.975 0 0120 13a7.975 7.975 0 01-2.343 5.657z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.879 16.121A3 3 0 1012.015 11L11 14H9c0 .768.293 1.536.879 2.121z"></path></svg> <span class="font-black tracking-wide text-status-warning">Konohagakure Core Doctrine — Ninja's Soul</span></div> <blockquote class="text-base sm:text-lg italic border-l-4 pl-4 py-1 leading-relaxed theme-text" style="border-color: var(--color-primary, var(--theme-focus));"> </blockquote> <p class="text-xs font-semibold theme-text-secondary leading-relaxed">Ninja's Soul is the unyielding philosophy binding every Ninja agent in Konohagakure.
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,V as m,Z as h,_t as g,a as _,ct as v,et as y,f as b,ft as x,i as S,it as C,l as w,lt as T,nt as E,ot as D,p as O,pt as k,rt as A,st as j,t as M,tt as N,u as P,z as F}from"../chunks/C5rL-2rZ.js";import{t as I}from"../chunks/CMfYCyHI.js";import{t as L}from"../chunks/DVDyaR1u.js";import{t as R}from"../chunks/DExkVRiT.js";import{t as z}from"../chunks/DuefosH7.js";import"../chunks/BRFppjEf.js";import{t as B}from"../chunks/KQlRtB_5.js";var V=i(`<option> </option>`),H=i(`<div role="presentation" class="fixed inset-0 z-50 flex items-center justify-center p-4 bg-[var(--theme-overlay)] 40 backdrop-blur-md animate-in fade-in duration-150"><div class="modal-card modal-3d relative w-full max-w-lg max-h-[90vh] overflow-y-auto rounded-[3px] p-6 sm:p-8 border shadow-2xl space-y-6 glass-frost-strong animate-in zoom-in-95 duration-150" 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="M12 4v16m8-8H4"></path></svg></div> <h3 class="text-base font-bold" style="color: var(--color-text);">Add Persona Memory</h3></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"><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"><div class="grid grid-cols-2 gap-4"><div><label for="agent-select" class="block text-xs font-bold theme-text mb-1">Target Agent</label> <select id="agent-select" class="w-full px-3 py-2 rounded-[3px] text-xs font-semibold theme-text border theme-border-strong-b theme-bg-surface login-field-effect input-theme"></select></div> <div><label for="memory-type-select" class="block text-xs font-bold theme-text mb-1">Memory Type</label> <select id="memory-type-select" class="w-full px-3 py-2 rounded-[3px] text-xs font-semibold theme-text border theme-border-strong-b theme-bg-surface login-field-effect input-theme"><option>Rule (Strict Mandate)</option><option>Episodic (Learning / Incident)</option><option>Fact (System Knowledge)</option><option>Preference (User Style)</option></select></div></div> <div><label for="memory-title-input" class="block text-xs font-bold theme-text mb-1">Title (Optional)</label> <input id="memory-title-input" type="text" placeholder="e.g. Always enforce Pure Light mode" class="w-full px-3 py-2 rounded-[3px] text-xs font-semibold theme-text border theme-border-strong-b theme-bg-surface login-field-effect input-theme"/></div> <div><label for="memory-content-input" class="block text-xs font-bold theme-text mb-1">Memory Content</label> <textarea id="memory-content-input" rows="4" placeholder="Specific instruction, rule, pattern, or constraint to permanently remember..." class="w-full px-3 py-2 rounded-[3px] text-xs font-semibold theme-text border theme-border-strong-b theme-bg-surface login-field-effect input-theme"></textarea></div> <div><label for="memory-tags-input" class="block text-xs font-bold theme-text mb-1">Tags (Comma-separated)</label> <input id="memory-tags-input" type="text" placeholder="ui, theme, accessibility" class="w-full px-3 py-2 rounded-[3px] text-xs font-semibold theme-text border theme-border-strong-b theme-bg-surface login-field-effect input-theme"/></div></div> <div class="flex items-center justify-end gap-3 pt-4 border-t theme-border"><button type="button" class="btn-3d btn-3d-secondary px-4 py-2 rounded-xl text-xs font-bold cursor-pointer">Cancel</button> <button type="button" class="btn-3d btn-3d-primary px-5 py-2 rounded-xl text-xs font-bold text-white shadow-md cursor-pointer">Save Memory</button></div></div></div>`);function U(i,o){T(o,!0);let c=M(o,`newMemory`,15),m=M(o,`agents`,19,()=>[]),h=M(o,`open`,3,!1);var g=r(),b=e(g),x=e=>{var r=H(),i=u(r),f=u(i),h=N(u(f),2);k(f);var g=N(f,2),v=u(g),b=u(v),x=N(u(b),2);d(x,21,()=>m().filter(e=>e.id),n,(e,t)=>{var n=V(),r=y(n),i={};a(()=>{s(r,`${p(t).name??``}${p(t).title?` (${p(t).title})`:``}`),i!==(i=p(t).id)&&(n.value=(n.__value=i)??``)}),l(e,n)}),k(x),P(x),k(b);var C=N(b,2),T=N(u(C),2),E=u(T);E.value=E.__value=`rule`;var D=N(E);D.value=D.__value=`episodic`;var O=N(D);O.value=O.__value=`fact`;var A=N(O);A.value=A.__value=`preference`,k(T),P(T),k(C),k(v);var M=N(v,2),F=N(u(M),2);_(F),k(M);var I=N(M,2),L=N(u(I),2);j(L),k(I);var R=N(I,2),z=N(u(R),2);_(z),k(R),k(g);var B=N(g,2),U=u(B),ee=N(U,2);k(B),k(i),k(r),t(`click`,r,e=>{e.target===e.currentTarget&&o.onclose()}),t(`keydown`,r,e=>{e.key===`Escape`&&o.onclose()}),t(`click`,h,function(...e){o.onclose?.apply(this,e)}),w(x,()=>c().agentName,e=>c(c().agentName=e,!0)),w(T,()=>c().memoryType,e=>c(c().memoryType=e,!0)),S(F,()=>c().title,e=>c(c().title=e,!0)),S(L,()=>c().content,e=>c(c().content=e,!0)),S(z,()=>c().tags,e=>c(c().tags=e,!0)),t(`click`,U,function(...e){o.onclose?.apply(this,e)}),t(`click`,ee,function(...e){o.onsubmit?.apply(this,e)}),l(e,r)};f(b,e=>{h()&&e(x)}),l(i,g),v()}F([`click`,`keydown`]);var ee=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="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"></path></svg>`),te=i(`<button type="button" class="btn-3d inline-flex items-center gap-2 px-4 py-2.5 rounded-[3px] font-bold text-xs badge-status badge-status-danger hover:bg-status-danger-soft transition-all cursor-pointer shadow-sm" title="Prune episodic memories"><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> <span>Prune Memories</span></button> <button type="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"><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.5" d="M12 4v16m8-8H4"></path></svg> <span>Add Memory</span></button>`,1),ne=i(`<div class="relative z-10 flex items-center gap-2 mt-4 pt-4 border-t theme-border/60 w-full"><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="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg> <span> </span></button> <button type="button"><svg fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343A7.975 7.975 0 0120 13a7.975 7.975 0 01-2.343 5.657z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.879 16.121A3 3 0 1012.015 11L11 14H9c0 .768.293 1.536.879 2.121z"></path></svg> <span>Ninja's Soul</span></button></div>`),re=i(`<button type="button"> </button>`),ie=i(`<div class="p-4 rounded-[3px] border badge-status badge-status-danger text-xs font-semibold"> </div>`),ae=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 persona memories...</span></div></div>`),oe=i(`<div class="metric-card-3d p-12 text-center rounded-[3px] border border-dashed theme-border-strong-b" style="border-color: var(--color-border);"><p class="text-sm font-bold theme-text">No persona memories found.</p> <p class="text-xs font-semibold theme-text-secondary mt-1">Use the "Add Memory" button to save rules or learnings.</p></div>`),se=i(`<h4 class="text-sm font-extrabold theme-text tracking-tight"> </h4>`),ce=i(`<span class="theme-text-muted font-mono"> </span>`),le=i(`<div class="metric-card-3d rounded-[5px] p-5 border flex flex-col justify-between" style="border-color: color-mix(in srgb, var(--theme-grad-2) 28%, var(--color-border));"><div class="space-y-3"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><span class="px-2.5 py-0.5 rounded-[3px] text-[11px] font-bold border badge-status badge-status-info"> </span> <span class="px-2 py-0.5 rounded-[3px] text-[10px] font-extrabold uppercase border theme-bg-subtle theme-text theme-border"> </span></div> <button type="button" class="btn-3d p-1.5 rounded-[3px] theme-text-muted hover:text-[var(--theme-danger)] hover:bg-status-danger-soft border-transparent hover:border-status-danger-soft transition-all cursor-pointer" title="Delete memory" aria-label="Delete memory"><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> <!> <p class="text-xs font-semibold theme-text leading-relaxed whitespace-pre-wrap break-words"> </p></div> <div class="mt-4 pt-3 border-t theme-border flex items-center justify-between text-[10px] font-semibold theme-text-secondary"><span> </span> <!></div></div>`),ue=i(`<div class="grid grid-cols-1 md:grid-cols-2 gap-5"></div>`),de=i(`<div class="metric-card-3d rounded-[5px] p-5 border space-y-4" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><div class="flex flex-col md:flex-row gap-4 items-stretch md:items-center justify-between"><div class="flex items-center gap-1.5 overflow-x-auto pb-2 md:pb-0 scrollbar-none"></div> <div class="relative w-full md:w-72"><input type="text" placeholder="Search memories..." class="w-full pl-9 pr-4 py-2 rounded-[3px] text-xs font-semibold theme-text border transition-all login-field-effect input-theme" style="background-color: var(--color-surface); color: var(--color-text);"/> <svg class="w-4 h-4 absolute left-3 top-2.5 theme-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></div></div> <div class="flex items-center gap-1.5 overflow-x-auto pb-1 scrollbar-none text-xs font-semibold"><span class="theme-text-muted text-[11px] font-bold mr-1 uppercase tracking-wider">Type:</span> <!></div></div> <!> <!>`,1),fe=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's Soul doctrine...</span></div></div>`),pe=i(`<div class="p-3 rounded-[3px] border badge-status badge-status-warning text-xs font-semibold flex items-center justify-between"><span> </span> <button type="button" class="underline text-status-warning cursor-pointer font-bold">Retry</button></div>`),me=i(`<span class="px-1.5 py-0.5 rounded-[3px] text-[9px] font-black uppercase badge-status badge-status-warning shrink-0">i-have-adhd</span>`),he=i(`<div class="metric-card-3d rounded-[5px] p-5 border flex flex-col justify-between space-y-3" style="border-color: color-mix(in srgb, var(--theme-grad-2) 28%, var(--color-border));"><div class="space-y-2"><div class="flex items-center gap-2"><span class="w-6 h-6 rounded-[3px] flex items-center justify-center text-xs font-black text-white shrink-0 shadow-xs" style="background: var(--theme-4gradient);"></span> <h4 class="text-xs font-black theme-text truncate"> </h4> <!></div> <p class="text-xs font-semibold theme-text-secondary leading-relaxed pl-8"> </p></div></div>`),ge=i(`<div class="space-y-1"><span class="text-[10px] font-extrabold uppercase tracking-wider theme-text-muted">Sacred Calling</span> <p class="text-xs font-semibold theme-text-secondary leading-normal"> </p></div>`),_e=i(`<div class="space-y-1 p-2.5 rounded-[3px] bg-status-warning-soft/60 border badge-statuswarning-soft/80"><span class="text-[10px] font-extrabold uppercase tracking-wider text-status-warning flex items-center gap-1"><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="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <span>ADHD Shaping (i-have-adhd)</span></span> <p class="text-[11px] font-semibold theme-text-secondary leading-normal"> </p></div>`),ve=i(`<span class="px-2 py-0.5 rounded-[3px] text-[10px] font-bold border theme-bg-surface badge-status badge-status-info shadow-xs"> </span>`),ye=i(`<div class="space-y-1.5 p-2.5 rounded-[3px] bg-status-info-soft/60 border badge-statusinfo-soft/80"><span class="text-[10px] font-extrabold uppercase tracking-wider text-action-primary flex items-center gap-1"><svg class="w-3 h-3 text-action-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span>Anti-Slop Skills</span></span> <div class="flex flex-wrap gap-1.5 pt-0.5"></div></div>`),be=i(`<div class="metric-card-3d rounded-[5px] p-5 border flex flex-col justify-between space-y-4" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><div class="space-y-3"><div class="flex items-center justify-between gap-2 border-b theme-border-subtle pb-2"><div class="flex items-center gap-2.5"><div class="w-8 h-8 rounded-[3px] flex items-center justify-center shadow-xs text-white shrink-0" style="background: var(--theme-4gradient);"><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="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> <h4 class="text-sm font-black theme-text"> </h4></div> <span class="px-2 py-0.5 rounded-[3px] text-[10px] font-extrabold uppercase border badge-status badge-status-info"> </span></div> <p class="text-xs font-bold theme-text-secondary"> </p> <div class="p-3 rounded-[3px] theme-bg-muted border theme-border/80"><p class="text-[11px] font-medium italic theme-text leading-relaxed"> </p></div> <!> <!> <!></div> <div class="pt-3 border-t theme-border-subtle flex items-center justify-between text-[10px] font-semibold theme-text-muted"><span>Archetype Spirit</span> <span class="text-status-success font-bold flex items-center gap-1"><svg class="w-3 h-3 text-[var(--theme-success)]" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg> <span>Active</span></span></div></div>`),xe=i(`<!> <div class="metric-card-3d rounded-[5px] p-6 sm:p-8 border space-y-4" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><div class="flex items-center gap-2 text-xs font-black tracking-wider uppercase text-status-warning"><svg class="w-4 h-4 text-status-warning shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343A7.975 7.975 0 0120 13a7.975 7.975 0 01-2.343 5.657z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.879 16.121A3 3 0 1012.015 11L11 14H9c0 .768.293 1.536.879 2.121z"></path></svg> <span class="font-black tracking-wide text-status-warning">Konohagakure Core Doctrine — Ninja's Soul</span></div> <blockquote class="text-base sm:text-lg italic border-l-4 pl-4 py-1 leading-relaxed theme-text" style="border-color: var(--color-primary, var(--theme-focus));"> </blockquote> <p class="text-xs font-semibold theme-text-secondary leading-relaxed">Ninja's Soul is the unyielding philosophy binding every Ninja agent in Konohagakure.
2
2
  It commands absolute factual truth, silent deliberation, architectural respect, anti-slop rigor, and zero wasted tokens.</p></div> <div class="metric-card-3d rounded-[5px] p-5 border flex items-start gap-3.5" style="border-color: color-mix(in srgb, var(--theme-grad-3) 28%, var(--color-border));"><div class="w-9 h-9 rounded-[3px] flex items-center justify-center shrink-0 shadow-xs text-white" 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="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></div> <div class="space-y-1 text-xs flex-1"><div class="font-black text-status-warning tracking-wide uppercase flex flex-wrap items-center gap-2"><span>Universal i-have-adhd Doctrine Enforced Across All Souls</span> <span class="px-2 py-0.5 rounded-[3px] text-[10px] font-extrabold uppercase badge-status badge-status-warning">Active in All 7 Spirits</span></div> <p class="font-semibold theme-text-secondary leading-relaxed">Every shinobi subagent response in Konoha is governed by <strong>i-have-adhd</strong> output shaping: leading with the next action first, numbering multi-step tasks, ending with one concrete next step, capping visible lists to 5, and suppressing all conversational fluff.</p></div></div> <div class="space-y-3"><h3 class="text-base font-black theme-text tracking-tight flex items-center gap-2"><svg class="w-4 h-4 text-action-primary" 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>Five Universal Tenets of the Village</span></h3> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"></div></div> <div class="space-y-3"><h3 class="text-base font-black theme-text tracking-tight flex items-center gap-2"><svg class="w-4 h-4 text-action-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="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"></path></svg> <span>Eight Ninja Archetypes &amp; Spirits</span></h3> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5"></div></div>`,1),Se=i(`<div class="space-y-8"><!></div>`),Ce=i(`<div class="space-y-8 w-full"><!> <!> <!></div> <!>`,1);function W(r,i){T(i,!0);let o=C(E([])),w=C(!0),j=C(``),M=C(``),P=C(``),F=C(``),V=C(!1),H=C(E({agentName:`jonin`,title:``,content:``,memoryType:`rule`,tags:``,importance:1})),W=C(E([{id:``,name:`All Agents`,title:``},{id:`jonin`,name:`@jonin`,title:`UI & Frontend`},{id:`anbu`,name:`@anbu`,title:`Backend & DevOps`},{id:`kage`,name:`@kage`,title:`Architecture & Audit`},{id:`chunin`,name:`@chunin`,title:`Research`},{id:`genin`,name:`@genin`,title:`Code Review`},{id:`sannin`,name:`@sannin`,title:`Router`},{id:`tokubetsu-jonin`,name:`@tokubetsu-jonin`,title:`Docs`},{id:`akatsuki`,name:`@akatsuki`,title:`Red-Team, Blue-Team & Gate`},{id:`global`,name:`@global`,title:`All Agents`}]));async function we(){try{let e=await L.get(`/api/v1/agents`);if(Array.isArray(e)&&e.length){let t=e.filter(e=>e.name!==`yamanaka`&&e.id!==`yamanaka`),n=new Set(t.map(e=>e.name)),r=t.map(e=>({id:e.name,name:`@`+e.name,title:e.title||``})).filter(e=>e.id!==`yamanaka`&&e.name!==`@yamanaka`);n.has(`global`)||r.push({id:`global`,name:`@global`,title:`All Agents`}),p(H).agentName!==`yamanaka`&&!n.has(p(H).agentName)&&r.push({id:p(H).agentName,name:`@`+p(H).agentName,title:``}),A(W,[{id:``,name:`All Agents`,title:``},...r.filter(e=>e.id!==`yamanaka`&&e.name!==`@yamanaka`)],!0)}}catch{}}async function G(){A(w,!0),A(j,``);try{let e=`/api/v1/persona?`;p(M)&&(e+=`agent=${encodeURIComponent(p(M))}&`),p(P)&&(e+=`type=${encodeURIComponent(p(P))}&`),p(F).trim()&&(e+=`search=${encodeURIComponent(p(F).trim())}&`);let t=await L.get(e);A(o,t.memories||[],!0)}catch(e){A(j,e.message,!0)}finally{A(w,!1)}}async function Te(){if(!p(H).content.trim())I.warning(`Please provide memory content.`);else try{await L.post(`/api/v1/persona`,p(H)),A(V,!1),p(H).title=``,p(H).content=``,p(H).tags=``,I.success(`Persona memory added successfully!`),await G()}catch(e){I.error(`Save failed: `+e.message)}}async function Ee(e){if(await z({title:`Delete Memory?`,message:`Are you sure you want to permanently delete this persona memory item?`,confirmText:`Delete`,variant:`danger`}))try{await L.delete(`/api/v1/persona/`+e),I.success(`Memory item removed successfully.`),await G()}catch(e){I.error(`Delete failed: `+e.message)}}async function De(){if(!p(o)||p(o).length===0){I.info(`There are no persona memories to prune.`);return}let e=p(M)?`for @${p(M)}`:`across all agents`;if(await z({title:`Prune Persona Memories?`,message:`Are you sure you want to prune persona memories ${e}?`,confirmText:`Prune`,variant:`danger`}))try{let e=p(M)?{agentName:p(M)}:{},t=await L.post(`/api/v1/persona/prune`,e);I.success(`Successfully pruned ${t.deleted||0} memory item(s).`),await G()}catch(e){I.error(`Prune failed: `+e.message)}}let Oe={title:`The Soul of Konoha: Ninja's Soul`,will_of_fire:`Where tree leaves dance, one shall find flames. The fire's shadow will illuminate the village, and once again, tree leaves shall bud anew.`,universal_adhd_standard:`i-have-adhd (Lead with next action, numbered tasks, end with one concrete step, cap visible lists to 5, matter-of-fact errors, zero filler)`,tenets:[{name:`Factual Rigor & Absolute Truth`,summary:`Never lie. Claim success only with verified terminal evidence.`},{name:`Silent Depth & Mandatory ADHD Shaping`,summary:`Zero monologue leaks. Enforce i-have-adhd across all turn responses: lead with action, numbered steps, cap lists to 5, zero filler.`},{name:`Sanctity of Existing Architecture`,summary:`Protect working code. Never modify unrequested logic.`},{name:`Anti-Slop as a Moral Duty`,summary:`Reject generic AI boilerplate, robotic pleasantries, and visual clichés.`},{name:`Tactical Token Hygiene`,summary:`Zero wasted movement. Bounded file reading and symbol search.`}],archetypes:{sannin:{name:`Sannin`,role:`The Grand Tactician (Router)`,voice:`The battlefield is clear. Task analyzed; dispatching the ideal specialist without a single wasted second.`,calling:`Instant task classification, domain triage, subagent dispatch, and token-safe structured arguments.`,antislop_skills:[`antislop`],adhd_shaping:`Lead with routing verdict, numbered triage steps (max 3), cap delegation to 1 specialist, zero fluff.`},kage:{name:`Kage`,role:`The Sovereign Guardian (Village Leader)`,voice:`Zero defects permitted past the village gates. 100/100 anti-slop score and ≥ 98% confidence verified before delivery.`,calling:`Architectural oversight, supply chain audit, Zero-AI-Slop gate enforcement, and final delivery approval.`,antislop_skills:[`antislop`,`antislop-code`,`antislop-human`],adhd_shaping:`Lead with pass/fail verdict and score, numbered verification categories, matter-of-fact confidence reporting.`},jonin:{name:`Jonin`,role:`The Elite Artisan (Frontend Master)`,voice:`Every pixel must breathe. Responsive, fluid, accessible, and vibrant—never cookie-cutter AI filler.`,calling:`Next.js, SvelteKit, Nuxt, Angular, Tailwind CSS v4, WebGL/3D, and fluid motion.`,antislop_skills:[`antislop`,`antislop-code`,`antislop-human`,`antislop-ui`,`antislop-layoutmobile`],adhd_shaping:`Lead with UI action/file path, numbered component steps, cap visible options to 5, end with build check.`},anbu:{name:`Anbu`,role:`The Covert Specialist (Backend, DevOps & Bug Fixing)`,voice:`The pipes are silent, the connections pooled, and the boundaries hardened. Systems don't break on my watch.`,calling:`Node/Bun/Python/Go backends, databases, distributed caching, Docker/K8s/Terraform, and local security hardening.`,antislop_skills:[`antislop`,`antislop-code`,`antislop-human`],adhd_shaping:`Lead with exact command/patch, numbered backend steps, calm error reporting, make system wins visible.`},genin:{name:`Genin`,role:`The Non-Destructive Scout (Explorer)`,voice:`Trail mapped. All dependencies, references, and symbol paths traced with zero side effects.`,calling:`Read-only codebase exploration, AST symbol tracing, dependency graphing, and blast-radius analysis.`,antislop_skills:[`antislop`,`antislop-code`,`antislop-human`],adhd_shaping:`Lead with exploration entry point, numbered discovery trace, cap symbol lists to 5, zero side effects.`},chunin:{name:`Chunin`,role:`The Empirical Scholar (Intel Ninja)`,voice:`Every assertion backed by primary documentation. Citations verified against ground truth.`,calling:`Autonomous technical research, library documentation synthesis, and competitive analysis with verifiable citations.`,antislop_skills:[`antislop`,`antislop-code`,`antislop-human`],adhd_shaping:`Lead with verified documentation answer, numbered evidence points, cap citations to 5, end with concrete recommendation.`},"tokubetsu-jonin":{name:`Tokubetsu-Jonin`,role:`The Authentic Scribe (Humanist Writer)`,voice:`Writing must be human, clear, and compelling. Documents that people actually enjoy reading.`,calling:`Production-grade technical documentation, runbooks, and refined human-authentic office documents (Word, Excel, PPT, PDF).`,antislop_skills:[`antislop`,`antislop-code`,`antislop-human`,`antislop-copywriting`],adhd_shaping:`Lead with executive takeaway, numbered sections, zero robotic AI fluff, compact human prose.`},akatsuki:{name:`Akatsuki`,role:`The Red Cloud Executioner (Red-Team, Blue-Team & Security Final Gate)`,voice:`The perimeter is breached or hardened—there is no middle ground. Offensive exploits isolated in the sandbox, defensive hardening on the host, and zero unmitigated vulnerabilities past the final security gate.`,calling:`Full-spectrum security engineering: Authorized red-team penetration testing and sandbox exploit verification (akatsuki-lab on LXC/Docker), direct-host blue-team defensive code audits, secret leakage detection, dependency CVE scans, Skill Guardian perimeter defense, and the mandatory fail-closed Security Final Gate before Kage delivery approval.`,antislop_skills:[`antislop`,`antislop-code`,`antislop-human`],adhd_shaping:`Lead with security verdict (PASS/FAIL/BLOCKED), numbered findings categorized by workflow (Red-Team / Blue-Team / Final Gate), CVSS severity, exact remediation patch, and sandbox containment proof.`}}},K=C(`memories`),q=C(E(Oe)),J=C(!1),Y=C(``);async function X(){A(J,!0),A(Y,``);try{let e=await L.get(`/api/v1/soul`);e&&e.soul?A(q,e.soul,!0):e&&e.title&&A(q,e,!0)}catch(e){A(Y,e.message,!0)}finally{A(J,!1)}}c(()=>{we(),G(),X()}),R(()=>p(V));function ke(e){e.key===`Escape`&&p(V)&&A(V,!1)}var Ae=Ce();m(`keydown`,h,ke);var Z=e(Ae);{let r=e=>{var t=ee();l(e,t)},i=n=>{var r=te(),i=e(r),a=N(i,2);t(`click`,i,De),t(`click`,a,()=>{A(V,!0)}),l(n,r)},c=e=>{var n=ne(),r=u(n),i=N(u(r),2),c=y(i);k(r);var d=N(r,2),f=u(d);x(2),k(d),k(n),a(()=>{O(r,1,`btn-3d px-4 py-2 rounded-[3px] text-xs font-black transition-all cursor-pointer border flex items-center gap-2 ${p(K)===`memories`?`btn-3d-primary`:``}`),b(r,p(K)===`memories`?``:`background-color: var(--color-surface); color: var(--color-text-muted); border-color: var(--color-border);`),s(c,`Episodic Memories (${p(o).length??``})`),O(d,1,`btn-3d px-4 py-2 rounded-[3px] text-xs font-black transition-all cursor-pointer border flex items-center gap-2 ${p(K)===`soul`?`btn-3d-primary`:``}`),b(d,p(K)===`soul`?``:`background-color: var(--color-surface); color: var(--color-text-muted); border-color: var(--color-border);`),O(f,0,`w-3.5 h-3.5 ${p(K)===`soul`?`text-[var(--theme-warning)]`:`text-status-warning`}`)}),t(`click`,r,()=>{A(K,`memories`)}),t(`click`,d,()=>{A(K,`soul`),X()}),l(e,n)};var Q=u(Z);B(Q,{title:`Persona Memory`,badgeText:`Episodic Learning & Long-Term Recall`,get badgeIcon(){return r},description:`Permanent episodic learnings, behavioral rules, and contextual memory auto-injected into Ninja subagents without token waste.`,get actions(){return i},children:(e,t)=>{c(e)},$$slots:{default:!0}});var $=N(Q,2),je=r=>{var i=de(),c=e(i),m=u(c),h=u(m);d(h,21,()=>p(W),n,(e,n)=>{var r=re(),i=y(r,!0);a(()=>{O(r,1,`btn-3d px-3.5 py-1.5 rounded-[3px] text-xs font-bold transition-all cursor-pointer whitespace-nowrap border ${p(M)===p(n).id?`btn-3d-primary`:``}`),b(r,p(M)===p(n).id?``:`background-color: var(--color-surface); color: var(--color-text-muted); border-color: var(--color-border);`),s(i,p(n).name)}),t(`click`,r,()=>{A(M,p(n).id,!0),G()}),l(e,r)}),k(h);var g=N(h,2),v=u(g);_(v),x(2),k(g),k(m);var C=N(m,2),T=N(u(C),2);d(T,16,()=>[{id:``,label:`All Types`},{id:`episodic`,label:`Episodic (Learnings)`},{id:`rule`,label:`Strict Rules`},{id:`fact`,label:`Facts`},{id:`preference`,label:`Preferences`}],n,(e,n)=>{var r=re(),i=y(r,!0);a(()=>{O(r,1,`px-3 py-1 rounded-[3px] text-xs font-bold transition-all cursor-pointer whitespace-nowrap border ${p(P)===n.id?`bg-action-primary text-white border-action-primary shadow-sm`:`theme-bg-subtle theme-text-secondary theme-border hover-bg-subtle`}`),s(i,n.label)}),t(`click`,r,()=>{A(P,n.id,!0),G()}),l(e,r)}),k(C),k(c);var E=N(c,2),D=e=>{var t=ie(),n=y(t);a(()=>s(n,`Failed to load memories: ${p(j)??``}`)),l(e,t)};f(E,e=>{p(j)&&e(D)});var I=N(E,2),L=e=>{var t=ae();l(e,t)},R=e=>{var t=oe();l(e,t)},z=e=>{var r=ue();d(r,21,()=>p(o),n,(e,n)=>{var r=le(),i=u(r),o=u(i),c=u(o),d=u(c),m=y(d),h=N(d,2),g=y(h,!0);k(c);var _=N(c,2);k(o);var v=N(o,2),b=e=>{var t=se(),r=y(t,!0);a(()=>s(r,p(n).title)),l(e,t)};f(v,e=>{p(n).title&&e(b)});var x=N(v,2),S=y(x,!0);k(i);var C=N(i,2),w=u(C),T=y(w),E=N(w,2),D=e=>{var t=ce(),r=y(t);a(()=>s(r,`Tags: ${p(n).tags??``}`)),l(e,t)};f(E,e=>{p(n).tags&&e(D)}),k(C),k(r),a(()=>{s(m,`@${p(n).agent_name??``}`),s(g,p(n).memory_type||`RULE`),s(S,p(n).content),s(T,`ID: ${p(n).id??``}`)}),t(`click`,_,()=>Ee(p(n).id)),l(e,r)}),k(r),l(e,r)};f(I,e=>{p(w)?e(L):p(o).length===0?e(R,1):e(z,-1)}),t(`keydown`,v,e=>{e.key===`Enter`&&G()}),S(v,()=>p(F),e=>A(F,e)),l(r,i)};f($,e=>{p(K)===`memories`&&e(je)});var Me=N($,2),Ne=r=>{var i=Se(),o=u(i),c=e=>{var t=fe();l(e,t)},m=e=>{var t=ie(),n=y(t);a(()=>s(n,`Failed to load Ninja's Soul: ${p(Y)??``}`)),l(e,t)},h=r=>{var i=xe(),o=e(i),c=e=>{var n=pe(),r=u(n),i=y(r),o=N(r,2);k(n),a(()=>s(i,`Notice: Displaying offline Ninja's Soul doctrine (${p(Y)??``})`)),t(`click`,o,X),l(e,n)};f(o,e=>{p(Y)&&e(c)});var m=N(o,2),h=N(u(m),2),_=y(h);x(2),k(m);var v=N(m,4),b=N(u(v),2);d(b,21,()=>p(q).tenets||[],n,(e,t,n)=>{var r=he(),i=u(r),o=u(i),c=u(o);c.textContent=n+1;var d=N(c,2),m=y(d,!0),h=N(d,2),g=e=>{var t=me();l(e,t)};f(h,e=>{n===1&&e(g)}),k(o);var _=N(o,2),v=y(_,!0);k(i),k(r),a(()=>{s(m,p(t).name),s(v,p(t).summary)}),l(e,r)}),k(b),k(v);var S=N(v,2),C=N(u(S),2);d(C,21,()=>Object.entries(p(q).archetypes||{}),n,(e,t)=>{var r=D(()=>g(p(t),2));let i=()=>p(r)[0],o=()=>p(r)[1];var c=be(),m=u(c),h=u(m),_=u(h),v=N(u(_),2),b=y(v,!0);k(_);var S=N(_,2),C=y(S,!0);k(h);var w=N(h,2),T=y(w,!0),E=N(w,2),O=u(E),A=y(O);k(E);var j=N(E,2),M=e=>{var t=ge(),n=N(u(t),2),r=y(n,!0);k(t),a(()=>s(r,o().calling)),l(e,t)};f(j,e=>{o().calling&&e(M)});var P=N(j,2),F=e=>{var t=_e(),n=N(u(t),2),r=y(n,!0);k(t),a(()=>s(r,o().adhd_shaping)),l(e,t)};f(P,e=>{o().adhd_shaping&&e(F)});var I=N(P,2),L=e=>{var t=ye(),r=N(u(t),2);d(r,21,()=>o().antislop_skills,n,(e,t)=>{var n=ve(),r=y(n,!0);a(()=>s(r,p(t))),l(e,n)}),k(r),k(t),l(e,t)};f(I,e=>{o().antislop_skills&&o().antislop_skills.length>0&&e(L)}),k(m),x(2),k(c),a(()=>{s(b,o().name||i()),s(C,i()),s(T,o().role||``),s(A,`"${(o().voice||``)??``}"`)}),l(e,c)}),k(C),k(S),a(()=>s(_,`"${(p(q).will_of_fire||`Where tree leaves dance, one shall find flames.`)??``}"`)),l(r,i)};f(o,e=>{p(J)&&!p(q)?e(c):p(Y)&&!p(q)?e(m,1):p(q)&&e(h,2)}),k(i),l(r,i)};f(Me,e=>{p(K)===`soul`&&e(Ne)}),k(Z)}U(N(Z,2),{get open(){return p(V)},get agents(){return p(W)},onclose:()=>{A(V,!1)},onsubmit:Te,get newMemory(){return p(H)},set newMemory(e){A(H,e,!0)}}),l(r,Ae),v()}F([`click`,`keydown`]);function we(e){W(e,{})}export{we as component};
@@ -1,3 +1,3 @@
1
- import{$ as e,B as t,C as n,I as r,J as i,K 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,X as m,a as h,ct as g,et as _,ft as v,g as y,i as ee,it as b,l as x,lt as te,nt as S,o as ne,ot as re,p as ie,pt as C,rt 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{n as k}from"../chunks/DVDyaR1u.js";import{t as A}from"../chunks/kQisoOdf.js";import{t as ae}from"../chunks/KBylTpfW.js";import"../chunks/BRFppjEf.js";import{t as oe}from"../chunks/KQlRtB_5.js";var se=r(`<button class="btn-3d btn-3d-secondary px-3 py-1.5 rounded-[3px] border text-xs font-semibold flex items-center gap-2 cursor-pointer shadow-sm"><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 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span> </span></button> <button class="btn-3d px-3 py-1.5 rounded-[3px] border text-xs font-semibold flex items-center gap-2 cursor-pointer shadow-sm text-status-warning border-status-warning-soft bg-status-warning-soft hover-bg-subtle"><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 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>Reset Instance</span></button>`,1),ce=r(`<span class="px-2 py-0.5 rounded-[3px] border text-[10px] font-semibold" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);"> </span>`),le=r(`<p class="text-xs py-4 text-center" style="color: var(--color-text-muted);">No search queries logged yet.</p>`),ue=r(`<div class="p-2 rounded-[3px] border flex items-center justify-between gap-2" style="background: var(--color-surface); border-color: var(--color-border);"><span class="truncate" style="color: var(--color-text);"> </span></div>`),de=r(`<div class="max-h-60 overflow-y-auto space-y-1.5 font-mono text-[11px] pr-2"></div>`),fe=r(`<div class="metric-card-3d rounded-[5px] p-5 border space-y-4 animate-in fade-in duration-200" style="border-color: color-mix(in srgb, var(--theme-grad-2) 28%, var(--color-border));"><div class="flex items-center justify-between border-b pb-3" style="border-color: var(--color-border);"><h3 class="text-xs font-bold uppercase tracking-wider" style="color: var(--color-text);">Recent Search Telemetry Log (~/.konoha/searxng/search.log)</h3> <span class="text-[11px] font-mono" style="color: var(--color-text-muted);"> </span></div> <!></div>`),pe=r(`<button type="button" class="absolute right-4 top-1/2 -translate-y-1/2 text-xs font-bold opacity-50 hover:opacity-100 flex items-center justify-center w-5 h-5 cursor-pointer" style="color: var(--color-text-muted);" aria-label="Clear query"><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>`),me=r(`<svg class="animate-spin w-4 h-4" 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-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg> <span>Searching...</span>`,1),he=r(`<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</span>`,1),ge=r(`<button type="button"><span> </span> <span> </span></button>`),_e=r(`<button type="button" class="btn-3d btn-3d-secondary px-2.5 py-1 rounded-[3px] border text-xs font-medium cursor-pointer"> </button>`),ve=r(`<div class="p-4 rounded-[3px] border border-status-danger-soft bg-status-danger-soft text-status-danger text-xs font-semibold flex items-center gap-3"><svg class="w-5 h-5 shrink-0 text-status-danger" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span> </span></div>`),ye=r(`<a class="hover:underline flex items-center gap-1.5 transition-colors" style="color: var(--color-text);"><span> </span> <svg class="w-3.5 h-3.5 opacity-60 group-hover:opacity-100 transition-opacity shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6"></path></svg></a>`),be=r(`<a target="_blank" rel="noreferrer" class="hover:underline flex items-center gap-1.5 transition-colors" style="color: var(--color-text);"><span> </span> <svg class="w-3.5 h-3.5 opacity-60 group-hover:opacity-100 transition-opacity shrink-0" 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>`),xe=r(`<p class="text-xs leading-relaxed font-normal pt-1" style="color: var(--color-text-muted);"> </p>`),Se=r(`<div class="metric-card-3d rounded-[5px] p-5 border relative group transition-all" style="border-color: color-mix(in srgb, var(--theme-grad-2) 20%, var(--color-border));"><div class="flex items-start justify-between gap-4"><div class="space-y-1.5 flex-1"><div class="flex flex-wrap items-center gap-2"><span class="px-2 py-0.5 rounded-[3px] font-mono font-bold text-[11px] border" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"> </span> <span> </span> <span class="text-[11px] font-mono truncate max-w-md" style="color: var(--color-text-muted);"> </span></div> <h3 class="text-base font-bold leading-snug"><!></h3> <!></div> <div class="flex items-center gap-1.5 shrink-0 opacity-80 group-hover:opacity-100 transition-opacity"><button type="button" title="Copy citation markdown" class="btn-3d btn-3d-secondary px-2.5 py-1.5 rounded-[3px] border text-[11px] font-semibold flex items-center gap-1 shadow-sm cursor-pointer"><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="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path></svg> <span>Citation</span></button> <button type="button" title="Copy link" class="btn-3d btn-3d-secondary p-1.5 rounded-[3px] border text-[11px] font-semibold shadow-sm 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="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"></path></svg></button></div></div></div>`),Ce=r(`<div class="space-y-4"><div class="flex items-center justify-between px-2"><div class="flex items-center gap-2"><span class="text-xs font-bold uppercase tracking-wider" style="color: var(--color-text);">Search Results</span> <span class="px-2 py-0.5 rounded-[3px] text-[10px] font-bold border" style="background: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"> </span> <span class="text-xs font-medium" style="color: var(--color-text-muted);"> </span></div></div> <div class="space-y-3"></div></div>`),we=r(`<div class="metric-card-3d rounded-[5px] p-12 border text-center space-y-4" style="border-color: color-mix(in srgb, var(--theme-grad-1) 20%, var(--color-border));"><div class="w-16 h-16 rounded-[3px] mx-auto 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-8 h-8" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg></div> <div class="space-y-1 max-w-md mx-auto"><h3 class="text-base font-bold" style="color: var(--color-text);">Search Intelligence Across All Sources</h3> <p class="text-xs" style="color: var(--color-text-muted);">Konoha dynamically queries DuckDuckGo, Wikipedia Knowledge, public SearXNG instances, Startpage, and Village Skills with unified citations. Zero API keys required.</p></div></div>`),Te=r(`<div class="space-y-6 w-full"><!> <div class="metric-card-3d rounded-[5px] p-4 border flex flex-wrap items-center justify-between gap-4" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><div class="flex items-center gap-3"><div class="w-9 h-9 rounded-[3px] flex items-center justify-center shrink-0 border" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"><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" 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><div class="flex items-center gap-2"><span class="text-xs font-bold" style="color: var(--color-text);">Elected SearXNG Instance:</span> <span class="text-xs font-mono font-bold" style="color: var(--color-primary);"> </span> <span class="w-2 h-2 rounded-full bg-status-success-soft animate-pulse"></span></div> <div class="text-[11px] mt-0.5" style="color: var(--color-text-muted);">Cached Candidates: <span class="font-semibold" style="color: var(--color-text);"> </span> ·
1
+ import{$ as e,B as t,C as n,I as r,J as i,K 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,X as m,a as h,ct as g,et as _,ft as v,g as y,i as ee,it as b,l as x,lt as te,nt as S,o as ne,ot as re,p as ie,pt as C,rt 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{n as k}from"../chunks/DVDyaR1u.js";import{t as A}from"../chunks/kQisoOdf.js";import{t as ae}from"../chunks/DuefosH7.js";import"../chunks/BRFppjEf.js";import{t as oe}from"../chunks/KQlRtB_5.js";var se=r(`<button class="btn-3d btn-3d-secondary px-3 py-1.5 rounded-[3px] border text-xs font-semibold flex items-center gap-2 cursor-pointer shadow-sm"><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 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span> </span></button> <button class="btn-3d px-3 py-1.5 rounded-[3px] border text-xs font-semibold flex items-center gap-2 cursor-pointer shadow-sm text-status-warning border-status-warning-soft bg-status-warning-soft hover-bg-subtle"><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 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>Reset Instance</span></button>`,1),ce=r(`<span class="px-2 py-0.5 rounded-[3px] border text-[10px] font-semibold" style="background: var(--color-surface); border-color: var(--color-border); color: var(--color-text-muted);"> </span>`),le=r(`<p class="text-xs py-4 text-center" style="color: var(--color-text-muted);">No search queries logged yet.</p>`),ue=r(`<div class="p-2 rounded-[3px] border flex items-center justify-between gap-2" style="background: var(--color-surface); border-color: var(--color-border);"><span class="truncate" style="color: var(--color-text);"> </span></div>`),de=r(`<div class="max-h-60 overflow-y-auto space-y-1.5 font-mono text-[11px] pr-2"></div>`),fe=r(`<div class="metric-card-3d rounded-[5px] p-5 border space-y-4 animate-in fade-in duration-200" style="border-color: color-mix(in srgb, var(--theme-grad-2) 28%, var(--color-border));"><div class="flex items-center justify-between border-b pb-3" style="border-color: var(--color-border);"><h3 class="text-xs font-bold uppercase tracking-wider" style="color: var(--color-text);">Recent Search Telemetry Log (~/.konoha/searxng/search.log)</h3> <span class="text-[11px] font-mono" style="color: var(--color-text-muted);"> </span></div> <!></div>`),pe=r(`<button type="button" class="absolute right-4 top-1/2 -translate-y-1/2 text-xs font-bold opacity-50 hover:opacity-100 flex items-center justify-center w-5 h-5 cursor-pointer" style="color: var(--color-text-muted);" aria-label="Clear query"><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>`),me=r(`<svg class="animate-spin w-4 h-4" 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-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg> <span>Searching...</span>`,1),he=r(`<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</span>`,1),ge=r(`<button type="button"><span> </span> <span> </span></button>`),_e=r(`<button type="button" class="btn-3d btn-3d-secondary px-2.5 py-1 rounded-[3px] border text-xs font-medium cursor-pointer"> </button>`),ve=r(`<div class="p-4 rounded-[3px] border border-status-danger-soft bg-status-danger-soft text-status-danger text-xs font-semibold flex items-center gap-3"><svg class="w-5 h-5 shrink-0 text-status-danger" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span> </span></div>`),ye=r(`<a class="hover:underline flex items-center gap-1.5 transition-colors" style="color: var(--color-text);"><span> </span> <svg class="w-3.5 h-3.5 opacity-60 group-hover:opacity-100 transition-opacity shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6"></path></svg></a>`),be=r(`<a target="_blank" rel="noreferrer" class="hover:underline flex items-center gap-1.5 transition-colors" style="color: var(--color-text);"><span> </span> <svg class="w-3.5 h-3.5 opacity-60 group-hover:opacity-100 transition-opacity shrink-0" 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>`),xe=r(`<p class="text-xs leading-relaxed font-normal pt-1" style="color: var(--color-text-muted);"> </p>`),Se=r(`<div class="metric-card-3d rounded-[5px] p-5 border relative group transition-all" style="border-color: color-mix(in srgb, var(--theme-grad-2) 20%, var(--color-border));"><div class="flex items-start justify-between gap-4"><div class="space-y-1.5 flex-1"><div class="flex flex-wrap items-center gap-2"><span class="px-2 py-0.5 rounded-[3px] font-mono font-bold text-[11px] border" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"> </span> <span> </span> <span class="text-[11px] font-mono truncate max-w-md" style="color: var(--color-text-muted);"> </span></div> <h3 class="text-base font-bold leading-snug"><!></h3> <!></div> <div class="flex items-center gap-1.5 shrink-0 opacity-80 group-hover:opacity-100 transition-opacity"><button type="button" title="Copy citation markdown" class="btn-3d btn-3d-secondary px-2.5 py-1.5 rounded-[3px] border text-[11px] font-semibold flex items-center gap-1 shadow-sm cursor-pointer"><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="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"></path></svg> <span>Citation</span></button> <button type="button" title="Copy link" class="btn-3d btn-3d-secondary p-1.5 rounded-[3px] border text-[11px] font-semibold shadow-sm 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="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"></path></svg></button></div></div></div>`),Ce=r(`<div class="space-y-4"><div class="flex items-center justify-between px-2"><div class="flex items-center gap-2"><span class="text-xs font-bold uppercase tracking-wider" style="color: var(--color-text);">Search Results</span> <span class="px-2 py-0.5 rounded-[3px] text-[10px] font-bold border" style="background: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"> </span> <span class="text-xs font-medium" style="color: var(--color-text-muted);"> </span></div></div> <div class="space-y-3"></div></div>`),we=r(`<div class="metric-card-3d rounded-[5px] p-12 border text-center space-y-4" style="border-color: color-mix(in srgb, var(--theme-grad-1) 20%, var(--color-border));"><div class="w-16 h-16 rounded-[3px] mx-auto 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-8 h-8" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg></div> <div class="space-y-1 max-w-md mx-auto"><h3 class="text-base font-bold" style="color: var(--color-text);">Search Intelligence Across All Sources</h3> <p class="text-xs" style="color: var(--color-text-muted);">Konoha dynamically queries DuckDuckGo, Wikipedia Knowledge, public SearXNG instances, Startpage, and Village Skills with unified citations. Zero API keys required.</p></div></div>`),Te=r(`<div class="space-y-6 w-full"><!> <div class="metric-card-3d rounded-[5px] p-4 border flex flex-wrap items-center justify-between gap-4" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><div class="flex items-center gap-3"><div class="w-9 h-9 rounded-[3px] flex items-center justify-center shrink-0 border" style="background-color: var(--color-primary-glow); border-color: var(--color-primary); color: var(--color-primary);"><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" 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><div class="flex items-center gap-2"><span class="text-xs font-bold" style="color: var(--color-text);">Elected SearXNG Instance:</span> <span class="text-xs font-mono font-bold" style="color: var(--color-primary);"> </span> <span class="w-2 h-2 rounded-full bg-status-success-soft animate-pulse"></span></div> <div class="text-[11px] mt-0.5" style="color: var(--color-text-muted);">Cached Candidates: <span class="font-semibold" style="color: var(--color-text);"> </span> ·
2
2
  Logged Queries: <span class="font-semibold" style="color: var(--color-text);"> </span> ·
3
3
  Chain: <span class="font-mono text-[10px]">SearXNG &rarr; DDG &rarr; Startpage &rarr; Wikipedia &rarr; Skills</span></div></div></div> <div class="flex items-center gap-2"><!> <span class="px-2 py-0.5 rounded-[3px] border text-[10px] font-semibold text-status-warning border-status-warning-soft bg-status-warning-soft">Skills Hybrid</span></div></div> <!> <div class="metric-card-3d rounded-[5px] p-6 border space-y-4" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><form class="flex flex-col sm:flex-row items-stretch gap-3"><div class="relative flex-1"><svg class="w-5 h-5 absolute left-4 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 web, wikipedia knowledge, and village skills..." class="w-full pl-12 pr-4 py-3 rounded-[3px] border text-sm login-field-effect input-theme transition-all font-medium" style="background: var(--color-surface); color: var(--color-text);"/> <!></div> <div class="flex flex-wrap items-center gap-2"><select class="px-3 py-3 rounded-[3px] border text-xs font-semibold login-field-effect focus:outline-none" style="background: var(--color-surface); color: var(--color-text);"><option>Standard (Fast)</option><option>Deep (Multi-query)</option></select> <select class="px-3 py-3 rounded-[3px] border text-xs font-semibold login-field-effect focus:outline-none" style="background: var(--color-surface); color: var(--color-text);"><option>5 results</option><option>10 results</option><option>15 results</option><option>25 results</option></select> <button type="submit" class="btn-3d btn-3d-primary px-6 py-3 rounded-[3px] font-semibold text-xs flex items-center justify-center gap-2 shadow-md disabled:opacity-50 cursor-pointer"><!></button></div></form> <div class="flex flex-wrap items-center gap-2 pt-2 border-t" style="border-color: var(--color-border);"><span class="text-[11px] font-bold uppercase tracking-wider" style="color: var(--color-text-muted);">Source Filter:</span> <!></div> <div class="flex flex-wrap items-center gap-2 pt-1"><span class="text-[11px] font-bold uppercase tracking-wider" style="color: var(--color-text-muted);">Quick Search:</span> <!></div></div> <!> <!></div>`);function j(r,a){te(a,!0);let m=b(``),y=b(`standard`),D=b(5),j=b(`all`),M=b(!1),N=b(S([])),Ee=b(``),P=b(null),F=b(S([])),I=b(!1),L=b(null),De=[{id:`all`,label:`All Sources`,icon:`ALL`},{id:`duckduckgo`,label:`DuckDuckGo`,icon:`DDG`},{id:`searxng`,label:`SearXNG`,icon:`SXG`},{id:`wikipedia`,label:`Wikipedia`,icon:`WIKI`},{id:`skills`,label:`Village Skills`,icon:`SKL`}],Oe=[`SvelteKit 5 runes`,`MCP protocol specification`,`Rust RTK token killer`,`SearXNG architecture fallback`,`Kubernetes Helm chart scaffold`];async function R(){try{w(P,await k(`/api/v1/search/status`),!0)}catch{w(P,null)}}async function z(){try{let e=await k(`/api/v1/search/logs`);w(F,e.logs||[],!0)}catch{w(F,[],!0)}}async function B(e=null){let t=(e===null?f(m):e).trim();if(t){e!==null&&w(m,e,!0),w(M,!0),w(L,null);try{let e=await k(`/api/v1/search`,{method:`POST`,body:JSON.stringify({query:t,num_results:f(D),search_depth:f(y),source:f(j)})});e.status===`success`&&Array.isArray(e.results)&&e.results.filter(e=>e&&e.url).length>0?(w(N,e.results.filter(e=>e&&e.url),!0),w(Ee,t,!0)):(w(N,[],!0),w(L,e?.message||`No search results found.`,!0)),R(),z()}catch(e){w(N,[],!0),w(L,e.message||`Search request failed.`,!0),A.addNotification(`Web search failed: `+e.message,`error`)}finally{w(M,!1)}}}async function ke(){try{if(!await ae({title:`Clear SearXNG Cache?`,message:`This will invalidate the elected instance and re-discover public candidate instances from searx.space on next search.`,confirmText:`Clear Cache`,variant:`warning`}))return;await k(`/api/v1/search/clear-cache`,{method:`POST`}),O.success(`SearXNG candidate instances will re-resolve on next query.`),R()}catch(e){O.error(`Failed to clear cache: `+e.message)}}async function Ae(e){let t=`[#${e.citation_id}] [${e.title}](${e.url}) - ${e.source}`;try{await navigator.clipboard.writeText(t),A.addNotification(`Copied citation #${e.citation_id} to clipboard`,`success`)}catch{A.addNotification(`Failed to copy to clipboard`,`error`)}}async function je(e){try{await navigator.clipboard.writeText(e),A.addNotification(`Copied URL to clipboard`,`success`)}catch{A.addNotification(`Failed to copy to clipboard`,`error`)}}function Me(e){let t=String(e||``).toLowerCase();return t.includes(`duckduckgo`)?`text-status-success border-status-success-soft bg-status-success-soft`:t.includes(`wikipedia`)||t.includes(`searxng`)?`text-status-info border-status-info-soft bg-status-info-soft`:t.includes(`startpage`)||t.includes(`skill`)?`text-status-warning border-status-warning-soft bg-status-warning-soft`:`theme-text-secondary theme-border theme-bg-subtle`}s(()=>{R(),z()});var V=Te();{let r=n=>{var r=se(),a=e(r),s=T(l(a),2),u=_(s,!0);C(a);var d=T(a,2);i(()=>o(u,f(I)?`Hide Diagnostics`:`Diagnostics & Logs`)),t(`click`,a,()=>{w(I,!f(I)),f(I)&&z()}),t(`click`,d,ke),c(n,r)};var Ne=l(V);oe(Ne,{title:`Search & Intelligence`,badgeText:`Multi-Source Intelligence`,description:`Autonomous multi-source search chain: Dynamic SearXNG, DuckDuckGo, Startpage, Wikipedia Knowledge, and Konoha Village Skills.`,get actions(){return r}});var H=T(Ne,2),U=l(H),Pe=T(l(U),2),Fe=l(Pe),Ie=T(l(Fe),2),Le=_(Ie,!0);v(2),C(Fe);var Re=T(Fe,2),ze=T(l(Re)),Be=_(ze,!0),Ve=T(ze,2),He=_(Ve,!0);v(2),C(Re),C(Pe),C(U);var Ue=T(U,2),We=l(Ue);u(We,17,()=>f(P)?.fallbacks||[`DuckDuckGo`,`Startpage`,`Wikipedia`],n,(e,t)=>{var n=ce(),r=_(n,!0);i(()=>o(r,f(t))),c(e,n)}),v(2),C(Ue),C(H);var Ge=T(H,2),Ke=e=>{var t=fe(),r=l(t),a=T(l(r),2),s=_(a);C(r);var p=T(r,2),m=e=>{var t=le();c(e,t)},h=e=>{var t=de();u(t,21,()=>f(F).slice(0,30),n,(e,t)=>{var n=ue(),r=l(n),a=_(r,!0);C(n),i(()=>o(a,f(t))),c(e,n)}),C(t),c(e,t)};d(p,e=>{f(F).length===0?e(m):e(h,-1)}),C(t),i(()=>o(s,`${f(F).length??``} entries`)),c(e,t)};d(Ge,e=>{f(I)&&e(Ke)});var W=T(Ge,2),G=l(W),K=l(G),q=T(l(K),2);h(q);var qe=T(q,2),Je=e=>{var n=pe();t(`click`,n,()=>w(m,``)),c(e,n)};d(qe,e=>{f(m)&&e(Je)}),C(K);var Ye=T(K,2),J=l(Ye),Y=l(J);Y.value=Y.__value=`standard`;var Xe=T(Y);Xe.value=Xe.__value=`deep`,C(J),E(J);var X=T(J,2),Z=l(X);Z.value=Z.__value=5;var Q=T(Z);Q.value=Q.__value=10;var Ze=T(Q);Ze.value=Ze.__value=15;var Qe=T(Ze);Qe.value=Qe.__value=25,C(X),E(X);var $e=T(X,2),et=l($e),tt=e=>{var t=me();v(2),c(e,t)},nt=e=>{var t=he();v(2),c(e,t)};d(et,e=>{f(M)?e(tt):e(nt,-1)}),C($e),C(Ye),C(G);var $=T(G,2),rt=T(l($),2);u(rt,17,()=>De,n,(e,n)=>{var r=ge(),a=l(r),s=_(a,!0),u=T(a,2),d=_(u,!0);C(r),i(()=>{ie(r,1,`px-3 py-1.5 rounded-[3px] border text-xs font-bold transition-all flex items-center gap-1.5 cursor-pointer ${f(j)===f(n).id?`border-action-primary bg-action-primary text-white shadow-sm`:`btn-3d btn-3d-secondary`}`),o(s,f(n).icon),o(d,f(n).label)}),t(`click`,r,()=>{w(j,f(n).id,!0),f(m).trim()&&B()}),c(e,r)}),C($);var it=T($,2),at=T(l(it),2);u(at,17,()=>Oe,n,(e,n)=>{var r=_e(),a=_(r,!0);i(()=>o(a,f(n))),t(`click`,r,()=>B(f(n))),c(e,r)}),C(it),C(W);var ot=T(W,2),st=e=>{var t=ve(),n=T(l(t),2),r=_(n,!0);C(t),i(()=>o(r,f(L))),c(e,t)};d(ot,e=>{f(L)&&e(st)});var ct=T(ot,2),lt=e=>{var n=Ce(),r=l(n),a=l(r),s=T(l(a),2),p=_(s),m=T(s,2),h=_(m);C(a),C(r);var g=T(r,2);u(g,21,()=>f(N),e=>e.citation_id,(e,n)=>{var r=Se(),a=l(r),s=l(a),u=l(s),p=l(u),m=_(p),h=T(p,2),g=_(h,!0),y=T(h,2),ee=_(y,!0);C(u);var b=T(u,2),x=l(b),te=e=>{var t=ye(),r=l(t),a=_(r,!0);v(2),C(t),i(()=>{ne(t,`href`,f(n).url),o(a,f(n).title)}),c(e,t)},S=re(()=>f(n).url.startsWith(`/`)),w=e=>{var t=be(),r=l(t),a=_(r,!0);v(2),C(t),i(()=>{ne(t,`href`,f(n).url),o(a,f(n).title)}),c(e,t)};d(x,e=>{f(S)?e(te):e(w,-1)}),C(b);var E=T(b,2),D=e=>{var t=xe(),r=_(t,!0);i(()=>o(r,f(n).snippet)),c(e,t)};d(E,e=>{f(n).snippet&&e(D)}),C(s);var O=T(s,2),k=l(O),A=T(k,2);C(O),C(a),C(r),i(e=>{o(m,`[#${f(n).citation_id??``}]`),ie(h,1,e),o(g,f(n).source||`Web`),o(ee,f(n).url)},[()=>`px-2 py-0.5 rounded-[3px] text-[10px] font-bold border tracking-wide uppercase ${Me(f(n).source)}`]),t(`click`,k,()=>Ae(f(n))),t(`click`,A,()=>je(f(n).url)),c(e,r)}),C(g),C(n),i(()=>{o(p,`${f(N).length??``} citations`),o(h,`for "${f(Ee)??``}"`)}),c(e,n)},ut=e=>{var t=we();c(e,t)};d(ct,e=>{f(N).length>0?e(lt):!f(M)&&!f(L)&&e(ut,1)}),C(V),i(e=>{o(Le,f(P)?.best_instance||f(P)?.custom_url||`Dynamic Public Selector`),o(Be,f(P)?.cached_candidates_count||0),o(He,f(F).length),$e.disabled=e},[()=>f(M)||!f(m).trim()]),p(`submit`,G,e=>{e.preventDefault(),B()}),ee(q,()=>f(m),e=>w(m,e)),x(J,()=>f(y),e=>w(y,e)),x(X,()=>f(D),e=>w(D,e))}c(r,V),g()}D([`click`]);function M(e){y(`e12qt1`,e=>{a(()=>{m.title=`Web Search (SearXNG) • Konoha`})}),j(e,{})}export{M as component};
@@ -1 +1 @@
1
- import{I as e,J as t,M as n,P as r,Q as i,R as a,T as o,U as s,V as c,a as l,ct as ee,et as u,ft as te,i as d,it as f,lt as ne,o as p,p as m,pt as h,r as re,rt as g,tt as _}from"../chunks/C5rL-2rZ.js";import{t as v}from"../chunks/CMfYCyHI.js";import{n as y}from"../chunks/BCzYYd01.js";import{t as ie}from"../chunks/KBylTpfW.js";import{t as ae}from"../chunks/KQlRtB_5.js";var oe=e(`<span><span></span> </span>`),b=e(`<div> </div>`),se=e(`<div class="space-y-6 w-full"><!> <div class="metric-card-3d rounded-[5px] p-6 sm:p-8 border space-y-6" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><div class="flex items-start gap-4"><div class="w-12 h-12 rounded-[3px] flex items-center justify-center shrink-0 border-status-info-soft bg-status-info-soft text-status-info"><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 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></div> <div class="space-y-1"><h2 class="text-base font-bold" style="color: var(--color-text);">Update Access Passphrase (Argon2id)</h2> <p class="text-xs leading-relaxed" style="color: var(--color-text-muted);">Konoha enforces Argon2id password encryption for maximum resilience against offline cracking attacks. Updating your password invalidates all existing sessions and returns you to the login screen.</p></div></div> <!> <form class="space-y-4 max-w-lg"><div><label for="settings-current-password" class="block text-xs font-bold uppercase tracking-wider mb-1" style="color: var(--color-text-muted);">Current Password</label> <input id="settings-current-password" placeholder="Enter current password" class="w-full px-3.5 py-2.5 rounded-[3px] text-xs font-mono border login-field-effect input-theme" style="background-color: var(--color-surface); color: var(--color-text);" autocomplete="current-password"/></div> <div><label for="settings-new-password" class="block text-xs font-bold uppercase tracking-wider mb-1" style="color: var(--color-text-muted);">New Secure Password (Min 8 Characters)</label> <input id="settings-new-password" placeholder="Enter new password" required="" class="w-full px-3.5 py-2.5 rounded-[3px] text-xs font-mono border login-field-effect input-theme" style="background-color: var(--color-surface); color: var(--color-text);" autocomplete="new-password"/></div> <div><label for="settings-confirm-password" class="block text-xs font-bold uppercase tracking-wider mb-1" style="color: var(--color-text-muted);">Confirm New Password</label> <input id="settings-confirm-password" placeholder="Re-enter new password" required="" class="w-full px-3.5 py-2.5 rounded-[3px] text-xs font-mono border login-field-effect input-theme" style="background-color: var(--color-surface); color: var(--color-text);" autocomplete="new-password"/></div> <div class="flex items-center justify-between text-xs pt-1"><label class="flex items-center gap-2 cursor-pointer select-none" style="color: var(--color-text-muted);"><input type="checkbox" class="rounded cursor-pointer accent-[var(--color-primary)]"/> Show password characters</label></div> <div class="pt-2"><button type="submit" class="px-6 py-2.5 rounded-[3px] text-xs font-bold text-white transition-all duration-200 cursor-pointer shadow-lg disabled:opacity-50 disabled:cursor-not-allowed hover:brightness-110 active:scale-[0.98]" style="background: var(--theme-4gradient, linear-gradient(135deg, #0284c7, #06b6d4));"><!></button></div></form></div> <div class="metric-card-3d rounded-[5px] p-6 sm:p-8 border space-y-6" style="border-color: color-mix(in srgb, var(--theme-danger, #ef4444) 30%, var(--color-border));"><div class="flex items-start gap-4"><div class="w-12 h-12 rounded-[3px] flex items-center justify-center shrink-0 border-status-danger-soft bg-status-danger-soft text-status-danger"><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="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></div> <div class="space-y-1"><h2 class="text-base font-bold text-status-danger">Reset Password to Default</h2> <p class="text-xs leading-relaxed" style="color: var(--color-text-muted);">Authorized users can reset the gateway credential back to the default bootstrap password (<code>konohagakure</code>). This requires your current active password. Once reset, all active sessions terminate immediately and you will be returned to the login screen.</p></div></div> <!> <form class="space-y-4 max-w-lg"><div><label for="settings-reset-current-password" class="block text-xs font-bold uppercase tracking-wider mb-1" style="color: var(--color-text-muted);">Authorize with Current Password</label> <input id="settings-reset-current-password" placeholder="Enter current password to verify authority" required="" class="w-full px-3.5 py-2.5 rounded-[3px] text-xs font-mono border login-field-effect input-theme" style="background-color: var(--color-surface); color: var(--color-text);" autocomplete="current-password"/></div> <div class="pt-2"><button type="submit" class="px-6 py-2.5 rounded-[3px] text-xs font-bold text-white transition-all duration-200 cursor-pointer shadow-lg disabled:opacity-50 disabled:cursor-not-allowed hover:brightness-110 active:scale-[0.98] bg-status-danger hover:bg-status-danger"><!></button></div></form></div></div>`);function x(e,x){ne(x,!0);let S=f(``),C=f(``),w=f(``),T=f(!1),E=f(!1),D=f(``),O=f(!1),k=f(``),A=f(!1),j=f(``),M=f(!1);async function ce(e){if(e.preventDefault(),g(D,``),g(O,!1),!s(C)||s(C).length<8)g(D,`New password must be at least 8 characters long.`),g(O,!0);else if(!s(S))g(D,`Enter your current password.`),g(O,!0);else if(s(C)!==s(w))g(D,`New password and confirmation do not match.`),g(O,!0),v.warning(`New password and confirmation do not match.`);else{g(E,!0);try{await y.changePassword(s(S),s(C)),v.success(`Password updated successfully! Logging out to verify new credentials...`),g(S,``),g(C,``),g(w,``)}catch(e){g(D,e.message||`Failed to update password.`,!0),g(O,!0),v.error(`Failed to update password: `+(e.message||`Error`))}finally{g(E,!1)}}}async function le(e){if(e.preventDefault(),g(j,``),g(M,!1),!s(k))g(j,`Enter your current password to authorize reset.`),g(M,!0);else if(await ie({title:`Reset Password to Default?`,message:`Are you sure you want to reset your password back to default (konohagakure)? All active sessions will be terminated immediately.`,confirmText:`Reset Password`,variant:`danger`})){g(A,!0);try{await y.resetPassword(s(k)),v.success(`Password reset to default (konohagakure). Logging out to login page...`),g(k,``)}catch(e){g(j,e.message||`Failed to reset password.`,!0),g(M,!0),v.error(`Failed to reset password: `+(e.message||`Error`))}finally{g(A,!1)}}}var N=se();{let e=e=>{var a=oe(),o=i(a),s=_(o);h(a),t(()=>{m(a,1,`inline-flex items-center gap-1.5 px-3 py-1 rounded-[3px] text-xs font-semibold border ${y.isBootstrap?`bg-status-warning-soft text-status-warning border-status-warning-soft`:`bg-status-success-soft text-status-success border-status-success-soft`}`),m(o,1,`w-2 h-2 rounded-full ${y.isBootstrap?`bg-status-warning`:`bg-status-success`}`),n(s,` ${y.isBootstrap?`Bootstrap Credential Active`:`Hardened Argon2 Password Active`}`)}),r(e,a)};var ue=i(N);ae(ue,{title:`Security & Settings`,badgeText:`Argon2id Encrypted Authentication`,description:`Manage your Konoha Console access credentials, sessions, and security posture with Argon2id encryption.`,get actions(){return e}});var P=_(ue,2),F=_(i(P),2),de=e=>{var i=b(),a=u(i,!0);t(()=>{p(i,`role`,s(O)?`alert`:`status`),m(i,1,`p-3 rounded-[3px] text-xs font-semibold border animate-in fade-in ${s(O)?`badge-status badge-status-danger`:`badge-status badge-status-success`}`),n(a,s(D))}),r(e,i)};o(F,e=>{s(D)&&e(de)});var I=_(F,2),L=i(I),R=_(i(L),2);l(R),h(L);var z=_(L,2),B=_(i(z),2);l(B),h(z);var V=_(z,2),H=_(i(V),2);l(H),h(V);var U=_(V,2),W=i(U),G=i(W);l(G),te(),h(W),h(U);var K=_(U,2),q=i(K),fe=i(q),pe=e=>{var t=a(`Updating Password...`);r(e,t)},me=e=>{var t=a(`Save New Password (Argon2id)`);r(e,t)};o(fe,e=>{s(E)?e(pe):e(me,-1)}),h(q),h(K),h(I),h(P);var J=_(P,2),Y=_(i(J),2),he=e=>{var i=b(),a=u(i,!0);t(()=>{p(i,`role`,s(M)?`alert`:`status`),m(i,1,`p-3 rounded-[3px] text-xs font-semibold border animate-in fade-in ${s(M)?`badge-status badge-status-danger`:`badge-status badge-status-success`}`),n(a,s(j))}),r(e,i)};o(Y,e=>{s(j)&&e(he)});var X=_(Y,2),Z=i(X),Q=_(i(Z),2);l(Q),h(Z);var ge=_(Z,2),$=i(ge),_e=i($),ve=e=>{var t=a(`Resetting Credential...`);r(e,t)},ye=e=>{var t=a(`Reset to Default Password (konohagakure)`);r(e,t)};o(_e,e=>{s(A)?e(ve):e(ye,-1)}),h($),h(ge),h(X),h(J),h(N),t(()=>{p(R,`type`,s(T)?`text`:`password`),p(B,`type`,s(T)?`text`:`password`),p(H,`type`,s(T)?`text`:`password`),q.disabled=s(E),p(Q,`type`,s(T)?`text`:`password`),$.disabled=s(A)}),c(`submit`,I,ce),d(R,()=>s(S),e=>g(S,e)),d(B,()=>s(C),e=>g(C,e)),d(H,()=>s(w),e=>g(w,e)),re(G,()=>s(T),e=>g(T,e)),c(`submit`,X,le),d(Q,()=>s(k),e=>g(k,e))}r(e,N),ee()}export{x as component};
1
+ import{I as e,J as t,M as n,P as r,Q as i,R as a,T as o,U as s,V as c,a as l,ct as ee,et as u,ft as te,i as d,it as f,lt as ne,o as p,p as m,pt as h,r as re,rt as g,tt as _}from"../chunks/C5rL-2rZ.js";import{t as v}from"../chunks/CMfYCyHI.js";import{n as y}from"../chunks/BCzYYd01.js";import{t as ie}from"../chunks/DuefosH7.js";import{t as ae}from"../chunks/KQlRtB_5.js";var oe=e(`<span><span></span> </span>`),b=e(`<div> </div>`),se=e(`<div class="space-y-6 w-full"><!> <div class="metric-card-3d rounded-[5px] p-6 sm:p-8 border space-y-6" style="border-color: color-mix(in srgb, var(--theme-grad-1) 28%, var(--color-border));"><div class="flex items-start gap-4"><div class="w-12 h-12 rounded-[3px] flex items-center justify-center shrink-0 border-status-info-soft bg-status-info-soft text-status-info"><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 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></div> <div class="space-y-1"><h2 class="text-base font-bold" style="color: var(--color-text);">Update Access Passphrase (Argon2id)</h2> <p class="text-xs leading-relaxed" style="color: var(--color-text-muted);">Konoha enforces Argon2id password encryption for maximum resilience against offline cracking attacks. Updating your password invalidates all existing sessions and returns you to the login screen.</p></div></div> <!> <form class="space-y-4 max-w-lg"><div><label for="settings-current-password" class="block text-xs font-bold uppercase tracking-wider mb-1" style="color: var(--color-text-muted);">Current Password</label> <input id="settings-current-password" placeholder="Enter current password" class="w-full px-3.5 py-2.5 rounded-[3px] text-xs font-mono border login-field-effect input-theme" style="background-color: var(--color-surface); color: var(--color-text);" autocomplete="current-password"/></div> <div><label for="settings-new-password" class="block text-xs font-bold uppercase tracking-wider mb-1" style="color: var(--color-text-muted);">New Secure Password (Min 8 Characters)</label> <input id="settings-new-password" placeholder="Enter new password" required="" class="w-full px-3.5 py-2.5 rounded-[3px] text-xs font-mono border login-field-effect input-theme" style="background-color: var(--color-surface); color: var(--color-text);" autocomplete="new-password"/></div> <div><label for="settings-confirm-password" class="block text-xs font-bold uppercase tracking-wider mb-1" style="color: var(--color-text-muted);">Confirm New Password</label> <input id="settings-confirm-password" placeholder="Re-enter new password" required="" class="w-full px-3.5 py-2.5 rounded-[3px] text-xs font-mono border login-field-effect input-theme" style="background-color: var(--color-surface); color: var(--color-text);" autocomplete="new-password"/></div> <div class="flex items-center justify-between text-xs pt-1"><label class="flex items-center gap-2 cursor-pointer select-none" style="color: var(--color-text-muted);"><input type="checkbox" class="rounded cursor-pointer accent-[var(--color-primary)]"/> Show password characters</label></div> <div class="pt-2"><button type="submit" class="px-6 py-2.5 rounded-[3px] text-xs font-bold text-white transition-all duration-200 cursor-pointer shadow-lg disabled:opacity-50 disabled:cursor-not-allowed hover:brightness-110 active:scale-[0.98]" style="background: var(--theme-4gradient, linear-gradient(135deg, #0284c7, #06b6d4));"><!></button></div></form></div> <div class="metric-card-3d rounded-[5px] p-6 sm:p-8 border space-y-6" style="border-color: color-mix(in srgb, var(--theme-danger, #ef4444) 30%, var(--color-border));"><div class="flex items-start gap-4"><div class="w-12 h-12 rounded-[3px] flex items-center justify-center shrink-0 border-status-danger-soft bg-status-danger-soft text-status-danger"><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="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></div> <div class="space-y-1"><h2 class="text-base font-bold text-status-danger">Reset Password to Default</h2> <p class="text-xs leading-relaxed" style="color: var(--color-text-muted);">Authorized users can reset the gateway credential back to the default bootstrap password (<code>konohagakure</code>). This requires your current active password. Once reset, all active sessions terminate immediately and you will be returned to the login screen.</p></div></div> <!> <form class="space-y-4 max-w-lg"><div><label for="settings-reset-current-password" class="block text-xs font-bold uppercase tracking-wider mb-1" style="color: var(--color-text-muted);">Authorize with Current Password</label> <input id="settings-reset-current-password" placeholder="Enter current password to verify authority" required="" class="w-full px-3.5 py-2.5 rounded-[3px] text-xs font-mono border login-field-effect input-theme" style="background-color: var(--color-surface); color: var(--color-text);" autocomplete="current-password"/></div> <div class="pt-2"><button type="submit" class="px-6 py-2.5 rounded-[3px] text-xs font-bold text-white transition-all duration-200 cursor-pointer shadow-lg disabled:opacity-50 disabled:cursor-not-allowed hover:brightness-110 active:scale-[0.98] bg-status-danger hover:bg-status-danger"><!></button></div></form></div></div>`);function x(e,x){ne(x,!0);let S=f(``),C=f(``),w=f(``),T=f(!1),E=f(!1),D=f(``),O=f(!1),k=f(``),A=f(!1),j=f(``),M=f(!1);async function ce(e){if(e.preventDefault(),g(D,``),g(O,!1),!s(C)||s(C).length<8)g(D,`New password must be at least 8 characters long.`),g(O,!0);else if(!s(S))g(D,`Enter your current password.`),g(O,!0);else if(s(C)!==s(w))g(D,`New password and confirmation do not match.`),g(O,!0),v.warning(`New password and confirmation do not match.`);else{g(E,!0);try{await y.changePassword(s(S),s(C)),v.success(`Password updated successfully! Logging out to verify new credentials...`),g(S,``),g(C,``),g(w,``)}catch(e){g(D,e.message||`Failed to update password.`,!0),g(O,!0),v.error(`Failed to update password: `+(e.message||`Error`))}finally{g(E,!1)}}}async function le(e){if(e.preventDefault(),g(j,``),g(M,!1),!s(k))g(j,`Enter your current password to authorize reset.`),g(M,!0);else if(await ie({title:`Reset Password to Default?`,message:`Are you sure you want to reset your password back to default (konohagakure)? All active sessions will be terminated immediately.`,confirmText:`Reset Password`,variant:`danger`})){g(A,!0);try{await y.resetPassword(s(k)),v.success(`Password reset to default (konohagakure). Logging out to login page...`),g(k,``)}catch(e){g(j,e.message||`Failed to reset password.`,!0),g(M,!0),v.error(`Failed to reset password: `+(e.message||`Error`))}finally{g(A,!1)}}}var N=se();{let e=e=>{var a=oe(),o=i(a),s=_(o);h(a),t(()=>{m(a,1,`inline-flex items-center gap-1.5 px-3 py-1 rounded-[3px] text-xs font-semibold border ${y.isBootstrap?`bg-status-warning-soft text-status-warning border-status-warning-soft`:`bg-status-success-soft text-status-success border-status-success-soft`}`),m(o,1,`w-2 h-2 rounded-full ${y.isBootstrap?`bg-status-warning`:`bg-status-success`}`),n(s,` ${y.isBootstrap?`Bootstrap Credential Active`:`Hardened Argon2 Password Active`}`)}),r(e,a)};var ue=i(N);ae(ue,{title:`Security & Settings`,badgeText:`Argon2id Encrypted Authentication`,description:`Manage your Konoha Console access credentials, sessions, and security posture with Argon2id encryption.`,get actions(){return e}});var P=_(ue,2),F=_(i(P),2),de=e=>{var i=b(),a=u(i,!0);t(()=>{p(i,`role`,s(O)?`alert`:`status`),m(i,1,`p-3 rounded-[3px] text-xs font-semibold border animate-in fade-in ${s(O)?`badge-status badge-status-danger`:`badge-status badge-status-success`}`),n(a,s(D))}),r(e,i)};o(F,e=>{s(D)&&e(de)});var I=_(F,2),L=i(I),R=_(i(L),2);l(R),h(L);var z=_(L,2),B=_(i(z),2);l(B),h(z);var V=_(z,2),H=_(i(V),2);l(H),h(V);var U=_(V,2),W=i(U),G=i(W);l(G),te(),h(W),h(U);var K=_(U,2),q=i(K),fe=i(q),pe=e=>{var t=a(`Updating Password...`);r(e,t)},me=e=>{var t=a(`Save New Password (Argon2id)`);r(e,t)};o(fe,e=>{s(E)?e(pe):e(me,-1)}),h(q),h(K),h(I),h(P);var J=_(P,2),Y=_(i(J),2),he=e=>{var i=b(),a=u(i,!0);t(()=>{p(i,`role`,s(M)?`alert`:`status`),m(i,1,`p-3 rounded-[3px] text-xs font-semibold border animate-in fade-in ${s(M)?`badge-status badge-status-danger`:`badge-status badge-status-success`}`),n(a,s(j))}),r(e,i)};o(Y,e=>{s(j)&&e(he)});var X=_(Y,2),Z=i(X),Q=_(i(Z),2);l(Q),h(Z);var ge=_(Z,2),$=i(ge),_e=i($),ve=e=>{var t=a(`Resetting Credential...`);r(e,t)},ye=e=>{var t=a(`Reset to Default Password (konohagakure)`);r(e,t)};o(_e,e=>{s(A)?e(ve):e(ye,-1)}),h($),h(ge),h(X),h(J),h(N),t(()=>{p(R,`type`,s(T)?`text`:`password`),p(B,`type`,s(T)?`text`:`password`),p(H,`type`,s(T)?`text`:`password`),q.disabled=s(E),p(Q,`type`,s(T)?`text`:`password`),$.disabled=s(A)}),c(`submit`,I,ce),d(R,()=>s(S),e=>g(S,e)),d(B,()=>s(C),e=>g(C,e)),d(H,()=>s(w),e=>g(w,e)),re(G,()=>s(T),e=>g(T,e)),c(`submit`,X,le),d(Q,()=>s(k),e=>g(k,e))}r(e,N),ee()}export{x as component};
@@ -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);