@witty-ai/skill-insight 0.5.0-beta → 0.7.0-beta

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 (303) hide show
  1. package/.env.example +6 -0
  2. package/.next/standalone/.next/BUILD_ID +1 -1
  3. package/.next/standalone/.next/app-path-routes-manifest.json +4 -0
  4. package/.next/standalone/.next/build-manifest.json +2 -2
  5. package/.next/standalone/.next/prerender-manifest.json +3 -3
  6. package/.next/standalone/.next/routes-manifest.json +24 -0
  7. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  8. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  15. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  17. package/.next/standalone/.next/server/app/_not-found.rsc +4 -4
  18. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  19. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  20. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  21. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  22. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  23. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  24. package/.next/standalone/.next/server/app/api/config/create/route.js +4 -3
  25. package/.next/standalone/.next/server/app/api/config/create/route.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/api/config/route.js +5 -4
  27. package/.next/standalone/.next/server/app/api/config/route.js.nft.json +1 -1
  28. package/.next/standalone/.next/server/app/api/data/route.js +6 -5
  29. package/.next/standalone/.next/server/app/api/data/route.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/api/evaluation/route.js.nft.json +1 -1
  31. package/.next/standalone/.next/server/app/api/otel/v1/logs/route.js +6 -5
  32. package/.next/standalone/.next/server/app/api/otel/v1/logs/route.js.nft.json +1 -1
  33. package/.next/standalone/.next/server/app/api/otel/v1/traces/route.js +4 -3
  34. package/.next/standalone/.next/server/app/api/otel/v1/traces/route.js.nft.json +1 -1
  35. package/.next/standalone/.next/server/app/api/proxy/[taskId]/[...path]/route.js +1 -1
  36. package/.next/standalone/.next/server/app/api/proxy/[taskId]/end/route.js +4 -3
  37. package/.next/standalone/.next/server/app/api/proxy/[taskId]/end/route.js.nft.json +1 -1
  38. package/.next/standalone/.next/server/app/api/rejudge/route.js +6 -5
  39. package/.next/standalone/.next/server/app/api/rejudge/route.js.nft.json +1 -1
  40. package/.next/standalone/.next/server/app/api/session/route.js +4 -4
  41. package/.next/standalone/.next/server/app/api/session/route.js.nft.json +1 -1
  42. package/.next/standalone/.next/server/app/api/setup/opencode-commands/si-optimizer/route/app-paths-manifest.json +3 -0
  43. package/.next/standalone/.next/server/app/api/setup/opencode-commands/si-optimizer/route/build-manifest.json +11 -0
  44. package/.next/standalone/.next/server/app/api/setup/opencode-commands/si-optimizer/route/server-reference-manifest.json +4 -0
  45. package/.next/standalone/.next/server/app/api/setup/opencode-commands/si-optimizer/route.js +6 -0
  46. package/.next/standalone/.next/server/app/api/setup/opencode-commands/si-optimizer/route.js.map +5 -0
  47. package/.next/standalone/.next/server/app/api/setup/opencode-commands/si-optimizer/route.js.nft.json +1 -0
  48. package/.next/standalone/.next/server/app/api/setup/opencode-commands/si-optimizer/route_client-reference-manifest.js +2 -0
  49. package/.next/standalone/.next/server/app/api/setup/opencode-tui/route/app-paths-manifest.json +3 -0
  50. package/.next/standalone/.next/server/app/api/setup/opencode-tui/route/build-manifest.json +11 -0
  51. package/.next/standalone/.next/server/app/api/setup/opencode-tui/route/server-reference-manifest.json +4 -0
  52. package/.next/standalone/.next/server/app/api/setup/opencode-tui/route.js +6 -0
  53. package/.next/standalone/.next/server/app/api/setup/opencode-tui/route.js.map +5 -0
  54. package/.next/standalone/.next/server/app/api/setup/opencode-tui/route.js.nft.json +1 -0
  55. package/.next/standalone/.next/server/app/api/setup/opencode-tui/route_client-reference-manifest.js +2 -0
  56. package/.next/standalone/.next/server/app/api/skills/[id]/versions/[version]/download/route.js.nft.json +1 -1
  57. package/.next/standalone/.next/server/app/api/skills/[id]/versions/[version]/route.js +3 -2
  58. package/.next/standalone/.next/server/app/api/skills/[id]/versions/[version]/route.js.nft.json +1 -1
  59. package/.next/standalone/.next/server/app/api/skills/[id]/versions/route.js +5 -2
  60. package/.next/standalone/.next/server/app/api/skills/[id]/versions/route.js.nft.json +1 -1
  61. package/.next/standalone/.next/server/app/api/skills/automation/import/route.js +5 -2
  62. package/.next/standalone/.next/server/app/api/skills/automation/import/route.js.nft.json +1 -1
  63. package/.next/standalone/.next/server/app/api/skills/logs/route.js +6 -5
  64. package/.next/standalone/.next/server/app/api/skills/logs/route.js.nft.json +1 -1
  65. package/.next/standalone/.next/server/app/api/skills/route.js +3 -2
  66. package/.next/standalone/.next/server/app/api/skills/route.js.nft.json +1 -1
  67. package/.next/standalone/.next/server/app/api/skills/sync-enterprise/route/app-paths-manifest.json +3 -0
  68. package/.next/standalone/.next/server/app/api/skills/sync-enterprise/route/build-manifest.json +11 -0
  69. package/.next/standalone/.next/server/app/api/skills/sync-enterprise/route/server-reference-manifest.json +4 -0
  70. package/.next/standalone/.next/server/app/api/skills/sync-enterprise/route.js +8 -0
  71. package/.next/standalone/.next/server/app/api/skills/sync-enterprise/route.js.map +5 -0
  72. package/.next/standalone/.next/server/app/api/skills/sync-enterprise/route.js.nft.json +1 -0
  73. package/.next/standalone/.next/server/app/api/skills/sync-enterprise/route_client-reference-manifest.js +2 -0
  74. package/.next/standalone/.next/server/app/api/skills/upload/route.js +5 -2
  75. package/.next/standalone/.next/server/app/api/skills/upload/route.js.nft.json +1 -1
  76. package/.next/standalone/.next/server/app/api/task-stats/route/app-paths-manifest.json +3 -0
  77. package/.next/standalone/.next/server/app/api/task-stats/route/build-manifest.json +11 -0
  78. package/.next/standalone/.next/server/app/api/task-stats/route/server-reference-manifest.json +4 -0
  79. package/.next/standalone/.next/server/app/api/task-stats/route.js +12 -0
  80. package/.next/standalone/.next/server/app/api/task-stats/route.js.map +5 -0
  81. package/.next/standalone/.next/server/app/api/task-stats/route.js.nft.json +1 -0
  82. package/.next/standalone/.next/server/app/api/task-stats/route_client-reference-manifest.js +2 -0
  83. package/.next/standalone/.next/server/app/api/upload/route.js +5 -4
  84. package/.next/standalone/.next/server/app/api/upload/route.js.nft.json +1 -1
  85. package/.next/standalone/.next/server/app/details/page/react-loadable-manifest.json +2 -2
  86. package/.next/standalone/.next/server/app/details/page.js.nft.json +1 -1
  87. package/.next/standalone/.next/server/app/details/page_client-reference-manifest.js +1 -1
  88. package/.next/standalone/.next/server/app/details.html +1 -1
  89. package/.next/standalone/.next/server/app/details.rsc +5 -5
  90. package/.next/standalone/.next/server/app/details.segments/_full.segment.rsc +5 -5
  91. package/.next/standalone/.next/server/app/details.segments/_head.segment.rsc +1 -1
  92. package/.next/standalone/.next/server/app/details.segments/_index.segment.rsc +3 -3
  93. package/.next/standalone/.next/server/app/details.segments/_tree.segment.rsc +2 -2
  94. package/.next/standalone/.next/server/app/details.segments/details/__PAGE__.segment.rsc +2 -2
  95. package/.next/standalone/.next/server/app/details.segments/details.segment.rsc +1 -1
  96. package/.next/standalone/.next/server/app/index.html +1 -1
  97. package/.next/standalone/.next/server/app/index.rsc +5 -5
  98. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  99. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +5 -5
  100. package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  101. package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +3 -3
  102. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  103. package/.next/standalone/.next/server/app/login/page.js.nft.json +1 -1
  104. package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  105. package/.next/standalone/.next/server/app/login.html +1 -1
  106. package/.next/standalone/.next/server/app/login.rsc +5 -5
  107. package/.next/standalone/.next/server/app/login.segments/_full.segment.rsc +5 -5
  108. package/.next/standalone/.next/server/app/login.segments/_head.segment.rsc +1 -1
  109. package/.next/standalone/.next/server/app/login.segments/_index.segment.rsc +3 -3
  110. package/.next/standalone/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  111. package/.next/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  112. package/.next/standalone/.next/server/app/login.segments/login.segment.rsc +1 -1
  113. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  114. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  115. package/.next/standalone/.next/server/app/skills/page.js.nft.json +1 -1
  116. package/.next/standalone/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  117. package/.next/standalone/.next/server/app/skills.html +1 -1
  118. package/.next/standalone/.next/server/app/skills.rsc +5 -5
  119. package/.next/standalone/.next/server/app/skills.segments/_full.segment.rsc +5 -5
  120. package/.next/standalone/.next/server/app/skills.segments/_head.segment.rsc +1 -1
  121. package/.next/standalone/.next/server/app/skills.segments/_index.segment.rsc +3 -3
  122. package/.next/standalone/.next/server/app/skills.segments/_tree.segment.rsc +2 -2
  123. package/.next/standalone/.next/server/app/skills.segments/skills/__PAGE__.segment.rsc +2 -2
  124. package/.next/standalone/.next/server/app/skills.segments/skills.segment.rsc +1 -1
  125. package/.next/standalone/.next/server/app-paths-manifest.json +4 -0
  126. package/.next/standalone/.next/server/chunks/[root-of-the-server]__02ddba88._.js +1 -1
  127. package/.next/standalone/.next/server/chunks/[root-of-the-server]__15dbd1f2._.js +3 -0
  128. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1c95bcde._.js +1 -1
  129. package/.next/standalone/.next/server/chunks/[root-of-the-server]__23efcd78._.js +3 -0
  130. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a6d443b._.js +1 -1
  131. package/.next/standalone/.next/server/chunks/[root-of-the-server]__53775b48._.js +1 -1
  132. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5444db55._.js +1 -1
  133. package/.next/standalone/.next/server/chunks/[root-of-the-server]__591248f3._.js +1 -1
  134. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5d8178f6._.js +1 -1
  135. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6261d672._.js +3 -0
  136. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6923eecf._.js +1 -1
  137. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6fc12878._.js +1 -1
  138. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8402dfd1._.js +3 -0
  139. package/.next/standalone/.next/server/chunks/[root-of-the-server]__863cf6de._.js +1 -1
  140. package/.next/standalone/.next/server/chunks/[root-of-the-server]__89404730._.js +3 -0
  141. package/.next/standalone/.next/server/chunks/[root-of-the-server]__98b3de5e._.js +1 -1
  142. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9d551ea2._.js +1 -1
  143. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a4d3d791._.js +1 -1
  144. package/.next/standalone/.next/server/chunks/[root-of-the-server]__aa3d72e3._.js +3 -0
  145. package/.next/standalone/.next/server/chunks/[root-of-the-server]__aa5c8858._.js +2 -2
  146. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b11acc79._.js +1 -1
  147. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ba01f286._.js +1 -1
  148. package/.next/standalone/.next/server/chunks/[root-of-the-server]__bd91659b._.js +1 -1
  149. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c200214a._.js +1 -1
  150. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c20da96a._.js +3 -0
  151. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c602c518._.js +3 -0
  152. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d7fab946._.js +1 -1
  153. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d8c1808b._.js +1 -1
  154. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d9b9fecc._.js +1 -1
  155. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ddf63a21._.js +3 -0
  156. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e280561d._.js +1 -1
  157. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e550423c._.js +1 -1
  158. package/.next/standalone/.next/server/chunks/[root-of-the-server]__f9e66e02._.js +3 -0
  159. package/.next/standalone/.next/server/chunks/_33c0c729._.js +1 -1
  160. package/.next/standalone/.next/server/chunks/_3e8b4d8c._.js +1 -1
  161. package/.next/standalone/.next/server/chunks/_46f10554._.js +3 -0
  162. package/.next/standalone/.next/server/chunks/_4c806e26._.js +3 -0
  163. package/.next/standalone/.next/server/chunks/_cd3d20ca._.js +1 -1
  164. package/.next/standalone/.next/server/chunks/_ddffef3e._.js +1 -1
  165. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_setup_opencode-tui_route_actions_fc8ae29f.js +3 -0
  166. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_skills_sync-enterprise_route_actions_0ca45899.js +3 -0
  167. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_task-stats_route_actions_983505cd.js +3 -0
  168. package/.next/standalone/.next/server/chunks/ce889_server_app_api_setup_opencode-commands_si-optimizer_route_actions_fcde30ef.js +3 -0
  169. package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_c33286ed.js +47 -4
  170. package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_f42faeee.js +1 -1
  171. package/.next/standalone/.next/server/chunks/src_98433cb8._.js +237 -0
  172. package/.next/standalone/.next/server/chunks/src_c8971a2d._.js +57 -8
  173. package/.next/standalone/.next/server/chunks/src_lib_119f6c7b._.js +3 -0
  174. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__9ab7cc4a._.js → [root-of-the-server]__082c32a2._.js} +2 -2
  175. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__51073007._.js +1 -1
  176. package/.next/standalone/.next/server/chunks/ssr/_049876f0._.js +1 -1
  177. package/.next/standalone/.next/server/chunks/ssr/_09546b95._.js +1 -1
  178. package/.next/standalone/.next/server/chunks/ssr/_8f5379ab._.js +1 -1
  179. package/.next/standalone/.next/server/chunks/ssr/_c8c8c083._.js +9 -9
  180. package/.next/standalone/.next/server/chunks/ssr/{_b121f1ae._.js → _e2faf4f5._.js} +2 -2
  181. package/.next/standalone/.next/server/chunks/ssr/_fd46f439._.js +2 -1
  182. package/.next/standalone/.next/server/chunks/ssr/node_modules_dagre-d3-es_src_dagre_index_3582f3d0.js +1 -1
  183. package/.next/standalone/.next/server/chunks/ssr/node_modules_lodash-es_a1341fea._.js +1 -1
  184. package/.next/standalone/.next/server/chunks/ssr/node_modules_lodash-es_e1de6ed8._.js +1 -1
  185. package/.next/standalone/.next/server/chunks/ssr/src_66a70595._.js +1 -1
  186. package/.next/standalone/.next/server/chunks/ssr/src_app_login_page_tsx_72f58654._.js +1 -1
  187. package/.next/standalone/.next/server/pages/404.html +1 -1
  188. package/.next/standalone/.next/server/pages/500.html +2 -2
  189. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  190. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  191. package/.next/standalone/.next/static/chunks/{737b8cff3c6a4e30.js → 015467355d3866a3.js} +1 -1
  192. package/.next/standalone/.next/static/chunks/09f192c9b0609ad8.js +1 -0
  193. package/.next/standalone/.next/static/chunks/1945a5514fbc393c.css +1 -0
  194. package/.next/{static/chunks/07c9f28a269c701a.js → standalone/.next/static/chunks/361e4cf1e9a71ccb.js} +1 -1
  195. package/.next/{static/chunks/5432ce4a494bc74d.js → standalone/.next/static/chunks/60bc50374fd32f20.js} +3 -3
  196. package/.next/standalone/.next/static/chunks/{251551dcdf74a60d.js → 65bac0880a87bff3.js} +1 -1
  197. package/.next/standalone/.next/static/chunks/961f7fa606dd26a8.js +1 -0
  198. package/.next/standalone/.next/static/chunks/bab2ffd4f527acfb.js +1 -0
  199. package/.next/standalone/.next/static/chunks/c513373e5cfedd5b.js +2 -0
  200. package/.next/standalone/.next/static/chunks/ca3017e51e817855.js +1 -0
  201. package/.next/{static/chunks/7e35f4cf2e266022.js → standalone/.next/static/chunks/cb104c3cb4c52833.js} +1 -1
  202. package/.next/{static/chunks/ff6357067630b168.js → standalone/.next/static/chunks/e13d208072a48316.js} +1 -1
  203. package/.next/standalone/.next/static/chunks/{e09d9ee16fe90255.js → f786bb68e17b12b4.js} +1 -1
  204. package/.next/standalone/.next/static/chunks/fc61b990c5ec4ef4.js +109 -0
  205. package/.next/standalone/node_modules/.prisma/client/edge.js +7 -3
  206. package/.next/standalone/node_modules/.prisma/client/index-browser.js +4 -0
  207. package/.next/standalone/node_modules/.prisma/client/index.js +7 -3
  208. package/.next/standalone/node_modules/.prisma/client/package.json +1 -1
  209. package/.next/standalone/node_modules/.prisma/client/schema.prisma +26 -22
  210. package/.next/standalone/node_modules/.prisma/client/wasm.js +4 -0
  211. package/.next/standalone/node_modules/adm-zip/util/constants.js +142 -0
  212. package/.next/standalone/node_modules/adm-zip/util/decoder.js +5 -0
  213. package/.next/standalone/node_modules/adm-zip/util/errors.js +63 -0
  214. package/.next/standalone/node_modules/adm-zip/util/fattr.js +76 -0
  215. package/.next/standalone/node_modules/adm-zip/util/index.js +5 -0
  216. package/.next/standalone/node_modules/adm-zip/util/utils.js +339 -0
  217. package/.next/standalone/package.json +6 -2
  218. package/.next/standalone/prisma/schema.prisma +7 -3
  219. package/.next/standalone/scripts/opencode_plugin.ts +158 -50
  220. package/.next/standalone/scripts/opencode_tui_plugin.tsx +308 -0
  221. package/.next/standalone/scripts/si-optimizer.md +5 -0
  222. package/.next/static/chunks/{737b8cff3c6a4e30.js → 015467355d3866a3.js} +1 -1
  223. package/.next/static/chunks/09f192c9b0609ad8.js +1 -0
  224. package/.next/static/chunks/1945a5514fbc393c.css +1 -0
  225. package/.next/{standalone/.next/static/chunks/07c9f28a269c701a.js → static/chunks/361e4cf1e9a71ccb.js} +1 -1
  226. package/.next/{standalone/.next/static/chunks/5432ce4a494bc74d.js → static/chunks/60bc50374fd32f20.js} +3 -3
  227. package/.next/static/chunks/{251551dcdf74a60d.js → 65bac0880a87bff3.js} +1 -1
  228. package/.next/static/chunks/961f7fa606dd26a8.js +1 -0
  229. package/.next/static/chunks/bab2ffd4f527acfb.js +1 -0
  230. package/.next/static/chunks/c513373e5cfedd5b.js +2 -0
  231. package/.next/static/chunks/ca3017e51e817855.js +1 -0
  232. package/.next/{standalone/.next/static/chunks/7e35f4cf2e266022.js → static/chunks/cb104c3cb4c52833.js} +1 -1
  233. package/.next/{standalone/.next/static/chunks/ff6357067630b168.js → static/chunks/e13d208072a48316.js} +1 -1
  234. package/.next/static/chunks/{e09d9ee16fe90255.js → f786bb68e17b12b4.js} +1 -1
  235. package/.next/static/chunks/fc61b990c5ec4ef4.js +109 -0
  236. package/package.json +6 -2
  237. package/prisma/schema.prisma +7 -3
  238. package/scripts/activate_telemetry.sh +44 -1
  239. package/scripts/opencode_plugin.ts +158 -50
  240. package/scripts/opencode_tui_plugin.tsx +308 -0
  241. package/scripts/si-optimizer.md +5 -0
  242. package/scripts/utils.js +0 -1
  243. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1013b265._.js +0 -3
  244. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1ce5e3b8._.js +0 -3
  245. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6d8053e2._.js +0 -3
  246. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b835ea7f._.js +0 -3
  247. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e2f0baee._.js +0 -3
  248. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fc05579d._.js +0 -3
  249. package/.next/standalone/.next/server/chunks/_41a98bd8._.js +0 -3
  250. package/.next/standalone/.next/server/chunks/src_497d2ad2._.js +0 -175
  251. package/.next/standalone/.next/server/chunks/src_lib_12408140._.js +0 -3
  252. package/.next/standalone/.next/static/chunks/01eddf501c574a44.js +0 -1
  253. package/.next/standalone/.next/static/chunks/1e782a49beaf489c.js +0 -1
  254. package/.next/standalone/.next/static/chunks/4071dbec4cf7e72e.js +0 -109
  255. package/.next/standalone/.next/static/chunks/67bd1a5de2195779.js +0 -1
  256. package/.next/standalone/.next/static/chunks/a87b5e84254095a5.js +0 -1
  257. package/.next/standalone/.next/static/chunks/c6bd2818656b1f20.css +0 -1
  258. package/.next/standalone/.next/static/chunks/dc59a07a8f327b40.js +0 -1
  259. package/.next/standalone/LICENSE +0 -21
  260. package/.next/standalone/bin/cli.js +0 -106
  261. package/.next/standalone/custom-models.example.json +0 -21
  262. package/.next/standalone/eslint.config.mjs +0 -18
  263. package/.next/standalone/features/feature-skill-used-jump-link/design/2026-03-18-skill-used-jump-link-design.md +0 -126
  264. package/.next/standalone/features/feature-skill-used-jump-link/feature.json +0 -32
  265. package/.next/standalone/features/feature-skill-used-jump-link/issue.md +0 -32
  266. package/.next/standalone/features/feature-skill-used-jump-link/plans/2026-03-18-skill-used-jump-link.md +0 -528
  267. package/.next/standalone/next.config.ts +0 -41
  268. package/.next/standalone/scripts/activate_telemetry.sh +0 -159
  269. package/.next/standalone/scripts/create_migration_package.sh +0 -124
  270. package/.next/standalone/scripts/fix_models.js +0 -66
  271. package/.next/standalone/scripts/init_opengauss.py +0 -284
  272. package/.next/standalone/scripts/install.js +0 -273
  273. package/.next/standalone/scripts/logs.js +0 -38
  274. package/.next/standalone/scripts/otel_data/logs.jsonl +0 -12
  275. package/.next/standalone/scripts/otel_data/metrics.jsonl +0 -21
  276. package/.next/standalone/scripts/otel_data/raw_requests.jsonl +0 -8
  277. package/.next/standalone/scripts/otel_data/raw_requests.jsonl.bak +0 -6
  278. package/.next/standalone/scripts/otel_receiver.py +0 -580
  279. package/.next/standalone/scripts/postinstall.js +0 -192
  280. package/.next/standalone/scripts/publish-npm.js +0 -401
  281. package/.next/standalone/scripts/restart.js +0 -26
  282. package/.next/standalone/scripts/restart.sh +0 -138
  283. package/.next/standalone/scripts/restart_dev.sh +0 -132
  284. package/.next/standalone/scripts/start.js +0 -291
  285. package/.next/standalone/scripts/status.js +0 -41
  286. package/.next/standalone/scripts/stop.js +0 -90
  287. package/.next/standalone/scripts/sync_skills.js +0 -216
  288. package/.next/standalone/scripts/utils.js +0 -235
  289. package/.next/standalone/tests/setup_skill_optimizer.sh +0 -118
  290. package/.next/standalone/tsconfig.json +0 -34
  291. package/.next/static/chunks/01eddf501c574a44.js +0 -1
  292. package/.next/static/chunks/1e782a49beaf489c.js +0 -1
  293. package/.next/static/chunks/4071dbec4cf7e72e.js +0 -109
  294. package/.next/static/chunks/67bd1a5de2195779.js +0 -1
  295. package/.next/static/chunks/a87b5e84254095a5.js +0 -1
  296. package/.next/static/chunks/c6bd2818656b1f20.css +0 -1
  297. package/.next/static/chunks/dc59a07a8f327b40.js +0 -1
  298. /package/.next/standalone/.next/static/{H581Rok68JtPV4bAVVH3l → iKG72t8Hpebb09DcIpKUJ}/_buildManifest.js +0 -0
  299. /package/.next/standalone/.next/static/{H581Rok68JtPV4bAVVH3l → iKG72t8Hpebb09DcIpKUJ}/_clientMiddlewareManifest.json +0 -0
  300. /package/.next/standalone/.next/static/{H581Rok68JtPV4bAVVH3l → iKG72t8Hpebb09DcIpKUJ}/_ssgManifest.js +0 -0
  301. /package/.next/static/{H581Rok68JtPV4bAVVH3l → iKG72t8Hpebb09DcIpKUJ}/_buildManifest.js +0 -0
  302. /package/.next/static/{H581Rok68JtPV4bAVVH3l → iKG72t8Hpebb09DcIpKUJ}/_clientMiddlewareManifest.json +0 -0
  303. /package/.next/static/{H581Rok68JtPV4bAVVH3l → iKG72t8Hpebb09DcIpKUJ}/_ssgManifest.js +0 -0
