@witty-ai/skill-insight 0.4.0-beta → 0.5.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 (226) hide show
  1. package/.env.example +50 -5
  2. package/.next/standalone/.next/BUILD_ID +1 -1
  3. package/.next/standalone/.next/app-path-routes-manifest.json +1 -0
  4. package/.next/standalone/.next/build-manifest.json +2 -2
  5. package/.next/standalone/.next/routes-manifest.json +6 -0
  6. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  7. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  9. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  11. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  12. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  14. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  16. package/.next/standalone/.next/server/app/_not-found.rsc +3 -3
  17. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  18. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  20. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  22. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  23. package/.next/standalone/.next/server/app/api/auth/organization/route/app-paths-manifest.json +3 -0
  24. package/.next/standalone/.next/server/app/api/auth/organization/route/build-manifest.json +11 -0
  25. package/.next/standalone/.next/server/app/api/auth/organization/route/server-reference-manifest.json +4 -0
  26. package/.next/standalone/.next/server/app/api/auth/organization/route.js +7 -0
  27. package/.next/standalone/.next/server/app/api/auth/organization/route.js.map +5 -0
  28. package/.next/standalone/.next/server/app/api/auth/organization/route.js.nft.json +1 -0
  29. package/.next/standalone/.next/server/app/api/auth/organization/route_client-reference-manifest.js +2 -0
  30. package/.next/standalone/.next/server/app/api/config/create/route.js +2 -2
  31. package/.next/standalone/.next/server/app/api/config/create/route.js.nft.json +1 -1
  32. package/.next/standalone/.next/server/app/api/config/route.js +1 -1
  33. package/.next/standalone/.next/server/app/api/config/route.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/api/data/route.js +1 -1
  35. package/.next/standalone/.next/server/app/api/data/route.js.nft.json +1 -1
  36. package/.next/standalone/.next/server/app/api/executions/[executionId]/analyze-match/route.js +1 -1
  37. package/.next/standalone/.next/server/app/api/executions/[executionId]/analyze-match/route.js.nft.json +1 -1
  38. package/.next/standalone/.next/server/app/api/otel/v1/logs/route.js +1 -1
  39. package/.next/standalone/.next/server/app/api/otel/v1/logs/route.js.nft.json +1 -1
  40. package/.next/standalone/.next/server/app/api/otel/v1/traces/route.js +1 -1
  41. package/.next/standalone/.next/server/app/api/otel/v1/traces/route.js.nft.json +1 -1
  42. package/.next/standalone/.next/server/app/api/proxy/[taskId]/[...path]/route.js +1 -1
  43. package/.next/standalone/.next/server/app/api/proxy/[taskId]/[...path]/route.js.nft.json +1 -1
  44. package/.next/standalone/.next/server/app/api/proxy/[taskId]/end/route.js +3 -3
  45. package/.next/standalone/.next/server/app/api/proxy/[taskId]/end/route.js.nft.json +1 -1
  46. package/.next/standalone/.next/server/app/api/rejudge/route.js +1 -1
  47. package/.next/standalone/.next/server/app/api/rejudge/route.js.nft.json +1 -1
  48. package/.next/standalone/.next/server/app/api/session/route.js +3 -3
  49. package/.next/standalone/.next/server/app/api/session/route.js.nft.json +1 -1
  50. package/.next/standalone/.next/server/app/api/settings/route.js +1 -1
  51. package/.next/standalone/.next/server/app/api/settings/route.js.nft.json +1 -1
  52. package/.next/standalone/.next/server/app/api/skills/[id]/versions/[version]/download/route.js.nft.json +1 -1
  53. package/.next/standalone/.next/server/app/api/skills/[id]/versions/[version]/parse-flow/route.js +1 -1
  54. package/.next/standalone/.next/server/app/api/skills/[id]/versions/[version]/parse-flow/route.js.nft.json +1 -1
  55. package/.next/standalone/.next/server/app/api/skills/logs/route.js +1 -1
  56. package/.next/standalone/.next/server/app/api/skills/logs/route.js.nft.json +1 -1
  57. package/.next/standalone/.next/server/app/api/upload/route.js +1 -1
  58. package/.next/standalone/.next/server/app/api/upload/route.js.nft.json +1 -1
  59. package/.next/standalone/.next/server/app/details/page.js.nft.json +1 -1
  60. package/.next/standalone/.next/server/app/details/page_client-reference-manifest.js +1 -1
  61. package/.next/standalone/.next/server/app/details.html +1 -1
  62. package/.next/standalone/.next/server/app/details.rsc +4 -4
  63. package/.next/standalone/.next/server/app/details.segments/_full.segment.rsc +4 -4
  64. package/.next/standalone/.next/server/app/details.segments/_head.segment.rsc +1 -1
  65. package/.next/standalone/.next/server/app/details.segments/_index.segment.rsc +3 -3
  66. package/.next/standalone/.next/server/app/details.segments/_tree.segment.rsc +2 -2
  67. package/.next/standalone/.next/server/app/details.segments/details/__PAGE__.segment.rsc +2 -2
  68. package/.next/standalone/.next/server/app/details.segments/details.segment.rsc +1 -1
  69. package/.next/standalone/.next/server/app/index.html +1 -1
  70. package/.next/standalone/.next/server/app/index.rsc +4 -4
  71. package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  72. package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +4 -4
  73. package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  74. package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +3 -3
  75. package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  76. package/.next/standalone/.next/server/app/login/page.js.nft.json +1 -1
  77. package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  78. package/.next/standalone/.next/server/app/login.html +1 -1
  79. package/.next/standalone/.next/server/app/login.rsc +4 -4
  80. package/.next/standalone/.next/server/app/login.segments/_full.segment.rsc +4 -4
  81. package/.next/standalone/.next/server/app/login.segments/_head.segment.rsc +1 -1
  82. package/.next/standalone/.next/server/app/login.segments/_index.segment.rsc +3 -3
  83. package/.next/standalone/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  84. package/.next/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  85. package/.next/standalone/.next/server/app/login.segments/login.segment.rsc +1 -1
  86. package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
  87. package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
  88. package/.next/standalone/.next/server/app/skills/page.js.nft.json +1 -1
  89. package/.next/standalone/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  90. package/.next/standalone/.next/server/app/skills.html +1 -1
  91. package/.next/standalone/.next/server/app/skills.rsc +4 -4
  92. package/.next/standalone/.next/server/app/skills.segments/_full.segment.rsc +4 -4
  93. package/.next/standalone/.next/server/app/skills.segments/_head.segment.rsc +1 -1
  94. package/.next/standalone/.next/server/app/skills.segments/_index.segment.rsc +3 -3
  95. package/.next/standalone/.next/server/app/skills.segments/_tree.segment.rsc +2 -2
  96. package/.next/standalone/.next/server/app/skills.segments/skills/__PAGE__.segment.rsc +2 -2
  97. package/.next/standalone/.next/server/app/skills.segments/skills.segment.rsc +1 -1
  98. package/.next/standalone/.next/server/app-paths-manifest.json +1 -0
  99. package/.next/standalone/.next/server/chunks/[root-of-the-server]__02ddba88._.js +3 -0
  100. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1ce5e3b8._.js +3 -0
  101. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a6d443b._.js +3 -0
  102. package/.next/standalone/.next/server/chunks/[root-of-the-server]__53775b48._.js +3 -0
  103. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5444db55._.js +3 -0
  104. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6923eecf._.js +3 -0
  105. package/.next/standalone/.next/server/chunks/[root-of-the-server]__98b3de5e._.js +3 -0
  106. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a4d3d791._.js +3 -0
  107. package/.next/standalone/.next/server/chunks/[root-of-the-server]__bd91659b._.js +3 -0
  108. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c200214a._.js +3 -0
  109. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d7fab946._.js +3 -0
  110. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d8c1808b._.js +1 -1
  111. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d9b9fecc._.js +3 -0
  112. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_auth_organization_route_actions_f58710b7.js +3 -0
  113. package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_c33286ed.js +2 -41
  114. package/.next/standalone/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_f42faeee.js +1 -1
  115. package/.next/standalone/.next/server/chunks/src_lib_12408140._.js +1 -1
  116. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__5d576168._.js → [root-of-the-server]__40353d98._.js} +1 -1
  117. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__89851212._.js → [root-of-the-server]__480fcd92._.js} +1 -1
  118. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__28978655._.js → [root-of-the-server]__48f8fbcb._.js} +1 -1
  119. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__a5ef0b61._.js → [root-of-the-server]__49921b2a._.js} +1 -1
  120. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__317833f9._.js → [root-of-the-server]__593be3d6._.js} +1 -1
  121. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__ca101543._.js → [root-of-the-server]__5e9ff641._.js} +1 -1
  122. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__90641614._.js → [root-of-the-server]__66cc6ff2._.js} +1 -1
  123. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__cda1e286._.js → [root-of-the-server]__9889bdc8._.js} +1 -1
  124. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__42ba97b6._.js → [root-of-the-server]__9905ca7a._.js} +2 -2
  125. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__9ab7cc4a._.js +3 -0
  126. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__7bb97139._.js → [root-of-the-server]__9d6b7d48._.js} +1 -1
  127. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__6b8b9bb9._.js → [root-of-the-server]__b8edc8c6._.js} +1 -1
  128. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__b9972e88._.js → [root-of-the-server]__d691ecb0._.js} +1 -1
  129. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__52851239._.js → [root-of-the-server]__e5ddfd15._.js} +1 -1
  130. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__9630dedf._.js → [root-of-the-server]__f72f330e._.js} +1 -1
  131. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__99ab66d7._.js → [root-of-the-server]__f843e085._.js} +1 -1
  132. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__d424fa04._.js → [root-of-the-server]__fd69d276._.js} +2 -2
  133. package/.next/standalone/.next/server/chunks/ssr/{_7688d7cd._.js → _049876f0._.js} +2 -2
  134. package/.next/standalone/.next/server/chunks/ssr/{_72a74a0c._.js → _09546b95._.js} +2 -2
  135. package/.next/standalone/.next/server/chunks/ssr/_8f5379ab._.js +1 -1
  136. package/.next/standalone/.next/server/chunks/ssr/{node_modules_cf1f3d2c._.js → _b121f1ae._.js} +2 -2
  137. package/.next/standalone/.next/server/chunks/ssr/_c8c8c083._.js +2 -2
  138. package/.next/standalone/.next/server/chunks/ssr/_fd46f439._.js +1 -1
  139. package/.next/standalone/.next/server/chunks/ssr/{node_modules_f2653232._.js → node_modules_039c6a11._.js} +1 -1
  140. package/.next/standalone/.next/server/chunks/ssr/{node_modules_da87f0e3._.js → node_modules_0d3530cd._.js} +2 -2
  141. package/.next/standalone/.next/server/chunks/ssr/{node_modules_afb1ecef._.js → node_modules_0e883565._.js} +1 -1
  142. package/.next/standalone/.next/server/chunks/ssr/{node_modules_8d9e56b7._.js → node_modules_11dbf165._.js} +2 -2
  143. package/.next/standalone/.next/server/chunks/ssr/{node_modules_76d6c533._.js → node_modules_2041c122._.js} +2 -2
  144. package/.next/standalone/.next/server/chunks/ssr/{node_modules_b007145b._.js → node_modules_235267bb._.js} +1 -1
  145. package/.next/standalone/.next/server/chunks/ssr/{node_modules_11d81adf._.js → node_modules_25dfb0ba._.js} +2 -2
  146. package/.next/standalone/.next/server/chunks/ssr/{node_modules_4ea9b27b._.js → node_modules_2b12c669._.js} +2 -2
  147. package/.next/standalone/.next/server/chunks/ssr/{node_modules_cc19e85c._.js → node_modules_32996880._.js} +2 -2
  148. package/.next/standalone/.next/server/chunks/ssr/{node_modules_62621b34._.js → node_modules_35885fe9._.js} +2 -2
  149. package/.next/standalone/.next/server/chunks/ssr/{node_modules_ed4150ad._.js → node_modules_38a95353._.js} +2 -2
  150. package/.next/standalone/.next/server/chunks/ssr/{node_modules_f596a14c._.js → node_modules_3a317c51._.js} +1 -1
  151. package/.next/standalone/.next/server/chunks/ssr/{node_modules_fddab329._.js → node_modules_44966ab2._.js} +1 -1
  152. package/.next/standalone/.next/server/chunks/ssr/{node_modules_e272ac31._.js → node_modules_53af751a._.js} +2 -2
  153. package/.next/standalone/.next/server/chunks/ssr/{node_modules_abf4f826._.js → node_modules_5f539891._.js} +1 -1
  154. package/.next/standalone/.next/server/chunks/ssr/{node_modules_86b6ffa4._.js → node_modules_60402210._.js} +1 -1
  155. package/.next/standalone/.next/server/chunks/ssr/{node_modules_3769cd60._.js → node_modules_60eccfb6._.js} +1 -1
  156. package/.next/standalone/.next/server/chunks/ssr/{node_modules_fdf808cf._.js → node_modules_632c098c._.js} +1 -1
  157. package/.next/standalone/.next/server/chunks/ssr/{node_modules_442994dc._.js → node_modules_6c42f75c._.js} +1 -1
  158. package/.next/standalone/.next/server/chunks/ssr/{node_modules_5b6dbbc3._.js → node_modules_6fbe276d._.js} +2 -2
  159. package/.next/standalone/.next/server/chunks/ssr/{node_modules_6716e25d._.js → node_modules_740e9d59._.js} +2 -2
  160. package/.next/standalone/.next/server/chunks/ssr/{node_modules_ed1f1845._.js → node_modules_7a3d551c._.js} +1 -1
  161. package/.next/standalone/.next/server/chunks/ssr/{node_modules_4f41f172._.js → node_modules_861cb9cf._.js} +2 -2
  162. package/.next/standalone/.next/server/chunks/ssr/{node_modules_2aaea4ea._.js → node_modules_8a892761._.js} +1 -1
  163. package/.next/standalone/.next/server/chunks/ssr/{node_modules_3964c298._.js → node_modules_a5a4946e._.js} +1 -1
  164. package/.next/standalone/.next/server/chunks/ssr/{node_modules_3d9afa91._.js → node_modules_a712c937._.js} +1 -1
  165. package/.next/standalone/.next/server/chunks/ssr/{node_modules_330b9e3c._.js → node_modules_a8c276dd._.js} +2 -2
  166. package/.next/standalone/.next/server/chunks/ssr/{node_modules_ad69a9e4._.js → node_modules_acc9d529._.js} +1 -1
  167. package/.next/standalone/.next/server/chunks/ssr/{node_modules_8301968d._.js → node_modules_ad07ab39._.js} +1 -1
  168. package/.next/standalone/.next/server/chunks/ssr/{node_modules_1d88c7cc._.js → node_modules_b38efa22._.js} +1 -1
  169. package/.next/standalone/.next/server/chunks/ssr/{node_modules_e20e8c2a._.js → node_modules_b4ef036d._.js} +2 -2
  170. package/.next/standalone/.next/server/chunks/ssr/{node_modules_2e206c58._.js → node_modules_b6bad701._.js} +2 -2
  171. package/.next/standalone/.next/server/chunks/ssr/{node_modules_c90fa812._.js → node_modules_b9810024._.js} +1 -1
  172. package/.next/standalone/.next/server/chunks/ssr/{node_modules_db8af6e3._.js → node_modules_b9ad808d._.js} +1 -1
  173. package/.next/standalone/.next/server/chunks/ssr/{node_modules_7287189a._.js → node_modules_bc287d9f._.js} +1 -1
  174. package/.next/standalone/.next/server/chunks/ssr/{node_modules_2e38bc5c._.js → node_modules_c6469d93._.js} +1 -1
  175. package/.next/standalone/.next/server/chunks/ssr/{node_modules_c657890f._.js → node_modules_c704e802._.js} +1 -1
  176. package/.next/standalone/.next/server/chunks/ssr/{node_modules_b8803ba6._.js → node_modules_cda46cfc._.js} +2 -2
  177. package/.next/standalone/.next/server/chunks/ssr/{node_modules_aa6da06c._.js → node_modules_cf171d0c._.js} +1 -1
  178. package/.next/standalone/.next/server/chunks/ssr/{node_modules_2d9e03d1._.js → node_modules_e8927fc2._.js} +1 -1
  179. package/.next/standalone/.next/server/chunks/ssr/src_app_login_page_tsx_72f58654._.js +1 -1
  180. package/.next/standalone/.next/server/pages/404.html +1 -1
  181. package/.next/standalone/.next/server/pages/500.html +2 -2
  182. package/.next/standalone/.next/static/chunks/1e782a49beaf489c.js +1 -0
  183. package/.next/standalone/.next/static/chunks/4071dbec4cf7e72e.js +109 -0
  184. package/.next/standalone/.next/static/chunks/67bd1a5de2195779.js +1 -0
  185. package/.next/standalone/.next/static/chunks/a87b5e84254095a5.js +1 -0
  186. package/.next/standalone/.next/static/chunks/c6bd2818656b1f20.css +1 -0
  187. package/.next/standalone/.next/static/chunks/{6d12c79948c7e0ac.js → dc59a07a8f327b40.js} +1 -1
  188. package/.next/standalone/next.config.ts +14 -2
  189. package/.next/standalone/package.json +1 -1
  190. package/.next/standalone/scripts/opencode_plugin.ts +257 -36
  191. package/.next/static/chunks/1e782a49beaf489c.js +1 -0
  192. package/.next/static/chunks/4071dbec4cf7e72e.js +109 -0
  193. package/.next/static/chunks/67bd1a5de2195779.js +1 -0
  194. package/.next/static/chunks/a87b5e84254095a5.js +1 -0
  195. package/.next/static/chunks/c6bd2818656b1f20.css +1 -0
  196. package/.next/static/chunks/{6d12c79948c7e0ac.js → dc59a07a8f327b40.js} +1 -1
  197. package/package.json +1 -1
  198. package/scripts/opencode_plugin.ts +257 -36
  199. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0fceba52._.js +0 -3
  200. package/.next/standalone/.next/server/chunks/[root-of-the-server]__13132848._.js +0 -3
  201. package/.next/standalone/.next/server/chunks/[root-of-the-server]__30769f6e._.js +0 -3
  202. package/.next/standalone/.next/server/chunks/[root-of-the-server]__426bc4ab._.js +0 -3
  203. package/.next/standalone/.next/server/chunks/[root-of-the-server]__610d08bc._.js +0 -3
  204. package/.next/standalone/.next/server/chunks/[root-of-the-server]__75e3674c._.js +0 -3
  205. package/.next/standalone/.next/server/chunks/[root-of-the-server]__761462f8._.js +0 -3
  206. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9aa700a4._.js +0 -3
  207. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b7ad2649._.js +0 -3
  208. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c00180dd._.js +0 -3
  209. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ed8f9b78._.js +0 -3
  210. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__082c32a2._.js +0 -3
  211. package/.next/standalone/.next/static/chunks/222a937a6c859036.js +0 -1
  212. package/.next/standalone/.next/static/chunks/2a3dd49367e2c198.js +0 -1
  213. package/.next/standalone/.next/static/chunks/3e33f7adc10a38d3.js +0 -109
  214. package/.next/standalone/.next/static/chunks/428e6cf64b115e9d.css +0 -1
  215. package/.next/standalone/.next/static/chunks/62129f27f303a5ba.js +0 -1
  216. package/.next/static/chunks/222a937a6c859036.js +0 -1
  217. package/.next/static/chunks/2a3dd49367e2c198.js +0 -1
  218. package/.next/static/chunks/3e33f7adc10a38d3.js +0 -109
  219. package/.next/static/chunks/428e6cf64b115e9d.css +0 -1
  220. package/.next/static/chunks/62129f27f303a5ba.js +0 -1
  221. /package/.next/standalone/.next/static/{Eytv_Fh4x2HPaupjXiAYj → H581Rok68JtPV4bAVVH3l}/_buildManifest.js +0 -0
  222. /package/.next/standalone/.next/static/{Eytv_Fh4x2HPaupjXiAYj → H581Rok68JtPV4bAVVH3l}/_clientMiddlewareManifest.json +0 -0
  223. /package/.next/standalone/.next/static/{Eytv_Fh4x2HPaupjXiAYj → H581Rok68JtPV4bAVVH3l}/_ssgManifest.js +0 -0
  224. /package/.next/static/{Eytv_Fh4x2HPaupjXiAYj → H581Rok68JtPV4bAVVH3l}/_buildManifest.js +0 -0
  225. /package/.next/static/{Eytv_Fh4x2HPaupjXiAYj → H581Rok68JtPV4bAVVH3l}/_clientMiddlewareManifest.json +0 -0
  226. /package/.next/static/{Eytv_Fh4x2HPaupjXiAYj → H581Rok68JtPV4bAVVH3l}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@witty-ai/skill-insight",
