@ngockhoale/ukit 1.1.6

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 (344) hide show
  1. package/CHANGELOG.md +179 -0
  2. package/LICENSE +21 -0
  3. package/README.md +189 -0
  4. package/bin/ukit +30 -0
  5. package/manifests/platform.full.yaml +1194 -0
  6. package/package.json +71 -0
  7. package/scripts/bug/triage.mjs +37 -0
  8. package/scripts/index/build-index.mjs +35 -0
  9. package/scripts/index/query-index.mjs +92 -0
  10. package/scripts/index/refresh-index.mjs +85 -0
  11. package/scripts/release/verify-release.mjs +56 -0
  12. package/src/bug/triageBug.js +123 -0
  13. package/src/cli/adapters.js +148 -0
  14. package/src/cli/commands/diff.js +51 -0
  15. package/src/cli/commands/doctor.js +125 -0
  16. package/src/cli/commands/indexArgs.js +73 -0
  17. package/src/cli/commands/indexTools.js +509 -0
  18. package/src/cli/commands/install.js +293 -0
  19. package/src/cli/commands/memory.js +126 -0
  20. package/src/cli/commands/status.js +8 -0
  21. package/src/cli/commands/uninstall.js +51 -0
  22. package/src/cli/index.js +109 -0
  23. package/src/context/detectProjectContext.js +49 -0
  24. package/src/context/detectProviders.js +12 -0
  25. package/src/core/applyPlan.js +89 -0
  26. package/src/core/buildPlan.js +228 -0
  27. package/src/core/compact/index.js +294 -0
  28. package/src/core/compact/threshold.js +936 -0
  29. package/src/core/diffPlan.js +73 -0
  30. package/src/core/ensureGitignore.js +117 -0
  31. package/src/core/fileOps.js +188 -0
  32. package/src/core/memory/hygiene.js +160 -0
  33. package/src/core/memory/index.js +2 -0
  34. package/src/core/memory/retrieval.js +476 -0
  35. package/src/core/memory/store.js +202 -0
  36. package/src/core/metadata.js +132 -0
  37. package/src/core/migrateLegacy.js +139 -0
  38. package/src/core/output/index.js +1309 -0
  39. package/src/core/paths.js +13 -0
  40. package/src/core/report.js +17 -0
  41. package/src/core/router/advisor.js +42 -0
  42. package/src/core/router/index.js +2 -0
  43. package/src/core/router/router.js +164 -0
  44. package/src/core/runInstallPipeline.js +365 -0
  45. package/src/core/runtimeConfig.js +190 -0
  46. package/src/core/runtimePaths.js +24 -0
  47. package/src/core/status.js +186 -0
  48. package/src/core/token/index.js +328 -0
  49. package/src/core/uninstall.js +246 -0
  50. package/src/core/validation/confidence.js +89 -0
  51. package/src/core/validation/index.js +2 -0
  52. package/src/core/validation/validator.js +165 -0
  53. package/src/index/buildIndex.js +1392 -0
  54. package/src/index/gitHooks.js +109 -0
  55. package/src/index/importResolution.js +377 -0
  56. package/src/index/languageTools.js +127 -0
  57. package/src/index/paths.js +27 -0
  58. package/src/index/queryIndex.js +637 -0
  59. package/src/index/relatedTests.js +237 -0
  60. package/src/index/resolveContext.js +345 -0
  61. package/src/index/routeCatalog.js +258 -0
  62. package/src/index/taskRouting.js +677 -0
  63. package/src/index/verificationPlan.js +437 -0
  64. package/src/manifest/loadManifest.js +22 -0
  65. package/src/manifest/selectItems.js +78 -0
  66. package/src/manifest/validateManifest.js +115 -0
  67. package/src/render/buildVariables.js +39 -0
  68. package/src/render/renderTemplate.js +44 -0
  69. package/src/stack/detectStack.js +213 -0
  70. package/templates/.claude/agents/bug-debugger.md +57 -0
  71. package/templates/.claude/agents/feature-implementer.md +55 -0
  72. package/templates/.claude/config/providers.md +25 -0
  73. package/templates/.claude/hooks/auto-allow-bash.sh +155 -0
  74. package/templates/.claude/hooks/auto-prune-bash.sh +75 -0
  75. package/templates/.claude/hooks/block-dangerous.sh +54 -0
  76. package/templates/.claude/hooks/compress-output.sh +17 -0
  77. package/templates/.claude/hooks/protect-files.sh +37 -0
  78. package/templates/.claude/hooks/reinject-context.sh +28 -0
  79. package/templates/.claude/hooks/session-start.md +13 -0
  80. package/templates/.claude/hooks/skill-router.sh +1681 -0
  81. package/templates/.claude/hooks/verification-guard.sh +271 -0
  82. package/templates/.claude/settings.json +144 -0
  83. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  84. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  85. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  86. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  87. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  88. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  89. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  90. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  91. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  92. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  93. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  94. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  95. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  96. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  97. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  98. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  99. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  100. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  101. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  102. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  103. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  104. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  105. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  106. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  107. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  108. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  109. package/templates/.claude/skills/_shared/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  110. package/templates/.claude/skills/_shared/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  111. package/templates/.claude/skills/_shared/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  112. package/templates/.claude/skills/_shared/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  113. package/templates/.claude/skills/_shared/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  114. package/templates/.claude/skills/_shared/ooxml/schemas/mce/mc.xsd +75 -0
  115. package/templates/.claude/skills/_shared/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
  116. package/templates/.claude/skills/_shared/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
  117. package/templates/.claude/skills/_shared/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
  118. package/templates/.claude/skills/_shared/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
  119. package/templates/.claude/skills/_shared/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
  120. package/templates/.claude/skills/_shared/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  121. package/templates/.claude/skills/_shared/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
  122. package/templates/.claude/skills/_shared/ooxml/scripts/pack.py +159 -0
  123. package/templates/.claude/skills/_shared/ooxml/scripts/unpack.py +29 -0
  124. package/templates/.claude/skills/_shared/ooxml/scripts/validate.py +69 -0
  125. package/templates/.claude/skills/_shared/ooxml/scripts/validation/__init__.py +15 -0
  126. package/templates/.claude/skills/_shared/ooxml/scripts/validation/base.py +951 -0
  127. package/templates/.claude/skills/_shared/ooxml/scripts/validation/docx.py +274 -0
  128. package/templates/.claude/skills/_shared/ooxml/scripts/validation/pptx.py +315 -0
  129. package/templates/.claude/skills/_shared/ooxml/scripts/validation/redlining.py +279 -0
  130. package/templates/.claude/skills/backend-api/SKILL.md +26 -0
  131. package/templates/.claude/skills/canvas-design/LICENSE.txt +202 -0
  132. package/templates/.claude/skills/canvas-design/SKILL.md +130 -0
  133. package/templates/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  134. package/templates/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  135. package/templates/.claude/skills/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  136. package/templates/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  137. package/templates/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  138. package/templates/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  139. package/templates/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  140. package/templates/.claude/skills/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  141. package/templates/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  142. package/templates/.claude/skills/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  143. package/templates/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  144. package/templates/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  145. package/templates/.claude/skills/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  146. package/templates/.claude/skills/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
  147. package/templates/.claude/skills/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  148. package/templates/.claude/skills/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
  149. package/templates/.claude/skills/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
  150. package/templates/.claude/skills/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
  151. package/templates/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  152. package/templates/.claude/skills/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  153. package/templates/.claude/skills/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
  154. package/templates/.claude/skills/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
  155. package/templates/.claude/skills/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
  156. package/templates/.claude/skills/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
  157. package/templates/.claude/skills/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
  158. package/templates/.claude/skills/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
  159. package/templates/.claude/skills/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
  160. package/templates/.claude/skills/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  161. package/templates/.claude/skills/code-review/SKILL.md +97 -0
  162. package/templates/.claude/skills/debugging-toolkit/SKILL.md +156 -0
  163. package/templates/.claude/skills/delivery/SKILL.md +92 -0
  164. package/templates/.claude/skills/discover-security/SKILL.md +86 -0
  165. package/templates/.claude/skills/docker-packaging/SKILL.md +60 -0
  166. package/templates/.claude/skills/docs-manager/SKILL.md +465 -0
  167. package/templates/.claude/skills/docs-manager/init-project-docs.sh +70 -0
  168. package/templates/.claude/skills/docs-manager/templates/README.md.template +50 -0
  169. package/templates/.claude/skills/docs-manager/templates/agent-roles.md.template +24 -0
  170. package/templates/.claude/skills/docs-manager/templates/coding-conventions.md.template +28 -0
  171. package/templates/.claude/skills/docs-manager/templates/memory.md.template +30 -0
  172. package/templates/.claude/skills/docs-manager/templates/onboarding.md.template +20 -0
  173. package/templates/.claude/skills/docs-manager/templates/project.md.template +26 -0
  174. package/templates/.claude/skills/docs-quality/SKILL.md +148 -0
  175. package/templates/.claude/skills/docx/LICENSE.txt +30 -0
  176. package/templates/.claude/skills/docx/SKILL.md +197 -0
  177. package/templates/.claude/skills/docx/docx-js.md +350 -0
  178. package/templates/.claude/skills/docx/ooxml.md +610 -0
  179. package/templates/.claude/skills/docx/scripts/__init__.py +1 -0
  180. package/templates/.claude/skills/docx/scripts/document.py +1276 -0
  181. package/templates/.claude/skills/docx/scripts/templates/comments.xml +3 -0
  182. package/templates/.claude/skills/docx/scripts/templates/commentsExtended.xml +3 -0
  183. package/templates/.claude/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
  184. package/templates/.claude/skills/docx/scripts/templates/commentsIds.xml +3 -0
  185. package/templates/.claude/skills/docx/scripts/templates/people.xml +3 -0
  186. package/templates/.claude/skills/docx/scripts/utilities.py +374 -0
  187. package/templates/.claude/skills/duraone/SKILL.md +204 -0
  188. package/templates/.claude/skills/duraone/references/backend.md +636 -0
  189. package/templates/.claude/skills/duraone/references/frontend.md +1506 -0
  190. package/templates/.claude/skills/duraone/references/sql.md +631 -0
  191. package/templates/.claude/skills/duraone/references/workflow.md +520 -0
  192. package/templates/.claude/skills/executing-plans/SKILL.md +76 -0
  193. package/templates/.claude/skills/file-organizer/SKILL.md +433 -0
  194. package/templates/.claude/skills/frontend/SKILL.md +26 -0
  195. package/templates/.claude/skills/frontend-design/LICENSE.txt +177 -0
  196. package/templates/.claude/skills/frontend-design/SKILL.md +42 -0
  197. package/templates/.claude/skills/frontend-vue/SKILL.md +127 -0
  198. package/templates/.claude/skills/frontend-vue/components/Control/Box.vue +137 -0
  199. package/templates/.claude/skills/frontend-vue/components/Control/Button.vue +93 -0
  200. package/templates/.claude/skills/frontend-vue/components/Control/ButtonBar.vue +29 -0
  201. package/templates/.claude/skills/frontend-vue/components/Control/ButtonFloat.vue +62 -0
  202. package/templates/.claude/skills/frontend-vue/components/Control/CheckButton.vue +75 -0
  203. package/templates/.claude/skills/frontend-vue/components/Control/Checkbox.vue +58 -0
  204. package/templates/.claude/skills/frontend-vue/components/Control/Datetime.vue +148 -0
  205. package/templates/.claude/skills/frontend-vue/components/Control/Dropdownlist.vue +156 -0
  206. package/templates/.claude/skills/frontend-vue/components/Control/Input.vue +106 -0
  207. package/templates/.claude/skills/frontend-vue/components/Control/Label.vue +38 -0
  208. package/templates/.claude/skills/frontend-vue/components/Control/Master/BoxColumn.vue +24 -0
  209. package/templates/.claude/skills/frontend-vue/components/Control/Popup/Confirm.vue +33 -0
  210. package/templates/.claude/skills/frontend-vue/components/Control/Popup/Info.vue +32 -0
  211. package/templates/.claude/skills/frontend-vue/components/Control/Popup/ModalInfo.vue +39 -0
  212. package/templates/.claude/skills/frontend-vue/components/Control/Popup/Reject.vue +64 -0
  213. package/templates/.claude/skills/frontend-vue/components/Control/Tag.vue +82 -0
  214. package/templates/.claude/skills/frontend-vue/components/Control/Upload.vue +61 -0
  215. package/templates/.claude/skills/frontend-vue/components/ControlMobile/Dropdownlist.vue +103 -0
  216. package/templates/.claude/skills/frontend-vue/components/ControlMobile/PagingBar.vue +108 -0
  217. package/templates/.claude/skills/frontend-vue/components/ControlMobile/UploadImage.vue +137 -0
  218. package/templates/.claude/skills/frontend-vue/components/Grid/AG.vue +806 -0
  219. package/templates/.claude/skills/frontend-vue/components/Grid/AntTable.vue +253 -0
  220. package/templates/.claude/skills/frontend-vue/components/Grid/CustomDropdownEditor.vue +43 -0
  221. package/templates/.claude/skills/frontend-vue/components/Grid/CustomDropdownEditorEnable.vue +55 -0
  222. package/templates/.claude/skills/frontend-vue/components/Grid/HtmlTable.vue +40 -0
  223. package/templates/.claude/skills/frontend-vue/components/PDFViewer.vue +25 -0
  224. package/templates/.claude/skills/frontend-vue/components/Panel/FormView.vue +309 -0
  225. package/templates/.claude/skills/frontend-vue/components/Partial/Footer.vue +23 -0
  226. package/templates/.claude/skills/frontend-vue/components/Partial/Header.vue +265 -0
  227. package/templates/.claude/skills/frontend-vue/components/Partial/Sidebar.vue +122 -0
  228. package/templates/.claude/skills/frontend-vue/components/Template.vue +16 -0
  229. package/templates/.claude/skills/frontend-vue/components/View/Form.vue +89 -0
  230. package/templates/.claude/skills/frontend-vue/composables/indexDBStore.js +140 -0
  231. package/templates/.claude/skills/frontend-vue/composables/masterApi.js +362 -0
  232. package/templates/.claude/skills/frontend-vue/composables/state.js +578 -0
  233. package/templates/.claude/skills/frontend-vue/composables/useRequest.js +221 -0
  234. package/templates/.claude/skills/frontend-vue/composables/useSession.js +179 -0
  235. package/templates/.claude/skills/frontend-vue/composables/useTranslation.js +54 -0
  236. package/templates/.claude/skills/frontend-vue/composables/useWebSocket.js +257 -0
  237. package/templates/.claude/skills/frontend-vue/composables/userObj.js +111 -0
  238. package/templates/.claude/skills/frontend-vue/composables/utils.js +322 -0
  239. package/templates/.claude/skills/frontend-vue/reference/composables-example.vue +320 -0
  240. package/templates/.claude/skills/frontend-vue/reference/form-example.vue +183 -0
  241. package/templates/.claude/skills/frontend-vue/reference/grid-example.vue +147 -0
  242. package/templates/.claude/skills/frontend-vue/reference/masterdata-example/[id].vue +106 -0
  243. package/templates/.claude/skills/frontend-vue/reference/masterdata-example/index.vue +58 -0
  244. package/templates/.claude/skills/frontend-vue/reference/popup-example.vue +159 -0
  245. package/templates/.claude/skills/pdf/LICENSE.txt +30 -0
  246. package/templates/.claude/skills/pdf/SKILL.md +294 -0
  247. package/templates/.claude/skills/pdf/forms.md +205 -0
  248. package/templates/.claude/skills/pdf/reference.md +612 -0
  249. package/templates/.claude/skills/pdf/scripts/check_bounding_boxes.py +70 -0
  250. package/templates/.claude/skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
  251. package/templates/.claude/skills/pdf/scripts/check_fillable_fields.py +12 -0
  252. package/templates/.claude/skills/pdf/scripts/convert_pdf_to_images.py +35 -0
  253. package/templates/.claude/skills/pdf/scripts/create_validation_image.py +41 -0
  254. package/templates/.claude/skills/pdf/scripts/extract_form_field_info.py +152 -0
  255. package/templates/.claude/skills/pdf/scripts/fill_fillable_fields.py +114 -0
  256. package/templates/.claude/skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
  257. package/templates/.claude/skills/pdf-processing/SKILL.md +107 -0
  258. package/templates/.claude/skills/pdf-processing-pro/FORMS.md +610 -0
  259. package/templates/.claude/skills/pdf-processing-pro/OCR.md +137 -0
  260. package/templates/.claude/skills/pdf-processing-pro/SKILL.md +296 -0
  261. package/templates/.claude/skills/pdf-processing-pro/TABLES.md +626 -0
  262. package/templates/.claude/skills/pdf-processing-pro/scripts/analyze_form.py +307 -0
  263. package/templates/.claude/skills/postgres/SKILL.md +69 -0
  264. package/templates/.claude/skills/postgres/reference/fn_get_examples.sql +208 -0
  265. package/templates/.claude/skills/postgres/reference/fn_rpt_examples.sql +239 -0
  266. package/templates/.claude/skills/postgres/reference/utility_functions.sql +94 -0
  267. package/templates/.claude/skills/pptx/LICENSE.txt +30 -0
  268. package/templates/.claude/skills/pptx/SKILL.md +484 -0
  269. package/templates/.claude/skills/pptx/html2pptx.md +625 -0
  270. package/templates/.claude/skills/pptx/ooxml.md +427 -0
  271. package/templates/.claude/skills/pptx/scripts/html2pptx.js +979 -0
  272. package/templates/.claude/skills/pptx/scripts/inventory.py +1020 -0
  273. package/templates/.claude/skills/pptx/scripts/rearrange.py +231 -0
  274. package/templates/.claude/skills/pptx/scripts/replace.py +385 -0
  275. package/templates/.claude/skills/pptx/scripts/thumbnail.py +450 -0
  276. package/templates/.claude/skills/repo-maintenance/SKILL.md +97 -0
  277. package/templates/.claude/skills/research/EXAMPLES.md +434 -0
  278. package/templates/.claude/skills/research/REFERENCE.md +399 -0
  279. package/templates/.claude/skills/research/SKILL.md +136 -0
  280. package/templates/.claude/skills/root-cause-tracing/SKILL.md +174 -0
  281. package/templates/.claude/skills/root-cause-tracing/find-polluter.sh +63 -0
  282. package/templates/.claude/skills/sharing-skills/SKILL.md +194 -0
  283. package/templates/.claude/skills/sql-optimization-patterns/SKILL.md +493 -0
  284. package/templates/.claude/skills/subagent-driven-development/SKILL.md +189 -0
  285. package/templates/.claude/skills/systematic-debugging/CREATION-LOG.md +119 -0
  286. package/templates/.claude/skills/systematic-debugging/SKILL.md +295 -0
  287. package/templates/.claude/skills/systematic-debugging/test-academic.md +14 -0
  288. package/templates/.claude/skills/systematic-debugging/test-pressure-1.md +58 -0
  289. package/templates/.claude/skills/systematic-debugging/test-pressure-2.md +68 -0
  290. package/templates/.claude/skills/systematic-debugging/test-pressure-3.md +69 -0
  291. package/templates/.claude/skills/test-driven-development/SKILL.md +364 -0
  292. package/templates/.claude/skills/testing-anti-patterns/SKILL.md +302 -0
  293. package/templates/.claude/skills/testing-quality/SKILL.md +97 -0
  294. package/templates/.claude/skills/verification-before-completion/SKILL.md +139 -0
  295. package/templates/.claude/skills/webapp-testing/LICENSE.txt +202 -0
  296. package/templates/.claude/skills/webapp-testing/SKILL.md +96 -0
  297. package/templates/.claude/skills/webapp-testing/examples/console_logging.py +35 -0
  298. package/templates/.claude/skills/webapp-testing/examples/element_discovery.py +40 -0
  299. package/templates/.claude/skills/webapp-testing/examples/static_html_automation.py +33 -0
  300. package/templates/.claude/skills/webapp-testing/scripts/with_server.py +106 -0
  301. package/templates/.claude/ukit/index/build-index.mjs +28 -0
  302. package/templates/.claude/ukit/index/cache-utils.mjs +140 -0
  303. package/templates/.claude/ukit/index/lib/index-core.mjs +2800 -0
  304. package/templates/.claude/ukit/index/query-index.mjs +150 -0
  305. package/templates/.claude/ukit/index/refresh-index.mjs +57 -0
  306. package/templates/.claude/ukit/index/reset-auto-permissions.mjs +76 -0
  307. package/templates/.claude/ukit/index/resolve-context.mjs +279 -0
  308. package/templates/.claude/ukit/index/route-catalog.mjs +258 -0
  309. package/templates/.claude/ukit/index/route-task.mjs +1994 -0
  310. package/templates/.claude/ukit/index/triage.mjs +133 -0
  311. package/templates/.claude/ukit/index/verify-context.mjs +689 -0
  312. package/templates/.claude/ukit/runtime/compact-threshold.mjs +1013 -0
  313. package/templates/.claude/ukit/runtime/output-compression.mjs +1340 -0
  314. package/templates/.claude/ukit/runtime/reinject-context.mjs +874 -0
  315. package/templates/.claude/ukit/runtime/token-utils.mjs +500 -0
  316. package/templates/.codex/README.md +83 -0
  317. package/templates/.codex/settings.json +187 -0
  318. package/templates/.gitignore +75 -0
  319. package/templates/AGENTS.md +116 -0
  320. package/templates/CLAUDE.md +93 -0
  321. package/templates/adapter-presets/antigravity/README.md +22 -0
  322. package/templates/adapter-presets/antigravity/rules.md +49 -0
  323. package/templates/adapter-presets/claude/settings.local.json +42 -0
  324. package/templates/adapter-presets/codex/settings.local.json +6 -0
  325. package/templates/adapter-presets/opencode/opencode.template.json +1 -0
  326. package/templates/docs/BUGFIX.md +20 -0
  327. package/templates/docs/BUG_INDEX.md +12 -0
  328. package/templates/docs/BUG_METRICS.md +7 -0
  329. package/templates/docs/BUG_TEMPLATE.md +13 -0
  330. package/templates/docs/CODE_MAP.md +35 -0
  331. package/templates/docs/INSTALL.md +113 -0
  332. package/templates/docs/MEMORY.md +49 -0
  333. package/templates/docs/PROJECT.md +50 -0
  334. package/templates/docs/UKIT_USAGE_GUIDE.md +147 -0
  335. package/templates/docs/WORKLOG.md +10 -0
  336. package/templates/ukit/README.md +14 -0
  337. package/templates/ukit/storage/cache/compact-history.json +3 -0
  338. package/templates/ukit/storage/cache/compact-pressure.json +1 -0
  339. package/templates/ukit/storage/cache/output-history.json +3 -0
  340. package/templates/ukit/storage/cache/prompt-cache.json +3 -0
  341. package/templates/ukit/storage/config.json +37 -0
  342. package/templates/ukit/storage/memory/projects/.gitkeep +2 -0
  343. package/templates/ukit/storage/memory/sessions/.gitkeep +0 -0
  344. package/templates/ukit/storage/memory/user.json +5 -0