@@ -0,0 +1,339 @@
1
+ const fsystem = require("fs");
2
+ const pth = require("path");
3
+ const Constants = require("./constants");
4
+ const Errors = require("./errors");
5
+ const isWin = typeof process === "object" && "win32" === process.platform;
6
+
7
+ const is_Obj = (obj) => typeof obj === "object" && obj !== null;
8
+
9
+ // generate CRC32 lookup table
10
+ const crcTable = new Uint32Array(256).map((t, c) => {
11
+ for (let k = 0; k < 8; k++) {
12
+ if ((c & 1) !== 0) {
13
+ c = 0xedb88320 ^ (c >>> 1);
14
+ } else {
15
+ c >>>= 1;
16
+ }
17
+ }
18
+ return c >>> 0;
19
+ });
20
+
21
+ // UTILS functions
22
+
23
+ function Utils(opts) {
24
+ this.sep = pth.sep;
25
+ this.fs = fsystem;
26
+
27
+ if (is_Obj(opts)) {
28
+ // custom filesystem
29
+ if (is_Obj(opts.fs) && typeof opts.fs.statSync === "function") {
30
+ this.fs = opts.fs;
31
+ }
32
+ }
33
+ }
34
+
35
+ module.exports = Utils;
36
+
37
+ // INSTANTIABLE functions
38
+
39
+ Utils.prototype.makeDir = function (/*String*/ folder) {
40
+ const self = this;
41
+
42
+ // Sync - make directories tree
43
+ function mkdirSync(/*String*/ fpath) {
44
+ let resolvedPath = fpath.split(self.sep)[0];
45
+ fpath.split(self.sep).forEach(function (name) {
46
+ if (!name || name.substr(-1, 1) === ":") return;
47
+ resolvedPath += self.sep + name;
48
+ var stat;
49
+ try {
50
+ stat = self.fs.statSync(resolvedPath);
51
+ } catch (e) {
52
+ if (e.message && e.message.startsWith('ENOENT')) {
53
+ self.fs.mkdirSync(resolvedPath);
54
+ } else {
55
+ throw e;
56
+ }
57
+ }
58
+ if (stat && stat.isFile()) throw Errors.FILE_IN_THE_WAY(`"${resolvedPath}"`);
59
+ });
60
+ }
61
+
62
+ mkdirSync(folder);
63
+ };
64
+
65
+ Utils.prototype.writeFileTo = function (/*String*/ path, /*Buffer*/ content, /*Boolean*/ overwrite, /*Number*/ attr) {
66
+ const self = this;
67
+ if (self.fs.existsSync(path)) {
68
+ if (!overwrite) return false; // cannot overwrite
69
+
70
+ var stat = self.fs.statSync(path);
71
+ if (stat.isDirectory()) {
72
+ return false;
73
+ }
74
+ }
75
+ var folder = pth.dirname(path);
76
+ if (!self.fs.existsSync(folder)) {
77
+ self.makeDir(folder);
78
+ }
79
+
80
+ var fd;
81
+ try {
82
+ fd = self.fs.openSync(path, "w", 0o666); // 0666
83
+ } catch (e) {
84
+ self.fs.chmodSync(path, 0o666);
85
+ fd = self.fs.openSync(path, "w", 0o666);
86
+ }
87
+ if (fd) {
88
+ try {
89
+ self.fs.writeSync(fd, content, 0, content.length, 0);
90
+ } finally {
91
+ self.fs.closeSync(fd);
92
+ }
93
+ }
94
+ self.fs.chmodSync(path, attr || 0o666);
95
+ return true;
96
+ };
97
+
98
+ Utils.prototype.writeFileToAsync = function (/*String*/ path, /*Buffer*/ content, /*Boolean*/ overwrite, /*Number*/ attr, /*Function*/ callback) {
99
+ if (typeof attr === "function") {
100
+ callback = attr;
101
+ attr = undefined;
102
+ }
103
+
104
+ const self = this;
105
+
106
+ self.fs.exists(path, function (exist) {
107
+ if (exist && !overwrite) return callback(false);
108
+
109
+ self.fs.stat(path, function (err, stat) {
110
+ if (exist && stat.isDirectory()) {
111
+ return callback(false);
112
+ }
113
+
114
+ var folder = pth.dirname(path);
115
+ self.fs.exists(folder, function (exists) {
116
+ if (!exists) self.makeDir(folder);
117
+
118
+ self.fs.open(path, "w", 0o666, function (err, fd) {
119
+ if (err) {
120
+ self.fs.chmod(path, 0o666, function () {
121
+ self.fs.open(path, "w", 0o666, function (err, fd) {
122
+ self.fs.write(fd, content, 0, content.length, 0, function () {
123
+ self.fs.close(fd, function () {
124
+ self.fs.chmod(path, attr || 0o666, function () {
125
+ callback(true);
126
+ });
127
+ });
128
+ });
129
+ });
130
+ });
131
+ } else if (fd) {
132
+ self.fs.write(fd, content, 0, content.length, 0, function () {
133
+ self.fs.close(fd, function () {
134
+ self.fs.chmod(path, attr || 0o666, function () {
135
+ callback(true);
136
+ });
137
+ });
138
+ });
139
+ } else {
140
+ self.fs.chmod(path, attr || 0o666, function () {
141
+ callback(true);
142
+ });
143
+ }
144
+ });
145
+ });
146
+ });
147
+ });
148
+ };
149
+
150
+ Utils.prototype.findFiles = function (/*String*/ path) {
151
+ const self = this;
152
+
153
+ function findSync(/*String*/ dir, /*RegExp*/ pattern, /*Boolean*/ recursive) {
154
+ if (typeof pattern === "boolean") {
155
+ recursive = pattern;
156
+ pattern = undefined;
157
+ }
158
+ let files = [];
159
+ self.fs.readdirSync(dir).forEach(function (file) {
160
+ const path = pth.join(dir, file);
161
+ const stat = self.fs.statSync(path);
162
+
163
+ if (!pattern || pattern.test(path)) {
164
+ files.push(pth.normalize(path) + (stat.isDirectory() ? self.sep : ""));
165
+ }
166
+
167
+ if (stat.isDirectory() && recursive) files = files.concat(findSync(path, pattern, recursive));
168
+ });
169
+ return files;
170
+ }
171
+
172
+ return findSync(path, undefined, true);
173
+ };
174
+
175
+ /**
176
+ * Callback for showing if everything was done.
177
+ *
178
+ * @callback filelistCallback
179
+ * @param {Error} err - Error object
180
+ * @param {string[]} list - was request fully completed
181
+ */
182
+
183
+ /**
184
+ *
185
+ * @param {string} dir
186
+ * @param {filelistCallback} cb
187
+ */
188
+ Utils.prototype.findFilesAsync = function (dir, cb) {
189
+ const self = this;
190
+ let results = [];
191
+ self.fs.readdir(dir, function (err, list) {
192
+ if (err) return cb(err);
193
+ let list_length = list.length;
194
+ if (!list_length) return cb(null, results);
195
+ list.forEach(function (file) {
196
+ file = pth.join(dir, file);
197
+ self.fs.stat(file, function (err, stat) {
198
+ if (err) return cb(err);
199
+ if (stat) {
200
+ results.push(pth.normalize(file) + (stat.isDirectory() ? self.sep : ""));
201
+ if (stat.isDirectory()) {
202
+ self.findFilesAsync(file, function (err, res) {
203
+ if (err) return cb(err);
204
+ results = results.concat(res);
205
+ if (!--list_length) cb(null, results);
206
+ });
207
+ } else {
208
+ if (!--list_length) cb(null, results);
209
+ }
210
+ }
211
+ });
212
+ });
213
+ });
214
+ };
215
+
216
+ Utils.prototype.getAttributes = function () {};
217
+
218
+ Utils.prototype.setAttributes = function () {};
219
+
220
+ // STATIC functions
221
+
222
+ // crc32 single update (it is part of crc32)
223
+ Utils.crc32update = function (crc, byte) {
224
+ return crcTable[(crc ^ byte) & 0xff] ^ (crc >>> 8);
225
+ };
226
+
227
+ Utils.crc32 = function (buf) {
228
+ if (typeof buf === "string") {
229
+ buf = Buffer.from(buf, "utf8");
230
+ }
231
+
232
+ let len = buf.length;
233
+ let crc = ~0;
234
+ for (let off = 0; off < len; ) crc = Utils.crc32update(crc, buf[off++]);
235
+ // xor and cast as uint32 number
236
+ return ~crc >>> 0;
237
+ };
238
+
239
+ Utils.methodToString = function (/*Number*/ method) {
240
+ switch (method) {
241
+ case Constants.STORED:
242
+ return "STORED (" + method + ")";
243
+ case Constants.DEFLATED:
244
+ return "DEFLATED (" + method + ")";
245
+ default:
246
+ return "UNSUPPORTED (" + method + ")";
247
+ }
248
+ };
249
+
250
+ /**
251
+ * removes ".." style path elements
252
+ * @param {string} path - fixable path
253
+ * @returns string - fixed filepath
254
+ */
255
+ Utils.canonical = function (/*string*/ path) {
256
+ if (!path) return "";
257
+ // trick normalize think path is absolute
258
+ const safeSuffix = pth.posix.normalize("/" + path.split("\\").join("/"));
259
+ return pth.join(".", safeSuffix);
260
+ };
261
+
262
+ /**
263
+ * fix file names in achive
264
+ * @param {string} path - fixable path
265
+ * @returns string - fixed filepath
266
+ */
267
+
268
+ Utils.zipnamefix = function (path) {
269
+ if (!path) return "";
270
+ // trick normalize think path is absolute
271
+ const safeSuffix = pth.posix.normalize("/" + path.split("\\").join("/"));
272
+ return pth.posix.join(".", safeSuffix);
273
+ };
274
+
275
+ /**
276
+ *
277
+ * @param {Array} arr
278
+ * @param {function} callback
279
+ * @returns
280
+ */
281
+ Utils.findLast = function (arr, callback) {
282
+ if (!Array.isArray(arr)) throw new TypeError("arr is not array");
283
+
284
+ const len = arr.length >>> 0;
285
+ for (let i = len - 1; i >= 0; i--) {
286
+ if (callback(arr[i], i, arr)) {
287
+ return arr[i];
288
+ }
289
+ }
290
+ return void 0;
291
+ };
292
+
293
+ // make abolute paths taking prefix as root folder
294
+ Utils.sanitize = function (/*string*/ prefix, /*string*/ name) {
295
+ prefix = pth.resolve(pth.normalize(prefix));
296
+ var parts = name.split("/");
297
+ for (var i = 0, l = parts.length; i < l; i++) {
298
+ var path = pth.normalize(pth.join(prefix, parts.slice(i, l).join(pth.sep)));
299
+ if (path.indexOf(prefix) === 0) {
300
+ return path;
301
+ }
302
+ }
303
+ return pth.normalize(pth.join(prefix, pth.basename(name)));
304
+ };
305
+
306
+ // converts buffer, Uint8Array, string types to buffer
307
+ Utils.toBuffer = function toBuffer(/*buffer, Uint8Array, string*/ input, /* function */ encoder) {
308
+ if (Buffer.isBuffer(input)) {
309
+ return input;
310
+ } else if (input instanceof Uint8Array) {
311
+ return Buffer.from(input);
312
+ } else {
313
+ // expect string all other values are invalid and return empty buffer
314
+ return typeof input === "string" ? encoder(input) : Buffer.alloc(0);
315
+ }
316
+ };
317
+
318
+ Utils.readBigUInt64LE = function (/*Buffer*/ buffer, /*int*/ index) {
319
+ const lo = buffer.readUInt32LE(index);
320
+ const hi = buffer.readUInt32LE(index + 4);
321
+ return hi * 0x100000000 + lo;
322
+ };
323
+
324
+ Utils.fromDOS2Date = function (val) {
325
+ return new Date(((val >> 25) & 0x7f) + 1980, Math.max(((val >> 21) & 0x0f) - 1, 0), Math.max((val >> 16) & 0x1f, 1), (val >> 11) & 0x1f, (val >> 5) & 0x3f, (val & 0x1f) << 1);
326
+ };
327
+
328
+ Utils.fromDate2DOS = function (val) {
329
+ let date = 0;
330
+ let time = 0;
331
+ if (val.getFullYear() > 1979) {
332
+ date = (((val.getFullYear() - 1980) & 0x7f) << 9) | ((val.getMonth() + 1) << 5) | val.getDate();
333
+ time = (val.getHours() << 11) | (val.getMinutes() << 5) | (val.getSeconds() >> 1);
334
+ }
335
+ return (date << 16) | time;
336
+ };
337
+
338
+ Utils.isWin = isWin; // Do we have windows system
339
+ Utils.crcTable = crcTable;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@witty-ai/skill-insight",
3
- "version": "0.5.0-beta",
3
+ "version": "0.7.0-beta",
4
4
  "description": "Agent Skill 评估与观测平台 — 量化评估 Skills 在 Agent 上的实际运行效果",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -21,12 +21,14 @@
