@waq666/pneuma 0.8.0 → 0.9.2

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 (2841) hide show
  1. package/README.md +97 -23
  2. package/bin/dsc.js +25 -2
  3. package/lib/adapter/transcript.d.ts +94 -1
  4. package/lib/adapter/transcript.js +410 -13
  5. package/lib/boot.js +6 -27
  6. package/lib/contract/approval.d.ts +41 -4
  7. package/lib/contract/fonts.d.ts +101 -0
  8. package/lib/contract/fonts.js +157 -0
  9. package/lib/contract/memory.d.ts +93 -0
  10. package/lib/contract/memory.js +12 -0
  11. package/lib/contract/plugin.d.ts +114 -5
  12. package/lib/contract/remote.d.ts +8 -0
  13. package/lib/contract/remote.js +8 -0
  14. package/lib/contract/runtime.d.ts +240 -11
  15. package/lib/contract/session.d.ts +77 -6
  16. package/lib/contract/settings.d.ts +143 -3
  17. package/lib/contract/snapshot.d.ts +27 -5
  18. package/lib/contract/task.d.ts +38 -2
  19. package/lib/contract/transcript.d.ts +209 -13
  20. package/lib/contract/transcript.js +47 -1
  21. package/lib/contract.d.ts +3 -1
  22. package/lib/contract.js +3 -1
  23. package/lib/core/bytes.d.ts +1 -1
  24. package/lib/core/bytes.js +2 -2
  25. package/lib/core/child-env.d.ts +31 -0
  26. package/lib/core/child-env.js +70 -0
  27. package/lib/core/command-intent.d.ts +121 -0
  28. package/lib/core/command-intent.js +380 -0
  29. package/lib/core/command-policy.js +10 -46
  30. package/lib/core/config-store.js +6 -1
  31. package/lib/core/config.d.ts +98 -0
  32. package/lib/core/config.js +286 -4
  33. package/lib/core/context-injection-report.d.ts +107 -0
  34. package/lib/core/context-injection-report.js +132 -0
  35. package/lib/core/dock-browser.d.ts +30 -1
  36. package/lib/core/dock-browser.js +2 -1
  37. package/lib/core/dock-ops.d.ts +4 -4
  38. package/lib/core/dock-ops.js +2 -2
  39. package/lib/core/dock-session.d.ts +1 -2
  40. package/lib/core/dsh-compat/resolve-hook.d.ts +29 -1
  41. package/lib/core/dsh-compat/resolve-hook.js +272 -15
  42. package/lib/core/dsh-compat/service-map.js +1 -1
  43. package/lib/core/events.d.ts +57 -4
  44. package/lib/core/executable.d.ts +38 -0
  45. package/lib/core/executable.js +115 -0
  46. package/lib/core/git-exec.d.ts +11 -2
  47. package/lib/core/git-exec.js +27 -3
  48. package/lib/core/git-info.d.ts +127 -15
  49. package/lib/core/git-info.js +307 -32
  50. package/lib/core/guard-session.d.ts +50 -0
  51. package/lib/core/guard-session.js +58 -0
  52. package/lib/core/host-browser-link.d.ts +1 -2
  53. package/lib/core/host-methods.d.ts +1 -1
  54. package/lib/core/host-methods.js +15 -1
  55. package/lib/core/http-debug.d.ts +43 -0
  56. package/lib/core/http-debug.js +65 -0
  57. package/lib/core/i18n-text.d.ts +39 -0
  58. package/lib/core/i18n-text.js +50 -0
  59. package/lib/core/i18n.d.ts +28 -0
  60. package/lib/core/i18n.js +109 -0
  61. package/lib/core/image-diet.d.ts +77 -22
  62. package/lib/core/image-diet.js +233 -9
  63. package/lib/core/llm.d.ts +85 -9
  64. package/lib/core/llm.js +152 -22
  65. package/lib/core/lockfile.d.ts +4 -5
  66. package/lib/core/lockfile.js +78 -16
  67. package/lib/core/log-config.d.ts +35 -0
  68. package/lib/core/log-config.js +71 -0
  69. package/lib/core/mention.d.ts +25 -15
  70. package/lib/core/mention.js +153 -32
  71. package/lib/core/migrate.d.ts +18 -0
  72. package/lib/core/native-bridge.d.ts +1 -1
  73. package/lib/core/native-bridge.js +1 -1
  74. package/lib/core/os-lock.d.ts +30 -0
  75. package/lib/core/os-lock.js +232 -0
  76. package/lib/core/path-policy.d.ts +13 -2
  77. package/lib/core/path-policy.js +30 -2
  78. package/lib/core/plugin-bundle.d.ts +90 -8
  79. package/lib/core/plugin-bundle.js +184 -22
  80. package/lib/core/plugin-loader.d.ts +238 -8
  81. package/lib/core/plugin-loader.js +1288 -152
  82. package/lib/core/plugin-locale.d.ts +42 -0
  83. package/lib/core/plugin-locale.js +132 -0
  84. package/lib/core/plugin-npm.d.ts +44 -0
  85. package/lib/core/plugin-npm.js +459 -0
  86. package/lib/core/plugin-patch.d.ts +17 -0
  87. package/lib/core/plugin-patch.js +23 -1
  88. package/lib/core/plugin-registry.d.ts +72 -13
  89. package/lib/core/plugin-registry.js +275 -76
  90. package/lib/core/plugin-watch.d.ts +128 -0
  91. package/lib/core/plugin-watch.js +880 -0
  92. package/lib/core/prefs.d.ts +7 -1
  93. package/lib/core/prefs.js +125 -33
  94. package/lib/core/profile-bootstrap.d.ts +5 -0
  95. package/lib/core/profile-bootstrap.js +33 -0
  96. package/lib/core/profile-dir.js +7 -3
  97. package/lib/core/records.d.ts +1 -1
  98. package/lib/core/records.js +1 -1
  99. package/lib/core/redact.d.ts +20 -0
  100. package/lib/core/redact.js +52 -0
  101. package/lib/core/repeat-reminder.d.ts +152 -0
  102. package/lib/core/repeat-reminder.js +175 -0
  103. package/lib/core/request-invariant.js +1 -1
  104. package/lib/core/schedule/runner.d.ts +18 -2
  105. package/lib/core/schedule/runner.js +50 -15
  106. package/lib/core/session.d.ts +240 -18
  107. package/lib/core/session.js +511 -26
  108. package/lib/core/shell-quote.d.ts +2 -2
  109. package/lib/core/shell-quote.js +2 -2
  110. package/lib/core/skills.d.ts +14 -0
  111. package/lib/core/skills.js +31 -0
  112. package/lib/core/team-board.d.ts +94 -10
  113. package/lib/core/team-board.js +226 -7
  114. package/lib/core/terminal-env.d.ts +18 -4
  115. package/lib/core/terminal-env.js +151 -15
  116. package/lib/core/todo-reminder-cadence.d.ts +86 -0
  117. package/lib/core/todo-reminder-cadence.js +76 -0
  118. package/lib/core/token-estimate.d.ts +1 -1
  119. package/lib/core/token-estimate.js +1 -1
  120. package/lib/core/tool-guards.d.ts +42 -0
  121. package/lib/core/tool-guards.js +43 -1
  122. package/lib/core/tools/command-runner.d.ts +11 -0
  123. package/lib/core/tools/fs-tools.js +6 -0
  124. package/lib/core/tools.d.ts +21 -4
  125. package/lib/core/transcript-text.d.ts +1 -1
  126. package/lib/core/transcript-text.js +1 -1
  127. package/lib/core/ui-boot-source.d.ts +3 -1
  128. package/lib/core/ui-boot-source.js +1 -1
  129. package/lib/core/ui-bundles.d.ts +13 -4
  130. package/lib/core/ui-bundles.js +122 -29
  131. package/lib/core/ui-graph-frames.d.ts +47 -0
  132. package/lib/core/ui-graph-frames.js +54 -0
  133. package/lib/core/ui-hmr.d.ts +1 -1
  134. package/lib/core/ui-manifest.d.ts +224 -0
  135. package/lib/core/ui-manifest.js +185 -0
  136. package/lib/core/ui-methods.d.ts +1 -1
  137. package/lib/core/ui-methods.js +60 -2
  138. package/lib/core/ui-server.d.ts +3 -2
  139. package/lib/core/ui-server.js +18 -18
  140. package/lib/core/usage-log.d.ts +58 -1
  141. package/lib/core/usage-log.js +140 -1
  142. package/lib/headless.js +4 -24
  143. package/lib/host/kernel.d.ts +7 -15
  144. package/lib/host/kernel.js +65 -434
  145. package/lib/host/launch.d.ts +20 -0
  146. package/lib/host/launch.js +48 -0
  147. package/lib/host/startup.d.ts +8 -0
  148. package/lib/host/startup.js +74 -0
  149. package/lib/node_modules/@pneuma/agent/cache-probe.d.ts +1 -0
  150. package/lib/node_modules/@pneuma/agent/cache-probe.js +1 -0
  151. package/lib/node_modules/@pneuma/agent/cordis.patch.yml +4 -0
  152. package/lib/node_modules/@pneuma/agent/index.d.ts +1 -0
  153. package/lib/node_modules/@pneuma/agent/index.js +1 -0
  154. package/lib/node_modules/@pneuma/agent/locale/en.json +4 -0
  155. package/lib/node_modules/@pneuma/agent/package.json +38 -0
  156. package/lib/node_modules/@pneuma/approval/approval.d.ts +1 -0
  157. package/lib/node_modules/@pneuma/approval/approval.js +1 -0
  158. package/lib/node_modules/@pneuma/approval/call-meaning.d.ts +1 -0
  159. package/lib/node_modules/@pneuma/approval/call-meaning.js +1 -0
  160. package/lib/node_modules/@pneuma/approval/cordis.patch.yml +4 -0
  161. package/lib/node_modules/@pneuma/approval/index.d.ts +1 -0
  162. package/lib/node_modules/@pneuma/approval/index.js +1 -0
  163. package/lib/node_modules/@pneuma/approval/locale/en.json +4 -0
  164. package/lib/node_modules/@pneuma/approval/package.json +38 -0
  165. package/lib/node_modules/@pneuma/approval-floor/approval-floor.d.ts +1 -0
  166. package/lib/node_modules/@pneuma/approval-floor/approval-floor.js +1 -0
  167. package/lib/node_modules/@pneuma/approval-floor/cordis.patch.yml +4 -0
  168. package/lib/node_modules/@pneuma/approval-floor/index.d.ts +1 -0
  169. package/lib/node_modules/@pneuma/approval-floor/index.js +1 -0
  170. package/lib/node_modules/@pneuma/approval-floor/locale/en.json +4 -0
  171. package/lib/node_modules/@pneuma/approval-floor/locale/ui.en.json +28 -0
  172. package/lib/node_modules/@pneuma/approval-floor/locale/ui.zh.json +28 -0
  173. package/lib/node_modules/@pneuma/approval-floor/package.json +40 -0
  174. package/lib/node_modules/@pneuma/ask/cordis.patch.yml +4 -0
  175. package/lib/node_modules/@pneuma/ask/index.d.ts +1 -0
  176. package/lib/node_modules/@pneuma/ask/index.js +1 -0
  177. package/lib/node_modules/@pneuma/ask/locale/en.json +4 -0
  178. package/lib/node_modules/@pneuma/ask/package.json +38 -0
  179. package/lib/node_modules/@pneuma/base/cordis.patch.yml +176 -0
  180. package/lib/node_modules/@pneuma/base/package.json +12 -0
  181. package/lib/node_modules/@pneuma/browser/cordis.patch.yml +5 -0
  182. package/lib/node_modules/@pneuma/browser/index.d.ts +1 -0
  183. package/lib/node_modules/@pneuma/browser/index.js +1 -0
  184. package/lib/node_modules/@pneuma/browser/locale/en.json +4 -0
  185. package/lib/node_modules/@pneuma/browser/locale/ui.en.json +61 -0
  186. package/lib/node_modules/@pneuma/browser/locale/ui.zh.json +61 -0
  187. package/lib/node_modules/@pneuma/browser/package.json +40 -0
  188. package/lib/node_modules/@pneuma/cdp/actions.d.ts +1 -0
  189. package/lib/node_modules/@pneuma/cdp/actions.js +1 -0
  190. package/lib/node_modules/@pneuma/cdp/cloud-metadata.d.ts +1 -0
  191. package/lib/node_modules/@pneuma/cdp/cloud-metadata.js +1 -0
  192. package/lib/node_modules/@pneuma/cdp/index.d.ts +1 -0
  193. package/lib/node_modules/@pneuma/cdp/index.js +1 -0
  194. package/lib/node_modules/@pneuma/cdp/launch.d.ts +1 -0
  195. package/lib/node_modules/@pneuma/cdp/launch.js +1 -0
  196. package/lib/node_modules/@pneuma/cdp/locale/en.json +4 -0
  197. package/lib/node_modules/@pneuma/cdp/package.json +40 -0
  198. package/lib/node_modules/@pneuma/cdp/report.d.ts +1 -0
  199. package/lib/node_modules/@pneuma/cdp/report.js +1 -0
  200. package/lib/node_modules/@pneuma/cdp/ring-buffer.d.ts +1 -0
  201. package/lib/node_modules/@pneuma/cdp/ring-buffer.js +1 -0
  202. package/lib/node_modules/@pneuma/cdp/snapshot.d.ts +1 -0
  203. package/lib/node_modules/@pneuma/cdp/snapshot.js +1 -0
  204. package/lib/node_modules/@pneuma/cdp/transport.d.ts +1 -0
  205. package/lib/node_modules/@pneuma/cdp/transport.js +1 -0
  206. package/lib/node_modules/@pneuma/checkpoint/cordis.patch.yml +4 -0
  207. package/lib/node_modules/@pneuma/checkpoint/index.d.ts +1 -0
  208. package/lib/node_modules/@pneuma/checkpoint/index.js +1 -0
  209. package/lib/node_modules/@pneuma/checkpoint/locale/en.json +4 -0
  210. package/lib/node_modules/@pneuma/checkpoint/locale/ui.en.json +15 -0
  211. package/lib/node_modules/@pneuma/checkpoint/locale/ui.zh.json +15 -0
  212. package/lib/node_modules/@pneuma/checkpoint/package.json +38 -0
  213. package/lib/node_modules/@pneuma/checkpoint/shadow.d.ts +1 -0
  214. package/lib/node_modules/@pneuma/checkpoint/shadow.js +1 -0
  215. package/lib/node_modules/@pneuma/cli/config-cli.d.ts +1 -0
  216. package/lib/node_modules/@pneuma/cli/config-cli.js +1 -0
  217. package/lib/node_modules/@pneuma/cli/index.d.ts +1 -0
  218. package/lib/node_modules/@pneuma/cli/index.js +1 -0
  219. package/lib/node_modules/@pneuma/cli/locale/en.json +4 -0
  220. package/lib/node_modules/@pneuma/cli/package.json +35 -0
  221. package/lib/node_modules/@pneuma/cli/plugin-cli.d.ts +1 -0
  222. package/lib/node_modules/@pneuma/cli/plugin-cli.js +1 -0
  223. package/lib/node_modules/@pneuma/cli/pnpm-builds.d.ts +1 -0
  224. package/lib/node_modules/@pneuma/cli/pnpm-builds.js +1 -0
  225. package/lib/node_modules/@pneuma/commands/cordis.patch.yml +4 -0
  226. package/lib/node_modules/@pneuma/commands/index.d.ts +1 -0
  227. package/lib/node_modules/@pneuma/commands/index.js +1 -0
  228. package/lib/node_modules/@pneuma/commands/locale/en.json +4 -0
  229. package/lib/node_modules/@pneuma/commands/package.json +38 -0
  230. package/lib/node_modules/@pneuma/commands/session-export.d.ts +1 -0
  231. package/lib/node_modules/@pneuma/commands/session-export.js +1 -0
  232. package/lib/node_modules/@pneuma/commands-core/commands-completion.d.ts +1 -0
  233. package/lib/node_modules/@pneuma/commands-core/commands-completion.js +1 -0
  234. package/lib/node_modules/@pneuma/commands-core/index.d.ts +1 -0
  235. package/lib/node_modules/@pneuma/commands-core/index.js +1 -0
  236. package/lib/node_modules/@pneuma/commands-core/locale/en.json +4 -0
  237. package/lib/node_modules/@pneuma/commands-core/package.json +34 -0
  238. package/lib/node_modules/@pneuma/compact/cordis.patch.yml +4 -0
  239. package/lib/node_modules/@pneuma/compact/index.d.ts +1 -0
  240. package/lib/node_modules/@pneuma/compact/index.js +1 -0
  241. package/lib/node_modules/@pneuma/compact/locale/en.json +4 -0
  242. package/lib/node_modules/@pneuma/compact/locale/ui.en.json +24 -0
  243. package/lib/node_modules/@pneuma/compact/locale/ui.zh.json +24 -0
  244. package/lib/node_modules/@pneuma/compact/package.json +39 -0
  245. package/lib/node_modules/@pneuma/computer-use/cordis.patch.yml +5 -0
  246. package/lib/node_modules/@pneuma/computer-use/desktop-control.d.ts +1 -0
  247. package/lib/node_modules/@pneuma/computer-use/desktop-control.js +1 -0
  248. package/lib/node_modules/@pneuma/computer-use/index.d.ts +1 -0
  249. package/lib/node_modules/@pneuma/computer-use/index.js +1 -0
  250. package/lib/node_modules/@pneuma/computer-use/locale/en.json +4 -0
  251. package/lib/node_modules/@pneuma/computer-use/locale/ui.en.json +41 -0
  252. package/lib/node_modules/@pneuma/computer-use/locale/ui.zh.json +41 -0
  253. package/lib/node_modules/@pneuma/computer-use/package.json +40 -0
  254. package/lib/node_modules/@pneuma/config-core/index.d.ts +1 -0
  255. package/lib/node_modules/@pneuma/config-core/index.js +1 -0
  256. package/lib/node_modules/@pneuma/config-core/locale/en.json +4 -0
  257. package/lib/node_modules/@pneuma/config-core/market.d.ts +1 -0
  258. package/lib/node_modules/@pneuma/config-core/market.js +1 -0
  259. package/lib/node_modules/@pneuma/config-core/package.json +35 -0
  260. package/lib/node_modules/@pneuma/config-core/presets.d.ts +1 -0
  261. package/lib/node_modules/@pneuma/config-core/presets.js +1 -0
  262. package/lib/node_modules/@pneuma/desktop-dock/cordis.patch.yml +4 -0
  263. package/lib/node_modules/@pneuma/desktop-dock/index.d.ts +1 -0
  264. package/lib/node_modules/@pneuma/desktop-dock/index.js +1 -0
  265. package/lib/node_modules/@pneuma/desktop-dock/locale/en.json +4 -0
  266. package/lib/node_modules/@pneuma/desktop-dock/locale/ui.en.json +11 -0
  267. package/lib/node_modules/@pneuma/desktop-dock/locale/ui.zh.json +11 -0
  268. package/lib/node_modules/@pneuma/desktop-dock/package.json +38 -0
  269. package/lib/node_modules/@pneuma/dock-browser/cordis.patch.yml +5 -0
  270. package/lib/node_modules/@pneuma/dock-browser/index.d.ts +1 -0
  271. package/lib/node_modules/@pneuma/dock-browser/index.js +1 -0
  272. package/lib/node_modules/@pneuma/dock-browser/locale/en.json +4 -0
  273. package/lib/node_modules/@pneuma/dock-browser/locale/ui.en.json +10 -0
  274. package/lib/node_modules/@pneuma/dock-browser/locale/ui.zh.json +10 -0
  275. package/lib/node_modules/@pneuma/dock-browser/package.json +40 -0
  276. package/lib/node_modules/@pneuma/doctor/bundle.d.ts +1 -0
  277. package/lib/node_modules/@pneuma/doctor/bundle.js +1 -0
  278. package/lib/node_modules/@pneuma/doctor/checks/data.d.ts +1 -0
  279. package/lib/node_modules/@pneuma/doctor/checks/data.js +1 -0
  280. package/lib/node_modules/@pneuma/doctor/checks/ecosystem.d.ts +1 -0
  281. package/lib/node_modules/@pneuma/doctor/checks/ecosystem.js +1 -0
  282. package/lib/node_modules/@pneuma/doctor/checks/environment.d.ts +1 -0
  283. package/lib/node_modules/@pneuma/doctor/checks/environment.js +1 -0
  284. package/lib/node_modules/@pneuma/doctor/checks/util.d.ts +1 -0
  285. package/lib/node_modules/@pneuma/doctor/checks/util.js +1 -0
  286. package/lib/node_modules/@pneuma/doctor/cordis.patch.yml +4 -0
  287. package/lib/node_modules/@pneuma/doctor/index.d.ts +1 -0
  288. package/lib/node_modules/@pneuma/doctor/index.js +1 -0
  289. package/lib/node_modules/@pneuma/doctor/locale/en.json +4 -0
  290. package/lib/node_modules/@pneuma/doctor/package.json +39 -0
  291. package/lib/node_modules/@pneuma/dsh-compat/cordis.patch.yml +5 -0
  292. package/lib/node_modules/@pneuma/dsh-compat/index.d.ts +1 -0
  293. package/lib/node_modules/@pneuma/dsh-compat/index.js +1 -0
  294. package/lib/node_modules/@pneuma/dsh-compat/locale/en.json +4 -0
  295. package/lib/node_modules/@pneuma/dsh-compat/package.json +40 -0
  296. package/lib/node_modules/@pneuma/git/cordis.patch.yml +4 -0
  297. package/lib/node_modules/@pneuma/git/index.d.ts +1 -0
  298. package/lib/node_modules/@pneuma/git/index.js +1 -0
  299. package/lib/node_modules/@pneuma/git/locale/en.json +4 -0
  300. package/lib/node_modules/@pneuma/git/package.json +38 -0
  301. package/lib/node_modules/@pneuma/goal/cordis.patch.yml +4 -0
  302. package/lib/node_modules/@pneuma/goal/goal.d.ts +1 -0
  303. package/lib/node_modules/@pneuma/goal/goal.js +1 -0
  304. package/lib/node_modules/@pneuma/goal/index.d.ts +1 -0
  305. package/lib/node_modules/@pneuma/goal/index.js +1 -0
  306. package/lib/node_modules/@pneuma/goal/locale/en.json +4 -0
  307. package/lib/node_modules/@pneuma/goal/locale/ui.en.json +10 -0
  308. package/lib/node_modules/@pneuma/goal/locale/ui.zh.json +10 -0
  309. package/lib/node_modules/@pneuma/goal/package.json +39 -0
  310. package/lib/node_modules/@pneuma/guards/cordis.patch.yml +4 -0
  311. package/lib/node_modules/@pneuma/guards/index.d.ts +1 -0
  312. package/lib/node_modules/@pneuma/guards/index.js +1 -0
  313. package/lib/node_modules/@pneuma/guards/locale/en.json +4 -0
  314. package/lib/node_modules/@pneuma/guards/package.json +38 -0
  315. package/lib/node_modules/@pneuma/hooks/cordis.patch.yml +4 -0
  316. package/lib/node_modules/@pneuma/hooks/index.d.ts +1 -0
  317. package/lib/node_modules/@pneuma/hooks/index.js +1 -0
  318. package/lib/node_modules/@pneuma/hooks/lifecycle-hooks.d.ts +1 -0
  319. package/lib/node_modules/@pneuma/hooks/lifecycle-hooks.js +1 -0
  320. package/lib/node_modules/@pneuma/hooks/locale/en.json +4 -0
  321. package/lib/node_modules/@pneuma/hooks/locale/ui.en.json +111 -0
  322. package/lib/node_modules/@pneuma/hooks/locale/ui.zh.json +111 -0
  323. package/lib/node_modules/@pneuma/hooks/package.json +39 -0
  324. package/lib/node_modules/@pneuma/host-stdio/cordis.patch.yml +4 -0
  325. package/lib/node_modules/@pneuma/host-stdio/index.d.ts +1 -0
  326. package/lib/node_modules/@pneuma/host-stdio/index.js +1 -0
  327. package/lib/node_modules/@pneuma/host-stdio/locale/en.json +4 -0
  328. package/lib/node_modules/@pneuma/host-stdio/package.json +38 -0
  329. package/lib/node_modules/@pneuma/image-diet/cordis.patch.yml +4 -0
  330. package/lib/node_modules/@pneuma/image-diet/index.d.ts +1 -0
  331. package/lib/node_modules/@pneuma/image-diet/index.js +1 -0
  332. package/lib/node_modules/@pneuma/image-diet/locale/en.json +4 -0
  333. package/lib/node_modules/@pneuma/image-diet/locale/ui.en.json +14 -0
  334. package/lib/node_modules/@pneuma/image-diet/locale/ui.zh.json +14 -0
  335. package/lib/node_modules/@pneuma/image-diet/package.json +39 -0
  336. package/lib/node_modules/@pneuma/llm/cordis.patch.yml +4 -0
  337. package/lib/node_modules/@pneuma/llm/index.d.ts +1 -0
  338. package/lib/node_modules/@pneuma/llm/index.js +1 -0
  339. package/lib/node_modules/@pneuma/llm/locale/en.json +4 -0
  340. package/lib/node_modules/@pneuma/llm/package.json +38 -0
  341. package/lib/node_modules/@pneuma/log/cordis.patch.yml +4 -0
  342. package/lib/node_modules/@pneuma/log/filter.d.ts +1 -0
  343. package/lib/node_modules/@pneuma/log/filter.js +1 -0
  344. package/lib/node_modules/@pneuma/log/index.d.ts +1 -0
  345. package/lib/node_modules/@pneuma/log/index.js +1 -0
  346. package/lib/node_modules/@pneuma/log/locale/en.json +4 -0
  347. package/lib/node_modules/@pneuma/log/locale/ui.en.json +30 -0
  348. package/lib/node_modules/@pneuma/log/locale/ui.zh.json +30 -0
  349. package/lib/node_modules/@pneuma/log/package.json +40 -0
  350. package/lib/node_modules/@pneuma/log/sink.d.ts +1 -0
  351. package/lib/node_modules/@pneuma/log/sink.js +1 -0
  352. package/lib/node_modules/@pneuma/lsp/client.d.ts +1 -0
  353. package/lib/node_modules/@pneuma/lsp/client.js +1 -0
  354. package/lib/node_modules/@pneuma/lsp/cordis.patch.yml +5 -0
  355. package/lib/node_modules/@pneuma/lsp/framing.d.ts +1 -0
  356. package/lib/node_modules/@pneuma/lsp/framing.js +1 -0
  357. package/lib/node_modules/@pneuma/lsp/index.d.ts +1 -0
  358. package/lib/node_modules/@pneuma/lsp/index.js +1 -0
  359. package/lib/node_modules/@pneuma/lsp/line-shift.d.ts +1 -0
  360. package/lib/node_modules/@pneuma/lsp/line-shift.js +1 -0
  361. package/lib/node_modules/@pneuma/lsp/locale/en.json +4 -0
  362. package/lib/node_modules/@pneuma/lsp/locale/ui.en.json +17 -0
  363. package/lib/node_modules/@pneuma/lsp/locale/ui.zh.json +17 -0
  364. package/lib/node_modules/@pneuma/lsp/manager.d.ts +1 -0
  365. package/lib/node_modules/@pneuma/lsp/manager.js +1 -0
  366. package/lib/node_modules/@pneuma/lsp/normalize.d.ts +1 -0
  367. package/lib/node_modules/@pneuma/lsp/normalize.js +1 -0
  368. package/lib/node_modules/@pneuma/lsp/package.json +40 -0
  369. package/lib/node_modules/@pneuma/lsp/servers.d.ts +1 -0
  370. package/lib/node_modules/@pneuma/lsp/servers.js +1 -0
  371. package/lib/node_modules/@pneuma/lsp/uri.d.ts +1 -0
  372. package/lib/node_modules/@pneuma/lsp/uri.js +1 -0
  373. package/lib/node_modules/@pneuma/mcp/cordis.patch.yml +5 -0
  374. package/lib/node_modules/@pneuma/mcp/index.d.ts +1 -0
  375. package/lib/node_modules/@pneuma/mcp/index.js +1 -0
  376. package/lib/node_modules/@pneuma/mcp/locale/en.json +4 -0
  377. package/lib/node_modules/@pneuma/mcp/locale/ui.en.json +28 -0
  378. package/lib/node_modules/@pneuma/mcp/locale/ui.zh.json +28 -0
  379. package/lib/node_modules/@pneuma/mcp/mcp.d.ts +1 -0
  380. package/lib/node_modules/@pneuma/mcp/mcp.js +1 -0
  381. package/lib/node_modules/@pneuma/mcp/package.json +40 -0
  382. package/lib/node_modules/@pneuma/memory/cordis.patch.yml +4 -0
  383. package/lib/node_modules/@pneuma/memory/index.d.ts +1 -0
  384. package/lib/node_modules/@pneuma/memory/index.js +1 -0
  385. package/lib/node_modules/@pneuma/memory/locale/en.json +4 -0
  386. package/lib/node_modules/@pneuma/memory/locale/ui.en.json +67 -0
  387. package/lib/node_modules/@pneuma/memory/locale/ui.zh.json +67 -0
  388. package/lib/node_modules/@pneuma/memory/memory-eval.d.ts +1 -0
  389. package/lib/node_modules/@pneuma/memory/memory-eval.js +1 -0
  390. package/lib/node_modules/@pneuma/memory/memory.d.ts +1 -0
  391. package/lib/node_modules/@pneuma/memory/memory.js +1 -0
  392. package/lib/node_modules/@pneuma/memory/package.json +39 -0
  393. package/lib/node_modules/@pneuma/microcompact/cordis.patch.yml +4 -0
  394. package/lib/node_modules/@pneuma/microcompact/index.d.ts +1 -0
  395. package/lib/node_modules/@pneuma/microcompact/index.js +1 -0
  396. package/lib/node_modules/@pneuma/microcompact/locale/en.json +4 -0
  397. package/lib/node_modules/@pneuma/microcompact/locale/ui.en.json +20 -0
  398. package/lib/node_modules/@pneuma/microcompact/locale/ui.zh.json +20 -0
  399. package/lib/node_modules/@pneuma/microcompact/microcompact.d.ts +1 -0
  400. package/lib/node_modules/@pneuma/microcompact/microcompact.js +1 -0
  401. package/lib/node_modules/@pneuma/microcompact/package.json +39 -0
  402. package/lib/node_modules/@pneuma/mode/cordis.patch.yml +4 -0
  403. package/lib/node_modules/@pneuma/mode/index.d.ts +1 -0
  404. package/lib/node_modules/@pneuma/mode/index.js +1 -0
  405. package/lib/node_modules/@pneuma/mode/locale/en.json +4 -0
  406. package/lib/node_modules/@pneuma/mode/package.json +38 -0
  407. package/lib/node_modules/@pneuma/ops/cordis.patch.yml +5 -0
  408. package/lib/node_modules/@pneuma/ops/index.d.ts +1 -0
  409. package/lib/node_modules/@pneuma/ops/index.js +1 -0
  410. package/lib/node_modules/@pneuma/ops/locale/en.json +4 -0
  411. package/lib/node_modules/@pneuma/ops/locale/ui.en.json +21 -0
  412. package/lib/node_modules/@pneuma/ops/locale/ui.zh.json +21 -0
  413. package/lib/node_modules/@pneuma/ops/package.json +41 -0
  414. package/lib/node_modules/@pneuma/ops/render.d.ts +1 -0
  415. package/lib/node_modules/@pneuma/ops/render.js +1 -0
  416. package/lib/node_modules/@pneuma/ops/tools.d.ts +1 -0
  417. package/lib/node_modules/@pneuma/ops/tools.js +1 -0
  418. package/lib/node_modules/@pneuma/ops/worker.d.ts +1 -0
  419. package/lib/node_modules/@pneuma/ops/worker.js +1 -0
  420. package/lib/node_modules/@pneuma/permission-core/index.d.ts +1 -0
  421. package/lib/node_modules/@pneuma/permission-core/index.js +1 -0
  422. package/lib/node_modules/@pneuma/permission-core/locale/en.json +4 -0
  423. package/lib/node_modules/@pneuma/permission-core/package.json +35 -0
  424. package/lib/node_modules/@pneuma/permission-core/permission-presets.d.ts +1 -0
  425. package/lib/node_modules/@pneuma/permission-core/permission-presets.js +1 -0
  426. package/lib/node_modules/@pneuma/permission-core/permission-scope.d.ts +1 -0
  427. package/lib/node_modules/@pneuma/permission-core/permission-scope.js +1 -0
  428. package/lib/node_modules/@pneuma/permission-presets/cordis.patch.yml +4 -0
  429. package/lib/node_modules/@pneuma/permission-presets/index.d.ts +1 -0
  430. package/lib/node_modules/@pneuma/permission-presets/index.js +1 -0
  431. package/lib/node_modules/@pneuma/permission-presets/locale/en.json +4 -0
  432. package/lib/node_modules/@pneuma/permission-presets/locale/ui.en.json +10 -0
  433. package/lib/node_modules/@pneuma/permission-presets/locale/ui.zh.json +10 -0
  434. package/lib/node_modules/@pneuma/permission-presets/package.json +38 -0
  435. package/lib/node_modules/@pneuma/plan/cordis.patch.yml +4 -0
  436. package/lib/node_modules/@pneuma/plan/index.d.ts +1 -0
  437. package/lib/node_modules/@pneuma/plan/index.js +1 -0
  438. package/lib/node_modules/@pneuma/plan/locale/en.json +4 -0
  439. package/lib/node_modules/@pneuma/plan/package.json +38 -0
  440. package/lib/node_modules/@pneuma/plugin-manager/cordis.patch.yml +4 -0
  441. package/lib/node_modules/@pneuma/plugin-manager/index.d.ts +1 -0
  442. package/lib/node_modules/@pneuma/plugin-manager/index.js +1 -0
  443. package/lib/node_modules/@pneuma/plugin-manager/locale/en.json +4 -0
  444. package/lib/node_modules/@pneuma/plugin-manager/package.json +38 -0
  445. package/lib/node_modules/@pneuma/presets/cordis.patch.yml +4 -0
  446. package/lib/node_modules/@pneuma/presets/index.d.ts +1 -0
  447. package/lib/node_modules/@pneuma/presets/index.js +1 -0
  448. package/lib/node_modules/@pneuma/presets/locale/en.json +4 -0
  449. package/lib/node_modules/@pneuma/presets/locale/ui.en.json +10 -0
  450. package/lib/node_modules/@pneuma/presets/locale/ui.zh.json +10 -0
  451. package/lib/node_modules/@pneuma/presets/package.json +38 -0
  452. package/lib/node_modules/@pneuma/prompt/cordis.patch.yml +4 -0
  453. package/lib/node_modules/@pneuma/prompt/index.d.ts +1 -0
  454. package/lib/node_modules/@pneuma/prompt/index.js +1 -0
  455. package/lib/node_modules/@pneuma/prompt/locale/en.json +4 -0
  456. package/lib/node_modules/@pneuma/prompt/package.json +38 -0
  457. package/lib/node_modules/@pneuma/prompt/tool-result-prune.d.ts +1 -0
  458. package/lib/node_modules/@pneuma/prompt/tool-result-prune.js +1 -0
  459. package/lib/node_modules/@pneuma/ptc/cordis.patch.yml +4 -0
  460. package/lib/node_modules/@pneuma/ptc/index.d.ts +1 -0
  461. package/lib/node_modules/@pneuma/ptc/index.js +1 -0
  462. package/lib/node_modules/@pneuma/ptc/locale/en.json +4 -0
  463. package/lib/node_modules/@pneuma/ptc/package.json +38 -0
  464. package/lib/node_modules/@pneuma/remote/cordis.patch.yml +4 -0
  465. package/lib/node_modules/@pneuma/remote/http.d.ts +1 -0
  466. package/lib/node_modules/@pneuma/remote/http.js +1 -0
  467. package/lib/node_modules/@pneuma/remote/index.d.ts +1 -0
  468. package/lib/node_modules/@pneuma/remote/index.js +1 -0
  469. package/lib/node_modules/@pneuma/remote/locale/en.json +4 -0
  470. package/lib/node_modules/@pneuma/remote/locale/ui.en.json +76 -0
  471. package/lib/node_modules/@pneuma/remote/locale/ui.zh.json +76 -0
  472. package/lib/node_modules/@pneuma/remote/package.json +38 -0
  473. package/lib/node_modules/@pneuma/remote/routes.d.ts +1 -0
  474. package/lib/node_modules/@pneuma/remote/routes.js +1 -0
  475. package/lib/node_modules/@pneuma/remote/types.d.ts +1 -0
  476. package/lib/node_modules/@pneuma/remote/types.js +1 -0
  477. package/lib/node_modules/@pneuma/runtime/adapter/transcript.d.ts +1 -0
  478. package/lib/node_modules/@pneuma/runtime/adapter/transcript.js +1 -0
  479. package/lib/node_modules/@pneuma/runtime/boot.d.ts +1 -0
  480. package/lib/node_modules/@pneuma/runtime/boot.js +1 -0
  481. package/lib/node_modules/@pneuma/runtime/contract/approval.d.ts +1 -0
  482. package/lib/node_modules/@pneuma/runtime/contract/approval.js +1 -0
  483. package/lib/node_modules/@pneuma/runtime/contract/fonts.d.ts +1 -0
  484. package/lib/node_modules/@pneuma/runtime/contract/fonts.js +1 -0
  485. package/lib/node_modules/@pneuma/runtime/contract/memory.d.ts +1 -0
  486. package/lib/node_modules/@pneuma/runtime/contract/memory.js +1 -0
  487. package/lib/node_modules/@pneuma/runtime/contract/mode.d.ts +1 -0
  488. package/lib/node_modules/@pneuma/runtime/contract/mode.js +1 -0
  489. package/lib/node_modules/@pneuma/runtime/contract/plugin.d.ts +1 -0
  490. package/lib/node_modules/@pneuma/runtime/contract/plugin.js +1 -0
  491. package/lib/node_modules/@pneuma/runtime/contract/remote.d.ts +1 -0
  492. package/lib/node_modules/@pneuma/runtime/contract/remote.js +1 -0
  493. package/lib/node_modules/@pneuma/runtime/contract/runtime.d.ts +1 -0
  494. package/lib/node_modules/@pneuma/runtime/contract/runtime.js +1 -0
  495. package/lib/node_modules/@pneuma/runtime/contract/session.d.ts +1 -0
  496. package/lib/node_modules/@pneuma/runtime/contract/session.js +1 -0
  497. package/lib/node_modules/@pneuma/runtime/contract/settings.d.ts +1 -0
  498. package/lib/node_modules/@pneuma/runtime/contract/settings.js +1 -0
  499. package/lib/node_modules/@pneuma/runtime/contract/snapshot.d.ts +1 -0
  500. package/lib/node_modules/@pneuma/runtime/contract/snapshot.js +1 -0
  501. package/lib/node_modules/@pneuma/runtime/contract/task.d.ts +1 -0
  502. package/lib/node_modules/@pneuma/runtime/contract/task.js +1 -0
  503. package/lib/node_modules/@pneuma/runtime/contract/transcript.d.ts +1 -0
  504. package/lib/node_modules/@pneuma/runtime/contract/transcript.js +1 -0
  505. package/lib/node_modules/@pneuma/runtime/contract/usage.d.ts +1 -0
  506. package/lib/node_modules/@pneuma/runtime/contract/usage.js +1 -0
  507. package/lib/node_modules/@pneuma/runtime/contract.d.ts +1 -0
  508. package/lib/node_modules/@pneuma/runtime/contract.js +1 -0
  509. package/lib/node_modules/@pneuma/runtime/core/attachments.d.ts +1 -0
  510. package/lib/node_modules/@pneuma/runtime/core/attachments.js +1 -0
  511. package/lib/node_modules/@pneuma/runtime/core/audit.d.ts +1 -0
  512. package/lib/node_modules/@pneuma/runtime/core/audit.js +1 -0
  513. package/lib/node_modules/@pneuma/runtime/core/boot-notices.d.ts +1 -0
  514. package/lib/node_modules/@pneuma/runtime/core/boot-notices.js +1 -0
  515. package/lib/node_modules/@pneuma/runtime/core/bytes.d.ts +1 -0
  516. package/lib/node_modules/@pneuma/runtime/core/bytes.js +1 -0
  517. package/lib/node_modules/@pneuma/runtime/core/child-env.d.ts +1 -0
  518. package/lib/node_modules/@pneuma/runtime/core/child-env.js +1 -0
  519. package/lib/node_modules/@pneuma/runtime/core/clamp.d.ts +1 -0
  520. package/lib/node_modules/@pneuma/runtime/core/clamp.js +1 -0
  521. package/lib/node_modules/@pneuma/runtime/core/clock.d.ts +1 -0
  522. package/lib/node_modules/@pneuma/runtime/core/clock.js +1 -0
  523. package/lib/node_modules/@pneuma/runtime/core/command-intent.d.ts +1 -0
  524. package/lib/node_modules/@pneuma/runtime/core/command-intent.js +1 -0
  525. package/lib/node_modules/@pneuma/runtime/core/command-policy.d.ts +1 -0
  526. package/lib/node_modules/@pneuma/runtime/core/command-policy.js +1 -0
  527. package/lib/node_modules/@pneuma/runtime/core/compact-anchors.d.ts +1 -0
  528. package/lib/node_modules/@pneuma/runtime/core/compact-anchors.js +1 -0
  529. package/lib/node_modules/@pneuma/runtime/core/config-store.d.ts +1 -0
  530. package/lib/node_modules/@pneuma/runtime/core/config-store.js +1 -0
  531. package/lib/node_modules/@pneuma/runtime/core/config.d.ts +1 -0
  532. package/lib/node_modules/@pneuma/runtime/core/config.js +1 -0
  533. package/lib/node_modules/@pneuma/runtime/core/context-injection-report.d.ts +1 -0
  534. package/lib/node_modules/@pneuma/runtime/core/context-injection-report.js +1 -0
  535. package/lib/node_modules/@pneuma/runtime/core/diff-text.d.ts +1 -0
  536. package/lib/node_modules/@pneuma/runtime/core/diff-text.js +1 -0
  537. package/lib/node_modules/@pneuma/runtime/core/dock-browser.d.ts +1 -0
  538. package/lib/node_modules/@pneuma/runtime/core/dock-browser.js +1 -0
  539. package/lib/node_modules/@pneuma/runtime/core/dock-ops.d.ts +1 -0
  540. package/lib/node_modules/@pneuma/runtime/core/dock-ops.js +1 -0
  541. package/lib/node_modules/@pneuma/runtime/core/dock-session.d.ts +1 -0
  542. package/lib/node_modules/@pneuma/runtime/core/dock-session.js +1 -0
  543. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/llm-usage-event.d.ts +1 -0
  544. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/llm-usage-event.js +1 -0
  545. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/presentation.d.ts +1 -0
  546. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/presentation.js +1 -0
  547. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/resolve-hook.d.ts +1 -0
  548. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/resolve-hook.js +1 -0
  549. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/service-map.d.ts +1 -0
  550. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/service-map.js +1 -0
  551. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-bridge.d.ts +1 -0
  552. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-bridge.js +1 -0
  553. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-events.d.ts +1 -0
  554. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/session-events.js +1 -0
  555. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/credentials.d.ts +1 -0
  556. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/credentials.js +1 -0
  557. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/home-paths.d.ts +1 -0
  558. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/shims/home-paths.js +1 -0
  559. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/tools-facade.d.ts +1 -0
  560. package/lib/node_modules/@pneuma/runtime/core/dsh-compat/tools-facade.js +1 -0
  561. package/lib/node_modules/@pneuma/runtime/core/err-text.d.ts +1 -0
  562. package/lib/node_modules/@pneuma/runtime/core/err-text.js +1 -0
  563. package/lib/node_modules/@pneuma/runtime/core/events.d.ts +1 -0
  564. package/lib/node_modules/@pneuma/runtime/core/events.js +1 -0
  565. package/lib/node_modules/@pneuma/runtime/core/executable.d.ts +1 -0
  566. package/lib/node_modules/@pneuma/runtime/core/executable.js +1 -0
  567. package/lib/node_modules/@pneuma/runtime/core/git-exec.d.ts +1 -0
  568. package/lib/node_modules/@pneuma/runtime/core/git-exec.js +1 -0
  569. package/lib/node_modules/@pneuma/runtime/core/git-info.d.ts +1 -0
  570. package/lib/node_modules/@pneuma/runtime/core/git-info.js +1 -0
  571. package/lib/node_modules/@pneuma/runtime/core/git-surface.d.ts +1 -0
  572. package/lib/node_modules/@pneuma/runtime/core/git-surface.js +1 -0
  573. package/lib/node_modules/@pneuma/runtime/core/guard-session.d.ts +1 -0
  574. package/lib/node_modules/@pneuma/runtime/core/guard-session.js +1 -0
  575. package/lib/node_modules/@pneuma/runtime/core/host-browser-link.d.ts +1 -0
  576. package/lib/node_modules/@pneuma/runtime/core/host-browser-link.js +1 -0
  577. package/lib/node_modules/@pneuma/runtime/core/host-methods.d.ts +1 -0
  578. package/lib/node_modules/@pneuma/runtime/core/host-methods.js +1 -0
  579. package/lib/node_modules/@pneuma/runtime/core/http-debug.d.ts +1 -0
  580. package/lib/node_modules/@pneuma/runtime/core/http-debug.js +1 -0
  581. package/lib/node_modules/@pneuma/runtime/core/i18n-text.d.ts +1 -0
  582. package/lib/node_modules/@pneuma/runtime/core/i18n-text.js +1 -0
  583. package/lib/node_modules/@pneuma/runtime/core/i18n.d.ts +1 -0
  584. package/lib/node_modules/@pneuma/runtime/core/i18n.js +1 -0
  585. package/lib/node_modules/@pneuma/runtime/core/image-diet.d.ts +1 -0
  586. package/lib/node_modules/@pneuma/runtime/core/image-diet.js +1 -0
  587. package/lib/node_modules/@pneuma/runtime/core/json-text.d.ts +1 -0
  588. package/lib/node_modules/@pneuma/runtime/core/json-text.js +1 -0
  589. package/lib/node_modules/@pneuma/runtime/core/llm.d.ts +1 -0
  590. package/lib/node_modules/@pneuma/runtime/core/llm.js +1 -0
  591. package/lib/node_modules/@pneuma/runtime/core/lockfile.d.ts +1 -0
  592. package/lib/node_modules/@pneuma/runtime/core/lockfile.js +1 -0
  593. package/lib/node_modules/@pneuma/runtime/core/log-config.d.ts +1 -0
  594. package/lib/node_modules/@pneuma/runtime/core/log-config.js +1 -0
  595. package/lib/node_modules/@pneuma/runtime/core/mention.d.ts +1 -0
  596. package/lib/node_modules/@pneuma/runtime/core/mention.js +1 -0
  597. package/lib/node_modules/@pneuma/runtime/core/migrate.d.ts +1 -0
  598. package/lib/node_modules/@pneuma/runtime/core/migrate.js +1 -0
  599. package/lib/node_modules/@pneuma/runtime/core/model-caps.d.ts +1 -0
  600. package/lib/node_modules/@pneuma/runtime/core/model-caps.js +1 -0
  601. package/lib/node_modules/@pneuma/runtime/core/native-bridge.d.ts +1 -0
  602. package/lib/node_modules/@pneuma/runtime/core/native-bridge.js +1 -0
  603. package/lib/node_modules/@pneuma/runtime/core/os-lock.d.ts +1 -0
  604. package/lib/node_modules/@pneuma/runtime/core/os-lock.js +1 -0
  605. package/lib/node_modules/@pneuma/runtime/core/path-policy.d.ts +1 -0
  606. package/lib/node_modules/@pneuma/runtime/core/path-policy.js +1 -0
  607. package/lib/node_modules/@pneuma/runtime/core/plugin-bundle.d.ts +1 -0
  608. package/lib/node_modules/@pneuma/runtime/core/plugin-bundle.js +1 -0
  609. package/lib/node_modules/@pneuma/runtime/core/plugin-loader.d.ts +1 -0
  610. package/lib/node_modules/@pneuma/runtime/core/plugin-loader.js +1 -0
  611. package/lib/node_modules/@pneuma/runtime/core/plugin-locale.d.ts +1 -0
  612. package/lib/node_modules/@pneuma/runtime/core/plugin-locale.js +1 -0
  613. package/lib/node_modules/@pneuma/runtime/core/plugin-npm.d.ts +1 -0
  614. package/lib/node_modules/@pneuma/runtime/core/plugin-npm.js +1 -0
  615. package/lib/node_modules/@pneuma/runtime/core/plugin-patch.d.ts +1 -0
  616. package/lib/node_modules/@pneuma/runtime/core/plugin-patch.js +1 -0
  617. package/lib/node_modules/@pneuma/runtime/core/plugin-registry.d.ts +1 -0
  618. package/lib/node_modules/@pneuma/runtime/core/plugin-registry.js +1 -0
  619. package/lib/node_modules/@pneuma/runtime/core/plugin-watch.d.ts +1 -0
  620. package/lib/node_modules/@pneuma/runtime/core/plugin-watch.js +1 -0
  621. package/lib/node_modules/@pneuma/runtime/core/prefs.d.ts +1 -0
  622. package/lib/node_modules/@pneuma/runtime/core/prefs.js +1 -0
  623. package/lib/node_modules/@pneuma/runtime/core/pricing.d.ts +1 -0
  624. package/lib/node_modules/@pneuma/runtime/core/pricing.js +1 -0
  625. package/lib/node_modules/@pneuma/runtime/core/profile-bootstrap.d.ts +1 -0
  626. package/lib/node_modules/@pneuma/runtime/core/profile-bootstrap.js +1 -0
  627. package/lib/node_modules/@pneuma/runtime/core/profile-dir.d.ts +1 -0
  628. package/lib/node_modules/@pneuma/runtime/core/profile-dir.js +1 -0
  629. package/lib/node_modules/@pneuma/runtime/core/ptc.d.ts +1 -0
  630. package/lib/node_modules/@pneuma/runtime/core/ptc.js +1 -0
  631. package/lib/node_modules/@pneuma/runtime/core/records.d.ts +1 -0
  632. package/lib/node_modules/@pneuma/runtime/core/records.js +1 -0
  633. package/lib/node_modules/@pneuma/runtime/core/redact.d.ts +1 -0
  634. package/lib/node_modules/@pneuma/runtime/core/redact.js +1 -0
  635. package/lib/node_modules/@pneuma/runtime/core/remote/frames.d.ts +1 -0
  636. package/lib/node_modules/@pneuma/runtime/core/remote/frames.js +1 -0
  637. package/lib/node_modules/@pneuma/runtime/core/remote/notify.d.ts +1 -0
  638. package/lib/node_modules/@pneuma/runtime/core/remote/notify.js +1 -0
  639. package/lib/node_modules/@pneuma/runtime/core/remote/owner.d.ts +1 -0
  640. package/lib/node_modules/@pneuma/runtime/core/remote/owner.js +1 -0
  641. package/lib/node_modules/@pneuma/runtime/core/remote/pairing.d.ts +1 -0
  642. package/lib/node_modules/@pneuma/runtime/core/remote/pairing.js +1 -0
  643. package/lib/node_modules/@pneuma/runtime/core/remote/push.d.ts +1 -0
  644. package/lib/node_modules/@pneuma/runtime/core/remote/push.js +1 -0
  645. package/lib/node_modules/@pneuma/runtime/core/remote/store.d.ts +1 -0
  646. package/lib/node_modules/@pneuma/runtime/core/remote/store.js +1 -0
  647. package/lib/node_modules/@pneuma/runtime/core/remote/tickets.d.ts +1 -0
  648. package/lib/node_modules/@pneuma/runtime/core/remote/tickets.js +1 -0
  649. package/lib/node_modules/@pneuma/runtime/core/remote/uploads.d.ts +1 -0
  650. package/lib/node_modules/@pneuma/runtime/core/remote/uploads.js +1 -0
  651. package/lib/node_modules/@pneuma/runtime/core/repeat-reminder.d.ts +1 -0
  652. package/lib/node_modules/@pneuma/runtime/core/repeat-reminder.js +1 -0
  653. package/lib/node_modules/@pneuma/runtime/core/request-attribution.d.ts +1 -0
  654. package/lib/node_modules/@pneuma/runtime/core/request-attribution.js +1 -0
  655. package/lib/node_modules/@pneuma/runtime/core/request-invariant.d.ts +1 -0
  656. package/lib/node_modules/@pneuma/runtime/core/request-invariant.js +1 -0
  657. package/lib/node_modules/@pneuma/runtime/core/schedule/rule.d.ts +1 -0
  658. package/lib/node_modules/@pneuma/runtime/core/schedule/rule.js +1 -0
  659. package/lib/node_modules/@pneuma/runtime/core/schedule/runner.d.ts +1 -0
  660. package/lib/node_modules/@pneuma/runtime/core/schedule/runner.js +1 -0
  661. package/lib/node_modules/@pneuma/runtime/core/schedule/store.d.ts +1 -0
  662. package/lib/node_modules/@pneuma/runtime/core/schedule/store.js +1 -0
  663. package/lib/node_modules/@pneuma/runtime/core/secrets.d.ts +1 -0
  664. package/lib/node_modules/@pneuma/runtime/core/secrets.js +1 -0
  665. package/lib/node_modules/@pneuma/runtime/core/session-meta.d.ts +1 -0
  666. package/lib/node_modules/@pneuma/runtime/core/session-meta.js +1 -0
  667. package/lib/node_modules/@pneuma/runtime/core/session.d.ts +1 -0
  668. package/lib/node_modules/@pneuma/runtime/core/session.js +1 -0
  669. package/lib/node_modules/@pneuma/runtime/core/shell-quote.d.ts +1 -0
  670. package/lib/node_modules/@pneuma/runtime/core/shell-quote.js +1 -0
  671. package/lib/node_modules/@pneuma/runtime/core/side-ask.d.ts +1 -0
  672. package/lib/node_modules/@pneuma/runtime/core/side-ask.js +1 -0
  673. package/lib/node_modules/@pneuma/runtime/core/skills.d.ts +1 -0
  674. package/lib/node_modules/@pneuma/runtime/core/skills.js +1 -0
  675. package/lib/node_modules/@pneuma/runtime/core/snapshot-throttle.d.ts +1 -0
  676. package/lib/node_modules/@pneuma/runtime/core/snapshot-throttle.js +1 -0
  677. package/lib/node_modules/@pneuma/runtime/core/spill.d.ts +1 -0
  678. package/lib/node_modules/@pneuma/runtime/core/spill.js +1 -0
  679. package/lib/node_modules/@pneuma/runtime/core/strings.d.ts +1 -0
  680. package/lib/node_modules/@pneuma/runtime/core/strings.js +1 -0
  681. package/lib/node_modules/@pneuma/runtime/core/team-board.d.ts +1 -0
  682. package/lib/node_modules/@pneuma/runtime/core/team-board.js +1 -0
  683. package/lib/node_modules/@pneuma/runtime/core/terminal-env.d.ts +1 -0
  684. package/lib/node_modules/@pneuma/runtime/core/terminal-env.js +1 -0
  685. package/lib/node_modules/@pneuma/runtime/core/text-format.d.ts +1 -0
  686. package/lib/node_modules/@pneuma/runtime/core/text-format.js +1 -0
  687. package/lib/node_modules/@pneuma/runtime/core/throughput.d.ts +1 -0
  688. package/lib/node_modules/@pneuma/runtime/core/throughput.js +1 -0
  689. package/lib/node_modules/@pneuma/runtime/core/todo-reminder-cadence.d.ts +1 -0
  690. package/lib/node_modules/@pneuma/runtime/core/todo-reminder-cadence.js +1 -0
  691. package/lib/node_modules/@pneuma/runtime/core/todo-reminder.d.ts +1 -0
  692. package/lib/node_modules/@pneuma/runtime/core/todo-reminder.js +1 -0
  693. package/lib/node_modules/@pneuma/runtime/core/token-estimate.d.ts +1 -0
  694. package/lib/node_modules/@pneuma/runtime/core/token-estimate.js +1 -0
  695. package/lib/node_modules/@pneuma/runtime/core/tool-guards.d.ts +1 -0
  696. package/lib/node_modules/@pneuma/runtime/core/tool-guards.js +1 -0
  697. package/lib/node_modules/@pneuma/runtime/core/tools/command-runner.d.ts +1 -0
  698. package/lib/node_modules/@pneuma/runtime/core/tools/command-runner.js +1 -0
  699. package/lib/node_modules/@pneuma/runtime/core/tools/fs-tools.d.ts +1 -0
  700. package/lib/node_modules/@pneuma/runtime/core/tools/fs-tools.js +1 -0
  701. package/lib/node_modules/@pneuma/runtime/core/tools/path-args.d.ts +1 -0
  702. package/lib/node_modules/@pneuma/runtime/core/tools/path-args.js +1 -0
  703. package/lib/node_modules/@pneuma/runtime/core/tools/sandbox-args.d.ts +1 -0
  704. package/lib/node_modules/@pneuma/runtime/core/tools/sandbox-args.js +1 -0
  705. package/lib/node_modules/@pneuma/runtime/core/tools.d.ts +1 -0
  706. package/lib/node_modules/@pneuma/runtime/core/tools.js +1 -0
  707. package/lib/node_modules/@pneuma/runtime/core/transcript-text.d.ts +1 -0
  708. package/lib/node_modules/@pneuma/runtime/core/transcript-text.js +1 -0
  709. package/lib/node_modules/@pneuma/runtime/core/ui-boot-source.d.ts +1 -0
  710. package/lib/node_modules/@pneuma/runtime/core/ui-boot-source.js +1 -0
  711. package/lib/node_modules/@pneuma/runtime/core/ui-bundles.d.ts +1 -0
  712. package/lib/node_modules/@pneuma/runtime/core/ui-bundles.js +1 -0
  713. package/lib/node_modules/@pneuma/runtime/core/ui-combo.d.ts +1 -0
  714. package/lib/node_modules/@pneuma/runtime/core/ui-combo.js +1 -0
  715. package/lib/node_modules/@pneuma/runtime/core/ui-events.d.ts +1 -0
  716. package/lib/node_modules/@pneuma/runtime/core/ui-events.js +1 -0
  717. package/lib/node_modules/@pneuma/runtime/core/ui-graph-frames.d.ts +1 -0
  718. package/lib/node_modules/@pneuma/runtime/core/ui-graph-frames.js +1 -0
  719. package/lib/node_modules/@pneuma/runtime/core/ui-hmr.d.ts +1 -0
  720. package/lib/node_modules/@pneuma/runtime/core/ui-hmr.js +1 -0
  721. package/lib/node_modules/@pneuma/runtime/core/ui-manifest.d.ts +1 -0
  722. package/lib/node_modules/@pneuma/runtime/core/ui-manifest.js +1 -0
  723. package/lib/node_modules/@pneuma/runtime/core/ui-methods.d.ts +1 -0
  724. package/lib/node_modules/@pneuma/runtime/core/ui-methods.js +1 -0
  725. package/lib/node_modules/@pneuma/runtime/core/ui-route.d.ts +1 -0
  726. package/lib/node_modules/@pneuma/runtime/core/ui-route.js +1 -0
  727. package/lib/node_modules/@pneuma/runtime/core/ui-server.d.ts +1 -0
  728. package/lib/node_modules/@pneuma/runtime/core/ui-server.js +1 -0
  729. package/lib/node_modules/@pneuma/runtime/core/ui-trust.d.ts +1 -0
  730. package/lib/node_modules/@pneuma/runtime/core/ui-trust.js +1 -0
  731. package/lib/node_modules/@pneuma/runtime/core/unified-diff.d.ts +1 -0
  732. package/lib/node_modules/@pneuma/runtime/core/unified-diff.js +1 -0
  733. package/lib/node_modules/@pneuma/runtime/core/untrusted.d.ts +1 -0
  734. package/lib/node_modules/@pneuma/runtime/core/untrusted.js +1 -0
  735. package/lib/node_modules/@pneuma/runtime/core/update-check.d.ts +1 -0
  736. package/lib/node_modules/@pneuma/runtime/core/update-check.js +1 -0
  737. package/lib/node_modules/@pneuma/runtime/core/usage-log.d.ts +1 -0
  738. package/lib/node_modules/@pneuma/runtime/core/usage-log.js +1 -0
  739. package/lib/node_modules/@pneuma/runtime/core/version.d.ts +1 -0
  740. package/lib/node_modules/@pneuma/runtime/core/version.js +1 -0
  741. package/lib/node_modules/@pneuma/runtime/core/web-http.d.ts +1 -0
  742. package/lib/node_modules/@pneuma/runtime/core/web-http.js +1 -0
  743. package/lib/node_modules/@pneuma/runtime/core/web-static.d.ts +1 -0
  744. package/lib/node_modules/@pneuma/runtime/core/web-static.js +1 -0
  745. package/lib/node_modules/@pneuma/runtime/headless.d.ts +1 -0
  746. package/lib/node_modules/@pneuma/runtime/headless.js +1 -0
  747. package/lib/node_modules/@pneuma/runtime/package.json +11 -0
  748. package/lib/node_modules/@pneuma/runtime/services/types.d.ts +1 -0
  749. package/lib/node_modules/@pneuma/runtime/services/types.js +1 -0
  750. package/lib/node_modules/@pneuma/runtime-adapter/cordis.patch.yml +4 -0
  751. package/lib/node_modules/@pneuma/runtime-adapter/index.d.ts +1 -0
  752. package/lib/node_modules/@pneuma/runtime-adapter/index.js +1 -0
  753. package/lib/node_modules/@pneuma/runtime-adapter/locale/en.json +4 -0
  754. package/lib/node_modules/@pneuma/runtime-adapter/package.json +38 -0
  755. package/lib/node_modules/@pneuma/runtime-api/cordis.patch.yml +4 -0
  756. package/lib/node_modules/@pneuma/runtime-api/index.d.ts +1 -0
  757. package/lib/node_modules/@pneuma/runtime-api/index.js +1 -0
  758. package/lib/node_modules/@pneuma/runtime-api/inspect.d.ts +1 -0
  759. package/lib/node_modules/@pneuma/runtime-api/inspect.js +1 -0
  760. package/lib/node_modules/@pneuma/runtime-api/locale/en.json +4 -0
  761. package/lib/node_modules/@pneuma/runtime-api/package.json +38 -0
  762. package/lib/node_modules/@pneuma/sandbox/backends.d.ts +1 -0
  763. package/lib/node_modules/@pneuma/sandbox/backends.js +1 -0
  764. package/lib/node_modules/@pneuma/sandbox/cordis.patch.yml +4 -0
  765. package/lib/node_modules/@pneuma/sandbox/execpolicy.d.ts +1 -0
  766. package/lib/node_modules/@pneuma/sandbox/execpolicy.js +1 -0
  767. package/lib/node_modules/@pneuma/sandbox/index.d.ts +1 -0
  768. package/lib/node_modules/@pneuma/sandbox/index.js +1 -0
  769. package/lib/node_modules/@pneuma/sandbox/locale/en.json +4 -0
  770. package/lib/node_modules/@pneuma/sandbox/locale/ui.en.json +78 -0
  771. package/lib/node_modules/@pneuma/sandbox/locale/ui.zh.json +78 -0
  772. package/lib/node_modules/@pneuma/sandbox/net-proxy.d.ts +1 -0
  773. package/lib/node_modules/@pneuma/sandbox/net-proxy.js +1 -0
  774. package/lib/node_modules/@pneuma/sandbox/package.json +40 -0
  775. package/lib/node_modules/@pneuma/sandbox/policy.d.ts +1 -0
  776. package/lib/node_modules/@pneuma/sandbox/policy.js +1 -0
  777. package/lib/node_modules/@pneuma/sandbox/review.d.ts +1 -0
  778. package/lib/node_modules/@pneuma/sandbox/review.js +1 -0
  779. package/lib/node_modules/@pneuma/sandbox/win/abi.d.ts +1 -0
  780. package/lib/node_modules/@pneuma/sandbox/win/abi.js +1 -0
  781. package/lib/node_modules/@pneuma/sandbox/win/account.d.ts +1 -0
  782. package/lib/node_modules/@pneuma/sandbox/win/account.js +1 -0
  783. package/lib/node_modules/@pneuma/sandbox/win/acl.d.ts +1 -0
  784. package/lib/node_modules/@pneuma/sandbox/win/acl.js +1 -0
  785. package/lib/node_modules/@pneuma/sandbox/win/backend.d.ts +1 -0
  786. package/lib/node_modules/@pneuma/sandbox/win/backend.js +1 -0
  787. package/lib/node_modules/@pneuma/sandbox/win/doctor.d.ts +1 -0
  788. package/lib/node_modules/@pneuma/sandbox/win/doctor.js +1 -0
  789. package/lib/node_modules/@pneuma/sandbox/win/ffi.d.ts +1 -0
  790. package/lib/node_modules/@pneuma/sandbox/win/ffi.js +1 -0
  791. package/lib/node_modules/@pneuma/sandbox/win/interpreter.d.ts +1 -0
  792. package/lib/node_modules/@pneuma/sandbox/win/interpreter.js +1 -0
  793. package/lib/node_modules/@pneuma/sandbox/win/net-abi.d.ts +1 -0
  794. package/lib/node_modules/@pneuma/sandbox/win/net-abi.js +1 -0
  795. package/lib/node_modules/@pneuma/sandbox/win/runner-entry.d.ts +1 -0
  796. package/lib/node_modules/@pneuma/sandbox/win/runner-entry.js +1 -0
  797. package/lib/node_modules/@pneuma/sandbox/win/setup.d.ts +1 -0
  798. package/lib/node_modules/@pneuma/sandbox/win/setup.js +1 -0
  799. package/lib/node_modules/@pneuma/sandbox/win/sweep.d.ts +1 -0
  800. package/lib/node_modules/@pneuma/sandbox/win/sweep.js +1 -0
  801. package/lib/node_modules/@pneuma/sandbox/win/token.d.ts +1 -0
  802. package/lib/node_modules/@pneuma/sandbox/win/token.js +1 -0
  803. package/lib/node_modules/@pneuma/sandbox/win/utf16.d.ts +1 -0
  804. package/lib/node_modules/@pneuma/sandbox/win/utf16.js +1 -0
  805. package/lib/node_modules/@pneuma/sandbox/win/wfp.d.ts +1 -0
  806. package/lib/node_modules/@pneuma/sandbox/win/wfp.js +1 -0
  807. package/lib/node_modules/@pneuma/sandbox/win/workspace-sid.d.ts +1 -0
  808. package/lib/node_modules/@pneuma/sandbox/win/workspace-sid.js +1 -0
  809. package/lib/node_modules/@pneuma/schedule/cordis.patch.yml +5 -0
  810. package/lib/node_modules/@pneuma/schedule/index.d.ts +1 -0
  811. package/lib/node_modules/@pneuma/schedule/index.js +1 -0
  812. package/lib/node_modules/@pneuma/schedule/locale/en.json +4 -0
  813. package/lib/node_modules/@pneuma/schedule/locale/ui.en.json +29 -0
  814. package/lib/node_modules/@pneuma/schedule/locale/ui.zh.json +29 -0
  815. package/lib/node_modules/@pneuma/schedule/package.json +40 -0
  816. package/lib/node_modules/@pneuma/self-improve/cordis.patch.yml +5 -0
  817. package/lib/node_modules/@pneuma/self-improve/index.d.ts +1 -0
  818. package/lib/node_modules/@pneuma/self-improve/index.js +1 -0
  819. package/lib/node_modules/@pneuma/self-improve/ledger.d.ts +1 -0
  820. package/lib/node_modules/@pneuma/self-improve/ledger.js +1 -0
  821. package/lib/node_modules/@pneuma/self-improve/locale/en.json +4 -0
  822. package/lib/node_modules/@pneuma/self-improve/locale/ui.en.json +31 -0
  823. package/lib/node_modules/@pneuma/self-improve/locale/ui.zh.json +31 -0
  824. package/lib/node_modules/@pneuma/self-improve/package.json +41 -0
  825. package/lib/node_modules/@pneuma/self-improve/skill-write.d.ts +1 -0
  826. package/lib/node_modules/@pneuma/self-improve/skill-write.js +1 -0
  827. package/lib/node_modules/@pneuma/self-improve/store.d.ts +1 -0
  828. package/lib/node_modules/@pneuma/self-improve/store.js +1 -0
  829. package/lib/node_modules/@pneuma/session/cordis.patch.yml +4 -0
  830. package/lib/node_modules/@pneuma/session/index.d.ts +1 -0
  831. package/lib/node_modules/@pneuma/session/index.js +1 -0
  832. package/lib/node_modules/@pneuma/session/locale/en.json +4 -0
  833. package/lib/node_modules/@pneuma/session/package.json +38 -0
  834. package/lib/node_modules/@pneuma/session-core/compact.d.ts +1 -0
  835. package/lib/node_modules/@pneuma/session-core/compact.js +1 -0
  836. package/lib/node_modules/@pneuma/session-core/hooks.d.ts +1 -0
  837. package/lib/node_modules/@pneuma/session-core/hooks.js +1 -0
  838. package/lib/node_modules/@pneuma/session-core/index.d.ts +1 -0
  839. package/lib/node_modules/@pneuma/session-core/index.js +1 -0
  840. package/lib/node_modules/@pneuma/session-core/locale/en.json +4 -0
  841. package/lib/node_modules/@pneuma/session-core/loop.d.ts +1 -0
  842. package/lib/node_modules/@pneuma/session-core/loop.js +1 -0
  843. package/lib/node_modules/@pneuma/session-core/modes.d.ts +1 -0
  844. package/lib/node_modules/@pneuma/session-core/modes.js +1 -0
  845. package/lib/node_modules/@pneuma/session-core/package.json +38 -0
  846. package/lib/node_modules/@pneuma/session-core/prompt.d.ts +1 -0
  847. package/lib/node_modules/@pneuma/session-core/prompt.js +1 -0
  848. package/lib/node_modules/@pneuma/session-search/cordis.patch.yml +4 -0
  849. package/lib/node_modules/@pneuma/session-search/index.d.ts +1 -0
  850. package/lib/node_modules/@pneuma/session-search/index.js +1 -0
  851. package/lib/node_modules/@pneuma/session-search/locale/en.json +4 -0
  852. package/lib/node_modules/@pneuma/session-search/locale/ui.en.json +29 -0
  853. package/lib/node_modules/@pneuma/session-search/locale/ui.zh.json +29 -0
  854. package/lib/node_modules/@pneuma/session-search/package.json +40 -0
  855. package/lib/node_modules/@pneuma/session-search/session-index.d.ts +1 -0
  856. package/lib/node_modules/@pneuma/session-search/session-index.js +1 -0
  857. package/lib/node_modules/@pneuma/session-title/cordis.patch.yml +4 -0
  858. package/lib/node_modules/@pneuma/session-title/index.d.ts +1 -0
  859. package/lib/node_modules/@pneuma/session-title/index.js +1 -0
  860. package/lib/node_modules/@pneuma/session-title/locale/en.json +4 -0
  861. package/lib/node_modules/@pneuma/session-title/package.json +38 -0
  862. package/lib/node_modules/@pneuma/settings/connection-test.d.ts +1 -0
  863. package/lib/node_modules/@pneuma/settings/connection-test.js +1 -0
  864. package/lib/node_modules/@pneuma/settings/cordis.patch.yml +4 -0
  865. package/lib/node_modules/@pneuma/settings/index.d.ts +1 -0
  866. package/lib/node_modules/@pneuma/settings/index.js +1 -0
  867. package/lib/node_modules/@pneuma/settings/locale/en.json +4 -0
  868. package/lib/node_modules/@pneuma/settings/locale/ui.en.json +94 -0
  869. package/lib/node_modules/@pneuma/settings/locale/ui.zh.json +94 -0
  870. package/lib/node_modules/@pneuma/settings/model-discovery.d.ts +1 -0
  871. package/lib/node_modules/@pneuma/settings/model-discovery.js +1 -0
  872. package/lib/node_modules/@pneuma/settings/package.json +38 -0
  873. package/lib/node_modules/@pneuma/skills/cordis.patch.yml +4 -0
  874. package/lib/node_modules/@pneuma/skills/index.d.ts +1 -0
  875. package/lib/node_modules/@pneuma/skills/index.js +1 -0
  876. package/lib/node_modules/@pneuma/skills/locale/en.json +4 -0
  877. package/lib/node_modules/@pneuma/skills/package.json +38 -0
  878. package/lib/node_modules/@pneuma/spill/cordis.patch.yml +4 -0
  879. package/lib/node_modules/@pneuma/spill/index.d.ts +1 -0
  880. package/lib/node_modules/@pneuma/spill/index.js +1 -0
  881. package/lib/node_modules/@pneuma/spill/locale/en.json +4 -0
  882. package/lib/node_modules/@pneuma/spill/locale/ui.en.json +31 -0
  883. package/lib/node_modules/@pneuma/spill/locale/ui.zh.json +31 -0
  884. package/lib/node_modules/@pneuma/spill/package.json +40 -0
  885. package/lib/node_modules/@pneuma/subagent/agent-roles.d.ts +1 -0
  886. package/lib/node_modules/@pneuma/subagent/agent-roles.js +1 -0
  887. package/lib/node_modules/@pneuma/subagent/board-snapshot.d.ts +1 -0
  888. package/lib/node_modules/@pneuma/subagent/board-snapshot.js +1 -0
  889. package/lib/node_modules/@pneuma/subagent/cordis.patch.yml +5 -0
  890. package/lib/node_modules/@pneuma/subagent/index.d.ts +1 -0
  891. package/lib/node_modules/@pneuma/subagent/index.js +1 -0
  892. package/lib/node_modules/@pneuma/subagent/locale/en.json +4 -0
  893. package/lib/node_modules/@pneuma/subagent/locale/ui.en.json +51 -0
  894. package/lib/node_modules/@pneuma/subagent/locale/ui.zh.json +51 -0
  895. package/lib/node_modules/@pneuma/subagent/package.json +40 -0
  896. package/lib/node_modules/@pneuma/superagent/app/api.d.ts +1 -0
  897. package/lib/node_modules/@pneuma/superagent/app/api.js +1 -0
  898. package/lib/node_modules/@pneuma/superagent/app/assessment.d.ts +1 -0
  899. package/lib/node_modules/@pneuma/superagent/app/assessment.js +1 -0
  900. package/lib/node_modules/@pneuma/superagent/app/cache.d.ts +1 -0
  901. package/lib/node_modules/@pneuma/superagent/app/cache.js +1 -0
  902. package/lib/node_modules/@pneuma/superagent/app/cards.d.ts +1 -0
  903. package/lib/node_modules/@pneuma/superagent/app/cards.js +1 -0
  904. package/lib/node_modules/@pneuma/superagent/app/context.d.ts +1 -0
  905. package/lib/node_modules/@pneuma/superagent/app/context.js +1 -0
  906. package/lib/node_modules/@pneuma/superagent/app/delivery.d.ts +1 -0
  907. package/lib/node_modules/@pneuma/superagent/app/delivery.js +1 -0
  908. package/lib/node_modules/@pneuma/superagent/app/effects.d.ts +1 -0
  909. package/lib/node_modules/@pneuma/superagent/app/effects.js +1 -0
  910. package/lib/node_modules/@pneuma/superagent/app/execution-environment.d.ts +1 -0
  911. package/lib/node_modules/@pneuma/superagent/app/execution-environment.js +1 -0
  912. package/lib/node_modules/@pneuma/superagent/app/links.d.ts +1 -0
  913. package/lib/node_modules/@pneuma/superagent/app/links.js +1 -0
  914. package/lib/node_modules/@pneuma/superagent/app/migration.d.ts +1 -0
  915. package/lib/node_modules/@pneuma/superagent/app/migration.js +1 -0
  916. package/lib/node_modules/@pneuma/superagent/app/notices.d.ts +1 -0
  917. package/lib/node_modules/@pneuma/superagent/app/notices.js +1 -0
  918. package/lib/node_modules/@pneuma/superagent/app/outbox.d.ts +1 -0
  919. package/lib/node_modules/@pneuma/superagent/app/outbox.js +1 -0
  920. package/lib/node_modules/@pneuma/superagent/app/passes.d.ts +1 -0
  921. package/lib/node_modules/@pneuma/superagent/app/passes.js +1 -0
  922. package/lib/node_modules/@pneuma/superagent/app/prompts.d.ts +1 -0
  923. package/lib/node_modules/@pneuma/superagent/app/prompts.js +1 -0
  924. package/lib/node_modules/@pneuma/superagent/app/resources.d.ts +1 -0
  925. package/lib/node_modules/@pneuma/superagent/app/resources.js +1 -0
  926. package/lib/node_modules/@pneuma/superagent/app/retry-health.d.ts +1 -0
  927. package/lib/node_modules/@pneuma/superagent/app/retry-health.js +1 -0
  928. package/lib/node_modules/@pneuma/superagent/app/role-models.d.ts +1 -0
  929. package/lib/node_modules/@pneuma/superagent/app/role-models.js +1 -0
  930. package/lib/node_modules/@pneuma/superagent/app/runtime.d.ts +1 -0
  931. package/lib/node_modules/@pneuma/superagent/app/runtime.js +1 -0
  932. package/lib/node_modules/@pneuma/superagent/app/sessions.d.ts +1 -0
  933. package/lib/node_modules/@pneuma/superagent/app/sessions.js +1 -0
  934. package/lib/node_modules/@pneuma/superagent/app/settings-history.d.ts +1 -0
  935. package/lib/node_modules/@pneuma/superagent/app/settings-history.js +1 -0
  936. package/lib/node_modules/@pneuma/superagent/app/settings.d.ts +1 -0
  937. package/lib/node_modules/@pneuma/superagent/app/settings.js +1 -0
  938. package/lib/node_modules/@pneuma/superagent/app/setup.d.ts +1 -0
  939. package/lib/node_modules/@pneuma/superagent/app/setup.js +1 -0
  940. package/lib/node_modules/@pneuma/superagent/app/skill-files.d.ts +1 -0
  941. package/lib/node_modules/@pneuma/superagent/app/skill-files.js +1 -0
  942. package/lib/node_modules/@pneuma/superagent/app/source-context.d.ts +1 -0
  943. package/lib/node_modules/@pneuma/superagent/app/source-context.js +1 -0
  944. package/lib/node_modules/@pneuma/superagent/app/store-read.d.ts +1 -0
  945. package/lib/node_modules/@pneuma/superagent/app/store-read.js +1 -0
  946. package/lib/node_modules/@pneuma/superagent/app/store.d.ts +1 -0
  947. package/lib/node_modules/@pneuma/superagent/app/store.js +1 -0
  948. package/lib/node_modules/@pneuma/superagent/app/tools/executor.d.ts +1 -0
  949. package/lib/node_modules/@pneuma/superagent/app/tools/executor.js +1 -0
  950. package/lib/node_modules/@pneuma/superagent/app/tools/main.d.ts +1 -0
  951. package/lib/node_modules/@pneuma/superagent/app/tools/main.js +1 -0
  952. package/lib/node_modules/@pneuma/superagent/app/tools/tool.d.ts +1 -0
  953. package/lib/node_modules/@pneuma/superagent/app/tools/tool.js +1 -0
  954. package/lib/node_modules/@pneuma/superagent/app/versions.d.ts +1 -0
  955. package/lib/node_modules/@pneuma/superagent/app/versions.js +1 -0
  956. package/lib/node_modules/@pneuma/superagent/app/views/overview.d.ts +1 -0
  957. package/lib/node_modules/@pneuma/superagent/app/views/overview.js +1 -0
  958. package/lib/node_modules/@pneuma/superagent/app/views/records.d.ts +1 -0
  959. package/lib/node_modules/@pneuma/superagent/app/views/records.js +1 -0
  960. package/lib/node_modules/@pneuma/superagent/app/views/settings.d.ts +1 -0
  961. package/lib/node_modules/@pneuma/superagent/app/views/settings.js +1 -0
  962. package/lib/node_modules/@pneuma/superagent/app/views/sources.d.ts +1 -0
  963. package/lib/node_modules/@pneuma/superagent/app/views/sources.js +1 -0
  964. package/lib/node_modules/@pneuma/superagent/app/views/text.d.ts +1 -0
  965. package/lib/node_modules/@pneuma/superagent/app/views/text.js +1 -0
  966. package/lib/node_modules/@pneuma/superagent/app/views/threads.d.ts +1 -0
  967. package/lib/node_modules/@pneuma/superagent/app/views/threads.js +1 -0
  968. package/lib/node_modules/@pneuma/superagent/app/views/tickets.d.ts +1 -0
  969. package/lib/node_modules/@pneuma/superagent/app/views/tickets.js +1 -0
  970. package/lib/node_modules/@pneuma/superagent/cordis.patch.yml +7 -0
  971. package/lib/node_modules/@pneuma/superagent/core/admission.d.ts +1 -0
  972. package/lib/node_modules/@pneuma/superagent/core/admission.js +1 -0
  973. package/lib/node_modules/@pneuma/superagent/core/assignments.d.ts +1 -0
  974. package/lib/node_modules/@pneuma/superagent/core/assignments.js +1 -0
  975. package/lib/node_modules/@pneuma/superagent/core/engine.d.ts +1 -0
  976. package/lib/node_modules/@pneuma/superagent/core/engine.js +1 -0
  977. package/lib/node_modules/@pneuma/superagent/core/errors.d.ts +1 -0
  978. package/lib/node_modules/@pneuma/superagent/core/errors.js +1 -0
  979. package/lib/node_modules/@pneuma/superagent/core/evals.d.ts +1 -0
  980. package/lib/node_modules/@pneuma/superagent/core/evals.js +1 -0
  981. package/lib/node_modules/@pneuma/superagent/core/ids.d.ts +1 -0
  982. package/lib/node_modules/@pneuma/superagent/core/ids.js +1 -0
  983. package/lib/node_modules/@pneuma/superagent/core/index.d.ts +1 -0
  984. package/lib/node_modules/@pneuma/superagent/core/index.js +1 -0
  985. package/lib/node_modules/@pneuma/superagent/core/intake.d.ts +1 -0
  986. package/lib/node_modules/@pneuma/superagent/core/intake.js +1 -0
  987. package/lib/node_modules/@pneuma/superagent/core/limits.d.ts +1 -0
  988. package/lib/node_modules/@pneuma/superagent/core/limits.js +1 -0
  989. package/lib/node_modules/@pneuma/superagent/core/memory.d.ts +1 -0
  990. package/lib/node_modules/@pneuma/superagent/core/memory.js +1 -0
  991. package/lib/node_modules/@pneuma/superagent/core/model.d.ts +1 -0
  992. package/lib/node_modules/@pneuma/superagent/core/model.js +1 -0
  993. package/lib/node_modules/@pneuma/superagent/core/part.d.ts +1 -0
  994. package/lib/node_modules/@pneuma/superagent/core/part.js +1 -0
  995. package/lib/node_modules/@pneuma/superagent/core/policy.d.ts +1 -0
  996. package/lib/node_modules/@pneuma/superagent/core/policy.js +1 -0
  997. package/lib/node_modules/@pneuma/superagent/core/ports.d.ts +1 -0
  998. package/lib/node_modules/@pneuma/superagent/core/ports.js +1 -0
  999. package/lib/node_modules/@pneuma/superagent/core/reasons.d.ts +1 -0
  1000. package/lib/node_modules/@pneuma/superagent/core/reasons.js +1 -0
  1001. package/lib/node_modules/@pneuma/superagent/core/replies.d.ts +1 -0
  1002. package/lib/node_modules/@pneuma/superagent/core/replies.js +1 -0
  1003. package/lib/node_modules/@pneuma/superagent/core/stage.d.ts +1 -0
  1004. package/lib/node_modules/@pneuma/superagent/core/stage.js +1 -0
  1005. package/lib/node_modules/@pneuma/superagent/core/tickets.d.ts +1 -0
  1006. package/lib/node_modules/@pneuma/superagent/core/tickets.js +1 -0
  1007. package/lib/node_modules/@pneuma/superagent/deployment.d.ts +1 -0
  1008. package/lib/node_modules/@pneuma/superagent/deployment.js +1 -0
  1009. package/lib/node_modules/@pneuma/superagent/executor/background.d.ts +1 -0
  1010. package/lib/node_modules/@pneuma/superagent/executor/background.js +1 -0
  1011. package/lib/node_modules/@pneuma/superagent/executor/dsh.d.ts +1 -0
  1012. package/lib/node_modules/@pneuma/superagent/executor/dsh.js +1 -0
  1013. package/lib/node_modules/@pneuma/superagent/host/command.d.ts +1 -0
  1014. package/lib/node_modules/@pneuma/superagent/host/command.js +1 -0
  1015. package/lib/node_modules/@pneuma/superagent/host/health.d.ts +1 -0
  1016. package/lib/node_modules/@pneuma/superagent/host/health.js +1 -0
  1017. package/lib/node_modules/@pneuma/superagent/host/settings-section.d.ts +1 -0
  1018. package/lib/node_modules/@pneuma/superagent/host/settings-section.js +1 -0
  1019. package/lib/node_modules/@pneuma/superagent/index.d.ts +1 -0
  1020. package/lib/node_modules/@pneuma/superagent/index.js +1 -0
  1021. package/lib/node_modules/@pneuma/superagent/infra/commands.d.ts +1 -0
  1022. package/lib/node_modules/@pneuma/superagent/infra/commands.js +1 -0
  1023. package/lib/node_modules/@pneuma/superagent/infra/environment.d.ts +1 -0
  1024. package/lib/node_modules/@pneuma/superagent/infra/environment.js +1 -0
  1025. package/lib/node_modules/@pneuma/superagent/infra/health.d.ts +1 -0
  1026. package/lib/node_modules/@pneuma/superagent/infra/health.js +1 -0
  1027. package/lib/node_modules/@pneuma/superagent/infra/text.d.ts +1 -0
  1028. package/lib/node_modules/@pneuma/superagent/infra/text.js +1 -0
  1029. package/lib/node_modules/@pneuma/superagent/kv.d.ts +1 -0
  1030. package/lib/node_modules/@pneuma/superagent/kv.js +1 -0
  1031. package/lib/node_modules/@pneuma/superagent/locale/en.json +4 -0
  1032. package/lib/node_modules/@pneuma/superagent/locale/ui.en.json +26 -0
  1033. package/lib/node_modules/@pneuma/superagent/locale/ui.zh.json +26 -0
  1034. package/lib/node_modules/@pneuma/superagent/package.json +46 -0
  1035. package/lib/node_modules/@pneuma/superagent/paths.d.ts +1 -0
  1036. package/lib/node_modules/@pneuma/superagent/paths.js +1 -0
  1037. package/lib/node_modules/@pneuma/superagent/prompts/admission.md +68 -0
  1038. package/lib/node_modules/@pneuma/superagent/prompts/cli.md +17 -0
  1039. package/lib/node_modules/@pneuma/superagent/prompts/dispatch.md +59 -0
  1040. package/lib/node_modules/@pneuma/superagent/prompts/handoff-orchestrator.md +4 -0
  1041. package/lib/node_modules/@pneuma/superagent/prompts/handoff-worker.md +7 -0
  1042. package/lib/node_modules/@pneuma/superagent/prompts/handoff.md +6 -0
  1043. package/lib/node_modules/@pneuma/superagent/prompts/orchestrator.md +16 -0
  1044. package/lib/node_modules/@pneuma/superagent/prompts/replies.md +35 -0
  1045. package/lib/node_modules/@pneuma/superagent/prompts/shared.md +7 -0
  1046. package/lib/node_modules/@pneuma/superagent/prompts/subscriptions.md +13 -0
  1047. package/lib/node_modules/@pneuma/superagent/prompts/team/communication.md +97 -0
  1048. package/lib/node_modules/@pneuma/superagent/prompts/team/delivery.md +28 -0
  1049. package/lib/node_modules/@pneuma/superagent/prompts/team/scope.md +22 -0
  1050. package/lib/node_modules/@pneuma/superagent/prompts/work.md +49 -0
  1051. package/lib/node_modules/@pneuma/superagent/prompts/worker.md +10 -0
  1052. package/lib/node_modules/@pneuma/superagent/setup.d.ts +1 -0
  1053. package/lib/node_modules/@pneuma/superagent/setup.js +1 -0
  1054. package/lib/node_modules/@pneuma/superagent/skills/dsh-superagent-feishu/SKILL.md +12 -0
  1055. package/lib/node_modules/@pneuma/superagent/skills/dsh-superagent-github/SKILL.md +14 -0
  1056. package/lib/node_modules/@pneuma/superagent/sources/admission-context.d.ts +1 -0
  1057. package/lib/node_modules/@pneuma/superagent/sources/admission-context.js +1 -0
  1058. package/lib/node_modules/@pneuma/superagent/sources/feishu-channel.d.ts +1 -0
  1059. package/lib/node_modules/@pneuma/superagent/sources/feishu-channel.js +1 -0
  1060. package/lib/node_modules/@pneuma/superagent/sources/feishu-image.d.ts +1 -0
  1061. package/lib/node_modules/@pneuma/superagent/sources/feishu-image.js +1 -0
  1062. package/lib/node_modules/@pneuma/superagent/sources/feishu-loops.d.ts +1 -0
  1063. package/lib/node_modules/@pneuma/superagent/sources/feishu-loops.js +1 -0
  1064. package/lib/node_modules/@pneuma/superagent/sources/feishu-read.d.ts +1 -0
  1065. package/lib/node_modules/@pneuma/superagent/sources/feishu-read.js +1 -0
  1066. package/lib/node_modules/@pneuma/superagent/sources/feishu-trigger.d.ts +1 -0
  1067. package/lib/node_modules/@pneuma/superagent/sources/feishu-trigger.js +1 -0
  1068. package/lib/node_modules/@pneuma/superagent/sources/feishu.d.ts +1 -0
  1069. package/lib/node_modules/@pneuma/superagent/sources/feishu.js +1 -0
  1070. package/lib/node_modules/@pneuma/superagent/sources/github-channel.d.ts +1 -0
  1071. package/lib/node_modules/@pneuma/superagent/sources/github-channel.js +1 -0
  1072. package/lib/node_modules/@pneuma/superagent/sources/github-pull.d.ts +1 -0
  1073. package/lib/node_modules/@pneuma/superagent/sources/github-pull.js +1 -0
  1074. package/lib/node_modules/@pneuma/superagent/sources/github-read.d.ts +1 -0
  1075. package/lib/node_modules/@pneuma/superagent/sources/github-read.js +1 -0
  1076. package/lib/node_modules/@pneuma/superagent/sources/github-trigger.d.ts +1 -0
  1077. package/lib/node_modules/@pneuma/superagent/sources/github-trigger.js +1 -0
  1078. package/lib/node_modules/@pneuma/superagent/sources/github.d.ts +1 -0
  1079. package/lib/node_modules/@pneuma/superagent/sources/github.js +1 -0
  1080. package/lib/node_modules/@pneuma/superagent/sources/host.d.ts +1 -0
  1081. package/lib/node_modules/@pneuma/superagent/sources/host.js +1 -0
  1082. package/lib/node_modules/@pneuma/superagent/sources/kind.d.ts +1 -0
  1083. package/lib/node_modules/@pneuma/superagent/sources/kind.js +1 -0
  1084. package/lib/node_modules/@pneuma/superagent/sources/poll.d.ts +1 -0
  1085. package/lib/node_modules/@pneuma/superagent/sources/poll.js +1 -0
  1086. package/lib/node_modules/@pneuma/superagent/sources/registry.d.ts +1 -0
  1087. package/lib/node_modules/@pneuma/superagent/sources/registry.js +1 -0
  1088. package/lib/node_modules/@pneuma/superagent-webhook/cordis.patch.yml +9 -0
  1089. package/lib/node_modules/@pneuma/superagent-webhook/index.d.ts +1 -0
  1090. package/lib/node_modules/@pneuma/superagent-webhook/index.js +1 -0
  1091. package/lib/node_modules/@pneuma/superagent-webhook/locale/en.json +4 -0
  1092. package/lib/node_modules/@pneuma/superagent-webhook/package.json +39 -0
  1093. package/lib/node_modules/@pneuma/superagent-webhook/tests/settings-contract.d.ts +1 -0
  1094. package/lib/node_modules/@pneuma/superagent-webhook/tests/settings-contract.js +1 -0
  1095. package/lib/node_modules/@pneuma/superagent-webhook/webhook.d.ts +1 -0
  1096. package/lib/node_modules/@pneuma/superagent-webhook/webhook.js +1 -0
  1097. package/lib/node_modules/@pneuma/surfaces/cordis.patch.yml +4 -0
  1098. package/lib/node_modules/@pneuma/surfaces/index.d.ts +1 -0
  1099. package/lib/node_modules/@pneuma/surfaces/index.js +1 -0
  1100. package/lib/node_modules/@pneuma/surfaces/locale/en.json +4 -0
  1101. package/lib/node_modules/@pneuma/surfaces/package.json +38 -0
  1102. package/lib/node_modules/@pneuma/surfaces/surface-registry.d.ts +1 -0
  1103. package/lib/node_modules/@pneuma/surfaces/surface-registry.js +1 -0
  1104. package/lib/node_modules/@pneuma/todo/cordis.patch.yml +4 -0
  1105. package/lib/node_modules/@pneuma/todo/index.d.ts +1 -0
  1106. package/lib/node_modules/@pneuma/todo/index.js +1 -0
  1107. package/lib/node_modules/@pneuma/todo/locale/en.json +4 -0
  1108. package/lib/node_modules/@pneuma/todo/locale/ui.en.json +11 -0
  1109. package/lib/node_modules/@pneuma/todo/locale/ui.zh.json +11 -0
  1110. package/lib/node_modules/@pneuma/todo/package.json +39 -0
  1111. package/lib/node_modules/@pneuma/todo/todo.d.ts +1 -0
  1112. package/lib/node_modules/@pneuma/todo/todo.js +1 -0
  1113. package/lib/node_modules/@pneuma/tool-search/cordis.patch.yml +5 -0
  1114. package/lib/node_modules/@pneuma/tool-search/index.d.ts +1 -0
  1115. package/lib/node_modules/@pneuma/tool-search/index.js +1 -0
  1116. package/lib/node_modules/@pneuma/tool-search/locale/en.json +4 -0
  1117. package/lib/node_modules/@pneuma/tool-search/locale/ui.en.json +36 -0
  1118. package/lib/node_modules/@pneuma/tool-search/locale/ui.zh.json +36 -0
  1119. package/lib/node_modules/@pneuma/tool-search/package.json +40 -0
  1120. package/lib/node_modules/@pneuma/tool-search/tool-search.d.ts +1 -0
  1121. package/lib/node_modules/@pneuma/tool-search/tool-search.js +1 -0
  1122. package/lib/node_modules/@pneuma/tools/cordis.patch.yml +4 -0
  1123. package/lib/node_modules/@pneuma/tools/index.d.ts +1 -0
  1124. package/lib/node_modules/@pneuma/tools/index.js +1 -0
  1125. package/lib/node_modules/@pneuma/tools/locale/en.json +4 -0
  1126. package/lib/node_modules/@pneuma/tools/package.json +38 -0
  1127. package/lib/node_modules/@pneuma/tools-default/bash.d.ts +1 -0
  1128. package/lib/node_modules/@pneuma/tools-default/bash.js +1 -0
  1129. package/lib/node_modules/@pneuma/tools-default/cordis.patch.yml +4 -0
  1130. package/lib/node_modules/@pneuma/tools-default/image-tool.d.ts +1 -0
  1131. package/lib/node_modules/@pneuma/tools-default/image-tool.js +1 -0
  1132. package/lib/node_modules/@pneuma/tools-default/index.d.ts +1 -0
  1133. package/lib/node_modules/@pneuma/tools-default/index.js +1 -0
  1134. package/lib/node_modules/@pneuma/tools-default/locale/en.json +4 -0
  1135. package/lib/node_modules/@pneuma/tools-default/locale/ui.en.json +27 -0
  1136. package/lib/node_modules/@pneuma/tools-default/locale/ui.zh.json +27 -0
  1137. package/lib/node_modules/@pneuma/tools-default/package.json +39 -0
  1138. package/lib/node_modules/@pneuma/tools-default/persistent-shell.d.ts +1 -0
  1139. package/lib/node_modules/@pneuma/tools-default/persistent-shell.js +1 -0
  1140. package/lib/node_modules/@pneuma/tools-default/search-tools.d.ts +1 -0
  1141. package/lib/node_modules/@pneuma/tools-default/search-tools.js +1 -0
  1142. package/lib/node_modules/@pneuma/transcript/cordis.patch.yml +4 -0
  1143. package/lib/node_modules/@pneuma/transcript/index.d.ts +1 -0
  1144. package/lib/node_modules/@pneuma/transcript/index.js +1 -0
  1145. package/lib/node_modules/@pneuma/transcript/locale/en.json +4 -0
  1146. package/lib/node_modules/@pneuma/transcript/package.json +38 -0
  1147. package/lib/node_modules/@pneuma/tui/app/AgentsOverlay.d.ts +1 -0
  1148. package/lib/node_modules/@pneuma/tui/app/AgentsOverlay.js +1 -0
  1149. package/lib/node_modules/@pneuma/tui/app/App.d.ts +1 -0
  1150. package/lib/node_modules/@pneuma/tui/app/App.js +1 -0
  1151. package/lib/node_modules/@pneuma/tui/app/ApprovalCard.d.ts +1 -0
  1152. package/lib/node_modules/@pneuma/tui/app/ApprovalCard.js +1 -0
  1153. package/lib/node_modules/@pneuma/tui/app/AskCard.d.ts +1 -0
  1154. package/lib/node_modules/@pneuma/tui/app/AskCard.js +1 -0
  1155. package/lib/node_modules/@pneuma/tui/app/ChatView.d.ts +1 -0
  1156. package/lib/node_modules/@pneuma/tui/app/ChatView.js +1 -0
  1157. package/lib/node_modules/@pneuma/tui/app/Composer.d.ts +1 -0
  1158. package/lib/node_modules/@pneuma/tui/app/Composer.js +1 -0
  1159. package/lib/node_modules/@pneuma/tui/app/DiffBlock.d.ts +1 -0
  1160. package/lib/node_modules/@pneuma/tui/app/DiffBlock.js +1 -0
  1161. package/lib/node_modules/@pneuma/tui/app/MarkdownView.d.ts +1 -0
  1162. package/lib/node_modules/@pneuma/tui/app/MarkdownView.js +1 -0
  1163. package/lib/node_modules/@pneuma/tui/app/ModelPicker.d.ts +1 -0
  1164. package/lib/node_modules/@pneuma/tui/app/ModelPicker.js +1 -0
  1165. package/lib/node_modules/@pneuma/tui/app/PickerFrame.d.ts +1 -0
  1166. package/lib/node_modules/@pneuma/tui/app/PickerFrame.js +1 -0
  1167. package/lib/node_modules/@pneuma/tui/app/PlanReviewCard.d.ts +1 -0
  1168. package/lib/node_modules/@pneuma/tui/app/PlanReviewCard.js +1 -0
  1169. package/lib/node_modules/@pneuma/tui/app/PresetPicker.d.ts +1 -0
  1170. package/lib/node_modules/@pneuma/tui/app/PresetPicker.js +1 -0
  1171. package/lib/node_modules/@pneuma/tui/app/PreviewOverlay.d.ts +1 -0
  1172. package/lib/node_modules/@pneuma/tui/app/PreviewOverlay.js +1 -0
  1173. package/lib/node_modules/@pneuma/tui/app/SessionPicker.d.ts +1 -0
  1174. package/lib/node_modules/@pneuma/tui/app/SessionPicker.js +1 -0
  1175. package/lib/node_modules/@pneuma/tui/app/SettingsOverlay.d.ts +1 -0
  1176. package/lib/node_modules/@pneuma/tui/app/SettingsOverlay.js +1 -0
  1177. package/lib/node_modules/@pneuma/tui/app/SkillsPicker.d.ts +1 -0
  1178. package/lib/node_modules/@pneuma/tui/app/SkillsPicker.js +1 -0
  1179. package/lib/node_modules/@pneuma/tui/app/StatusBar.d.ts +1 -0
  1180. package/lib/node_modules/@pneuma/tui/app/StatusBar.js +1 -0
  1181. package/lib/node_modules/@pneuma/tui/app/TaskStrips.d.ts +1 -0
  1182. package/lib/node_modules/@pneuma/tui/app/TaskStrips.js +1 -0
  1183. package/lib/node_modules/@pneuma/tui/app/TimelineRail.d.ts +1 -0
  1184. package/lib/node_modules/@pneuma/tui/app/TimelineRail.js +1 -0
  1185. package/lib/node_modules/@pneuma/tui/app/ToolCard.d.ts +1 -0
  1186. package/lib/node_modules/@pneuma/tui/app/ToolCard.js +1 -0
  1187. package/lib/node_modules/@pneuma/tui/app/TranscriptOverlay.d.ts +1 -0
  1188. package/lib/node_modules/@pneuma/tui/app/TranscriptOverlay.js +1 -0
  1189. package/lib/node_modules/@pneuma/tui/app/TranscriptViewport.d.ts +1 -0
  1190. package/lib/node_modules/@pneuma/tui/app/TranscriptViewport.js +1 -0
  1191. package/lib/node_modules/@pneuma/tui/app/Welcome.d.ts +1 -0
  1192. package/lib/node_modules/@pneuma/tui/app/Welcome.js +1 -0
  1193. package/lib/node_modules/@pneuma/tui/app/attach.d.ts +1 -0
  1194. package/lib/node_modules/@pneuma/tui/app/attach.js +1 -0
  1195. package/lib/node_modules/@pneuma/tui/app/click.d.ts +1 -0
  1196. package/lib/node_modules/@pneuma/tui/app/click.js +1 -0
  1197. package/lib/node_modules/@pneuma/tui/app/clipboard-image.d.ts +1 -0
  1198. package/lib/node_modules/@pneuma/tui/app/clipboard-image.js +1 -0
  1199. package/lib/node_modules/@pneuma/tui/app/cursor.d.ts +1 -0
  1200. package/lib/node_modules/@pneuma/tui/app/cursor.js +1 -0
  1201. package/lib/node_modules/@pneuma/tui/app/display-width.d.ts +1 -0
  1202. package/lib/node_modules/@pneuma/tui/app/display-width.js +1 -0
  1203. package/lib/node_modules/@pneuma/tui/app/history-store.d.ts +1 -0
  1204. package/lib/node_modules/@pneuma/tui/app/history-store.js +1 -0
  1205. package/lib/node_modules/@pneuma/tui/app/image-blocks.d.ts +1 -0
  1206. package/lib/node_modules/@pneuma/tui/app/image-blocks.js +1 -0
  1207. package/lib/node_modules/@pneuma/tui/app/keymap.d.ts +1 -0
  1208. package/lib/node_modules/@pneuma/tui/app/keymap.js +1 -0
  1209. package/lib/node_modules/@pneuma/tui/app/markdown.d.ts +1 -0
  1210. package/lib/node_modules/@pneuma/tui/app/markdown.js +1 -0
  1211. package/lib/node_modules/@pneuma/tui/app/mouse.d.ts +1 -0
  1212. package/lib/node_modules/@pneuma/tui/app/mouse.js +1 -0
  1213. package/lib/node_modules/@pneuma/tui/app/pointer.d.ts +1 -0
  1214. package/lib/node_modules/@pneuma/tui/app/pointer.js +1 -0
  1215. package/lib/node_modules/@pneuma/tui/app/scroll-model.d.ts +1 -0
  1216. package/lib/node_modules/@pneuma/tui/app/scroll-model.js +1 -0
  1217. package/lib/node_modules/@pneuma/tui/app/settings-model.d.ts +1 -0
  1218. package/lib/node_modules/@pneuma/tui/app/settings-model.js +1 -0
  1219. package/lib/node_modules/@pneuma/tui/app/snapshot-subscribe.d.ts +1 -0
  1220. package/lib/node_modules/@pneuma/tui/app/snapshot-subscribe.js +1 -0
  1221. package/lib/node_modules/@pneuma/tui/app/theme.d.ts +1 -0
  1222. package/lib/node_modules/@pneuma/tui/app/theme.js +1 -0
  1223. package/lib/node_modules/@pneuma/tui/app/ticker.d.ts +1 -0
  1224. package/lib/node_modules/@pneuma/tui/app/ticker.js +1 -0
  1225. package/lib/node_modules/@pneuma/tui/cordis.patch.yml +4 -0
  1226. package/lib/node_modules/@pneuma/tui/index.d.ts +1 -0
  1227. package/lib/node_modules/@pneuma/tui/index.js +1 -0
  1228. package/lib/node_modules/@pneuma/tui/locale/en.json +4 -0
  1229. package/lib/node_modules/@pneuma/tui/package.json +38 -0
  1230. package/lib/node_modules/@pneuma/ui-actions/cordis.patch.yml +5 -0
  1231. package/lib/node_modules/@pneuma/ui-actions/index.d.ts +1 -0
  1232. package/lib/node_modules/@pneuma/ui-actions/index.js +1 -0
  1233. package/lib/node_modules/@pneuma/ui-actions/locale/en.json +4 -0
  1234. package/lib/node_modules/@pneuma/ui-actions/locale/ui.en.json +3 -0
  1235. package/lib/node_modules/@pneuma/ui-actions/locale/ui.zh.json +3 -0
  1236. package/lib/node_modules/@pneuma/ui-actions/package.json +43 -0
  1237. package/lib/node_modules/@pneuma/ui-ask/cordis.patch.yml +5 -0
  1238. package/lib/node_modules/@pneuma/ui-ask/index.d.ts +1 -0
  1239. package/lib/node_modules/@pneuma/ui-ask/index.js +1 -0
  1240. package/lib/node_modules/@pneuma/ui-ask/locale/en.json +4 -0
  1241. package/lib/node_modules/@pneuma/ui-ask/locale/ui.en.json +28 -0
  1242. package/lib/node_modules/@pneuma/ui-ask/locale/ui.zh.json +28 -0
  1243. package/lib/node_modules/@pneuma/ui-ask/package.json +43 -0
  1244. package/lib/node_modules/@pneuma/ui-boot/index.d.ts +1 -0
  1245. package/lib/node_modules/@pneuma/ui-boot/index.js +1 -0
  1246. package/lib/node_modules/@pneuma/ui-boot/locale/en.json +4 -0
  1247. package/lib/node_modules/@pneuma/ui-boot/locale/ui.en.json +28 -0
  1248. package/lib/node_modules/@pneuma/ui-boot/locale/ui.zh.json +28 -0
  1249. package/lib/node_modules/@pneuma/ui-boot/package.json +38 -0
  1250. package/lib/node_modules/@pneuma/ui-browser/cordis.patch.yml +5 -0
  1251. package/lib/node_modules/@pneuma/ui-browser/index.d.ts +1 -0
  1252. package/lib/node_modules/@pneuma/ui-browser/index.js +1 -0
  1253. package/lib/node_modules/@pneuma/ui-browser/locale/en.json +4 -0
  1254. package/lib/node_modules/@pneuma/ui-browser/locale/ui.en.json +17 -0
  1255. package/lib/node_modules/@pneuma/ui-browser/locale/ui.zh.json +17 -0
  1256. package/lib/node_modules/@pneuma/ui-browser/package.json +43 -0
  1257. package/lib/node_modules/@pneuma/ui-composer/cordis.patch.yml +5 -0
  1258. package/lib/node_modules/@pneuma/ui-composer/index.d.ts +1 -0
  1259. package/lib/node_modules/@pneuma/ui-composer/index.js +1 -0
  1260. package/lib/node_modules/@pneuma/ui-composer/locale/en.json +4 -0
  1261. package/lib/node_modules/@pneuma/ui-composer/locale/ui.en.json +161 -0
  1262. package/lib/node_modules/@pneuma/ui-composer/locale/ui.zh.json +161 -0
  1263. package/lib/node_modules/@pneuma/ui-composer/package.json +44 -0
  1264. package/lib/node_modules/@pneuma/ui-core/arrival.d.ts +1 -0
  1265. package/lib/node_modules/@pneuma/ui-core/arrival.js +1 -0
  1266. package/lib/node_modules/@pneuma/ui-core/frames.d.ts +1 -0
  1267. package/lib/node_modules/@pneuma/ui-core/frames.js +1 -0
  1268. package/lib/node_modules/@pneuma/ui-core/i18n.d.ts +1 -0
  1269. package/lib/node_modules/@pneuma/ui-core/i18n.js +1 -0
  1270. package/lib/node_modules/@pneuma/ui-core/index.d.ts +1 -0
  1271. package/lib/node_modules/@pneuma/ui-core/index.js +1 -0
  1272. package/lib/node_modules/@pneuma/ui-core/locale/en.json +4 -0
  1273. package/lib/node_modules/@pneuma/ui-core/package.json +37 -0
  1274. package/lib/node_modules/@pneuma/ui-core/plugin.d.ts +1 -0
  1275. package/lib/node_modules/@pneuma/ui-core/plugin.js +1 -0
  1276. package/lib/node_modules/@pneuma/ui-core/scoped-slots.d.ts +1 -0
  1277. package/lib/node_modules/@pneuma/ui-core/scoped-slots.js +1 -0
  1278. package/lib/node_modules/@pneuma/ui-core/services-react.d.ts +1 -0
  1279. package/lib/node_modules/@pneuma/ui-core/services-react.js +1 -0
  1280. package/lib/node_modules/@pneuma/ui-core/services.d.ts +1 -0
  1281. package/lib/node_modules/@pneuma/ui-core/services.js +1 -0
  1282. package/lib/node_modules/@pneuma/ui-core/signal.d.ts +1 -0
  1283. package/lib/node_modules/@pneuma/ui-core/signal.js +1 -0
  1284. package/lib/node_modules/@pneuma/ui-core/slots-ink.d.ts +1 -0
  1285. package/lib/node_modules/@pneuma/ui-core/slots-ink.js +1 -0
  1286. package/lib/node_modules/@pneuma/ui-core/slots-react.d.ts +1 -0
  1287. package/lib/node_modules/@pneuma/ui-core/slots-react.js +1 -0
  1288. package/lib/node_modules/@pneuma/ui-core/slots.d.ts +1 -0
  1289. package/lib/node_modules/@pneuma/ui-core/slots.js +1 -0
  1290. package/lib/node_modules/@pneuma/ui-core/store.d.ts +1 -0
  1291. package/lib/node_modules/@pneuma/ui-core/store.js +1 -0
  1292. package/lib/node_modules/@pneuma/ui-core/tui-plugin-api.d.ts +1 -0
  1293. package/lib/node_modules/@pneuma/ui-core/tui-plugin-api.js +1 -0
  1294. package/lib/node_modules/@pneuma/ui-core/tui-plugins.d.ts +1 -0
  1295. package/lib/node_modules/@pneuma/ui-core/tui-plugins.js +1 -0
  1296. package/lib/node_modules/@pneuma/ui-dockkit/index.d.ts +1 -0
  1297. package/lib/node_modules/@pneuma/ui-dockkit/index.js +1 -0
  1298. package/lib/node_modules/@pneuma/ui-dockkit/locale/en.json +4 -0
  1299. package/lib/node_modules/@pneuma/ui-dockkit/locale/ui.en.json +21 -0
  1300. package/lib/node_modules/@pneuma/ui-dockkit/locale/ui.zh.json +21 -0
  1301. package/lib/node_modules/@pneuma/ui-dockkit/package.json +33 -0
  1302. package/lib/node_modules/@pneuma/ui-files/cordis.patch.yml +5 -0
  1303. package/lib/node_modules/@pneuma/ui-files/index.d.ts +1 -0
  1304. package/lib/node_modules/@pneuma/ui-files/index.js +1 -0
  1305. package/lib/node_modules/@pneuma/ui-files/locale/en.json +4 -0
  1306. package/lib/node_modules/@pneuma/ui-files/locale/ui.en.json +43 -0
  1307. package/lib/node_modules/@pneuma/ui-files/locale/ui.zh.json +43 -0
  1308. package/lib/node_modules/@pneuma/ui-files/package.json +43 -0
  1309. package/lib/node_modules/@pneuma/ui-layout/cordis.patch.yml +7 -0
  1310. package/lib/node_modules/@pneuma/ui-layout/index.d.ts +1 -0
  1311. package/lib/node_modules/@pneuma/ui-layout/index.js +1 -0
  1312. package/lib/node_modules/@pneuma/ui-layout/locale/en.json +4 -0
  1313. package/lib/node_modules/@pneuma/ui-layout/locale/ui.en.json +112 -0
  1314. package/lib/node_modules/@pneuma/ui-layout/locale/ui.zh.json +112 -0
  1315. package/lib/node_modules/@pneuma/ui-layout/package.json +44 -0
  1316. package/lib/node_modules/@pneuma/ui-palette/cordis.patch.yml +5 -0
  1317. package/lib/node_modules/@pneuma/ui-palette/index.d.ts +1 -0
  1318. package/lib/node_modules/@pneuma/ui-palette/index.js +1 -0
  1319. package/lib/node_modules/@pneuma/ui-palette/locale/en.json +4 -0
  1320. package/lib/node_modules/@pneuma/ui-palette/locale/ui.en.json +35 -0
  1321. package/lib/node_modules/@pneuma/ui-palette/locale/ui.zh.json +35 -0
  1322. package/lib/node_modules/@pneuma/ui-palette/package.json +43 -0
  1323. package/lib/node_modules/@pneuma/ui-plugins/cordis.patch.yml +5 -0
  1324. package/lib/node_modules/@pneuma/ui-plugins/index.d.ts +1 -0
  1325. package/lib/node_modules/@pneuma/ui-plugins/index.js +1 -0
  1326. package/lib/node_modules/@pneuma/ui-plugins/locale/en.json +4 -0
  1327. package/lib/node_modules/@pneuma/ui-plugins/locale/ui.en.json +134 -0
  1328. package/lib/node_modules/@pneuma/ui-plugins/locale/ui.zh.json +134 -0
  1329. package/lib/node_modules/@pneuma/ui-plugins/package.json +43 -0
  1330. package/lib/node_modules/@pneuma/ui-preview/cordis.patch.yml +5 -0
  1331. package/lib/node_modules/@pneuma/ui-preview/index.d.ts +1 -0
  1332. package/lib/node_modules/@pneuma/ui-preview/index.js +1 -0
  1333. package/lib/node_modules/@pneuma/ui-preview/locale/en.json +4 -0
  1334. package/lib/node_modules/@pneuma/ui-preview/locale/ui.en.json +29 -0
  1335. package/lib/node_modules/@pneuma/ui-preview/locale/ui.zh.json +29 -0
  1336. package/lib/node_modules/@pneuma/ui-preview/package.json +43 -0
  1337. package/lib/node_modules/@pneuma/ui-primitives/index.d.ts +1 -0
  1338. package/lib/node_modules/@pneuma/ui-primitives/index.js +1 -0
  1339. package/lib/node_modules/@pneuma/ui-primitives/locale/en.json +4 -0
  1340. package/lib/node_modules/@pneuma/ui-primitives/locale/ui.en.json +167 -0
  1341. package/lib/node_modules/@pneuma/ui-primitives/locale/ui.zh.json +167 -0
  1342. package/lib/node_modules/@pneuma/ui-primitives/package.json +33 -0
  1343. package/lib/node_modules/@pneuma/ui-prompt/cordis.patch.yml +5 -0
  1344. package/lib/node_modules/@pneuma/ui-prompt/index.d.ts +1 -0
  1345. package/lib/node_modules/@pneuma/ui-prompt/index.js +1 -0
  1346. package/lib/node_modules/@pneuma/ui-prompt/locale/en.json +4 -0
  1347. package/lib/node_modules/@pneuma/ui-prompt/locale/ui.en.json +73 -0
  1348. package/lib/node_modules/@pneuma/ui-prompt/locale/ui.zh.json +73 -0
  1349. package/lib/node_modules/@pneuma/ui-prompt/package.json +43 -0
  1350. package/lib/node_modules/@pneuma/ui-renderer/cordis.patch.yml +7 -0
  1351. package/lib/node_modules/@pneuma/ui-renderer/index.d.ts +1 -0
  1352. package/lib/node_modules/@pneuma/ui-renderer/index.js +1 -0
  1353. package/lib/node_modules/@pneuma/ui-renderer/locale/en.json +4 -0
  1354. package/lib/node_modules/@pneuma/ui-renderer/locale/ui.en.json +14 -0
  1355. package/lib/node_modules/@pneuma/ui-renderer/locale/ui.zh.json +14 -0
  1356. package/lib/node_modules/@pneuma/ui-renderer/package.json +45 -0
  1357. package/lib/node_modules/@pneuma/ui-runtime/index.d.ts +1 -0
  1358. package/lib/node_modules/@pneuma/ui-runtime/index.js +1 -0
  1359. package/lib/node_modules/@pneuma/ui-runtime/locale/en.json +4 -0
  1360. package/lib/node_modules/@pneuma/ui-runtime/locale/ui.en.json +5 -0
  1361. package/lib/node_modules/@pneuma/ui-runtime/locale/ui.zh.json +5 -0
  1362. package/lib/node_modules/@pneuma/ui-runtime/package.json +33 -0
  1363. package/lib/node_modules/@pneuma/ui-sessions/cordis.patch.yml +5 -0
  1364. package/lib/node_modules/@pneuma/ui-sessions/index.d.ts +1 -0
  1365. package/lib/node_modules/@pneuma/ui-sessions/index.js +1 -0
  1366. package/lib/node_modules/@pneuma/ui-sessions/locale/en.json +4 -0
  1367. package/lib/node_modules/@pneuma/ui-sessions/locale/ui.en.json +119 -0
  1368. package/lib/node_modules/@pneuma/ui-sessions/locale/ui.zh.json +119 -0
  1369. package/lib/node_modules/@pneuma/ui-sessions/package.json +43 -0
  1370. package/lib/node_modules/@pneuma/ui-settings/cordis.patch.yml +5 -0
  1371. package/lib/node_modules/@pneuma/ui-settings/index.d.ts +1 -0
  1372. package/lib/node_modules/@pneuma/ui-settings/index.js +1 -0
  1373. package/lib/node_modules/@pneuma/ui-settings/locale/en.json +4 -0
  1374. package/lib/node_modules/@pneuma/ui-settings/locale/ui.en.json +490 -0
  1375. package/lib/node_modules/@pneuma/ui-settings/locale/ui.zh.json +490 -0
  1376. package/lib/node_modules/@pneuma/ui-settings/package.json +43 -0
  1377. package/lib/node_modules/@pneuma/ui-skills/cordis.patch.yml +5 -0
  1378. package/lib/node_modules/@pneuma/ui-skills/index.d.ts +1 -0
  1379. package/lib/node_modules/@pneuma/ui-skills/index.js +1 -0
  1380. package/lib/node_modules/@pneuma/ui-skills/locale/en.json +4 -0
  1381. package/lib/node_modules/@pneuma/ui-skills/locale/ui.en.json +93 -0
  1382. package/lib/node_modules/@pneuma/ui-skills/locale/ui.zh.json +93 -0
  1383. package/lib/node_modules/@pneuma/ui-skills/package.json +43 -0
  1384. package/lib/node_modules/@pneuma/ui-slots/index.d.ts +1 -0
  1385. package/lib/node_modules/@pneuma/ui-slots/index.js +1 -0
  1386. package/lib/node_modules/@pneuma/ui-slots/locale/en.json +4 -0
  1387. package/lib/node_modules/@pneuma/ui-slots/locale/ui.en.json +4 -0
  1388. package/lib/node_modules/@pneuma/ui-slots/locale/ui.zh.json +4 -0
  1389. package/lib/node_modules/@pneuma/ui-slots/package.json +33 -0
  1390. package/lib/node_modules/@pneuma/ui-status/cordis.patch.yml +5 -0
  1391. package/lib/node_modules/@pneuma/ui-status/index.d.ts +1 -0
  1392. package/lib/node_modules/@pneuma/ui-status/index.js +1 -0
  1393. package/lib/node_modules/@pneuma/ui-status/locale/en.json +4 -0
  1394. package/lib/node_modules/@pneuma/ui-status/locale/ui.en.json +134 -0
  1395. package/lib/node_modules/@pneuma/ui-status/locale/ui.zh.json +134 -0
  1396. package/lib/node_modules/@pneuma/ui-status/package.json +43 -0
  1397. package/lib/node_modules/@pneuma/ui-statusbar/cordis.patch.yml +5 -0
  1398. package/lib/node_modules/@pneuma/ui-statusbar/index.d.ts +1 -0
  1399. package/lib/node_modules/@pneuma/ui-statusbar/index.js +1 -0
  1400. package/lib/node_modules/@pneuma/ui-statusbar/locale/en.json +4 -0
  1401. package/lib/node_modules/@pneuma/ui-statusbar/locale/ui.en.json +33 -0
  1402. package/lib/node_modules/@pneuma/ui-statusbar/locale/ui.zh.json +33 -0
  1403. package/lib/node_modules/@pneuma/ui-statusbar/package.json +44 -0
  1404. package/lib/node_modules/@pneuma/ui-superagent/cordis.patch.yml +10 -0
  1405. package/lib/node_modules/@pneuma/ui-superagent/index.d.ts +1 -0
  1406. package/lib/node_modules/@pneuma/ui-superagent/index.js +1 -0
  1407. package/lib/node_modules/@pneuma/ui-superagent/locale/en.json +4 -0
  1408. package/lib/node_modules/@pneuma/ui-superagent/locale/ui.en.json +117 -0
  1409. package/lib/node_modules/@pneuma/ui-superagent/locale/ui.zh.json +117 -0
  1410. package/lib/node_modules/@pneuma/ui-superagent/package.json +43 -0
  1411. package/lib/node_modules/@pneuma/ui-tasks/cordis.patch.yml +5 -0
  1412. package/lib/node_modules/@pneuma/ui-tasks/index.d.ts +1 -0
  1413. package/lib/node_modules/@pneuma/ui-tasks/index.js +1 -0
  1414. package/lib/node_modules/@pneuma/ui-tasks/locale/en.json +4 -0
  1415. package/lib/node_modules/@pneuma/ui-tasks/locale/ui.en.json +22 -0
  1416. package/lib/node_modules/@pneuma/ui-tasks/locale/ui.zh.json +22 -0
  1417. package/lib/node_modules/@pneuma/ui-tasks/package.json +43 -0
  1418. package/lib/node_modules/@pneuma/ui-team/cordis.patch.yml +5 -0
  1419. package/lib/node_modules/@pneuma/ui-team/index.d.ts +1 -0
  1420. package/lib/node_modules/@pneuma/ui-team/index.js +1 -0
  1421. package/lib/node_modules/@pneuma/ui-team/locale/en.json +4 -0
  1422. package/lib/node_modules/@pneuma/ui-team/locale/ui.en.json +19 -0
  1423. package/lib/node_modules/@pneuma/ui-team/locale/ui.zh.json +19 -0
  1424. package/lib/node_modules/@pneuma/ui-team/package.json +43 -0
  1425. package/lib/node_modules/@pneuma/ui-terminal/cordis.patch.yml +5 -0
  1426. package/lib/node_modules/@pneuma/ui-terminal/index.d.ts +1 -0
  1427. package/lib/node_modules/@pneuma/ui-terminal/index.js +1 -0
  1428. package/lib/node_modules/@pneuma/ui-terminal/locale/en.json +4 -0
  1429. package/lib/node_modules/@pneuma/ui-terminal/locale/ui.en.json +9 -0
  1430. package/lib/node_modules/@pneuma/ui-terminal/locale/ui.zh.json +9 -0
  1431. package/lib/node_modules/@pneuma/ui-terminal/package.json +43 -0
  1432. package/lib/node_modules/@pneuma/ui-trace/cordis.patch.yml +5 -0
  1433. package/lib/node_modules/@pneuma/ui-trace/index.d.ts +1 -0
  1434. package/lib/node_modules/@pneuma/ui-trace/index.js +1 -0
  1435. package/lib/node_modules/@pneuma/ui-trace/locale/en.json +4 -0
  1436. package/lib/node_modules/@pneuma/ui-trace/locale/ui.en.json +118 -0
  1437. package/lib/node_modules/@pneuma/ui-trace/locale/ui.zh.json +118 -0
  1438. package/lib/node_modules/@pneuma/ui-trace/package.json +46 -0
  1439. package/lib/node_modules/@pneuma/ui-transcript/cordis.patch.yml +4 -0
  1440. package/lib/node_modules/@pneuma/ui-transcript/index.d.ts +1 -0
  1441. package/lib/node_modules/@pneuma/ui-transcript/index.js +1 -0
  1442. package/lib/node_modules/@pneuma/ui-transcript/locale/en.json +4 -0
  1443. package/lib/node_modules/@pneuma/ui-transcript/locale/ui.en.json +281 -0
  1444. package/lib/node_modules/@pneuma/ui-transcript/locale/ui.zh.json +281 -0
  1445. package/lib/node_modules/@pneuma/ui-transcript/package.json +43 -0
  1446. package/lib/node_modules/@pneuma/waiting/cordis.patch.yml +4 -0
  1447. package/lib/node_modules/@pneuma/waiting/index.d.ts +1 -0
  1448. package/lib/node_modules/@pneuma/waiting/index.js +1 -0
  1449. package/lib/node_modules/@pneuma/waiting/locale/en.json +4 -0
  1450. package/lib/node_modules/@pneuma/waiting/package.json +38 -0
  1451. package/lib/node_modules/@pneuma/web-fetch/cordis.patch.yml +4 -0
  1452. package/lib/node_modules/@pneuma/web-fetch/html.d.ts +1 -0
  1453. package/lib/node_modules/@pneuma/web-fetch/html.js +1 -0
  1454. package/lib/node_modules/@pneuma/web-fetch/http.d.ts +1 -0
  1455. package/lib/node_modules/@pneuma/web-fetch/http.js +1 -0
  1456. package/lib/node_modules/@pneuma/web-fetch/index.d.ts +1 -0
  1457. package/lib/node_modules/@pneuma/web-fetch/index.js +1 -0
  1458. package/lib/node_modules/@pneuma/web-fetch/locale/en.json +4 -0
  1459. package/lib/node_modules/@pneuma/web-fetch/locale/ui.en.json +14 -0
  1460. package/lib/node_modules/@pneuma/web-fetch/locale/ui.zh.json +14 -0
  1461. package/lib/node_modules/@pneuma/web-fetch/package.json +40 -0
  1462. package/lib/node_modules/@pneuma/web-search/cordis.patch.yml +4 -0
  1463. package/lib/node_modules/@pneuma/web-search/index.d.ts +1 -0
  1464. package/lib/node_modules/@pneuma/web-search/index.js +1 -0
  1465. package/lib/node_modules/@pneuma/web-search/locale/en.json +4 -0
  1466. package/lib/node_modules/@pneuma/web-search/locale/ui.en.json +30 -0
  1467. package/lib/node_modules/@pneuma/web-search/locale/ui.zh.json +30 -0
  1468. package/lib/node_modules/@pneuma/web-search/package.json +40 -0
  1469. package/lib/node_modules/@pneuma/webserver/cordis.patch.yml +4 -0
  1470. package/lib/node_modules/@pneuma/webserver/index.d.ts +1 -0
  1471. package/lib/node_modules/@pneuma/webserver/index.js +1 -0
  1472. package/lib/node_modules/@pneuma/webserver/locale/en.json +4 -0
  1473. package/lib/node_modules/@pneuma/webserver/package.json +38 -0
  1474. package/lib/packages/agent/cache-probe.d.ts +56 -0
  1475. package/lib/packages/agent/cache-probe.js +169 -0
  1476. package/lib/packages/agent/index.d.ts +21 -0
  1477. package/lib/packages/agent/index.js +511 -0
  1478. package/lib/packages/agent/locale/en.json +4 -0
  1479. package/lib/packages/approval/approval.d.ts +11 -0
  1480. package/lib/packages/approval/approval.js +11 -0
  1481. package/lib/packages/approval/call-meaning.js +347 -0
  1482. package/lib/packages/approval/index.d.ts +26 -0
  1483. package/lib/packages/approval/index.js +1413 -0
  1484. package/lib/packages/approval/locale/en.json +4 -0
  1485. package/lib/packages/approval-floor/approval-floor.d.ts +192 -0
  1486. package/lib/packages/approval-floor/approval-floor.js +851 -0
  1487. package/lib/packages/approval-floor/index.js +236 -0
  1488. package/lib/packages/approval-floor/locale/en.json +4 -0
  1489. package/lib/packages/approval-floor/locale/ui.en.json +28 -0
  1490. package/lib/packages/approval-floor/locale/ui.zh.json +28 -0
  1491. package/lib/packages/ask/index.js +298 -0
  1492. package/lib/packages/ask/locale/en.json +4 -0
  1493. package/lib/packages/browser/index.d.ts +72 -0
  1494. package/lib/packages/browser/index.js +1286 -0
  1495. package/lib/packages/browser/locale/en.json +4 -0
  1496. package/lib/packages/browser/locale/ui.en.json +61 -0
  1497. package/lib/packages/browser/locale/ui.zh.json +61 -0
  1498. package/lib/packages/cdp/actions.js +655 -0
  1499. package/lib/packages/cdp/cloud-metadata.d.ts +9 -0
  1500. package/lib/packages/cdp/cloud-metadata.js +16 -0
  1501. package/lib/packages/cdp/index.d.ts +21 -0
  1502. package/lib/packages/cdp/index.js +21 -0
  1503. package/lib/packages/cdp/launch.js +491 -0
  1504. package/lib/packages/cdp/locale/en.json +4 -0
  1505. package/lib/packages/cdp/report.d.ts +42 -0
  1506. package/lib/packages/cdp/report.js +76 -0
  1507. package/lib/packages/cdp/ring-buffer.d.ts +25 -0
  1508. package/lib/packages/cdp/ring-buffer.js +44 -0
  1509. package/lib/packages/cdp/snapshot.d.ts +139 -0
  1510. package/lib/packages/cdp/snapshot.js +312 -0
  1511. package/lib/packages/cdp/transport.d.ts +147 -0
  1512. package/lib/packages/cdp/transport.js +359 -0
  1513. package/lib/packages/checkpoint/index.d.ts +21 -0
  1514. package/lib/packages/checkpoint/index.js +360 -0
  1515. package/lib/packages/checkpoint/locale/en.json +4 -0
  1516. package/lib/packages/checkpoint/locale/ui.en.json +15 -0
  1517. package/lib/packages/checkpoint/locale/ui.zh.json +15 -0
  1518. package/lib/packages/checkpoint/shadow.d.ts +166 -0
  1519. package/lib/packages/checkpoint/shadow.js +832 -0
  1520. package/lib/packages/cli/config-cli.js +89 -0
  1521. package/lib/packages/cli/index.d.ts +20 -0
  1522. package/lib/packages/cli/index.js +18 -0
  1523. package/lib/packages/cli/locale/en.json +4 -0
  1524. package/lib/packages/cli/plugin-cli.js +626 -0
  1525. package/lib/packages/cli/pnpm-builds.d.ts +26 -0
  1526. package/lib/packages/cli/pnpm-builds.js +68 -0
  1527. package/lib/packages/commands/index.d.ts +28 -0
  1528. package/lib/packages/commands/index.js +620 -0
  1529. package/lib/packages/commands/locale/en.json +4 -0
  1530. package/lib/packages/commands/session-export.d.ts +18 -0
  1531. package/lib/packages/commands/session-export.js +73 -0
  1532. package/lib/packages/commands-core/commands-completion.d.ts +106 -0
  1533. package/lib/packages/commands-core/commands-completion.js +245 -0
  1534. package/lib/packages/commands-core/index.d.ts +16 -0
  1535. package/lib/packages/commands-core/index.js +16 -0
  1536. package/lib/packages/commands-core/locale/en.json +4 -0
  1537. package/lib/packages/compact/index.d.ts +21 -0
  1538. package/lib/packages/compact/index.js +457 -0
  1539. package/lib/packages/compact/locale/en.json +4 -0
  1540. package/lib/packages/compact/locale/ui.en.json +24 -0
  1541. package/lib/packages/compact/locale/ui.zh.json +24 -0
  1542. package/lib/packages/computer-use/desktop-control.d.ts +298 -0
  1543. package/lib/packages/computer-use/desktop-control.js +1309 -0
  1544. package/lib/packages/computer-use/index.d.ts +47 -0
  1545. package/lib/packages/computer-use/index.js +564 -0
  1546. package/lib/packages/computer-use/locale/en.json +4 -0
  1547. package/lib/packages/computer-use/locale/ui.en.json +41 -0
  1548. package/lib/packages/computer-use/locale/ui.zh.json +41 -0
  1549. package/lib/packages/config-core/index.d.ts +15 -0
  1550. package/lib/packages/config-core/index.js +15 -0
  1551. package/lib/packages/config-core/locale/en.json +4 -0
  1552. package/lib/packages/config-core/market.d.ts +107 -0
  1553. package/lib/packages/config-core/market.js +730 -0
  1554. package/lib/packages/config-core/presets.d.ts +104 -0
  1555. package/lib/packages/config-core/presets.js +423 -0
  1556. package/lib/packages/desktop-dock/index.d.ts +13 -0
  1557. package/lib/packages/desktop-dock/index.js +719 -0
  1558. package/lib/packages/desktop-dock/locale/en.json +4 -0
  1559. package/lib/packages/desktop-dock/locale/ui.en.json +11 -0
  1560. package/lib/packages/desktop-dock/locale/ui.zh.json +11 -0
  1561. package/lib/packages/dock-browser/index.d.ts +38 -0
  1562. package/lib/packages/dock-browser/index.js +898 -0
  1563. package/lib/packages/dock-browser/locale/en.json +4 -0
  1564. package/lib/packages/dock-browser/locale/ui.en.json +10 -0
  1565. package/lib/packages/dock-browser/locale/ui.zh.json +10 -0
  1566. package/lib/packages/doctor/bundle.d.ts +93 -0
  1567. package/lib/packages/doctor/bundle.js +159 -0
  1568. package/lib/packages/doctor/checks/data.d.ts +19 -0
  1569. package/lib/packages/doctor/checks/data.js +143 -0
  1570. package/lib/packages/doctor/checks/ecosystem.d.ts +12 -0
  1571. package/lib/packages/doctor/checks/ecosystem.js +125 -0
  1572. package/lib/packages/doctor/checks/environment.d.ts +9 -0
  1573. package/lib/packages/doctor/checks/environment.js +130 -0
  1574. package/lib/packages/doctor/checks/util.d.ts +27 -0
  1575. package/lib/packages/doctor/checks/util.js +100 -0
  1576. package/lib/packages/doctor/index.d.ts +26 -0
  1577. package/lib/packages/doctor/index.js +168 -0
  1578. package/lib/packages/doctor/locale/en.json +4 -0
  1579. package/lib/packages/dsh-compat/index.js +44 -0
  1580. package/lib/packages/dsh-compat/locale/en.json +4 -0
  1581. package/lib/packages/git/index.js +177 -0
  1582. package/lib/packages/git/locale/en.json +4 -0
  1583. package/lib/packages/goal/goal.d.ts +77 -0
  1584. package/lib/packages/goal/index.d.ts +22 -0
  1585. package/lib/packages/goal/index.js +333 -0
  1586. package/lib/packages/goal/locale/en.json +4 -0
  1587. package/lib/packages/goal/locale/ui.en.json +10 -0
  1588. package/lib/packages/goal/locale/ui.zh.json +10 -0
  1589. package/lib/packages/guards/index.js +22 -0
  1590. package/lib/packages/guards/locale/en.json +4 -0
  1591. package/lib/packages/hooks/index.d.ts +26 -0
  1592. package/lib/packages/hooks/index.js +966 -0
  1593. package/lib/packages/hooks/lifecycle-hooks.d.ts +217 -0
  1594. package/lib/packages/hooks/lifecycle-hooks.js +608 -0
  1595. package/lib/packages/hooks/locale/en.json +4 -0
  1596. package/lib/packages/hooks/locale/ui.en.json +111 -0
  1597. package/lib/packages/hooks/locale/ui.zh.json +111 -0
  1598. package/lib/packages/host-stdio/index.d.ts +88 -0
  1599. package/lib/packages/host-stdio/index.js +330 -0
  1600. package/lib/packages/host-stdio/locale/en.json +4 -0
  1601. package/lib/packages/image-diet/index.js +92 -0
  1602. package/lib/packages/image-diet/locale/en.json +4 -0
  1603. package/lib/packages/image-diet/locale/ui.en.json +14 -0
  1604. package/lib/packages/image-diet/locale/ui.zh.json +14 -0
  1605. package/lib/packages/llm/index.d.ts +13 -0
  1606. package/lib/packages/llm/index.js +275 -0
  1607. package/lib/packages/llm/locale/en.json +4 -0
  1608. package/lib/packages/log/filter.d.ts +37 -0
  1609. package/lib/packages/log/filter.js +43 -0
  1610. package/lib/packages/log/index.d.ts +30 -0
  1611. package/lib/packages/log/index.js +311 -0
  1612. package/lib/packages/log/locale/en.json +4 -0
  1613. package/lib/packages/log/locale/ui.en.json +30 -0
  1614. package/lib/packages/log/locale/ui.zh.json +30 -0
  1615. package/lib/packages/log/sink.d.ts +91 -0
  1616. package/lib/packages/log/sink.js +286 -0
  1617. package/lib/packages/lsp/client.js +703 -0
  1618. package/lib/packages/lsp/index.d.ts +54 -0
  1619. package/lib/packages/lsp/index.js +616 -0
  1620. package/lib/packages/lsp/locale/en.json +4 -0
  1621. package/lib/packages/lsp/locale/ui.en.json +17 -0
  1622. package/lib/packages/lsp/locale/ui.zh.json +17 -0
  1623. package/lib/packages/lsp/manager.js +418 -0
  1624. package/lib/packages/lsp/normalize.js +134 -0
  1625. package/lib/packages/lsp/servers.js +349 -0
  1626. package/lib/packages/mcp/index.js +717 -0
  1627. package/lib/packages/mcp/locale/en.json +4 -0
  1628. package/lib/packages/mcp/locale/ui.en.json +28 -0
  1629. package/lib/packages/mcp/locale/ui.zh.json +28 -0
  1630. package/lib/packages/mcp/mcp.d.ts +207 -0
  1631. package/lib/packages/mcp/mcp.js +807 -0
  1632. package/lib/packages/memory/index.d.ts +36 -0
  1633. package/lib/packages/memory/index.js +930 -0
  1634. package/lib/packages/memory/locale/en.json +4 -0
  1635. package/lib/packages/memory/locale/ui.en.json +67 -0
  1636. package/lib/packages/memory/locale/ui.zh.json +67 -0
  1637. package/lib/packages/memory/memory.d.ts +187 -0
  1638. package/lib/packages/memory/memory.js +704 -0
  1639. package/lib/packages/microcompact/index.d.ts +31 -0
  1640. package/lib/packages/microcompact/index.js +261 -0
  1641. package/lib/packages/microcompact/locale/en.json +4 -0
  1642. package/lib/packages/microcompact/locale/ui.en.json +20 -0
  1643. package/lib/packages/microcompact/locale/ui.zh.json +20 -0
  1644. package/lib/packages/microcompact/microcompact.d.ts +142 -0
  1645. package/lib/packages/microcompact/microcompact.js +268 -0
  1646. package/lib/packages/mode/index.d.ts +18 -0
  1647. package/lib/packages/mode/index.js +138 -0
  1648. package/lib/packages/mode/locale/en.json +4 -0
  1649. package/lib/packages/ops/index.d.ts +36 -0
  1650. package/lib/packages/ops/index.js +187 -0
  1651. package/lib/packages/ops/locale/en.json +4 -0
  1652. package/lib/packages/ops/locale/ui.en.json +21 -0
  1653. package/lib/packages/ops/locale/ui.zh.json +21 -0
  1654. package/lib/packages/ops/render.d.ts +43 -0
  1655. package/lib/packages/ops/render.js +324 -0
  1656. package/lib/packages/ops/tools.d.ts +17 -0
  1657. package/lib/packages/ops/tools.js +640 -0
  1658. package/lib/packages/ops/worker.d.ts +63 -0
  1659. package/lib/packages/ops/worker.js +294 -0
  1660. package/lib/packages/permission-core/index.d.ts +15 -0
  1661. package/lib/packages/permission-core/index.js +15 -0
  1662. package/lib/packages/permission-core/locale/en.json +4 -0
  1663. package/lib/packages/permission-core/permission-presets.d.ts +71 -0
  1664. package/lib/packages/permission-core/permission-scope.d.ts +65 -0
  1665. package/lib/packages/permission-core/permission-scope.js +109 -0
  1666. package/lib/packages/permission-presets/index.d.ts +19 -0
  1667. package/lib/packages/permission-presets/index.js +176 -0
  1668. package/lib/packages/permission-presets/locale/en.json +4 -0
  1669. package/lib/packages/permission-presets/locale/ui.en.json +10 -0
  1670. package/lib/packages/permission-presets/locale/ui.zh.json +10 -0
  1671. package/lib/packages/plan/index.js +261 -0
  1672. package/lib/packages/plan/locale/en.json +4 -0
  1673. package/lib/packages/plugin-manager/index.js +217 -0
  1674. package/lib/packages/plugin-manager/locale/en.json +4 -0
  1675. package/lib/packages/presets/index.js +243 -0
  1676. package/lib/packages/presets/locale/en.json +4 -0
  1677. package/lib/packages/presets/locale/ui.en.json +10 -0
  1678. package/lib/packages/presets/locale/ui.zh.json +10 -0
  1679. package/lib/packages/prompt/index.d.ts +25 -0
  1680. package/lib/packages/prompt/index.js +441 -0
  1681. package/lib/packages/prompt/locale/en.json +4 -0
  1682. package/lib/packages/prompt/tool-result-prune.d.ts +93 -0
  1683. package/lib/packages/prompt/tool-result-prune.js +212 -0
  1684. package/lib/packages/ptc/index.js +377 -0
  1685. package/lib/packages/ptc/locale/en.json +4 -0
  1686. package/lib/packages/remote/http.d.ts +11 -0
  1687. package/lib/packages/remote/http.js +11 -0
  1688. package/lib/packages/remote/index.d.ts +17 -0
  1689. package/lib/packages/remote/index.js +1189 -0
  1690. package/lib/packages/remote/locale/en.json +4 -0
  1691. package/lib/packages/remote/locale/ui.en.json +76 -0
  1692. package/lib/packages/remote/locale/ui.zh.json +76 -0
  1693. package/lib/packages/remote/routes.js +384 -0
  1694. package/lib/packages/remote/types.d.ts +135 -0
  1695. package/lib/packages/remote/types.js +102 -0
  1696. package/lib/packages/runtime/index.js +678 -0
  1697. package/lib/packages/runtime/locale/en.json +4 -0
  1698. package/lib/packages/runtime-api/index.js +126 -0
  1699. package/lib/packages/runtime-api/inspect.d.ts +29 -0
  1700. package/lib/packages/runtime-api/inspect.js +73 -0
  1701. package/lib/packages/runtime-api/locale/en.json +4 -0
  1702. package/lib/packages/sandbox/backends.d.ts +64 -0
  1703. package/lib/packages/sandbox/execpolicy.d.ts +74 -0
  1704. package/lib/packages/sandbox/execpolicy.js +244 -0
  1705. package/lib/packages/sandbox/index.js +1132 -0
  1706. package/lib/packages/sandbox/locale/en.json +4 -0
  1707. package/lib/packages/sandbox/locale/ui.en.json +78 -0
  1708. package/lib/packages/sandbox/locale/ui.zh.json +78 -0
  1709. package/lib/packages/sandbox/net-proxy.js +202 -0
  1710. package/lib/packages/sandbox/policy.d.ts +294 -0
  1711. package/lib/packages/sandbox/policy.js +674 -0
  1712. package/lib/packages/sandbox/review.d.ts +141 -0
  1713. package/lib/packages/sandbox/review.js +348 -0
  1714. package/lib/packages/sandbox/win/account.js +203 -0
  1715. package/lib/packages/sandbox/win/backend.d.ts +107 -0
  1716. package/lib/packages/sandbox/win/backend.js +425 -0
  1717. package/lib/packages/sandbox/win/doctor.js +269 -0
  1718. package/lib/packages/sandbox/win/ffi.d.ts +116 -0
  1719. package/lib/packages/sandbox/win/ffi.js +185 -0
  1720. package/lib/packages/sandbox/win/interpreter.d.ts +44 -0
  1721. package/lib/packages/sandbox/win/interpreter.js +47 -0
  1722. package/lib/packages/sandbox/win/runner-entry.d.ts +61 -0
  1723. package/lib/packages/sandbox/win/runner-entry.js +898 -0
  1724. package/lib/packages/sandbox/win/setup.d.ts +134 -0
  1725. package/lib/packages/sandbox/win/setup.js +1384 -0
  1726. package/lib/packages/sandbox/win/sweep.d.ts +36 -0
  1727. package/lib/packages/sandbox/win/sweep.js +115 -0
  1728. package/lib/packages/sandbox/win/wfp.js +197 -0
  1729. package/lib/packages/schedule/index.d.ts +41 -0
  1730. package/lib/packages/schedule/index.js +612 -0
  1731. package/lib/packages/schedule/locale/en.json +4 -0
  1732. package/lib/packages/schedule/locale/ui.en.json +29 -0
  1733. package/lib/packages/schedule/locale/ui.zh.json +29 -0
  1734. package/lib/packages/self-improve/index.d.ts +140 -0
  1735. package/lib/packages/self-improve/index.js +1312 -0
  1736. package/lib/packages/self-improve/ledger.d.ts +75 -0
  1737. package/lib/packages/self-improve/ledger.js +364 -0
  1738. package/lib/packages/self-improve/locale/en.json +4 -0
  1739. package/lib/packages/self-improve/locale/ui.en.json +31 -0
  1740. package/lib/packages/self-improve/locale/ui.zh.json +31 -0
  1741. package/lib/packages/self-improve/skill-write.d.ts +257 -0
  1742. package/lib/packages/self-improve/skill-write.js +890 -0
  1743. package/lib/packages/self-improve/store.js +266 -0
  1744. package/lib/packages/session/index.js +383 -0
  1745. package/lib/packages/session/locale/en.json +4 -0
  1746. package/lib/packages/session-core/compact.d.ts +140 -0
  1747. package/lib/packages/session-core/compact.js +282 -0
  1748. package/lib/packages/session-core/hooks.d.ts +289 -0
  1749. package/lib/packages/session-core/hooks.js +862 -0
  1750. package/lib/packages/session-core/index.d.ts +20 -0
  1751. package/lib/packages/session-core/index.js +20 -0
  1752. package/lib/packages/session-core/locale/en.json +4 -0
  1753. package/lib/packages/session-core/loop.d.ts +215 -0
  1754. package/lib/packages/session-core/loop.js +726 -0
  1755. package/lib/packages/session-core/modes.d.ts +72 -0
  1756. package/lib/packages/session-core/modes.js +152 -0
  1757. package/lib/packages/session-core/prompt.d.ts +124 -0
  1758. package/lib/packages/session-core/prompt.js +436 -0
  1759. package/lib/packages/session-search/index.js +323 -0
  1760. package/lib/packages/session-search/locale/en.json +4 -0
  1761. package/lib/packages/session-search/locale/ui.en.json +29 -0
  1762. package/lib/packages/session-search/locale/ui.zh.json +29 -0
  1763. package/lib/packages/session-search/session-index.js +849 -0
  1764. package/lib/packages/session-title/index.js +109 -0
  1765. package/lib/packages/session-title/locale/en.json +4 -0
  1766. package/lib/packages/settings/connection-test.d.ts +60 -0
  1767. package/lib/packages/settings/connection-test.js +84 -0
  1768. package/lib/packages/settings/index.d.ts +3 -0
  1769. package/lib/packages/settings/index.js +689 -0
  1770. package/lib/packages/settings/locale/en.json +4 -0
  1771. package/lib/packages/settings/locale/ui.en.json +94 -0
  1772. package/lib/packages/settings/locale/ui.zh.json +94 -0
  1773. package/lib/packages/skills/index.d.ts +13 -0
  1774. package/lib/packages/skills/index.js +499 -0
  1775. package/lib/packages/skills/locale/en.json +4 -0
  1776. package/lib/packages/spill/index.js +223 -0
  1777. package/lib/packages/spill/locale/en.json +4 -0
  1778. package/lib/packages/spill/locale/ui.en.json +31 -0
  1779. package/lib/packages/spill/locale/ui.zh.json +31 -0
  1780. package/lib/packages/subagent/agent-roles.d.ts +78 -0
  1781. package/lib/packages/subagent/agent-roles.js +425 -0
  1782. package/lib/packages/subagent/board-snapshot.d.ts +114 -0
  1783. package/lib/packages/subagent/board-snapshot.js +194 -0
  1784. package/lib/packages/subagent/index.d.ts +133 -0
  1785. package/lib/packages/subagent/index.js +2414 -0
  1786. package/lib/packages/subagent/locale/en.json +4 -0
  1787. package/lib/packages/subagent/locale/ui.en.json +51 -0
  1788. package/lib/packages/subagent/locale/ui.zh.json +51 -0
  1789. package/lib/packages/superagent/app/api.d.ts +99 -0
  1790. package/lib/packages/superagent/app/api.js +556 -0
  1791. package/lib/packages/superagent/app/assessment.d.ts +573 -0
  1792. package/lib/packages/superagent/app/assessment.js +303 -0
  1793. package/lib/packages/superagent/app/cache.d.ts +22 -0
  1794. package/lib/packages/superagent/app/cache.js +42 -0
  1795. package/lib/packages/superagent/app/cards.d.ts +278 -0
  1796. package/lib/packages/superagent/app/cards.js +103 -0
  1797. package/lib/packages/superagent/app/context.d.ts +35 -0
  1798. package/lib/packages/superagent/app/context.js +49 -0
  1799. package/lib/packages/superagent/app/delivery.d.ts +118 -0
  1800. package/lib/packages/superagent/app/delivery.js +189 -0
  1801. package/lib/packages/superagent/app/effects.d.ts +97 -0
  1802. package/lib/packages/superagent/app/effects.js +162 -0
  1803. package/lib/packages/superagent/app/execution-environment.d.ts +42 -0
  1804. package/lib/packages/superagent/app/execution-environment.js +47 -0
  1805. package/lib/packages/superagent/app/links.d.ts +192 -0
  1806. package/lib/packages/superagent/app/links.js +59 -0
  1807. package/lib/packages/superagent/app/migration.d.ts +40 -0
  1808. package/lib/packages/superagent/app/migration.js +674 -0
  1809. package/lib/packages/superagent/app/notices.d.ts +60 -0
  1810. package/lib/packages/superagent/app/notices.js +128 -0
  1811. package/lib/packages/superagent/app/outbox.d.ts +39 -0
  1812. package/lib/packages/superagent/app/outbox.js +50 -0
  1813. package/lib/packages/superagent/app/passes.d.ts +44 -0
  1814. package/lib/packages/superagent/app/passes.js +65 -0
  1815. package/lib/packages/superagent/app/prompts.d.ts +220 -0
  1816. package/lib/packages/superagent/app/prompts.js +259 -0
  1817. package/lib/packages/superagent/app/resources.d.ts +41 -0
  1818. package/lib/packages/superagent/app/resources.js +394 -0
  1819. package/lib/packages/superagent/app/retry-health.d.ts +36 -0
  1820. package/lib/packages/superagent/app/retry-health.js +112 -0
  1821. package/lib/packages/superagent/app/role-models.d.ts +45 -0
  1822. package/lib/packages/superagent/app/role-models.js +26 -0
  1823. package/lib/packages/superagent/app/runtime.d.ts +94 -0
  1824. package/lib/packages/superagent/app/runtime.js +331 -0
  1825. package/lib/packages/superagent/app/sessions.d.ts +275 -0
  1826. package/lib/packages/superagent/app/sessions.js +676 -0
  1827. package/lib/packages/superagent/app/settings-history.d.ts +34 -0
  1828. package/lib/packages/superagent/app/settings-history.js +105 -0
  1829. package/lib/packages/superagent/app/settings.d.ts +198 -0
  1830. package/lib/packages/superagent/app/settings.js +260 -0
  1831. package/lib/packages/superagent/app/setup.d.ts +67 -0
  1832. package/lib/packages/superagent/app/setup.js +98 -0
  1833. package/lib/packages/superagent/app/skill-files.d.ts +19 -0
  1834. package/lib/packages/superagent/app/skill-files.js +54 -0
  1835. package/lib/packages/superagent/app/source-context.d.ts +46 -0
  1836. package/lib/packages/superagent/app/source-context.js +48 -0
  1837. package/lib/packages/superagent/app/store-read.d.ts +69 -0
  1838. package/lib/packages/superagent/app/store-read.js +75 -0
  1839. package/lib/packages/superagent/app/store.d.ts +179 -0
  1840. package/lib/packages/superagent/app/store.js +384 -0
  1841. package/lib/packages/superagent/app/tools/executor.d.ts +16 -0
  1842. package/lib/packages/superagent/app/tools/executor.js +114 -0
  1843. package/lib/packages/superagent/app/tools/main.d.ts +47 -0
  1844. package/lib/packages/superagent/app/tools/main.js +286 -0
  1845. package/lib/packages/superagent/app/tools/tool.d.ts +28 -0
  1846. package/lib/packages/superagent/app/tools/tool.js +36 -0
  1847. package/lib/packages/superagent/app/versions.d.ts +35 -0
  1848. package/lib/packages/superagent/app/versions.js +36 -0
  1849. package/lib/packages/superagent/app/views/overview.d.ts +327 -0
  1850. package/lib/packages/superagent/app/views/overview.js +91 -0
  1851. package/lib/packages/superagent/app/views/records.d.ts +478 -0
  1852. package/lib/packages/superagent/app/views/records.js +203 -0
  1853. package/lib/packages/superagent/app/views/settings.d.ts +111 -0
  1854. package/lib/packages/superagent/app/views/settings.js +50 -0
  1855. package/lib/packages/superagent/app/views/sources.d.ts +97 -0
  1856. package/lib/packages/superagent/app/views/sources.js +70 -0
  1857. package/lib/packages/superagent/app/views/text.d.ts +6 -0
  1858. package/lib/packages/superagent/app/views/text.js +53 -0
  1859. package/lib/packages/superagent/app/views/threads.d.ts +582 -0
  1860. package/lib/packages/superagent/app/views/threads.js +117 -0
  1861. package/lib/packages/superagent/app/views/tickets.d.ts +1852 -0
  1862. package/lib/packages/superagent/app/views/tickets.js +96 -0
  1863. package/lib/packages/superagent/core/admission.d.ts +17 -0
  1864. package/lib/packages/superagent/core/admission.js +4 -0
  1865. package/lib/packages/superagent/core/assignments.d.ts +53 -0
  1866. package/lib/packages/superagent/core/assignments.js +160 -0
  1867. package/lib/packages/superagent/core/engine.d.ts +191 -0
  1868. package/lib/packages/superagent/core/engine.js +244 -0
  1869. package/lib/packages/superagent/core/errors.d.ts +58 -0
  1870. package/lib/packages/superagent/core/errors.js +63 -0
  1871. package/lib/packages/superagent/core/evals.d.ts +99 -0
  1872. package/lib/packages/superagent/core/evals.js +381 -0
  1873. package/lib/packages/superagent/core/ids.d.ts +1 -0
  1874. package/lib/packages/superagent/core/ids.js +5 -0
  1875. package/lib/packages/superagent/core/index.d.ts +9 -0
  1876. package/lib/packages/superagent/core/index.js +9 -0
  1877. package/lib/packages/superagent/core/intake.d.ts +15 -0
  1878. package/lib/packages/superagent/core/intake.js +68 -0
  1879. package/lib/packages/superagent/core/limits.d.ts +26 -0
  1880. package/lib/packages/superagent/core/limits.js +11 -0
  1881. package/lib/packages/superagent/core/memory.d.ts +40 -0
  1882. package/lib/packages/superagent/core/memory.js +51 -0
  1883. package/lib/packages/superagent/core/model.d.ts +432 -0
  1884. package/lib/packages/superagent/core/model.js +79 -0
  1885. package/lib/packages/superagent/core/part.d.ts +49 -0
  1886. package/lib/packages/superagent/core/part.js +71 -0
  1887. package/lib/packages/superagent/core/policy.d.ts +187 -0
  1888. package/lib/packages/superagent/core/policy.js +244 -0
  1889. package/lib/packages/superagent/core/ports.d.ts +217 -0
  1890. package/lib/packages/superagent/core/ports.js +1 -0
  1891. package/lib/packages/superagent/core/reasons.d.ts +36 -0
  1892. package/lib/packages/superagent/core/reasons.js +35 -0
  1893. package/lib/packages/superagent/core/replies.d.ts +55 -0
  1894. package/lib/packages/superagent/core/replies.js +94 -0
  1895. package/lib/packages/superagent/core/stage.d.ts +18 -0
  1896. package/lib/packages/superagent/core/stage.js +27 -0
  1897. package/lib/packages/superagent/core/tickets.d.ts +151 -0
  1898. package/lib/packages/superagent/core/tickets.js +487 -0
  1899. package/lib/packages/superagent/deployment.d.ts +54 -0
  1900. package/lib/packages/superagent/deployment.js +160 -0
  1901. package/lib/packages/superagent/executor/background.d.ts +93 -0
  1902. package/lib/packages/superagent/executor/background.js +192 -0
  1903. package/lib/packages/superagent/executor/dsh.d.ts +304 -0
  1904. package/lib/packages/superagent/executor/dsh.js +776 -0
  1905. package/lib/packages/superagent/host/command.d.ts +89 -0
  1906. package/lib/packages/superagent/host/command.js +198 -0
  1907. package/lib/packages/superagent/host/health.d.ts +45 -0
  1908. package/lib/packages/superagent/host/health.js +355 -0
  1909. package/lib/packages/superagent/host/settings-section.d.ts +32 -0
  1910. package/lib/packages/superagent/host/settings-section.js +528 -0
  1911. package/lib/packages/superagent/index.d.ts +82 -0
  1912. package/lib/packages/superagent/index.js +140 -0
  1913. package/lib/packages/superagent/infra/commands.d.ts +55 -0
  1914. package/lib/packages/superagent/infra/commands.js +144 -0
  1915. package/lib/packages/superagent/infra/environment.d.ts +44 -0
  1916. package/lib/packages/superagent/infra/environment.js +227 -0
  1917. package/lib/packages/superagent/infra/health.d.ts +27 -0
  1918. package/lib/packages/superagent/infra/health.js +29 -0
  1919. package/lib/packages/superagent/infra/text.d.ts +10 -0
  1920. package/lib/packages/superagent/infra/text.js +31 -0
  1921. package/lib/packages/superagent/kv.d.ts +102 -0
  1922. package/lib/packages/superagent/kv.js +44 -0
  1923. package/lib/packages/superagent/locale/en.json +4 -0
  1924. package/lib/packages/superagent/locale/ui.en.json +26 -0
  1925. package/lib/packages/superagent/locale/ui.zh.json +26 -0
  1926. package/lib/packages/superagent/paths.d.ts +21 -0
  1927. package/lib/packages/superagent/paths.js +50 -0
  1928. package/lib/packages/superagent/prompts/admission.md +68 -0
  1929. package/lib/packages/superagent/prompts/cli.md +17 -0
  1930. package/lib/packages/superagent/prompts/dispatch.md +59 -0
  1931. package/lib/packages/superagent/prompts/handoff-orchestrator.md +4 -0
  1932. package/lib/packages/superagent/prompts/handoff-worker.md +7 -0
  1933. package/lib/packages/superagent/prompts/handoff.md +6 -0
  1934. package/lib/packages/superagent/prompts/orchestrator.md +16 -0
  1935. package/lib/packages/superagent/prompts/replies.md +35 -0
  1936. package/lib/packages/superagent/prompts/shared.md +7 -0
  1937. package/lib/packages/superagent/prompts/subscriptions.md +13 -0
  1938. package/lib/packages/superagent/prompts/team/communication.md +97 -0
  1939. package/lib/packages/superagent/prompts/team/delivery.md +28 -0
  1940. package/lib/packages/superagent/prompts/team/scope.md +22 -0
  1941. package/lib/packages/superagent/prompts/work.md +49 -0
  1942. package/lib/packages/superagent/prompts/worker.md +10 -0
  1943. package/lib/packages/superagent/setup.d.ts +37 -0
  1944. package/lib/packages/superagent/setup.js +46 -0
  1945. package/lib/packages/superagent/skills/dsh-superagent-feishu/SKILL.md +12 -0
  1946. package/lib/packages/superagent/skills/dsh-superagent-github/SKILL.md +14 -0
  1947. package/lib/packages/superagent/sources/admission-context.d.ts +43 -0
  1948. package/lib/packages/superagent/sources/admission-context.js +42 -0
  1949. package/lib/packages/superagent/sources/feishu-channel.d.ts +20 -0
  1950. package/lib/packages/superagent/sources/feishu-channel.js +33 -0
  1951. package/lib/packages/superagent/sources/feishu-image.d.ts +12 -0
  1952. package/lib/packages/superagent/sources/feishu-image.js +81 -0
  1953. package/lib/packages/superagent/sources/feishu-loops.d.ts +18 -0
  1954. package/lib/packages/superagent/sources/feishu-loops.js +330 -0
  1955. package/lib/packages/superagent/sources/feishu-read.d.ts +81 -0
  1956. package/lib/packages/superagent/sources/feishu-read.js +183 -0
  1957. package/lib/packages/superagent/sources/feishu-trigger.d.ts +95 -0
  1958. package/lib/packages/superagent/sources/feishu-trigger.js +96 -0
  1959. package/lib/packages/superagent/sources/feishu.d.ts +56 -0
  1960. package/lib/packages/superagent/sources/feishu.js +164 -0
  1961. package/lib/packages/superagent/sources/github-channel.d.ts +6 -0
  1962. package/lib/packages/superagent/sources/github-channel.js +62 -0
  1963. package/lib/packages/superagent/sources/github-pull.d.ts +82 -0
  1964. package/lib/packages/superagent/sources/github-pull.js +112 -0
  1965. package/lib/packages/superagent/sources/github-read.d.ts +54 -0
  1966. package/lib/packages/superagent/sources/github-read.js +184 -0
  1967. package/lib/packages/superagent/sources/github-trigger.d.ts +140 -0
  1968. package/lib/packages/superagent/sources/github-trigger.js +107 -0
  1969. package/lib/packages/superagent/sources/github.d.ts +52 -0
  1970. package/lib/packages/superagent/sources/github.js +559 -0
  1971. package/lib/packages/superagent/sources/host.d.ts +101 -0
  1972. package/lib/packages/superagent/sources/host.js +13 -0
  1973. package/lib/packages/superagent/sources/kind.d.ts +229 -0
  1974. package/lib/packages/superagent/sources/kind.js +1 -0
  1975. package/lib/packages/superagent/sources/poll.d.ts +21 -0
  1976. package/lib/packages/superagent/sources/poll.js +53 -0
  1977. package/lib/packages/superagent/sources/registry.d.ts +402 -0
  1978. package/lib/packages/superagent/sources/registry.js +162 -0
  1979. package/lib/packages/superagent-webhook/index.d.ts +47 -0
  1980. package/lib/packages/superagent-webhook/index.js +83 -0
  1981. package/lib/packages/superagent-webhook/locale/en.json +4 -0
  1982. package/lib/packages/superagent-webhook/tests/settings-contract.d.ts +34 -0
  1983. package/lib/packages/superagent-webhook/tests/settings-contract.js +66 -0
  1984. package/lib/packages/superagent-webhook/webhook.d.ts +87 -0
  1985. package/lib/packages/superagent-webhook/webhook.js +199 -0
  1986. package/lib/packages/surfaces/index.d.ts +11 -0
  1987. package/lib/packages/surfaces/index.js +20 -0
  1988. package/lib/packages/surfaces/locale/en.json +4 -0
  1989. package/lib/packages/todo/index.d.ts +21 -0
  1990. package/lib/packages/todo/index.js +351 -0
  1991. package/lib/packages/todo/locale/en.json +4 -0
  1992. package/lib/packages/todo/locale/ui.en.json +11 -0
  1993. package/lib/packages/todo/locale/ui.zh.json +11 -0
  1994. package/lib/packages/todo/todo.d.ts +73 -0
  1995. package/lib/packages/tool-search/index.js +474 -0
  1996. package/lib/packages/tool-search/locale/en.json +4 -0
  1997. package/lib/packages/tool-search/locale/ui.en.json +36 -0
  1998. package/lib/packages/tool-search/locale/ui.zh.json +36 -0
  1999. package/lib/packages/tool-search/tool-search.d.ts +153 -0
  2000. package/lib/packages/tools/locale/en.json +4 -0
  2001. package/lib/packages/tools-default/bash.d.ts +332 -0
  2002. package/lib/packages/tools-default/bash.js +1139 -0
  2003. package/lib/packages/tools-default/image-tool.d.ts +2 -0
  2004. package/lib/packages/tools-default/image-tool.js +59 -0
  2005. package/lib/packages/tools-default/index.js +407 -0
  2006. package/lib/packages/tools-default/locale/en.json +4 -0
  2007. package/lib/packages/tools-default/locale/ui.en.json +27 -0
  2008. package/lib/packages/tools-default/locale/ui.zh.json +27 -0
  2009. package/lib/packages/tools-default/persistent-shell.d.ts +79 -0
  2010. package/lib/packages/tools-default/persistent-shell.js +247 -0
  2011. package/lib/packages/tools-default/search-tools.d.ts +40 -0
  2012. package/lib/packages/tools-default/search-tools.js +484 -0
  2013. package/lib/packages/transcript/index.d.ts +48 -0
  2014. package/lib/packages/transcript/index.js +436 -0
  2015. package/lib/packages/transcript/locale/en.json +4 -0
  2016. package/lib/packages/tui/app/AgentsOverlay.d.ts +18 -0
  2017. package/lib/packages/tui/app/App.d.ts +21 -0
  2018. package/lib/packages/tui/app/App.js +1788 -0
  2019. package/lib/packages/tui/app/ApprovalCard.d.ts +12 -0
  2020. package/lib/packages/tui/app/ApprovalCard.js +82 -0
  2021. package/lib/packages/tui/app/AskCard.d.ts +20 -0
  2022. package/lib/packages/tui/app/ChatView.d.ts +67 -0
  2023. package/lib/packages/tui/app/ChatView.js +314 -0
  2024. package/lib/packages/tui/app/Composer.d.ts +56 -0
  2025. package/lib/packages/tui/app/Composer.js +306 -0
  2026. package/lib/packages/tui/app/DiffBlock.d.ts +6 -0
  2027. package/lib/packages/tui/app/DiffBlock.js +39 -0
  2028. package/lib/packages/tui/app/ModelPicker.d.ts +7 -0
  2029. package/lib/packages/tui/app/PlanReviewCard.d.ts +13 -0
  2030. package/lib/packages/tui/app/PresetPicker.d.ts +11 -0
  2031. package/lib/packages/tui/app/SessionPicker.d.ts +43 -0
  2032. package/lib/packages/tui/app/SettingsOverlay.d.ts +36 -0
  2033. package/lib/packages/tui/app/SettingsOverlay.js +265 -0
  2034. package/lib/packages/tui/app/SkillsPicker.d.ts +7 -0
  2035. package/lib/packages/tui/app/StatusBar.d.ts +22 -0
  2036. package/lib/packages/tui/app/StatusBar.js +189 -0
  2037. package/lib/packages/tui/app/TaskStrips.d.ts +13 -0
  2038. package/lib/packages/tui/app/TaskStrips.js +37 -0
  2039. package/lib/packages/tui/app/ToolCard.d.ts +11 -0
  2040. package/lib/packages/tui/app/ToolCard.js +62 -0
  2041. package/lib/packages/tui/app/TranscriptOverlay.d.ts +27 -0
  2042. package/lib/packages/tui/app/TranscriptViewport.d.ts +85 -0
  2043. package/lib/packages/tui/app/TranscriptViewport.js +233 -0
  2044. package/lib/packages/tui/app/Welcome.js +68 -0
  2045. package/lib/packages/tui/app/clipboard-image.js +66 -0
  2046. package/lib/packages/tui/app/display-width.d.ts +16 -0
  2047. package/lib/packages/tui/app/display-width.js +33 -0
  2048. package/lib/packages/tui/app/history-store.js +41 -0
  2049. package/lib/packages/tui/app/image-blocks.js +125 -0
  2050. package/lib/packages/tui/app/scroll-model.d.ts +240 -0
  2051. package/lib/packages/tui/app/settings-model.d.ts +128 -0
  2052. package/lib/packages/tui/app/settings-model.js +215 -0
  2053. package/lib/packages/tui/app/snapshot-subscribe.js +110 -0
  2054. package/lib/packages/tui/index.js +102 -0
  2055. package/lib/packages/tui/locale/en.json +4 -0
  2056. package/lib/packages/ui-actions/index.d.ts +27 -0
  2057. package/lib/packages/ui-actions/index.js +27 -0
  2058. package/lib/packages/ui-actions/locale/en.json +4 -0
  2059. package/lib/packages/ui-actions/locale/ui.en.json +3 -0
  2060. package/lib/packages/ui-actions/locale/ui.zh.json +3 -0
  2061. package/lib/packages/ui-ask/index.d.ts +29 -0
  2062. package/lib/packages/ui-ask/index.js +29 -0
  2063. package/lib/packages/ui-ask/locale/en.json +4 -0
  2064. package/lib/packages/ui-ask/locale/ui.en.json +28 -0
  2065. package/lib/packages/ui-ask/locale/ui.zh.json +28 -0
  2066. package/lib/packages/ui-boot/index.d.ts +13 -0
  2067. package/lib/packages/ui-boot/index.js +1 -0
  2068. package/lib/packages/ui-boot/locale/en.json +4 -0
  2069. package/lib/packages/ui-boot/locale/ui.en.json +28 -0
  2070. package/lib/packages/ui-boot/locale/ui.zh.json +28 -0
  2071. package/lib/packages/ui-browser/index.d.ts +29 -0
  2072. package/lib/packages/ui-browser/index.js +29 -0
  2073. package/lib/packages/ui-browser/locale/en.json +4 -0
  2074. package/lib/packages/ui-browser/locale/ui.en.json +17 -0
  2075. package/lib/packages/ui-browser/locale/ui.zh.json +17 -0
  2076. package/lib/packages/ui-composer/index.d.ts +28 -0
  2077. package/lib/packages/ui-composer/index.js +28 -0
  2078. package/lib/packages/ui-composer/locale/en.json +4 -0
  2079. package/lib/packages/ui-composer/locale/ui.en.json +161 -0
  2080. package/lib/packages/ui-composer/locale/ui.zh.json +161 -0
  2081. package/lib/packages/ui-core/frames.js +144 -0
  2082. package/lib/packages/ui-core/i18n.d.ts +33 -0
  2083. package/lib/packages/ui-core/i18n.js +42 -0
  2084. package/lib/packages/ui-core/index.d.ts +102 -0
  2085. package/lib/packages/ui-core/index.js +93 -0
  2086. package/lib/packages/ui-core/locale/en.json +4 -0
  2087. package/lib/packages/ui-core/plugin.d.ts +168 -0
  2088. package/lib/packages/ui-core/scoped-slots.d.ts +20 -0
  2089. package/lib/packages/ui-core/slots-ink.d.ts +26 -0
  2090. package/lib/packages/ui-core/slots-ink.js +78 -0
  2091. package/lib/packages/ui-core/slots.d.ts +490 -0
  2092. package/lib/packages/ui-core/tui-plugin-api.d.ts +23 -0
  2093. package/lib/packages/ui-core/tui-plugin-api.js +23 -0
  2094. package/lib/packages/ui-core/tui-plugins.d.ts +47 -0
  2095. package/lib/packages/ui-core/tui-plugins.js +293 -0
  2096. package/lib/packages/ui-dockkit/index.d.ts +13 -0
  2097. package/lib/packages/ui-dockkit/index.js +13 -0
  2098. package/lib/packages/ui-dockkit/locale/en.json +4 -0
  2099. package/lib/packages/ui-dockkit/locale/ui.en.json +21 -0
  2100. package/lib/packages/ui-dockkit/locale/ui.zh.json +21 -0
  2101. package/lib/packages/ui-files/index.d.ts +27 -0
  2102. package/lib/packages/ui-files/index.js +27 -0
  2103. package/lib/packages/ui-files/locale/en.json +4 -0
  2104. package/lib/packages/ui-files/locale/ui.en.json +43 -0
  2105. package/lib/packages/ui-files/locale/ui.zh.json +43 -0
  2106. package/lib/packages/ui-layout/index.d.ts +30 -0
  2107. package/lib/packages/ui-layout/index.js +30 -0
  2108. package/lib/packages/ui-layout/locale/en.json +4 -0
  2109. package/lib/packages/ui-layout/locale/ui.en.json +112 -0
  2110. package/lib/packages/ui-layout/locale/ui.zh.json +112 -0
  2111. package/lib/packages/ui-palette/index.d.ts +27 -0
  2112. package/lib/packages/ui-palette/index.js +27 -0
  2113. package/lib/packages/ui-palette/locale/en.json +4 -0
  2114. package/lib/packages/ui-palette/locale/ui.en.json +35 -0
  2115. package/lib/packages/ui-palette/locale/ui.zh.json +35 -0
  2116. package/lib/packages/ui-plugins/index.d.ts +27 -0
  2117. package/lib/packages/ui-plugins/index.js +27 -0
  2118. package/lib/packages/ui-plugins/locale/en.json +4 -0
  2119. package/lib/packages/ui-plugins/locale/ui.en.json +134 -0
  2120. package/lib/packages/ui-plugins/locale/ui.zh.json +134 -0
  2121. package/lib/packages/ui-preview/index.d.ts +27 -0
  2122. package/lib/packages/ui-preview/index.js +27 -0
  2123. package/lib/packages/ui-preview/locale/en.json +4 -0
  2124. package/lib/packages/ui-preview/locale/ui.en.json +29 -0
  2125. package/lib/packages/ui-preview/locale/ui.zh.json +29 -0
  2126. package/lib/packages/ui-primitives/index.d.ts +13 -0
  2127. package/lib/packages/ui-primitives/index.js +13 -0
  2128. package/lib/packages/ui-primitives/locale/en.json +4 -0
  2129. package/lib/packages/ui-primitives/locale/ui.en.json +167 -0
  2130. package/lib/packages/ui-primitives/locale/ui.zh.json +167 -0
  2131. package/lib/packages/ui-prompt/index.d.ts +29 -0
  2132. package/lib/packages/ui-prompt/index.js +29 -0
  2133. package/lib/packages/ui-prompt/locale/en.json +4 -0
  2134. package/lib/packages/ui-prompt/locale/ui.en.json +73 -0
  2135. package/lib/packages/ui-prompt/locale/ui.zh.json +73 -0
  2136. package/lib/packages/ui-renderer/index.d.ts +26 -0
  2137. package/lib/packages/ui-renderer/index.js +26 -0
  2138. package/lib/packages/ui-renderer/locale/en.json +4 -0
  2139. package/lib/packages/ui-renderer/locale/ui.en.json +14 -0
  2140. package/lib/packages/ui-renderer/locale/ui.zh.json +14 -0
  2141. package/lib/packages/ui-runtime/index.d.ts +17 -0
  2142. package/lib/packages/ui-runtime/index.js +17 -0
  2143. package/lib/packages/ui-runtime/locale/en.json +4 -0
  2144. package/lib/packages/ui-runtime/locale/ui.en.json +5 -0
  2145. package/lib/packages/ui-runtime/locale/ui.zh.json +5 -0
  2146. package/lib/packages/ui-sessions/index.d.ts +27 -0
  2147. package/lib/packages/ui-sessions/index.js +27 -0
  2148. package/lib/packages/ui-sessions/locale/en.json +4 -0
  2149. package/lib/packages/ui-sessions/locale/ui.en.json +119 -0
  2150. package/lib/packages/ui-sessions/locale/ui.zh.json +119 -0
  2151. package/lib/packages/ui-settings/index.d.ts +29 -0
  2152. package/lib/packages/ui-settings/index.js +29 -0
  2153. package/lib/packages/ui-settings/locale/en.json +4 -0
  2154. package/lib/packages/ui-settings/locale/ui.en.json +490 -0
  2155. package/lib/packages/ui-settings/locale/ui.zh.json +490 -0
  2156. package/lib/packages/ui-skills/index.d.ts +29 -0
  2157. package/lib/packages/ui-skills/index.js +29 -0
  2158. package/lib/packages/ui-skills/locale/en.json +4 -0
  2159. package/lib/packages/ui-skills/locale/ui.en.json +93 -0
  2160. package/lib/packages/ui-skills/locale/ui.zh.json +93 -0
  2161. package/lib/packages/ui-slots/index.d.ts +13 -0
  2162. package/lib/packages/ui-slots/index.js +13 -0
  2163. package/lib/packages/ui-slots/locale/en.json +4 -0
  2164. package/lib/packages/ui-slots/locale/ui.en.json +4 -0
  2165. package/lib/packages/ui-slots/locale/ui.zh.json +4 -0
  2166. package/lib/packages/ui-status/index.d.ts +27 -0
  2167. package/lib/packages/ui-status/index.js +27 -0
  2168. package/lib/packages/ui-status/locale/en.json +4 -0
  2169. package/lib/packages/ui-status/locale/ui.en.json +134 -0
  2170. package/lib/packages/ui-status/locale/ui.zh.json +134 -0
  2171. package/lib/packages/ui-statusbar/index.d.ts +28 -0
  2172. package/lib/packages/ui-statusbar/index.js +28 -0
  2173. package/lib/packages/ui-statusbar/locale/en.json +4 -0
  2174. package/lib/packages/ui-statusbar/locale/ui.en.json +33 -0
  2175. package/lib/packages/ui-statusbar/locale/ui.zh.json +33 -0
  2176. package/lib/packages/ui-superagent/index.d.ts +31 -0
  2177. package/lib/packages/ui-superagent/index.js +31 -0
  2178. package/lib/packages/ui-superagent/locale/en.json +4 -0
  2179. package/lib/packages/ui-superagent/locale/ui.en.json +117 -0
  2180. package/lib/packages/ui-superagent/locale/ui.zh.json +117 -0
  2181. package/lib/packages/ui-tasks/index.d.ts +27 -0
  2182. package/lib/packages/ui-tasks/index.js +27 -0
  2183. package/lib/packages/ui-tasks/locale/en.json +4 -0
  2184. package/lib/packages/ui-tasks/locale/ui.en.json +22 -0
  2185. package/lib/packages/ui-tasks/locale/ui.zh.json +22 -0
  2186. package/lib/packages/ui-team/index.d.ts +29 -0
  2187. package/lib/packages/ui-team/index.js +29 -0
  2188. package/lib/packages/ui-team/locale/en.json +4 -0
  2189. package/lib/packages/ui-team/locale/ui.en.json +19 -0
  2190. package/lib/packages/ui-team/locale/ui.zh.json +19 -0
  2191. package/lib/packages/ui-terminal/index.d.ts +27 -0
  2192. package/lib/packages/ui-terminal/index.js +27 -0
  2193. package/lib/packages/ui-terminal/locale/en.json +4 -0
  2194. package/lib/packages/ui-terminal/locale/ui.en.json +9 -0
  2195. package/lib/packages/ui-terminal/locale/ui.zh.json +9 -0
  2196. package/lib/packages/ui-trace/index.d.ts +28 -0
  2197. package/lib/packages/ui-trace/index.js +28 -0
  2198. package/lib/packages/ui-trace/locale/en.json +4 -0
  2199. package/lib/packages/ui-trace/locale/ui.en.json +118 -0
  2200. package/lib/packages/ui-trace/locale/ui.zh.json +118 -0
  2201. package/lib/packages/ui-transcript/index.d.ts +30 -0
  2202. package/lib/packages/ui-transcript/index.js +30 -0
  2203. package/lib/packages/ui-transcript/locale/en.json +4 -0
  2204. package/lib/packages/ui-transcript/locale/ui.en.json +281 -0
  2205. package/lib/packages/ui-transcript/locale/ui.zh.json +281 -0
  2206. package/lib/packages/waiting/index.d.ts +17 -0
  2207. package/lib/packages/waiting/index.js +53 -0
  2208. package/lib/packages/waiting/locale/en.json +4 -0
  2209. package/lib/packages/web-fetch/html.d.ts +26 -0
  2210. package/lib/packages/web-fetch/html.js +249 -0
  2211. package/lib/packages/web-fetch/http.d.ts +97 -0
  2212. package/lib/packages/web-fetch/http.js +252 -0
  2213. package/lib/packages/web-fetch/index.d.ts +17 -0
  2214. package/lib/packages/web-fetch/index.js +165 -0
  2215. package/lib/packages/web-fetch/locale/en.json +4 -0
  2216. package/lib/packages/web-fetch/locale/ui.en.json +14 -0
  2217. package/lib/packages/web-fetch/locale/ui.zh.json +14 -0
  2218. package/lib/packages/web-search/index.d.ts +15 -0
  2219. package/lib/packages/web-search/index.js +521 -0
  2220. package/lib/packages/web-search/locale/en.json +4 -0
  2221. package/lib/packages/web-search/locale/ui.en.json +30 -0
  2222. package/lib/packages/web-search/locale/ui.zh.json +30 -0
  2223. package/lib/packages/webserver/index.d.ts +51 -0
  2224. package/lib/packages/webserver/index.js +316 -0
  2225. package/lib/packages/webserver/locale/en.json +4 -0
  2226. package/lib/services/types.d.ts +384 -29
  2227. package/package.json +64 -8
  2228. package/lib/adapter/core-runtime.d.ts +0 -11
  2229. package/lib/adapter/core-runtime.js +0 -259
  2230. package/lib/adapter/host.d.ts +0 -18
  2231. package/lib/adapter/host.js +0 -14
  2232. package/lib/adapter/runtime.d.ts +0 -15
  2233. package/lib/adapter/runtime.js +0 -290
  2234. package/lib/app/AgentsOverlay.d.ts +0 -18
  2235. package/lib/app/App.d.ts +0 -15
  2236. package/lib/app/App.js +0 -1650
  2237. package/lib/app/App.js.nv-backup +0 -1650
  2238. package/lib/app/ApprovalCard.d.ts +0 -12
  2239. package/lib/app/ApprovalCard.js +0 -82
  2240. package/lib/app/AskCard.d.ts +0 -20
  2241. package/lib/app/ChatView.d.ts +0 -65
  2242. package/lib/app/ChatView.js +0 -314
  2243. package/lib/app/Composer.d.ts +0 -50
  2244. package/lib/app/Composer.js +0 -288
  2245. package/lib/app/DiffBlock.d.ts +0 -6
  2246. package/lib/app/DiffBlock.js +0 -37
  2247. package/lib/app/ModelPicker.d.ts +0 -7
  2248. package/lib/app/PlanReviewCard.d.ts +0 -13
  2249. package/lib/app/PresetPicker.d.ts +0 -11
  2250. package/lib/app/SessionPicker.d.ts +0 -43
  2251. package/lib/app/SettingsOverlay.d.ts +0 -32
  2252. package/lib/app/SettingsOverlay.js +0 -157
  2253. package/lib/app/SkillsPicker.d.ts +0 -7
  2254. package/lib/app/StatusBar.d.ts +0 -22
  2255. package/lib/app/StatusBar.js +0 -189
  2256. package/lib/app/TaskStrips.d.ts +0 -13
  2257. package/lib/app/TaskStrips.js +0 -37
  2258. package/lib/app/TimelineRail.js.negbak +0 -98
  2259. package/lib/app/TimelineRail.js.nv-backup +0 -160
  2260. package/lib/app/ToolCard.d.ts +0 -11
  2261. package/lib/app/ToolCard.js +0 -60
  2262. package/lib/app/ToolCard.js.nv-backup +0 -64
  2263. package/lib/app/TranscriptOverlay.d.ts +0 -27
  2264. package/lib/app/TranscriptViewport.d.ts +0 -78
  2265. package/lib/app/TranscriptViewport.js +0 -218
  2266. package/lib/app/Welcome.js +0 -68
  2267. package/lib/app/clipboard-image.js +0 -66
  2268. package/lib/app/display-width.d.ts +0 -16
  2269. package/lib/app/display-width.js +0 -33
  2270. package/lib/app/hello.d.ts +0 -11
  2271. package/lib/app/hello.js +0 -8
  2272. package/lib/app/history-store.js +0 -41
  2273. package/lib/app/image-blocks.js +0 -125
  2274. package/lib/app/scroll-model.d.ts +0 -240
  2275. package/lib/app/settings-model.d.ts +0 -69
  2276. package/lib/app/settings-model.js +0 -114
  2277. package/lib/app/snapshot-subscribe.js +0 -110
  2278. package/lib/commands.d.ts +0 -49
  2279. package/lib/commands.js +0 -115
  2280. package/lib/core/agent-roles.d.ts +0 -52
  2281. package/lib/core/agent-roles.js +0 -274
  2282. package/lib/core/approval-floor.d.ts +0 -192
  2283. package/lib/core/approval-floor.js +0 -806
  2284. package/lib/core/approval.d.ts +0 -42
  2285. package/lib/core/approval.js +0 -8
  2286. package/lib/core/call-meaning.js +0 -347
  2287. package/lib/core/cdp/actions.js +0 -655
  2288. package/lib/core/cdp/launch.js +0 -491
  2289. package/lib/core/cdp/report.d.ts +0 -27
  2290. package/lib/core/cdp/report.js +0 -50
  2291. package/lib/core/cdp/ring-buffer.d.ts +0 -25
  2292. package/lib/core/cdp/ring-buffer.js +0 -44
  2293. package/lib/core/cdp/snapshot.d.ts +0 -139
  2294. package/lib/core/cdp/snapshot.js +0 -312
  2295. package/lib/core/cdp/transport.d.ts +0 -160
  2296. package/lib/core/cdp/transport.js +0 -359
  2297. package/lib/core/commands-completion.d.ts +0 -89
  2298. package/lib/core/commands-completion.js +0 -192
  2299. package/lib/core/compact.d.ts +0 -110
  2300. package/lib/core/compact.js +0 -210
  2301. package/lib/core/connection-test.d.ts +0 -60
  2302. package/lib/core/connection-test.js +0 -84
  2303. package/lib/core/desktop-control.d.ts +0 -298
  2304. package/lib/core/desktop-control.js +0 -1309
  2305. package/lib/core/dsh-compat/hook.d.ts +0 -18
  2306. package/lib/core/dsh-compat/hook.js +0 -52
  2307. package/lib/core/goal.d.ts +0 -89
  2308. package/lib/core/hooks.d.ts +0 -289
  2309. package/lib/core/hooks.js +0 -862
  2310. package/lib/core/learnings/ledger.d.ts +0 -73
  2311. package/lib/core/learnings/ledger.js +0 -273
  2312. package/lib/core/learnings/skill-write.d.ts +0 -244
  2313. package/lib/core/learnings/skill-write.js +0 -820
  2314. package/lib/core/learnings/store.js +0 -266
  2315. package/lib/core/lifecycle-hooks.d.ts +0 -197
  2316. package/lib/core/lifecycle-hooks.js +0 -567
  2317. package/lib/core/loop.d.ts +0 -195
  2318. package/lib/core/loop.js +0 -648
  2319. package/lib/core/lsp/client.js +0 -703
  2320. package/lib/core/lsp/manager.js +0 -418
  2321. package/lib/core/lsp/normalize.js +0 -134
  2322. package/lib/core/lsp/servers.js +0 -349
  2323. package/lib/core/market.d.ts +0 -51
  2324. package/lib/core/market.js +0 -358
  2325. package/lib/core/mcp.d.ts +0 -219
  2326. package/lib/core/mcp.js +0 -880
  2327. package/lib/core/memory.d.ts +0 -266
  2328. package/lib/core/memory.js +0 -703
  2329. package/lib/core/microcompact.d.ts +0 -93
  2330. package/lib/core/microcompact.js +0 -207
  2331. package/lib/core/modes.d.ts +0 -72
  2332. package/lib/core/modes.js +0 -152
  2333. package/lib/core/permission-presets.d.ts +0 -71
  2334. package/lib/core/permission-scope.d.ts +0 -54
  2335. package/lib/core/permission-scope.js +0 -84
  2336. package/lib/core/presets.d.ts +0 -91
  2337. package/lib/core/presets.js +0 -384
  2338. package/lib/core/prompt.d.ts +0 -92
  2339. package/lib/core/prompt.js +0 -375
  2340. package/lib/core/sandbox/backends.d.ts +0 -64
  2341. package/lib/core/sandbox/execpolicy.d.ts +0 -93
  2342. package/lib/core/sandbox/execpolicy.js +0 -476
  2343. package/lib/core/sandbox/net-proxy.js +0 -162
  2344. package/lib/core/sandbox/policy.d.ts +0 -211
  2345. package/lib/core/sandbox/policy.js +0 -565
  2346. package/lib/core/sandbox/win/account.js +0 -203
  2347. package/lib/core/sandbox/win/backend.d.ts +0 -82
  2348. package/lib/core/sandbox/win/backend.js +0 -299
  2349. package/lib/core/sandbox/win/doctor.js +0 -269
  2350. package/lib/core/sandbox/win/ffi.d.ts +0 -107
  2351. package/lib/core/sandbox/win/ffi.js +0 -166
  2352. package/lib/core/sandbox/win/runner-entry.d.ts +0 -35
  2353. package/lib/core/sandbox/win/runner-entry.js +0 -386
  2354. package/lib/core/sandbox/win/setup.d.ts +0 -60
  2355. package/lib/core/sandbox/win/setup.js +0 -983
  2356. package/lib/core/sandbox/win/wfp.js +0 -197
  2357. package/lib/core/session-export.d.ts +0 -18
  2358. package/lib/core/session-export.js +0 -73
  2359. package/lib/core/session-index.js +0 -849
  2360. package/lib/core/todo.d.ts +0 -81
  2361. package/lib/core/tool-result-prune.d.ts +0 -42
  2362. package/lib/core/tool-result-prune.js +0 -47
  2363. package/lib/core/tool-search.d.ts +0 -153
  2364. package/lib/core/tools/bash.d.ts +0 -313
  2365. package/lib/core/tools/bash.js +0 -998
  2366. package/lib/core/tools/image-tool.d.ts +0 -2
  2367. package/lib/core/tools/image-tool.js +0 -59
  2368. package/lib/core/tools/index.d.ts +0 -8
  2369. package/lib/core/tools/index.js +0 -4
  2370. package/lib/core/tools/search-tools.d.ts +0 -33
  2371. package/lib/core/tools/search-tools.js +0 -440
  2372. package/lib/index.d.ts +0 -41
  2373. package/lib/index.js +0 -35
  2374. package/lib/plugins/agent.d.ts +0 -2
  2375. package/lib/plugins/agent.js +0 -314
  2376. package/lib/plugins/approval-floor.js +0 -227
  2377. package/lib/plugins/approval.d.ts +0 -16
  2378. package/lib/plugins/approval.js +0 -846
  2379. package/lib/plugins/ask.js +0 -297
  2380. package/lib/plugins/browser.d.ts +0 -68
  2381. package/lib/plugins/browser.js +0 -1289
  2382. package/lib/plugins/commands.d.ts +0 -23
  2383. package/lib/plugins/commands.js +0 -504
  2384. package/lib/plugins/compact.d.ts +0 -21
  2385. package/lib/plugins/compact.js +0 -316
  2386. package/lib/plugins/computer-use.d.ts +0 -47
  2387. package/lib/plugins/computer-use.js +0 -555
  2388. package/lib/plugins/desktop-dock.d.ts +0 -2
  2389. package/lib/plugins/desktop-dock.js +0 -626
  2390. package/lib/plugins/dock-browser.d.ts +0 -34
  2391. package/lib/plugins/dock-browser.js +0 -724
  2392. package/lib/plugins/dsh-compat.js +0 -44
  2393. package/lib/plugins/file-review.d.ts +0 -108
  2394. package/lib/plugins/file-review.js +0 -437
  2395. package/lib/plugins/git.js +0 -126
  2396. package/lib/plugins/goal.d.ts +0 -20
  2397. package/lib/plugins/goal.js +0 -242
  2398. package/lib/plugins/guards.js +0 -18
  2399. package/lib/plugins/hooks.d.ts +0 -19
  2400. package/lib/plugins/hooks.js +0 -585
  2401. package/lib/plugins/host-stdio.d.ts +0 -88
  2402. package/lib/plugins/host-stdio.js +0 -305
  2403. package/lib/plugins/image-diet.js +0 -85
  2404. package/lib/plugins/lifecycle-hooks.d.ts +0 -27
  2405. package/lib/plugins/lifecycle-hooks.js +0 -340
  2406. package/lib/plugins/llm.d.ts +0 -13
  2407. package/lib/plugins/llm.js +0 -256
  2408. package/lib/plugins/lsp.d.ts +0 -54
  2409. package/lib/plugins/lsp.js +0 -603
  2410. package/lib/plugins/mcp.js +0 -672
  2411. package/lib/plugins/memory.d.ts +0 -17
  2412. package/lib/plugins/memory.js +0 -837
  2413. package/lib/plugins/microcompact.d.ts +0 -18
  2414. package/lib/plugins/microcompact.js +0 -191
  2415. package/lib/plugins/mode.d.ts +0 -18
  2416. package/lib/plugins/mode.js +0 -134
  2417. package/lib/plugins/permission-presets.d.ts +0 -19
  2418. package/lib/plugins/permission-presets.js +0 -155
  2419. package/lib/plugins/plan.js +0 -192
  2420. package/lib/plugins/plugin-manager.js +0 -163
  2421. package/lib/plugins/presets.js +0 -211
  2422. package/lib/plugins/prompt.d.ts +0 -2
  2423. package/lib/plugins/prompt.js +0 -307
  2424. package/lib/plugins/ptc.js +0 -369
  2425. package/lib/plugins/remote/http.d.ts +0 -11
  2426. package/lib/plugins/remote/http.js +0 -11
  2427. package/lib/plugins/remote/routes.js +0 -384
  2428. package/lib/plugins/remote/types.d.ts +0 -135
  2429. package/lib/plugins/remote/types.js +0 -98
  2430. package/lib/plugins/remote.d.ts +0 -17
  2431. package/lib/plugins/remote.js +0 -1021
  2432. package/lib/plugins/runtime-api.js +0 -99
  2433. package/lib/plugins/runtime.js +0 -523
  2434. package/lib/plugins/sandbox.js +0 -882
  2435. package/lib/plugins/schedule.d.ts +0 -26
  2436. package/lib/plugins/schedule.js +0 -539
  2437. package/lib/plugins/self-improve.d.ts +0 -61
  2438. package/lib/plugins/self-improve.js +0 -963
  2439. package/lib/plugins/session-search.js +0 -313
  2440. package/lib/plugins/session-title.js +0 -109
  2441. package/lib/plugins/session.js +0 -300
  2442. package/lib/plugins/settings.d.ts +0 -3
  2443. package/lib/plugins/settings.js +0 -681
  2444. package/lib/plugins/skills.d.ts +0 -2
  2445. package/lib/plugins/skills.js +0 -361
  2446. package/lib/plugins/spill.js +0 -207
  2447. package/lib/plugins/subagent.d.ts +0 -2
  2448. package/lib/plugins/subagent.js +0 -1026
  2449. package/lib/plugins/surfaces.d.ts +0 -11
  2450. package/lib/plugins/surfaces.js +0 -20
  2451. package/lib/plugins/team.d.ts +0 -16
  2452. package/lib/plugins/team.js +0 -155
  2453. package/lib/plugins/todo.d.ts +0 -19
  2454. package/lib/plugins/todo.js +0 -194
  2455. package/lib/plugins/tool-search.js +0 -453
  2456. package/lib/plugins/tool-search.js.nv-backup +0 -434
  2457. package/lib/plugins/tools-default.js +0 -359
  2458. package/lib/plugins/transcript.d.ts +0 -15
  2459. package/lib/plugins/transcript.js +0 -418
  2460. package/lib/plugins/tui.js +0 -98
  2461. package/lib/plugins/waiting.d.ts +0 -12
  2462. package/lib/plugins/waiting.js +0 -34
  2463. package/lib/plugins/web-search.d.ts +0 -14
  2464. package/lib/plugins/web-search.js +0 -272
  2465. package/lib/plugins/webserver.d.ts +0 -48
  2466. package/lib/plugins/webserver.js +0 -261
  2467. package/lib/remote/assets/app-B3Id1EBq.js +0 -14
  2468. package/lib/remote/assets/icon-192.png +0 -0
  2469. package/lib/remote/assets/icon-512.png +0 -0
  2470. package/lib/remote/assets/index.html +0 -34
  2471. package/lib/remote/assets/manifest.json +0 -27
  2472. package/lib/remote/assets/style-NtlpbKOI.css +0 -1
  2473. package/lib/remote/assets/sw.js +0 -66
  2474. package/lib/tools/config-cli.js +0 -89
  2475. package/lib/tools/plugin-cli.js +0 -209
  2476. package/lib/ui/assets/app-MhfBFsp-.js +0 -89
  2477. package/lib/ui/assets/chunk-2UxHyX5q.js +0 -1
  2478. package/lib/ui/assets/chunk-B1dDrJ26.js +0 -1
  2479. package/lib/ui/assets/chunk-B6aJPvgy.js +0 -1
  2480. package/lib/ui/assets/chunk-BEwlwnbL.js +0 -1
  2481. package/lib/ui/assets/chunk-BIGW1oBm.js +0 -1
  2482. package/lib/ui/assets/chunk-BPQ3VLAy.js +0 -1
  2483. package/lib/ui/assets/chunk-BRH0KZbk.js +0 -141
  2484. package/lib/ui/assets/chunk-BX6H_ySx.js +0 -1
  2485. package/lib/ui/assets/chunk-B_P3UbPa.js +0 -1
  2486. package/lib/ui/assets/chunk-B_TYUkTI.js +0 -1
  2487. package/lib/ui/assets/chunk-B_vNuMnf.js +0 -1
  2488. package/lib/ui/assets/chunk-BdnUsdx6.js +0 -1
  2489. package/lib/ui/assets/chunk-Buea-lGh.js +0 -1
  2490. package/lib/ui/assets/chunk-C0PvZCCE.js +0 -1
  2491. package/lib/ui/assets/chunk-C0m74zRD.js +0 -1
  2492. package/lib/ui/assets/chunk-C27-OAKa.js +0 -1
  2493. package/lib/ui/assets/chunk-C2oV4EkX.js +0 -1
  2494. package/lib/ui/assets/chunk-C7zT0LnQ.js +0 -1
  2495. package/lib/ui/assets/chunk-C9GSunVT.js +0 -1
  2496. package/lib/ui/assets/chunk-C9tS-k6U.js +0 -1
  2497. package/lib/ui/assets/chunk-CA5f1pGf.js +0 -12
  2498. package/lib/ui/assets/chunk-CHLpvVh8.js +0 -1
  2499. package/lib/ui/assets/chunk-CLxacb5B.js +0 -1
  2500. package/lib/ui/assets/chunk-COt5Ahok.js +0 -1
  2501. package/lib/ui/assets/chunk-CPTIWCL2.js +0 -1
  2502. package/lib/ui/assets/chunk-CQLl-L-p.js +0 -1
  2503. package/lib/ui/assets/chunk-CUWRgxuq.js +0 -55
  2504. package/lib/ui/assets/chunk-CWanVSXC.js +0 -1
  2505. package/lib/ui/assets/chunk-Cf5RLm7j.js +0 -1
  2506. package/lib/ui/assets/chunk-CickPsom.js +0 -1
  2507. package/lib/ui/assets/chunk-Cj5Yp3dK.js +0 -1
  2508. package/lib/ui/assets/chunk-Cmh6b_Ma.js +0 -1
  2509. package/lib/ui/assets/chunk-Cp-IABpG.js +0 -1
  2510. package/lib/ui/assets/chunk-Cq7xGE-D.js +0 -10
  2511. package/lib/ui/assets/chunk-CqE71os6.js +0 -1
  2512. package/lib/ui/assets/chunk-CtKP3W-j.js +0 -1
  2513. package/lib/ui/assets/chunk-Cvjx9yec.js +0 -1
  2514. package/lib/ui/assets/chunk-CxGP3dtY.js +0 -1
  2515. package/lib/ui/assets/chunk-CylS5w8V.js +0 -1
  2516. package/lib/ui/assets/chunk-D38fbIBN.js +0 -1
  2517. package/lib/ui/assets/chunk-D97Zzqfu.js +0 -1
  2518. package/lib/ui/assets/chunk-DAi9KRSo.js +0 -1
  2519. package/lib/ui/assets/chunk-DHK4yRfg.js +0 -1
  2520. package/lib/ui/assets/chunk-DJeabLx-.js +0 -1
  2521. package/lib/ui/assets/chunk-DNRxmY5a.js +0 -1
  2522. package/lib/ui/assets/chunk-DNSN1z5r.js +0 -1
  2523. package/lib/ui/assets/chunk-DNasK_ZG.js +0 -1
  2524. package/lib/ui/assets/chunk-DPvrY3IQ.js +0 -1
  2525. package/lib/ui/assets/chunk-DXmwc3jG.js +0 -1
  2526. package/lib/ui/assets/chunk-Dd0kTxKP.js +0 -1
  2527. package/lib/ui/assets/chunk-De0Btta0.js +0 -1
  2528. package/lib/ui/assets/chunk-Des-eS-w.js +0 -1
  2529. package/lib/ui/assets/chunk-Df6bDoY_.js +0 -1
  2530. package/lib/ui/assets/chunk-DijEV5ha.js +0 -1
  2531. package/lib/ui/assets/chunk-DkvoVjww.js +0 -1
  2532. package/lib/ui/assets/chunk-DlC-OlHO.js +0 -1
  2533. package/lib/ui/assets/chunk-DnzrXTVv.js +0 -1
  2534. package/lib/ui/assets/chunk-Dualf0xi.js +0 -1
  2535. package/lib/ui/assets/chunk-EXT84bkm.js +0 -1
  2536. package/lib/ui/assets/chunk-GwR3hkPK.js +0 -1
  2537. package/lib/ui/assets/chunk-P80f7IUj.js +0 -1
  2538. package/lib/ui/assets/chunk-VOosw3JB.js +0 -1
  2539. package/lib/ui/assets/chunk-YQ4lDkt_.js +0 -140
  2540. package/lib/ui/assets/chunk-Yzrsuije.js +0 -1
  2541. package/lib/ui/assets/chunk-Z72CF80r.js +0 -1
  2542. package/lib/ui/assets/chunk-g9-lgVsj.js +0 -1
  2543. package/lib/ui/assets/chunk-vGWfd6FD.js +0 -1
  2544. package/lib/ui/assets/chunk-wDzz0qaB.js +0 -1
  2545. package/lib/ui/assets/chunk-ySF7HWmS.js +0 -1
  2546. package/lib/ui/assets/icon.png +0 -0
  2547. package/lib/ui/assets/index.html +0 -62
  2548. package/lib/ui/assets/pdf.worker.min-CjEcRF4W.mjs +0 -28
  2549. package/lib/ui/assets/style-CIJVQKkj.css +0 -1
  2550. package/lib/ui/frames.js +0 -144
  2551. package/lib/ui/index.d.ts +0 -88
  2552. package/lib/ui/index.js +0 -79
  2553. package/lib/ui/manifest.d.ts +0 -190
  2554. package/lib/ui/manifest.js +0 -159
  2555. package/lib/ui/plugin.d.ts +0 -161
  2556. package/lib/ui/plugins/actions/bundle.json +0 -8
  2557. package/lib/ui/plugins/actions/client.js +0 -43
  2558. package/lib/ui/plugins/ask/bundle.json +0 -8
  2559. package/lib/ui/plugins/ask/client.js +0 -415
  2560. package/lib/ui/plugins/browser/bundle.json +0 -8
  2561. package/lib/ui/plugins/browser/client.js +0 -290
  2562. package/lib/ui/plugins/browser/icon.png +0 -0
  2563. package/lib/ui/plugins/composer/bundle.json +0 -9
  2564. package/lib/ui/plugins/composer/client.js +0 -2509
  2565. package/lib/ui/plugins/composer/icon.png +0 -0
  2566. package/lib/ui/plugins/files/bundle.json +0 -8
  2567. package/lib/ui/plugins/files/client.js +0 -561
  2568. package/lib/ui/plugins/files/icon.png +0 -0
  2569. package/lib/ui/plugins/manifest.json +0 -4
  2570. package/lib/ui/plugins/palette/bundle.json +0 -8
  2571. package/lib/ui/plugins/palette/client.js +0 -360
  2572. package/lib/ui/plugins/plugins/bundle.json +0 -8
  2573. package/lib/ui/plugins/plugins/client.js +0 -760
  2574. package/lib/ui/plugins/plugins/icon.png +0 -0
  2575. package/lib/ui/plugins/preview/bundle.json +0 -8
  2576. package/lib/ui/plugins/preview/client.js +0 -187
  2577. package/lib/ui/plugins/preview/icon.png +0 -0
  2578. package/lib/ui/plugins/prompt/bundle.json +0 -8
  2579. package/lib/ui/plugins/prompt/client.js +0 -687
  2580. package/lib/ui/plugins/prompt/icon.png +0 -0
  2581. package/lib/ui/plugins/sessions/bundle.json +0 -8
  2582. package/lib/ui/plugins/sessions/client.js +0 -1595
  2583. package/lib/ui/plugins/sessions/icon.png +0 -0
  2584. package/lib/ui/plugins/settings/bundle.json +0 -8
  2585. package/lib/ui/plugins/settings/client.js +0 -5484
  2586. package/lib/ui/plugins/settings/icon.png +0 -0
  2587. package/lib/ui/plugins/skills/bundle.json +0 -8
  2588. package/lib/ui/plugins/skills/client.js +0 -567
  2589. package/lib/ui/plugins/skills/icon.png +0 -0
  2590. package/lib/ui/plugins/status/bundle.json +0 -8
  2591. package/lib/ui/plugins/status/client.js +0 -1406
  2592. package/lib/ui/plugins/status/icon.png +0 -0
  2593. package/lib/ui/plugins/statusbar/bundle.json +0 -9
  2594. package/lib/ui/plugins/statusbar/client.js +0 -460
  2595. package/lib/ui/plugins/statusbar/icon.png +0 -0
  2596. package/lib/ui/plugins/tasks/bundle.json +0 -8
  2597. package/lib/ui/plugins/tasks/client.js +0 -52
  2598. package/lib/ui/plugins/tasks/icon.png +0 -0
  2599. package/lib/ui/plugins/team/bundle.json +0 -8
  2600. package/lib/ui/plugins/team/client.js +0 -529
  2601. package/lib/ui/plugins/team/icon.png +0 -0
  2602. package/lib/ui/plugins/terminal/bundle.json +0 -8
  2603. package/lib/ui/plugins/terminal/client.js +0 -226
  2604. package/lib/ui/plugins/terminal/icon.png +0 -0
  2605. package/lib/ui/plugins/trace/bundle.json +0 -11
  2606. package/lib/ui/plugins/trace/client.js +0 -1283
  2607. package/lib/ui/plugins/trace/icon.png +0 -0
  2608. package/lib/ui/plugins/transcript/bundle.json +0 -8
  2609. package/lib/ui/plugins/transcript/client.js +0 -2966
  2610. package/lib/ui/plugins/transcript/icon.png +0 -0
  2611. package/lib/ui/scoped-slots.d.ts +0 -20
  2612. package/lib/ui/sdk/@dsc/ui/index.d.ts +0 -280
  2613. package/lib/ui/sdk/@dsc/ui/package.json +0 -16
  2614. package/lib/ui/sdk/@dsc/ui-core/contract.d.ts +0 -25
  2615. package/lib/ui/sdk/@dsc/ui-core/core/attachments.d.ts +0 -185
  2616. package/lib/ui/sdk/@dsc/ui-core/core/bytes.d.ts +0 -14
  2617. package/lib/ui/sdk/@dsc/ui-core/core/diff-text.d.ts +0 -74
  2618. package/lib/ui/sdk/@dsc/ui-core/core/dock-browser.d.ts +0 -137
  2619. package/lib/ui/sdk/@dsc/ui-core/core/dock-ops.d.ts +0 -59
  2620. package/lib/ui/sdk/@dsc/ui-core/core/err-text.d.ts +0 -18
  2621. package/lib/ui/sdk/@dsc/ui-core/core/git-surface.d.ts +0 -17
  2622. package/lib/ui/sdk/@dsc/ui-core/core/json-text.d.ts +0 -11
  2623. package/lib/ui/sdk/@dsc/ui-core/core/model-caps.d.ts +0 -83
  2624. package/lib/ui/sdk/@dsc/ui-core/core/native-bridge.d.ts +0 -135
  2625. package/lib/ui/sdk/@dsc/ui-core/core/path-policy.d.ts +0 -44
  2626. package/lib/ui/sdk/@dsc/ui-core/core/records.d.ts +0 -16
  2627. package/lib/ui/sdk/@dsc/ui-core/core/throughput.d.ts +0 -46
  2628. package/lib/ui/sdk/@dsc/ui-core/core/token-estimate.d.ts +0 -71
  2629. package/lib/ui/sdk/@dsc/ui-core/core/unified-diff.d.ts +0 -35
  2630. package/lib/ui/sdk/@dsc/ui-core/package.json +0 -16
  2631. package/lib/ui/sdk/@dsc/ui-core/ui/arrival.d.ts +0 -72
  2632. package/lib/ui/sdk/@dsc/ui-core/ui/frames.d.ts +0 -67
  2633. package/lib/ui/sdk/@dsc/ui-core/ui/index.d.ts +0 -88
  2634. package/lib/ui/sdk/@dsc/ui-core/ui/manifest.d.ts +0 -190
  2635. package/lib/ui/sdk/@dsc/ui-core/ui/plugin.d.ts +0 -161
  2636. package/lib/ui/sdk/@dsc/ui-core/ui/scoped-slots.d.ts +0 -20
  2637. package/lib/ui/sdk/@dsc/ui-core/ui/slots.d.ts +0 -481
  2638. package/lib/ui/sdk/@dsc/ui-dockkit/dock-model.d.ts +0 -252
  2639. package/lib/ui/sdk/@dsc/ui-dockkit/dock-state.d.ts +0 -163
  2640. package/lib/ui/sdk/@dsc/ui-dockkit/dock.d.ts +0 -24
  2641. package/lib/ui/sdk/@dsc/ui-dockkit/index.d.ts +0 -15
  2642. package/lib/ui/sdk/@dsc/ui-dockkit/package.json +0 -16
  2643. package/lib/ui/sdk/@dsc/ui-layout/app.d.ts +0 -78
  2644. package/lib/ui/sdk/@dsc/ui-layout/appearance.d.ts +0 -75
  2645. package/lib/ui/sdk/@dsc/ui-layout/host-channel.d.ts +0 -133
  2646. package/lib/ui/sdk/@dsc/ui-layout/index.d.ts +0 -35
  2647. package/lib/ui/sdk/@dsc/ui-layout/package.json +0 -16
  2648. package/lib/ui/sdk/@dsc/ui-layout/page-state.d.ts +0 -14
  2649. package/lib/ui/sdk/@dsc/ui-layout/review-pane.d.ts +0 -21
  2650. package/lib/ui/sdk/@dsc/ui-layout/runtime-context.d.ts +0 -53
  2651. package/lib/ui/sdk/@dsc/ui-layout/thread-view.d.ts +0 -28
  2652. package/lib/ui/sdk/@dsc/ui-layout/update-button.d.ts +0 -21
  2653. package/lib/ui/sdk/@dsc/ui-layout/usage-today.d.ts +0 -11
  2654. package/lib/ui/sdk/@dsc/ui-primitives/code-file-icon-artwork.d.ts +0 -53
  2655. package/lib/ui/sdk/@dsc/ui-primitives/code-view.d.ts +0 -15
  2656. package/lib/ui/sdk/@dsc/ui-primitives/compat.d.ts +0 -27
  2657. package/lib/ui/sdk/@dsc/ui-primitives/completion-sound.d.ts +0 -24
  2658. package/lib/ui/sdk/@dsc/ui-primitives/confirm.d.ts +0 -33
  2659. package/lib/ui/sdk/@dsc/ui-primitives/css.d.ts +0 -47
  2660. package/lib/ui/sdk/@dsc/ui-primitives/dialog-focus.d.ts +0 -30
  2661. package/lib/ui/sdk/@dsc/ui-primitives/diff-rows.d.ts +0 -20
  2662. package/lib/ui/sdk/@dsc/ui-primitives/error-text.d.ts +0 -12
  2663. package/lib/ui/sdk/@dsc/ui-primitives/file-icons.d.ts +0 -38
  2664. package/lib/ui/sdk/@dsc/ui-primitives/file-type-classify.d.ts +0 -66
  2665. package/lib/ui/sdk/@dsc/ui-primitives/file-type-icon.d.ts +0 -57
  2666. package/lib/ui/sdk/@dsc/ui-primitives/git-surface.d.ts +0 -9
  2667. package/lib/ui/sdk/@dsc/ui-primitives/highlight.d.ts +0 -47
  2668. package/lib/ui/sdk/@dsc/ui-primitives/hover-delay.d.ts +0 -17
  2669. package/lib/ui/sdk/@dsc/ui-primitives/humanize-error.d.ts +0 -35
  2670. package/lib/ui/sdk/@dsc/ui-primitives/icons-workspace.d.ts +0 -33
  2671. package/lib/ui/sdk/@dsc/ui-primitives/icons.d.ts +0 -116
  2672. package/lib/ui/sdk/@dsc/ui-primitives/index.d.ts +0 -68
  2673. package/lib/ui/sdk/@dsc/ui-primitives/lang-table.d.ts +0 -10
  2674. package/lib/ui/sdk/@dsc/ui-primitives/markdown.d.ts +0 -16
  2675. package/lib/ui/sdk/@dsc/ui-primitives/native.d.ts +0 -41
  2676. package/lib/ui/sdk/@dsc/ui-primitives/package.json +0 -16
  2677. package/lib/ui/sdk/@dsc/ui-primitives/panels.d.ts +0 -109
  2678. package/lib/ui/sdk/@dsc/ui-primitives/paths.d.ts +0 -13
  2679. package/lib/ui/sdk/@dsc/ui-primitives/pdf-view.d.ts +0 -13
  2680. package/lib/ui/sdk/@dsc/ui-primitives/plugin-text.d.ts +0 -15
  2681. package/lib/ui/sdk/@dsc/ui-primitives/review-notice-card.d.ts +0 -27
  2682. package/lib/ui/sdk/@dsc/ui-primitives/review-notice.d.ts +0 -80
  2683. package/lib/ui/sdk/@dsc/ui-primitives/select.d.ts +0 -35
  2684. package/lib/ui/sdk/@dsc/ui-primitives/signal.d.ts +0 -9
  2685. package/lib/ui/sdk/@dsc/ui-primitives/sizes.d.ts +0 -15
  2686. package/lib/ui/sdk/@dsc/ui-primitives/skeleton.d.ts +0 -39
  2687. package/lib/ui/sdk/@dsc/ui-primitives/snapshot.d.ts +0 -46
  2688. package/lib/ui/sdk/@dsc/ui-primitives/table-view.d.ts +0 -23
  2689. package/lib/ui/sdk/@dsc/ui-primitives/thread-resizer.d.ts +0 -22
  2690. package/lib/ui/sdk/@dsc/ui-primitives/throughput.d.ts +0 -13
  2691. package/lib/ui/sdk/@dsc/ui-primitives/time.d.ts +0 -33
  2692. package/lib/ui/sdk/@dsc/ui-primitives/toast.d.ts +0 -16
  2693. package/lib/ui/sdk/@dsc/ui-primitives/tokens.d.ts +0 -23
  2694. package/lib/ui/sdk/@dsc/ui-primitives/tool-args.d.ts +0 -49
  2695. package/lib/ui/sdk/@dsc/ui-primitives/tool-summary.d.ts +0 -88
  2696. package/lib/ui/sdk/@dsc/ui-primitives/unified-diff.d.ts +0 -10
  2697. package/lib/ui/sdk/@dsc/ui-renderer/boot.d.ts +0 -130
  2698. package/lib/ui/sdk/@dsc/ui-renderer/cordis-host.d.ts +0 -113
  2699. package/lib/ui/sdk/@dsc/ui-renderer/hmr.d.ts +0 -43
  2700. package/lib/ui/sdk/@dsc/ui-renderer/index.d.ts +0 -20
  2701. package/lib/ui/sdk/@dsc/ui-renderer/package.json +0 -16
  2702. package/lib/ui/sdk/@dsc/ui-slots/index.d.ts +0 -19
  2703. package/lib/ui/sdk/@dsc/ui-slots/package.json +0 -16
  2704. package/lib/ui/sdk/@dsc/ui-slots/slots-react.d.ts +0 -48
  2705. package/lib/ui/sdk/@dsc/ui-slots/slots.d.ts +0 -102
  2706. package/lib/ui/services-react.d.ts +0 -27
  2707. package/lib/ui/services.d.ts +0 -74
  2708. package/lib/ui/signal.d.ts +0 -49
  2709. package/lib/ui/slots-ink.d.ts +0 -26
  2710. package/lib/ui/slots-ink.js +0 -78
  2711. package/lib/ui/slots-react.d.ts +0 -28
  2712. package/lib/ui/slots.d.ts +0 -481
  2713. package/lib/ui/store.d.ts +0 -89
  2714. package/lib/ui/tui-plugin-api.d.ts +0 -23
  2715. package/lib/ui/tui-plugin-api.js +0 -23
  2716. package/lib/ui/tui-plugins.d.ts +0 -47
  2717. package/lib/ui/tui-plugins.js +0 -240
  2718. /package/lib/{core → packages/approval}/call-meaning.d.ts +0 -0
  2719. /package/lib/{plugins/approval-floor.d.ts → packages/approval-floor/index.d.ts} +0 -0
  2720. /package/lib/{plugins/ask.d.ts → packages/ask/index.d.ts} +0 -0
  2721. /package/lib/{core → packages}/cdp/actions.d.ts +0 -0
  2722. /package/lib/{core → packages}/cdp/launch.d.ts +0 -0
  2723. /package/lib/{tools → packages/cli}/config-cli.d.ts +0 -0
  2724. /package/lib/{tools → packages/cli}/plugin-cli.d.ts +0 -0
  2725. /package/lib/{plugins/dsh-compat.d.ts → packages/dsh-compat/index.d.ts} +0 -0
  2726. /package/lib/{plugins/git.d.ts → packages/git/index.d.ts} +0 -0
  2727. /package/lib/{core → packages/goal}/goal.js +0 -0
  2728. /package/lib/{plugins/guards.d.ts → packages/guards/index.d.ts} +0 -0
  2729. /package/lib/{plugins/image-diet.d.ts → packages/image-diet/index.d.ts} +0 -0
  2730. /package/lib/{core → packages}/lsp/client.d.ts +0 -0
  2731. /package/lib/{core → packages}/lsp/framing.d.ts +0 -0
  2732. /package/lib/{core → packages}/lsp/framing.js +0 -0
  2733. /package/lib/{core → packages}/lsp/line-shift.d.ts +0 -0
  2734. /package/lib/{core → packages}/lsp/line-shift.js +0 -0
  2735. /package/lib/{core → packages}/lsp/manager.d.ts +0 -0
  2736. /package/lib/{core → packages}/lsp/normalize.d.ts +0 -0
  2737. /package/lib/{core → packages}/lsp/servers.d.ts +0 -0
  2738. /package/lib/{core → packages}/lsp/uri.d.ts +0 -0
  2739. /package/lib/{core → packages}/lsp/uri.js +0 -0
  2740. /package/lib/{plugins/mcp.d.ts → packages/mcp/index.d.ts} +0 -0
  2741. /package/lib/{core → packages/memory}/memory-eval.d.ts +0 -0
  2742. /package/lib/{core → packages/memory}/memory-eval.js +0 -0
  2743. /package/lib/{core → packages/permission-core}/permission-presets.js +0 -0
  2744. /package/lib/{plugins/plan.d.ts → packages/plan/index.d.ts} +0 -0
  2745. /package/lib/{plugins/plugin-manager.d.ts → packages/plugin-manager/index.d.ts} +0 -0
  2746. /package/lib/{plugins/presets.d.ts → packages/presets/index.d.ts} +0 -0
  2747. /package/lib/{plugins/ptc.d.ts → packages/ptc/index.d.ts} +0 -0
  2748. /package/lib/{plugins → packages}/remote/routes.d.ts +0 -0
  2749. /package/lib/{plugins/runtime.d.ts → packages/runtime/index.d.ts} +0 -0
  2750. /package/lib/{plugins/runtime-api.d.ts → packages/runtime-api/index.d.ts} +0 -0
  2751. /package/lib/{core → packages}/sandbox/backends.js +0 -0
  2752. /package/lib/{plugins/sandbox.d.ts → packages/sandbox/index.d.ts} +0 -0
  2753. /package/lib/{core → packages}/sandbox/net-proxy.d.ts +0 -0
  2754. /package/lib/{core → packages}/sandbox/win/abi.d.ts +0 -0
  2755. /package/lib/{core → packages}/sandbox/win/abi.js +0 -0
  2756. /package/lib/{core → packages}/sandbox/win/account.d.ts +0 -0
  2757. /package/lib/{core → packages}/sandbox/win/acl.d.ts +0 -0
  2758. /package/lib/{core → packages}/sandbox/win/acl.js +0 -0
  2759. /package/lib/{core → packages}/sandbox/win/doctor.d.ts +0 -0
  2760. /package/lib/{core → packages}/sandbox/win/net-abi.d.ts +0 -0
  2761. /package/lib/{core → packages}/sandbox/win/net-abi.js +0 -0
  2762. /package/lib/{core → packages}/sandbox/win/token.d.ts +0 -0
  2763. /package/lib/{core → packages}/sandbox/win/token.js +0 -0
  2764. /package/lib/{core → packages}/sandbox/win/utf16.d.ts +0 -0
  2765. /package/lib/{core → packages}/sandbox/win/utf16.js +0 -0
  2766. /package/lib/{core → packages}/sandbox/win/wfp.d.ts +0 -0
  2767. /package/lib/{core → packages}/sandbox/win/workspace-sid.d.ts +0 -0
  2768. /package/lib/{core → packages}/sandbox/win/workspace-sid.js +0 -0
  2769. /package/lib/{core/learnings → packages/self-improve}/store.d.ts +0 -0
  2770. /package/lib/{plugins/session.d.ts → packages/session/index.d.ts} +0 -0
  2771. /package/lib/{plugins/session-search.d.ts → packages/session-search/index.d.ts} +0 -0
  2772. /package/lib/{core → packages/session-search}/session-index.d.ts +0 -0
  2773. /package/lib/{plugins/session-title.d.ts → packages/session-title/index.d.ts} +0 -0
  2774. /package/lib/{core → packages/settings}/model-discovery.d.ts +0 -0
  2775. /package/lib/{core → packages/settings}/model-discovery.js +0 -0
  2776. /package/lib/{plugins/spill.d.ts → packages/spill/index.d.ts} +0 -0
  2777. /package/lib/{core → packages/surfaces}/surface-registry.d.ts +0 -0
  2778. /package/lib/{core → packages/surfaces}/surface-registry.js +0 -0
  2779. /package/lib/{core → packages/todo}/todo.js +0 -0
  2780. /package/lib/{plugins/tool-search.d.ts → packages/tool-search/index.d.ts} +0 -0
  2781. /package/lib/{core → packages/tool-search}/tool-search.js +0 -0
  2782. /package/lib/{plugins/tools.d.ts → packages/tools/index.d.ts} +0 -0
  2783. /package/lib/{plugins/tools.js → packages/tools/index.js} +0 -0
  2784. /package/lib/{plugins/tools-default.d.ts → packages/tools-default/index.d.ts} +0 -0
  2785. /package/lib/{app → packages/tui/app}/AgentsOverlay.js +0 -0
  2786. /package/lib/{app → packages/tui/app}/AskCard.js +0 -0
  2787. /package/lib/{app → packages/tui/app}/MarkdownView.d.ts +0 -0
  2788. /package/lib/{app → packages/tui/app}/MarkdownView.js +0 -0
  2789. /package/lib/{app → packages/tui/app}/ModelPicker.js +0 -0
  2790. /package/lib/{app → packages/tui/app}/PickerFrame.d.ts +0 -0
  2791. /package/lib/{app → packages/tui/app}/PickerFrame.js +0 -0
  2792. /package/lib/{app → packages/tui/app}/PlanReviewCard.js +0 -0
  2793. /package/lib/{app → packages/tui/app}/PresetPicker.js +0 -0
  2794. /package/lib/{app → packages/tui/app}/PreviewOverlay.d.ts +0 -0
  2795. /package/lib/{app → packages/tui/app}/PreviewOverlay.js +0 -0
  2796. /package/lib/{app → packages/tui/app}/SessionPicker.js +0 -0
  2797. /package/lib/{app → packages/tui/app}/SkillsPicker.js +0 -0
  2798. /package/lib/{app → packages/tui/app}/TimelineRail.d.ts +0 -0
  2799. /package/lib/{app → packages/tui/app}/TimelineRail.js +0 -0
  2800. /package/lib/{app → packages/tui/app}/TranscriptOverlay.js +0 -0
  2801. /package/lib/{app → packages/tui/app}/Welcome.d.ts +0 -0
  2802. /package/lib/{app → packages/tui/app}/attach.d.ts +0 -0
  2803. /package/lib/{app → packages/tui/app}/attach.js +0 -0
  2804. /package/lib/{app → packages/tui/app}/click.d.ts +0 -0
  2805. /package/lib/{app → packages/tui/app}/click.js +0 -0
  2806. /package/lib/{app → packages/tui/app}/clipboard-image.d.ts +0 -0
  2807. /package/lib/{app → packages/tui/app}/cursor.d.ts +0 -0
  2808. /package/lib/{app → packages/tui/app}/cursor.js +0 -0
  2809. /package/lib/{app → packages/tui/app}/history-store.d.ts +0 -0
  2810. /package/lib/{app → packages/tui/app}/image-blocks.d.ts +0 -0
  2811. /package/lib/{app → packages/tui/app}/keymap.d.ts +0 -0
  2812. /package/lib/{app → packages/tui/app}/keymap.js +0 -0
  2813. /package/lib/{app → packages/tui/app}/markdown.d.ts +0 -0
  2814. /package/lib/{app → packages/tui/app}/markdown.js +0 -0
  2815. /package/lib/{app → packages/tui/app}/mouse.d.ts +0 -0
  2816. /package/lib/{app → packages/tui/app}/mouse.js +0 -0
  2817. /package/lib/{app → packages/tui/app}/pointer.d.ts +0 -0
  2818. /package/lib/{app → packages/tui/app}/pointer.js +0 -0
  2819. /package/lib/{app → packages/tui/app}/scroll-model.js +0 -0
  2820. /package/lib/{app → packages/tui/app}/snapshot-subscribe.d.ts +0 -0
  2821. /package/lib/{app → packages/tui/app}/theme.d.ts +0 -0
  2822. /package/lib/{app → packages/tui/app}/theme.js +0 -0
  2823. /package/lib/{app → packages/tui/app}/ticker.d.ts +0 -0
  2824. /package/lib/{app → packages/tui/app}/ticker.js +0 -0
  2825. /package/lib/{plugins/tui.d.ts → packages/tui/index.d.ts} +0 -0
  2826. /package/lib/{ui → packages/ui-core}/arrival.d.ts +0 -0
  2827. /package/lib/{ui → packages/ui-core}/arrival.js +0 -0
  2828. /package/lib/{ui → packages/ui-core}/frames.d.ts +0 -0
  2829. /package/lib/{ui → packages/ui-core}/plugin.js +0 -0
  2830. /package/lib/{ui → packages/ui-core}/scoped-slots.js +0 -0
  2831. /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/services-react.d.ts +0 -0
  2832. /package/lib/{ui → packages/ui-core}/services-react.js +0 -0
  2833. /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/services.d.ts +0 -0
  2834. /package/lib/{ui → packages/ui-core}/services.js +0 -0
  2835. /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/signal.d.ts +0 -0
  2836. /package/lib/{ui → packages/ui-core}/signal.js +0 -0
  2837. /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/slots-react.d.ts +0 -0
  2838. /package/lib/{ui → packages/ui-core}/slots-react.js +0 -0
  2839. /package/lib/{ui → packages/ui-core}/slots.js +0 -0
  2840. /package/lib/{ui/sdk/@dsc/ui-core/ui → packages/ui-core}/store.d.ts +0 -0
  2841. /package/lib/{ui → packages/ui-core}/store.js +0 -0
@@ -1,2966 +0,0 @@
1
- (globalThis.__DSC_UI_FACTORIES__ ??= {})["transcript"] = function (require, module, exports) {
2
- "use strict";
3
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
4
- const jsxRuntime = require("react/jsx-runtime");
5
- const react = require("react");
6
- const ui$1 = require("@dsc/ui");
7
- const uiPrimitives = require("@dsc/ui-primitives");
8
- const reactDom = require("react-dom");
9
- function tsOf(entry) {
10
- const ts = entry.ts;
11
- return typeof ts === "number" && Number.isFinite(ts) && ts > 0 ? ts : null;
12
- }
13
- function splitRounds(entries) {
14
- const rounds = [];
15
- entries.forEach((entry, index) => {
16
- if (entry.kind === "user") {
17
- const current2 = rounds[rounds.length - 1];
18
- if (entry.steering === true && current2 !== void 0) {
19
- current2.endIndex = index;
20
- const steeringTs = tsOf(entry);
21
- if (steeringTs !== null) current2.endTs = steeringTs;
22
- return;
23
- }
24
- rounds.push({
25
- index: rounds.length,
26
- startIndex: index,
27
- endIndex: index,
28
- startTs: tsOf(entry),
29
- endTs: null,
30
- answered: false
31
- });
32
- return;
33
- }
34
- const current = rounds[rounds.length - 1];
35
- if (current === void 0 || entry.kind === "system") return;
36
- current.endIndex = index;
37
- current.answered = true;
38
- const ts = tsOf(entry);
39
- if (ts !== null) current.endTs = ts;
40
- });
41
- for (const round of rounds) {
42
- if (round.endTs !== null && round.startTs !== null && round.endTs < round.startTs) round.endTs = null;
43
- }
44
- const seats = rounds.map((round, i) => {
45
- const next = rounds[i + 1];
46
- const stop = next === void 0 ? entries.length - 1 : next.startIndex - 1;
47
- const indices = [];
48
- for (let at = round.startIndex; at <= stop; at += 1) indices.push(at);
49
- return { round: round.index, indices };
50
- });
51
- const firstStart = rounds[0]?.startIndex ?? entries.length;
52
- const leading = [];
53
- for (let at = 0; at < firstStart; at += 1) leading.push(at);
54
- return { rounds, seats, leading };
55
- }
56
- const TEAMMATE_REPORT_OPEN = "<teammate-report ";
57
- function teammateReport(text) {
58
- if (!text.startsWith(TEAMMATE_REPORT_OPEN)) return null;
59
- const close = text.indexOf(">");
60
- const head = close === -1 ? text : text.slice(0, close);
61
- const from = /\bfrom="([^"]*)"/.exec(head)?.[1] ?? null;
62
- const state = /\bstate="([^"]*)"/.exec(head)?.[1] ?? null;
63
- return { from, state };
64
- }
65
- function teammateReportLabel(text) {
66
- const report = teammateReport(text);
67
- if (report === null) return "子任务汇报";
68
- const who = report.from === null || report.from === "" ? "队友" : `队友 ${report.from}`;
69
- const verb = report.state === "已失败" ? "失败了" : report.state === "已停止" ? "停了下来" : "汇报了运行结果";
70
- return `${who} ${verb}`;
71
- }
72
- function liveActivity(entries, turnState) {
73
- if (turnState === "idle") return null;
74
- if (turnState === "awaiting-approval") {
75
- return { text: "等待你的确认", covered: false };
76
- }
77
- const tail = entries[entries.length - 1];
78
- if (tail !== void 0 && tail.id < 0 && tail.kind === "thinking") {
79
- return { text: "正在分析请求", covered: false };
80
- }
81
- if (tail !== void 0 && tail.id < 0 && tail.kind === "text") {
82
- return { text: "正在整理回复", covered: false };
83
- }
84
- const running = [...entries].reverse().find(
85
- (entry) => entry.kind === "tool" && (entry.call.status === "running" || entry.call.status === "preparing")
86
- );
87
- if (running !== void 0) {
88
- const name = typeof running.call.name === "string" && running.call.name !== "" ? running.call.name : "未知工具";
89
- return {
90
- // 「准备中」是模型还在吐参数、「正在调用」是工具真的开跑了——两句话不同
91
- text: running.call.status === "preparing" ? `正在准备 ${name}` : `正在调用 ${name}`,
92
- // 工具在跑 = 过程组头正在画同一件事(除非用户把过程折叠关成了竖排)
93
- covered: true
94
- };
95
- }
96
- if (turnState === "working") return { text: "正在执行工具", covered: false };
97
- return { text: "正在分析请求", covered: false };
98
- }
99
- function roundDuration(round) {
100
- if (round.startTs === null || round.endTs === null) return null;
101
- const ms = round.endTs - round.startTs;
102
- return Number.isFinite(ms) && ms >= 0 ? ms : null;
103
- }
104
- const folds = /* @__PURE__ */ new Map();
105
- function readFold(key, fallback) {
106
- return foldStateOf(key, fallback).open;
107
- }
108
- function foldStateOf(key, fallback) {
109
- if (key === void 0) return { open: fallback, manual: false };
110
- const stored = folds.get(key);
111
- if (stored === void 0) return { open: fallback, manual: false };
112
- return { open: stored, manual: true };
113
- }
114
- function followFallback(current, key, fallback) {
115
- const state = foldStateOf(key, fallback);
116
- return state.manual ? current : state.open;
117
- }
118
- function writeFold(key, open) {
119
- if (key === void 0) return;
120
- folds.set(key, open);
121
- }
122
- function turnFoldKey(sessionId, roundIndex) {
123
- return `${sessionId ?? ""}:turn:${String(roundIndex)}`;
124
- }
125
- function stepGroupFoldKey(sessionId, roundIndex, groupSeq) {
126
- return `${sessionId ?? ""}:step:${String(roundIndex)}:${String(groupSeq)}`;
127
- }
128
- const PROCESS_FOLD_POLICIES = {
129
- // 紧凑档也带摘要(2026-10-30 用户拍板):这一档管的是「定稿的回合收成一行用时」,
130
- // 它不该顺手把行内摘要一起删掉——摘要回答的是「这条思考讲了什么」,与整轮折不折是两件事。
131
- // 删掉之后紧凑档的过程行只剩「思考 ∨」「工具调用 · run_code」这种没有内容的标题,
132
- // 用户的原话是「现在的思考行没有思考摘要显示」。
133
- compact: { foldTurns: true, stepGrouping: "collapsed", liveDetail: false, reasoningPreview: true },
134
- standard: { foldTurns: true, stepGrouping: "collapsed", liveDetail: true, reasoningPreview: true },
135
- detailed: { foldTurns: true, stepGrouping: "history", liveDetail: true, reasoningPreview: true },
136
- verbose: { foldTurns: false, stepGrouping: "none", liveDetail: false, reasoningPreview: true }
137
- };
138
- function processFoldPolicy(fold) {
139
- return PROCESS_FOLD_POLICIES[fold ?? "standard"];
140
- }
141
- function buildRoundFolds(entries, rounds, options) {
142
- const out = /* @__PURE__ */ new Map();
143
- for (const round of rounds) {
144
- let answerIndex = -1;
145
- for (let at = round.endIndex; at > round.startIndex; at -= 1) {
146
- const entry = entries[at];
147
- if (entry !== void 0 && entry.kind === "text" && entry.id >= 0) {
148
- answerIndex = at;
149
- break;
150
- }
151
- }
152
- let startIndex = -1;
153
- let endIndex = -1;
154
- let hasLiveEntry = false;
155
- let hasSteering = false;
156
- let endReason;
157
- for (let at = round.startIndex + 1; at <= round.endIndex; at += 1) {
158
- const entry = entries[at];
159
- if (entry === void 0) continue;
160
- if (entry.id < 0) hasLiveEntry = true;
161
- if (entry.kind === "user" && entry.steering === true) hasSteering = true;
162
- if (entry.kind === "turn-end") endReason = entry.reason;
163
- if (entry.kind !== "thinking" && entry.kind !== "tool" && entry.kind !== "text") continue;
164
- if (answerIndex >= 0 && at >= answerIndex) continue;
165
- if (startIndex < 0) startIndex = at;
166
- endIndex = at;
167
- }
168
- const hasContent = startIndex >= 0;
169
- out.set(round.index, {
170
- roundIndex: round.index,
171
- startIndex,
172
- endIndex,
173
- hasContent,
174
- foldable: options.foldTurns,
175
- // 跑动中的两种形态都算「这一轮还没收尾」:出现了直播条目(id<0),或者这就是最后一轮
176
- // 而回合还没结束,或者用户刚发完消息、助手一个字都还没回(answered 为假)。
177
- running: hasLiveEntry || options.live && round.index === options.lastRoundIndex || !round.answered,
178
- blocked: hasSteering || endReason === "aborted" || endReason === "error",
179
- endReason
180
- });
181
- }
182
- return out;
183
- }
184
- function TurnFoldRow(props) {
185
- const used = uiPrimitives.formatDuration(roundDuration(props.round));
186
- const label = props.endReason === "aborted" ? "已停止" : props.endReason === "error" ? "过程失败" : used === null ? "已完成" : `用时 ${used}`;
187
- const toggle = (event) => {
188
- if (event.key !== "Enter" && event.key !== " ") return;
189
- event.preventDefault();
190
- props.onToggle();
191
- };
192
- return /* @__PURE__ */ jsxRuntime.jsxs(
193
- "button",
194
- {
195
- type: "button",
196
- className: "turn-fold",
197
- "data-open": props.open ? "1" : void 0,
198
- "data-round-index": props.round.index,
199
- "data-turn-blocked": props.disabled ? "1" : void 0,
200
- disabled: props.disabled,
201
- "aria-expanded": props.disabled ? void 0 : props.open,
202
- "data-tip": props.disabled ? props.endReason === "aborted" ? "这一轮被中断,过程保持展开" : props.endReason === "error" ? "这一轮跑挂了,过程保持展开" : "这一轮没有可折叠的过程内容" : props.open ? "收起这一轮的过程(思考与工具调用)" : "展开这一轮的过程(思考与工具调用)",
203
- onClick: props.onToggle,
204
- onKeyDown: toggle,
205
- children: [
206
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "turn-fold-label", children: label }),
207
- props.disabled ? null : /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 11, className: "turn-fold-chevron" })
208
- ]
209
- }
210
- );
211
- }
212
- function useFoldMemory() {
213
- const [map, setMap] = react.useState({});
214
- const open = react.useCallback(
215
- (key, fallback) => map[key] ?? readFold(key, fallback),
216
- [map]
217
- );
218
- const set = react.useCallback((key, next) => {
219
- writeFold(key, next);
220
- setMap((current) => ({ ...current, [key]: next }));
221
- }, []);
222
- const reset = react.useCallback((keys) => {
223
- if (keys.length === 0) return;
224
- for (const key of keys) writeFold(key, false);
225
- setMap((current) => {
226
- let next = current;
227
- for (const key of keys) {
228
- if (next[key] === void 0) continue;
229
- if (next === current) next = { ...current };
230
- delete next[key];
231
- }
232
- return next;
233
- });
234
- }, []);
235
- return react.useMemo(() => ({ open, set, reset }), [open, set, reset]);
236
- }
237
- function seatPlan(ats, grouping) {
238
- const items = [];
239
- for (const at of ats) {
240
- const head = grouping.headAt.get(at);
241
- if (head !== void 0) {
242
- const members = [];
243
- for (let index = head.startIndex; index <= head.endIndex; index += 1) members.push(index);
244
- items.push({ kind: "group", group: head, members });
245
- continue;
246
- }
247
- if (grouping.at.has(at)) continue;
248
- items.push({ kind: "row", at });
249
- }
250
- return items;
251
- }
252
- function needsGroupHeader(group) {
253
- return group.size >= 2;
254
- }
255
- function activityOf(name) {
256
- const tool = typeof name === "string" ? name.toLowerCase() : "";
257
- if (tool === "read") return "read";
258
- if (tool === "read_image") return "readImage";
259
- if (tool === "grep" || tool === "glob" || tool === "search" || tool === "session_search" || tool.endsWith("_inspect")) return "search";
260
- if (tool === "write") return "write";
261
- if (tool === "edit" || tool === "apply_patch") return "edit";
262
- if (tool === "bash" || tool === "pwsh" || tool === "exec_command" || tool === "write_stdin" || tool.startsWith("terminal_")) return "commands";
263
- if (tool === "run_code") return "code";
264
- if (tool === "web_search") return "webSearch";
265
- if (tool === "web_fetch") return "webFetch";
266
- if (tool === "browser") return "browser";
267
- if (tool === "subagent" || tool.startsWith("subagent_")) return "subagents";
268
- if (tool === "todo_write" || tool === "create_goal" || tool === "update_goal" || tool === "get_goal" || tool === "exit_plan_mode") return "plan";
269
- if (tool === "ask_user" || tool === "ask_user_question" || tool === "request_user_input") return "questions";
270
- return "tools";
271
- }
272
- const DONE_LABEL = {
273
- read: "已读取文件",
274
- readImage: "已读取图片",
275
- search: "已搜索代码",
276
- write: "已写入文件",
277
- edit: "修改了文件",
278
- commands: "执行了命令",
279
- code: "运行了代码",
280
- webSearch: "已搜索网页",
281
- webFetch: "已访问网页",
282
- browser: "已浏览网页",
283
- subagents: "已协调子智能体",
284
- plan: "更新了计划",
285
- questions: "向用户提出了问题",
286
- tools: "已调用工具"
287
- };
288
- function liveTitleOf(group) {
289
- return {
290
- activity: group.running ?? "thinking",
291
- detail: group.runningDetail ?? "",
292
- preparing: group.preparing === true
293
- };
294
- }
295
- function sameLiveTitle(left, right) {
296
- return left.activity === right.activity && left.detail === right.detail && left.preparing === right.preparing;
297
- }
298
- const PROCESS_TITLE_MINIMUM_MS = 150;
299
- function liveTitleDecision(shown, desired, heldMs) {
300
- if (sameLiveTitle(shown, desired)) return { keep: true, waitMs: 0 };
301
- const remaining = PROCESS_TITLE_MINIMUM_MS - heldMs;
302
- if (remaining <= 0) return { keep: false, waitMs: 0 };
303
- return { keep: true, waitMs: remaining };
304
- }
305
- const RUNNING_LABEL = {
306
- read: "正在读取文件",
307
- readImage: "正在读取图片",
308
- search: "正在搜索代码",
309
- write: "正在写入文件",
310
- edit: "正在编辑文件",
311
- commands: "正在运行命令",
312
- code: "正在运行代码",
313
- webSearch: "正在搜索网页",
314
- webFetch: "正在访问网页",
315
- browser: "正在浏览网页",
316
- subagents: "正在协调子智能体",
317
- plan: "正在更新计划",
318
- questions: "等待你的操作",
319
- tools: "正在调用工具"
320
- };
321
- const DONE_THINKING = "已完成分析";
322
- const RUNNING_THINKING = "正在分析请求";
323
- const PREPARE_LABEL = {
324
- read: "准备读取文件",
325
- readImage: "准备读取图片",
326
- search: "准备搜索代码",
327
- write: "准备写入文件",
328
- edit: "准备编辑文件",
329
- commands: "准备运行命令",
330
- code: "准备运行代码",
331
- webSearch: "准备搜索网页",
332
- webFetch: "准备访问网页",
333
- browser: "准备浏览网页",
334
- subagents: "准备协调子智能体",
335
- plan: "准备更新计划",
336
- questions: "准备提问",
337
- tools: "准备调用工具"
338
- };
339
- const COMMA = ",";
340
- const JOIN_TWO = "并";
341
- const SHARED_PREFIX = "已";
342
- const MORE = "等";
343
- const TITLE_MAX_KINDS = 3;
344
- function stepGroupTitle(counts, closed, running, preparing) {
345
- if (!closed) {
346
- if (running === void 0) return RUNNING_THINKING;
347
- return preparing === true ? PREPARE_LABEL[running] : RUNNING_LABEL[running];
348
- }
349
- const labels = counts.slice(0, TITLE_MAX_KINDS).map((item) => DONE_LABEL[item.kind]);
350
- const first = labels[0];
351
- if (first === void 0) return DONE_THINKING;
352
- const second = labels[1];
353
- if (second === void 0) return first;
354
- if (labels.length === 2) {
355
- const shared = first.startsWith(SHARED_PREFIX) && second.startsWith(SHARED_PREFIX);
356
- const tail = shared ? second.slice(SHARED_PREFIX.length) : second;
357
- return `${first}${JOIN_TWO}${tail}`;
358
- }
359
- const title = labels.join(COMMA);
360
- return counts.length > TITLE_MAX_KINDS ? `${title}${MORE}` : title;
361
- }
362
- function countActivities(entries, indexes) {
363
- const counts = /* @__PURE__ */ new Map();
364
- for (const index of indexes) {
365
- const entry = entries[index];
366
- if (entry === void 0 || entry.kind !== "tool") continue;
367
- const kind = activityOf(entry.call.name);
368
- counts.set(kind, (counts.get(kind) ?? 0) + 1);
369
- }
370
- return [...counts].map(([kind, count]) => ({ kind, count })).sort((left, right) => right.count - left.count);
371
- }
372
- function countFailures(entries, indexes) {
373
- let failures = 0;
374
- for (const index of indexes) {
375
- const entry = entries[index];
376
- if (entry !== void 0 && entry.kind === "tool" && entry.call.status === "failed") failures += 1;
377
- }
378
- return failures;
379
- }
380
- function groupSteps(entries, rounds, isRunning, settledOnly = false) {
381
- const groups = [];
382
- for (const round of rounds) {
383
- if (settledOnly && isRunning(round.index)) continue;
384
- let pending = [];
385
- let seq = 0;
386
- const flush = (closed) => {
387
- const first = pending[0];
388
- const last = pending[pending.length - 1];
389
- if (first === void 0 || last === void 0) return;
390
- const group = {
391
- roundIndex: round.index,
392
- seq,
393
- startIndex: first,
394
- endIndex: last,
395
- size: pending.length,
396
- counts: countActivities(entries, pending),
397
- failures: countFailures(entries, pending),
398
- closed
399
- };
400
- groups.push(group);
401
- seq += 1;
402
- pending = [];
403
- };
404
- for (let at2 = round.startIndex + 1; at2 <= round.endIndex; at2 += 1) {
405
- const entry = entries[at2];
406
- if (entry === void 0) continue;
407
- if (entry.kind === "tool") {
408
- pending.push(at2);
409
- continue;
410
- }
411
- if (entry.kind === "thinking") {
412
- flush(true);
413
- continue;
414
- }
415
- if (entry.kind === "text" || entry.kind === "plan" || entry.kind === "user" || entry.kind === "turn-end" || entry.kind === "turn-max-tokens" || entry.kind === "model-retry") {
416
- flush(true);
417
- continue;
418
- }
419
- }
420
- if (isRunning(round.index)) pending = [];
421
- else flush(true);
422
- }
423
- const headAt = /* @__PURE__ */ new Map();
424
- const at = /* @__PURE__ */ new Map();
425
- for (const group of groups) {
426
- headAt.set(group.startIndex, group);
427
- for (let index = group.startIndex; index <= group.endIndex; index += 1) at.set(index, group);
428
- }
429
- return { groups, headAt, at };
430
- }
431
- function dedupeByRound(rows) {
432
- const seen = /* @__PURE__ */ new Set();
433
- const anchors = [];
434
- for (const row of rows) {
435
- if (seen.has(row.round)) continue;
436
- seen.add(row.round);
437
- anchors.push(row);
438
- }
439
- return anchors;
440
- }
441
- function pickCurrentRound(probe) {
442
- if (probe.atBottom && probe.lastRound >= 0) return probe.lastRound;
443
- if (probe.hitRound !== null) return probe.hitRound;
444
- if (probe.anchors.length === 0) return -1;
445
- let current = -1;
446
- for (const anchor of probe.anchors) {
447
- if (anchor.top <= probe.probeTop) current = anchor.round;
448
- else break;
449
- }
450
- return current === -1 ? probe.anchors[0]?.round ?? -1 : current;
451
- }
452
- const PROBE_INSET = 8;
453
- const AT_BOTTOM_EPS = 32;
454
- const RAIL_MIN_WIDTH = 900;
455
- const TICK_STEP = 10;
456
- const FADE_PX = 24;
457
- const REVEAL_TRIES = 40;
458
- function measureCurrent(scroller, rounds) {
459
- const box = scroller.getBoundingClientRect();
460
- const { scrollTop } = scroller;
461
- const maxScroll = scroller.scrollHeight - scroller.clientHeight;
462
- const rows = [];
463
- for (const row of scroller.querySelectorAll("[data-round]")) {
464
- const value = Number(row.getAttribute("data-round"));
465
- if (!Number.isInteger(value) || value < 0) continue;
466
- if (row.getClientRects().length === 0) continue;
467
- rows.push({ round: value, top: row.getBoundingClientRect().top - box.top + scrollTop });
468
- }
469
- const probeY = box.top + PROBE_INSET;
470
- const probeX = box.left + scroller.clientWidth / 2;
471
- const hit = document.elementFromPoint(probeX, probeY);
472
- let hitRound = null;
473
- if (hit !== null && scroller.contains(hit)) {
474
- const row = hit.closest("[data-round]");
475
- const value = row === null ? Number.NaN : Number(row.getAttribute("data-round"));
476
- if (Number.isInteger(value) && value >= 0) hitRound = value;
477
- }
478
- return pickCurrentRound({
479
- atBottom: maxScroll > 0 && maxScroll - scrollTop <= AT_BOTTOM_EPS,
480
- lastRound: rounds.at(-1)?.round ?? -1,
481
- hitRound,
482
- anchors: dedupeByRound(rows),
483
- probeTop: scrollTop + PROBE_INSET
484
- });
485
- }
486
- function flatten(text, limit) {
487
- const flat = text.replace(/\s+/g, " ").trim();
488
- return flat.length > limit ? `${flat.slice(0, limit)}…` : flat;
489
- }
490
- const PREVIEW_LIMITS = { prompt: 50, response: 120 };
491
- function previewText(text, kind) {
492
- return flatten(text, PREVIEW_LIMITS[kind]);
493
- }
494
- function JumpRail(props) {
495
- const wrapRef = react.useRef(null);
496
- const scrollerRef = react.useRef(null);
497
- const scrollRef = react.useRef(null);
498
- const [host, setHost] = react.useState(null);
499
- const [current, setCurrent] = react.useState(-1);
500
- const [wide, setWide] = react.useState(true);
501
- const [edges, setEdges] = react.useState({ up: false, down: false });
502
- const [preview, setPreview] = react.useState(null);
503
- const [previewCenter, setPreviewCenter] = react.useState(0);
504
- const [busy, setBusy] = react.useState(null);
505
- const pointerInside = react.useRef(false);
506
- react.useEffect(() => {
507
- const wrap = wrapRef.current?.closest(".chat-wrap");
508
- if (!(wrap instanceof HTMLElement)) return;
509
- const scroller = wrap.querySelector(".chat");
510
- setHost(wrap);
511
- scrollerRef.current = scroller instanceof HTMLElement ? scroller : null;
512
- }, []);
513
- react.useEffect(() => {
514
- const scroller = scrollerRef.current;
515
- if (host === null || scroller === null) return void 0;
516
- let raf = 0;
517
- const measure = () => {
518
- raf = 0;
519
- setCurrent(measureCurrent(scroller, props.rounds));
520
- };
521
- const schedule = () => {
522
- if (raf === 0) raf = requestAnimationFrame(measure);
523
- };
524
- schedule();
525
- scroller.addEventListener("scroll", schedule, { passive: true });
526
- const observer = new ResizeObserver(schedule);
527
- observer.observe(scroller);
528
- const inner = scroller.firstElementChild;
529
- if (inner !== null) observer.observe(inner);
530
- return () => {
531
- scroller.removeEventListener("scroll", schedule);
532
- observer.disconnect();
533
- if (raf !== 0) cancelAnimationFrame(raf);
534
- };
535
- }, [host, props.rounds.length, props.renderedFrom]);
536
- react.useEffect(() => {
537
- if (host === null) return void 0;
538
- const measure = () => setWide(host.clientWidth >= RAIL_MIN_WIDTH);
539
- measure();
540
- const observer = new ResizeObserver(measure);
541
- observer.observe(host);
542
- return () => observer.disconnect();
543
- }, [host]);
544
- const syncEdges = react.useCallback(() => {
545
- const scroll = scrollRef.current;
546
- if (scroll === null) return;
547
- const limit = scroll.scrollHeight - scroll.clientHeight;
548
- const up = scroll.scrollTop > 1;
549
- const down = limit > 0 && scroll.scrollTop < limit - 1;
550
- setEdges((prev) => prev.up === up && prev.down === down ? prev : { up, down });
551
- }, []);
552
- react.useEffect(syncEdges, [syncEdges, props.rounds.length]);
553
- react.useEffect(() => {
554
- if (preview === null) return;
555
- const scroll = scrollRef.current;
556
- const tick = scroll?.querySelector(`[data-turn="${String(preview)}"]`);
557
- if (scroll === null || tick === null || tick === void 0) return;
558
- setPreviewCenter(tick.offsetTop + TICK_STEP / 2 - scroll.scrollTop);
559
- }, [preview]);
560
- react.useEffect(() => {
561
- if (current < 0 || pointerInside.current) return;
562
- const scroll = scrollRef.current;
563
- const tick = scroll?.querySelector(`[data-turn="${String(current)}"]`);
564
- if (scroll === null || tick === null || tick === void 0) return;
565
- const height = scroll.clientHeight;
566
- const limit = scroll.scrollHeight - height;
567
- if (limit <= 0) return;
568
- const center = tick.offsetTop + TICK_STEP / 2;
569
- if (center >= scroll.scrollTop + FADE_PX && center <= scroll.scrollTop + height - FADE_PX) return;
570
- const target = Math.max(0, Math.min(limit, center - height / 2));
571
- scroll.scrollTo({ top: target, behavior: "smooth" });
572
- }, [current]);
573
- const jump = react.useCallback(
574
- (round) => {
575
- const scroller = scrollerRef.current;
576
- if (scroller === null) return;
577
- const find = () => scroller.querySelector(`[data-round="${String(round)}"] .entry-user`) ?? scroller.querySelector(`[data-round="${String(round)}"]`);
578
- void (async () => {
579
- let node = find();
580
- if (node === null && round < props.renderedFrom) {
581
- setBusy(round);
582
- props.onReveal(round);
583
- for (let i = 0; i < REVEAL_TRIES && node === null; i += 1) {
584
- await new Promise((resolve) => requestAnimationFrame(resolve));
585
- node = find();
586
- }
587
- setBusy(null);
588
- }
589
- node?.scrollIntoView({ behavior: "smooth", block: "start" });
590
- })();
591
- },
592
- [props]
593
- );
594
- const previewRound = preview === null ? void 0 : props.rounds.find((item) => item.round === preview);
595
- const visible = host !== null && wide && props.rounds.length >= 2;
596
- const rail = /* @__PURE__ */ jsxRuntime.jsxs(
597
- "div",
598
- {
599
- className: "jump-rail",
600
- role: "navigation",
601
- "aria-label": "回合刻度条",
602
- hidden: !visible,
603
- onPointerEnter: () => {
604
- pointerInside.current = true;
605
- },
606
- onPointerLeave: () => {
607
- pointerInside.current = false;
608
- setPreview(null);
609
- },
610
- children: [
611
- /* @__PURE__ */ jsxRuntime.jsx(
612
- "div",
613
- {
614
- ref: scrollRef,
615
- className: "jump-rail-scroll",
616
- "data-fade-up": edges.up ? "" : void 0,
617
- "data-fade-down": edges.down ? "" : void 0,
618
- onScroll: syncEdges,
619
- children: props.rounds.map((item) => {
620
- const active = item.round === current;
621
- const unloaded = item.round < props.renderedFrom;
622
- return /* @__PURE__ */ jsxRuntime.jsx(
623
- "button",
624
- {
625
- type: "button",
626
- className: `jump-tick${active ? " on" : ""}${unloaded ? " is-unloaded" : ""}${busy === item.round ? " is-busy" : ""}`,
627
- "data-turn": item.round,
628
- "aria-label": `第 ${String(item.round + 1)} 轮${unloaded ? "(还没画出来,点了先放出来)" : ""}:${item.prompt}`,
629
- "aria-current": active ? "true" : void 0,
630
- "aria-busy": busy === item.round ? "true" : void 0,
631
- onPointerEnter: () => setPreview(item.round),
632
- onFocus: () => {
633
- setPreview(item.round);
634
- },
635
- onBlur: () => setPreview(null),
636
- onClick: () => {
637
- jump(item.round);
638
- }
639
- },
640
- item.round
641
- );
642
- })
643
- }
644
- ),
645
- previewRound === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsxs(
646
- "div",
647
- {
648
- className: "jump-preview",
649
- role: "tooltip",
650
- style: { "--jump-preview-center": `${String(previewCenter)}px` },
651
- children: [
652
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "jump-preview-prompt", children: previewRound.prompt === "" ? `第 ${String(previewRound.round + 1)} 轮` : previewRound.prompt }),
653
- previewRound.response === "" ? null : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "jump-preview-response", children: previewRound.response })
654
- ]
655
- }
656
- )
657
- ]
658
- }
659
- );
660
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
661
- /* @__PURE__ */ jsxRuntime.jsx("div", { ref: wrapRef, hidden: true }),
662
- host === null ? null : reactDom.createPortal(rail, host)
663
- ] });
664
- }
665
- const PAGE_MIN_ENTRIES = 50;
666
- const PAGE_MIN_ROUNDS = 2;
667
- const PAGE_MAX_ENTRIES = 500;
668
- function pageStartRound(roundSizes, beforeRound) {
669
- let start = beforeRound;
670
- let entries = 0;
671
- let rounds = 0;
672
- for (let index = beforeRound - 1; index >= 0; index -= 1) {
673
- const size = roundSizes[index] ?? 0;
674
- if (entries > 0 && entries + size > PAGE_MAX_ENTRIES) break;
675
- start = index;
676
- entries += size;
677
- rounds += 1;
678
- if (entries >= PAGE_MAX_ENTRIES) break;
679
- if (entries >= PAGE_MIN_ENTRIES && rounds >= PAGE_MIN_ROUNDS) break;
680
- }
681
- return start;
682
- }
683
- function useFoldState(storeKey, fallback) {
684
- const [open, setOpen] = react.useState(() => foldStateOf(storeKey, fallback).open);
685
- react.useEffect(() => {
686
- setOpen((current) => followFallback(current, storeKey, fallback));
687
- }, [storeKey, fallback]);
688
- const set = react.useCallback(
689
- (next) => {
690
- writeFold(storeKey, next);
691
- setOpen(next);
692
- },
693
- [storeKey]
694
- );
695
- return [open, set];
696
- }
697
- const RESULT_TAIL_LINES = 0;
698
- const PREVIEW_LINE_MAX_CHARS = 300;
699
- function resultTail(text, limit = RESULT_TAIL_LINES) {
700
- if (text === void 0 || text.trim() === "") return null;
701
- const all = text.replace(/\r\n?/g, "\n").split("\n");
702
- let end = all.length;
703
- while (end > 0 && (all[end - 1] ?? "").trim() === "") end -= 1;
704
- const kept = [];
705
- for (let index = 0; index < end; index += 1) {
706
- const line = (all[index] ?? "").replace(/[ \t]+$/, "");
707
- if (line.trim() === "") continue;
708
- kept.push(clipLine(line));
709
- }
710
- if (kept.length === 0) return null;
711
- const cap = Math.max(0, limit);
712
- const lines = cap === 0 ? [] : kept.slice(-cap);
713
- return { lines, hidden: kept.length - lines.length };
714
- }
715
- function clipLine(line) {
716
- if (line.length <= PREVIEW_LINE_MAX_CHARS) return line;
717
- return `${Array.from(line).slice(0, PREVIEW_LINE_MAX_CHARS - 1).join("")}…`;
718
- }
719
- const MAX_DIFF_LINES = 800;
720
- function parseIntended(name, argsText) {
721
- if (name !== "write" && name !== "edit") return null;
722
- let parsed;
723
- try {
724
- parsed = JSON.parse(argsText);
725
- } catch {
726
- return null;
727
- }
728
- if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) return null;
729
- const args = parsed;
730
- const path = typeof args.path === "string" ? args.path : "";
731
- if (path === "") return null;
732
- if (name === "write") {
733
- return typeof args.content === "string" ? { path, content: args.content } : null;
734
- }
735
- if (typeof args.old !== "string" || typeof args.new !== "string") return null;
736
- return { path, content: args.new, old: args.old };
737
- }
738
- function toAbsPath(path, cwd) {
739
- if (/^[A-Za-z]:[\\/]/.test(path) || path.startsWith("\\\\") || path.startsWith("/")) return path;
740
- if (cwd === "") return path;
741
- const sep = cwd.includes("\\") ? "\\" : "/";
742
- return `${cwd.replace(/[\\/]+$/, "")}${sep}${path}`;
743
- }
744
- function diffToView(path, before, after) {
745
- const result = ui$1.diffLines(before, after, 3);
746
- if (!result.ok || result.hunks.length === 0) return null;
747
- const hunks = [];
748
- let budget = MAX_DIFF_LINES;
749
- for (const hunk of result.hunks) {
750
- if (budget <= 0) break;
751
- const lines = hunk.lines.length <= budget ? hunk.lines : hunk.lines.slice(0, budget);
752
- hunks.push(lines.length === hunk.lines.length ? hunk : { ...hunk, lines });
753
- budget -= lines.length;
754
- }
755
- return {
756
- path,
757
- added: result.added,
758
- removed: result.removed,
759
- hunks,
760
- ...hunks.length < result.hunks.length ? { truncated: true } : {},
761
- status: before === "" ? "added" : "modified"
762
- };
763
- }
764
- function useIntendedDiff(call, workdir, enabled = true) {
765
- const channel = ui$1.useHostChannel();
766
- const input = react.useMemo(() => parseIntended(call.name, call.argsText), [call.name, call.argsText]);
767
- const [state, setState] = react.useState(null);
768
- const absPath = input === null ? null : toAbsPath(input.path, workdir);
769
- react.useEffect(() => {
770
- if (!enabled || input === null || absPath === null || call.status !== "running") {
771
- setState(null);
772
- return;
773
- }
774
- let on = true;
775
- setState(null);
776
- const apply = (before) => {
777
- if (before !== null && input.old !== void 0) {
778
- const at = before.indexOf(input.old);
779
- if (at < 0) {
780
- setState({ absPath, file: diffToView(absPath, input.old, input.content), fellBack: false, mismatch: "missing" });
781
- return;
782
- }
783
- if (before.indexOf(input.old, at + 1) >= 0) {
784
- setState({ absPath, file: diffToView(absPath, input.old, input.content), fellBack: false, mismatch: "ambiguous" });
785
- return;
786
- }
787
- }
788
- const fellBack = before === null;
789
- let after;
790
- let effectiveBefore;
791
- if (input.old === void 0) {
792
- effectiveBefore = before ?? "";
793
- after = input.content;
794
- } else if (before !== null) {
795
- const at = before.indexOf(input.old);
796
- effectiveBefore = before;
797
- after = before.slice(0, at) + input.content + before.slice(at + input.old.length);
798
- } else {
799
- effectiveBefore = input.old;
800
- after = input.content;
801
- }
802
- setState({ absPath, file: diffToView(absPath, effectiveBefore, after), fellBack });
803
- };
804
- void channel.invoke("dock", ["fs-read", { file: absPath }]).then((raw) => {
805
- if (!on) return;
806
- apply(raw.kind === "text" && typeof raw.text === "string" ? raw.text : null);
807
- }).catch(() => {
808
- if (on) apply(null);
809
- });
810
- return () => {
811
- on = false;
812
- };
813
- }, [absPath, call.status, enabled, input, channel]);
814
- return state;
815
- }
816
- const TOOLCARD_FACTORY = "transcript.tool-card";
817
- const TOOLCARD_FOOTER_SLOT = "transcript.toolcard.footer";
818
- const BAR_MIN_CONTENT_H$1 = 400;
819
- function expandedContentHeight$1(body) {
820
- let total = 0;
821
- for (const child of Array.from(body.children)) {
822
- if (!(child instanceof HTMLElement)) continue;
823
- if (child.dataset.tcChrome !== void 0) continue;
824
- total += Math.max(child.scrollHeight, child.offsetHeight);
825
- }
826
- return total;
827
- }
828
- function dshPatchOf(presentation) {
829
- const card = presentation?.result;
830
- if (card === void 0 || card["card"] !== "diff") return null;
831
- const diffs = card["diffs"];
832
- if (!Array.isArray(diffs) || diffs.length === 0) return null;
833
- const first = diffs[0];
834
- if (typeof first.path !== "string" || typeof first.newText !== "string") return null;
835
- const before = typeof first.oldText === "string" ? first.oldText : "";
836
- const diff = ui$1.diffLines(before, first.newText, 3);
837
- if (!diff.ok || diff.identical) return null;
838
- return {
839
- path: first.path,
840
- added: diff.added,
841
- removed: diff.removed,
842
- hunks: diff.hunks,
843
- status: first.oldText === null ? "added" : "modified"
844
- };
845
- }
846
- function registerToolCard(ui2) {
847
- ui2.slots.registerFactory(
848
- {
849
- name: TOOLCARD_FACTORY,
850
- children: { [TOOLCARD_FOOTER_SLOT]: "list" },
851
- slots: { preview: {}, statusDetail: {}, bodyExtra: {}, trailing: {} }
852
- },
853
- ToolCard
854
- );
855
- }
856
- function ToolCard(props) {
857
- const { entry, storeKey, persistKey, match: electedMatch, foldPrefs, cwd = "" } = props;
858
- const variant = props.variant ?? "chat";
859
- const call = entry.call;
860
- const [open, setOpenPersisted] = useFoldState(persistKey, foldPrefs?.toolOpen ?? false);
861
- const [barVisible, setBarVisible] = react.useState(false);
862
- const expandable = call.status !== "preparing";
863
- const bodyOpen = open && expandable;
864
- const running = call.status === "running";
865
- const summary = uiPrimitives.toolSummary(call.name, call.argsText);
866
- const match = electedMatch ?? uiPrimitives.matchTool(call.name);
867
- const Icon = match.Icon;
868
- const targetPath = fileTargetOf(call.name, call.argsText, cwd);
869
- const intended = useIntendedDiff(call, cwd, variant === "chat");
870
- const bodyRef = react.useRef(null);
871
- const barRef = react.useRef(null);
872
- const Preview = props.useFactorySlot("preview", SummaryPreview);
873
- const StatusDetail = props.useFactorySlot("statusDetail", ChatStatus);
874
- const BodyExtra = props.useFactorySlot("bodyExtra", IntendedBody);
875
- const Trailing = props.useFactorySlot("trailing", NoTrailing);
876
- const dshPatch = dshPatchOf(call.presentation);
877
- const patch = intended?.file ?? call.change ?? dshPatch;
878
- const argView = uiPrimitives.toolArgFields(call.name, call.argsText);
879
- const paramsAsFields = patch !== null && argView.mutating;
880
- const tail = react.useMemo(
881
- () => bodyOpen || variant !== "chat" || running ? null : resultTail(call.resultText),
882
- [bodyOpen, variant, running, call.resultText]
883
- );
884
- const toggle = () => {
885
- if (expandable) setOpenPersisted(!open);
886
- };
887
- react.useEffect(() => {
888
- const body = bodyRef.current;
889
- if (body === null || !bodyOpen || variant !== "chat") {
890
- setBarVisible(false);
891
- return void 0;
892
- }
893
- const measure = () => {
894
- setBarVisible(expandedContentHeight$1(body) > BAR_MIN_CONTENT_H$1);
895
- };
896
- measure();
897
- const observer = new ResizeObserver(measure);
898
- observer.observe(body);
899
- return () => {
900
- observer.disconnect();
901
- };
902
- }, [bodyOpen, variant, call.argsText, call.resultText, call.status]);
903
- react.useEffect(() => {
904
- if (!bodyOpen || !barVisible || variant !== "chat") return void 0;
905
- const bar = barRef.current;
906
- const body = bodyRef.current;
907
- if (bar === null || body === null) return void 0;
908
- const chat = body.closest(".chat");
909
- if (!(chat instanceof HTMLElement)) return void 0;
910
- const padTop = Number.parseFloat(getComputedStyle(chat).paddingTop);
911
- const threshold = (Number.isFinite(padTop) ? padTop : 12) + 1.5;
912
- const sync = () => {
913
- const gap = bar.getBoundingClientRect().top - chat.getBoundingClientRect().top;
914
- bar.classList.toggle("stuck", gap <= threshold);
915
- };
916
- sync();
917
- chat.addEventListener("scroll", sync, { passive: true });
918
- return () => {
919
- chat.removeEventListener("scroll", sync);
920
- };
921
- }, [bodyOpen, barVisible, variant, call.argsText, call.resultText, call.status]);
922
- const duration = uiPrimitives.formatDuration(call.durationMs ?? null);
923
- const barStatus = running || duration === null ? uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status : `${uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status} · 用时 ${duration}`;
924
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `entry tool-card status-${call.status}${bodyOpen ? " open" : ""}`, children: [
925
- /* @__PURE__ */ jsxRuntime.jsxs(
926
- "div",
927
- {
928
- className: "tool-head",
929
- "data-tip": expandable ? bodyOpen ? "收起参数与结果" : "展开参数与结果" : "正在准备参数",
930
- children: [
931
- /* @__PURE__ */ jsxRuntime.jsxs(
932
- "span",
933
- {
934
- className: `tool-click${expandable ? "" : " inert"}`,
935
- role: expandable ? "button" : void 0,
936
- tabIndex: expandable ? 0 : -1,
937
- ...expandable ? { "aria-expanded": bodyOpen } : {},
938
- onClick: expandable ? toggle : void 0,
939
- onKeyDown: (event) => {
940
- if (event.key !== "Enter" && event.key !== " ") return;
941
- event.preventDefault();
942
- toggle();
943
- },
944
- children: [
945
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "tool-leading", "aria-hidden": "true", children: [
946
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tool-dot" }),
947
- /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 12, className: "tool-icon" })
948
- ] }),
949
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "verb", children: uiPrimitives.toolVerb(match.base, call.status) }),
950
- match.known || call.name === "" ? null : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: `· ${call.name}` }),
951
- /* @__PURE__ */ jsxRuntime.jsx(Preview, { intended, summary, cwd, targetPath, change: call.change ?? null })
952
- ]
953
- }
954
- ),
955
- tail !== null && tail.hidden > 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-more", title: `结果还有 ${String(tail.hidden)} 行,点开看全部`, children: `+${String(tail.hidden)} 行` }) : null,
956
- /* @__PURE__ */ jsxRuntime.jsx(StatusDetail, { call }),
957
- /* @__PURE__ */ jsxRuntime.jsx(Trailing, { entry }),
958
- expandable ? /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 11, className: "tc-chevron" }) : null
959
- ]
960
- }
961
- ),
962
- bodyOpen ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tool-body", ref: bodyRef, children: [
963
- barVisible && variant === "chat" ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-bar", "data-tc-chrome": "1", ref: barRef, children: [
964
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-bar-status", children: barStatus }),
965
- running ? null : /* @__PURE__ */ jsxRuntime.jsxs(
966
- "button",
967
- {
968
- type: "button",
969
- className: "tc-collapse",
970
- title: "收起这张工具卡",
971
- onClick: () => {
972
- setOpenPersisted(false);
973
- },
974
- children: [
975
- "收起",
976
- /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronUp, { size: 11 })
977
- ]
978
- }
979
- )
980
- ] }) : null,
981
- /* @__PURE__ */ jsxRuntime.jsx(BodyExtra, { intended, change: call.change ?? dshPatch }),
982
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "label", children: "参数" }),
983
- paramsAsFields ? (
984
- /* 会改文件的工具:正文已经在上面那块 diff 里,这里只列剩下的字段。
985
- dsh 对 write / edit 干脆一个参数字段都不印,壳多留一栏是因为
986
- dsc 的 write / edit 还带 justification / sandbox_permissions 这类
987
- 「这次为什么这么写」的元信息,扔掉可惜;形状仍是一行一字段,不是 JSON。 */
988
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "args arg-fields", "data-tc-argfields": "", children: argView.fields.map((field) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "arg-field", children: [
989
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "arg-key", children: field.key }),
990
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "arg-value", children: field.value })
991
- ] }, field.key)) })
992
- ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "args", children: uiPrimitives.prettyJson(call.argsText) }),
993
- call.resultText === void 0 || call.resultText === "" ? null : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
994
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "label", children: "结果" }),
995
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "result", children: call.resultText })
996
- ] }),
997
- props.renderSlot(TOOLCARD_FOOTER_SLOT, { entry })
998
- ] }) : null
999
- ] });
1000
- }
1001
- function SummaryPreview(props) {
1002
- return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "preview", children: props.summary });
1003
- }
1004
- function ChatStatus(props) {
1005
- const call = props.call;
1006
- const duration = uiPrimitives.formatDuration(call.durationMs ?? null);
1007
- return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "status", children: [
1008
- call.status === "running" ? /* @__PURE__ */ jsxRuntime.jsx("i", { className: "tc-spin", "aria-hidden": "true" }) : null,
1009
- call.status === "done" ? "" : uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status,
1010
- duration === null || call.status === "done" ? "" : ` · 用时 ${duration}`
1011
- ] });
1012
- }
1013
- function NoTrailing() {
1014
- return null;
1015
- }
1016
- function fileTargetOf(name, argsText, cwd) {
1017
- if (name !== "read" && name !== "write" && name !== "edit") return null;
1018
- try {
1019
- const args = JSON.parse(argsText);
1020
- const raw = [args.file_path, args.path].find(
1021
- (value) => typeof value === "string" && value !== ""
1022
- );
1023
- if (raw === void 0) return null;
1024
- if (raw.startsWith("/") || /^[A-Za-z]:[\\/]/.test(raw)) return raw;
1025
- if (cwd === "") return raw;
1026
- const sep = cwd.includes("\\") && !cwd.includes("/") ? "\\" : "/";
1027
- return `${cwd.replace(/[\\/]+$/, "")}${sep}${raw.replace(/^[\\/]+/, "")}`;
1028
- } catch {
1029
- return null;
1030
- }
1031
- }
1032
- function OpenPathButton({
1033
- absPath,
1034
- cwd,
1035
- patch = null
1036
- }) {
1037
- const opensPatch = patch !== null;
1038
- return /* @__PURE__ */ jsxRuntime.jsx(
1039
- "button",
1040
- {
1041
- type: "button",
1042
- className: "tc-path tc-path-btn",
1043
- "data-tc-open": absPath,
1044
- "data-tc-source": opensPatch ? "patch" : "file",
1045
- title: opensPatch ? `${absPath}(在右侧边栏看这次改动)` : `${absPath}(在右侧边栏预览)`,
1046
- onClick: (event) => {
1047
- event.stopPropagation();
1048
- ui$1.setDockPreview(opensPatch ? { path: absPath, cwd, patch } : { path: absPath, cwd });
1049
- },
1050
- onKeyDown: (event) => {
1051
- event.stopPropagation();
1052
- },
1053
- children: uiPrimitives.displayPathOf(absPath, cwd)
1054
- }
1055
- );
1056
- }
1057
- function IntendedPreview(props) {
1058
- const { intended, summary, cwd, targetPath, change } = props;
1059
- const patch = intended?.file ?? change ?? null;
1060
- const absPath = intended?.absPath ?? change?.path ?? targetPath;
1061
- return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "preview", children: absPath !== null ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1062
- /* @__PURE__ */ jsxRuntime.jsx(OpenPathButton, { absPath, cwd, patch }),
1063
- patch !== null && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-counts", children: [
1064
- patch.status === "added" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "diff-badge", children: "新增" }),
1065
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-added", children: `+${String(patch.added)}` }),
1066
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-removed", children: `-${String(patch.removed)}` })
1067
- ] }),
1068
- intended?.mismatch === "missing" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 不在当前文件里" }),
1069
- intended?.mismatch === "ambiguous" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 匹配多处" })
1070
- ] }) : summary });
1071
- }
1072
- function IntendedBody(props) {
1073
- const intended = props.intended;
1074
- const change = props.change;
1075
- if (intended !== null) {
1076
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended", children: [
1077
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended-head", children: [
1078
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-intended-title", children: "将做的改动" }),
1079
- intended.fellBack && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "读不到文件当前内容,以下按参数推算" }),
1080
- intended.mismatch === "missing" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 在文件中不存在,执行会失败" }),
1081
- intended.mismatch === "ambiguous" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 匹配多处,执行会失败" })
1082
- ] }),
1083
- intended.file === null ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "tc-intended-note", children: "两段内容一致,不会有实际改动。" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tc-intended-diff", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.DiffRows, { hunks: intended.file.hunks, path: intended.absPath }) })
1084
- ] });
1085
- }
1086
- if (change === null) return null;
1087
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended", "data-tc-change": "", children: [
1088
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended-head", children: [
1089
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-intended-title", children: "这次改动" }),
1090
- change.truncated === true && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "改动较大,这里只显示了前一部分" })
1091
- ] }),
1092
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tc-intended-diff", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.DiffRows, { hunks: change.hunks, path: change.path }) })
1093
- ] });
1094
- }
1095
- function TraceJumpButton(props) {
1096
- return /* @__PURE__ */ jsxRuntime.jsx(
1097
- "button",
1098
- {
1099
- type: "button",
1100
- className: "tc-trace",
1101
- "data-trace-jump": String(props.entry.id),
1102
- "data-tip": "在轨迹页查看这条调用的时刻与耗时",
1103
- "aria-label": "在轨迹中查看",
1104
- onClick: (event) => {
1105
- event.stopPropagation();
1106
- ui$1.openTrace(props.entry.id);
1107
- },
1108
- onKeyDown: (event) => {
1109
- event.stopPropagation();
1110
- },
1111
- children: "在轨迹中查看"
1112
- }
1113
- );
1114
- }
1115
- const FOLD_PREFS = { policy: processFoldPolicy("standard"), reasoningOpen: false, toolOpen: false };
1116
- const FoldPrefsContext = react.createContext(FOLD_PREFS);
1117
- const NO_ACTIONS = { editRefork: () => void 0, busy: false };
1118
- const FlowActionsContext = react.createContext(NO_ACTIONS);
1119
- const ShellCwdContext = react.createContext("");
1120
- const ShellSessionContext = react.createContext(null);
1121
- const TOOLVIEW_SLOT = "transcript.toolview";
1122
- const TURN_INDEPENDENT = /* @__PURE__ */ new Set(["user", "plan", "system", "turn-end", "turn-max-tokens"]);
1123
- const EMPTY_STEP_GROUPING = { groups: [], headAt: /* @__PURE__ */ new Map(), at: /* @__PURE__ */ new Map() };
1124
- function keyOf(row, sessionKey) {
1125
- return `${sessionKey}|${String(row.entry.id)}`;
1126
- }
1127
- function buildSeats(entries, live) {
1128
- const all = [...entries, ...live];
1129
- const split = splitRounds(all);
1130
- const rowOf = (at) => ({ entry: all[at], live: at >= entries.length, at });
1131
- return {
1132
- leading: split.leading.map(rowOf),
1133
- rounds: split.seats.map((seat) => ({ round: seat.round, rows: seat.indices.map(rowOf) })),
1134
- infos: split.rounds
1135
- };
1136
- }
1137
- const FOLLOW_BOTTOM_PX = 24;
1138
- const FOLLOW_SETTLE_MS = 180;
1139
- const UP_KEYS = /* @__PURE__ */ new Set(["ArrowUp", "PageUp", "Home"]);
1140
- function useFollowBottom(dep, sessionKey) {
1141
- const [end, setEnd] = react.useState(null);
1142
- const following = react.useRef(true);
1143
- const written = react.useRef(0);
1144
- const settleTimer = react.useRef(null);
1145
- const control = react.useRef(null);
1146
- const [paused, setPaused] = react.useState(false);
1147
- const pinnedFor = react.useRef("");
1148
- react.useEffect(() => {
1149
- const scroller = end?.closest(".chat");
1150
- if (!(scroller instanceof HTMLElement)) return void 0;
1151
- const floor = () => Math.max(0, scroller.scrollHeight - scroller.clientHeight);
1152
- const pinnedHeight = { current: scroller.scrollHeight };
1153
- const pin = () => {
1154
- scroller.scrollTop = scroller.scrollHeight;
1155
- written.current = scroller.scrollTop;
1156
- pinnedHeight.current = scroller.scrollHeight;
1157
- };
1158
- const clearSettle = () => {
1159
- if (settleTimer.current !== null) window.clearTimeout(settleTimer.current);
1160
- settleTimer.current = null;
1161
- };
1162
- const settle = () => {
1163
- clearSettle();
1164
- if (following.current) {
1165
- pin();
1166
- return;
1167
- }
1168
- if (floor() - scroller.scrollTop <= FOLLOW_BOTTOM_PX) {
1169
- following.current = true;
1170
- setPaused(false);
1171
- pin();
1172
- }
1173
- };
1174
- const schedule = () => {
1175
- clearSettle();
1176
- settleTimer.current = window.setTimeout(settle, FOLLOW_SETTLE_MS);
1177
- };
1178
- const onScroll = () => {
1179
- const top = scroller.scrollTop;
1180
- const heightChanged = pinnedHeight.current !== scroller.scrollHeight;
1181
- if (Math.abs(top - written.current) <= 1) {
1182
- written.current = top;
1183
- if (heightChanged) pinnedHeight.current = scroller.scrollHeight;
1184
- return;
1185
- }
1186
- if (heightChanged) {
1187
- pinnedHeight.current = scroller.scrollHeight;
1188
- if (floor() - top <= FOLLOW_BOTTOM_PX) {
1189
- written.current = top;
1190
- if (!following.current) schedule();
1191
- return;
1192
- }
1193
- }
1194
- written.current = top;
1195
- if (following.current) {
1196
- following.current = false;
1197
- setPaused(true);
1198
- }
1199
- schedule();
1200
- };
1201
- const onGesture = () => {
1202
- following.current = false;
1203
- schedule();
1204
- };
1205
- const onWheel = (event) => {
1206
- if (event.ctrlKey || event.deltaY >= 0) return;
1207
- onGesture();
1208
- };
1209
- const onKey = (event) => {
1210
- if (UP_KEYS.has(event.key)) onGesture();
1211
- };
1212
- const onResize = () => {
1213
- if (!following.current) return;
1214
- if (floor() - scroller.scrollTop > 4) pin();
1215
- };
1216
- control.current = {
1217
- pin,
1218
- stop: () => {
1219
- clearSettle();
1220
- following.current = false;
1221
- setPaused(true);
1222
- }
1223
- };
1224
- scroller.addEventListener("scroll", onScroll, { passive: true });
1225
- scroller.addEventListener("scrollend", settle);
1226
- scroller.addEventListener("wheel", onWheel, { passive: true });
1227
- scroller.addEventListener("keydown", onKey);
1228
- const observer = typeof ResizeObserver === "function" ? new ResizeObserver(onResize) : void 0;
1229
- observer?.observe(scroller);
1230
- const content = scroller.firstElementChild;
1231
- if (content !== null) observer?.observe(content);
1232
- return () => {
1233
- clearSettle();
1234
- control.current = null;
1235
- scroller.removeEventListener("scroll", onScroll);
1236
- scroller.removeEventListener("scrollend", settle);
1237
- scroller.removeEventListener("wheel", onWheel);
1238
- scroller.removeEventListener("keydown", onKey);
1239
- observer?.disconnect();
1240
- };
1241
- }, [end]);
1242
- react.useEffect(() => {
1243
- if (pinnedFor.current !== sessionKey) {
1244
- pinnedFor.current = sessionKey;
1245
- following.current = true;
1246
- setPaused(false);
1247
- }
1248
- if (!following.current) return;
1249
- control.current?.pin();
1250
- }, [sessionKey, end, dep]);
1251
- const resume = () => {
1252
- following.current = true;
1253
- setPaused(false);
1254
- control.current?.pin();
1255
- };
1256
- const pause = () => {
1257
- control.current?.stop();
1258
- };
1259
- return { setEnd, end, paused, resume, pause };
1260
- }
1261
- const ACTIVITY_ICON = {
1262
- thinking: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconSpark, { size: 12 }),
1263
- read: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconFolder, { size: 12 }),
1264
- readImage: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconFolder, { size: 12 }),
1265
- search: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconSearch, { size: 12 }),
1266
- write: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconEdit, { size: 12 }),
1267
- edit: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconEdit, { size: 12 }),
1268
- commands: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconTerminal, { size: 12 }),
1269
- code: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconCode, { size: 12 }),
1270
- webSearch: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconGlobe, { size: 12 }),
1271
- webFetch: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconGlobe, { size: 12 }),
1272
- browser: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconGlobe, { size: 12 }),
1273
- subagents: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconTree, { size: 12 }),
1274
- plan: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconQueue, { size: 12 }),
1275
- questions: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconInfo, { size: 12 }),
1276
- tools: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconBolt, { size: 12 })
1277
- };
1278
- function useStableLiveTitle(desired, active) {
1279
- const [shown, setShown] = react.useState(desired);
1280
- const shownRef = react.useRef(shown);
1281
- const wantedRef = react.useRef(desired);
1282
- const shownAtRef = react.useRef(Date.now());
1283
- react.useEffect(() => {
1284
- wantedRef.current = desired;
1285
- if (!active) return;
1286
- const commit = (next) => {
1287
- shownRef.current = next;
1288
- shownAtRef.current = Date.now();
1289
- setShown(next);
1290
- };
1291
- const decision = liveTitleDecision(shownRef.current, desired, Date.now() - shownAtRef.current);
1292
- if (!decision.keep) {
1293
- commit(desired);
1294
- return;
1295
- }
1296
- if (decision.waitMs <= 0) return;
1297
- const timer = setTimeout(() => {
1298
- const next = wantedRef.current;
1299
- if (sameLiveTitle(shownRef.current, next)) return;
1300
- commit(next);
1301
- }, decision.waitMs);
1302
- return () => {
1303
- clearTimeout(timer);
1304
- };
1305
- }, [active, desired.activity, desired.detail]);
1306
- return active ? shown : desired;
1307
- }
1308
- function StepGroupRow(props) {
1309
- const closed = props.group.closed;
1310
- const live = useStableLiveTitle(liveTitleOf(props.group), !closed);
1311
- const activity = closed ? props.group.counts[0]?.kind ?? "thinking" : live.activity;
1312
- const label = stepGroupTitle(
1313
- props.group.counts,
1314
- closed,
1315
- activity === "thinking" ? void 0 : activity,
1316
- // 「准备读取文件」与「正在读取文件」是两句不同的话:模型还在吐参数 vs 工具真的开跑了
1317
- live.preparing
1318
- );
1319
- const detail = closed || !props.showDetail ? "" : live.detail;
1320
- const counts = props.group.counts.map((item) => `${item.kind}=${String(item.count)}`).join(",");
1321
- const failNote = props.group.failures > 0 ? `,其中 ${String(props.group.failures)} 项失败` : "";
1322
- const tip = props.open ? `收起这一阶段(${String(props.group.size)} 次工具调用${failNote})` : `展开这一阶段,放出 ${String(props.group.size)} 次工具调用${failNote}`;
1323
- return /* @__PURE__ */ jsxRuntime.jsxs(
1324
- "button",
1325
- {
1326
- type: "button",
1327
- className: "step-fold",
1328
- "data-open": props.open ? "1" : void 0,
1329
- "data-step-group": `${String(props.group.roundIndex)}:${String(props.group.seq)}`,
1330
- "data-step-activity": activity,
1331
- "data-step-closed": closed ? "1" : void 0,
1332
- "data-step-counts": counts,
1333
- "data-step-detail": detail === "" ? void 0 : detail,
1334
- "aria-expanded": props.open,
1335
- "data-tip": tip,
1336
- onClick: (event) => {
1337
- event.currentTarget.focus();
1338
- props.onToggle();
1339
- },
1340
- children: [
1341
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-leading", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-icon", "data-step-icon": true, children: ACTIVITY_ICON[activity] }) }),
1342
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "step-fold-text", children: [
1343
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "step-fold-line", children: [
1344
- /* @__PURE__ */ jsxRuntime.jsx(
1345
- "span",
1346
- {
1347
- className: "step-fold-label",
1348
- "data-shimmer": closed ? void 0 : label,
1349
- children: label
1350
- }
1351
- ),
1352
- props.task === "" ? null : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1353
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-dot", "aria-hidden": "true" }),
1354
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-task", title: props.task, children: props.task })
1355
- ] })
1356
- ] }),
1357
- detail !== "" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-detail", "data-shimmer": detail, children: detail })
1358
- ] }),
1359
- props.group.failures > 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-fail", "data-step-failures": props.group.failures, children: props.group.failures === 1 ? "1 失败" : `${String(props.group.failures)} 失败` }) : null,
1360
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-count", "data-step-size": props.group.size, children: `${String(props.group.size)} 项` }),
1361
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "step-fold-chevron", "data-step-chevron": true, children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 12 }) })
1362
- ]
1363
- }
1364
- );
1365
- }
1366
- function useStableCallback(callback) {
1367
- const ref = react.useRef(callback);
1368
- react.useLayoutEffect(() => {
1369
- ref.current = callback;
1370
- }, [callback]);
1371
- return react.useCallback(((...args) => {
1372
- ref.current(...args);
1373
- }), []);
1374
- }
1375
- function foldHideDelayMs() {
1376
- const raw = globalThis.getComputedStyle(document.documentElement).getPropertyValue("--dsc-dur-slow").trim();
1377
- const value = Number.parseFloat(raw);
1378
- if (!Number.isFinite(value) || value <= 0) return 180;
1379
- return raw.endsWith("ms") ? value : value * 1e3;
1380
- }
1381
- function useSearchableHidden(hidden, reveal, options) {
1382
- const ref = react.useRef(null);
1383
- const delay = options?.delayMs ?? 0;
1384
- react.useLayoutEffect(() => {
1385
- const element = ref.current;
1386
- if (element === null) return;
1387
- if (!hidden) {
1388
- element.removeAttribute("hidden");
1389
- return;
1390
- }
1391
- if (element.contains(element.ownerDocument.activeElement)) {
1392
- reveal();
1393
- return;
1394
- }
1395
- if (delay <= 0) {
1396
- element.setAttribute("hidden", "until-found");
1397
- return;
1398
- }
1399
- const timer = globalThis.setTimeout(() => {
1400
- element.setAttribute("hidden", "until-found");
1401
- }, delay);
1402
- return () => {
1403
- globalThis.clearTimeout(timer);
1404
- };
1405
- }, [hidden, reveal, delay]);
1406
- react.useLayoutEffect(() => {
1407
- const element = ref.current;
1408
- if (element === null) return;
1409
- element.addEventListener("beforematch", reveal);
1410
- return () => {
1411
- element.removeEventListener("beforematch", reveal);
1412
- };
1413
- }, [reveal]);
1414
- return ref;
1415
- }
1416
- const NO_EDGES = { up: false, down: false };
1417
- const PROCESS_BOTTOM_EPS = 4;
1418
- const PROCESS_SETTLE_MS = 140;
1419
- const PROCESS_UP_KEYS = /* @__PURE__ */ new Set(["ArrowUp", "PageUp", "Home"]);
1420
- function useProcessScroll(bodyRef, contentRef, open, live) {
1421
- const follow = react.useRef(live);
1422
- const written = react.useRef(0);
1423
- const settleTimer = react.useRef(null);
1424
- const [edges, setEdges] = react.useState(NO_EDGES);
1425
- const wasOpen = react.useRef(false);
1426
- react.useLayoutEffect(() => {
1427
- const body = bodyRef.current;
1428
- if (body === null || !open) {
1429
- wasOpen.current = open;
1430
- return;
1431
- }
1432
- if (!wasOpen.current) {
1433
- follow.current = live;
1434
- body.scrollTop = live ? body.scrollHeight : 0;
1435
- written.current = body.scrollTop;
1436
- }
1437
- wasOpen.current = open;
1438
- }, [bodyRef, open, live]);
1439
- react.useLayoutEffect(() => {
1440
- const body = bodyRef.current;
1441
- const content = contentRef.current;
1442
- if (body === null || !open) return;
1443
- const pin = () => {
1444
- body.scrollTop = body.scrollHeight;
1445
- written.current = body.scrollTop;
1446
- };
1447
- const readEdges = () => {
1448
- const limit = body.scrollHeight - body.clientHeight;
1449
- const top = body.scrollTop;
1450
- const next = { up: top > 1, down: limit > 0 && top < limit - 1 };
1451
- setEdges((previous) => previous.up === next.up && previous.down === next.down ? previous : next);
1452
- };
1453
- const clearSettle = () => {
1454
- if (settleTimer.current !== null) window.clearTimeout(settleTimer.current);
1455
- settleTimer.current = null;
1456
- };
1457
- const settle = () => {
1458
- clearSettle();
1459
- const limit = body.scrollHeight - body.clientHeight;
1460
- follow.current = limit - body.scrollTop <= PROCESS_BOTTOM_EPS;
1461
- if (follow.current && limit > 0) pin();
1462
- readEdges();
1463
- };
1464
- const schedule = () => {
1465
- clearSettle();
1466
- settleTimer.current = window.setTimeout(settle, PROCESS_SETTLE_MS);
1467
- };
1468
- const onScroll = () => {
1469
- const top = body.scrollTop;
1470
- if (Math.abs(top - written.current) <= 1) {
1471
- written.current = top;
1472
- readEdges();
1473
- return;
1474
- }
1475
- follow.current = false;
1476
- schedule();
1477
- readEdges();
1478
- };
1479
- const onGesture = () => {
1480
- follow.current = false;
1481
- schedule();
1482
- };
1483
- const onWheel = (event) => {
1484
- if (event.ctrlKey || event.deltaY >= 0) return;
1485
- onGesture();
1486
- };
1487
- const onKey = (event) => {
1488
- if (PROCESS_UP_KEYS.has(event.key)) onGesture();
1489
- };
1490
- const observe = () => {
1491
- if (follow.current) {
1492
- const limit = body.scrollHeight - body.clientHeight;
1493
- if (limit > 0 && limit - body.scrollTop > 2) pin();
1494
- }
1495
- readEdges();
1496
- };
1497
- onScroll();
1498
- body.addEventListener("scroll", onScroll, { passive: true });
1499
- body.addEventListener("scrollend", settle);
1500
- body.addEventListener("wheel", onWheel, { passive: true });
1501
- body.addEventListener("keydown", onKey);
1502
- const observer = typeof ResizeObserver === "function" ? new ResizeObserver(observe) : void 0;
1503
- observer?.observe(body);
1504
- if (content !== null) observer?.observe(content);
1505
- return () => {
1506
- clearSettle();
1507
- body.removeEventListener("scroll", onScroll);
1508
- body.removeEventListener("scrollend", settle);
1509
- body.removeEventListener("wheel", onWheel);
1510
- body.removeEventListener("keydown", onKey);
1511
- observer?.disconnect();
1512
- };
1513
- }, [bodyRef, contentRef, open]);
1514
- return edges;
1515
- }
1516
- function RowSeat(props) {
1517
- const reveal = useStableCallback(props.onReveal);
1518
- const ref = useSearchableHidden(props.hidden, reveal, { delayMs: foldHideDelayMs() });
1519
- return /* @__PURE__ */ jsxRuntime.jsx(
1520
- "div",
1521
- {
1522
- ref,
1523
- className: "entry-row",
1524
- "data-round": props.roundIndex === void 0 ? void 0 : props.roundIndex,
1525
- children: props.children
1526
- }
1527
- );
1528
- }
1529
- function StepGroupSeat(props) {
1530
- const revealTurn = useStableCallback(props.onRevealTurn);
1531
- const seatRef = useSearchableHidden(props.turnCollapsed, revealTurn, { delayMs: foldHideDelayMs() });
1532
- const revealGroup = useStableCallback(() => {
1533
- if (!props.open) props.onToggle();
1534
- });
1535
- const bodyRef = useSearchableHidden(!props.open, revealGroup);
1536
- const contentRef = react.useRef(null);
1537
- const edges = useProcessScroll(bodyRef, contentRef, props.open, !props.group.closed);
1538
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: seatRef, className: "step-seat", children: [
1539
- /* @__PURE__ */ jsxRuntime.jsx(
1540
- StepGroupRow,
1541
- {
1542
- group: props.group,
1543
- open: props.open,
1544
- showDetail: props.showDetail,
1545
- task: props.task,
1546
- onToggle: props.onToggle
1547
- }
1548
- ),
1549
- /* @__PURE__ */ jsxRuntime.jsx(
1550
- "div",
1551
- {
1552
- ref: bodyRef,
1553
- className: "step-body",
1554
- "data-step-body": true,
1555
- "data-scroll-up": edges.up ? "1" : void 0,
1556
- "data-scroll-down": edges.down ? "1" : void 0,
1557
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref: contentRef, className: "step-content", children: props.children })
1558
- }
1559
- )
1560
- ] });
1561
- }
1562
- function UserFileCards({ files }) {
1563
- if (files === void 0 || files.length === 0) return null;
1564
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-user-files", children: files.map(
1565
- (file) => file.kind === "video" && file.url !== void 0 && file.url !== "" ? /* @__PURE__ */ jsxRuntime.jsxs("figure", { className: "user-file-card user-video-card", "data-file-kind": "video", children: [
1566
- /* @__PURE__ */ jsxRuntime.jsx("video", { src: file.url, controls: true, playsInline: true, preload: "metadata", "aria-label": file.name }),
1567
- /* @__PURE__ */ jsxRuntime.jsx("figcaption", { className: "user-file-name", title: file.path, children: file.name }),
1568
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "user-file-meta", children: uiPrimitives.formatBytes(file.bytes) })
1569
- ] }, file.sha) : /* @__PURE__ */ jsxRuntime.jsx(FileAttachmentCard, { file }, file.sha)
1570
- ) });
1571
- }
1572
- function FileAttachmentCard({ file }) {
1573
- const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1574
- /* @__PURE__ */ jsxRuntime.jsx(ui$1.FileIcon, { name: file.name, size: 16 }),
1575
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "user-file-name", title: file.path, children: file.name }),
1576
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "user-file-meta", children: uiPrimitives.formatBytes(file.bytes) })
1577
- ] });
1578
- if (file.url === void 0 || file.url === "") {
1579
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "user-file-card", "data-file-kind": "file", children: body });
1580
- }
1581
- return /* @__PURE__ */ jsxRuntime.jsx("a", { className: "user-file-card", "data-file-kind": "file", href: file.url, target: "_blank", rel: "noreferrer", title: file.path, children: body });
1582
- }
1583
- function UserRow({ entry }) {
1584
- const actions = react.useContext(FlowActionsContext);
1585
- const [draft, setDraft] = react.useState(null);
1586
- if (entry.internal === true) {
1587
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system", "data-internal": "1", title: entry.text, children: teammateReportLabel(entry.text) });
1588
- }
1589
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "user-turn", children: [
1590
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `entry-user${draft === null ? "" : " editing"}`, children: [
1591
- entry.images === void 0 || entry.images.length === 0 ? null : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-user-images", children: entry.images.map((url, index) => /* @__PURE__ */ jsxRuntime.jsx("a", { href: url, target: "_blank", rel: "noreferrer", "data-tip": "点开看原图", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: url, alt: `第 ${String(index + 1)} 张贴图` }) }, index)) }),
1592
- /* @__PURE__ */ jsxRuntime.jsx(UserFileCards, { files: entry.files }),
1593
- draft === null ? entry.text : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "user-edit", children: [
1594
- /* @__PURE__ */ jsxRuntime.jsx(
1595
- "textarea",
1596
- {
1597
- className: "user-edit-box",
1598
- value: draft,
1599
- autoFocus: true,
1600
- rows: Math.min(10, Math.max(2, draft.split("\n").length)),
1601
- "aria-label": "编辑这条消息",
1602
- onChange: (event) => {
1603
- setDraft(event.target.value);
1604
- },
1605
- onKeyDown: (event) => {
1606
- if (event.key === "Escape") {
1607
- event.preventDefault();
1608
- setDraft(null);
1609
- return;
1610
- }
1611
- if (event.key !== "Enter" || event.shiftKey || event.nativeEvent.isComposing) return;
1612
- event.preventDefault();
1613
- const text = draft.trim();
1614
- if (text === "") return;
1615
- setDraft(null);
1616
- actions.editRefork(entry, text);
1617
- }
1618
- }
1619
- ),
1620
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "user-edit-note", children: "Enter 重发(分叉出新会话,原会话保留) · Shift+Enter 换行 · Esc 取消" }),
1621
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "user-edit-actions", children: [
1622
- /* @__PURE__ */ jsxRuntime.jsx(
1623
- "button",
1624
- {
1625
- type: "button",
1626
- className: "dsc-btn",
1627
- "data-variant": "ghost",
1628
- "data-size": "xs",
1629
- onClick: () => {
1630
- setDraft(null);
1631
- },
1632
- children: "取消"
1633
- }
1634
- ),
1635
- /* @__PURE__ */ jsxRuntime.jsx(
1636
- "button",
1637
- {
1638
- type: "button",
1639
- className: "dsc-btn",
1640
- "data-variant": "primary",
1641
- "data-size": "xs",
1642
- disabled: draft.trim() === "",
1643
- onClick: () => {
1644
- const text = draft.trim();
1645
- if (text === "") return;
1646
- setDraft(null);
1647
- actions.editRefork(entry, text);
1648
- },
1649
- children: "重发"
1650
- }
1651
- )
1652
- ] })
1653
- ] })
1654
- ] }),
1655
- draft === null ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "user-actions", children: /* @__PURE__ */ jsxRuntime.jsx(
1656
- "button",
1657
- {
1658
- type: "button",
1659
- className: "user-act",
1660
- title: actions.busy ? "这一轮还在跑,先等它结束或打断再编辑" : "编辑这条消息并重发(会分叉出新会话,原会话保留)",
1661
- "aria-label": "编辑并重发这条消息",
1662
- disabled: actions.busy,
1663
- onClick: () => {
1664
- setDraft(entry.text);
1665
- },
1666
- children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconEdit, { size: 15 })
1667
- }
1668
- ) }) : null
1669
- ] });
1670
- }
1671
- function ReadonlyUserRow({ entry }) {
1672
- if (entry.internal === true) return /* @__PURE__ */ jsxRuntime.jsx(UserRow, { entry });
1673
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "user-turn", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "entry-user", children: [
1674
- entry.images === void 0 || entry.images.length === 0 ? null : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-user-images", children: entry.images.map((url, index) => /* @__PURE__ */ jsxRuntime.jsx("a", { href: url, target: "_blank", rel: "noreferrer", "data-tip": "点开看原图", children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: url, alt: `第 ${String(index + 1)} 张贴图` }) }, index)) }),
1675
- /* @__PURE__ */ jsxRuntime.jsx(UserFileCards, { files: entry.files }),
1676
- entry.text
1677
- ] }) });
1678
- }
1679
- const BAR_MIN_CONTENT_H = 400;
1680
- function expandedContentHeight(body) {
1681
- let total = 0;
1682
- for (const child of Array.from(body.children)) {
1683
- if (!(child instanceof HTMLElement)) continue;
1684
- if (child.dataset.tcChrome !== void 0) continue;
1685
- total += Math.max(child.scrollHeight, child.offsetHeight);
1686
- }
1687
- return total;
1688
- }
1689
- function firstLine(text) {
1690
- const newline = text.indexOf("\n");
1691
- return newline === -1 ? text : text.slice(0, newline);
1692
- }
1693
- const MAX_SUMMARY_CHARS = 80;
1694
- function clipSummary(text) {
1695
- const chars = Array.from(text);
1696
- return chars.length > MAX_SUMMARY_CHARS ? `${chars.slice(0, MAX_SUMMARY_CHARS).join("")}…` : text;
1697
- }
1698
- function latestCompletedParagraphFirstLine(text) {
1699
- let summary = "";
1700
- let paragraphStart = 0;
1701
- const separator = /\r?\n(?:[\t ]*\r?\n)+/g;
1702
- while (true) {
1703
- const nextParagraph = separator.exec(text);
1704
- const paragraphEnd = nextParagraph === null ? text.length : nextParagraph.index + nextParagraph[0].indexOf("\n");
1705
- const newline = text.indexOf("\n", paragraphStart);
1706
- if (newline !== -1 && newline <= paragraphEnd) {
1707
- const candidate = text.slice(paragraphStart, newline).trim();
1708
- if (candidate !== "") summary = candidate;
1709
- }
1710
- if (nextParagraph === null) return summary;
1711
- paragraphStart = nextParagraph.index + nextParagraph[0].length;
1712
- }
1713
- }
1714
- function ThinkRow({
1715
- entry,
1716
- live,
1717
- storeKey
1718
- }) {
1719
- const prefs = react.useContext(FoldPrefsContext);
1720
- const [open, setOpenPersisted] = useFoldState(storeKey, prefs.reasoningOpen);
1721
- const [barVisible, setBarVisible] = react.useState(false);
1722
- const bodyRef = react.useRef(null);
1723
- const toggle = () => {
1724
- setOpenPersisted(!open);
1725
- };
1726
- const summary = clipSummary(
1727
- (live ? latestCompletedParagraphFirstLine(entry.text) : firstLine(entry.text)).replaceAll("**", "")
1728
- );
1729
- const preview = summary !== "" && (live || prefs.policy.reasoningPreview);
1730
- react.useEffect(() => {
1731
- const body = bodyRef.current;
1732
- if (body === null || !open) {
1733
- setBarVisible(false);
1734
- return void 0;
1735
- }
1736
- const measure = () => {
1737
- setBarVisible(expandedContentHeight(body) > BAR_MIN_CONTENT_H);
1738
- };
1739
- measure();
1740
- const observer = new ResizeObserver(measure);
1741
- observer.observe(body);
1742
- return () => {
1743
- observer.disconnect();
1744
- };
1745
- }, [open, entry.text]);
1746
- return /* @__PURE__ */ jsxRuntime.jsxs(
1747
- "div",
1748
- {
1749
- className: `think-block${live ? " live" : ""}${open ? " open" : ""}`,
1750
- "data-state": live ? "running" : "ok",
1751
- "data-preview": preview ? "1" : void 0,
1752
- children: [
1753
- live ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-sr", children: "正在思考" }) : null,
1754
- /* @__PURE__ */ jsxRuntime.jsxs(
1755
- "div",
1756
- {
1757
- className: "think-head",
1758
- role: "button",
1759
- tabIndex: 0,
1760
- "aria-expanded": open,
1761
- "data-tip": open ? "收起这段思考" : "展开这段思考",
1762
- onClick: toggle,
1763
- onKeyDown: (event) => {
1764
- if (event.key !== "Enter" && event.key !== " ") return;
1765
- event.preventDefault();
1766
- toggle();
1767
- },
1768
- children: [
1769
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-leading", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconSpark, { size: 12, className: "think-star" }) }),
1770
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-label", children: "思考" }),
1771
- preview ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-dot", "aria-hidden": "true" }) : null,
1772
- preview ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-summary", "data-streaming": live ? "1" : void 0, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-summary-text", "data-shimmer": live ? summary : void 0, children: summary }) }) : null,
1773
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "think-status", children: live ? /* @__PURE__ */ jsxRuntime.jsx("i", { className: "think-spin", "aria-hidden": "true" }) : null }),
1774
- /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 11, className: "think-chevron" })
1775
- ]
1776
- }
1777
- ),
1778
- open && barVisible ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "think-bar", "data-think-chrome": "1", children: [
1779
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "think-bar-status", children: [
1780
- "思考 · ",
1781
- live ? "进行中" : "已完成"
1782
- ] }),
1783
- /* @__PURE__ */ jsxRuntime.jsxs(
1784
- "button",
1785
- {
1786
- type: "button",
1787
- className: "think-collapse",
1788
- title: "收起这段思考",
1789
- onClick: () => {
1790
- setOpenPersisted(false);
1791
- },
1792
- children: [
1793
- "收起",
1794
- /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronUp, { size: 11 })
1795
- ]
1796
- }
1797
- )
1798
- ] }) : null,
1799
- open ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "think-body", ref: bodyRef, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "think-body-clip", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "think-text", children: entry.text }) }) }) : null
1800
- ]
1801
- }
1802
- );
1803
- }
1804
- function BuiltinToolView(props) {
1805
- const prefs = react.useContext(FoldPrefsContext);
1806
- const cwd = react.useContext(ShellCwdContext);
1807
- return props.renderFactorySlot(
1808
- TOOLCARD_FACTORY,
1809
- {
1810
- entry: props.entry,
1811
- storeKey: props.storeKey,
1812
- persistKey: props.storeKey,
1813
- variant: "chat",
1814
- match: props.matched,
1815
- foldPrefs: prefs,
1816
- cwd
1817
- },
1818
- {
1819
- slots: {
1820
- preview: IntendedPreview,
1821
- statusDetail: ChatStatus,
1822
- bodyExtra: IntendedBody,
1823
- trailing: TraceJumpButton
1824
- },
1825
- fallback: /* @__PURE__ */ jsxRuntime.jsx(ToolRow, { entry: props.entry, matched: props.matched, storeKey: props.storeKey })
1826
- }
1827
- );
1828
- }
1829
- function ToolRow({ entry, matched, storeKey }) {
1830
- const call = entry.call;
1831
- const prefs = react.useContext(FoldPrefsContext);
1832
- const cwd = react.useContext(ShellCwdContext);
1833
- const [open, setOpenPersisted] = useFoldState(storeKey, prefs.toolOpen);
1834
- const [barVisible, setBarVisible] = react.useState(false);
1835
- const expandable = call.status !== "preparing";
1836
- const bodyOpen = open && expandable;
1837
- const running = call.status === "running";
1838
- const summary = uiPrimitives.toolSummary(call.name, call.argsText);
1839
- const match = matched ?? uiPrimitives.matchTool(call.name);
1840
- const Icon = match.Icon;
1841
- const targetPath = fileTargetOf(call.name, call.argsText, cwd);
1842
- const intended = useIntendedDiff(call, cwd);
1843
- const bodyRef = react.useRef(null);
1844
- const barRef = react.useRef(null);
1845
- const toggle = () => {
1846
- if (expandable) setOpenPersisted(!open);
1847
- };
1848
- react.useEffect(() => {
1849
- const body = bodyRef.current;
1850
- if (body === null || !bodyOpen) {
1851
- setBarVisible(false);
1852
- return void 0;
1853
- }
1854
- const measure = () => {
1855
- setBarVisible(expandedContentHeight(body) > BAR_MIN_CONTENT_H);
1856
- };
1857
- measure();
1858
- const observer = new ResizeObserver(measure);
1859
- observer.observe(body);
1860
- return () => {
1861
- observer.disconnect();
1862
- };
1863
- }, [bodyOpen, call.argsText, call.resultText, call.status]);
1864
- react.useEffect(() => {
1865
- if (!bodyOpen || !barVisible) return void 0;
1866
- const bar = barRef.current;
1867
- const body = bodyRef.current;
1868
- if (bar === null || body === null) return void 0;
1869
- const chat = body.closest(".chat");
1870
- if (!(chat instanceof HTMLElement)) return void 0;
1871
- const padTop = Number.parseFloat(getComputedStyle(chat).paddingTop);
1872
- const threshold = (Number.isFinite(padTop) ? padTop : 12) + 1.5;
1873
- const sync = () => {
1874
- const gap = bar.getBoundingClientRect().top - chat.getBoundingClientRect().top;
1875
- bar.classList.toggle("stuck", gap <= threshold);
1876
- };
1877
- sync();
1878
- chat.addEventListener("scroll", sync, { passive: true });
1879
- return () => {
1880
- chat.removeEventListener("scroll", sync);
1881
- };
1882
- }, [bodyOpen, barVisible, call.argsText, call.resultText, call.status]);
1883
- const duration = uiPrimitives.formatDuration(call.durationMs ?? null);
1884
- const barStatus = running || duration === null ? uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status : `${uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status} · 用时 ${duration}`;
1885
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `entry tool-card status-${call.status}${bodyOpen ? " open" : ""}`, children: [
1886
- /* @__PURE__ */ jsxRuntime.jsxs(
1887
- "div",
1888
- {
1889
- className: "tool-head",
1890
- role: "button",
1891
- tabIndex: expandable ? 0 : -1,
1892
- ...expandable ? { "aria-expanded": bodyOpen } : {},
1893
- "data-tip": expandable ? bodyOpen ? "收起参数与结果" : "展开参数与结果" : "正在准备参数",
1894
- onClick: toggle,
1895
- onKeyDown: (event) => {
1896
- if (event.key !== "Enter" && event.key !== " ") return;
1897
- event.preventDefault();
1898
- toggle();
1899
- },
1900
- children: [
1901
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "tool-leading", "aria-hidden": "true", children: [
1902
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tool-dot" }),
1903
- /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 14, className: "tool-icon" })
1904
- ] }),
1905
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "verb", children: uiPrimitives.toolVerb(match.base, call.status) }),
1906
- match.known || call.name === "" ? null : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "name", children: `· ${call.name}` }),
1907
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "preview", children: intended !== null ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1908
- /* @__PURE__ */ jsxRuntime.jsx(OpenPathButton, { absPath: intended.absPath, cwd, patch: intended.file ?? call.change ?? null }),
1909
- intended.file !== null && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-counts", children: [
1910
- intended.file.status === "added" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "diff-badge", children: "新增" }),
1911
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-added", children: `+${String(intended.file.added)}` }),
1912
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-removed", children: `-${String(intended.file.removed)}` })
1913
- ] }),
1914
- intended.mismatch === "missing" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 不在当前文件里" }),
1915
- intended.mismatch === "ambiguous" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 匹配多处" })
1916
- ] }) : targetPath !== null ? /* @__PURE__ */ jsxRuntime.jsx(OpenPathButton, { absPath: targetPath, cwd, patch: call.change ?? null }) : summary }),
1917
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "status", children: [
1918
- call.status === "running" ? /* @__PURE__ */ jsxRuntime.jsx("i", { className: "tc-spin", "aria-hidden": "true" }) : null,
1919
- call.status === "done" ? "" : uiPrimitives.TOOL_STATUS_TEXT[call.status] ?? call.status,
1920
- duration === null || call.status === "done" ? "" : ` · 用时 ${duration}`
1921
- ] }),
1922
- /* @__PURE__ */ jsxRuntime.jsx(
1923
- "button",
1924
- {
1925
- type: "button",
1926
- className: "tc-trace",
1927
- "data-trace-jump": String(entry.id),
1928
- "data-tip": "在轨迹页查看这条调用的时刻与耗时",
1929
- "aria-label": "在轨迹中查看",
1930
- onClick: (event) => {
1931
- event.stopPropagation();
1932
- ui$1.openTrace(entry.id);
1933
- },
1934
- children: "在轨迹中查看"
1935
- }
1936
- ),
1937
- expandable ? /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronDown, { size: 11, className: "tc-chevron" }) : null
1938
- ]
1939
- }
1940
- ),
1941
- bodyOpen ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tool-body", ref: bodyRef, children: [
1942
- barVisible ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-bar", "data-tc-chrome": "1", ref: barRef, children: [
1943
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-bar-status", children: barStatus }),
1944
- running ? null : /* @__PURE__ */ jsxRuntime.jsxs(
1945
- "button",
1946
- {
1947
- type: "button",
1948
- className: "tc-collapse",
1949
- title: "收起这张工具卡",
1950
- onClick: () => {
1951
- setOpenPersisted(false);
1952
- },
1953
- children: [
1954
- "收起",
1955
- /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconChevronUp, { size: 11 })
1956
- ]
1957
- }
1958
- )
1959
- ] }) : null,
1960
- intended !== null ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended", children: [
1961
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "tc-intended-head", children: [
1962
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-intended-title", children: "将做的改动" }),
1963
- intended.fellBack && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "读不到文件当前内容,以下按参数推算" }),
1964
- intended.mismatch === "missing" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 在文件中不存在,执行会失败" }),
1965
- intended.mismatch === "ambiguous" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "tc-warn", children: "old 匹配多处,执行会失败" })
1966
- ] }),
1967
- intended.file === null ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "tc-intended-note", children: "两段内容一致,不会有实际改动。" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "tc-intended-diff", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.DiffRows, { hunks: intended.file.hunks, path: intended.absPath }) })
1968
- ] }) : null,
1969
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "label", children: "参数" }),
1970
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "args", children: uiPrimitives.prettyJson(call.argsText) }),
1971
- call.resultText === void 0 || call.resultText === "" ? null : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1972
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "label", children: "结果" }),
1973
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "result", children: call.resultText })
1974
- ] })
1975
- ] }) : null
1976
- ] });
1977
- }
1978
- const SUB_STATE_TEXT = {
1979
- working: "干活中",
1980
- idle: "已收工",
1981
- stopped: "被打断",
1982
- failed: "过程失败"
1983
- };
1984
- function SubagentRow({ entry }) {
1985
- const sub = entry.sub;
1986
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "shell-subagent", "data-state": sub.state, children: [
1987
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "shell-subagent-head", children: [
1988
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shell-subagent-name", children: sub.name }),
1989
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shell-subagent-role", children: sub.role }),
1990
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shell-subagent-state", children: SUB_STATE_TEXT[sub.state] ?? sub.state })
1991
- ] }),
1992
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "shell-subagent-task", children: uiPrimitives.oneLine(sub.task, 160) }),
1993
- /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "shell-subagent-meta", children: [
1994
- sub.rounds,
1995
- " 轮 · ",
1996
- sub.toolCalls,
1997
- " 次工具",
1998
- sub.tokens === void 0 ? "" : ` · ${uiPrimitives.formatTokens(sub.tokens)} tok`,
1999
- sub.lastTool === void 0 ? "" : ` · 当前 ${sub.lastTool.name}`
2000
- ] }),
2001
- sub.error === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "shell-subagent-error", children: sub.error })
2002
- ] });
2003
- }
2004
- function mergeChanges(rows) {
2005
- const turnDiff = uiPrimitives.findLast(rows, (row) => row.entry.kind === "turnDiff");
2006
- if (turnDiff !== void 0 && turnDiff.entry.kind === "turnDiff") return turnDiff.entry.files;
2007
- const byPath = /* @__PURE__ */ new Map();
2008
- for (const row of rows) {
2009
- if (row.entry.kind !== "changes") continue;
2010
- const file = row.entry.file;
2011
- const existing = byPath.get(file.path);
2012
- byPath.set(
2013
- file.path,
2014
- existing === void 0 ? file : {
2015
- ...existing,
2016
- added: existing.added + file.added,
2017
- removed: existing.removed + file.removed,
2018
- hunks: [...existing.hunks, ...file.hunks],
2019
- ...existing.truncated === true || file.truncated === true ? { truncated: true } : {}
2020
- }
2021
- );
2022
- }
2023
- return [...byPath.values()];
2024
- }
2025
- const COLLAPSED_ROWS = 4;
2026
- function Counts({ added, removed }) {
2027
- return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-counts", children: [
2028
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-added", children: `+${String(added)}` }),
2029
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-removed", children: `-${String(removed)}` })
2030
- ] });
2031
- }
2032
- function DiffHoverCard({
2033
- file,
2034
- anchor,
2035
- cardWidth,
2036
- cwd,
2037
- onKeep,
2038
- onLeave,
2039
- onClose
2040
- }) {
2041
- react.useEffect(() => {
2042
- const onKey = (event) => {
2043
- if (event.key !== "Escape") return;
2044
- event.stopPropagation();
2045
- onClose();
2046
- };
2047
- window.addEventListener("keydown", onKey, true);
2048
- return () => window.removeEventListener("keydown", onKey, true);
2049
- }, [onClose]);
2050
- const width = Math.max(320, Math.min(cardWidth - 48, window.innerWidth - 16));
2051
- const maxHeight = Math.min(420, window.innerHeight - 24);
2052
- const left = Math.min(Math.max(8, anchor.left - 24), Math.max(8, window.innerWidth - width - 8));
2053
- const style = anchor.top - 12 >= maxHeight ? { left: `${String(left)}px`, bottom: `${String(window.innerHeight - anchor.top + 6)}px`, width: `${String(width)}px`, maxHeight: `${String(maxHeight)}px` } : { left: `${String(left)}px`, top: `${String(anchor.bottom + 6)}px`, width: `${String(width)}px`, maxHeight: `${String(maxHeight)}px` };
2054
- return reactDom.createPortal(
2055
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hover-preview", style, onMouseEnter: onKeep, onMouseLeave: onLeave, children: [
2056
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hover-preview-head", children: [
2057
- /* @__PURE__ */ jsxRuntime.jsx(ui$1.FileIcon, { name: file.path, size: 14 }),
2058
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "hover-preview-name", title: file.path, children: uiPrimitives.displayPathOf(file.path, cwd) }),
2059
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "hover-preview-stat", children: [
2060
- file.status === "added" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "diff-badge", children: "新增" }),
2061
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-added", children: `+${String(file.added)}` }),
2062
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-removed", children: `-${String(file.removed)}` })
2063
- ] })
2064
- ] }),
2065
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "hover-preview-diff", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.DiffRows, { hunks: file.hunks, path: file.path }) })
2066
- ] }),
2067
- document.body
2068
- );
2069
- }
2070
- function ChangesCard({ rows, cwd }) {
2071
- const files = react.useMemo(() => mergeChanges(rows), [rows]);
2072
- const [expanded, setExpanded] = react.useState(true);
2073
- const cardRef = react.useRef(null);
2074
- const hoverDelay = uiPrimitives.useHoverDelay();
2075
- const { hover } = hoverDelay;
2076
- react.useEffect(() => {
2077
- setExpanded(files.length <= COLLAPSED_ROWS);
2078
- }, [files.length]);
2079
- if (files.length === 0) return null;
2080
- const totalAdded = files.reduce((sum, file) => sum + file.added, 0);
2081
- const totalRemoved = files.reduce((sum, file) => sum + file.removed, 0);
2082
- const single = files.length === 1 ? files[0] : void 0;
2083
- const visible = expanded ? files : files.slice(0, COLLAPSED_ROWS);
2084
- const reviewAt = (index) => {
2085
- ui$1.setDockReview({ files, index, cwd });
2086
- };
2087
- const openAt = (path) => {
2088
- ui$1.setDockPreview({ path, cwd });
2089
- };
2090
- const armHover = (file, anchor) => {
2091
- hoverDelay.arm(file, anchor, cardRef.current?.offsetWidth ?? 480);
2092
- };
2093
- return (
2094
- // 不再包 `.entry-row`:旧版里 `.changes-card` 是 `.turn-seat` 的直接子项,间距靠
2095
- // `.turn-seat > .changes-card` 那条规则给(多包一层会让选择器失配)。
2096
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "changes-card", ref: cardRef, "data-changed-files": "", ...single === void 0 ? {} : { "data-single": "1" }, children: [
2097
- /* @__PURE__ */ jsxRuntime.jsxs(
2098
- "button",
2099
- {
2100
- type: "button",
2101
- className: "changes-head",
2102
- onClick: () => {
2103
- reviewAt(files.indexOf(single ?? files[0]));
2104
- },
2105
- children: [
2106
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-tile", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.FileIcon, { name: (single ?? files[0]).path, size: 20 }) }),
2107
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-titles", children: [
2108
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-title", children: single === void 0 ? `已编辑 ${String(files.length)} 个文件` : uiPrimitives.baseNameOf(single.path) }),
2109
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-stat", children: [
2110
- /* @__PURE__ */ jsxRuntime.jsx(Counts, { added: totalAdded, removed: totalRemoved }),
2111
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-hint", children: "点击审查改动" })
2112
- ] })
2113
- ] })
2114
- ]
2115
- }
2116
- ),
2117
- single === void 0 ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "changes-list", children: visible.map((file) => /* @__PURE__ */ jsxRuntime.jsxs(
2118
- "li",
2119
- {
2120
- className: "changes-row-wrap",
2121
- onMouseEnter: (event) => armHover(file, event.currentTarget.getBoundingClientRect()),
2122
- onMouseLeave: hoverDelay.disarm,
2123
- children: [
2124
- /* @__PURE__ */ jsxRuntime.jsxs(
2125
- "button",
2126
- {
2127
- type: "button",
2128
- className: "changes-row",
2129
- onClick: () => {
2130
- reviewAt(files.indexOf(file));
2131
- },
2132
- children: [
2133
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-path", title: file.path, children: [
2134
- file.status === "added" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "changes-badge", children: "新增" }),
2135
- uiPrimitives.displayPathOf(file.path, cwd)
2136
- ] }),
2137
- /* @__PURE__ */ jsxRuntime.jsx(Counts, { added: file.added, removed: file.removed })
2138
- ]
2139
- }
2140
- ),
2141
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "changes-act", children: [
2142
- /* @__PURE__ */ jsxRuntime.jsx(
2143
- "button",
2144
- {
2145
- type: "button",
2146
- className: "changes-btn",
2147
- onClick: () => {
2148
- reviewAt(files.indexOf(file));
2149
- },
2150
- children: "审查"
2151
- }
2152
- ),
2153
- /* @__PURE__ */ jsxRuntime.jsx(
2154
- "button",
2155
- {
2156
- type: "button",
2157
- className: "changes-btn",
2158
- onClick: () => {
2159
- openAt(file.path);
2160
- },
2161
- children: "打开"
2162
- }
2163
- )
2164
- ] })
2165
- ]
2166
- },
2167
- file.path
2168
- )) }) : null,
2169
- single === void 0 && files.length > COLLAPSED_ROWS ? /* @__PURE__ */ jsxRuntime.jsx(
2170
- "button",
2171
- {
2172
- type: "button",
2173
- className: "changes-toggle",
2174
- onClick: () => {
2175
- setExpanded((value) => !value);
2176
- },
2177
- children: expanded ? "收起" : `展开全部 ${String(files.length)} 个文件`
2178
- }
2179
- ) : null,
2180
- single !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "changes-act changes-act-single", children: [
2181
- /* @__PURE__ */ jsxRuntime.jsx(
2182
- "button",
2183
- {
2184
- type: "button",
2185
- className: "changes-btn",
2186
- onClick: () => {
2187
- reviewAt(0);
2188
- },
2189
- children: "审查"
2190
- }
2191
- ),
2192
- /* @__PURE__ */ jsxRuntime.jsx(
2193
- "button",
2194
- {
2195
- type: "button",
2196
- className: "changes-btn",
2197
- onClick: () => {
2198
- openAt(single.path);
2199
- },
2200
- children: "打开"
2201
- }
2202
- )
2203
- ] }) : null,
2204
- hover !== null ? /* @__PURE__ */ jsxRuntime.jsx(
2205
- DiffHoverCard,
2206
- {
2207
- file: hover.item,
2208
- anchor: hover.anchor,
2209
- cardWidth: hover.cardWidth,
2210
- cwd,
2211
- onKeep: hoverDelay.keep,
2212
- onLeave: hoverDelay.disarm,
2213
- onClose: hoverDelay.close
2214
- }
2215
- ) : null
2216
- ] })
2217
- );
2218
- }
2219
- function RoundFoot(props) {
2220
- const clock = props.running ? null : uiPrimitives.formatClock(props.round.startTs);
2221
- const used = props.running ? null : uiPrimitives.formatDuration(roundDuration(props.round));
2222
- const measured = props.running ? null : props.usage;
2223
- const real = measured !== null && measured.inputTokens + measured.outputTokens > 0 ? measured.inputTokens + measured.outputTokens : null;
2224
- const estimated = real !== null || props.running || props.tokens === null || props.tokens <= 0 ? null : props.tokens;
2225
- const copy = props.copyText !== void 0 && props.copyText !== "";
2226
- const fork = props.onFork !== void 0;
2227
- if (clock === null && !copy && !fork && real === null && estimated === null) return null;
2228
- return (
2229
- // 与 `.changes-card` 同理:不再包 `.entry-row`,让 `.turn-seat > .round-foot` 的
2230
- // 间距规则命中——包一层之后那条规则失配,回落到 `.round-foot` 自带的 -15px
2231
- // 负外边距(它本来是给旧版 `.chat-inner` 的 16px 间距设计的),会把这一行顶进
2232
- // 上面的改动卡里(截图里的「底部按钮与文件变更重叠」就是这么来的)。
2233
- /* @__PURE__ */ jsxRuntime.jsxs(
2234
- "div",
2235
- {
2236
- className: "round-foot",
2237
- title: used === null ? void 0 : `用时 ${used}(从发出这条消息到这一轮最后一次写入,中间的工具调用与思考都算在内)`,
2238
- children: [
2239
- copy ? /* @__PURE__ */ jsxRuntime.jsx(
2240
- "button",
2241
- {
2242
- type: "button",
2243
- className: "round-act",
2244
- title: "复制这条回复的原文",
2245
- "aria-label": "复制这条回复的原文",
2246
- onClick: () => {
2247
- void navigator.clipboard.writeText(props.copyText ?? "").catch(() => void 0);
2248
- },
2249
- children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconCopy, { size: 17 })
2250
- }
2251
- ) : null,
2252
- fork ? /* @__PURE__ */ jsxRuntime.jsx(
2253
- "button",
2254
- {
2255
- type: "button",
2256
- className: "user-act",
2257
- title: "以这条消息为界分叉出新会话",
2258
- "aria-label": "以这条消息为界分叉出新会话",
2259
- disabled: props.running,
2260
- onClick: props.onFork,
2261
- children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconBranch, { size: 15 })
2262
- }
2263
- ) : null,
2264
- real !== null ? /* @__PURE__ */ jsxRuntime.jsxs(
2265
- "span",
2266
- {
2267
- className: "round-tokens",
2268
- title: "这一轮所有模型请求的 prompt 与 completion 之和(宿主上报的真实用量)",
2269
- children: [
2270
- "用量 ",
2271
- uiPrimitives.formatTokens(real),
2272
- " tok"
2273
- ]
2274
- }
2275
- ) : null,
2276
- estimated !== null ? /* @__PURE__ */ jsxRuntime.jsxs(
2277
- "span",
2278
- {
2279
- className: "round-tokens",
2280
- title: "助手正文的 token 估算值(老会话无宿主上报用量)",
2281
- children: [
2282
- "~",
2283
- uiPrimitives.formatTokens(estimated),
2284
- " tok"
2285
- ]
2286
- }
2287
- ) : null,
2288
- clock !== null && (real !== null || estimated !== null) ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "round-sep", "aria-hidden": "true", children: "·" }) : null,
2289
- clock !== null ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "round-clock", title: "这条消息发出的时刻(本机时区)", children: clock }) : null
2290
- ]
2291
- }
2292
- )
2293
- );
2294
- }
2295
- function TurnStatusLine(props) {
2296
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "turn-status", children: [
2297
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "turn-status-spin", "aria-hidden": "true" }),
2298
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "turn-status-stage", role: "status", children: props.text }),
2299
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "turn-status-dots", "aria-hidden": "true", children: [
2300
- /* @__PURE__ */ jsxRuntime.jsx("i", {}),
2301
- /* @__PURE__ */ jsxRuntime.jsx("i", {}),
2302
- /* @__PURE__ */ jsxRuntime.jsx("i", {})
2303
- ] })
2304
- ] });
2305
- }
2306
- function groupTask(members) {
2307
- for (const member of members) {
2308
- const entry = member.entry;
2309
- if (entry.kind !== "tool") continue;
2310
- const text = uiPrimitives.toolSummary(entry.call.name, entry.call.argsText);
2311
- if (text !== "") return text;
2312
- }
2313
- return "";
2314
- }
2315
- function SeatBody({
2316
- seat,
2317
- round,
2318
- running,
2319
- sessionId,
2320
- sessionKey,
2321
- cwd,
2322
- roundFolds,
2323
- foldMemory,
2324
- stepGrouping,
2325
- renderSlot,
2326
- onFork
2327
- }) {
2328
- const fold = roundFolds.get(seat.round);
2329
- const foldRunning = fold?.running === true;
2330
- const foldable = fold !== void 0 && fold.foldable && fold.hasContent && !foldRunning && !fold.blocked;
2331
- const turnKey = turnFoldKey(sessionId, seat.round);
2332
- const turnOpen = foldMemory.open(turnKey, false);
2333
- const collapsed = foldable && !turnOpen;
2334
- const reveal = () => {
2335
- foldMemory.set(turnKey, true);
2336
- };
2337
- const showFoldRow = fold !== void 0 && fold.foldable && !foldRunning;
2338
- const roundInfo = round ?? {
2339
- index: seat.round,
2340
- startIndex: seat.rows[0]?.at ?? 0,
2341
- endIndex: seat.rows[seat.rows.length - 1]?.at ?? 0,
2342
- startTs: null,
2343
- endTs: null,
2344
- answered: true
2345
- };
2346
- const answer = seat.rows.map((row) => row.entry).filter((entry) => entry.kind === "text" && entry.id >= 0).at(-1);
2347
- const tokens = seat.rows.reduce(
2348
- (sum, row) => row.entry.kind === "text" && row.entry.id >= 0 ? sum + ui$1.estimateTextTokens(row.entry.text) : sum,
2349
- 0
2350
- );
2351
- const usage = uiPrimitives.findLast(
2352
- seat.rows,
2353
- (row) => (row.entry.kind === "text" || row.entry.kind === "tool") && row.entry.usage !== void 0
2354
- )?.entry.usage;
2355
- const seatRow = (row, hidden) => /* @__PURE__ */ jsxRuntime.jsx(
2356
- RowSeat,
2357
- {
2358
- hidden,
2359
- onReveal: reveal,
2360
- roundIndex: seat.round,
2361
- children: /* @__PURE__ */ jsxRuntime.jsx(RowBoundary, { entry: row.entry, children: /* @__PURE__ */ jsxRuntime.jsx(RowBody, { row, renderSlot }) })
2362
- },
2363
- keyOf(row, sessionKey)
2364
- );
2365
- const groupOpen = (group) => foldMemory.open(stepGroupFoldKey(sessionId, group.roundIndex, group.seq), false);
2366
- const toggleGroup = (group) => {
2367
- foldMemory.set(stepGroupFoldKey(sessionId, group.roundIndex, group.seq), !groupOpen(group));
2368
- };
2369
- const liveDetail = react.useContext(FoldPrefsContext).policy.liveDetail;
2370
- const rowByAt = new Map(seat.rows.map((row) => [row.at, row]));
2371
- const processBlocks = [];
2372
- const afterBlocks = [];
2373
- const inProcessOf = (row) => fold !== void 0 && fold.foldable && fold.hasContent && row.at >= fold.startIndex && row.at <= fold.endIndex;
2374
- const pushRow = (row) => {
2375
- if (inProcessOf(row) && !TURN_INDEPENDENT.has(row.entry.kind)) processBlocks.push(seatRow(row, collapsed));
2376
- else afterBlocks.push(seatRow(row, false));
2377
- };
2378
- for (const item of seatPlan(seat.rows.slice(1).map((row) => row.at), stepGrouping)) {
2379
- if (item.kind === "group") {
2380
- const head = item.group;
2381
- const members = item.members.map((at) => rowByAt.get(at)).filter((member) => member !== void 0);
2382
- if (!needsGroupHeader(head)) {
2383
- const only = members[0];
2384
- if (only !== void 0) pushRow(only);
2385
- continue;
2386
- }
2387
- processBlocks.push(
2388
- /* @__PURE__ */ jsxRuntime.jsx(
2389
- StepGroupSeat,
2390
- {
2391
- group: head,
2392
- turnCollapsed: collapsed,
2393
- open: groupOpen(head),
2394
- showDetail: liveDetail,
2395
- task: head.closed ? groupTask(members) : "",
2396
- onToggle: () => toggleGroup(head),
2397
- onRevealTurn: reveal,
2398
- children: members.map((member) => seatRow(member, false))
2399
- },
2400
- `step-${String(head.roundIndex)}-${String(head.seq)}`
2401
- )
2402
- );
2403
- continue;
2404
- }
2405
- const row = rowByAt.get(item.at);
2406
- if (row === void 0) continue;
2407
- pushRow(row);
2408
- }
2409
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
2410
- seat.rows.length === 0 ? null : seatRow(seat.rows[0], false),
2411
- showFoldRow && fold !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-row", "data-round": seat.round, children: /* @__PURE__ */ jsxRuntime.jsx(
2412
- TurnFoldRow,
2413
- {
2414
- open: !collapsed,
2415
- round: roundInfo,
2416
- disabled: !fold.hasContent || fold.blocked,
2417
- endReason: fold.endReason,
2418
- onToggle: () => {
2419
- foldMemory.set(turnKey, collapsed);
2420
- }
2421
- }
2422
- ) }) : null,
2423
- processBlocks.length === 0 ? null : (
2424
- // 过程区**包一层**再折:整轮收起是「这一片高度从 0 长回来 / 缩回 0」,一片一起动才行。
2425
- // 平铺在座位上折不了——收起的行是 `hidden`(不产生盒子),夹在它们之间的 6px flex gap
2426
- // 会留下来,几十行的轮收起来就是一片空白的间隙堆。包进一格之后,座位的 gap 只算这一格。
2427
- // 高度动画本身在 CSS:`.turn-process` 的 grid-template-rows 0fr↔1fr(不需要 JS 量高度)。
2428
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "turn-process", "data-fold": collapsed ? "closed" : "open", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "turn-process-body", children: processBlocks }) })
2429
- ),
2430
- afterBlocks,
2431
- /* @__PURE__ */ jsxRuntime.jsx(ChangesCard, { rows: seat.rows, cwd }),
2432
- /* @__PURE__ */ jsxRuntime.jsx(
2433
- RoundFoot,
2434
- {
2435
- round: roundInfo,
2436
- running,
2437
- copyText: answer?.text,
2438
- usage: usage ?? null,
2439
- tokens: tokens > 0 ? tokens : null,
2440
- onFork
2441
- }
2442
- )
2443
- ] });
2444
- }
2445
- function RowBody({
2446
- row,
2447
- renderSlot
2448
- }) {
2449
- const sessionId = react.useContext(ShellSessionContext);
2450
- const cwd = react.useContext(ShellCwdContext);
2451
- const entry = row.entry;
2452
- switch (entry.kind) {
2453
- case "user":
2454
- return /* @__PURE__ */ jsxRuntime.jsx(UserRow, { entry });
2455
- case "text":
2456
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: row.live ? "entry-text live" : "entry-text", children: /* @__PURE__ */ jsxRuntime.jsx(ui$1.MarkdownView, { text: entry.text, path: "", streaming: row.live }) });
2457
- case "thinking":
2458
- return /* @__PURE__ */ jsxRuntime.jsx(
2459
- ThinkRow,
2460
- {
2461
- entry,
2462
- live: row.live,
2463
- storeKey: `${sessionId ?? ""}:think:${String(entry.id)}`
2464
- }
2465
- );
2466
- case "tool": {
2467
- const storeKey = `${sessionId ?? ""}:${String(row.at)}`;
2468
- return renderSlot?.(TOOLVIEW_SLOT, { entry, storeKey }) ?? /* @__PURE__ */ jsxRuntime.jsx(ToolRow, { entry, storeKey });
2469
- }
2470
- case "system": {
2471
- const notice = uiPrimitives.parseReviewNotice(entry.text);
2472
- if (notice !== null) return /* @__PURE__ */ jsxRuntime.jsx(uiPrimitives.ReviewNoticeCard, { notice, cwd });
2473
- return entry.command === true ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system-command", children: entry.text }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system", children: entry.text });
2474
- }
2475
- case "turn-max-tokens":
2476
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system", "data-turn-notice": "max-tokens", children: "这一轮的输出达到长度上限,已被截断" });
2477
- case "model-retry":
2478
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "entry-system", "data-turn-notice": "model-retry", children: [
2479
- "模型请求失败,正在重试(第 ",
2480
- entry.attempt,
2481
- " 次):",
2482
- entry.text
2483
- ] });
2484
- case "turn-end":
2485
- if (entry.reason === "completed") return null;
2486
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system", children: entry.reason === "aborted" ? "这一轮被中断" : "这一轮过程失败" });
2487
- case "plan":
2488
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `plan-card ${entry.plan.decision === "pending" ? "pending" : "settled"}`, children: [
2489
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "plan-head", children: [
2490
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "plan-title", children: entry.plan.title }),
2491
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "plan-verdict", children: entry.plan.decision === "pending" ? "等你批" : entry.plan.decision === "approved" ? "已批准" : "未批准" })
2492
- ] }),
2493
- /* @__PURE__ */ jsxRuntime.jsx("pre", { className: "plan-body", children: entry.plan.text }),
2494
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "plan-foot", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "plan-file", title: entry.plan.file, children: entry.plan.file }) })
2495
- ] });
2496
- case "subagent":
2497
- return /* @__PURE__ */ jsxRuntime.jsx(SubagentRow, { entry });
2498
- case "changes":
2499
- case "turnDiff":
2500
- return null;
2501
- default: {
2502
- const kind = entry.kind;
2503
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "entry-system", children: [
2504
- "认不出的条目:",
2505
- String(kind)
2506
- ] });
2507
- }
2508
- }
2509
- }
2510
- class RowBoundary extends react.Component {
2511
- state = { error: null };
2512
- static getDerivedStateFromError(error) {
2513
- return { error };
2514
- }
2515
- componentDidUpdate(previous) {
2516
- if (this.state.error !== null && previous.entry !== this.props.entry) this.setState({ error: null });
2517
- }
2518
- render() {
2519
- if (this.state.error !== null) {
2520
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "entry-system", children: [
2521
- "这一条没画出来:",
2522
- this.state.error.message
2523
- ] });
2524
- }
2525
- return this.props.children;
2526
- }
2527
- }
2528
- const WELCOME_CARDS = [
2529
- { id: "read", Icon: ui$1.IconCode, title: "看懂代码", hint: "解释一处实现的来龙去脉", prompt: "帮我讲清楚这段代码在做什么:\n" },
2530
- { id: "build", Icon: ui$1.IconSpark, title: "做点东西", hint: "从需求一路写到能跑", prompt: "帮我实现:" },
2531
- {
2532
- id: "review",
2533
- Icon: ui$1.IconDiff,
2534
- title: "审查改动",
2535
- hint: "看未提交的改动有没有坑",
2536
- prompt: "审查当前未提交的改动,指出风险、遗漏和可以简化的地方。"
2537
- },
2538
- { id: "fix", Icon: ui$1.IconTarget, title: "排查问题", hint: "从一个报错查到根因", prompt: "帮我排查一下这个问题:\n" }
2539
- ];
2540
- const WELCOME_ICON_BY_ID = new Map(
2541
- WELCOME_CARDS.map((card) => [`welcome.${card.id}`, card.Icon])
2542
- );
2543
- function elapsedLabel(at) {
2544
- const minutes = Math.max(Math.round((Date.now() - at) / 6e4), 0);
2545
- if (minutes < 1) return "刚刚";
2546
- if (minutes < 60) return `${String(minutes)} 分钟前`;
2547
- const hours = Math.round(minutes / 60);
2548
- if (hours < 24) return `${String(hours)} 小时前`;
2549
- return `${String(Math.round(hours / 24))} 天前`;
2550
- }
2551
- function WelcomeState({ cards, resume, leading, sessionKey, cwd, composerReady, onResume }) {
2552
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "welcome", children: [
2553
- /* @__PURE__ */ jsxRuntime.jsx("h1", { children: "有什么可以帮忙的?" }),
2554
- /* @__PURE__ */ jsxRuntime.jsxs("p", { children: [
2555
- "输入 ",
2556
- /* @__PURE__ */ jsxRuntime.jsx("code", { children: "/" }),
2557
- " 查看可用指令 · 消息会携带当前工作目录上下文"
2558
- ] }),
2559
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "welcome-cards", children: cards.map((card) => /* @__PURE__ */ jsxRuntime.jsxs(
2560
- "button",
2561
- {
2562
- type: "button",
2563
- className: "welcome-card",
2564
- disabled: !composerReady,
2565
- onClick: card.run,
2566
- children: [
2567
- /* @__PURE__ */ jsxRuntime.jsx(card.Icon, { size: 16 }),
2568
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "welcome-card-text", children: [
2569
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "welcome-card-title", children: card.title }),
2570
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "welcome-card-hint", children: card.hint })
2571
- ] })
2572
- ]
2573
- },
2574
- card.id
2575
- )) }),
2576
- resume === null ? null : /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: "welcome-resume", onClick: () => onResume(resume.id), children: [
2577
- /* @__PURE__ */ jsxRuntime.jsx(ui$1.IconClock, { size: 13 }),
2578
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "welcome-resume-title", children: [
2579
- "接着上次:",
2580
- resume.title
2581
- ] }),
2582
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "welcome-resume-time", children: elapsedLabel(resume.updatedAt) })
2583
- ] }),
2584
- leading.map((row) => {
2585
- if (row.entry.kind !== "system") return null;
2586
- if (row.entry.command === true) {
2587
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-system-command", children: row.entry.text }, keyOf(row, sessionKey));
2588
- }
2589
- const notice = uiPrimitives.parseReviewNotice(row.entry.text);
2590
- if (notice === null) return null;
2591
- return /* @__PURE__ */ jsxRuntime.jsx(uiPrimitives.ReviewNoticeCard, { notice, cwd }, keyOf(row, sessionKey));
2592
- })
2593
- ] });
2594
- }
2595
- const SUBAGENT_FLOW_SLOT = "shell.subagent.flow";
2596
- function SubagentFlow(props) {
2597
- const entries = props.entries ?? uiPrimitives.NO_ENTRIES;
2598
- const cwd = props.cwd ?? "";
2599
- const toolRender = props.renderSlot ?? ((_name, owner) => /* @__PURE__ */ jsxRuntime.jsx(ToolRow, { entry: owner.entry, storeKey: owner.storeKey }));
2600
- const rows = react.useMemo(() => entries.map((entry, at) => ({ entry, live: false, at })), [entries]);
2601
- return /* @__PURE__ */ jsxRuntime.jsx(ShellSessionContext.Provider, { value: props.sessionKey ?? null, children: /* @__PURE__ */ jsxRuntime.jsx(ShellCwdContext.Provider, { value: cwd, children: /* @__PURE__ */ jsxRuntime.jsx(FoldPrefsContext.Provider, { value: FOLD_PREFS, children: /* @__PURE__ */ jsxRuntime.jsx(FlowActionsContext.Provider, { value: NO_ACTIONS, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "chat-inner subagent-flow", children: rows.map((row) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-row", children: /* @__PURE__ */ jsxRuntime.jsx(RowBoundary, { entry: row.entry, children: row.entry.kind === "user" ? /* @__PURE__ */ jsxRuntime.jsx(ReadonlyUserRow, { entry: row.entry }) : /* @__PURE__ */ jsxRuntime.jsx(RowBody, { row, renderSlot: toolRender }) }) }, `sub|${row.entry.kind}|${String(row.entry.id)}`)) }) }) }) }) });
2602
- }
2603
- const BUILTIN_TOOLVIEW_PRIORITY = 100;
2604
- const ui = ui$1.defineUiPlugin({
2605
- name: "消息流",
2606
- apply(ui2) {
2607
- registerToolCard(ui2);
2608
- ui2.slots.register(
2609
- "shell.main",
2610
- { id: "transcript.flow", order: 1, children: { [TOOLVIEW_SLOT]: "chain" } },
2611
- TranscriptFlow
2612
- );
2613
- ui2.slots.register(
2614
- TOOLVIEW_SLOT,
2615
- {
2616
- id: "transcript.toolview.builtin",
2617
- priority: BUILTIN_TOOLVIEW_PRIORITY,
2618
- // owner 的类型来自 SlotMap 的声明(D1):entry 就是渲染方传的那条工具调用,
2619
- // 不需要再对 unknown 做断言。
2620
- select: (owner) => uiPrimitives.matchTool(owner.entry.call.name)
2621
- },
2622
- BuiltinToolView
2623
- );
2624
- ui2.slots.declare(SUBAGENT_FLOW_SLOT, "list");
2625
- ui2.slots.register(
2626
- SUBAGENT_FLOW_SLOT,
2627
- { id: "transcript.subagent.flow", order: 1, children: { [TOOLVIEW_SLOT]: "chain" } },
2628
- SubagentFlow
2629
- );
2630
- ui2.provide("transcriptFlow", { Component: SubagentFlow, slot: SUBAGENT_FLOW_SLOT });
2631
- }
2632
- });
2633
- function TranscriptFlow({
2634
- renderSlot
2635
- }) {
2636
- const entries = ui$1.useHostSelector(uiPrimitives.readEntries);
2637
- const live = ui$1.useHostSelector(uiPrimitives.readLive);
2638
- const turnState = ui$1.useHostSelector(uiPrimitives.readTurnState);
2639
- const compactingSince = ui$1.useHostSelector(uiPrimitives.readCompactingSince);
2640
- const sessionPath = ui$1.useHostSelector(uiPrimitives.readSessionPath);
2641
- const sessionId = ui$1.useHostSelector(readSessionId);
2642
- const cwd = ui$1.useHostSelector(uiPrimitives.readCwd) ?? "";
2643
- const channel = ui$1.useHostChannel();
2644
- const sessionKey = sessionPath ?? sessionId ?? "";
2645
- const seats = react.useMemo(() => buildSeats(entries, live), [entries, live]);
2646
- const follow = useFollowBottom(entries.length + live.length, sessionKey);
2647
- const [prefs, setPrefs] = react.useState(FOLD_PREFS);
2648
- const [behavior, setBehavior] = react.useState({
2649
- sound: true,
2650
- variant: 1,
2651
- notify: true
2652
- });
2653
- react.useEffect(() => {
2654
- const read = () => {
2655
- void channel.invoke("getUiPrefs", []).then((value) => {
2656
- setPrefs({
2657
- policy: processFoldPolicy(readFoldValue(value["processFold"])),
2658
- reasoningOpen: value["reasoningDefaultOpen"] === true,
2659
- toolOpen: value["toolDefaultOpen"] === true
2660
- });
2661
- const variant = value["turnCompleteSoundVariant"];
2662
- setBehavior({
2663
- sound: value["turnCompleteSound"] !== false,
2664
- variant: typeof variant === "number" && Number.isFinite(variant) ? variant : 1,
2665
- notify: value["turnCompleteNotify"] !== false
2666
- });
2667
- }).catch(() => void 0);
2668
- };
2669
- read();
2670
- window.addEventListener("shell.uiprefs", read);
2671
- return () => window.removeEventListener("shell.uiprefs", read);
2672
- }, [channel]);
2673
- const prevState = react.useRef(turnState);
2674
- const behaviorRef = react.useRef(behavior);
2675
- behaviorRef.current = behavior;
2676
- const sessionRef = react.useRef(sessionPath);
2677
- react.useEffect(() => {
2678
- const was = prevState.current;
2679
- prevState.current = turnState;
2680
- if (was === "idle" || turnState !== "idle") return;
2681
- if (sessionRef.current !== sessionPath) return;
2682
- if (behaviorRef.current.sound) uiPrimitives.playCompletionSound(behaviorRef.current.variant);
2683
- const background = document.hidden || !document.hasFocus();
2684
- const native = ui$1.getHostNative();
2685
- if (background && behaviorRef.current.notify && native.available) {
2686
- const last = [...entries].reverse().find((entry) => entry.kind === "text");
2687
- const body = last !== void 0 && last.kind === "text" ? last.text.replace(/\s+/g, " ").trim().slice(0, 120) : "任务完成";
2688
- void native.invoke("notify", [{ title: "任务完成", body }]).catch(() => void 0);
2689
- }
2690
- }, [turnState, sessionPath, entries]);
2691
- const [earliest, setEarliest] = react.useState(null);
2692
- const roundSizes = react.useMemo(() => seats.rounds.map((seat) => seat.rows.length), [seats.rounds]);
2693
- const tailStart = react.useMemo(() => pageStartRound(roundSizes, roundSizes.length), [roundSizes]);
2694
- const firstVisible = earliest === null ? tailStart : Math.min(earliest, tailStart);
2695
- const visibleSeats = react.useMemo(
2696
- () => seats.rounds.filter((seat) => seat.round >= firstVisible),
2697
- [seats.rounds, firstVisible]
2698
- );
2699
- const earlierRounds = react.useMemo(
2700
- () => firstVisible - pageStartRound(roundSizes, firstVisible),
2701
- [roundSizes, firstVisible]
2702
- );
2703
- const cleared = seats.rounds.length === 0;
2704
- react.useEffect(() => {
2705
- setEarliest(null);
2706
- }, [sessionKey, cleared]);
2707
- const earlierRef = react.useRef(null);
2708
- const pageAnchor = react.useRef(null);
2709
- const beginPaging = () => {
2710
- const button = earlierRef.current;
2711
- if (button === null) return;
2712
- const scroller = button.closest(".chat");
2713
- if (!(scroller instanceof HTMLElement)) return;
2714
- const seat = scroller.querySelector("[data-round-seat]");
2715
- pageAnchor.current = seat === null ? null : { node: seat, top: seat.getBoundingClientRect().top - scroller.getBoundingClientRect().top, from: firstVisible };
2716
- };
2717
- const release = (startRound) => {
2718
- if (startRound >= firstVisible) return;
2719
- beginPaging();
2720
- follow.pause();
2721
- setEarliest(startRound);
2722
- };
2723
- react.useLayoutEffect(() => {
2724
- const anchor = pageAnchor.current;
2725
- if (anchor === null) return;
2726
- pageAnchor.current = null;
2727
- if (firstVisible >= anchor.from || !anchor.node.isConnected) return;
2728
- const scroller = anchor.node.closest(".chat");
2729
- if (!(scroller instanceof HTMLElement)) return;
2730
- const top = anchor.node.getBoundingClientRect().top - scroller.getBoundingClientRect().top;
2731
- scroller.scrollTop += top - anchor.top;
2732
- }, [firstVisible]);
2733
- const foldMemory = useFoldMemory();
2734
- const rounds = seats.infos;
2735
- const liveRoundIndex = rounds.length - 1;
2736
- const roundFolds = react.useMemo(
2737
- () => buildRoundFolds([...entries, ...live], rounds, { foldTurns: prefs.policy.foldTurns, live: turnState !== "idle", lastRoundIndex: liveRoundIndex }),
2738
- [entries, live, rounds, prefs.policy.foldTurns, turnState, liveRoundIndex]
2739
- );
2740
- const stepGrouping = react.useMemo(
2741
- () => prefs.policy.stepGrouping === "none" ? EMPTY_STEP_GROUPING : groupSteps(
2742
- [...entries, ...live],
2743
- rounds,
2744
- // running 谓词直接复用 roundFold——口径单点,别处不再重判
2745
- (roundIndex) => roundFolds.get(roundIndex)?.running ?? false,
2746
- prefs.policy.stepGrouping === "history"
2747
- ),
2748
- [entries, live, rounds, roundFolds, prefs.policy.stepGrouping]
2749
- );
2750
- const runningRounds = react.useMemo(() => {
2751
- const set = /* @__PURE__ */ new Set();
2752
- for (const fold of roundFolds.values()) if (fold.running) set.add(fold.roundIndex);
2753
- return set;
2754
- }, [roundFolds]);
2755
- const prevRunningRounds = react.useRef(/* @__PURE__ */ new Set());
2756
- react.useEffect(() => {
2757
- const settled = [];
2758
- for (const roundIndex of prevRunningRounds.current) {
2759
- if (runningRounds.has(roundIndex)) continue;
2760
- settled.push(turnFoldKey(sessionId, roundIndex));
2761
- for (const group of stepGrouping.groups) {
2762
- if (group.roundIndex === roundIndex) settled.push(stepGroupFoldKey(sessionId, roundIndex, group.seq));
2763
- }
2764
- }
2765
- foldMemory.reset(settled);
2766
- prevRunningRounds.current = runningRounds;
2767
- }, [runningRounds, stepGrouping, sessionId]);
2768
- const forkRound = (seat) => {
2769
- if (sessionPath === null) return;
2770
- const roundNo = seat.round + 1;
2771
- void (async () => {
2772
- try {
2773
- const result = await channel.invoke("forkSession", [sessionPath, roundNo]);
2774
- if (result.ok !== true) {
2775
- ui$1.toastErr(result.error ?? "分叉失败");
2776
- return;
2777
- }
2778
- await channel.invoke("openSession", result.path === void 0 ? [] : [result.path]);
2779
- await channel.invoke("refreshSessions", []);
2780
- ui$1.toastOk("已从这一轮分叉出新会话");
2781
- } catch (reason) {
2782
- ui$1.toastErr(`分叉失败:${reason instanceof Error ? reason.message : String(reason)}`);
2783
- }
2784
- })();
2785
- };
2786
- const editRefork = (entry, text) => {
2787
- const all = [...entries, ...live];
2788
- const at = all.findIndex((item) => item.id === entry.id);
2789
- const index = rounds.filter((round) => round.startIndex < at).length;
2790
- void (async () => {
2791
- try {
2792
- if (sessionPath === null || index === 0) {
2793
- await channel.invoke("openSession", []);
2794
- } else {
2795
- const result = await channel.invoke("forkSession", [sessionPath, index]);
2796
- if (result.ok !== true) {
2797
- ui$1.toastErr(result.error ?? "分叉失败");
2798
- return;
2799
- }
2800
- await channel.invoke("openSession", result.path === void 0 ? [] : [result.path]);
2801
- }
2802
- await channel.invoke("refreshSessions", []);
2803
- await channel.invoke("submit", [text]);
2804
- } catch (reason) {
2805
- ui$1.toastErr(`重发失败:${reason instanceof Error ? reason.message : String(reason)}`);
2806
- }
2807
- })();
2808
- };
2809
- const actions = { editRefork, busy: turnState !== "idle" };
2810
- const activity = react.useMemo(() => liveActivity([...entries, ...live], turnState), [entries, live, turnState]);
2811
- const railRounds = react.useMemo(
2812
- () => seats.rounds.map((seat) => {
2813
- const user = seat.rows[0]?.entry;
2814
- const answer = seat.rows.map((row) => row.entry).filter((entry) => entry.kind === "text" && entry.id >= 0).at(-1);
2815
- return {
2816
- round: seat.round,
2817
- // 题面预览只在来源是**人**时才填(对照 dsh 的 turnOutline:非 user 来源不留题面)。
2818
- // internal 汇报(队友干完活)有刻度但不给原文,改给一句人话——绝不把
2819
- // `<teammate-report …>` 当题面塞进悬停卡。
2820
- prompt: user?.kind !== "user" ? "" : user.internal === true ? teammateReportLabel(user.text) : previewText(user.text, "prompt"),
2821
- response: answer === void 0 ? "" : previewText(answer.text, "response")
2822
- };
2823
- }),
2824
- [seats.rounds]
2825
- );
2826
- const revealRound = (round) => {
2827
- release(round);
2828
- };
2829
- const composerDraft = ui$1.useService("composerDraft");
2830
- const actionsHandle = ui$1.useService(ui$1.ACTIONS_SERVICE);
2831
- react.useEffect(() => {
2832
- if (actionsHandle === void 0) return void 0;
2833
- return actionsHandle.register(
2834
- "transcript",
2835
- WELCOME_CARDS.map((card) => ({
2836
- id: `welcome.${card.id}`,
2837
- label: card.title,
2838
- hint: card.hint,
2839
- group: "提示词",
2840
- keywords: ["提示词", "prompt"],
2841
- run: () => {
2842
- composerDraft?.insert(card.prompt);
2843
- }
2844
- }))
2845
- );
2846
- }, [actionsHandle, composerDraft]);
2847
- const sessions = ui$1.useHostSelector(uiPrimitives.readSessions);
2848
- const resume = react.useMemo(() => {
2849
- const now = Date.now();
2850
- return [...sessions].filter(
2851
- (session) => session.archivedAt === void 0 && session.id !== sessionPath && (session.title ?? "") !== "" && now - session.updatedAt < 7 * 24 * 60 * 60 * 1e3
2852
- ).sort((a, b) => b.updatedAt - a.updatedAt)[0] ?? null;
2853
- }, [sessions, sessionPath]);
2854
- const registeredActions = ui$1.useActions();
2855
- const promptActions = react.useMemo(
2856
- () => registeredActions.filter((action) => action.group === "提示词"),
2857
- [registeredActions]
2858
- );
2859
- const welcomeCards = react.useMemo(() => {
2860
- if (promptActions.length > 0) {
2861
- return promptActions.map((action) => ({
2862
- id: action.id,
2863
- Icon: WELCOME_ICON_BY_ID.get(action.id) ?? ui$1.IconSpark,
2864
- title: action.label,
2865
- hint: action.hint ?? "",
2866
- run: action.run
2867
- }));
2868
- }
2869
- return WELCOME_CARDS.map((card) => ({
2870
- id: card.id,
2871
- Icon: card.Icon,
2872
- title: card.title,
2873
- hint: card.hint,
2874
- run: () => {
2875
- composerDraft?.insert(card.prompt);
2876
- }
2877
- }));
2878
- }, [promptActions, composerDraft]);
2879
- const bootError = react.useMemo(() => {
2880
- const row = seats.leading.find((item) => item.entry.kind === "system" && item.entry.level === "error");
2881
- return row !== void 0 && row.entry.kind === "system" ? row.entry : null;
2882
- }, [seats.leading]);
2883
- react.useEffect(() => {
2884
- if (bootError === null) return;
2885
- ui$1.toastErr(bootError.text.split("\n")[0] ?? "启动时有问题需要处理");
2886
- }, [bootError?.id, sessionKey]);
2887
- if (seats.rounds.length === 0 && seats.leading.every((row) => row.entry.kind === "system")) {
2888
- return /* @__PURE__ */ jsxRuntime.jsx(
2889
- WelcomeState,
2890
- {
2891
- cards: welcomeCards,
2892
- resume,
2893
- leading: seats.leading,
2894
- sessionKey,
2895
- cwd,
2896
- composerReady: composerDraft !== void 0,
2897
- onResume: (id) => {
2898
- void (async () => {
2899
- await channel.invoke("openSession", [id]);
2900
- await channel.invoke("refreshSessions", []);
2901
- })();
2902
- }
2903
- }
2904
- );
2905
- }
2906
- return /* @__PURE__ */ jsxRuntime.jsx(ShellSessionContext.Provider, { value: sessionId, children: /* @__PURE__ */ jsxRuntime.jsx(ShellCwdContext.Provider, { value: cwd ?? "", children: /* @__PURE__ */ jsxRuntime.jsx(FoldPrefsContext.Provider, { value: prefs, children: /* @__PURE__ */ jsxRuntime.jsxs(FlowActionsContext.Provider, { value: actions, children: [
2907
- /* @__PURE__ */ jsxRuntime.jsx(JumpRail, { rounds: railRounds, renderedFrom: firstVisible, onReveal: revealRound }),
2908
- firstVisible > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
2909
- "button",
2910
- {
2911
- type: "button",
2912
- className: "chat-earlier",
2913
- ref: earlierRef,
2914
- "data-earlier-rounds": firstVisible,
2915
- "data-tip": "把更早的几轮画出来(一页至少 50 条且 2 轮),你现在看的位置不会动",
2916
- onClick: () => {
2917
- release(firstVisible - earlierRounds);
2918
- },
2919
- children: `加载更早的 ${String(earlierRounds)} 轮(上面还有 ${String(firstVisible)} 轮)`
2920
- }
2921
- ) : null,
2922
- seats.leading.map((row) => /* @__PURE__ */ jsxRuntime.jsx(RowBoundary, { entry: row.entry, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "entry-row", children: /* @__PURE__ */ jsxRuntime.jsx(RowBody, { row, renderSlot }) }) }, keyOf(row, sessionKey))),
2923
- visibleSeats.map((seat) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "turn-seat", "data-round-seat": seat.round, children: /* @__PURE__ */ jsxRuntime.jsx(
2924
- SeatBody,
2925
- {
2926
- seat,
2927
- round: rounds[seat.round],
2928
- running: turnState !== "idle" && seat.round === rounds.length - 1,
2929
- sessionId,
2930
- sessionKey,
2931
- cwd,
2932
- roundFolds,
2933
- foldMemory,
2934
- stepGrouping,
2935
- renderSlot,
2936
- onFork: sessionPath === null || seat.round === 0 ? void 0 : () => forkRound(seat)
2937
- }
2938
- ) }, seat.round)),
2939
- compactingSince !== null ? /* @__PURE__ */ jsxRuntime.jsx(TurnStatusLine, { text: "正在压缩上下文" }) : null,
2940
- activity !== null && compactingSince === null && !(activity.covered && stepGrouping.groups.length > 0) ? /* @__PURE__ */ jsxRuntime.jsx(TurnStatusLine, { text: activity.text }) : null,
2941
- /* @__PURE__ */ jsxRuntime.jsx("div", { ref: follow.setEnd }),
2942
- follow.paused ? /* @__PURE__ */ jsxRuntime.jsx(
2943
- "button",
2944
- {
2945
- type: "button",
2946
- className: "chat-to-bottom",
2947
- title: "回到最新一条(自动跟随会重新打开)",
2948
- onClick: follow.resume,
2949
- children: "回到底部"
2950
- }
2951
- ) : null
2952
- ] }) }) }) });
2953
- }
2954
- function readFoldValue(value) {
2955
- return value === "compact" || value === "detailed" || value === "verbose" ? value : "standard";
2956
- }
2957
- function readSessionId(snapshot) {
2958
- const status = snapshot?.["status"];
2959
- if (typeof status !== "object" || status === null) return null;
2960
- const value = status["sessionId"];
2961
- return typeof value === "string" && value !== "" ? value : null;
2962
- }
2963
- exports.SUBAGENT_FLOW_SLOT = SUBAGENT_FLOW_SLOT;
2964
- exports.TOOLVIEW_SLOT = TOOLVIEW_SLOT;
2965
- exports.default = ui;
2966
- };