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
@@ -16,6 +16,16 @@ const { isKonohaRepository, KONOHA_CANONICAL_TOOLS } = require('./deploy_utils')
16
16
  const { checkCommandGuardrails } = require('./guardrails');
17
17
  const { isTrustedKonohaTaskReadPath } = require('./hook-base');
18
18
  const { isReadOnlyAgent } = require('./agent_file_safety');
19
+ const {
20
+ readGuardrailExceptions,
21
+ recordGuardrailException,
22
+ revokeGuardrailExceptions,
23
+ appendGuardrailAudit,
24
+ guardrailExceptionsPath,
25
+ guardrailAuditPath,
26
+ GUARDRAIL_STATE_FILES,
27
+ NON_ACCEPTABLE_CODES
28
+ } = require('./guardrail_exceptions');
19
29
 
20
30
  const SUPPORTED_HARNESSES = Object.freeze([
21
31
  'antigravity',
@@ -252,7 +262,78 @@ function _denyResult(harness, repoRoot, code, reason) {
252
262
  };
253
263
  }
254
264
 
265
+ /**
266
+ * A denial is a decision point, not a dead end. Every code names the Konoha
267
+ * route that satisfies the rule, so "block and try another way" is actionable.
268
+ */
269
+ const GUARDRAIL_REMEDIATION = Object.freeze({
270
+ KONOHA_MCP_REQUIRED_READ: 'konoha:read_file_range, konoha:read_file_head, or konoha:file_info',
271
+ KONOHA_MCP_REQUIRED_SEARCH: 'konoha:code_search, konoha:code_symbol, konoha:code_impact, or konoha:token_efficient_grep',
272
+ KONOHA_MCP_REQUIRED_DISCOVERY: 'konoha:find_files_clean',
273
+ KONOHA_MCP_REQUIRED_STRUCTURE: 'konoha:get_file_structure or konoha:code_symbol',
274
+ READ_ONLY_AGENT_WRITE_DENIED: 'hand the write to a write-capable agent such as @anbu or @jonin',
275
+ RETIRED_LEGACY_IPC: 'JSONL transcripts and structured MCP tool arguments',
276
+ SECRET_FILE_WRITE_DENIED: 'no alternative; secrets stay outside the repository',
277
+ SHELL_GUARDRAIL_VIOLATION: 'an rtk-wrapped, non-destructive command',
278
+ RTK_REQUIRED: 'the same command prefixed with "rtk "',
279
+ RETIRED_LEGACY_MCP: 'konoha:find_skill, konoha:use_skills, or konoha:build_from_source',
280
+ GUARDRAIL_STATE_WRITE_DENIED: 'no alternative; a human accepts risk at a terminal, and the guard CLI writes the store'
281
+ });
282
+
283
+ function describeGuardrailRemediation(code) {
284
+ return GUARDRAIL_REMEDIATION[code] || 'a Konoha MCP tool that performs the same operation';
285
+ }
286
+
287
+ /**
288
+ * An exception covers one denial code for one tool. The target path is recorded
289
+ * for the audit trail but is not part of the match: search tools carry their
290
+ * pattern where file tools carry a path, so path equality would reject the very
291
+ * calls the human just approved.
292
+ */
293
+ function _exceptionCovers(entry, evalResult, toolName) {
294
+ if (entry.code !== evalResult.code) return false;
295
+ const tool = String(toolName || '').trim().toLowerCase();
296
+ return entry.tool === '*' || entry.tool === tool;
297
+ }
298
+
255
299
  function evaluateProjectMcpGuardrail(payload = {}, options = {}) {
300
+ const result = _evaluateProjectMcpGuardrailRaw(payload, options);
301
+ if (result.allowed) return result;
302
+ // Some denials have no acceptable form: no store entry can unblock them.
303
+ if (NON_ACCEPTABLE_CODES.includes(result.code)) return result;
304
+
305
+ const repoRoot = options.repoRoot || result.repo_root;
306
+ if (!repoRoot) return result;
307
+
308
+ let exceptions = options.exceptions;
309
+ if (!Array.isArray(exceptions)) {
310
+ try {
311
+ exceptions = readGuardrailExceptions(repoRoot);
312
+ } catch (_) {
313
+ exceptions = [];
314
+ }
315
+ }
316
+ if (exceptions.length === 0) return result;
317
+
318
+ const toolName = String(payload.tool_name || payload.toolName || payload.tool || '').trim();
319
+ const accepted = exceptions.find(entry => _exceptionCovers(entry, result, toolName));
320
+ if (!accepted) return result;
321
+
322
+ return _allowResult(
323
+ result.harness,
324
+ true,
325
+ repoRoot,
326
+ `Risk accepted by ${accepted.accepted_by} until ${accepted.expires_at}: ${accepted.justification}`,
327
+ {
328
+ code: 'RISK_ACCEPTED',
329
+ risk_accepted: true,
330
+ exception: accepted,
331
+ denied_code: result.code
332
+ }
333
+ );
334
+ }
335
+
336
+ function _evaluateProjectMcpGuardrailRaw(payload = {}, options = {}) {
256
337
  const harness = normalizeHarness(options.harness || payload.harness || payload.client);
257
338
  const scope = resolveKonohaProjectScope(payload, options);
258
339
 
@@ -343,6 +424,16 @@ function evaluateProjectMcpGuardrail(payload = {}, options = {}) {
343
424
  `[${harness}] Writing secret file "${baseName}" is forbidden in the Konoha repository.`
344
425
  );
345
426
  }
427
+ // The exception store is the bypass itself: a tool call that could write it
428
+ // would grant its own permission, so it is closed like a secret.
429
+ if (GUARDRAIL_STATE_FILES.includes(baseName)) {
430
+ return _denyResult(
431
+ harness,
432
+ scope.repoRoot,
433
+ 'GUARDRAIL_STATE_WRITE_DENIED',
434
+ `[${harness}] "${baseName}" records accepted guardrail risks and is written only by the guard CLI.`
435
+ );
436
+ }
346
437
  return _allowResult(harness, true, scope.repoRoot, 'File modification tool permitted in Konoha repository.');
347
438
  }
348
439
 
@@ -365,6 +456,16 @@ function evaluateProjectMcpGuardrail(payload = {}, options = {}) {
365
456
  `[${harness}] Shell command without rtk wrapper is rejected in the Konoha repository: prefix with "rtk <command>".`
366
457
  );
367
458
  }
459
+ // An rtk-wrapped `node -e` would otherwise reach the store the same way.
460
+ const stateFile = GUARDRAIL_STATE_FILES.find(name => command.includes(name));
461
+ if (stateFile) {
462
+ return _denyResult(
463
+ harness,
464
+ scope.repoRoot,
465
+ 'GUARDRAIL_STATE_WRITE_DENIED',
466
+ `[${harness}] "${stateFile}" records accepted guardrail risks and is written only by the guard CLI.`
467
+ );
468
+ }
368
469
  return _allowResult(harness, true, scope.repoRoot, 'Approved rtk-wrapped shell command.');
369
470
  }
370
471
 