21
21
  "dev": "next dev",
22
22
  "build": "next build",
23
23
  "start": "next start",
24
- "lint": "eslint"
24
+ "lint": "eslint",
25
+ "test": "node --import tsx --test \"test/**/*.test.ts\""
25
26
  },
26
27
  "dependencies": {
27
28
  "@prisma/client": "5.22.0",
28
29
  "@types/archiver": "^7.0.0",
29
30
  "@types/uuid": "^11.0.0",
31
+ "adm-zip": "^0.5.10",
30
32
  "archiver": "7.0.1",
31
33
  "chokidar": "^5.0.0",
32
34
  "dotenv": "^17.3.1",
@@ -49,12 +51,14 @@
49
51
  "xlsx": "^0.18.5"
50
52
  },
51
53
  "devDependencies": {
54
+ "@types/adm-zip": "^0.5.8",
52
55
  "@types/node": "^20",
53
56
  "@types/pg": "^8.18.0",
54
57
  "@types/react": "^19",
55
58
  "@types/react-dom": "^19",
56
59
  "eslint": "^9",
57
60
  "eslint-config-next": "16.1.4",
61
+ "tsx": "^4.20.5",
58
62
  "typescript": "^5"
59
63
  }
60
64
  }
@@ -34,6 +34,8 @@ model SkillVersion {
34
34
  id String @id @default(cuid())
35
35
  skillId String
36
36
  version Int
37
+ semanticVersion String? // 语义化版本号,用于企业同步
38
+ enterpriseSkillId Int? // 企业skill的id,用于删除同步
37
39
  content String
38
40
  assetPath String?
39
41
  files String?
@@ -68,6 +70,7 @@ model Execution {
68
70
  cacheReadInputTokens Int?
69
71
  cacheCreationInputTokens Int?
70
72
  maxSingleCallTokens Int?
73
+ reasoningTokens Int?
71
74
  timestamp DateTime @default(now())
72
75
  model String?
73
76
  finalResult String?
@@ -96,6 +99,7 @@ model Config {
96
99
  standardAnswer String
97
100
  rootCauses String? // JSON array
98
101
  keyActions String? // JSON array
102
+ extractedKeyActions String? // JSON array of ExtractedKeyAction (auto-extracted from Skill)
99
103
  user String? // Added for user isolation
100
104
  parseStatus String @default("completed") // parsing | completed | failed
101
105
 
@@ -128,8 +132,8 @@ model ParsedFlow {
128
132
  version Int
129
133
  user String?
130
134
 
131
- flowJson String // JSON: { steps, branches }
132
- mermaidCode String // Generated Mermaid code
135
+ flowJson String? // JSON: { steps, branches }
136
+ mermaidCode String? // Generated Mermaid code
133
137
 
134
138
  parsedAt DateTime @default(now())
135
139
 
@@ -146,7 +150,7 @@ model ExecutionMatch {
146
150
  mode String @default("compare") // "compare" or "dynamic"
147
151
  matchJson String? // JSON: { matches, summary }
148
152
  staticMermaid String? // Static flow Mermaid code
149
- dynamicMermaid String // Dynamic flow Mermaid code
153
+ dynamicMermaid String? // Dynamic flow Mermaid code
150
154
  analysisText String? // LLM analysis text
151
155
  extractedSteps String? // JSON: extracted steps from interactions
152
156