3
- "version": "0.4.0-beta",
3
+ "version": "0.5.0-beta",
4
4
  "description": "Agent Skill 评估与观测平台 — 量化评估 Skills 在 Agent 上的实际运行效果",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -18,9 +18,151 @@ function logDebug(msg) {
18
18
 
19
19
  // Global store
20
20
  let sessionStore = new Map();
21
- let uploadedSessions = new Set();
21
+ let uploadedSessions = new Map(); // sessionId -> uploaded message count
22
22
  let sessionGraph = new Map(); // parent_id -> [child_ids]
23
23
  let pendingChildSessions = new Map(); // child_id -> {parent_id, data}
24
+ let lastDeltaByPartField = new Map();
25
+
26
+ const STORE_PATH = path.join(os.homedir(), '.opencode', 'witty_plugin_session_store.json');
27
+
28
+ function cleanupOldSessions() {
29
+ const now = Date.now();
30
+ const threeDays = 3 * 24 * 3600 * 1000;
31
+
32
+ let deletedCount = 0;
33
+ for (const [msgId, entry] of sessionStore.entries()) {
34
+ const time = entry.info?.created || entry.info?.time?.created;
35
+ if (time && (now - time > threeDays)) {
36
+ sessionStore.delete(msgId);
37
+ deletedCount++;
38
+ }
39
+ }
40
+ if (deletedCount > 0) logDebug(`Cleaned up ${deletedCount} old messages from sessionStore`);
41
+ }
42
+
43
+ function loadStore() {
44
+ try {
45
+ if (fs.existsSync(STORE_PATH)) {
46
+ const fileData = fs.readFileSync(STORE_PATH, 'utf8');
47
+ if (!fileData.trim()) return;
48
+ const data = JSON.parse(fileData);
49
+
50
+ // Merge sessionStore: disk entries fill in gaps, but don't overwrite in-memory entries
51
+ if (data.sessionStore) {
52
+ const diskStore = new Map(data.sessionStore);
53
+ for (const [msgId, entry] of diskStore.entries()) {
54
+ if (!sessionStore.has(msgId)) {
55
+ if (entry.parts && !Array.isArray(entry.parts) && typeof entry.parts === 'object' && !(entry.parts instanceof Map)) {
56
+ entry.parts = new Map(Object.entries(entry.parts));
57
+ } else if (Array.isArray(entry.parts)) {
58
+ entry.parts = new Map(entry.parts);
59
+ } else if (!entry.parts) {
60
+ entry.parts = new Map();
61
+ }
62
+
63
+ if (entry.toolParts && !Array.isArray(entry.toolParts) && typeof entry.toolParts === 'object' && !(entry.toolParts instanceof Map)) {
64
+ entry.toolParts = new Map(Object.entries(entry.toolParts));
65
+ } else if (Array.isArray(entry.toolParts)) {
66
+ entry.toolParts = new Map(entry.toolParts);
67
+ } else if (!entry.toolParts) {
68
+ entry.toolParts = new Map();
69
+ }
70
+
71
+ sessionStore.set(msgId, entry);
72
+ }
73
+ }
74
+ }
75
+
76
+ // Merge uploadedSessions: keep the "newer" signature between memory and disk
77
+ if (data.uploadedSessions) {
78
+ for (const x of data.uploadedSessions) {
79
+ const sid = Array.isArray(x) ? x[0] : x;
80
+ const diskVal = Array.isArray(x) ? x[1] : 0;
81
+
82
+ const normalize = (v) => {
83
+ if (typeof v === 'number') return { count: v, lastAssistantLen: 0, lastTs: 0 };
84
+ if (v && typeof v === 'object') {
85
+ return {
86
+ count: Number(v.count || 0),
87
+ lastAssistantLen: Number(v.lastAssistantLen || 0),
88
+ lastTs: Number(v.lastTs || 0)
89
+ };
90
+ }
91
+ return { count: 0, lastAssistantLen: 0, lastTs: 0 };
92
+ };
93
+
94
+ const memSig = normalize(uploadedSessions.get(sid));
95
+ const diskSig = normalize(diskVal);
96
+
97
+ const diskNewer =
98
+ diskSig.count > memSig.count ||
99
+ (diskSig.count === memSig.count && diskSig.lastAssistantLen > memSig.lastAssistantLen) ||
100
+ (diskSig.count === memSig.count && diskSig.lastAssistantLen === memSig.lastAssistantLen && diskSig.lastTs > memSig.lastTs);
101
+
102
+ if (diskNewer) {
103
+ uploadedSessions.set(sid, diskVal);
104
+ } else if (!uploadedSessions.has(sid)) {
105
+ uploadedSessions.set(sid, memSig);
106
+ }
107
+ }
108
+ }
109
+
110
+ // Merge sessionGraph: union child lists
111
+ if (data.sessionGraph) {
112
+ const diskGraph = new Map(data.sessionGraph);
113
+ for (const [parentId, childIds] of diskGraph.entries()) {
114
+ if (!sessionGraph.has(parentId)) {
115
+ sessionGraph.set(parentId, childIds);
116
+ } else {
117
+ const existing = sessionGraph.get(parentId);
118
+ for (const cid of childIds) {
119
+ if (!existing.includes(cid)) existing.push(cid);
120
+ }
121
+ }
122
+ }
123
+ }
124
+
125
+ // Merge pendingChildSessions
126
+ if (data.pendingChildSessions) {
127
+ const diskPending = new Map(data.pendingChildSessions);
128
+ for (const [childId, childData] of diskPending.entries()) {
129
+ if (!pendingChildSessions.has(childId)) {
130
+ pendingChildSessions.set(childId, childData);
131
+ }
132
+ }
133
+ }
134
+
135
+ logDebug(`Loaded store (merged): ${sessionStore.size} messages`);
136
+ }
137
+ } catch(e) {
138
+ logDebug("Store read err: " + e.message);
139
+ }
140
+ }
141
+
142
+ function saveStore() {
143
+ try {
144
+ cleanupOldSessions();
145
+
146
+ // Merge with disk state to prevent concurrent process data loss.
147
+ // loadStore() uses merge semantics (won't overwrite in-memory entries).
148
+ loadStore();
149
+
150
+ const data = {
151
+ sessionStore: Array.from(sessionStore.entries()).map(([k, v]) => [k, {
152
+ ...v,
153
+ parts: v.parts instanceof Map ? Array.from(v.parts.entries()) : (v.parts || []),
154
+ toolParts: v.toolParts instanceof Map ? Array.from(v.toolParts.entries()) : (v.toolParts || [])
155
+ }]),
156
+ uploadedSessions: Array.from(uploadedSessions.entries()),
157
+ sessionGraph: Array.from(sessionGraph.entries()),
158
+ pendingChildSessions: Array.from(pendingChildSessions.entries()),
159
+ timestamp: new Date().toISOString()
160
+ };
161
+ fs.writeFileSync(STORE_PATH, JSON.stringify(data, null, 2), 'utf8');
162
+ } catch(e) {
163
+ logDebug("Store sync err: " + e.message);
164
+ }
165
+ }
24
166
 
25
167
  function toMsTimestamp(v) {
26
168
  if (v == null) return null;
@@ -120,11 +262,12 @@ function loadConfiguration() {
120
262
 
121
263
  function collectSessionMessages(sessionId) {
122
264
  const messages = [];
265
+ logDebug(`collectSessionMessages: scanning ${sessionStore.size} entries for session ${sessionId}`);
123
266
  for (const [mid, entry] of sessionStore.entries()) {
124
267
  if (entry.info.sessionID === sessionId) {
125
268
  // Calculate latency for this message if possible from parts
126
269
  let partBasedDuration = 0;
127
- if (entry.parts.size > 0) {
270
+ if (entry.parts instanceof Map && entry.parts.size > 0) {
128
271
  const parts = Array.from(entry.parts.values()).map(p => p.time?.start || 0).filter(t => t > 0).sort((a,b)=>a-b);
129
272
  if (parts.length >= 1) {
130
273
  const start = parts[0];
@@ -133,9 +276,13 @@ function collectSessionMessages(sessionId) {
133
276
  }
134
277
  }
135
278
 
279
+ const role = entry.info.role || 'unknown';
280
+ const content = entry.content || entry.info.content || "";
281
+ logDebug(`Found message in store: id=${mid}, role=${role}, content_len=${content.length}`);
282
+
136
283
  messages.push({
137
- role: entry.info.role || 'unknown',
138
- content: entry.content || entry.info.content || "",
284
+ role: role,
285
+ content: content,
139
286
  tool_calls: entry.info.tool_calls || entry.info.toolCalls,
140
287
  function_call: entry.info.function_call || entry.info.functionCall,
141
288
  usage: entry.info.usage || entry.info.tokens,
@@ -147,6 +294,7 @@ function collectSessionMessages(sessionId) {
147
294
  });
148
295
  }
149
296
  }
297
+ logDebug(`collectSessionMessages: collected ${messages.length} messages for ${sessionId}`);
150
298
  return messages;
151
299
  }
152
300
 
@@ -196,6 +344,7 @@ function collectSessionWithChildren(sessionId) {
196
344
  }
197
345
 
198
346
  export default async function WittySkillInsightPlugin(input) {
347
+ loadStore();
199
348
  const { apiKey, host } = loadConfiguration();
200
349
  if (!apiKey || !host) {
201
350
  logDebug("Plugin disabled: Missing API Key or Host");
@@ -254,23 +403,6 @@ export default async function WittySkillInsightPlugin(input) {
254
403
  // Attempt to find session ID in various places
255
404
  const sessionId = event.session_id || event.properties?.sessionID || event.payload?.session_id;
256
405
 
257
- // 0. Handle session.created events to establish parent-child relationships
258
- if (event.type === 'session.created') {
259
- const sessionInfo = event.properties?.info || event.payload?.info;
260
- if (sessionInfo && sessionInfo.id && sessionInfo.parentID) {
261
- const childId = sessionInfo.id;
262
- const parentId = sessionInfo.parentID;
263
-
264
- if (!sessionGraph.has(parentId)) {
265
- sessionGraph.set(parentId, []);
266
- }
267
- if (!sessionGraph.get(parentId).includes(childId)) {
268
- sessionGraph.get(parentId).push(childId);
269
- logDebug(`Session created: ${childId} is child of ${parentId}`);
270
- }
271
- }
272
- }
273
-
274
406
  // 1. Accumulate Message Metadata
275
407
  if (event.type === 'message.created' || event.type === 'message.updated') {
276
408
  let info = (event.payload && event.payload.message) || (event.properties && event.properties.info);
@@ -309,6 +441,8 @@ export default async function WittySkillInsightPlugin(input) {
309
441
  });
310
442
  }
311
443
  const entry = sessionStore.get(msgId);
444
+ if (!(entry.parts instanceof Map)) entry.parts = new Map(Array.isArray(entry.parts) ? entry.parts : []);
445
+ if (entry.toolParts && !(entry.toolParts instanceof Map)) entry.toolParts = new Map(Array.isArray(entry.toolParts) ? entry.toolParts : []);
312
446
 
313
447
  // Store part
314
448
  const partId = part.id || `temp_${Date.now()}_${Math.random()}`;
@@ -414,22 +548,81 @@ export default async function WittySkillInsightPlugin(input) {
414
548
  }
415
549
  }
416
550
 
551
+ if (event.type === 'message.part.delta') {
552
+ const props = event.properties || event.payload || {};
553
+ const msgId = props.messageID || props.message_id;
554
+ const partId = props.partID || props.part_id;
555
+ const field = props.field;
556
+ const delta = props.delta;
557
+
558
+ if (msgId && partId && field && typeof delta === 'string') {
559
+ if (!sessionStore.has(msgId)) {
560
+ sessionStore.set(msgId, {
561
+ info: { sessionID: sessionId },
562
+ parts: new Map(),
563
+ toolParts: new Map(),
564
+ content: ''
565
+ });
566
+ }
567
+
568
+ const entry = sessionStore.get(msgId);
569
+ if (!(entry.parts instanceof Map)) entry.parts = new Map(Array.isArray(entry.parts) ? entry.parts : []);
570
+
571
+ const dedupeKey = `${msgId}:${partId}:${field}`;
572
+ const lastDelta = lastDeltaByPartField.get(dedupeKey);
573
+ if (lastDelta !== delta) {
574
+ lastDeltaByPartField.set(dedupeKey, delta);
575
+ if (lastDeltaByPartField.size > 5000) {
576
+ for (const k of lastDeltaByPartField.keys()) {
577
+ lastDeltaByPartField.delete(k);
578
+ if (lastDeltaByPartField.size <= 4000) break;
579
+ }
580
+ }
581
+
582
+ const existingPart = entry.parts.get(partId) || {
583
+ id: partId,
584
+ messageID: msgId,
585
+ sessionID: sessionId,
586
+ type: 'text'
587
+ };
588
+ const prev = typeof existingPart[field] === 'string' ? existingPart[field] : '';
589
+ existingPart[field] = prev + delta;
590
+ entry.parts.set(partId, existingPart);
591
+
592
+ let full = "";
593
+ const sortedParts = Array.from(entry.parts.values()).sort((a, b) => {
594
+ const ta = a.time?.start || (a.meta && a.meta.start) || 0;
595
+ const tb = b.time?.start || (b.meta && b.meta.start) || 0;
596
+ return ta - tb;
597
+ });
598
+
599
+ for (const p of sortedParts) {
600
+ if (p.text) full += p.text;
601
+ else if (p.content) full += p.content;
602
+ }
603
+ entry.content = full;
604
+ }
605
+ }
606
+ }
607
+
417
608
  // 3. Upload on Session Idle
418
609
  if (event.type === "session.idle") {
419
610
  if (!sessionId || !sessionId.startsWith("ses")) return;
420
611
 
421
- // Check if this is a child session (has parent_id or is in sessionGraph)
422
- const parentId = event.parent_id || event.properties?.parentID || event.payload?.parent_id;
423
-
424
- // Also check if this session is registered as a child in sessionGraph
425
- let foundParentId = parentId;
426
- if (!foundParentId) {
427
- for (const [potentialParent, childIds] of sessionGraph.entries()) {
428
- if (childIds.includes(sessionId)) {
429
- foundParentId = potentialParent;
430
- logDebug(`Found parent ${foundParentId} for for child ${sessionId} from sessionGraph`);
431
- break;
432
- }
612
+ // Reload store from disk to pick up any data written by
613
+ // concurrent child processes (e.g. opencode run executed
614
+ // from within the opencode interactive interface).
615
+ loadStore();
616
+
617
+ // Only treat a session as "child" when it was detected via Task tool
618
+ // (i.e. registered in sessionGraph). Do NOT rely on event.parentID because
619
+ // nested `opencode run ...` can also set parentID and we want both sessions uploaded.
620
+ let foundParentId = null;
621
+ for (const [potentialParent, childIds] of sessionGraph.entries()) {
622
+ if (childIds.includes(sessionId)) {
623
+ foundParentId = potentialParent;
624
+ logDebug(`Found parent ${foundParentId} for for child ${sessionId} from sessionGraph`);
625
+ break;
433
626
  }
434
627
  }
435
628
 
@@ -587,11 +780,38 @@ export default async function WittySkillInsightPlugin(input) {
587
780
  timestamp: new Date().toISOString()
588
781
  };
589
782
 
590
- if (uploadedSessions.has(sessionId)) {
591
- logDebug(`Session ${sessionId} already uploaded, skipping.`);
783
+ let lastTs = 0;
784
+ for (const m of messages) {
785
+ const t1 = toMsTimestamp(m.timestamp) || 0;
786
+ const t2 = toMsTimestamp(m.timeInfo?.completed) || 0;
787
+ const t3 = toMsTimestamp(m.timeInfo?.created) || 0;
788
+ lastTs = Math.max(lastTs, t1, t2, t3);
789
+ }
790
+ const lastAssistantLen = (lastAssistantContent || '').length;
791
+
792
+ const normalize = (v) => {
793
+ if (typeof v === 'number') return { count: v, lastAssistantLen: 0, lastTs: 0 };
794
+ if (v && typeof v === 'object') {
795
+ return {
796
+ count: Number(v.count || 0),
797
+ lastAssistantLen: Number(v.lastAssistantLen || 0),
798
+ lastTs: Number(v.lastTs || 0)
799
+ };
800
+ }
801
+ return { count: 0, lastAssistantLen: 0, lastTs: 0 };
802
+ };
803
+
804
+ const prevSig = normalize(uploadedSessions.get(sessionId));
805
+ const shouldSkip =
806
+ messages.length <= prevSig.count &&
807
+ lastAssistantLen <= prevSig.lastAssistantLen &&
808
+ lastTs <= prevSig.lastTs;
809
+
810
+ if (shouldSkip) {
811
+ logDebug(`Session ${sessionId} already uploaded (count=${prevSig.count}, lastAssistantLen=${prevSig.lastAssistantLen}, lastTs=${prevSig.lastTs}) (cur: count=${messages.length}, lastAssistantLen=${lastAssistantLen}, lastTs=${lastTs}), skipping.`);
592
812
  return;
593
813
  }
594
- uploadedSessions.add(sessionId);
814
+ uploadedSessions.set(sessionId, { count: messages.length, lastAssistantLen, lastTs });
595
815
 
596
816
  const body = JSON.stringify(payload);
597
817
  logDebug(`Payload Body Size: ${Buffer.byteLength(body)} bytes`);
@@ -692,6 +912,7 @@ try {
692
912
  } catch (err) {
693
913
  logDebug(`Plugin Exception: ${err.message}`);
694
914
  }
915
+ saveStore();
695
916
  }
696
917
  };
697
918
  }
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,t,r)=>{t.exports=e.r(76562)},9165,e=>{"use strict";async function t(e,t){return fetch(""+e,t)}function r(e){return""+e}e.s(["apiFetch",()=>t,"getApiUrl",()=>r])},94690,e=>{"use strict";var t=e.i(43476),r=e.i(18566),i=e.i(71645),o=e.i(9165);let a=(0,i.createContext)(void 0);function u({children:e}){let[u,s]=(0,i.useState)(null),[n,l]=(0,i.useState)(null),[c,h]=(0,i.useState)(!1),[g,d]=(0,i.useState)(!1),[m,f]=(0,i.useState)(!1),v=(0,r.useRouter)(),p=(0,r.usePathname)();return(0,i.useEffect)(()=>{(0,o.apiFetch)("/api/config/status?check_org=true").then(e=>e.json()).then(e=>h(e.org_mode||!1)).catch(()=>{}).finally(()=>f(!0))},[]),(0,i.useEffect)(()=>{if(!m)return;let e=localStorage.getItem("user_id"),t=localStorage.getItem("api_key");e?(s(e),t&&l(t)):c&&!g?(d(!0),(0,o.apiFetch)("/api/auth/organization").then(async e=>{let t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t?.error||`Organization auth failed: ${e.status}`);return t}).then(e=>{let t=e?.displayName||e?.username,r=e?.apiKey;if(!t)throw Error("Organization auth response missing username");localStorage.setItem("user_id",t),r&&localStorage.setItem("api_key",r),s(t),r&&l(r)}).catch(e=>console.error("Organization auth failed:",e)).finally(()=>d(!1))):"/login"!==p&&v.push("/login")},[p,v,c,g,m]),(0,t.jsx)(a.Provider,{value:{user:u,apiKey:n,login:(e,t)=>{localStorage.setItem("user_id",e),s(e),t&&(localStorage.setItem("api_key",t),l(t)),v.replace("/")},logout:()=>{localStorage.removeItem("user_id"),localStorage.removeItem("api_key"),s(null),l(null),v.push("/login")}},children:e})}function s(){let e=(0,i.useContext)(a);if(void 0===e)throw Error("useAuth must be used within an AuthProvider");return e}e.s(["AuthProvider",()=>u,"useAuth",()=>s])},97703,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let i=(0,r.createContext)(void 0);function o({children:e}){let[o,a]=(0,r.useState)("light"),[u,s]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{s(!0);let e=localStorage.getItem("skill-insight-theme");e&&a(e)},[]),(0,r.useEffect)(()=>{u&&(localStorage.setItem("skill-insight-theme",o),document.documentElement.setAttribute("data-theme",o))},[o,u]),u)?(0,t.jsx)(i.Provider,{value:{theme:o,toggleTheme:()=>{a(e=>"light"===e?"dark":"light")},isDark:"dark"===o},children:e}):null}function a(){let e=(0,r.useContext)(i);if(void 0===e)throw Error("useTheme must be used within a ThemeProvider");return e}e.s(["ThemeProvider",()=>o,"useTheme",()=>a])},1661,e=>{"use strict";var t=e.i(43476),r=e.i(94690),i=e.i(97703);function o({children:e}){return(0,t.jsx)(i.ThemeProvider,{children:(0,t.jsx)(r.AuthProvider,{children:e})})}e.s(["Providers",()=>o])}]);