@@ -513,6 +614,13 @@ module.exports = {
513
614
 
514
615
  function _writeTextIfDifferent(filePath, content) {
515
616
  fs.mkdirSync(path.dirname(filePath), { recursive: true });
617
+ // A tracked symlink would redirect this write to wherever it points, and a
618
+ // dangling one would make writeFileSync fail with ENOENT. Replace it instead.
619
+ let isLink = false;
620
+ try {
621
+ isLink = fs.lstatSync(filePath).isSymbolicLink();
622
+ } catch (_) { /* absent target */ }
623
+ if (isLink) fs.unlinkSync(filePath);
516
624
  if (fs.existsSync(filePath)) {
517
625
  try {
518
626
  if (fs.readFileSync(filePath, 'utf8') === content) return false;
@@ -559,5 +667,12 @@ module.exports = {
559
667
  formatHarnessDecision,
560
668
  handleHarnessToolCall,
561
669
  createHarnessInterceptor,
670
+ describeGuardrailRemediation,
671
+ readGuardrailExceptions,
672
+ recordGuardrailException,
673
+ revokeGuardrailExceptions,
674
+ appendGuardrailAudit,
675
+ guardrailExceptionsPath,
676
+ guardrailAuditPath,
562
677
  ensureProjectKonohaGuardPlugin
563
678
  };
@@ -73,6 +73,8 @@ function getSkillsScanDirs(_targetCwd = null) {
73
73
  path.join(HOME, '.opencode', 'skills'),
74
74
  path.join(HOME, '.codex', 'skills'),
75
75
  path.join(HOME, '.omp', 'agent', 'skills'),
76
+ path.join(HOME, '.omp', 'skills'),
77
+ path.join(HOME, '.pi', 'agent', 'skills'),
76
78
  ];
77
79
  return Array.from(new Set(dirs.filter(d => {
78
80
  try { return fs.existsSync(d) && fs.statSync(d).isDirectory(); } catch { return false; }
@@ -515,6 +517,7 @@ module.exports = {
515
517
  embedSkillInAgent,
516
518
  unembedSkillFromAgent,
517
519
  syncAllClientSkills,
520
+ getSkillsScanDirs,
518
521
  autoMigrateProjectSkills,
519
522
  scanSkillDirectory: skillGuardian.scanSkillDirectory,
520
523
  installSkillWithGuardian: skillGuardian.installSkillWithGuardian,
@@ -17,10 +17,10 @@ engines:
17
17
  # - Manager/handler functions are deliberately long, self-contained TUI/CLI
18
18
  # dispatchers. Thresholds are set at the measured max of this codebase (JSON-RPC
19
19
  quality:
20
- maxFunctionLoc: 150
21
- maxFileLoc: 700
20
+ maxFunctionLoc: 40
21
+ maxFileLoc: 400
22
22
  maxNesting: 3
23
- maxParams: 5
23
+ maxParams: 4
24
24
 
25
25
  security:
26
26
  audit: true
@@ -15,7 +15,7 @@
15
15
  NEVER run destructive commands (`rm -rf`, `DROP`, `git reset`) or view secrets (`.env*`).
16
16
 
17
17
  <!-- KONOHA-CONTRACT-START -->
18
- ## Konoha runtime contract (2.2.22)
18
+ ## Konoha runtime contract (2.2.23)
19
19
  main agent on Antigravity IDE/CLI. Mandatory every turn.
20
20
  - **Konoha is mandatory**: `find_skill`/`get_skill`; no raw cat/grep.
21
21
  - **Code intelligence is mandatory**: `code_search`/`code_symbol`/`code_impact`, absolute root.
@@ -15,7 +15,7 @@
15
15
  NEVER run destructive commands (`rm -rf`, `DROP`, `git reset`) or view secrets (`.env*`).
16
16
 
17
17
  <!-- KONOHA-CONTRACT-START -->
18
- ## Konoha runtime contract (2.2.22)
18
+ ## Konoha runtime contract (2.2.23)
19
19
  main agent on Antigravity IDE/CLI. Mandatory every turn.
20
20
  - **Konoha is mandatory**: `find_skill`/`get_skill`; no raw cat/grep.
21
21
  - **Code intelligence is mandatory**: `code_search`/`code_symbol`/`code_impact`, absolute root.
@@ -96,10 +96,7 @@ Anbu automatically detects and enforces idiomatic polyglot toolchains wrapped wi
96
96
  2. Explore routes and interactions with a throwaway Playwright script using scoped `locator(scope).ariaSnapshot()`; author deterministic flow files (`<test-dir>/e2e/flows/*.json`).
97
97
  3. Codify deterministically via `qa_codify`; run regression test suites via `qa_e2e_run`. `qa_codify` compiles the flow, runs it with project Playwright, and returns `{ error: 'qa_blocked', reason: 'playwright-not-installed' }` when Playwright cannot be resolved.
98
98
  4. Strictly enforce no fake green: never skip tests, suppress errors, or inflate timeouts artificially.
99
-
100
- ---
101
-
102
- 4. For live interactive debugging, launch headed QA inside the isolated Docker browser workspace (`qa_e2e_run` with `headed: true, live: true` or `konoha browser qa`) and inspect via the loopback `viewer_url` reported in `GET /api/v1/activity/live` or CLI output; under `CI=1`, Playwright always stays headless without starting Docker viewer containers.
99
+ 5. For live interactive debugging, pass `headed: true` to `qa_e2e_run` and watch the visible Chromium window on the host: the run adds `--headed` and `KONOHA_PW_HEADED=1`, so the project's own config launches `headless: false`. There is no container, no second browser instance, and no viewer URL; under `CI=1` the flag is dropped and the same suite stays headless.
103
100
 
104
101
  ## Universal Shinobi Guardrails & Safety Invariants
105
102
 
@@ -54,10 +54,10 @@ pnpm exec playwright install chromium # browsers, when the probe says the bina
54
54
  > [!WARNING]
55
55
  > Playwright is invoked through the project's own package manager (`pnpm exec playwright`), so the target project owns the version, the browser cache, and `PLAYWRIGHT_BROWSERS_PATH`. Do not reach for a global CLI or `npx`: a second install diverges from the project's pinned browser build and produces version-skew failures that look like product bugs.
56
56
 
57
- ## Live Headed Docker Browser Workspace (Optional Interactive Mode)
58
- - Pass `headed: true, live: true` (plus optional `session_id`, `playwright_ui`, `timeout_ms`) to `qa_e2e_run` / `qaE2eRunAsync` (or run `konoha browser qa`) to run Chromium headed inside `docker/browser-workspace.Dockerfile` (`Xvfb :99`, `x11vnc`, `noVNC`, `/tmp/konoha-browser-agent.sock`).
59
- - `CI=1` automatically forces headless Playwright and skips Docker viewer startup so CI runs stay unaffected.
60
- - Viewer and Playwright UI endpoints bind exclusively to `127.0.0.1` and never mount host home dirs, personal browser profiles, `.env*`, or `konoha.db`.
57
+ ## Headed Execution (Optional Interactive Mode)
58
+ - Pass `headed: true` (plus optional `grep`, `max_failures`, `timeout_ms`) to `qa_e2e_run` / `qaE2eRunAsync` to run the project's own Playwright with a visible Chromium window on the host. No container, no viewer process, no second browser instance.
59
+ - `CI=1` forces headless Playwright and ignores the flag, so pipelines stay unaffected.
60
+ - Artifacts stay on the host under `~/.konoha/tmp/qa/<run_id>/`, so every path in the report opens directly.
61
61
 
62
62
  ## Playwright Overrides for Agent Runs
63
63
 
@@ -81,7 +81,7 @@ When scaffolding a fresh project or interface from text descriptions:
81
81
  7. **Automatic Project Frontend Maintenance Skill (`project_skill_generator.js`)**: After frontend generation, run `generateAndIndexProjectFrontendSkill` (`src/workflow/jonin-builder/project_skill_generator.js`) to generate `<project_path>/.agents/skills/<project-slug>-frontend-maintenance/SKILL.md` and index it into `konoha.db` (`skills`, `skills_fts`, `skill_chunks`) isolated by `project_hash`.
82
82
  8. **Zero Errors & Zero Warnings Completion Gate**: Do not claim completion until every framework validation command (`pnpm run build`, `pnpm run lint`, `pnpm run test`, `pnpm run check`) passes cleanly with 0 errors and 0 warnings.
83
83
 
84
- 7. **Isolated Live Docker Browser Mode (`workspaceMode: 'docker-headed'`)**: When a live interactive browser workspace is requested, pass `workspaceMode: 'docker-headed'` to `live_browser_monitor.js` (or `konoha browser start`) to serve headed Chromium inside `docker/browser-workspace.Dockerfile` with SwiftShader WebGL, responsive viewport/collision probing, and `build_id` / `fresh` reload verification at `127.0.0.1` without touching host profiles or secrets.
84
+ 7. **Headed Verification on the Host Playwright**: When a visible browser is requested, `runLiveBrowserMonitor` opens the served page in the system browser (`xdg-open` / `open` / `start`), and `qa_e2e_run({ headed: true, project_path })` runs the project's own Playwright with `--headed` plus `KONOHA_PW_HEADED=1`. There is no container and no separate workspace session: nothing is mounted, no `127.0.0.1` proxy is needed, and `CI=1` keeps the same suite headless.
85
85
 
86
86
  ### Mode 3: Build from Source Website (`build_from_source` with Live URL or Multi-File Source)
87
87
  When cloning, migrating, or reconstructing a live website URL or multi-file web source:
@@ -11,7 +11,7 @@ tags:
11
11
  - fts5
12
12
  ---
13
13
 
14
- # 🍃 Konoha Maintenance & Engineering Skill (v2.2.22)
14
+ # 🍃 Konoha Maintenance & Engineering Skill (v2.2.23)
15
15
 
16
16
  Core operational guide for maintaining, extending, and debugging the **Konoha MCP Tools Orchestrator**, native Tree-sitter + FTS5 + Granite/MiniLM code-intelligence engine, and multi-agent coordination server.
17
17
 
@@ -36,8 +36,8 @@ Konoha serves ALL 56 canonical tools through standard MCP protocols across 8 sup
36
36
  - Bounded file I/O: ALWAYS use Konoha bounded tools (`read_file_range`, `read_file_head`, `token_efficient_grep`).
37
37
  - Shell commands: ALWAYS prefix with RTK (`rtk <command>`).
38
38
  - Global-Only & Append-Only Client Configs: Never write `.omp`, `.codex`, `.cursor`, `.claude`, `.agents`, or `.gitignore` rules (such as `/PLAN.md` or `.omp/.`) into user project directories; all client configs live under user home (`~/.omp`, `~/.codex`, `~/.cursor`, `~/.config/git/ignore`, etc.) and use automatic date-stamped backups (`~/.konoha/backups/configs/<client>/<scope>/`) + syntax-aware append-only merging (`src/config_backup_manager.js`, `src/config_merger.js`) with ownership tracking (`~/.konoha/backups/ownership_manifest.json`). Konoha never deletes external `agents/` or `conversations/` directories.
39
- - Ownership-Aware Rsync-Like Global Skill Sync & Targeted Diff-and-Patch (`src/global_skill_sync.js`): all 17 canonical Konoha skills, their references (including the cross-framework Motion references `motion-nextjs`, `motion-nuxt`, `motion-svelte`, `motion-angular`, `framer-motion-animator` under `jonin-skill`), and `SOUL.md` are synchronized across the ten global skill directories of the eight supported clients (`~/.agents/skills`, `~/.gemini/antigravity-cli/skills`, `~/.gemini/skills`, `~/.cursor/skills`, `~/.claude/skills`, `~/.config/opencode/skills`, `~/.commandcode/skills`, `~/.codex/skills`, `~/.pi/agent/skills`, `~/.omp/agent/skills`). The source is `src/templates/skills`; `.agents/` is a deployed mirror and is gitignored. Fresh installs skip pre-existing user files (`--ignore-existing`), upgrades apply targeted line diff-and-patch updates (`computeLineDiffPatch` / `applyTargetedTextPatch`) while preserving user customizations, and a file recorded as `created_by_konoha` with no user keys is replaced wholesale instead of being left stale.
40
- - No Filesystem Mirrors: Konoha does not maintain filesystem mirrors of client skills; synchronization is targeted line diff-and-patch in place. No tracked copy of a skill exists outside `src/templates/skills` either — deployed copies live under the user's home, so there is no second tree to drift.
39
+ - Ownership-Aware Rsync-Like Global Skill Sync & Targeted Diff-and-Patch (`src/global_skill_sync.js`): all 17 canonical Konoha skills, their references (including the cross-framework Motion references `motion-nextjs`, `motion-nuxt`, `motion-svelte`, `motion-angular`, `framer-motion-animator` under `jonin-skill`), and `SOUL.md` are synchronized across the ten global skill directories of the eight supported clients (`~/.agents/skills`, `~/.gemini/antigravity-cli/skills`, `~/.gemini/skills`, `~/.cursor/skills`, `~/.claude/skills`, `~/.config/opencode/skills`, `~/.commandcode/skills`, `~/.codex/skills`, `~/.pi/agent/skills`, `~/.omp/agent/skills`). The source is `src/templates/skills`; `~/.agents/skills` is a deployed mirror, while this repository tracks its own `.agents/skills/` and pins it byte-identical to the templates. Fresh installs skip pre-existing user files (`--ignore-existing`), upgrades apply targeted line diff-and-patch updates (`computeLineDiffPatch` / `applyTargetedTextPatch`) while preserving user customizations, and a file recorded as `created_by_konoha` with no user keys is replaced wholesale instead of being left stale.
40
+ - No Filesystem Mirrors: Konoha does not maintain filesystem mirrors of client skills; synchronization is targeted line diff-and-patch in place. Outside this repository no tracked copy of a skill exists: deployed copies live under the user's home. The one tracked duplicate is this repo's `.agents/skills/`, held byte-identical to `src/templates/skills` by `tests/test_skill_tree_parity.js`.
41
41
  - Scoped Execution & External Skill RAG Integration: Hooks and tool blockers activate only inside Konoha-managed contexts (`/konoha <prompt>` or `/<subagent-name> <prompt>`). External global and project-level skills across all 8 harnesses are indexed in-place into the existing SQLite Project Knowledge RAG (`~/.konoha/konoha.db`) with strict project isolation (`isPathVisible`) so project skills never leak across workspaces.
42
42
  - Project Skills Outrank the Index: `getSkillReadRoots()` (`src/mcp/skills_common.js`) resolves the project's own tree — `.agents/skills` and the sixteen `PROJECT_SKILL_SUBDIRS` — ahead of client mirrors, and `findSkill`/`listSkills` merge those rows with the database. Never make a project migrate before its skills are usable, and never let a Konoha skill shadow a project skill of the same name. `tests/test_project_skills_dual_source.js` is the guard.
43
43
  - Extension Isolation: The obsolete `andycungkrinx91.konoha-bridge-master-universal` extension directory is eliminated; all IDEs use direct MCP configuration.
@@ -49,11 +49,11 @@ Konoha serves ALL 56 canonical tools through standard MCP protocols across 8 sup
49
49
  5. **Single-Source Version Synchronization**: Keep all 18 managed repository targets strictly synchronized via `scripts/bump_version.js`. The manifest is the source of truth — read the count from `rtk node scripts/bump_version.js --check`, never hardcode it in prose or code. `src/templates/skills/konoha/SKILL.md` is not a managed target, so this skill's own title is edited by hand.
50
50
  6. **Release Governance**: When maintaining or updating Konoha on branch `master`, ensure all discovered tests pass before release commits.
51
51
  7. **Token Savings Flow Logic Preservation Invariant**: Never modify or disrupt the token savings telemetry flow logic. In `src/tools_savings_logger.js`, baseline bytes for `find_skill` / `find_skills` are dynamically computed from the actual `SUM(byte_size)` of retrieved skill candidates in SQLite FTS5 matching, authentically reflecting 83%–98% context savings.
52
- 8. **Schema Version Is Not the App Version**: `src/db_schema.js` owns `CURRENT_SCHEMA_VERSION` (8 today), the shipped `PRAGMA user_version` write, and the canonical 45 raw / 33 declared table list. Never reintroduce a version-derived schema constant — a `TARGET_SCHEMA_VERSION = 2218` once shipped and was removed in 2.2.18. `konoha doctor` reports `schema 8` and `app 2.2.22` separately and warns on drift; `tests/test_schema_migrations_and_lifecycle.js` fails if a second writer appears or the table count moves.
52
+ 8. **Schema Version Is Not the App Version**: `src/db_schema.js` owns `CURRENT_SCHEMA_VERSION` (9 today), the shipped `PRAGMA user_version` write, and the canonical 45 raw / 33 declared table list. Never reintroduce a version-derived schema constant — a `TARGET_SCHEMA_VERSION = 2218` once shipped and was removed in 2.2.18. `konoha doctor` reports `schema 9` and `app 2.2.23` separately and warns on drift; `tests/test_schema_migrations_and_lifecycle.js` fails if a second writer appears or the table count moves.
53
53
  9. **Red-Skill Isolation Fails Closed**: `src/skill_authorization.js` classifies a skill by exact canonical name → `RED_SKILL_ROOT_PATTERN` (`^(?:akatsuki-skill)(?:[-_/@]|$)`) → legacy pattern → tags, and `src/mcp/skills_retrieval.js` resolves the row before authorizing it. Lab databases are rejected when they alias the main DB (same path, symlink, dangling symlink, hardlink), and any `stat` error other than `ENOENT`/`ENOTDIR` raises `LAB_DB_ISOLATION_VIOLATION` (`src/db.js`). Never widen those predicates "to be tolerant": this gate is what stops offensive tooling loading outside the sandbox.
54
54
  10. **Cyber Pack Is Opt-In, Never Bundled**: the pack is downloaded only via `konoha akatsuki cyber-pack install --confirm`, sha256-verified, extracted under `~/.konoha/akatsuki-lab/cyber-pack/`, and indexed as `akatsuki-skill` references. `src/cyber_pack.js#remove` must keep using the deduped union of `bin/lib/paths.js#DEFAULT_SKILLS_DIRS` and `src/global_skill_sync.js#getGlobalHarnessSkillTargets`; the two lists still differ (the search list keeps the legacy `~/.opencode/skills`), and hardcoding either one is the bug that left copies behind.
55
55
  11. **Migration Runs In-Process**: every caller awaits `runMigration({...})` from `src/migrate` — `bin/lib/install_lifecycle.js`, `bin/lib/runtime_lifecycle.js`, `bin/commands/migrate.js`, `bin/commands/upgrade.js`, `bin/commands/init_migration.js`, `bin/commands/doctor_services.js`, `src/skill_manager.js`, `src/web/controllers/skills_controller.js`. Never restore `spawnSync(process.execPath, [...migrate.js...])`: it hid every failure behind `status !== 0`. Success returns `{ ok: true, indexed, deferredSkills, dbPath }`; incomplete required skills return `{ ok: false, reason: 'required_skills_missing', missingRequired, remainingLegacy }`. Only `main()` exits the process.
56
- 12. **Time Budgets Come From Config**: `bin/lib/config_defaults.js` holds the shipped defaults as code (71 keys, including `migrate_time_budget_seconds` 900, `install_build_migrate_timeout_ms` 900000, and the `mcp_orphan_parent_poll_ms` / `mcp_stdio_idle_timeout_ms` / `mcp_daemon_superseded_poll_ms` orphan-guard polls) so an upgrade never rewrites the user's `~/.konoha/config.json`; `bin/lib/paths.js` derives `MIGRATION_TIMEOUT_MS` / `INSTALL_BUILD_MIGRATE_TIMEOUT_MS` from them. No `timeout: 900000` literal may reappear on the install path (`tests/test_config_centralization.js`, `tests/test_upgrade_timeout_budgets.js`).
56
+ 12. **Time Budgets Come From Config**: `bin/lib/config_defaults.js` holds the shipped defaults as code (70 keys, including `migrate_time_budget_seconds` 900, `install_build_migrate_timeout_ms` 900000, and the `mcp_orphan_parent_poll_ms` / `mcp_stdio_idle_timeout_ms` / `mcp_daemon_superseded_poll_ms` orphan-guard polls) so an upgrade never rewrites the user's `~/.konoha/config.json`; `bin/lib/paths.js` derives `MIGRATION_TIMEOUT_MS` / `INSTALL_BUILD_MIGRATE_TIMEOUT_MS` from them. No `timeout: 900000` literal may reappear on the install path (`tests/test_config_centralization.js`, `tests/test_upgrade_timeout_budgets.js`).
57
57
  13. **Mirrored Modules Load Config Through `src/config_access.js`**: `copyRuntimeConfigFiles` mirrors top-level `src/*.js` flat into `~/.konoha/`, so `require('../bin/lib/paths')` escapes to `~/bin/lib/paths` at runtime. Any `src/` module that may execute from the mirror must go through `config_access`, which tries `../bin/lib`, `./bin/lib`, `../../bin/lib`.
58
58
  14. **Upgrade Success Requires PATH Agreement**: `konoha upgrade` runs the PATH-resolved `konoha --version` and compares it with the installed package (`bin/lib/upgrade_verify.js`). A missing binary, a rename, or output without a version line exits `1`. Never restore the old "located package root equals itself" comparison, which printed success while `konoha version` reported the previous release.
59
59
  15. **No Install Scripts**: `postinstall` is deleted (npm aborts stock installs with `EALLOWSCRIPTS`). The supported flow is `npm install -g konoha-mcp` → `konoha init --yes` or `konoha upgrade`. `tests/test_postinstall_contract.js` no longer exists — do not cite or recreate it.
@@ -63,7 +63,17 @@ Konoha serves ALL 56 canonical tools through standard MCP protocols across 8 sup
63
63
  19. **A Server Nobody Owns Must Exit**: `src/mcp_orphan_guard.js` gives both long-lived entry points a self-terminating path. `startStdioOrphanGuard` polls `process.ppid === 1` every `mcp_orphan_parent_poll_ms` (30 s; `KONOHA_MCP_ORPHAN_POLL_MS` is a test seam, not user config) and exits when the spawning client died, so a stdio server orphaned by a short-lived launcher does not hold the bridge port or the database; `noteActivity()` on every `readline` line feeds a `mcp_stdio_idle_timeout_ms` (4 h; `KONOHA_MCP_STDIO_IDLE_MS`, same seam) idle budget, which is the only exit Windows has because Windows does not reparent children and `ppid` never becomes 1 there. `startDaemonOrphanGuard` claims `bridge.pid` and exits when a newer live daemon takes it over. Never remove the guard to "simplify startup": stdin EOF is not a reliable exit signal (a launcher that exits tears down its own pipe), so the poll is the only path that survives a reparent. Guards: `tests/test_mcp_orphan_guard.js`.
64
64
  20. **The Web UI Starts Only by Hand**: `konoha ui` exposes exactly `start` (foreground, blocking) and `build`. Nothing auto-starts it — not `init`, not `upgrade`, not the MCP stdio bootstrap. A second `konoha ui start` on a port that is already listening exits 1 with `already running`; `assertSingleInstance` probes the port before binding. Guard: `tests/test_ui_manual_only.js`.
65
65
 
66
- 21. **A Delivery Verdict Needs All Three Local Cross-Platform CI Environments**: cross-platform end-to-end verification is mandatory, never optional. A change counts as done only after Linux, Windows, and macOS all pass — a single-OS green is not a verdict. Exercise all 3 local cross-platform CI test environments before handoff: (1) **Linux**: Debian clean-room `pnpm test:sandbox [-- --shard=I/8]` + Ubuntu `act` `pnpm ci:act` / `pnpm ci:act:shard` (`act -j checks` / `act -j test --matrix os:ubuntu-latest --matrix shard:<N>`, `.actrc` pins `catthehacker/ubuntu:act-latest`); (2) **Windows**: `docker/windows-vm/oem/run-ci.cmd [-Shard I/N]` / `retest.cmd` inside `dockur/windows` (`scripts/windows-ci.ps1`); (3) **macOS**: `KONOHA_SANDBOX_RUNTIME=container pnpm test:sandbox [-- --shard=I/8]` via Apple `container`, plus native `macos-latest` CI (or the Linux symlinked-`HOME` proxy for `/var` → `/private/var` and APFS path checks in `docs/CI.md`). `.github/workflows/cross-platform.yml` also runs on push, PR, tag, manual dispatch, and nightly at 02:00 UTC.
66
+ 21. **A Delivery Verdict Needs All Three Local Cross-Platform CI Environments**: cross-platform end-to-end verification is mandatory, never optional. A change counts as done only after Linux, Windows, and macOS all pass — a single-OS green is not a verdict. Exercise all 3 local cross-platform CI test environments before handoff: (1) **Linux**: Debian clean-room `pnpm test:sandbox [-- --shard=I/8]` + Ubuntu `act` `pnpm ci:act` / `pnpm ci:act:shard` (`act -j checks` / `act -j test --matrix os:ubuntu-latest --matrix shard:<N>`, `.actrc` pins `catthehacker/ubuntu:act-latest`); (2) **Windows**: `docker/windows-vm/oem/run-ci.cmd [-Shard I/N]` / `retest.cmd` inside `dockur/windows` (`scripts/windows-ci.ps1`; the guest runs the full suite in one pass by default — CI's shards parallelize 16 separate runners, so use `-Shard` to narrow one failure, not to reproduce the matrix); (3) **macOS**: `KONOHA_SANDBOX_RUNTIME=container pnpm test:sandbox [-- --shard=I/8]` via Apple `container`, plus native `macos-latest` CI (or the Linux symlinked-`HOME` proxy for `/var` → `/private/var` and APFS path checks in `docs/CI.md`). `.github/workflows/cross-platform.yml` also runs on push, PR, tag, manual dispatch, and nightly at 02:00 UTC.
67
+
68
+ 22. **No Dynamic Execution, Anywhere in the Runtime**: `src/`, `bin/`, and `scripts/` contain no `eval(`, no `new Function(`, no `Function('…')`, and no `node:vm` code generation. The generated guardrail hooks (`src/mcp_clients/command_code.js`, `src/mcp_clients/claude_code_hooks.js`, `src/pi_blocker_template.js`) embed `buildGuardrailCheckerSource()` verbatim as `const checkCommandGuardrails = function checkCommandGuardrails(command) {...}` — never wrap it in `new Function(source)()` and never `JSON.stringify` it into a string. `tests/test_no_dynamic_execution.js` scans every runtime file, then executes the generated hooks to prove deny/block/allow/unmanaged still behave.
69
+ 23. **`lodash` Must Never Return (`patches/xlsx-populate@1.21.0.patch`)**: `xlsx-populate@1.21.0` is the only thing that ever pulled it, and its `template()` compiles strings with `Function`. The patch replaces all 19 `require("lodash")` sites with `lib/lodash-lite.js` (27 helpers, lodash-4 semantics) and deletes `browser/` (13.9 MiB webpack bundle, 52 `Function(` occurrences) plus `examples/` and the `browser` manifest field. Konoha resolves `main: lib/XlsxPopulate.js` only. Regenerating the patch from a fresh package loses the shim — `tests/test_xlsx_populate_lodash_lite.js` (74 semantics + XLSX round-trip) and `tests/test_dependency_posture.js` fail if it does.
70
+ 24. **Patched and Bundled Dependencies Are Pinned Exactly**: `xlsx-populate`, `pptxgenjs`, `cfb`, `docx`, `playwright`, and `hash-wasm` carry exact versions (no `^`/`~`), and `.github/workflows/publish.yml` installs with `--frozen-lockfile`. A caret on a patched or bundled package lets the lockfile and the published tarball disagree about which bytes shipped. `tests/test_dependency_posture.js` enforces both.
71
+ 25. **Images Enter the Presentation Engine as Buffers, Never Paths**: `pptxgenjs` turns `addImage({ path })` into `fs.readFileSync` and `{ path: 'http…' }` into an HTTPS GET. `src/workflow/tokubetsu-scribe/doc_engine_presentation.js` exposes `addInlineImage(slide, buffer)`, which requires an in-memory PNG (magic-byte checked) and emits a base64 data URI; it holds the file's only `addImage` call site. `tests/test_document_engine_security.js` fails if a second call site or a `path:` key appears.
72
+ 26. **Socket Suppressions Are Narrowed, Never Widened**: `socket.yml` keeps `envVars`, `urlStrings`, `networkAccess`, `gptSecurity`, `gptAnomaly`, and `newAuthor` suppressed because those describe Konoha's documented contract. It must **not** suppress `usesEval` (nothing dynamic executes, and no patched package ships a browser bundle) and must **not** list `pnpm-lock.yaml` or `patches/**` in `projectIgnorePaths` (dependency and patch changes are exactly what needs auditing). Suppressing an alert is not a fix; it is a written claim that the capability is intended, and `tests/test_socket_security_audit.js` asserts the claim stays honest.
73
+ 27. **The Per-Turn Prefix Is a Budget, Not a Dumping Ground**: what Konoha injects into a harness prompt is paid on *every* request, so it is governed like any other contract. `buildManagedContract` (`src/agent_contract.js`) removes **every** `KONOHA-CONTRACT-START`…`KONOHA-CONTRACT-END` span before writing the fresh block — splicing only the first pair left a second block forever, made redeploy a permanent no-op, and put two contract versions in one file. `buildOmpWorkflowAddendum` (`src/omp_manager.js`) carries *rules only*: framework scaffolding commands and scan-scoping procedure live in `jonin-skill` / `konoha` references, which load on demand. Only one user-level context file is injected per harness (`~/.omp/agent/AGENTS.md` shadows `~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md`, `~/.gemini/GEMINI.md`, `~/.config/opencode/AGENTS.md`, `~/.agents/AGENTS.md` for OMP), and `~/.omp/AGENTS.md` is not a context file at all — the native user path is `~/.omp/agent/AGENTS.md`. Guards: `tests/test_lightweight_contracts.js` (addendum ≤ 4200 B, managed contract ≤ 5200 B, second deploy `changed: false`) and the duplicate-block regression in `tests/test_omp_manager.js`. Never quote a cache-hit rate from `tool_calls`: its `input_tokens` / `output_tokens` / `cached_tokens` columns exist in `src/db_schema.js` but nothing on the MCP path writes them.
74
+
75
+ 28. **A Path Is Not Whitespace-Delimited**: any code that turns a string into a command must survive an executable path containing spaces, because that is the Windows default (`C:\Program Files\nodejs\node.exe`) rather than an edge case. `_parseCommandSpec` (`src/code_intel/lsp_manager.js`) accepted only a whitespace-split string and therefore resolved `C:\Program`, so every LSP leg reported `server binary missing` on Windows while passing on Linux and macOS. The rule: take an **array** as the unambiguous form (element 0 verbatim), honour `"…"`/`'…'` quoting in the string form, and report an unquoted spaced path as a missing binary instead of silently resolving a prefix — a wrong-but-plausible command is worse than a refusal. `src/platform_utils.js#normalizeCommand` already follows this shape; copy it rather than writing a new splitter.
76
+ 29. **A Payload Gate Measures the Worst Client, and a Call Carried as Data Is Not Repeated in Prose**: `runSannin` output is capped by `tests/test_e2e_install_upgrade_reinstall.js`, and a cap that reads `detectActiveClient()` is not a gate — the same commit reported 2 951 bytes on one host and 3 315 on another, because OMP native `task(...)` is the longest spawn form of the ten. The loop now pins `server.ACTIVE_CLIENT` for each client, keeps the maximum, and names it in the failure. The other half is dedupe: `advisor_spawn_directive` exists to carry the advisor spawn call as a field, so interpolating the same string into `instructions` pays for it twice (~299 B per response on OMP). Point at the field instead. A field nothing reads is not "carried" — delete it: `buildAdvisorStartupDirective` built a markdown `directive` string no caller consumed, while `supported_native` is asserted per client by `tests/test_subagent_spawning_p0.js` and stays. Raising a cap is the last resort; if it moves, the new number is measured across every client and recorded in `docs/QA-TEST-CHECKLIST.md`.
67
77
 
68
78
  ---
69
79
 
@@ -83,6 +93,15 @@ rtk node tests/test_all_assets_webp.js
83
93
  # Verify LangGraph.js workflow activation (file keeps its historical v2217 name)
84
94
  rtk node tests/test_langgraph_v2217.js
85
95
 
96
+ # Verify the runtime is free of dynamic execution and the emitted hooks still guard
97
+ rtk node tests/test_no_dynamic_execution.js
98
+
99
+ # Verify supply-chain posture (no lodash, patch intact, exact pins, frozen publish install)
100
+ rtk node tests/test_dependency_posture.js
101
+ rtk node tests/test_xlsx_populate_lodash_lite.js
102
+ rtk node tests/test_document_engine_security.js
103
+ rtk node tests/test_socket_security_audit.js
104
+
86
105
  # Verify cross-platform install, upgrade, schema, and runtime-mirror integrity
87
106
  rtk node tests/test_install_layout_integrity.js
88
107
  rtk node tests/test_install_lifecycle_and_db_preservation.js
@@ -122,18 +141,20 @@ rtk npx aislop scan --changes
122
141
  ## 🛡️ Code-Intel, Guardrail & Subagent Contracts
123
142
 
124
143
  - **HF Cache Parity (`src/hf_cache_resolver.js`)**: `src/vector_pipeline.js` delegates HuggingFace Hub cache discovery and `KONOHA_SEMANTIC_SEARCH` availability checks to `src/hf_cache_resolver.js` (keeping both modules well under the 700-line limit).
125
- - **Project-Only Konoha MCP Guardrail (`src/project_konoha_mcp_guardrail.js`, `scripts/konoha_project_mcp_guard.js`)**: Active exclusively inside the Konoha repository (`isKonohaRepository`); rejects unrouted native file/search/shell/legacy-IPC (`prompt.md`, `delegate.md`, `delegated.md`, `result.md`) calls across all 8 harnesses unless routed through Konoha MCP and Konoha maintenance skills.
144
+ - **Project-Only Konoha MCP Guardrail (`src/project_konoha_mcp_guardrail.js`, `src/guardrail_hitl.js`, `src/guardrail_exceptions.js`, `scripts/konoha_project_mcp_guard.js`)**: Active exclusively inside the Konoha repository (`isKonohaRepository`); rejects unrouted native file/search/shell/legacy-IPC (`prompt.md`, `delegate.md`, `delegated.md`, `result.md`) calls across all 8 harnesses unless routed through Konoha MCP and Konoha maintenance skills. A denial is a **branchable decision, not a dead end**: `GUARDRAIL_REMEDIATION` maps every denial code to a concrete fix, `--hitl` renders the menu (`block and try another way` / `accept with risk` + ≥8-char justification) on the controlling terminal — `/dev/tty`, or `CONIN$`/`CONOUT$` on Windows — when stdin is a pipe, and an accepted risk is stored as a code+tool-scoped entry with a TTL capped at one hour. Hooks stay non-interactive and fail-closed; `KONOHA_GUARD_NO_TTY=1` can only force a block. The exception store (`.konoha/guardrail-exceptions.json`, `.konoha/guardrail-audit.jsonl`) is itself an attack surface: a write to it from any tool path is denied with a non-acceptable code, and some denials (secret write, destructive shell, retired IPC/MCP, store write) cannot be accepted at all. Guards: `tests/test_project_konoha_mcp_guardrail.js` tests 9-15, including a real pty leg through `tests/helpers/pty_driver.py`.
126
145
  - **16 Code-Intel Languages (`src/code_intel/capabilities.js`)**: Supports `javascript`, `typescript`, `python`, `go`, `rust`, `c`, `cpp`, `shell`, `sql`, `php`, `ruby`, `kotlin`, `swift`, `dart`, `elixir`, `zig` (Tree-sitter WASM + fallback + optional stdio LSP); `java`, `csharp`, and `lua` are explicitly excluded (`EXCLUDED_LANGUAGES`).
127
146
  - **Fail-Closed Subagent Spawning, Turn-0 Idle `@advisor`, 100k Quota LangGraph Compaction & Live TODO Sync (`src/mcp/lazy_subagent.js`, `src/context_compaction.js`, `src/mcp/langgraph/checkpointer.js`, `src/mcp/todo_walkthrough_sync.js`, `src/workflow/kage-reviewer/advisor_monitor.js`, `src/context_budget.js`)**: Routes the 8 spawnable specialists (`kage`, `jonin`, `anbu`, `chunin`, `tokubetsu-jonin`, `genin`, `akatsuki`, `yamanaka`) via harness-native descriptors + `konoha run-agent` child processes, keeps `@advisor` idle from turn 0 (`<= 8,192 tokens` / `32,768 bytes` interrupt budget) to steer drifted agents, captures per-agent LangGraph SQLite checkpoints (`lg_checkpoints`, namespace `agent:<name>`) + compacts + auto-continues when reaching `agent_input_token_quota` (`100,000` default / `KONOHA_AGENT_INPUT_TOKEN_QUOTA`), and synchronizes full `client_todo_directive` (`native_payload`), `walkthrough_steps`, `TODO.md`, and `sdlc_tasks` across all 8 harnesses.
128
- - **Provenance-Aware Native Knowledge Brain & Live Headed Docker Browser Workspace (`src/memory_brain*.js`, `src/workflow/qa-automation/browser_session_manager.js`)**: Schema v8 (`45` raw / `33` declared tables) stores durable knowledge across `persona`/`project`/`episodic`/`session`/`knowledge` domains with provenance, corrections, supersession, withdrawal, append-only `memory_audit_events`, deterministic `memory_relations`, and conservative dry-run/apply/revert maintenance. Interactive live headed Chromium sessions run isolated in `docker/browser-workspace.Dockerfile` (`Xvfb` + `fluxbox` + `x11vnc` + `noVNC`) bound strictly to `127.0.0.1` without mounting host home/profiles/secrets, while preserving headless Playwright in CI (`CI=1`).
147
+ - **Harness Identity Is Read From the State Directory, Not the Variable Name (`src/mcp/client_detection.js`, `src/mcp/subagent_spawner.js`)**: OMP exports PI's environment verbatim (`PI_SESSION_FILE`, `PI_SESSION_ID`, `PI_CODING_AGENT_DIR`, `PI_GIT_GUARD`) and sets no `OMP_*` marker, so a name-based check reports every OMP session as `pi` and every fresh CLI process dies at `UNSUPPORTED_NATIVE_SPAWN`. Detection therefore inspects the path (`/.omp/` → `omp`, `/.pi/` → `pi`); `ACTIVE_CLIENT`/`KONOHA_CLIENT` still outrank inference. `--execute` resolves the *installed harness binary* rather than the harness's in-session subagent tool, so `--client cli --execute` launches instead of refusing; the `omp` invocation uses `-p --append-system-prompt` because oclif rejects `--agent` with exit 2, and the `task()` directive it tells the model to call carries `solutionSpace` and no `cwd`, because OMP's schema is `{context, tasks:[{name?, agent, task, solutionSpace, …}]}` with `"+": "delete"`. On Windows the resolved `.cmd`/`.bat` shim is launched through `ComSpec /d /s /c` (Node refuses to spawn a shim directly) with the task's newlines flattened to spaces, since cmd.exe treats a newline as a command separator. Guarded by `tests/test_spawn_harness_contracts.js`.
148
+ - **Provenance-Aware Native Knowledge Brain & Host Headed Browser QA (`src/memory_brain*.js`, `src/workflow/qa-automation/qa_tools.js`)**: Schema v9 (`45` raw / `33` declared tables; v9 is a data-repair bump, not a table bump — `setupSchema` folds legacy `agy` rows into `antigravity` via `src/db_schema_repairs.js`) stores durable knowledge across `persona`/`project`/`episodic`/`session`/`knowledge` domains with provenance, corrections, supersession, withdrawal, append-only `memory_audit_events`, deterministic `memory_relations`, and conservative dry-run/apply/revert maintenance. Interactive live headed Chromium runs on the host's own Playwright: `qa_e2e_run({ headed: true })` adds `--headed` and `KONOHA_PW_HEADED=1`, which the target config turns into `headless: false`, while `CI=1` drops both so CI stays headless.
149
+ - **First-Use Code-Intel Indexing, Async Yield & the Row-Less `@advisor` Charter (`src/code_intel/auto_index.js`, `src/code_intel/search_setup.js`, `src/mcp/memory_subagent_runner.js`, `src/mcp/workflow_sannin.js`)**: `code_search`, `code_symbol`, `code_context`, `code_impact`, and `code_related` index a directory named for the first time instead of answering `root not indexed` — `ensureRootIndexed` runs a lexical-only pass (`embed: false`, `maxFiles: 5000`, `timeoutMs: 15000`), and `code_index` adds vectors later. The async handlers never take that blocking pass: `prepareSearchSetupAsync` and `_resolveAnchorAsync` await `indexRepositoryAsync`, so `tools/list` stays answerable. `code_status` keeps `store.getRoot` and stays read-only — indexing there would resurrect a root `code_remove` just cleared. A row is not proof of an index: `ensureRoot` inserts `stale` with `indexed_at NULL` before the walk, so `isUsableRoot` requires `fresh` or a completed `stale` and retries the rest; a partial completed pass returns `index_incomplete: true`. `@genin`/`@advisor` never trigger that write (`KONOHA_READONLY=1` or the detected agent), concurrent first-use queries share one in-flight pass, and the advisor CLI fallback carries `--execute` so it starts a process instead of printing a directive. `advisor` has no `agents` row by design (the table is the 9-ninja roster), so `_resolveAgentDbMetadata` falls back to `ADVISOR_AGENT_DEFINITION` at the read site rather than seeding it, and `sannin` emits the resolved `spawn_call` / CLI fallback instead of a bare `--idle` directive.
129
150
 
130
- ## 📜 Change History That Constrains Maintenance (v2.2.17 → v2.2.22)
151
+ ## 📜 Change History That Constrains Maintenance (v2.2.17 → v2.2.23)
131
152
 
132
153
  Read this before "fixing" the install, migrate, or upgrade path. Each row already shipped as a bug once.
133
154
 
134
155
  | Trap | Do not | Guard |
135
156
  |---|---|---|
136
- | Schema/version conflation | Derive `user_version` from the app version | `src/db_schema.js` is the only writer; `konoha doctor` prints `schema 8, app 2.2.22` |
157
+ | Schema/version conflation | Derive `user_version` from the app version | `src/db_schema.js` is the only writer; `konoha doctor` prints `schema 9, app 2.2.23` |
137
158
  | Shelling out to migration | `spawnSync(process.execPath, [...migrate.js...])` and trust `status === 0` | in-process `runMigration()`, `tests/test_install_migrate_embed_functions.js` |
138
159
  | Silent budget truncation | Cap the embedding pass below the caller's timeout | `migrate_time_budget_seconds` 900 / `install_build_migrate_timeout_ms` 900000 |
139
160
  | `konoha embed` as a recovery hint | Recommend it for partial coverage | it implies `--rebuild-embeddings` → `DELETE FROM skill_chunks` then re-embeds everything (`src/vector_search.js:515`). Recovery is `konoha migrate` |
@@ -150,5 +171,28 @@ Read this before "fixing" the install, migrate, or upgrade path. Each row alread
150
171
  | "Already started" treated as current | Report success when a UI listener already holds the port | `konoha ui start` exits 1 with `already running`; `tests/test_ui_manual_only.js` |
151
172
  | Custom model cache or downloader | Reintroduce a bespoke Konoha model cache directory or downloader | `@huggingface/transformers` owns model loading and native `FileCache` (`HF_HOME`); `tests/test_bundled_models.test.js` |
152
173
  | Full `setupSchema` in hot paths | Call `db.setupSchema(conn)` inside repeated API handlers/loops | Use `db.ensureSchema(conn)` for runtime fast-path; keep `db.setupSchema(conn)` for full migration/cleanup tests |
174
+ | `new Function` in an emitted payload | Compile a guardrail checker with `new Function(source)()` | embed it verbatim as a function expression; `tests/test_no_dynamic_execution.js` |
175
+ | Caret on a patched or bundled dep | Let `^1.21.0` resolve to bytes the lockfile never saw | exact pins + `--frozen-lockfile` in `publish.yml`; `tests/test_dependency_posture.js` |
176
+ | Regenerating the `xlsx-populate` patch from stock | Recreate it without `lib/lodash-lite.js` and the `browser/` deletion | `lodash` returns and the eval sink ships again; `tests/test_xlsx_populate_lodash_lite.js` |
177
+ | Shipping a browser build | Let `jszip/dist/` or a `pptxgen.bundle.js` ride along in the tarball | they polyfill `setImmediate` with `new Function`; patch them out and assert the packed tree, `tests/test_dependency_posture.js` |
178
+ | Editing a patch without reinstalling | Leave a stale `node_modules` that still holds the deleted bundle | `pnpm install` after every patch edit; `tests/test_dependency_posture.js` asserts the installed trees, not just the patch files |
179
+ | `addImage({ path })` | Pass a filesystem path or URL into pptxgenjs | `addInlineImage(slide, buffer)` (PNG magic-byte checked) is the only call site |
180
+ | Suppressing a Socket alert as a "fix" | Add `usesEval: false` or ignore `pnpm-lock.yaml` / `patches/**` | remove the sink instead; suppressions describe intent, `tests/test_socket_security_audit.js` |
181
+ | Splicing only the first contract block | Replace the first `KONOHA-CONTRACT-START`…`END` pair and assume the file is clean | `buildManagedContract` strips **every** span first; a second block made redeploy a no-op and shipped 2.2.23 beside 2.2.12, `tests/test_omp_manager.js` |
182
+ | Procedure in the per-turn addendum | Put framework scaffolding commands or scan procedure in `buildOmpWorkflowAddendum` | those load on demand from `jonin-skill` / `konoha` references; the addendum is paid every request, `tests/test_lightweight_contracts.js` (≤ 4200 B) |
183
+ | Writing to `~/.omp/AGENTS.md` | Treat it as OMP's user context file | the native user path is `~/.omp/agent/AGENTS.md`; the dot-directory copy is never injected, so a contract deployed there is invisible |
184
+ | Quoting a cache-hit rate from `tool_calls` | Read `cached_tokens` / `input_tokens` / `output_tokens` as if they were recorded | the columns exist but no MCP path writes them; measure payload bytes instead, `src/tools_savings_logger.js` |
185
+ | Stripping the legacy roster block for "savings" | Delete `<!-- KONOHA-START -->` from `~/.omp/agent/AGENTS.md` | it is the **only** roster in that file (`buildMainAgentContract('omp')` carries none); deleting it is a behavior regression, not a saving |
186
+ | Narrowing agent-file ownership to the frontmatter marker | Detect Konoha-owned agent files by `generated_by: konoha` alone | pre-marker releases identify themselves by the contract block; without it every deploy parks its own output as `.konoha-proposed` and `@genin` keeps `Write`/`Edit`/`Bash` forever (`src/agent_file_safety.js`, `tests/test_deploy_safety.js`) |
187
+ | Auto-detecting a project from `cwd` under a temp `HOME` | Let `ensureOmpSetup` write `cwd/.omp/mcp.json` for any caller | a sandboxed run then points the checkout at a launcher that dies with it, and every delegated agent starts without `konoha.*`; compare against `os.userInfo().homedir`, never `process.env.HOME` (`src/omp_manager.js`, `tests/test_omp_manager.js`) |
188
+ | Prompting from inside a hook | Make `PreToolUse` wait for a human answer | a hook gets one JSON reply and no controlling terminal; the interactive path is `--hitl` in `scripts/konoha_project_mcp_guard.js`, and it prompts on `/dev/tty` (the payload owns stdin) or exits `2`; `tests/test_project_konoha_mcp_guardrail.js` (tests 12, 14) |
189
+ | A denial with no alternative | Return "blocked" without naming the Konoha route | `describeGuardrailRemediation(code)` covers all eleven codes; an unnamed denial just teaches the agent to retry; test 9 |
190
+ | Matching a risk acceptance by target path | Scope `_exceptionCovers` on the extracted path | `_extractTargetPath` returns grep's `pattern` first, so path equality rejects the call the human approved; match code + tool only |
191
+ | A risk acceptance that never expires | Persist an exception with no TTL | 30-minute default, pruned on read; `tests/test_project_konoha_mcp_guardrail.js` (test 11) |
192
+ | Committing the exception store | Let `.konoha/guardrail-*.json*` reach a tag | an acceptance is machine-local; both paths are gitignored |
193
+ | Auto-accepting on the menu default | Treat an empty answer or EOF as accept | `askHitlDecision` maps `''` and EOF to block; accepting needs a justification of 8+ characters |
194
+ | A relative `require` in the shipped plugin copy | Resolve `src/guardrail_hitl` with `require('../src/guardrail_hitl')` from `.agents/plugins/konoha-mcp-guard/scripts/` | that directory has no `src/` sibling, and because `_runHitl` is `async` the throw becomes a rejected promise: exit `2` — the code a real block returns — with only `Cannot find module` on stderr, so no briefing and no menu. Resolve every `src/` module through `_resolveSrcModule`; `tests/test_project_konoha_mcp_guardrail.js` (test 6) |
195
+ | A guardrail that can be talked out of a rule | Let any write tool or `rtk` shell command reach `.konoha/guardrail-exceptions.json` | the store *is* the bypass, so the gated agent writes its own permission and passes the call it was just denied. Both branches deny `GUARDRAIL_STATE_WRITE_DENIED` for the two store files, `NON_ACCEPTABLE_CODES` (secrets, shell violations, the store itself, retired IPC) refuses to be recorded or honoured, and a stored TTL is clamped to `MAX_EXCEPTION_TTL_MS` on write and on read; `tests/test_project_konoha_mcp_guardrail.js` (test 15) |
196
+ | Measuring `get_skill` without checking the mirror it read | Quote a token figure for a skill some client mirror never refreshed | twelve mirrors serve twelve clients; `getSkillsScanDirs()` is the list and `tests/test_skill_tree_parity.js` now compares every one against `src/templates/skills` |
153
197
 
154
198
  Only `skill`-type rows are exempt from the embedding time budget (`src/vector_search.js:533`). Reference documents can therefore remain unembedded after a "successful" migrate, and `runMigration` reports them via `deferredSkills`.
@@ -1,4 +1,4 @@
1
- # 🍃 Konoha System Architecture & MCP Server Specifications (v2.2.22)
1
+ # 🍃 Konoha System Architecture & MCP Server Specifications (v2.2.23)
2
2
 
3
3
  Technical specification of the Konoha MCP Server architecture, 56 canonical tools, transport mechanisms, runtime state, parallel worktree isolation, Real-Time Idle `@advisor`, and dynamic website builder invariants.
4
4
 
@@ -29,17 +29,42 @@ All 56 canonical MCP tools (plus 2 hidden deprecated compatibility aliases, 58 t
29
29
  | **Bounded File Operations** | `read_file_head`, `read_file_range`, `token_efficient_grep`, `file_info`, `get_file_structure`, `find_files_clean` | Bounded file I/O, token-capped grepping, symbol outline preview. |
30
30
  | **Native Code Intelligence** | `code_index`, `code_search`, `code_symbol`, `code_context`, `code_impact`, `code_related`, `code_status`, `code_remove` | In-process SQLite FTS5 code indexing, definition-first search, and symbol/impact graph. |
31
31
  | **Specialist Subagents** | `kage`, `jonin`, `anbu`, `chunin`, `tokubetsu_jonin`, `genin`, `akatsuki`, `yamanaka` | Direct invocation of the 8 specialist personas (`@sannin` is router-only). |
32
- | **Security & Auditing** | `akatsuki_init`, `anti_slop`, `aislop_scan`, `aislop_why`, `aislop_fix`, `aislop_baseline`, `docs_ai_detector`, `website_ai_detector` | Dual-mode red/blue security, Zero-AI-Slop audit, automated repairs, AI detection. |
32
+ | **Security & Auditing** | `akatsuki_init`, `anti_slop`, `docs_ai_detector`, `website_ai_detector` | Dual-mode red/blue security, Zero-AI-Slop audit, AI detection. |
33
33
  | **Document Engineering** | `document_create`, `spreadsheet_create`, `presentation_create`, `diagram_create`, `animation_export` | Native DOCX/PDF, XLSX, PPTX, SVG diagrams, and animated WebP exports. |
34
34
  | **Web & Research** | `web_search`, `build_from_text`, `build_from_source` | Live web research and dynamic website scaffolding specification generators. |
35
35
  | **Memory & Context** | `get_project_context`, `save_project_context`, `query_project_memory`, `save_persona_memory`, `query_persona_memory`, `list_persona_memories`, `delete_persona_memory`, `get_soul` | Project invariants, flow-bounded persona memories, and soul archetypes. |
36
36
 
37
+ The `aislop_scan`, `aislop_why`, `aislop_fix`, and `aislop_baseline` tools are **not** Konoha tools. They are served by the separate Aislop MCP server, so they appear in no manifest row above and are absent from `src/mcp/tool_dispatch.js`; the 56-tool count is Konoha's own surface.
38
+
37
39
  ### Strict Tool Boundaries
38
40
  1. **Repository Code Search**: ALWAYS use the native code intelligence tools (`code_search`, `code_symbol`, `code_impact`) with the absolute repository root. NEVER use native grep/find/cat or Konoha skill tools for code exploration.
39
41
  2. **Skill Discovery**: ALWAYS use Konoha MCP (`konoha.find_skill`, `konoha.get_skill`, `konoha.use_skills`). NEVER search for skills with `code_search`.
40
42
  3. **File Inspection**: ALWAYS use Konoha bounded tools (`read_file_range`, `read_file_head`, `token_efficient_grep`). Never execute raw shell `cat` or `grep`.
41
43
  4. **Shell Execution**: ALWAYS prefix shell commands with `rtk <command>`.
42
44
 
45
+ ### The Project Guardrail Is an Architecture Boundary, Not a Lint Rule
46
+
47
+ `src/project_konoha_mcp_guardrail.js` evaluates every tool call and every shell command before it runs, and it can refuse. A refusal is a **branchable decision**, not a dead end:
48
+
49
+ - **`GUARDRAIL_REMEDIATION`** maps each denial code to what the operator should do instead, so a denial never arrives as a bare "denied".
50
+ - **`--hitl`** opens a menu on the *controlling terminal* (`/dev/tty`; `CONIN$`/`CONOUT$` on Windows) when stdin is a pipe, and records a code+tool-scoped risk acceptance with a TTL capped at one hour. Hooks never prompt — they stay fail-closed, and `KONOHA_GUARD_NO_TTY=1` can only force a block, never grant one.
51
+ - **The exception store is an attack surface.** `.konoha/guardrail-exceptions.json` and `.konoha/guardrail-audit.jsonl` are writable only through `src/guardrail_exceptions.js`; any tool path that could write them is itself denied with a `NON_ACCEPTABLE_CODES` entry, which the menu refuses to accept. Some denials — secret write, destructive shell, retired IPC/MCP, store write — have no acceptable form at all.
52
+ - **Every client binds through one spelling.** `src/mcp/hitl_picker.js` keys `claudecode` and `antigravity`, serves the web picker from the MCP process itself (port `ui_port + 1`), and never preselects an option.
53
+
54
+ Guards: `tests/test_project_konoha_mcp_guardrail.js` tests 9-15, including a pty leg driven by `tests/helpers/pty_driver.py` that proves the CLI exits on its own.
55
+
56
+
57
+ ### A Query Indexes What It Names, and Only on the Path That Can Afford It
58
+
59
+ `code_search` used to answer `root not indexed: <path>` for any directory named for the first time, which is the normal state of a sibling project. `src/code_intel/auto_index.js` stats the directory and runs a lexical-only pass (`embed: false`, `maxFiles: 5000`, `timeoutMs: 15000`); `code_index` adds vectors later.
60
+
61
+ - **Sync handlers index inline.** `resolveRoot` is one choke point, so `code_search`, `code_symbol`, `code_context`, `code_impact`, and `code_related` all inherit the behaviour.
62
+ - **Async handlers never take the blocking pass.** `prepareSearchSetupAsync` and `_resolveAnchorAsync` await `indexRepositoryAsync` (yields every four files) before the sync base runs, which is what keeps `tools/list` answerable during a first-use index.
63
+ - **`code_status` stays read-only.** It calls `store.getRoot`; indexing there would resurrect a root `code_remove` just cleared.
64
+
65
+ A row is not proof of an index. `ensureRoot` inserts `stale` with `indexed_at NULL` *before* the walk, so a pass that timed out or threw leaves behind exactly the row every later query would trust — turning the old loud error into an empty result set. `isUsableRoot` therefore requires `fresh`, or `stale` with a completion time, and retries anything else; a `stale` row that a completed walk left partial is surfaced as `index_incomplete: true` rather than passing for a small repo. Only a writer may create a row: `@genin` and `@advisor` are read-only by role, `checkGeninToolAccess` guards `code_index` but not `code_search`, so the first-use pass is skipped for them (`KONOHA_READONLY=1` or the detected agent) and the caller gets the actionable error. Concurrent first-use queries on one root share a single pass through a module-level in-flight map, because the indexer holds no lock of its own.
66
+
67
+ Guards: `tests/test_code_intel_tools.js` — the auto-index leg, an async leg that replaces `indexRepository` with a throwing stub, a never-finished-row leg, an `index_incomplete` leg, two read-only legs (`KONOHA_READONLY` and a detected `@genin`), and a dedupe leg that asserts three concurrent `code_search_async` calls reach the indexer once.
43
68
  ---
44
69
 
45
70
  ## 📡 Transports & Communications
@@ -50,7 +75,7 @@ All 56 canonical MCP tools (plus 2 hidden deprecated compatibility aliases, 58 t
50
75
 
51
76
  ---
52
77
 
53
- ## 🎨 Dynamic Konoha Website Builder Architecture (`v2.2.22`)
78
+ ## 🎨 Dynamic Konoha Website Builder Architecture (`v2.2.23`)
54
79
 
55
80
  When scaffolding or generating websites from text (`konoha.build_from_text`) or design mockups (`konoha.build_from_source`), `@jonin` executes a dynamic, context-driven design architecture across all supported frameworks (**Next.js, SvelteKit, Nuxt, Angular**):
56
81
 
@@ -1,10 +1,10 @@
1
- # 🍃 Konoha Token Economy & Benchmark Standards (v2.2.22)
1
+ # 🍃 Konoha Token Economy & Benchmark Standards (v2.2.23)
2
2
 
3
3
  Technical reference on Konoha's token economy, compact multi-skill digests (`use_skills`), Real-Time Idle `@advisor` budget (`<= 8,192 tokens/turn`), dynamic baseline savings calculations, SQLite FTS5 benchmark metrics, and KV-cache prefix optimization.
4
4
 
5
5
  ---
6
6
 
7
- ## 📉 Context Token Economy & Savings Architecture (`v2.2.22`)
7
+ ## 📉 Context Token Economy & Savings Architecture (`v2.2.23`)
8
8
 
9
9
  Konoha delivers an authentic **83%–98% token reduction** across all 8 supported AI coding clients:
10
10
  1. **Compact Multi-Skill Digest (`use_skills` <= 6,400 Bytes / <= 1,600 Tokens)**:
@@ -16,6 +16,29 @@ Konoha delivers an authentic **83%–98% token reduction** across all 8 supporte
16
16
 
17
17
  ---
18
18
 
19
+ ## 🧱 Fixed-Prefix Budget: What Konoha Injects on Every Turn
20
+
21
+ Every supported harness prepends a fixed block before the first user token. Konoha controls three of its terms — the managed contract block, the OMP workflow addendum, and the MCP tool schemas — and a cache hit only survives while those bytes stay identical between turns.
22
+
23
+ | Term | Deployed size | Rule |
24
+ |---|---|---|
25
+ | `~/.omp/agent/AGENTS.md` (OMP user context) | ~5.5 KB | exactly one managed block, exactly one contract version |
26
+ | OMP workflow addendum (`buildOmpWorkflowAddendum`) | ~4.1 KB | rules only; command dumps and procedure belong to the skill that owns them |
27
+ | Lightweight contract (`buildLightweightContract`) | ~1.0 KB per foreign client file | version bump only; the body does not vary by client |
28
+ | Tool schemas (`src/mcp_tool_manifest.json`) | 28,986 B / 6,598 tok | an API contract — prose trimming moves ~1.6k of 6.6k tokens, and the remaining ~5.0k is JSON structure; only tool-count reduction moves it materially |
29
+
30
+ 1. **One managed block, one version.** `buildManagedContract` (`src/agent_contract.js`) removes *every* `KONOHA-CONTRACT-START`…`KONOHA-CONTRACT-END` span before writing the fresh block. Splicing only the first pair left any second block in place forever and made redeploy a permanent no-op; a deployed file once carried 2.2.23 and 2.2.12 side by side, so the agent read two versions of the same rules on every turn.
31
+ 2. **Only one user-level context file is injected.** OMP keeps one user context file and `native` (`~/.omp/agent/AGENTS.md`) wins it, so `~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md`, `~/.gemini/GEMINI.md`, `~/.config/opencode/AGENTS.md`, and `~/.agents/AGENTS.md` are not part of an OMP prompt. Each serves its own harness; never assume the contract is read twice.
32
+ 3. **`~/.omp/AGENTS.md` is not a context file.** The native user location is `~/.omp/agent/AGENTS.md`. `~/.omp/AGENTS.md` sits in a dot-directory with no provider mapping, so it is never injected — keeping a copy there is a trap for a future release, not a saving.
33
+ 4. **Duplicated procedure costs twice.** Framework scaffolding commands and scan-scoping procedure were once in both the addendum and `jonin-skill` / `konoha` references. The skill loads on demand; the addendum is paid every turn. Procedure belongs in the skill.
34
+ 5. **Byte-stability beats brevity.** A block that changes size or order between turns loses the cache for everything after it. Deploying the same contract twice must be byte-identical — `tests/test_lightweight_contracts.js` asserts the second deploy reports `changed: false`.
35
+
36
+ ### Honest Limit: Konoha Cannot Report Its Own Cache Hit Rate
37
+
38
+ `tool_calls` carries `input_tokens`, `output_tokens`, and `cached_tokens` (`src/db_schema.js`), but nothing on the MCP path writes them: the only usage objects built live in `src/bridge/gateway_adapters.js` and `src/bridge/handlers/anthropic.js`, and they return those counts to the caller instead of persisting them. Every row's token columns are NULL, so any cache-hit figure attributed to Konoha is inference from payload sizes, never measurement. Fix the writer before quoting a number.
39
+
40
+ ---
41
+
19
42
  ## 🧮 Dynamic Token Savings Telemetry (`src/tools_savings_logger.js` & `src/mcp/skills_common.js`)
20
43
 
21
44
  Konoha computes authentic token savings on every MCP tool call, persisting records into `tool_calls` inside `~/.konoha/konoha.db`:
@@ -35,6 +58,53 @@ Konoha computes authentic token savings on every MCP tool call, persisting recor
35
58
 
36
59
  ---
37
60
 
61
+ ## 🔍 Chunk Store vs Append-Only Log: Why Retrieval Beats Injection
62
+
63
+ The question is not "FTS5 or JSONL" but *inject everything* vs *retrieve chunks on demand*.
64
+ Konoha has exactly one retrieval store (`skill_chunks`: FTS5 + embeddings) and JSONL
65
+ appears only as an audit trail (`.konoha/guardrail-audit.jsonl`, client `transcript.jsonl`),
66
+ with no relevance signal and no bounded read. Chunked retrieval wins on both axes:
67
+
68
+ | Property | FTS5 chunk store | JSONL append log |
69
+ |---|---|---|
70
+ | Cost of one answer | `O(top-k)` — ranked, bounded | `O(file)` — every line read and injected |
71
+ | Relevance signal | BM25 + cross-encoder + vector | none (append order only) |
72
+ | Failure mode | stale row → reindex | unbounded context growth |
73
+ | Measured here | 6,382 rows, avg 556 B, all embedded | no retrieval path exists |
74
+
75
+ **Measured chunk economics** (`src/code_intel/config.js`): `CHUNK_MAX_LINES=40`,
76
+ `CHUNK_MAX_CHARS=1800`, `CHUNK_OVERLAP_LINES=8`, `CHUNK_TOKEN_TARGET=420` — 6,382 rows
77
+ across 285 skills, avg 556 B, all embedded. `skill_top_k: 5`, `skill_candidate_k: 25`
78
+ (`bin/lib/config_defaults.js:61-62`). A `find_skill` answer measures **301–439 tok**
79
+ across five probe queries because it returns ranked metadata rows, not chunk text; the
80
+ chunk budget is what `use_skills`/`get_skill` spend. One full skill digest is **1,956 tok**,
81
+ so retrieval already wins the moment the task needs to consult more than one skill.
82
+
83
+ **External evidence** (the accuracy half of the question, not just cost):
84
+ - *Context Length Alone Hurts LLM Performance Despite Perfect Retrieval* (EMNLP 2025 Findings 1264): accuracy drops **13.9%–85%** as input length grows even with the gold passage present. Long context is a quality hazard, not only a bill.
85
+ - *SELF-ROUTE* (EMNLP 2024 Industry 66, Google DeepMind): long context wins on average quality when resourced, but RAG's cost advantage is decisive; the hybrid route matches long-context quality at far lower cost.
86
+ - arXiv 2505.21700: **64–128 tok** chunks are optimal for fact-based QA, **512–1024 tok** for broad contextual understanding — Konoha's 420-token target sits between the two regimes, correct for procedure-heavy skills.
87
+ - NVIDIA chunking study: page-level chunks give the best mean end-to-end accuracy (**0.648**) and the lowest variance (**0.107**); both extremes (128, 2048 tok) underperform; **15% overlap** is the sweet spot (Konoha: 8/40 lines = 20%).
88
+
89
+ **Boundary that used to defeat this**: `get_skill(name, {tokenBudget})` with no `section`
90
+ sliced to `rawSections[0]` — the frontmatter plus preamble — and returned ~250 tok for a
91
+ 1,500-token request. A budget now produces a whole-document digest with head/middle/tail
92
+ anchors and lists the top-level sections still available. Covered by
93
+ `tests/test_skill_budget_digest.js`.
94
+
95
+ **Known ceiling**: the cap decides the cost, not the request. `get_skill({section: 'Cardinal
96
+ Maintenance Invariants'})` returns **7,854 B / 1,932 tok** and the full digest returns
97
+ **7,927 B / 1,956 tok** — 1.2% apart, because `MAX_CONTENT_SIZE` (8,000 B) is smaller than the
98
+ section. That section is **19,410 B / 4,985 tok**, 48.5% of the 40,039 B document, so the
99
+ section request silently drops 60% of the one section a maintainer most needs, and the
100
+ remaining-sections hint cannot help because there is only one section in play. A caller
101
+ asking for three invariants pays for eight thousand bytes. The upgrade path is invariant-level
102
+ chunking — one numbered item per chunk, 400–600 tok — so a caller can buy the three rules it
103
+ needs; the `konoha` skill already has `skill_chunks` rows in the index (avg ~820 B) that a section
104
+ request never consults — `src/mcp/skills_retrieval.js` reads the file, not the table.
105
+
106
+ ---
107
+
38
108
  ## ⚡ SQLite FTS5 Benchmark & Query Performance
39
109
 
40
110
  | Operation | Workload / Ops | Throughput | Latency (p95) | Mechanism |
@@ -9,7 +9,7 @@ the index is the cache. If `get_skill` returns anything different, re-run
9
9
 
10
10
  Assembled from three verified sources: the 11 rules in the user's 17-section
11
11
  template (Section 14, "in particular"), the 7 rules in the `AGENTS.md`
12
- runtime contract block, and the 20 Cardinal Maintenance Invariants in
12
+ runtime contract block, and the Cardinal Maintenance Invariants in
13
13
  `src/templates/skills/konoha/SKILL.md` — with 6 documented merges (aislop
14
14
  gate, 700-line limit, Konoha mandatory, code intelligence mandatory, RTK mandatory,
15
15
  Zero-AI-Slop & Kage Gate). The count is 26 because that is how many distinct