@@ -0,0 +1,578 @@
1
+ /**
2
+ * @file state.js
3
+ * @description Global reactive state — quản lý trạng thái toàn cục của ứng dụng.
4
+ * Auto-import, truy cập trực tiếp: state.username, state.loading, ...
5
+ *
6
+ * Gồm:
7
+ * - state → Reactive object chứa user info, loading, page header
8
+ * - baseurl() → URL gốc backend (tự phân biệt prd/qas/localhost)
9
+ * - get_schema() → Schema database ("prd" hoặc "qas")
10
+ * - menu_prd / menu_qas → Cấu trúc menu sidebar
11
+ * - menu() → Trả menu theo env hiện tại
12
+ * - authorize_menu() → Kiểm tra quyền truy cập menu
13
+ */
14
+
15
+ /**
16
+ * Global reactive state object
17
+ * @property {string} username - Username đang đăng nhập
18
+ * @property {string} fullname - Tên đầy đủ user
19
+ * @property {string} language - Ngôn ngữ hiện tại (mã lang)
20
+ * @property {string} usergroup - Nhóm quyền user
21
+ * @property {string} page_header - Tiêu đề trang hiện tại
22
+ * @property {string} homepage - Trang chủ mặc định
23
+ * @property {boolean} loading - Trạng thái loading toàn cục (managed bởi request())
24
+ * @property {number} loading_count - Đếm số request đang chạy đồng thời
25
+ * @property {number} screen_height - Chiều cao màn hình
26
+ * @property {boolean} is_update - Flag đang ở chế độ cập nhật (form)
27
+ * @property {Object} objToTranslate - Object chứa bản dịch { origin: local }
28
+ */
29
+ export const state = reactive({
30
+ username: "",
31
+ fullname: "",
32
+ language: "",
33
+ usergroup: "",
34
+ page_header: "",
35
+ homepage: "/agreement/agreementtodo",
36
+ loading: false,
37
+ loading_count: 0,
38
+ screen_height: 0,
39
+ is_update: false,
40
+ objToTranslate: {},
41
+ });
42
+
43
+ /**
44
+ * Trả về base URL backend tương ứng với môi trường hiện tại.
45
+ * Tự detect dựa trên window.location.host:
46
+ * - chứa "qas" hoặc "localhost" → https://qas.duraoneportal.com/
47
+ * - production → https://duraoneportal.com/
48
+ * @returns {string} Base URL kèm trailing slash
49
+ */
50
+ export const baseurl = () => {
51
+ var url = window.location.host;
52
+ if (url.includes("qas")) {
53
+ return "https://qas.duraoneportal.com/";
54
+ }
55
+ if (url.includes("localhost")) {
56
+ return "https://qas.duraoneportal.com/";
57
+ // return "https://duraoneportal.com/";
58
+ // return "http://localhost:7778/";
59
+ }
60
+ return "https://duraoneportal.com/";
61
+ };
62
+ /**
63
+ * Trả về schema database tương ứng với môi trường.
64
+ * Dùng kèm mọi API call: { schema: get_schema(), table: "..." }
65
+ * @returns {"prd"|"qas"} Schema name
66
+ */
67
+ export const get_schema = () => {
68
+ var url = window.location.host;
69
+ if (url.includes("qas")) {
70
+ return "qas";
71
+ }
72
+ if(url.includes("localhost")){
73
+ return "qas";
74
+ // return "prd";
75
+ }
76
+ return "prd";
77
+ };
78
+
79
+ /**
80
+ * Menu sidebar cho môi trường Production.
81
+ * Cấu trúc mỗi item:
82
+ * @typedef {Object} MenuItem
83
+ * @property {string} link - ID nhóm menu (dùng cho routing/collapse)
84
+ * @property {string} name - Tên hiển thị
85
+ * @property {string} icon - FontAwesome icon class
86
+ * @property {Array<SubMenuItem>} sub_menu - Danh sách menu con
87
+ *
88
+ * @typedef {Object} SubMenuItem
89
+ * @property {string} name - Tên hiển thị
90
+ * @property {string} link - Route path (vd: "/master/branch")
91
+ * @property {string} icon - FontAwesome icon class
92
+ * @property {Array<string>} [authorize] - Danh sách usergroup được phép truy cập (undefined = tất cả)
93
+ *
94
+ * @type {Array<MenuItem>}
95
+ */
96
+ export const menu_prd = reactive([
97
+ {
98
+ link: "agreement_management",
99
+ name: "Agreement Management",
100
+ icon: "fas fa-file-signature",
101
+ sub_menu: [
102
+ {
103
+ name: "Todo Agreement",
104
+ link: "/agreement/agreementtodo",
105
+ icon: "fas fa-history",
106
+ },
107
+ {
108
+ name: "All Agreement",
109
+ link: "/agreement/agreementall",
110
+ icon: "fas fa-th-list",
111
+ },
112
+ {
113
+ name: "Pending Agreement",
114
+ link: "/agreement/agreementpending",
115
+ icon: "fas fa-spinner",
116
+ },
117
+ {
118
+ name: "Approved Agreement",
119
+ link: "/agreement/agreementapproved",
120
+ icon: "fas fa-check",
121
+ },
122
+ {
123
+ name: "Rejected Agreement",
124
+ link: "/agreement/agreementrejected",
125
+ icon: "fas fa-ban",
126
+ },
127
+ ],
128
+ },
129
+ {
130
+ link: "billing_management",
131
+ name: "Billing Management",
132
+ icon: "fas fa-file-invoice-dollar",
133
+ sub_menu: [
134
+ {
135
+ name: "Todo Billing",
136
+ link: "/billing/todo",
137
+ icon: "fas fa-history",
138
+ },
139
+ {
140
+ name: "All Billing",
141
+ link: "/billing/all",
142
+ icon: "fas fa-th-list",
143
+ },
144
+ ],
145
+ },
146
+ {
147
+ link: "collect_point_management",
148
+ name: "Collect Point",
149
+ icon: "fas fa-coins",
150
+ sub_menu: [
151
+ {
152
+ name: "Summary",
153
+ link: "/collect_point/summary",
154
+ icon: "fas fa-list",
155
+ },
156
+ {
157
+ name: "All Transactions",
158
+ link: "/collect_point/transactions",
159
+ icon: "fas fa-check",
160
+ },
161
+ {
162
+ name: "Review Transactions",
163
+ link: "/collect_point/reviewtransaction",
164
+ icon: "fas fa-search-location",
165
+ },
166
+ {
167
+ name: "Confirmed Transactions",
168
+ link: "/collect_point/reviewtransaction/confirm",
169
+ icon: "fas fa-check-double",
170
+ },
171
+ {
172
+ name: "Ineligible Transactions",
173
+ link: "/collect_point/reviewtransaction/not_eligible",
174
+ icon: "fas fa-times",
175
+ },
176
+ {
177
+ name: "BuzzeeBee Report",
178
+ link: "/collect_point/reviewtransaction/buzzeebee_report",
179
+ icon: "fab fa-hubspot",
180
+ },
181
+ {
182
+ name: "Report",
183
+ link: "/collect_point/report",
184
+ icon: "fas fa-server",
185
+ },
186
+ ],
187
+ },
188
+ {
189
+ link: "report",
190
+ name: "Report",
191
+ icon: "fas fa-chart-bar",
192
+ sub_menu: [
193
+ {
194
+ name: "Output Report",
195
+ link: "/report/master",
196
+ icon: "fas fa-server",
197
+ },
198
+ {
199
+ name: "Agreement",
200
+ link: "/report/agreement",
201
+ icon: "fas fa-file-signature",
202
+ },
203
+ {
204
+ name: "Billing",
205
+ link: "/report/billing",
206
+ icon: "fas fa-file-invoice-dollar",
207
+ },
208
+ ],
209
+ },
210
+ {
211
+ link: "master_data",
212
+ name: "Master Data",
213
+ icon: "fas fa-th",
214
+ sub_menu: [
215
+ {
216
+ name: "Agreement Period",
217
+ link: "/master/agreementperiod",
218
+ icon: "fas fa-clock",
219
+ },
220
+ {
221
+ name: "Type of Media",
222
+ link: "/master/typeofmedia",
223
+ icon: "fas fa-photo-video",
224
+ },
225
+ {
226
+ name: "Modern Trade",
227
+ link: "/master/moderntrade",
228
+ icon: "fas fa-exchange-alt",
229
+ },
230
+ {
231
+ name: "Branch",
232
+ link: "/master/branch",
233
+ icon: "fas fa-code-branch",
234
+ },
235
+ {
236
+ name: "User",
237
+ link: "/master/users",
238
+ icon: "fas fa-user",
239
+ },
240
+ {
241
+ name: "Permission",
242
+ link: "/master/permission",
243
+ icon: "fas fa-lock",
244
+ },
245
+ {
246
+ name: "Translation",
247
+ link: "/master/translation",
248
+ icon: "fas fa-language",
249
+ },
250
+ {
251
+ name: "Sub Dealer",
252
+ link: "/master/subdealer",
253
+ icon: "fas fa-users",
254
+ },
255
+ {
256
+ name: "Dealer",
257
+ link: "/master/dealer",
258
+ icon: "fas fa-users",
259
+ },
260
+ {
261
+ name: "Production Group",
262
+ link: "/master/productgroup",
263
+ icon: "fas fa-anchor",
264
+ },
265
+ {
266
+ name: "Product",
267
+ link: "/master/product",
268
+ icon: "fas fa-battery-full",
269
+ },
270
+ {
271
+ name: "Postal - Region",
272
+ link: "/master/postcode",
273
+ icon: "fas fa-map-marker-alt",
274
+ },
275
+ ],
276
+ },
277
+ ]);
278
+
279
+ /**
280
+ * Menu sidebar cho môi trường QAS (có thêm Stock Clearance, Line Chat)
281
+ * @type {Array<MenuItem>}
282
+ */
283
+ export const menu_qas = reactive([
284
+ {
285
+ link: "agreement_management",
286
+ name: "Agreement Management",
287
+ icon: "fas fa-file-signature",
288
+ sub_menu: [
289
+ {
290
+ name: "Todo Agreement",
291
+ link: "/agreement/agreementtodo",
292
+ icon: "fas fa-history",
293
+ },
294
+ {
295
+ name: "All Agreement",
296
+ link: "/agreement/agreementall",
297
+ icon: "fas fa-th-list",
298
+ },
299
+ {
300
+ name: "Pending Agreement",
301
+ link: "/agreement/agreementpending",
302
+ icon: "fas fa-spinner",
303
+ },
304
+ {
305
+ name: "Approved Agreement",
306
+ link: "/agreement/agreementapproved",
307
+ icon: "fas fa-check",
308
+ },
309
+ {
310
+ name: "Rejected Agreement",
311
+ link: "/agreement/agreementrejected",
312
+ icon: "fas fa-ban",
313
+ },
314
+ ],
315
+ },
316
+ {
317
+ link: "billing_management",
318
+ name: "Billing Management",
319
+ icon: "fas fa-file-invoice-dollar",
320
+ sub_menu: [
321
+ {
322
+ name: "Todo Billing",
323
+ link: "/billing/todo",
324
+ icon: "fas fa-history",
325
+ },
326
+ {
327
+ name: "All Billing",
328
+ link: "/billing/all",
329
+ icon: "fas fa-th-list",
330
+ },
331
+ ],
332
+ },
333
+ {
334
+ link: "collect_point_management",
335
+ name: "Collect Point",
336
+ icon: "fas fa-coins",
337
+ sub_menu: [
338
+ {
339
+ name: "Summary",
340
+ link: "/collect_point/summary",
341
+ icon: "fas fa-list",
342
+ },
343
+ {
344
+ name: "All Transactions",
345
+ link: "/collect_point/transactions",
346
+ icon: "fas fa-check",
347
+ },
348
+ {
349
+ name: "Review Transactions",
350
+ link: "/collect_point/reviewtransaction",
351
+ icon: "fas fa-search-location",
352
+ },
353
+ {
354
+ name: "Confirmed Transactions",
355
+ link: "/collect_point/reviewtransaction/confirm",
356
+ icon: "fas fa-check-double",
357
+ },
358
+ {
359
+ name: "Ineligible Transactions",
360
+ link: "/collect_point/reviewtransaction/not_eligible",
361
+ icon: "fas fa-times",
362
+ },
363
+ {
364
+ name: "BuzzeeBee Report",
365
+ link: "/collect_point/reviewtransaction/buzzeebee_report",
366
+ icon: "fab fa-hubspot",
367
+ },
368
+ {
369
+ name: "Report",
370
+ link: "/collect_point/report",
371
+ icon: "fas fa-server",
372
+ },
373
+ ],
374
+ },
375
+ {
376
+ link: "report",
377
+ name: "Report",
378
+ icon: "fas fa-chart-bar",
379
+ sub_menu: [
380
+ {
381
+ name: "Output Report",
382
+ link: "/report/master",
383
+ icon: "fas fa-server",
384
+ },
385
+ {
386
+ name: "Agreement",
387
+ link: "/report/agreement",
388
+ icon: "fas fa-file-signature",
389
+ },
390
+ {
391
+ name: "Billing",
392
+ link: "/report/billing",
393
+ icon: "fas fa-file-invoice-dollar",
394
+ },
395
+ ],
396
+ },
397
+ {
398
+ link: "master_data",
399
+ name: "Master Data",
400
+ icon: "fas fa-th",
401
+ sub_menu: [
402
+ {
403
+ name: "Agreement Period",
404
+ link: "/master/agreementperiod",
405
+ icon: "fas fa-clock",
406
+ },
407
+ {
408
+ name: "Type of Media",
409
+ link: "/master/typeofmedia",
410
+ icon: "fas fa-photo-video",
411
+ },
412
+ {
413
+ name: "Modern Trade",
414
+ link: "/master/moderntrade",
415
+ icon: "fas fa-exchange-alt",
416
+ },
417
+ {
418
+ name: "Branch",
419
+ link: "/master/branch",
420
+ icon: "fas fa-code-branch",
421
+ },
422
+ {
423
+ name: "User",
424
+ link: "/master/users",
425
+ icon: "fas fa-user",
426
+ authorize: ["Approver"],
427
+ },
428
+ {
429
+ name: "Permission",
430
+ link: "/master/permission",
431
+ icon: "fas fa-lock",
432
+ authorize: ["Approver"],
433
+ },
434
+ {
435
+ name: "Translation",
436
+ link: "/master/translation",
437
+ icon: "fas fa-language",
438
+ authorize: ["Approver"],
439
+ },
440
+ {
441
+ name: "Sub Dealer",
442
+ link: "/master/subdealer",
443
+ icon: "fas fa-users",
444
+ },
445
+ {
446
+ name: "Dealer",
447
+ link: "/master/dealer",
448
+ icon: "fas fa-users",
449
+ },
450
+ {
451
+ name: "Production Group",
452
+ link: "/master/productgroup",
453
+ icon: "fas fa-anchor",
454
+ },
455
+ {
456
+ name: "Product",
457
+ link: "/master/product",
458
+ icon: "fas fa-battery-full",
459
+ },
460
+ {
461
+ name: "Postal - Region",
462
+ link: "/master/postcode",
463
+ icon: "fas fa-map-marker-alt",
464
+ },
465
+ ],
466
+ },
467
+ {
468
+ link: "stockclearance",
469
+ name: "Stock Clearance",
470
+ icon: "fas fa-warehouse",
471
+ sub_menu: [
472
+ {
473
+ name: "Customer List",
474
+ link: "/stockclearance/customer",
475
+ icon: "fas fa-users",
476
+ },
477
+ {
478
+ name: "Product List",
479
+ link: "/stockclearance/product",
480
+ icon: "fas fa-box",
481
+ },
482
+ {
483
+ name: "Product Modern Trade",
484
+ link: "/stockclearance/productmoderntrade",
485
+ icon: "fas fa-store",
486
+ },
487
+ {
488
+ name: "Product View",
489
+ link: "/stockclearance/productview",
490
+ icon: "fas fa-list-alt",
491
+ }
492
+ ],
493
+ },
494
+ {
495
+ link: "linechat",
496
+ name: "Line Chat",
497
+ icon: "fab fa-line",
498
+ sub_menu: [
499
+ {
500
+ name: "Contact",
501
+ link: "/line/contact",
502
+ icon: "fas fa-address-book",
503
+ },
504
+ {
505
+ name: "Coupon",
506
+ link: "/line/coupon",
507
+ icon: "fas fa-ticket-alt",
508
+ },
509
+ {
510
+ name: "OA Config",
511
+ link: "/line/oaconfig",
512
+ icon: "fas fa-cogs",
513
+ },
514
+ {
515
+ name: "Membership",
516
+ link: "/line/membership",
517
+ icon: "fas fa-user-friends",
518
+ },
519
+ {
520
+ name: "Partner",
521
+ link: "/line/partner",
522
+ icon: "fas fa-handshake",
523
+ },
524
+ {
525
+ name: "Transaction",
526
+ link: "/line/transaction",
527
+ icon: "fas fa-exchange-alt",
528
+ },
529
+ {
530
+ name: "Line Account",
531
+ link: "/line/lineaccount",
532
+ icon: "fas fa-user-circle",
533
+ },
534
+ ],
535
+ },
536
+ ]);
537
+
538
+
539
+ /**
540
+ * Trả về menu tương ứng với env hiện tại (prd hoặc qas)
541
+ * @returns {Array<MenuItem>} Menu sidebar
542
+ */
543
+ export const menu = () => {
544
+ if (get_schema() === "prd") {
545
+ return menu_prd;
546
+ }
547
+ return menu_qas;
548
+ };
549
+
550
+ /**
551
+ * Kiểm tra user hiện tại có quyền truy cập menu_path không.
552
+ * Nếu sub_menu không có field authorize → cho phép tất cả.
553
+ * Nếu có authorize → kiểm tra usergroup của session có nằm trong danh sách không.
554
+ * @param {string} menu_path - Route path cần kiểm tra (vd: "/master/users")
555
+ * @returns {boolean} true nếu được phép truy cập
556
+ */
557
+ export const authorize_menu = (menu_path) => {
558
+ const usergroup = getSession("usergroup");
559
+
560
+ for (const item of menu()) {
561
+ if (!item.sub_menu) continue;
562
+
563
+ for (const sub of item.sub_menu) {
564
+ if (sub.link === menu_path) {
565
+ if (typeof sub.authorize === "undefined" || sub.authorize === "undefined" || sub.authorize === undefined) {
566
+ return true;
567
+ }
568
+ if (usergroup && usergroup.some((role) =>
569
+ sub.authorize && sub.authorize.includes(role)
570
+ )) {
571
+ return true;
572
+ }
573
+ return false;
574
+ }
575
+ }
576
+ }
577
+ return false;
578
+ };