tianxincode 1.0.48 → 1.0.49

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 (298) hide show
  1. package/README.md +200 -200
  2. package/dist/cli/commands.js +18 -18
  3. package/dist/core/ai/agents/caller/prompts/role.txt +50 -50
  4. package/dist/core/ai/agents/chat/chat.agent.js +30 -30
  5. package/dist/core/ai/agents/chat/prompts/role.txt +30 -30
  6. package/dist/core/ai/agents/code/code.agent.js +6 -6
  7. package/dist/core/ai/agents/code/prompts/role.txt +50 -50
  8. package/dist/core/ai/agents/common/prompt/role.txt +51 -51
  9. package/dist/core/ai/agents/common/prompts.js +26 -26
  10. package/dist/core/ai/agents/design/design.agent.js +6 -6
  11. package/dist/core/ai/agents/design/prompts/role.txt +36 -36
  12. package/dist/core/ai/agents/dream/prompts/init.txt +20 -20
  13. package/dist/core/ai/agents/mem/mem.agent.js +5 -5
  14. package/dist/core/ai/agents/mem/prompts/role.txt +35 -35
  15. package/dist/core/ai/agents/skill/prompts/role.txt +61 -61
  16. package/dist/core/ai/agents/skill/skill.agent.js +26 -26
  17. package/dist/core/ai/agents/summarizer/prompts/role.txt +30 -30
  18. package/dist/core/ai/agents/task/prompts/role.txt +50 -50
  19. package/dist/core/ai/agents/task/task.agent.js +30 -30
  20. package/dist/core/db/db.service.d.ts.map +1 -1
  21. package/dist/core/db/db.service.js +2 -0
  22. package/dist/core/db/db.service.js.map +1 -1
  23. package/dist/core/db/init_sql/ai_log.init.js +15 -15
  24. package/dist/core/db/init_sql/code_snippet.init.js +11 -11
  25. package/dist/core/db/init_sql/config.init.js +15 -15
  26. package/dist/core/db/init_sql/custom_action.init.js +10 -10
  27. package/dist/core/db/init_sql/dingding.init.js +9 -9
  28. package/dist/core/db/init_sql/email.init.js +14 -14
  29. package/dist/core/db/init_sql/lsp.init.js +8 -8
  30. package/dist/core/db/init_sql/message_file.init.js +11 -11
  31. package/dist/core/db/init_sql/project.init.js +20 -20
  32. package/dist/core/db/init_sql/provider.init.js +35 -35
  33. package/dist/core/db/init_sql/scheduler.init.js +32 -32
  34. package/dist/core/db/init_sql/session.init.js +23 -23
  35. package/dist/core/db/init_sql/spec.init.js +15 -15
  36. package/dist/core/db/init_sql/waf_gateway.init.js +9 -9
  37. package/dist/core/db/init_sql/zihao.init.js +11 -11
  38. package/dist/core/lsp/sql.js +11 -11
  39. package/dist/core/tools/provider/bash.txt +47 -47
  40. package/dist/core/tools/provider/code_search.txt +20 -20
  41. package/dist/core/tools/provider/edit_file.txt +13 -13
  42. package/dist/core/tools/provider/glob.txt +12 -12
  43. package/dist/core/tools/provider/grep.txt +14 -14
  44. package/dist/core/tools/provider/lsp.txt +19 -19
  45. package/dist/core/tools/provider/memory.txt +21 -21
  46. package/dist/core/tools/provider/read_file.txt +17 -17
  47. package/dist/core/tools/provider/todo_read.txt +16 -16
  48. package/dist/core/tools/provider/todo_write.txt +48 -48
  49. package/dist/core/tools/provider/web_fetch.txt +17 -17
  50. package/dist/core/tools/provider/web_search.txt +18 -18
  51. package/dist/core/tools/provider/write_file.txt +11 -11
  52. package/dist/gateway/api/skill/detail_skill.d.ts.map +1 -1
  53. package/dist/gateway/api/skill/detail_skill.js +7 -5
  54. package/dist/gateway/api/skill/detail_skill.js.map +1 -1
  55. package/dist/gateway/cli/commands.js +18 -18
  56. package/dist/modules/ai/agents/chat/prompts/role.txt +30 -30
  57. package/dist/modules/ai/agents/code/prompts/role.txt +50 -50
  58. package/dist/modules/ai/agents/mem/prompts/role.txt +35 -35
  59. package/dist/modules/ai/agents/skill/prompts/role.txt +61 -61
  60. package/dist/modules/ai/agents/task/prompts/role.txt +50 -50
  61. package/dist/modules/ai/ai-log.service.js +10 -10
  62. package/dist/modules/ai/provider/openai/prompt/role.txt +51 -51
  63. package/dist/modules/ai/summarizer/summarizer.prompts.js +30 -30
  64. package/dist/modules/config/config.service.js +5 -5
  65. package/dist/modules/db/db.service.js +252 -252
  66. package/dist/modules/email/email.config.repository.js +1 -1
  67. package/dist/modules/repositories/project.repository.d.ts +28 -0
  68. package/dist/modules/repositories/project.repository.d.ts.map +1 -0
  69. package/dist/modules/repositories/project.repository.js +47 -0
  70. package/dist/modules/repositories/project.repository.js.map +1 -0
  71. package/dist/modules/scheduler/task-log.service.js +1 -1
  72. package/dist/modules/services/project/project.service.d.ts +14 -0
  73. package/dist/modules/services/project/project.service.d.ts.map +1 -0
  74. package/dist/modules/services/project/project.service.js +47 -0
  75. package/dist/modules/services/project/project.service.js.map +1 -0
  76. package/dist/modules/skill/skill.txt +36 -36
  77. package/dist/modules/spec/spec.injector.js +24 -24
  78. package/dist/modules/tools/provider/bash.txt +47 -47
  79. package/dist/modules/tools/provider/code_search.txt +20 -20
  80. package/dist/modules/tools/provider/edit_file.txt +13 -13
  81. package/dist/modules/tools/provider/glob.txt +12 -12
  82. package/dist/modules/tools/provider/grep.txt +14 -14
  83. package/dist/modules/tools/provider/lsp.txt +19 -19
  84. package/dist/modules/tools/provider/memory.txt +21 -21
  85. package/dist/modules/tools/provider/read_file.txt +17 -17
  86. package/dist/modules/tools/provider/todo_read.txt +16 -16
  87. package/dist/modules/tools/provider/todo_write.txt +48 -48
  88. package/dist/modules/tools/provider/web_fetch.txt +17 -17
  89. package/dist/modules/tools/provider/web_search.txt +18 -18
  90. package/dist/modules/tools/provider/write_file.txt +11 -11
  91. package/dist/modules/waf-gateway/waf-gateway.module.js +8 -8
  92. package/dist/modules/waf-gateway/waf-gateway.service.js +12 -12
  93. package/dist/repositories/project.repository.d.ts +28 -0
  94. package/dist/repositories/project.repository.d.ts.map +1 -0
  95. package/dist/repositories/project.repository.js +47 -0
  96. package/dist/repositories/project.repository.js.map +1 -0
  97. package/dist/repository/ai_log.repository.js +1 -1
  98. package/dist/repository/config.repository.js +5 -5
  99. package/dist/repository/email.repository.js +1 -1
  100. package/dist/repository/memory.repository.js +1 -1
  101. package/dist/repository/project.repository.js +3 -3
  102. package/dist/repository/scheduler.repository.js +2 -2
  103. package/dist/repository/session.repository.js +1 -1
  104. package/dist/repository/zihao-config.repository.js +1 -1
  105. package/dist/services/skill/skill.tool.d.ts.map +1 -1
  106. package/dist/services/skill/skill.tool.js +6 -1
  107. package/dist/services/skill/skill.tool.js.map +1 -1
  108. package/dist/services/skill/skill.txt +36 -36
  109. package/package.json +76 -76
  110. package/scripts/copy-txt.js +31 -31
  111. package/scripts/ink-scroll-demo.tsx +147 -147
  112. package/tsconfig.test.json +9 -9
  113. package/web/dist/assets/{ConfirmDialog-B2bVsPFI.js → ConfirmDialog-B03GcCHQ.js} +1 -1
  114. package/web/dist/assets/PcLayout-CYW3zqcs.css +1 -0
  115. package/web/dist/assets/{PcLayout-DeXNBHu2.js → PcLayout-ZTdJNg7G.js} +1 -1
  116. package/web/dist/assets/{aiLogsView-JvjhLmyo.js → aiLogsView-Bt8Xg1Qx.js} +1 -1
  117. package/web/dist/assets/{cssMode-sYHhwUZh.js → cssMode-CBb6D87U.js} +1 -1
  118. package/web/dist/assets/{customActionsView-Cvmzxvl4.js → customActionsView-DdjnHzwm.js} +1 -1
  119. package/web/dist/assets/deployView-CD7ji9IS.css +1 -0
  120. package/web/dist/assets/{deployView-CjV4ySrf.js → deployView-Cj51_Job.js} +1 -1
  121. package/web/dist/assets/designView-C3pSX4nP.css +1 -0
  122. package/web/dist/assets/designView-RT8tKEN9.js +18 -0
  123. package/web/dist/assets/devWorkflowView-BTozmaiN.js +36 -0
  124. package/web/dist/assets/devWorkflowView-DYhIfbCB.css +1 -0
  125. package/web/dist/assets/devWorkflowViewApp-CErbhC2s.css +1 -0
  126. package/web/dist/assets/{devWorkflowViewApp-DPlFgiS_.js → devWorkflowViewApp-DLslXEq9.js} +3 -3
  127. package/web/dist/assets/{fileZihao-DvZmuTYu.js → fileZihao-CtZ4bUIH.js} +1 -1
  128. package/web/dist/assets/{freemarker2-DTyAQBBj.js → freemarker2-CX3jc3l2.js} +1 -1
  129. package/web/dist/assets/gitChanges-D6QxPcii.css +1 -0
  130. package/web/dist/assets/{gitChanges-Cpf4HHoF.js → gitChanges-DFRvzL5I.js} +1 -1
  131. package/web/dist/assets/gitChangesApp-Bjn-MCmr.css +1 -0
  132. package/web/dist/assets/{gitChangesApp-BOURDd_l.js → gitChangesApp-ZI7-V8oB.js} +2 -2
  133. package/web/dist/assets/{handlebars-DiWIXxOG.js → handlebars-CTaQD6FN.js} +1 -1
  134. package/web/dist/assets/{html-BCQWkFzH.js → html-BruJsfYv.js} +1 -1
  135. package/web/dist/assets/{htmlMode-BbMA34cR.js → htmlMode-wewroXLr.js} +1 -1
  136. package/web/dist/assets/{index-C_tz4Wda.css → index-C0xmVTIn.css} +1 -1
  137. package/web/dist/assets/{index-C7axH05o.js → index-Cn73hS12.js} +9 -9
  138. package/web/dist/assets/{javascript-By4MYHaO.js → javascript-B4ku8P1-.js} +1 -1
  139. package/web/dist/assets/{jsonMode-5JIz7tDN.js → jsonMode-BIvVuBMG.js} +1 -1
  140. package/web/dist/assets/{liquid-BQBVii4f.js → liquid-Bo3G0Ep7.js} +1 -1
  141. package/web/dist/assets/{mdx-Cwk7nqzM.js → mdx-Duv0ylZz.js} +1 -1
  142. package/web/dist/assets/{mediaChat-DivTDoIv.js → mediaChat-RT7iqqYb.js} +1 -1
  143. package/web/dist/assets/{python-L_kGfe1T.js → python-CEhCctGm.js} +1 -1
  144. package/web/dist/assets/{razor-XGuHliMI.js → razor-DPK8nTD7.js} +1 -1
  145. package/web/dist/assets/{taskView-BcJ3LAxp.js → taskView-sOyebRqn.js} +1 -1
  146. package/web/dist/assets/{terminalView-q-UKzK0M.js → terminalView-GTYtDlus.js} +2 -2
  147. package/web/dist/assets/{terminalView-CQVYh6D3.css → terminalView-eZ0agsPP.css} +1 -1
  148. package/web/dist/assets/{tsMode-SuiD3mJa.js → tsMode-BZvUU1nf.js} +1 -1
  149. package/web/dist/assets/{typescript-DJcyqRjT.js → typescript-CmEn-k1B.js} +1 -1
  150. package/web/dist/assets/{wikiView-ygHSGyPp.css → wikiView-C-oqMnJM.css} +1 -1
  151. package/web/dist/assets/{wikiView-B3GIPUlD.js → wikiView-CRjg-cZ8.js} +1 -1
  152. package/web/dist/assets/{xml-DQgCzk55.js → xml-bjvdKeyy.js} +1 -1
  153. package/web/dist/assets/{yaml-DBdEYBPA.js → yaml-N5RXWxJk.js} +1 -1
  154. package/web/dist/index.html +2 -2
  155. package/web/package.json +28 -28
  156. package/dist/modules/ai/react/index.d.ts +0 -5
  157. package/dist/modules/ai/react/index.d.ts.map +0 -1
  158. package/dist/modules/ai/react/index.js +0 -4
  159. package/dist/modules/ai/react/index.js.map +0 -1
  160. package/dist/modules/ai/react/prompt/role.txt +0 -51
  161. package/dist/modules/ai/react/provider.parser.d.ts +0 -20
  162. package/dist/modules/ai/react/provider.parser.d.ts.map +0 -1
  163. package/dist/modules/ai/react/provider.parser.js +0 -88
  164. package/dist/modules/ai/react/provider.parser.js.map +0 -1
  165. package/dist/modules/ai/react/react.parser.d.ts +0 -80
  166. package/dist/modules/ai/react/react.parser.d.ts.map +0 -1
  167. package/dist/modules/ai/react/react.parser.js +0 -365
  168. package/dist/modules/ai/react/react.parser.js.map +0 -1
  169. package/dist/modules/ai/react/react.prompts.d.ts +0 -26
  170. package/dist/modules/ai/react/react.prompts.d.ts.map +0 -1
  171. package/dist/modules/ai/react/react.prompts.js +0 -170
  172. package/dist/modules/ai/react/react.prompts.js.map +0 -1
  173. package/dist/modules/ai/react/react.types.d.ts +0 -50
  174. package/dist/modules/ai/react/react.types.d.ts.map +0 -1
  175. package/dist/modules/ai/react/react.types.js +0 -2
  176. package/dist/modules/ai/react/react.types.js.map +0 -1
  177. package/dist/modules/ai/react/react.validator.d.ts +0 -14
  178. package/dist/modules/ai/react/react.validator.d.ts.map +0 -1
  179. package/dist/modules/ai/react/react.validator.js +0 -53
  180. package/dist/modules/ai/react/react.validator.js.map +0 -1
  181. package/dist/modules/ai/react.agent.d.ts +0 -82
  182. package/dist/modules/ai/react.agent.d.ts.map +0 -1
  183. package/dist/modules/ai/react.agent.js +0 -220
  184. package/dist/modules/ai/react.agent.js.map +0 -1
  185. package/dist/modules/skill/skill.service.d.ts +0 -72
  186. package/dist/modules/skill/skill.service.d.ts.map +0 -1
  187. package/dist/modules/skill/skill.service.js +0 -283
  188. package/dist/modules/skill/skill.service.js.map +0 -1
  189. package/dist/modules/tools/builtin/bash.d.ts +0 -3
  190. package/dist/modules/tools/builtin/bash.d.ts.map +0 -1
  191. package/dist/modules/tools/builtin/bash.js +0 -126
  192. package/dist/modules/tools/builtin/bash.js.map +0 -1
  193. package/dist/modules/tools/builtin/bash.tool.d.ts +0 -6
  194. package/dist/modules/tools/builtin/bash.tool.d.ts.map +0 -1
  195. package/dist/modules/tools/builtin/bash.tool.js +0 -52
  196. package/dist/modules/tools/builtin/bash.tool.js.map +0 -1
  197. package/dist/modules/tools/builtin/bash.txt +0 -69
  198. package/dist/modules/tools/builtin/code_search.d.ts +0 -3
  199. package/dist/modules/tools/builtin/code_search.d.ts.map +0 -1
  200. package/dist/modules/tools/builtin/code_search.js +0 -86
  201. package/dist/modules/tools/builtin/code_search.js.map +0 -1
  202. package/dist/modules/tools/builtin/code_search.txt +0 -41
  203. package/dist/modules/tools/builtin/edit-file.tool.d.ts +0 -6
  204. package/dist/modules/tools/builtin/edit-file.tool.d.ts.map +0 -1
  205. package/dist/modules/tools/builtin/edit-file.tool.js +0 -58
  206. package/dist/modules/tools/builtin/edit-file.tool.js.map +0 -1
  207. package/dist/modules/tools/builtin/edit_file.d.ts +0 -3
  208. package/dist/modules/tools/builtin/edit_file.d.ts.map +0 -1
  209. package/dist/modules/tools/builtin/edit_file.js +0 -105
  210. package/dist/modules/tools/builtin/edit_file.js.map +0 -1
  211. package/dist/modules/tools/builtin/edit_file.txt +0 -61
  212. package/dist/modules/tools/builtin/glob.d.ts +0 -3
  213. package/dist/modules/tools/builtin/glob.d.ts.map +0 -1
  214. package/dist/modules/tools/builtin/glob.js +0 -85
  215. package/dist/modules/tools/builtin/glob.js.map +0 -1
  216. package/dist/modules/tools/builtin/glob.tool.d.ts +0 -6
  217. package/dist/modules/tools/builtin/glob.tool.d.ts.map +0 -1
  218. package/dist/modules/tools/builtin/glob.tool.js +0 -81
  219. package/dist/modules/tools/builtin/glob.tool.js.map +0 -1
  220. package/dist/modules/tools/builtin/glob.txt +0 -33
  221. package/dist/modules/tools/builtin/grep.d.ts +0 -3
  222. package/dist/modules/tools/builtin/grep.d.ts.map +0 -1
  223. package/dist/modules/tools/builtin/grep.js +0 -94
  224. package/dist/modules/tools/builtin/grep.js.map +0 -1
  225. package/dist/modules/tools/builtin/grep.tool.d.ts +0 -6
  226. package/dist/modules/tools/builtin/grep.tool.d.ts.map +0 -1
  227. package/dist/modules/tools/builtin/grep.tool.js +0 -96
  228. package/dist/modules/tools/builtin/grep.tool.js.map +0 -1
  229. package/dist/modules/tools/builtin/grep.txt +0 -37
  230. package/dist/modules/tools/builtin/index.d.ts +0 -8
  231. package/dist/modules/tools/builtin/index.d.ts.map +0 -1
  232. package/dist/modules/tools/builtin/index.js +0 -80
  233. package/dist/modules/tools/builtin/index.js.map +0 -1
  234. package/dist/modules/tools/builtin/lsp.d.ts +0 -7
  235. package/dist/modules/tools/builtin/lsp.d.ts.map +0 -1
  236. package/dist/modules/tools/builtin/lsp.js +0 -126
  237. package/dist/modules/tools/builtin/lsp.js.map +0 -1
  238. package/dist/modules/tools/builtin/lsp.txt +0 -45
  239. package/dist/modules/tools/builtin/memory.d.ts +0 -3
  240. package/dist/modules/tools/builtin/memory.d.ts.map +0 -1
  241. package/dist/modules/tools/builtin/memory.js +0 -77
  242. package/dist/modules/tools/builtin/memory.js.map +0 -1
  243. package/dist/modules/tools/builtin/memory.txt +0 -58
  244. package/dist/modules/tools/builtin/read-file.tool.d.ts +0 -6
  245. package/dist/modules/tools/builtin/read-file.tool.d.ts.map +0 -1
  246. package/dist/modules/tools/builtin/read-file.tool.js +0 -46
  247. package/dist/modules/tools/builtin/read-file.tool.js.map +0 -1
  248. package/dist/modules/tools/builtin/read_file.d.ts +0 -3
  249. package/dist/modules/tools/builtin/read_file.d.ts.map +0 -1
  250. package/dist/modules/tools/builtin/read_file.js +0 -107
  251. package/dist/modules/tools/builtin/read_file.js.map +0 -1
  252. package/dist/modules/tools/builtin/read_file.txt +0 -38
  253. package/dist/modules/tools/builtin/todo_read.d.ts +0 -6
  254. package/dist/modules/tools/builtin/todo_read.d.ts.map +0 -1
  255. package/dist/modules/tools/builtin/todo_read.js +0 -25
  256. package/dist/modules/tools/builtin/todo_read.js.map +0 -1
  257. package/dist/modules/tools/builtin/todo_read.txt +0 -34
  258. package/dist/modules/tools/builtin/todo_write.d.ts +0 -6
  259. package/dist/modules/tools/builtin/todo_write.d.ts.map +0 -1
  260. package/dist/modules/tools/builtin/todo_write.js +0 -46
  261. package/dist/modules/tools/builtin/todo_write.js.map +0 -1
  262. package/dist/modules/tools/builtin/todo_write.txt +0 -67
  263. package/dist/modules/tools/builtin/web_fetch.d.ts +0 -3
  264. package/dist/modules/tools/builtin/web_fetch.d.ts.map +0 -1
  265. package/dist/modules/tools/builtin/web_fetch.js +0 -52
  266. package/dist/modules/tools/builtin/web_fetch.js.map +0 -1
  267. package/dist/modules/tools/builtin/web_fetch.txt +0 -38
  268. package/dist/modules/tools/builtin/web_search.d.ts +0 -3
  269. package/dist/modules/tools/builtin/web_search.d.ts.map +0 -1
  270. package/dist/modules/tools/builtin/web_search.js +0 -100
  271. package/dist/modules/tools/builtin/web_search.js.map +0 -1
  272. package/dist/modules/tools/builtin/web_search.txt +0 -43
  273. package/dist/modules/tools/builtin/write-file.tool.d.ts +0 -6
  274. package/dist/modules/tools/builtin/write-file.tool.d.ts.map +0 -1
  275. package/dist/modules/tools/builtin/write-file.tool.js +0 -38
  276. package/dist/modules/tools/builtin/write-file.tool.js.map +0 -1
  277. package/dist/modules/tools/builtin/write_file.d.ts +0 -3
  278. package/dist/modules/tools/builtin/write_file.d.ts.map +0 -1
  279. package/dist/modules/tools/builtin/write_file.js +0 -61
  280. package/dist/modules/tools/builtin/write_file.js.map +0 -1
  281. package/dist/modules/tools/builtin/write_file.txt +0 -58
  282. package/dist/modules/tools/provider/openai/tools.d.ts +0 -3
  283. package/dist/modules/tools/provider/openai/tools.d.ts.map +0 -1
  284. package/dist/modules/tools/provider/openai/tools.js +0 -212
  285. package/dist/modules/tools/provider/openai/tools.js.map +0 -1
  286. package/dist/modules/tools/provider/skill.d.ts +0 -6
  287. package/dist/modules/tools/provider/skill.d.ts.map +0 -1
  288. package/dist/modules/tools/provider/skill.js +0 -64
  289. package/dist/modules/tools/provider/skill.js.map +0 -1
  290. package/web/dist/assets/PcLayout-L-XuK1oQ.css +0 -1
  291. package/web/dist/assets/deployView-hCh3_M8H.css +0 -1
  292. package/web/dist/assets/designView-CqZ75hOS.css +0 -1
  293. package/web/dist/assets/designView-DrUNRVEE.js +0 -18
  294. package/web/dist/assets/devWorkflowView-BpdJTMEb.js +0 -36
  295. package/web/dist/assets/devWorkflowView-D7EKjoLj.css +0 -1
  296. package/web/dist/assets/devWorkflowViewApp-BYYMIdCm.css +0 -1
  297. package/web/dist/assets/gitChanges-BYj-Y2K-.css +0 -1
  298. package/web/dist/assets/gitChangesApp-Btw-XKcP.css +0 -1
