claude-code-workflow 6.2.2 → 6.2.3

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 (346) hide show
  1. package/ccw/dist/cli.d.ts +2 -0
  2. package/ccw/dist/cli.d.ts.map +1 -0
  3. package/ccw/dist/cli.js +219 -0
  4. package/ccw/dist/cli.js.map +1 -0
  5. package/ccw/dist/commands/cli.d.ts +32 -0
  6. package/ccw/dist/commands/cli.d.ts.map +1 -0
  7. package/ccw/dist/commands/cli.js +619 -0
  8. package/ccw/dist/commands/cli.js.map +1 -0
  9. package/ccw/dist/commands/core-memory.d.ts +32 -0
  10. package/ccw/dist/commands/core-memory.d.ts.map +1 -0
  11. package/ccw/dist/commands/core-memory.js +640 -0
  12. package/ccw/dist/commands/core-memory.js.map +1 -0
  13. package/ccw/dist/commands/hook.d.ts +16 -0
  14. package/ccw/dist/commands/hook.d.ts.map +1 -0
  15. package/ccw/dist/commands/hook.js +276 -0
  16. package/ccw/dist/commands/hook.js.map +1 -0
  17. package/ccw/dist/commands/install.d.ts +12 -0
  18. package/ccw/dist/commands/install.d.ts.map +1 -0
  19. package/ccw/dist/commands/install.js +443 -0
  20. package/ccw/dist/commands/install.js.map +1 -0
  21. package/ccw/dist/commands/list.d.ts +5 -0
  22. package/ccw/dist/commands/list.d.ts.map +1 -0
  23. package/ccw/dist/commands/list.js +32 -0
  24. package/ccw/dist/commands/list.js.map +1 -0
  25. package/ccw/dist/commands/memory.d.ts +57 -0
  26. package/ccw/dist/commands/memory.d.ts.map +1 -0
  27. package/ccw/dist/commands/memory.js +890 -0
  28. package/ccw/dist/commands/memory.js.map +1 -0
  29. package/ccw/dist/commands/serve.d.ts +12 -0
  30. package/ccw/dist/commands/serve.d.ts.map +1 -0
  31. package/ccw/dist/commands/serve.js +63 -0
  32. package/ccw/dist/commands/serve.js.map +1 -0
  33. package/ccw/dist/commands/session-path-resolver.d.ts +45 -0
  34. package/ccw/dist/commands/session-path-resolver.d.ts.map +1 -0
  35. package/ccw/dist/commands/session-path-resolver.js +302 -0
  36. package/ccw/dist/commands/session-path-resolver.js.map +1 -0
  37. package/ccw/dist/commands/session.d.ts +12 -0
  38. package/ccw/dist/commands/session.d.ts.map +1 -0
  39. package/ccw/dist/commands/session.js +954 -0
  40. package/ccw/dist/commands/session.js.map +1 -0
  41. package/ccw/dist/commands/stop.d.ts +11 -0
  42. package/ccw/dist/commands/stop.d.ts.map +1 -0
  43. package/ccw/dist/commands/stop.js +96 -0
  44. package/ccw/dist/commands/stop.js.map +1 -0
  45. package/ccw/dist/commands/tool.d.ts +29 -0
  46. package/ccw/dist/commands/tool.d.ts.map +1 -0
  47. package/ccw/dist/commands/tool.js +173 -0
  48. package/ccw/dist/commands/tool.js.map +1 -0
  49. package/ccw/dist/commands/uninstall.d.ts +9 -0
  50. package/ccw/dist/commands/uninstall.d.ts.map +1 -0
  51. package/ccw/dist/commands/uninstall.js +239 -0
  52. package/ccw/dist/commands/uninstall.js.map +1 -0
  53. package/ccw/dist/commands/upgrade.d.ts +10 -0
  54. package/ccw/dist/commands/upgrade.d.ts.map +1 -0
  55. package/ccw/dist/commands/upgrade.js +288 -0
  56. package/ccw/dist/commands/upgrade.js.map +1 -0
  57. package/ccw/dist/commands/view.d.ts +14 -0
  58. package/ccw/dist/commands/view.d.ts.map +1 -0
  59. package/ccw/dist/commands/view.js +100 -0
  60. package/ccw/dist/commands/view.js.map +1 -0
  61. package/ccw/dist/config/storage-paths.d.ts +184 -0
  62. package/ccw/dist/config/storage-paths.d.ts.map +1 -0
  63. package/ccw/dist/config/storage-paths.js +536 -0
  64. package/ccw/dist/config/storage-paths.js.map +1 -0
  65. package/ccw/dist/core/cache-manager.d.ts +80 -0
  66. package/ccw/dist/core/cache-manager.d.ts.map +1 -0
  67. package/ccw/dist/core/cache-manager.js +260 -0
  68. package/ccw/dist/core/cache-manager.js.map +1 -0
  69. package/ccw/dist/core/claude-freshness.d.ts +53 -0
  70. package/ccw/dist/core/claude-freshness.d.ts.map +1 -0
  71. package/ccw/dist/core/claude-freshness.js +232 -0
  72. package/ccw/dist/core/claude-freshness.js.map +1 -0
  73. package/ccw/dist/core/core-memory-store.d.ts +320 -0
  74. package/ccw/dist/core/core-memory-store.d.ts.map +1 -0
  75. package/ccw/dist/core/core-memory-store.js +1177 -0
  76. package/ccw/dist/core/core-memory-store.js.map +1 -0
  77. package/ccw/dist/core/dashboard-generator-patch.d.ts +2 -0
  78. package/ccw/dist/core/dashboard-generator-patch.d.ts.map +1 -0
  79. package/ccw/dist/core/dashboard-generator-patch.js +48 -0
  80. package/ccw/dist/core/dashboard-generator-patch.js.map +1 -0
  81. package/ccw/dist/core/dashboard-generator.d.ts +8 -0
  82. package/ccw/dist/core/dashboard-generator.d.ts.map +1 -0
  83. package/ccw/dist/core/dashboard-generator.js +695 -0
  84. package/ccw/dist/core/dashboard-generator.js.map +1 -0
  85. package/ccw/dist/core/data-aggregator.d.ts +145 -0
  86. package/ccw/dist/core/data-aggregator.d.ts.map +1 -0
  87. package/ccw/dist/core/data-aggregator.js +416 -0
  88. package/ccw/dist/core/data-aggregator.js.map +1 -0
  89. package/ccw/dist/core/history-importer.d.ts +102 -0
  90. package/ccw/dist/core/history-importer.d.ts.map +1 -0
  91. package/ccw/dist/core/history-importer.js +493 -0
  92. package/ccw/dist/core/history-importer.js.map +1 -0
  93. package/ccw/dist/core/lite-scanner-complete.d.ts +81 -0
  94. package/ccw/dist/core/lite-scanner-complete.d.ts.map +1 -0
  95. package/ccw/dist/core/lite-scanner-complete.js +368 -0
  96. package/ccw/dist/core/lite-scanner-complete.js.map +1 -0
  97. package/ccw/dist/core/lite-scanner.d.ts +81 -0
  98. package/ccw/dist/core/lite-scanner.d.ts.map +1 -0
  99. package/ccw/dist/core/lite-scanner.js +368 -0
  100. package/ccw/dist/core/lite-scanner.js.map +1 -0
  101. package/ccw/dist/core/manifest.d.ts +88 -0
  102. package/ccw/dist/core/manifest.d.ts.map +1 -0
  103. package/ccw/dist/core/manifest.js +214 -0
  104. package/ccw/dist/core/manifest.js.map +1 -0
  105. package/ccw/dist/core/memory-embedder-bridge.d.ts +83 -0
  106. package/ccw/dist/core/memory-embedder-bridge.d.ts.map +1 -0
  107. package/ccw/dist/core/memory-embedder-bridge.js +181 -0
  108. package/ccw/dist/core/memory-embedder-bridge.js.map +1 -0
  109. package/ccw/dist/core/memory-store.d.ts +249 -0
  110. package/ccw/dist/core/memory-store.d.ts.map +1 -0
  111. package/ccw/dist/core/memory-store.js +781 -0
  112. package/ccw/dist/core/memory-store.js.map +1 -0
  113. package/ccw/dist/core/routes/ccw-routes.d.ts +20 -0
  114. package/ccw/dist/core/routes/ccw-routes.d.ts.map +1 -0
  115. package/ccw/dist/core/routes/ccw-routes.js +70 -0
  116. package/ccw/dist/core/routes/ccw-routes.js.map +1 -0
  117. package/ccw/dist/core/routes/claude-routes.d.ts +19 -0
  118. package/ccw/dist/core/routes/claude-routes.d.ts.map +1 -0
  119. package/ccw/dist/core/routes/claude-routes.js +1017 -0
  120. package/ccw/dist/core/routes/claude-routes.js.map +1 -0
  121. package/ccw/dist/core/routes/cli-routes.d.ts +20 -0
  122. package/ccw/dist/core/routes/cli-routes.d.ts.map +1 -0
  123. package/ccw/dist/core/routes/cli-routes.js +468 -0
  124. package/ccw/dist/core/routes/cli-routes.js.map +1 -0
  125. package/ccw/dist/core/routes/codexlens-routes.d.ts +20 -0
  126. package/ccw/dist/core/routes/codexlens-routes.d.ts.map +1 -0
  127. package/ccw/dist/core/routes/codexlens-routes.js +754 -0
  128. package/ccw/dist/core/routes/codexlens-routes.js.map +1 -0
  129. package/ccw/dist/core/routes/core-memory-routes.d.ts +21 -0
  130. package/ccw/dist/core/routes/core-memory-routes.d.ts.map +1 -0
  131. package/ccw/dist/core/routes/core-memory-routes.js +520 -0
  132. package/ccw/dist/core/routes/core-memory-routes.js.map +1 -0
  133. package/ccw/dist/core/routes/files-routes.d.ts +20 -0
  134. package/ccw/dist/core/routes/files-routes.d.ts.map +1 -0
  135. package/ccw/dist/core/routes/files-routes.js +374 -0
  136. package/ccw/dist/core/routes/files-routes.js.map +1 -0
  137. package/ccw/dist/core/routes/graph-routes.d.ts +20 -0
  138. package/ccw/dist/core/routes/graph-routes.d.ts.map +1 -0
  139. package/ccw/dist/core/routes/graph-routes.js +517 -0
  140. package/ccw/dist/core/routes/graph-routes.js.map +1 -0
  141. package/ccw/dist/core/routes/help-routes.d.ts +20 -0
  142. package/ccw/dist/core/routes/help-routes.d.ts.map +1 -0
  143. package/ccw/dist/core/routes/help-routes.js +250 -0
  144. package/ccw/dist/core/routes/help-routes.js.map +1 -0
  145. package/ccw/dist/core/routes/hooks-routes.d.ts +21 -0
  146. package/ccw/dist/core/routes/hooks-routes.d.ts.map +1 -0
  147. package/ccw/dist/core/routes/hooks-routes.js +346 -0
  148. package/ccw/dist/core/routes/hooks-routes.js.map +1 -0
  149. package/ccw/dist/core/routes/mcp-routes.d.ts +20 -0
  150. package/ccw/dist/core/routes/mcp-routes.d.ts.map +1 -0
  151. package/ccw/dist/core/routes/mcp-routes.js +1129 -0
  152. package/ccw/dist/core/routes/mcp-routes.js.map +1 -0
  153. package/ccw/dist/core/routes/mcp-templates-db.d.ts +54 -0
  154. package/ccw/dist/core/routes/mcp-templates-db.d.ts.map +1 -0
  155. package/ccw/dist/core/routes/mcp-templates-db.js +226 -0
  156. package/ccw/dist/core/routes/mcp-templates-db.js.map +1 -0
  157. package/ccw/dist/core/routes/memory-routes.d.ts +21 -0
  158. package/ccw/dist/core/routes/memory-routes.d.ts.map +1 -0
  159. package/ccw/dist/core/routes/memory-routes.js +1095 -0
  160. package/ccw/dist/core/routes/memory-routes.js.map +1 -0
  161. package/ccw/dist/core/routes/rules-routes.d.ts +20 -0
  162. package/ccw/dist/core/routes/rules-routes.d.ts.map +1 -0
  163. package/ccw/dist/core/routes/rules-routes.js +442 -0
  164. package/ccw/dist/core/routes/rules-routes.js.map +1 -0
  165. package/ccw/dist/core/routes/session-routes.d.ts +20 -0
  166. package/ccw/dist/core/routes/session-routes.d.ts.map +1 -0
  167. package/ccw/dist/core/routes/session-routes.js +423 -0
  168. package/ccw/dist/core/routes/session-routes.js.map +1 -0
  169. package/ccw/dist/core/routes/skills-routes.d.ts +20 -0
  170. package/ccw/dist/core/routes/skills-routes.d.ts.map +1 -0
  171. package/ccw/dist/core/routes/skills-routes.js +533 -0
  172. package/ccw/dist/core/routes/skills-routes.js.map +1 -0
  173. package/ccw/dist/core/routes/status-routes.d.ts +20 -0
  174. package/ccw/dist/core/routes/status-routes.d.ts.map +1 -0
  175. package/ccw/dist/core/routes/status-routes.js +38 -0
  176. package/ccw/dist/core/routes/status-routes.js.map +1 -0
  177. package/ccw/dist/core/routes/system-routes.d.ts +22 -0
  178. package/ccw/dist/core/routes/system-routes.d.ts.map +1 -0
  179. package/ccw/dist/core/routes/system-routes.js +354 -0
  180. package/ccw/dist/core/routes/system-routes.js.map +1 -0
  181. package/ccw/dist/core/server.d.ts +17 -0
  182. package/ccw/dist/core/server.d.ts.map +1 -0
  183. package/ccw/dist/core/server.js +386 -0
  184. package/ccw/dist/core/server.js.map +1 -0
  185. package/ccw/dist/core/session-clustering-service.d.ts +153 -0
  186. package/ccw/dist/core/session-clustering-service.d.ts.map +1 -0
  187. package/ccw/dist/core/session-clustering-service.js +1065 -0
  188. package/ccw/dist/core/session-clustering-service.js.map +1 -0
  189. package/ccw/dist/core/session-scanner.d.ts +32 -0
  190. package/ccw/dist/core/session-scanner.d.ts.map +1 -0
  191. package/ccw/dist/core/session-scanner.js +253 -0
  192. package/ccw/dist/core/session-scanner.js.map +1 -0
  193. package/ccw/dist/core/websocket.d.ts +23 -0
  194. package/ccw/dist/core/websocket.d.ts.map +1 -0
  195. package/ccw/dist/core/websocket.js +168 -0
  196. package/ccw/dist/core/websocket.js.map +1 -0
  197. package/ccw/dist/index.d.ts +10 -0
  198. package/ccw/dist/index.d.ts.map +1 -0
  199. package/ccw/dist/index.js +10 -0
  200. package/ccw/dist/index.js.map +1 -0
  201. package/ccw/dist/mcp-server/index.d.ts +7 -0
  202. package/ccw/dist/mcp-server/index.d.ts.map +1 -0
  203. package/ccw/dist/mcp-server/index.js +157 -0
  204. package/ccw/dist/mcp-server/index.js.map +1 -0
  205. package/ccw/dist/tools/classify-folders.d.ts +26 -0
  206. package/ccw/dist/tools/classify-folders.d.ts.map +1 -0
  207. package/ccw/dist/tools/classify-folders.js +201 -0
  208. package/ccw/dist/tools/classify-folders.js.map +1 -0
  209. package/ccw/dist/tools/cli-config-manager.d.ts +62 -0
  210. package/ccw/dist/tools/cli-config-manager.d.ts.map +1 -0
  211. package/ccw/dist/tools/cli-config-manager.js +221 -0
  212. package/ccw/dist/tools/cli-config-manager.js.map +1 -0
  213. package/ccw/dist/tools/cli-executor.d.ts +373 -0
  214. package/ccw/dist/tools/cli-executor.d.ts.map +1 -0
  215. package/ccw/dist/tools/cli-executor.js +1625 -0
  216. package/ccw/dist/tools/cli-executor.js.map +1 -0
  217. package/ccw/dist/tools/cli-history-store.d.ts +330 -0
  218. package/ccw/dist/tools/cli-history-store.d.ts.map +1 -0
  219. package/ccw/dist/tools/cli-history-store.js +916 -0
  220. package/ccw/dist/tools/cli-history-store.js.map +1 -0
  221. package/ccw/dist/tools/codex-lens.d.ts +118 -0
  222. package/ccw/dist/tools/codex-lens.d.ts.map +1 -0
  223. package/ccw/dist/tools/codex-lens.js +962 -0
  224. package/ccw/dist/tools/codex-lens.js.map +1 -0
  225. package/ccw/dist/tools/convert-tokens-to-css.d.ts +14 -0
  226. package/ccw/dist/tools/convert-tokens-to-css.d.ts.map +1 -0
  227. package/ccw/dist/tools/convert-tokens-to-css.js +244 -0
  228. package/ccw/dist/tools/convert-tokens-to-css.js.map +1 -0
  229. package/ccw/dist/tools/core-memory.d.ts +66 -0
  230. package/ccw/dist/tools/core-memory.d.ts.map +1 -0
  231. package/ccw/dist/tools/core-memory.js +324 -0
  232. package/ccw/dist/tools/core-memory.js.map +1 -0
  233. package/ccw/dist/tools/detect-changed-modules.d.ts +24 -0
  234. package/ccw/dist/tools/detect-changed-modules.d.ts.map +1 -0
  235. package/ccw/dist/tools/detect-changed-modules.js +277 -0
  236. package/ccw/dist/tools/detect-changed-modules.js.map +1 -0
  237. package/ccw/dist/tools/discover-design-files.d.ts +36 -0
  238. package/ccw/dist/tools/discover-design-files.d.ts.map +1 -0
  239. package/ccw/dist/tools/discover-design-files.js +147 -0
  240. package/ccw/dist/tools/discover-design-files.js.map +1 -0
  241. package/ccw/dist/tools/edit-file.d.ts +28 -0
  242. package/ccw/dist/tools/edit-file.d.ts.map +1 -0
  243. package/ccw/dist/tools/edit-file.js +479 -0
  244. package/ccw/dist/tools/edit-file.js.map +1 -0
  245. package/ccw/dist/tools/generate-module-docs.d.ts +22 -0
  246. package/ccw/dist/tools/generate-module-docs.d.ts.map +1 -0
  247. package/ccw/dist/tools/generate-module-docs.js +379 -0
  248. package/ccw/dist/tools/generate-module-docs.js.map +1 -0
  249. package/ccw/dist/tools/get-modules-by-depth.d.ts +15 -0
  250. package/ccw/dist/tools/get-modules-by-depth.d.ts.map +1 -0
  251. package/ccw/dist/tools/get-modules-by-depth.js +296 -0
  252. package/ccw/dist/tools/get-modules-by-depth.js.map +1 -0
  253. package/ccw/dist/tools/index.d.ts +55 -0
  254. package/ccw/dist/tools/index.d.ts.map +1 -0
  255. package/ccw/dist/tools/index.js +304 -0
  256. package/ccw/dist/tools/index.js.map +1 -0
  257. package/ccw/dist/tools/native-session-discovery.d.ts +97 -0
  258. package/ccw/dist/tools/native-session-discovery.d.ts.map +1 -0
  259. package/ccw/dist/tools/native-session-discovery.js +700 -0
  260. package/ccw/dist/tools/native-session-discovery.js.map +1 -0
  261. package/ccw/dist/tools/notifier.d.ts +50 -0
  262. package/ccw/dist/tools/notifier.d.ts.map +1 -0
  263. package/ccw/dist/tools/notifier.js +90 -0
  264. package/ccw/dist/tools/notifier.js.map +1 -0
  265. package/ccw/dist/tools/read-file.d.ts +32 -0
  266. package/ccw/dist/tools/read-file.d.ts.map +1 -0
  267. package/ccw/dist/tools/read-file.js +329 -0
  268. package/ccw/dist/tools/read-file.js.map +1 -0
  269. package/ccw/dist/tools/resume-strategy.d.ts +48 -0
  270. package/ccw/dist/tools/resume-strategy.d.ts.map +1 -0
  271. package/ccw/dist/tools/resume-strategy.js +248 -0
  272. package/ccw/dist/tools/resume-strategy.js.map +1 -0
  273. package/ccw/dist/tools/session-content-parser.d.ts +58 -0
  274. package/ccw/dist/tools/session-content-parser.d.ts.map +1 -0
  275. package/ccw/dist/tools/session-content-parser.js +420 -0
  276. package/ccw/dist/tools/session-content-parser.js.map +1 -0
  277. package/ccw/dist/tools/session-manager.d.ts +9 -0
  278. package/ccw/dist/tools/session-manager.d.ts.map +1 -0
  279. package/ccw/dist/tools/session-manager.js +834 -0
  280. package/ccw/dist/tools/session-manager.js.map +1 -0
  281. package/ccw/dist/tools/smart-context.d.ts +35 -0
  282. package/ccw/dist/tools/smart-context.d.ts.map +1 -0
  283. package/ccw/dist/tools/smart-context.js +182 -0
  284. package/ccw/dist/tools/smart-context.js.map +1 -0
  285. package/ccw/dist/tools/smart-search.d.ts +105 -0
  286. package/ccw/dist/tools/smart-search.d.ts.map +1 -0
  287. package/ccw/dist/tools/smart-search.js +1753 -0
  288. package/ccw/dist/tools/smart-search.js.map +1 -0
  289. package/ccw/dist/tools/storage-manager.d.ts +114 -0
  290. package/ccw/dist/tools/storage-manager.d.ts.map +1 -0
  291. package/ccw/dist/tools/storage-manager.js +392 -0
  292. package/ccw/dist/tools/storage-manager.js.map +1 -0
  293. package/ccw/dist/tools/ui-generate-preview.d.ts +39 -0
  294. package/ccw/dist/tools/ui-generate-preview.d.ts.map +1 -0
  295. package/ccw/dist/tools/ui-generate-preview.js +300 -0
  296. package/ccw/dist/tools/ui-generate-preview.js.map +1 -0
  297. package/ccw/dist/tools/ui-instantiate-prototypes.d.ts +75 -0
  298. package/ccw/dist/tools/ui-instantiate-prototypes.d.ts.map +1 -0
  299. package/ccw/dist/tools/ui-instantiate-prototypes.js +256 -0
  300. package/ccw/dist/tools/ui-instantiate-prototypes.js.map +1 -0
  301. package/ccw/dist/tools/update-module-claude.d.ts +80 -0
  302. package/ccw/dist/tools/update-module-claude.d.ts.map +1 -0
  303. package/ccw/dist/tools/update-module-claude.js +351 -0
  304. package/ccw/dist/tools/update-module-claude.js.map +1 -0
  305. package/ccw/dist/tools/write-file.d.ts +19 -0
  306. package/ccw/dist/tools/write-file.d.ts.map +1 -0
  307. package/ccw/dist/tools/write-file.js +193 -0
  308. package/ccw/dist/tools/write-file.js.map +1 -0
  309. package/ccw/dist/types/config.d.ts +11 -0
  310. package/ccw/dist/types/config.d.ts.map +1 -0
  311. package/ccw/dist/types/config.js +2 -0
  312. package/ccw/dist/types/config.js.map +1 -0
  313. package/ccw/dist/types/index.d.ts +4 -0
  314. package/ccw/dist/types/index.d.ts.map +1 -0
  315. package/ccw/dist/types/index.js +4 -0
  316. package/ccw/dist/types/index.js.map +1 -0
  317. package/ccw/dist/types/session.d.ts +20 -0
  318. package/ccw/dist/types/session.d.ts.map +1 -0
  319. package/ccw/dist/types/session.js +2 -0
  320. package/ccw/dist/types/session.js.map +1 -0
  321. package/ccw/dist/types/tool.d.ts +36 -0
  322. package/ccw/dist/types/tool.d.ts.map +1 -0
  323. package/ccw/dist/types/tool.js +11 -0
  324. package/ccw/dist/types/tool.js.map +1 -0
  325. package/ccw/dist/utils/browser-launcher.d.ts +13 -0
  326. package/ccw/dist/utils/browser-launcher.d.ts.map +1 -0
  327. package/ccw/dist/utils/browser-launcher.js +60 -0
  328. package/ccw/dist/utils/browser-launcher.js.map +1 -0
  329. package/ccw/dist/utils/file-utils.d.ts +25 -0
  330. package/ccw/dist/utils/file-utils.d.ts.map +1 -0
  331. package/ccw/dist/utils/file-utils.js +48 -0
  332. package/ccw/dist/utils/file-utils.js.map +1 -0
  333. package/ccw/dist/utils/path-resolver.d.ts +80 -0
  334. package/ccw/dist/utils/path-resolver.d.ts.map +1 -0
  335. package/ccw/dist/utils/path-resolver.js +260 -0
  336. package/ccw/dist/utils/path-resolver.js.map +1 -0
  337. package/ccw/dist/utils/path-validator.d.ts +49 -0
  338. package/ccw/dist/utils/path-validator.d.ts.map +1 -0
  339. package/ccw/dist/utils/path-validator.js +123 -0
  340. package/ccw/dist/utils/path-validator.js.map +1 -0
  341. package/ccw/dist/utils/ui.d.ts +62 -0
  342. package/ccw/dist/utils/ui.d.ts.map +1 -0
  343. package/ccw/dist/utils/ui.js +129 -0
  344. package/ccw/dist/utils/ui.js.map +1 -0
  345. package/ccw/package.json +1 -1
  346. package/package.json +1 -1
@@ -0,0 +1,221 @@
1
+ /**
2
+ * CLI Configuration Manager
3
+ * Handles loading, saving, and managing CLI tool configurations
4
+ * Stores config in centralized storage (~/.ccw/projects/{id}/config/)
5
+ */
6
+ import * as fs from 'fs';
7
+ import { StoragePaths, ensureStorageDir } from '../config/storage-paths.js';
8
+ // ========== Constants ==========
9
+ export const PREDEFINED_MODELS = {
10
+ gemini: ['gemini-2.5-pro', 'gemini-2.5-flash', 'gemini-2.0-flash', 'gemini-1.5-pro', 'gemini-1.5-flash'],
11
+ qwen: ['coder-model', 'vision-model', 'qwen2.5-coder-32b'],
12
+ codex: ['gpt-5.2', 'gpt-4.1', 'o4-mini', 'o3']
13
+ };
14
+ export const DEFAULT_CONFIG = {
15
+ version: 1,
16
+ tools: {
17
+ gemini: {
18
+ enabled: true,
19
+ primaryModel: 'gemini-2.5-pro',
20
+ secondaryModel: 'gemini-2.5-flash'
21
+ },
22
+ qwen: {
23
+ enabled: true,
24
+ primaryModel: 'coder-model',
25
+ secondaryModel: 'coder-model'
26
+ },
27
+ codex: {
28
+ enabled: true,
29
+ primaryModel: 'gpt-5.2',
30
+ secondaryModel: 'gpt-5.2'
31
+ }
32
+ }
33
+ };
34
+ // ========== Helper Functions ==========
35
+ function getConfigPath(baseDir) {
36
+ return StoragePaths.project(baseDir).cliConfig;
37
+ }
38
+ function ensureConfigDirForProject(baseDir) {
39
+ const configDir = StoragePaths.project(baseDir).config;
40
+ ensureStorageDir(configDir);
41
+ }
42
+ function isValidToolName(tool) {
43
+ return ['gemini', 'qwen', 'codex'].includes(tool);
44
+ }
45
+ function validateConfig(config) {
46
+ if (!config || typeof config !== 'object')
47
+ return false;
48
+ const c = config;
49
+ if (typeof c.version !== 'number')
50
+ return false;
51
+ if (!c.tools || typeof c.tools !== 'object')
52
+ return false;
53
+ const tools = c.tools;
54
+ for (const toolName of ['gemini', 'qwen', 'codex']) {
55
+ const tool = tools[toolName];
56
+ if (!tool || typeof tool !== 'object')
57
+ return false;
58
+ const t = tool;
59
+ if (typeof t.enabled !== 'boolean')
60
+ return false;
61
+ if (typeof t.primaryModel !== 'string')
62
+ return false;
63
+ if (typeof t.secondaryModel !== 'string')
64
+ return false;
65
+ }
66
+ return true;
67
+ }
68
+ function mergeWithDefaults(config) {
69
+ const result = {
70
+ version: config.version ?? DEFAULT_CONFIG.version,
71
+ tools: { ...DEFAULT_CONFIG.tools }
72
+ };
73
+ if (config.tools) {
74
+ for (const toolName of Object.keys(config.tools)) {
75
+ if (isValidToolName(toolName) && config.tools[toolName]) {
76
+ result.tools[toolName] = {
77
+ ...DEFAULT_CONFIG.tools[toolName],
78
+ ...config.tools[toolName]
79
+ };
80
+ }
81
+ }
82
+ }
83
+ return result;
84
+ }
85
+ // ========== Main Functions ==========
86
+ /**
87
+ * Load CLI configuration from .workflow/cli-config.json
88
+ * Returns default config if file doesn't exist or is invalid
89
+ */
90
+ export function loadCliConfig(baseDir) {
91
+ const configPath = getConfigPath(baseDir);
92
+ try {
93
+ if (!fs.existsSync(configPath)) {
94
+ return { ...DEFAULT_CONFIG };
95
+ }
96
+ const content = fs.readFileSync(configPath, 'utf-8');
97
+ const parsed = JSON.parse(content);
98
+ if (validateConfig(parsed)) {
99
+ return mergeWithDefaults(parsed);
100
+ }
101
+ // Invalid config, return defaults
102
+ console.warn('[cli-config] Invalid config file, using defaults');
103
+ return { ...DEFAULT_CONFIG };
104
+ }
105
+ catch (err) {
106
+ console.error('[cli-config] Error loading config:', err);
107
+ return { ...DEFAULT_CONFIG };
108
+ }
109
+ }
110
+ /**
111
+ * Save CLI configuration to .workflow/cli-config.json
112
+ */
113
+ export function saveCliConfig(baseDir, config) {
114
+ ensureConfigDirForProject(baseDir);
115
+ const configPath = getConfigPath(baseDir);
116
+ try {
117
+ fs.writeFileSync(configPath, JSON.stringify(config, null, 2), 'utf-8');
118
+ }
119
+ catch (err) {
120
+ console.error('[cli-config] Error saving config:', err);
121
+ throw new Error(`Failed to save CLI config: ${err}`);
122
+ }
123
+ }
124
+ /**
125
+ * Get configuration for a specific tool
126
+ */
127
+ export function getToolConfig(baseDir, tool) {
128
+ if (!isValidToolName(tool)) {
129
+ throw new Error(`Invalid tool name: ${tool}`);
130
+ }
131
+ const config = loadCliConfig(baseDir);
132
+ return config.tools[tool] || DEFAULT_CONFIG.tools[tool];
133
+ }
134
+ /**
135
+ * Update configuration for a specific tool
136
+ * Returns the updated tool config
137
+ */
138
+ export function updateToolConfig(baseDir, tool, updates) {
139
+ if (!isValidToolName(tool)) {
140
+ throw new Error(`Invalid tool name: ${tool}`);
141
+ }
142
+ const config = loadCliConfig(baseDir);
143
+ const currentToolConfig = config.tools[tool] || DEFAULT_CONFIG.tools[tool];
144
+ // Apply updates
145
+ const updatedToolConfig = {
146
+ enabled: updates.enabled !== undefined ? updates.enabled : currentToolConfig.enabled,
147
+ primaryModel: updates.primaryModel || currentToolConfig.primaryModel,
148
+ secondaryModel: updates.secondaryModel || currentToolConfig.secondaryModel
149
+ };
150
+ // Save updated config
151
+ config.tools[tool] = updatedToolConfig;
152
+ saveCliConfig(baseDir, config);
153
+ return updatedToolConfig;
154
+ }
155
+ /**
156
+ * Enable a CLI tool
157
+ */
158
+ export function enableTool(baseDir, tool) {
159
+ return updateToolConfig(baseDir, tool, { enabled: true });
160
+ }
161
+ /**
162
+ * Disable a CLI tool
163
+ */
164
+ export function disableTool(baseDir, tool) {
165
+ return updateToolConfig(baseDir, tool, { enabled: false });
166
+ }
167
+ /**
168
+ * Check if a tool is enabled
169
+ */
170
+ export function isToolEnabled(baseDir, tool) {
171
+ try {
172
+ const config = getToolConfig(baseDir, tool);
173
+ return config.enabled;
174
+ }
175
+ catch {
176
+ return true; // Default to enabled if error
177
+ }
178
+ }
179
+ /**
180
+ * Get primary model for a tool
181
+ */
182
+ export function getPrimaryModel(baseDir, tool) {
183
+ try {
184
+ const config = getToolConfig(baseDir, tool);
185
+ return config.primaryModel;
186
+ }
187
+ catch {
188
+ return isValidToolName(tool) ? DEFAULT_CONFIG.tools[tool].primaryModel : 'gemini-2.5-pro';
189
+ }
190
+ }
191
+ /**
192
+ * Get secondary model for a tool (used for internal calls)
193
+ */
194
+ export function getSecondaryModel(baseDir, tool) {
195
+ try {
196
+ const config = getToolConfig(baseDir, tool);
197
+ return config.secondaryModel;
198
+ }
199
+ catch {
200
+ return isValidToolName(tool) ? DEFAULT_CONFIG.tools[tool].secondaryModel : 'gemini-2.5-flash';
201
+ }
202
+ }
203
+ /**
204
+ * Get all predefined models for a tool
205
+ */
206
+ export function getPredefinedModels(tool) {
207
+ if (!isValidToolName(tool)) {
208
+ return [];
209
+ }
210
+ return [...PREDEFINED_MODELS[tool]];
211
+ }
212
+ /**
213
+ * Get full config response for API (includes predefined models)
214
+ */
215
+ export function getFullConfigResponse(baseDir) {
216
+ return {
217
+ config: loadCliConfig(baseDir),
218
+ predefinedModels: { ...PREDEFINED_MODELS }
219
+ };
220
+ }
221
+ //# sourceMappingURL=cli-config-manager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-config-manager.js","sourceRoot":"","sources":["../../src/tools/cli-config-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAiB5E,kCAAkC;AAElC,MAAM,CAAC,MAAM,iBAAiB,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E,IAAI,CAAC,CAAC;QAC5C,OAAO,MAAM,CAAC,cAAc,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,kBAAkB,CAAC;IAChG,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAY;IAC9C,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;QAC3B,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO,CAAC,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;AACtC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAe;IAInD,OAAO;QACL,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC;QAC9B,gBAAgB,EAAE,EAAE,GAAG,iBAAiB,EAAE;KAC3C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,373 @@
1
+ /**
2
+ * CLI Executor Tool - Unified execution for external CLI tools
3
+ * Supports Gemini, Qwen, and Codex with streaming output
4
+ */
5
+ import type { ToolSchema, ToolResult } from '../types/tool.js';
6
+ export type ExecutionCategory = 'user' | 'internal' | 'insight';
7
+ type PromptFormat = 'plain' | 'yaml' | 'json';
8
+ interface ToolAvailability {
9
+ available: boolean;
10
+ path: string | null;
11
+ }
12
+ /**
13
+ * Clear all cache entries (useful for testing or forced refresh)
14
+ */
15
+ export declare function clearToolCache(): void;
16
+ interface ConversationTurn {
17
+ turn: number;
18
+ timestamp: string;
19
+ prompt: string;
20
+ duration_ms: number;
21
+ status: 'success' | 'error' | 'timeout';
22
+ exit_code: number | null;
23
+ output: {
24
+ stdout: string;
25
+ stderr: string;
26
+ truncated: boolean;
27
+ };
28
+ }
29
+ interface ConversationRecord {
30
+ id: string;
31
+ created_at: string;
32
+ updated_at: string;
33
+ tool: string;
34
+ model: string;
35
+ mode: string;
36
+ category: ExecutionCategory;
37
+ total_duration_ms: number;
38
+ turn_count: number;
39
+ latest_status: 'success' | 'error' | 'timeout';
40
+ turns: ConversationTurn[];
41
+ parent_execution_id?: string;
42
+ }
43
+ interface ExecutionRecord {
44
+ id: string;
45
+ timestamp: string;
46
+ tool: string;
47
+ model: string;
48
+ mode: string;
49
+ prompt: string;
50
+ status: 'success' | 'error' | 'timeout';
51
+ exit_code: number | null;
52
+ duration_ms: number;
53
+ output: {
54
+ stdout: string;
55
+ stderr: string;
56
+ truncated: boolean;
57
+ };
58
+ }
59
+ interface HistoryIndex {
60
+ version: number;
61
+ total_executions: number;
62
+ executions: {
63
+ id: string;
64
+ timestamp: string;
65
+ updated_at?: string;
66
+ tool: string;
67
+ status: string;
68
+ duration_ms: number;
69
+ turn_count?: number;
70
+ prompt_preview: string;
71
+ }[];
72
+ }
73
+ interface ExecutionOutput {
74
+ success: boolean;
75
+ execution: ExecutionRecord;
76
+ conversation: ConversationRecord;
77
+ stdout: string;
78
+ stderr: string;
79
+ }
80
+ /**
81
+ * Check if a CLI tool is available (with caching)
82
+ */
83
+ declare function checkToolAvailability(tool: string): Promise<ToolAvailability>;
84
+ /**
85
+ * Execute CLI tool with streaming output
86
+ */
87
+ declare function executeCliTool(params: Record<string, unknown>, onOutput?: ((data: {
88
+ type: string;
89
+ data: string;
90
+ }) => void) | null): Promise<ExecutionOutput>;
91
+ export declare const schema: ToolSchema;
92
+ export declare function handler(params: Record<string, unknown>): Promise<ToolResult<ExecutionOutput>>;
93
+ /**
94
+ * Get execution history from SQLite (centralized storage)
95
+ */
96
+ export declare function getExecutionHistoryAsync(baseDir: string, options?: {
97
+ limit?: number;
98
+ tool?: string | null;
99
+ status?: string | null;
100
+ category?: ExecutionCategory | null;
101
+ search?: string | null;
102
+ recursive?: boolean;
103
+ }): Promise<{
104
+ total: number;
105
+ count: number;
106
+ executions: (HistoryIndex['executions'][0] & {
107
+ sourceDir?: string;
108
+ })[];
109
+ }>;
110
+ /**
111
+ * Get execution history (sync version - uses cached SQLite module)
112
+ */
113
+ export declare function getExecutionHistory(baseDir: string, options?: {
114
+ limit?: number;
115
+ tool?: string | null;
116
+ status?: string | null;
117
+ recursive?: boolean;
118
+ }): {
119
+ total: number;
120
+ count: number;
121
+ executions: (HistoryIndex['executions'][0] & {
122
+ sourceDir?: string;
123
+ })[];
124
+ };
125
+ /**
126
+ * Get conversation detail by ID (returns ConversationRecord)
127
+ */
128
+ export declare function getConversationDetail(baseDir: string, conversationId: string): ConversationRecord | null;
129
+ /**
130
+ * Get conversation detail with native session info
131
+ */
132
+ export declare function getConversationDetailWithNativeInfo(baseDir: string, conversationId: string): (import("./cli-history-store.js").ConversationRecord & {
133
+ hasNativeSession: boolean;
134
+ nativeSessionId?: string;
135
+ nativeSessionPath?: string;
136
+ }) | null;
137
+ /**
138
+ * Get execution detail by ID (legacy, returns ExecutionRecord for backward compatibility)
139
+ */
140
+ export declare function getExecutionDetail(baseDir: string, executionId: string): ExecutionRecord | null;
141
+ /**
142
+ * Delete execution by ID (async version)
143
+ */
144
+ export declare function deleteExecutionAsync(baseDir: string, executionId: string): Promise<{
145
+ success: boolean;
146
+ error?: string;
147
+ }>;
148
+ /**
149
+ * Delete execution by ID (sync version - uses cached SQLite module)
150
+ */
151
+ export declare function deleteExecution(baseDir: string, executionId: string): {
152
+ success: boolean;
153
+ error?: string;
154
+ };
155
+ /**
156
+ * Batch delete executions (async)
157
+ */
158
+ export declare function batchDeleteExecutionsAsync(baseDir: string, ids: string[]): Promise<{
159
+ success: boolean;
160
+ deleted: number;
161
+ total: number;
162
+ errors?: string[];
163
+ }>;
164
+ /**
165
+ * Get status of all CLI tools
166
+ */
167
+ export declare function getCliToolsStatus(): Promise<Record<string, ToolAvailability>>;
168
+ /**
169
+ * Set the base directory for config operations
170
+ */
171
+ export declare function setConfigBaseDir(dir: string): void;
172
+ /**
173
+ * Install a CLI tool via npm
174
+ */
175
+ export declare function installCliTool(tool: string): Promise<{
176
+ success: boolean;
177
+ error?: string;
178
+ }>;
179
+ /**
180
+ * Uninstall a CLI tool via npm
181
+ */
182
+ export declare function uninstallCliTool(tool: string): Promise<{
183
+ success: boolean;
184
+ error?: string;
185
+ }>;
186
+ /**
187
+ * Enable a CLI tool (updates config file)
188
+ */
189
+ export declare function enableCliTool(tool: string): {
190
+ success: boolean;
191
+ };
192
+ /**
193
+ * Disable a CLI tool (updates config file)
194
+ */
195
+ export declare function disableCliTool(tool: string): {
196
+ success: boolean;
197
+ };
198
+ /**
199
+ * Check if a tool is enabled (reads from config file)
200
+ */
201
+ export declare function isToolEnabled(tool: string): boolean;
202
+ /**
203
+ * Get full status of all CLI tools including enabled state
204
+ */
205
+ export declare function getCliToolsFullStatus(): Promise<Record<string, {
206
+ available: boolean;
207
+ enabled: boolean;
208
+ path: string | null;
209
+ packageName: string;
210
+ }>>;
211
+ /**
212
+ * Turn data structure for concatenation
213
+ */
214
+ interface TurnData {
215
+ turn: number;
216
+ timestamp?: string;
217
+ role: 'user' | 'assistant';
218
+ content: string;
219
+ status?: string;
220
+ duration_ms?: number;
221
+ source_id?: string;
222
+ }
223
+ /**
224
+ * Prompt concatenation options
225
+ */
226
+ interface ConcatOptions {
227
+ format: PromptFormat;
228
+ includeMetadata?: boolean;
229
+ includeTurnMarkers?: boolean;
230
+ maxOutputLength?: number;
231
+ }
232
+ /**
233
+ * PromptConcatenator - Dedicated class for building multi-turn prompts
234
+ * Supports multiple output formats: plain text, YAML, JSON
235
+ */
236
+ declare class PromptConcatenator {
237
+ private turns;
238
+ private options;
239
+ private metadata;
240
+ constructor(options?: Partial<ConcatOptions>);
241
+ /**
242
+ * Set metadata for the conversation
243
+ */
244
+ setMetadata(key: string, value: unknown): this;
245
+ /**
246
+ * Add a user turn
247
+ */
248
+ addUserTurn(content: string, options?: Partial<Omit<TurnData, 'role' | 'content'>>): this;
249
+ /**
250
+ * Add an assistant turn
251
+ */
252
+ addAssistantTurn(content: string, options?: Partial<Omit<TurnData, 'role' | 'content'>>): this;
253
+ /**
254
+ * Add a conversation turn from ConversationTurn
255
+ */
256
+ addFromConversationTurn(turn: ConversationTurn, sourceId?: string): this;
257
+ /**
258
+ * Load turns from an existing conversation
259
+ */
260
+ loadConversation(conversation: ConversationRecord): this;
261
+ /**
262
+ * Build the final prompt in plain text format
263
+ */
264
+ private buildPlainText;
265
+ /**
266
+ * Build the final prompt in YAML format
267
+ */
268
+ private buildYaml;
269
+ /**
270
+ * Build the final prompt in JSON format
271
+ */
272
+ private buildJson;
273
+ /**
274
+ * Helper to format YAML values
275
+ */
276
+ private yamlValue;
277
+ /**
278
+ * Build the final prompt string
279
+ */
280
+ build(newPrompt: string): string;
281
+ /**
282
+ * Reset the concatenator for reuse
283
+ */
284
+ reset(): this;
285
+ }
286
+ /**
287
+ * Create a prompt concatenator with specified options
288
+ */
289
+ declare function createPromptConcatenator(options?: Partial<ConcatOptions>): PromptConcatenator;
290
+ /**
291
+ * Quick helper to build a multi-turn prompt in any format
292
+ */
293
+ declare function buildPrompt(conversation: ConversationRecord, newPrompt: string, format?: PromptFormat): string;
294
+ /**
295
+ * Build multi-turn prompt with full conversation history
296
+ * Uses the PromptConcatenator with plain text format by default
297
+ */
298
+ declare function buildMultiTurnPrompt(conversation: ConversationRecord, newPrompt: string, format?: PromptFormat): string;
299
+ /**
300
+ * Get latest execution for a specific tool
301
+ */
302
+ export declare function getLatestExecution(baseDir: string, tool?: string): ExecutionRecord | null;
303
+ /**
304
+ * Get native session content by CCW ID
305
+ * Parses the native session file and returns full conversation data
306
+ */
307
+ export declare function getNativeSessionContent(baseDir: string, ccwId: string): Promise<import("./session-content-parser.js").ParsedSession | null>;
308
+ /**
309
+ * Get formatted native conversation text
310
+ */
311
+ export declare function getFormattedNativeConversation(baseDir: string, ccwId: string, options?: {
312
+ includeThoughts?: boolean;
313
+ includeToolCalls?: boolean;
314
+ includeTokens?: boolean;
315
+ maxContentLength?: number;
316
+ }): Promise<string | null>;
317
+ /**
318
+ * Get conversation pairs from native session
319
+ */
320
+ export declare function getNativeConversationPairs(baseDir: string, ccwId: string): Promise<{
321
+ turn: number;
322
+ userPrompt: string;
323
+ assistantResponse: string;
324
+ timestamp: string;
325
+ }[] | null>;
326
+ /**
327
+ * Get enriched conversation (CCW + native session merged)
328
+ */
329
+ export declare function getEnrichedConversation(baseDir: string, ccwId: string): Promise<{
330
+ ccw: import("./cli-history-store.js").ConversationRecord | null;
331
+ native: import("./session-content-parser.js").ParsedSession | null;
332
+ merged: Array<{
333
+ turn: number;
334
+ timestamp: string;
335
+ ccwPrompt?: string;
336
+ ccwOutput?: string;
337
+ nativeUserContent?: string;
338
+ nativeAssistantContent?: string;
339
+ nativeThoughts?: string[];
340
+ nativeToolCalls?: Array<{
341
+ name: string;
342
+ arguments?: string;
343
+ output?: string;
344
+ }>;
345
+ }>;
346
+ } | null>;
347
+ /**
348
+ * Get history with native session info
349
+ */
350
+ export declare function getHistoryWithNativeInfo(baseDir: string, options?: {
351
+ limit?: number;
352
+ offset?: number;
353
+ tool?: string | null;
354
+ status?: string | null;
355
+ category?: ExecutionCategory | null;
356
+ search?: string | null;
357
+ }): Promise<{
358
+ total: number;
359
+ count: number;
360
+ executions: Array<import("./cli-history-store.js").HistoryIndexEntry & {
361
+ hasNativeSession: boolean;
362
+ nativeSessionId?: string;
363
+ nativeSessionPath?: string;
364
+ }>;
365
+ }>;
366
+ export type { ConversationRecord, ConversationTurn, ExecutionRecord, PromptFormat, ConcatOptions };
367
+ export { executeCliTool, checkToolAvailability };
368
+ export { PromptConcatenator, createPromptConcatenator, buildPrompt, buildMultiTurnPrompt };
369
+ export declare const cliExecutorTool: {
370
+ schema: ToolSchema;
371
+ execute: typeof executeCliTool;
372
+ };
373
+ //# sourceMappingURL=cli-executor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-executor.d.ts","sourceRoot":"","sources":["../../src/tools/cli-executor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE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