@@ -1,36 +1,36 @@
1
- ### 工具skill
2
- 加载一个专门的 Skill(技能),该技能提供特定领域的指令和工作流程。
3
-
4
- **功能**:
5
- - 当你识别到任务匹配以下列出的可用技能时,使用此工具加载完整的技能说明
6
- - Skill 会将详细的指令、工作流程和访问绑定资源(脚本、参考、模板)注入对话上下文
7
- - 工具输出包含一个 `<skill_content name="...">` 块,其中包含加载的内容
8
-
9
- **使用说明**:
10
- - 当你识别到任务匹配某个可用 Skill 时,使用此工具加载该技能的完整说明
11
- - 技能会注入详细的指令、工作流程,以及对捆绑资源(脚本、参考、模板)的访问
12
- - 工具输出包含一个 `<skill_content name="...">` 块,其中包含加载的内容
13
- - 该技能的相对路径(如 scripts/、reference/)是相对于技能的基础目录
14
-
15
- **当前可用的 Skills**:
16
- Invoke this tool to load a skill when a task matches one of the available skills listed above.
17
-
18
- 举例:
19
- ```xml
20
- <react>
21
- <thought>加载代码审查技能</thought>
22
- <action>
23
- <action_name>skill</action_name>
24
- <action_input>
25
- <name>code-review</name>
26
- </action_input>
27
- </action>
28
- <keep_context>true</keep_context>
29
- </react>
30
- ```
31
-
32
- 参数说明:
33
-
34
- | 字段 | 类型 | 说明 |
35
- |------|------|
36
- | `name` | string | Skill 的名称(必需) |
1
+ ### 工具skill
2
+ 加载一个专门的 Skill(技能),该技能提供特定领域的指令和工作流程。
3
+
4
+ **功能**:
5
+ - 当你识别到任务匹配以下列出的可用技能时,使用此工具加载完整的技能说明
6
+ - Skill 会将详细的指令、工作流程和访问绑定资源(脚本、参考、模板)注入对话上下文
7
+ - 工具输出包含一个 `<skill_content name="...">` 块,其中包含加载的内容
8
+
9
+ **使用说明**:
10
+ - 当你识别到任务匹配某个可用 Skill 时,使用此工具加载该技能的完整说明
11
+ - 技能会注入详细的指令、工作流程,以及对捆绑资源(脚本、参考、模板)的访问
12
+ - 工具输出包含一个 `<skill_content name="...">` 块,其中包含加载的内容
13
+ - 该技能的相对路径(如 scripts/、reference/)是相对于技能的基础目录
14
+
15
+ **当前可用的 Skills**:
16
+ Invoke this tool to load a skill when a task matches one of the available skills listed above.
17
+
18
+ 举例:
19
+ ```xml
20
+ <react>
21
+ <thought>加载代码审查技能</thought>
22
+ <action>
23
+ <action_name>skill</action_name>
24
+ <action_input>
25
+ <name>code-review</name>
26
+ </action_input>
27
+ </action>
28
+ <keep_context>true</keep_context>
29
+ </react>
30
+ ```
31
+
32
+ 参数说明:
33
+
34
+ | 字段 | 类型 | 说明 |
35
+ |------|------|
36
+ | `name` | string | Skill 的名称(必需) |
package/package.json CHANGED
@@ -1,76 +1,76 @@
1
- {
2
- "name": "tianxincode",
3
- "version": "1.0.48",
4
- "type": "module",
5
- "description": "AI Coding Assistant",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "bin": {
9
- "txcode": "dist/index.js"
10
- },
11
- "scripts": {
12
- "build": "tsc && tsc-alias && npm run copy-txt",
13
- "copy-txt": "node scripts/copy-txt.js",
14
- "dev": "tsx src/index.ts",
15
- "demo:ink-scroll": "tsx scripts/ink-scroll-demo.tsx",
16
- "start": "node dist/index.js",
17
- "start:web": "node dist/index.js web",
18
- "web:dev": "cd web && npm run dev",
19
- "web:build": "cd web && npm install && npm run build",
20
- "test": "jest",
21
- "test:coverage": "jest --coverage"
22
- },
23
- "keywords": [
24
- "ai",
25
- "coding",
26
- "assistant"
27
- ],
28
- "author": "",
29
- "license": "ISC",
30
- "dependencies": {
31
- "@lydell/node-pty": "^1.0.0",
32
- "@types/diff": "^7.0.2",
33
- "@types/nodemailer": "^7.0.11",
34
- "cors": "^2.8.6",
35
- "diff": "^7.0.0",
36
- "dingtalk-stream-sdk-nodejs": "^2.0.4",
37
- "express": "^5.2.1",
38
- "ink": "^6.8.0",
39
- "js-yaml": "^4.1.1",
40
- "multer": "^2.1.1",
41
- "node-cron": "^4.2.1",
42
- "nodemailer": "^8.0.4",
43
- "openai": "^5.5.1",
44
- "react": "^19.2.4",
45
- "react-dom": "^19.2.4",
46
- "sql.js": "^1.12.0",
47
- "undici": "^7.25.0",
48
- "uuid": "^9.0.1",
49
- "which": "^6.0.1",
50
- "ws": "^8.20.0",
51
- "xml2js": "^0.6.2",
52
- "yaml": "^2.8.3"
53
- },
54
- "devDependencies": {
55
- "@types/cors": "^2.8.19",
56
- "@types/express": "^5.0.6",
57
- "@types/jest": "^30.0.0",
58
- "@types/js-yaml": "^4.0.9",
59
- "@types/multer": "^2.1.0",
60
- "@types/node": "^25.5.0",
61
- "@types/node-cron": "^3.0.11",
62
- "@types/react": "^19.2.14",
63
- "@types/react-dom": "^19.2.3",
64
- "@types/sql.js": "^1.4.9",
65
- "@types/uuid": "^10.0.0",
66
- "@types/which": "^3.0.4",
67
- "@types/ws": "^8.18.1",
68
- "@types/xml2js": "^0.4.14",
69
- "jest": "^30.3.0",
70
- "ts-jest": "^29.4.6",
71
- "ts-node": "^10.9.2",
72
- "tsc-alias": "^1.8.10",
73
- "tsx": "^4.21.0",
74
- "typescript": "^5.9.3"
75
- }
76
- }
1
+ {
2
+ "name": "tianxincode",
3
+ "version": "1.0.49",
4
+ "type": "module",
5
+ "description": "AI Coding Assistant",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "txcode": "dist/index.js"
10
+ },
11
+ "scripts": {
12
+ "build": "tsc && tsc-alias && npm run copy-txt",
13
+ "copy-txt": "node scripts/copy-txt.js",
14
+ "dev": "tsx src/index.ts",
15
+ "demo:ink-scroll": "tsx scripts/ink-scroll-demo.tsx",
16
+ "start": "node dist/index.js",
17
+ "start:web": "node dist/index.js web",
18
+ "web:dev": "cd web && npm run dev",
19
+ "web:build": "cd web && npm install && npm run build",
20
+ "test": "jest",
21
+ "test:coverage": "jest --coverage"
22
+ },
23
+ "keywords": [
24
+ "ai",
25
+ "coding",
26
+ "assistant"
27
+ ],
28
+ "author": "",
29
+ "license": "ISC",
30
+ "dependencies": {
31
+ "@lydell/node-pty": "^1.0.0",
32
+ "@types/diff": "^7.0.2",
33
+ "@types/nodemailer": "^7.0.11",
34
+ "cors": "^2.8.6",
35
+ "diff": "^7.0.0",
36
+ "dingtalk-stream-sdk-nodejs": "^2.0.4",
37
+ "express": "^5.2.1",
38
+ "ink": "^6.8.0",
39
+ "js-yaml": "^4.1.1",
40
+ "multer": "^2.1.1",
41
+ "node-cron": "^4.2.1",
42
+ "nodemailer": "^8.0.4",
43
+ "openai": "^5.5.1",
44
+ "react": "^19.2.4",
45
+ "react-dom": "^19.2.4",
46
+ "sql.js": "^1.12.0",
47
+ "undici": "^7.25.0",
48
+ "uuid": "^9.0.1",
49
+ "which": "^6.0.1",
50
+ "ws": "^8.20.0",
51
+ "xml2js": "^0.6.2",
52
+ "yaml": "^2.8.3"
53
+ },
54
+ "devDependencies": {
55
+ "@types/cors": "^2.8.19",
56
+ "@types/express": "^5.0.6",
57
+ "@types/jest": "^30.0.0",
58
+ "@types/js-yaml": "^4.0.9",
59
+ "@types/multer": "^2.1.0",
60
+ "@types/node": "^25.5.0",
61
+ "@types/node-cron": "^3.0.11",
62
+ "@types/react": "^19.2.14",
63
+ "@types/react-dom": "^19.2.3",
64
+ "@types/sql.js": "^1.4.9",
65
+ "@types/uuid": "^10.0.0",
66
+ "@types/which": "^3.0.4",
67
+ "@types/ws": "^8.18.1",
68
+ "@types/xml2js": "^0.4.14",
69
+ "jest": "^30.3.0",
70
+ "ts-jest": "^29.4.6",
71
+ "ts-node": "^10.9.2",
72
+ "tsc-alias": "^1.8.10",
73
+ "tsx": "^4.21.0",
74
+ "typescript": "^5.9.3"
75
+ }
76
+ }
@@ -1,31 +1,31 @@
1
- import { readdirSync, mkdirSync, copyFileSync } from 'fs';
2
- import { join } from 'path';
3
-
4
- function copyDirFiles(srcDir, dstDir, filter) {
5
- readdirSync(srcDir).filter(filter).forEach(f => {
6
- mkdirSync(dstDir, { recursive: true });
7
- copyFileSync(join(srcDir, f), join(dstDir, f));
8
- });
9
- }
10
-
11
- function copyFile(srcPath, dstPath) {
12
- const dstDir = dstPath.substring(0, dstPath.lastIndexOf('/'));
13
- mkdirSync(dstDir, { recursive: true });
14
- copyFileSync(srcPath, dstPath);
15
- }
16
-
17
- copyDirFiles('src/core/tools/provider', 'dist/core/tools/provider', f => f.endsWith('.txt'));
18
- copyFile('src/services/skill/skill.txt', 'dist/services/skill/skill.txt');
19
- copyFile('src/core/ai/agents/common/prompt/role.txt', 'dist/core/ai/agents/common/prompt/role.txt');
20
-
21
- const agents = ['code', 'chat', 'task', 'mem', 'skill', 'caller', 'summarizer', 'design'];
22
- agents.forEach(agent => {
23
- copyFile(
24
- `src/core/ai/agents/${agent}/prompts/role.txt`,
25
- `dist/core/ai/agents/${agent}/prompts/role.txt`
26
- );
27
- });
28
-
29
- copyFile('src/core/ai/agents/dream/prompts/init.txt', 'dist/core/ai/agents/dream/prompts/init.txt');
30
-
31
- console.log('Copied .txt files to dist');
1
+ import { readdirSync, mkdirSync, copyFileSync } from 'fs';
2
+ import { join } from 'path';
3
+
4
+ function copyDirFiles(srcDir, dstDir, filter) {
5
+ readdirSync(srcDir).filter(filter).forEach(f => {
6
+ mkdirSync(dstDir, { recursive: true });
7
+ copyFileSync(join(srcDir, f), join(dstDir, f));
8
+ });
9
+ }
10
+
11
+ function copyFile(srcPath, dstPath) {
12
+ const dstDir = dstPath.substring(0, dstPath.lastIndexOf('/'));
13
+ mkdirSync(dstDir, { recursive: true });
14
+ copyFileSync(srcPath, dstPath);
15
+ }
16
+
17
+ copyDirFiles('src/core/tools/provider', 'dist/core/tools/provider', f => f.endsWith('.txt'));
18
+ copyFile('src/services/skill/skill.txt', 'dist/services/skill/skill.txt');
19
+ copyFile('src/core/ai/agents/common/prompt/role.txt', 'dist/core/ai/agents/common/prompt/role.txt');
20
+
21
+ const agents = ['code', 'chat', 'task', 'mem', 'skill', 'caller', 'summarizer', 'design'];
22
+ agents.forEach(agent => {
23
+ copyFile(
24
+ `src/core/ai/agents/${agent}/prompts/role.txt`,
25
+ `dist/core/ai/agents/${agent}/prompts/role.txt`
26
+ );
27
+ });
28
+
29
+ copyFile('src/core/ai/agents/dream/prompts/init.txt', 'dist/core/ai/agents/dream/prompts/init.txt');
30
+
31
+ console.log('Copied .txt files to dist');
@@ -1,147 +1,147 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Ink Static 模式 demo:上 Logo / 中历史消息(Static) / 下输入框
4
- *
5
- * - 历史消息使用 Ink 的 Static 渲染。
6
- * - 回车:输入追加到历史区(Static 仅新增这一条)。
7
- * - q / Esc:退出
8
- *
9
- * 运行:npm run demo:ink-scroll
10
- */
11
-
12
- import React, { useEffect, useState } from 'react';
13
- import { Box, Static, Text, render, useApp, useInput, useStdout } from 'ink';
14
-
15
- const LOGO_LINES = 6;
16
- const FOOTER_LINES = 3;
17
-
18
- interface HistoryItem {
19
- id: string;
20
- text: string;
21
- }
22
-
23
- export function InkScrollDemoApp() {
24
- const { exit } = useApp();
25
- const { stdout } = useStdout();
26
-
27
- const [terminalSize, setTerminalSize] = useState(() => ({
28
- rows: stdout.rows || 24,
29
- cols: stdout.columns || 80,
30
- }));
31
-
32
- useEffect(() => {
33
- const onResize = () => {
34
- setTerminalSize({
35
- rows: stdout.rows || 24,
36
- cols: stdout.columns || 80,
37
- });
38
- };
39
- stdout.on('resize', onResize);
40
- return () => {
41
- stdout.off('resize', onResize);
42
- };
43
- }, [stdout]);
44
-
45
- const terminalRows = terminalSize.rows;
46
- const terminalCols = terminalSize.cols;
47
- const historyViewportLines = 30;
48
-
49
- const [history, setHistory] = useState<HistoryItem[]>(() => [
50
- { id: 'boot-1', text: '欢迎使用 Static demo:回车会把输入追加到历史。' },
51
- { id: 'boot-2', text: '你可以持续输入,观察输入框更新时历史不重绘。' },
52
- ]);
53
- const logoStaticItems: HistoryItem[] = [
54
- { id: 'logo-1', text: '╔══════════════════════════════════╗' },
55
- { id: 'logo-2', text: '║ INK LAYOUT DEMO ║' },
56
- { id: 'logo-3', text: '║ Logo / History / Input ║' },
57
- { id: 'logo-4', text: '╚══════════════════════════════════╝' },
58
- ];
59
- const [input, setInput] = useState('');
60
- const [cursorPosition, setCursorPosition] = useState(0);
61
-
62
- useInput((chunk, key) => {
63
- const text = typeof chunk === 'string' ? chunk : '';
64
- const keyAny = key as { leftArrow?: boolean; rightArrow?: boolean };
65
-
66
- if (key.escape || (text === 'q' && !key.ctrl && !key.meta)) {
67
- exit();
68
- return;
69
- }
70
-
71
- if (key.return) {
72
- const line = input.trim();
73
- if (line) {
74
- const id = `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
75
- setHistory(prev => [...prev, { id, text: line }]);
76
- }
77
- setInput('');
78
- setCursorPosition(0);
79
- return;
80
- }
81
-
82
- if (key.backspace || key.delete) {
83
- if (cursorPosition > 0) {
84
- const next = input.slice(0, cursorPosition - 1) + input.slice(cursorPosition);
85
- setInput(next);
86
- setCursorPosition(c => c - 1);
87
- }
88
- return;
89
- }
90
-
91
- if (keyAny.leftArrow) {
92
- setCursorPosition(c => Math.max(0, c - 1));
93
- return;
94
- }
95
- if (keyAny.rightArrow) {
96
- setCursorPosition(c => Math.min(input.length, c + 1));
97
- return;
98
- }
99
-
100
- if (text && !key.ctrl && !key.meta) {
101
- const next = input.slice(0, cursorPosition) + text + input.slice(cursorPosition);
102
- setInput(next);
103
- setCursorPosition(cursorPosition + text.length);
104
- }
105
- });
106
-
107
- return (
108
- <Box flexDirection="column" width={terminalCols} height={5}>
109
- {/* 顶部 Logo */}
110
-
111
-
112
- {/* 中间历史(Static) */}
113
- <Box flexDirection="column" flexGrow={1} minHeight={0}>
114
- <Static items={logoStaticItems}>
115
- {item => (
116
- <Text key={item.id} bold color="cyan">
117
- {item.text}
118
- </Text>
119
- )}
120
- </Static>
121
- <Static items={history}>
122
- {(item, index) => (
123
- <Text key={item.id}>
124
- <Text dimColor>{String(index + 1).padStart(3, ' ')}. </Text>
125
- <Text>{item.text}</Text>
126
- </Text>
127
- )}
128
- </Static>
129
- </Box>
130
-
131
- {/* 底部输入框 */}
132
- <Box flexDirection="column" flexShrink={0} marginTop={0}>
133
- <Box borderStyle="single" borderColor="gray" paddingX={1}>
134
- <Text dimColor>{'> '}</Text>
135
- <Text>{input.slice(0, cursorPosition)}</Text>
136
- <Text color="cyan">▋</Text>
137
- <Text>{input.slice(cursorPosition)}</Text>
138
- </Box>
139
- <Text dimColor>
140
- Static 历史模式 | 回车追加历史 | q / Esc 退出
141
- </Text>
142
- </Box>
143
- </Box>
144
- );
145
- }
146
-
147
- render(<InkScrollDemoApp />);
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Ink Static 模式 demo:上 Logo / 中历史消息(Static) / 下输入框
4
+ *
5
+ * - 历史消息使用 Ink 的 Static 渲染。
6
+ * - 回车:输入追加到历史区(Static 仅新增这一条)。
7
+ * - q / Esc:退出
8
+ *
9
+ * 运行:npm run demo:ink-scroll
10
+ */
11
+
12
+ import React, { useEffect, useState } from 'react';
13
+ import { Box, Static, Text, render, useApp, useInput, useStdout } from 'ink';
14
+
15
+ const LOGO_LINES = 6;
16
+ const FOOTER_LINES = 3;
17
+
18
+ interface HistoryItem {
19
+ id: string;
20
+ text: string;
21
+ }
22
+
23
+ export function InkScrollDemoApp() {
24
+ const { exit } = useApp();
25
+ const { stdout } = useStdout();
26
+
27
+ const [terminalSize, setTerminalSize] = useState(() => ({
28
+ rows: stdout.rows || 24,
29
+ cols: stdout.columns || 80,
30
+ }));
31
+
32
+ useEffect(() => {
33
+ const onResize = () => {
34
+ setTerminalSize({
35
+ rows: stdout.rows || 24,
36
+ cols: stdout.columns || 80,
37
+ });
38
+ };
39
+ stdout.on('resize', onResize);
40
+ return () => {
41
+ stdout.off('resize', onResize);
42
+ };
43
+ }, [stdout]);
44
+
45
+ const terminalRows = terminalSize.rows;
46
+ const terminalCols = terminalSize.cols;
47
+ const historyViewportLines = 30;
48
+
49
+ const [history, setHistory] = useState<HistoryItem[]>(() => [
50
+ { id: 'boot-1', text: '欢迎使用 Static demo:回车会把输入追加到历史。' },
51
+ { id: 'boot-2', text: '你可以持续输入,观察输入框更新时历史不重绘。' },
52
+ ]);
53
+ const logoStaticItems: HistoryItem[] = [
54
+ { id: 'logo-1', text: '╔══════════════════════════════════╗' },
55
+ { id: 'logo-2', text: '║ INK LAYOUT DEMO ║' },
56
+ { id: 'logo-3', text: '║ Logo / History / Input ║' },
57
+ { id: 'logo-4', text: '╚══════════════════════════════════╝' },
58
+ ];
59
+ const [input, setInput] = useState('');
60
+ const [cursorPosition, setCursorPosition] = useState(0);
61
+
62
+ useInput((chunk, key) => {
63
+ const text = typeof chunk === 'string' ? chunk : '';
64
+ const keyAny = key as { leftArrow?: boolean; rightArrow?: boolean };
65
+
66
+ if (key.escape || (text === 'q' && !key.ctrl && !key.meta)) {
67
+ exit();
68
+ return;
69
+ }
70
+
71
+ if (key.return) {
72
+ const line = input.trim();
73
+ if (line) {
74
+ const id = `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
75
+ setHistory(prev => [...prev, { id, text: line }]);
76
+ }
77
+ setInput('');
78
+ setCursorPosition(0);
79
+ return;
80
+ }
81
+
82
+ if (key.backspace || key.delete) {
83
+ if (cursorPosition > 0) {
84
+ const next = input.slice(0, cursorPosition - 1) + input.slice(cursorPosition);
85
+ setInput(next);
86
+ setCursorPosition(c => c - 1);
87
+ }
88
+ return;
89
+ }
90
+
91
+ if (keyAny.leftArrow) {
92
+ setCursorPosition(c => Math.max(0, c - 1));
93
+ return;
94
+ }
95
+ if (keyAny.rightArrow) {
96
+ setCursorPosition(c => Math.min(input.length, c + 1));
97
+ return;
98
+ }
99
+
100
+ if (text && !key.ctrl && !key.meta) {
101
+ const next = input.slice(0, cursorPosition) + text + input.slice(cursorPosition);
102
+ setInput(next);
103
+ setCursorPosition(cursorPosition + text.length);
104
+ }
105
+ });
106
+
107
+ return (
108
+ <Box flexDirection="column" width={terminalCols} height={5}>
109
+ {/* 顶部 Logo */}
110
+
111
+
112
+ {/* 中间历史(Static) */}
113
+ <Box flexDirection="column" flexGrow={1} minHeight={0}>
114
+ <Static items={logoStaticItems}>
115
+ {item => (
116
+ <Text key={item.id} bold color="cyan">
117
+ {item.text}
118
+ </Text>
119
+ )}
120
+ </Static>
121
+ <Static items={history}>
122
+ {(item, index) => (
123
+ <Text key={item.id}>
124
+ <Text dimColor>{String(index + 1).padStart(3, ' ')}. </Text>
125
+ <Text>{item.text}</Text>
126
+ </Text>
127
+ )}
128
+ </Static>
129
+ </Box>
130
+
131
+ {/* 底部输入框 */}
132
+ <Box flexDirection="column" flexShrink={0} marginTop={0}>
133
+ <Box borderStyle="single" borderColor="gray" paddingX={1}>
134
+ <Text dimColor>{'> '}</Text>
135
+ <Text>{input.slice(0, cursorPosition)}</Text>
136
+ <Text color="cyan">▋</Text>
137
+ <Text>{input.slice(cursorPosition)}</Text>
138
+ </Box>
139
+ <Text dimColor>
140
+ Static 历史模式 | 回车追加历史 | q / Esc 退出
141
+ </Text>
142
+ </Box>
143
+ </Box>
144
+ );
145
+ }
146
+
147
+ render(<InkScrollDemoApp />);
@@ -1,9 +1,9 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "module": "esnext",
5
- "moduleResolution": "bundler",
6
- "isolatedModules": true
7
- },
8
- "include": ["src/**/*", "tests/**/*"]
9
- }
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "moduleResolution": "bundler",
6
+ "isolatedModules": true
7
+ },
8
+ "include": ["src/**/*", "tests/**/*"]
9
+ }
@@ -1 +1 @@
1
- import{n}from"./index-C7axH05o.js";const r={name:"ConfirmDialog",props:{visible:{type:Boolean,default:!1},message:{type:String,default:""}}};var i=function(){var e=this,t=e._self._c;return e.visible?t("div",{staticClass:"fixed inset-0 bg-black/50 flex items-center justify-center z-50"},[t("div",{staticClass:"bg-sidebar border border-border rounded p-4 w-96"},[t("p",{staticClass:"text-gray-200 text-sm mb-4"},[e._v(e._s(e.message))]),t("div",{staticClass:"flex justify-end gap-2"},[t("button",{staticClass:"px-3 py-1 text-xs text-gray-400 hover:text-white",on:{click:function(s){return e.$emit("cancel")}}},[e._v("取消")]),t("button",{staticClass:"px-3 py-1 text-xs bg-red-600 text-white rounded hover:bg-red-700",on:{click:function(s){return e.$emit("confirm")}}},[e._v("确定")])])])]):e._e()},a=[],o=n(r,i,a,!1,null,null);const d=o.exports;export{d as C};
1
+ import{n}from"./index-Cn73hS12.js";const r={name:"ConfirmDialog",props:{visible:{type:Boolean,default:!1},message:{type:String,default:""}}};var i=function(){var e=this,t=e._self._c;return e.visible?t("div",{staticClass:"fixed inset-0 bg-black/50 flex items-center justify-center z-50"},[t("div",{staticClass:"bg-sidebar border border-border rounded p-4 w-96"},[t("p",{staticClass:"text-gray-200 text-sm mb-4"},[e._v(e._s(e.message))]),t("div",{staticClass:"flex justify-end gap-2"},[t("button",{staticClass:"px-3 py-1 text-xs text-gray-400 hover:text-white",on:{click:function(s){return e.$emit("cancel")}}},[e._v("取消")]),t("button",{staticClass:"px-3 py-1 text-xs bg-red-600 text-white rounded hover:bg-red-700",on:{click:function(s){return e.$emit("confirm")}}},[e._v("确定")])])])]):e._e()},a=[],o=n(r,i,a,!1,null,null);const d=o.exports;export{d as C};
@@ -0,0 +1 @@
1
+ .select-project-dialog{display:flex;flex-direction:column;gap:12px}.select-project-dialog+.el-dialog{z-index:2003!important}.select-project-dialog[data-v-e90f8022]{display:flex;gap:8px;flex-wrap:wrap}.file-list-container[data-v-e90f8022]{border:1px solid #ddd;border-radius:4px;max-height:300px;overflow:auto}.current-path[data-v-e90f8022]{padding:8px 12px;background:#f5f5f5;border-bottom:1px solid #ddd;font-size:12px}.path-label[data-v-e90f8022]{color:#666}.path-value[data-v-e90f8022]{color:#333;word-break:break-all}.file-list[data-v-e90f8022]{padding:4px}.file-item[data-v-e90f8022]{display:flex;align-items:center;gap:8px;padding:6px 8px;cursor:pointer;border-radius:4px}.file-item[data-v-e90f8022]:hover{background:#f0f0f0}.file-item.selected[data-v-e90f8022]{background:#e6f7ff;border:1px solid #1890ff}.file-item.parent[data-v-e90f8022]{color:#666}.file-name[data-v-e90f8022]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-tip[data-v-e90f8022]{padding:40px;text-align:center;color:#999}.底部状态栏[data-v-e90f8022]{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f5f5f5;border-radius:4px;font-size:12px}.selected-info[data-v-e90f8022]{color:#333}.project-name-input[data-v-e90f8022]{display:flex;align-items:center;gap:8px}