fss-link 1.2.4 → 1.2.6

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 (996) hide show
  1. package/dist/.last_build +0 -0
  2. package/dist/index.d.ts +7 -0
  3. package/dist/index.js +14 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/package.json +89 -0
  6. package/dist/src/commands/mcp/add.d.ts +7 -0
  7. package/dist/src/commands/mcp/add.js +166 -0
  8. package/dist/src/commands/mcp/add.js.map +1 -0
  9. package/dist/src/commands/mcp/list.d.ts +8 -0
  10. package/dist/src/commands/mcp/list.js +110 -0
  11. package/dist/src/commands/mcp/list.js.map +1 -0
  12. package/dist/src/commands/mcp/remove.d.ts +7 -0
  13. package/dist/src/commands/mcp/remove.js +44 -0
  14. package/dist/src/commands/mcp/remove.js.map +1 -0
  15. package/dist/src/commands/mcp.d.ts +7 -0
  16. package/dist/src/commands/mcp.js +23 -0
  17. package/dist/src/commands/mcp.js.map +1 -0
  18. package/dist/src/config/archive-repository-pattern/README.md +26 -0
  19. package/dist/src/config/archive-repository-pattern/base-repository.d.ts +252 -0
  20. package/dist/src/config/archive-repository-pattern/base-repository.js +280 -0
  21. package/dist/src/config/archive-repository-pattern/base-repository.js.map +1 -0
  22. package/dist/src/config/archive-repository-pattern/model-repository.d.ts +274 -0
  23. package/dist/src/config/archive-repository-pattern/model-repository.js +482 -0
  24. package/dist/src/config/archive-repository-pattern/model-repository.js.map +1 -0
  25. package/dist/src/config/archive-repository-pattern/preferences-repository.d.ts +307 -0
  26. package/dist/src/config/archive-repository-pattern/preferences-repository.js +604 -0
  27. package/dist/src/config/archive-repository-pattern/preferences-repository.js.map +1 -0
  28. package/dist/src/config/archive-repository-pattern/repository-types.d.ts +166 -0
  29. package/dist/src/config/archive-repository-pattern/repository-types.js +67 -0
  30. package/dist/src/config/archive-repository-pattern/repository-types.js.map +1 -0
  31. package/dist/src/config/archive-repository-pattern/settings-repository.d.ts +274 -0
  32. package/dist/src/config/archive-repository-pattern/settings-repository.js +531 -0
  33. package/dist/src/config/archive-repository-pattern/settings-repository.js.map +1 -0
  34. package/dist/src/config/async-mutex.d.ts +61 -0
  35. package/dist/src/config/async-mutex.js +121 -0
  36. package/dist/src/config/async-mutex.js.map +1 -0
  37. package/dist/src/config/async-mutex.test.d.ts +6 -0
  38. package/dist/src/config/async-mutex.test.js +271 -0
  39. package/dist/src/config/async-mutex.test.js.map +1 -0
  40. package/dist/src/config/auth-stress-simplified.test.d.ts +6 -0
  41. package/dist/src/config/auth-stress-simplified.test.js +329 -0
  42. package/dist/src/config/auth-stress-simplified.test.js.map +1 -0
  43. package/dist/src/config/auth-stress.test.d.ts +9 -0
  44. package/dist/src/config/auth-stress.test.js +544 -0
  45. package/dist/src/config/auth-stress.test.js.map +1 -0
  46. package/dist/src/config/auth.d.ts +96 -0
  47. package/dist/src/config/auth.js +371 -0
  48. package/dist/src/config/auth.js.map +1 -0
  49. package/dist/src/config/auth.test.d.ts +6 -0
  50. package/dist/src/config/auth.test.js +61 -0
  51. package/dist/src/config/auth.test.js.map +1 -0
  52. package/dist/src/config/base-repository.d.ts +252 -0
  53. package/dist/src/config/base-repository.js +272 -0
  54. package/dist/src/config/base-repository.js.map +1 -0
  55. package/dist/src/config/config.d.ts +51 -0
  56. package/dist/src/config/config.js +553 -0
  57. package/dist/src/config/config.js.map +1 -0
  58. package/dist/src/config/core-database.d.ts +112 -0
  59. package/dist/src/config/core-database.js +370 -0
  60. package/dist/src/config/core-database.js.map +1 -0
  61. package/dist/src/config/database-integration.test.d.ts +6 -0
  62. package/dist/src/config/database-integration.test.js +547 -0
  63. package/dist/src/config/database-integration.test.js.map +1 -0
  64. package/dist/src/config/database-legacy-wrapper.d.ts +202 -0
  65. package/dist/src/config/database-legacy-wrapper.js +391 -0
  66. package/dist/src/config/database-legacy-wrapper.js.map +1 -0
  67. package/dist/src/config/database-monitor.d.ts +135 -0
  68. package/dist/src/config/database-monitor.js +306 -0
  69. package/dist/src/config/database-monitor.js.map +1 -0
  70. package/dist/src/config/database-queue.d.ts +106 -0
  71. package/dist/src/config/database-queue.js +187 -0
  72. package/dist/src/config/database-queue.js.map +1 -0
  73. package/dist/src/config/database-queue.test.d.ts +6 -0
  74. package/dist/src/config/database-queue.test.js +344 -0
  75. package/dist/src/config/database-queue.test.js.map +1 -0
  76. package/dist/src/config/database-regression-simple.test.d.ts +6 -0
  77. package/dist/src/config/database-regression-simple.test.js +335 -0
  78. package/dist/src/config/database-regression-simple.test.js.map +1 -0
  79. package/dist/src/config/database-regression.test.d.ts +6 -0
  80. package/dist/src/config/database-regression.test.js +523 -0
  81. package/dist/src/config/database-regression.test.js.map +1 -0
  82. package/dist/src/config/database-stress.test.d.ts +6 -0
  83. package/dist/src/config/database-stress.test.js +522 -0
  84. package/dist/src/config/database-stress.test.js.map +1 -0
  85. package/dist/src/config/database-utils.d.ts +281 -0
  86. package/dist/src/config/database-utils.js +664 -0
  87. package/dist/src/config/database-utils.js.map +1 -0
  88. package/dist/src/config/database-utils.test.d.ts +6 -0
  89. package/dist/src/config/database-utils.test.js +278 -0
  90. package/dist/src/config/database-utils.test.js.map +1 -0
  91. package/dist/src/config/database.d.ts +212 -0
  92. package/dist/src/config/database.js +458 -0
  93. package/dist/src/config/database.js.map +1 -0
  94. package/dist/src/config/databaseBackup.d.ts +114 -0
  95. package/dist/src/config/databaseBackup.js +334 -0
  96. package/dist/src/config/databaseBackup.js.map +1 -0
  97. package/dist/src/config/databaseHealthMonitor.d.ts +86 -0
  98. package/dist/src/config/databaseHealthMonitor.js +180 -0
  99. package/dist/src/config/databaseHealthMonitor.js.map +1 -0
  100. package/dist/src/config/databaseMetrics.d.ts +147 -0
  101. package/dist/src/config/databaseMetrics.js +369 -0
  102. package/dist/src/config/databaseMetrics.js.map +1 -0
  103. package/dist/src/config/databaseMigrations.d.ts +75 -0
  104. package/dist/src/config/databaseMigrations.js +405 -0
  105. package/dist/src/config/databaseMigrations.js.map +1 -0
  106. package/dist/src/config/databasePool.d.ts +72 -0
  107. package/dist/src/config/databasePool.js +226 -0
  108. package/dist/src/config/databasePool.js.map +1 -0
  109. package/dist/src/config/databaseSchemaValidator.d.ts +114 -0
  110. package/dist/src/config/databaseSchemaValidator.js +497 -0
  111. package/dist/src/config/databaseSchemaValidator.js.map +1 -0
  112. package/dist/src/config/extension.d.ts +23 -0
  113. package/dist/src/config/extension.js +126 -0
  114. package/dist/src/config/extension.js.map +1 -0
  115. package/dist/src/config/health-database.d.ts +172 -0
  116. package/dist/src/config/health-database.js +283 -0
  117. package/dist/src/config/health-database.js.map +1 -0
  118. package/dist/src/config/keyBindings.d.ts +66 -0
  119. package/dist/src/config/keyBindings.js +141 -0
  120. package/dist/src/config/keyBindings.js.map +1 -0
  121. package/dist/src/config/keyBindings.test.d.ts +6 -0
  122. package/dist/src/config/keyBindings.test.js +51 -0
  123. package/dist/src/config/keyBindings.test.js.map +1 -0
  124. package/dist/src/config/model-database.d.ts +157 -0
  125. package/dist/src/config/model-database.js +379 -0
  126. package/dist/src/config/model-database.js.map +1 -0
  127. package/dist/src/config/model-repository.d.ts +274 -0
  128. package/dist/src/config/model-repository.js +482 -0
  129. package/dist/src/config/model-repository.js.map +1 -0
  130. package/dist/src/config/modelManager.d.ts +146 -0
  131. package/dist/src/config/modelManager.js +573 -0
  132. package/dist/src/config/modelManager.js.map +1 -0
  133. package/dist/src/config/preferences-database.d.ts +101 -0
  134. package/dist/src/config/preferences-database.js +209 -0
  135. package/dist/src/config/preferences-database.js.map +1 -0
  136. package/dist/src/config/preferences-repository.d.ts +307 -0
  137. package/dist/src/config/preferences-repository.js +604 -0
  138. package/dist/src/config/preferences-repository.js.map +1 -0
  139. package/dist/src/config/provider-database.d.ts +102 -0
  140. package/dist/src/config/provider-database.js +250 -0
  141. package/dist/src/config/provider-database.js.map +1 -0
  142. package/dist/src/config/providerPersistence.d.ts +82 -0
  143. package/dist/src/config/providerPersistence.js +62 -0
  144. package/dist/src/config/providerPersistence.js.map +1 -0
  145. package/dist/src/config/queryOptimizer.d.ts +127 -0
  146. package/dist/src/config/queryOptimizer.js +330 -0
  147. package/dist/src/config/queryOptimizer.js.map +1 -0
  148. package/dist/src/config/repository-types.d.ts +166 -0
  149. package/dist/src/config/repository-types.js +67 -0
  150. package/dist/src/config/repository-types.js.map +1 -0
  151. package/dist/src/config/sandboxConfig.d.ts +13 -0
  152. package/dist/src/config/sandboxConfig.js +75 -0
  153. package/dist/src/config/sandboxConfig.js.map +1 -0
  154. package/dist/src/config/settings-repository.d.ts +274 -0
  155. package/dist/src/config/settings-repository.js +531 -0
  156. package/dist/src/config/settings-repository.js.map +1 -0
  157. package/dist/src/config/settings.d.ts +56 -0
  158. package/dist/src/config/settings.js +411 -0
  159. package/dist/src/config/settings.js.map +1 -0
  160. package/dist/src/config/settingsSchema.d.ts +703 -0
  161. package/dist/src/config/settingsSchema.js +679 -0
  162. package/dist/src/config/settingsSchema.js.map +1 -0
  163. package/dist/src/config/settingsSchema.test.d.ts +6 -0
  164. package/dist/src/config/settingsSchema.test.js +195 -0
  165. package/dist/src/config/settingsSchema.test.js.map +1 -0
  166. package/dist/src/config/trustedFolders.d.ts +37 -0
  167. package/dist/src/config/trustedFolders.js +118 -0
  168. package/dist/src/config/trustedFolders.js.map +1 -0
  169. package/dist/src/config/trustedFolders.test.d.ts +6 -0
  170. package/dist/src/config/trustedFolders.test.js +160 -0
  171. package/dist/src/config/trustedFolders.test.js.map +1 -0
  172. package/dist/src/config/unified-database.d.ts +383 -0
  173. package/dist/src/config/unified-database.js +651 -0
  174. package/dist/src/config/unified-database.js.map +1 -0
  175. package/dist/src/config/unified-database.test.d.ts +6 -0
  176. package/dist/src/config/unified-database.test.js +162 -0
  177. package/dist/src/config/unified-database.test.js.map +1 -0
  178. package/dist/src/gemini.d.ts +9 -0
  179. package/dist/src/gemini.js +334 -0
  180. package/dist/src/gemini.js.map +1 -0
  181. package/dist/src/gemini.test.d.ts +6 -0
  182. package/dist/src/gemini.test.js +193 -0
  183. package/dist/src/gemini.test.js.map +1 -0
  184. package/dist/src/generated/git-commit.d.ts +7 -0
  185. package/dist/src/generated/git-commit.js +10 -0
  186. package/dist/src/generated/git-commit.js.map +1 -0
  187. package/dist/src/nonInteractiveCli.d.ts +7 -0
  188. package/dist/src/nonInteractiveCli.js +103 -0
  189. package/dist/src/nonInteractiveCli.js.map +1 -0
  190. package/dist/src/patches/is-in-ci.d.ts +7 -0
  191. package/dist/src/patches/is-in-ci.js +15 -0
  192. package/dist/src/patches/is-in-ci.js.map +1 -0
  193. package/dist/src/services/BuiltinCommandLoader.d.ts +24 -0
  194. package/dist/src/services/BuiltinCommandLoader.js +92 -0
  195. package/dist/src/services/BuiltinCommandLoader.js.map +1 -0
  196. package/dist/src/services/BuiltinCommandLoader.test.d.ts +6 -0
  197. package/dist/src/services/BuiltinCommandLoader.test.js +108 -0
  198. package/dist/src/services/BuiltinCommandLoader.test.js.map +1 -0
  199. package/dist/src/services/CommandService.d.ts +55 -0
  200. package/dist/src/services/CommandService.js +90 -0
  201. package/dist/src/services/CommandService.js.map +1 -0
  202. package/dist/src/services/CommandService.test.d.ts +6 -0
  203. package/dist/src/services/CommandService.test.js +232 -0
  204. package/dist/src/services/CommandService.test.js.map +1 -0
  205. package/dist/src/services/FileCommandLoader.d.ts +49 -0
  206. package/dist/src/services/FileCommandLoader.js +210 -0
  207. package/dist/src/services/FileCommandLoader.js.map +1 -0
  208. package/dist/src/services/McpPromptLoader.d.ts +25 -0
  209. package/dist/src/services/McpPromptLoader.js +192 -0
  210. package/dist/src/services/McpPromptLoader.js.map +1 -0
  211. package/dist/src/services/SearchEngineConfigProvider.d.ts +33 -0
  212. package/dist/src/services/SearchEngineConfigProvider.js +82 -0
  213. package/dist/src/services/SearchEngineConfigProvider.js.map +1 -0
  214. package/dist/src/services/prompt-processors/argumentProcessor.d.ts +16 -0
  215. package/dist/src/services/prompt-processors/argumentProcessor.js +20 -0
  216. package/dist/src/services/prompt-processors/argumentProcessor.js.map +1 -0
  217. package/dist/src/services/prompt-processors/shellProcessor.d.ts +35 -0
  218. package/dist/src/services/prompt-processors/shellProcessor.js +162 -0
  219. package/dist/src/services/prompt-processors/shellProcessor.js.map +1 -0
  220. package/dist/src/services/prompt-processors/types.d.ts +40 -0
  221. package/dist/src/services/prompt-processors/types.js +16 -0
  222. package/dist/src/services/prompt-processors/types.js.map +1 -0
  223. package/dist/src/services/types.d.ts +22 -0
  224. package/dist/src/services/types.js +7 -0
  225. package/dist/src/services/types.js.map +1 -0
  226. package/dist/src/test-utils/customMatchers.d.ts +14 -0
  227. package/dist/src/test-utils/customMatchers.js +46 -0
  228. package/dist/src/test-utils/customMatchers.js.map +1 -0
  229. package/dist/src/test-utils/mockCommandContext.d.ts +18 -0
  230. package/dist/src/test-utils/mockCommandContext.js +87 -0
  231. package/dist/src/test-utils/mockCommandContext.js.map +1 -0
  232. package/dist/src/test-utils/mockCommandContext.test.d.ts +6 -0
  233. package/dist/src/test-utils/mockCommandContext.test.js +51 -0
  234. package/dist/src/test-utils/mockCommandContext.test.js.map +1 -0
  235. package/dist/src/test-utils/render.d.ts +8 -0
  236. package/dist/src/test-utils/render.js +10 -0
  237. package/dist/src/test-utils/render.js.map +1 -0
  238. package/dist/src/ui/App.d.ts +15 -0
  239. package/dist/src/ui/App.js +687 -0
  240. package/dist/src/ui/App.js.map +1 -0
  241. package/dist/src/ui/IdeIntegrationNudge.d.ts +16 -0
  242. package/dist/src/ui/IdeIntegrationNudge.js +52 -0
  243. package/dist/src/ui/IdeIntegrationNudge.js.map +1 -0
  244. package/dist/src/ui/colors.d.ts +7 -0
  245. package/dist/src/ui/colors.js +54 -0
  246. package/dist/src/ui/colors.js.map +1 -0
  247. package/dist/src/ui/commands/aboutCommand.d.ts +7 -0
  248. package/dist/src/ui/commands/aboutCommand.js +43 -0
  249. package/dist/src/ui/commands/aboutCommand.js.map +1 -0
  250. package/dist/src/ui/commands/authCommand.d.ts +7 -0
  251. package/dist/src/ui/commands/authCommand.js +16 -0
  252. package/dist/src/ui/commands/authCommand.js.map +1 -0
  253. package/dist/src/ui/commands/bugCommand.d.ts +7 -0
  254. package/dist/src/ui/commands/bugCommand.js +71 -0
  255. package/dist/src/ui/commands/bugCommand.js.map +1 -0
  256. package/dist/src/ui/commands/chatCommand.d.ts +7 -0
  257. package/dist/src/ui/commands/chatCommand.js +234 -0
  258. package/dist/src/ui/commands/chatCommand.js.map +1 -0
  259. package/dist/src/ui/commands/clearCommand.d.ts +7 -0
  260. package/dist/src/ui/commands/clearCommand.js +27 -0
  261. package/dist/src/ui/commands/clearCommand.js.map +1 -0
  262. package/dist/src/ui/commands/compressCommand.d.ts +7 -0
  263. package/dist/src/ui/commands/compressCommand.js +64 -0
  264. package/dist/src/ui/commands/compressCommand.js.map +1 -0
  265. package/dist/src/ui/commands/contextCommand.d.ts +7 -0
  266. package/dist/src/ui/commands/contextCommand.js +115 -0
  267. package/dist/src/ui/commands/contextCommand.js.map +1 -0
  268. package/dist/src/ui/commands/copyCommand.d.ts +7 -0
  269. package/dist/src/ui/commands/copyCommand.js +59 -0
  270. package/dist/src/ui/commands/copyCommand.js.map +1 -0
  271. package/dist/src/ui/commands/corgiCommand.d.ts +7 -0
  272. package/dist/src/ui/commands/corgiCommand.js +15 -0
  273. package/dist/src/ui/commands/corgiCommand.js.map +1 -0
  274. package/dist/src/ui/commands/directoryCommand.d.ts +8 -0
  275. package/dist/src/ui/commands/directoryCommand.js +133 -0
  276. package/dist/src/ui/commands/directoryCommand.js.map +1 -0
  277. package/dist/src/ui/commands/docsCommand.d.ts +7 -0
  278. package/dist/src/ui/commands/docsCommand.js +31 -0
  279. package/dist/src/ui/commands/docsCommand.js.map +1 -0
  280. package/dist/src/ui/commands/editorCommand.d.ts +7 -0
  281. package/dist/src/ui/commands/editorCommand.js +16 -0
  282. package/dist/src/ui/commands/editorCommand.js.map +1 -0
  283. package/dist/src/ui/commands/extensionsCommand.d.ts +7 -0
  284. package/dist/src/ui/commands/extensionsCommand.js +31 -0
  285. package/dist/src/ui/commands/extensionsCommand.js.map +1 -0
  286. package/dist/src/ui/commands/helpCommand.d.ts +7 -0
  287. package/dist/src/ui/commands/helpCommand.js +21 -0
  288. package/dist/src/ui/commands/helpCommand.js.map +1 -0
  289. package/dist/src/ui/commands/ideCommand.d.ts +8 -0
  290. package/dist/src/ui/commands/ideCommand.js +218 -0
  291. package/dist/src/ui/commands/ideCommand.js.map +1 -0
  292. package/dist/src/ui/commands/initCommand.d.ts +7 -0
  293. package/dist/src/ui/commands/initCommand.js +105 -0
  294. package/dist/src/ui/commands/initCommand.js.map +1 -0
  295. package/dist/src/ui/commands/mcpCommand.d.ts +7 -0
  296. package/dist/src/ui/commands/mcpCommand.js +424 -0
  297. package/dist/src/ui/commands/mcpCommand.js.map +1 -0
  298. package/dist/src/ui/commands/memoryCommand.d.ts +7 -0
  299. package/dist/src/ui/commands/memoryCommand.js +224 -0
  300. package/dist/src/ui/commands/memoryCommand.js.map +1 -0
  301. package/dist/src/ui/commands/privacyCommand.d.ts +7 -0
  302. package/dist/src/ui/commands/privacyCommand.js +16 -0
  303. package/dist/src/ui/commands/privacyCommand.js.map +1 -0
  304. package/dist/src/ui/commands/quitCommand.d.ts +7 -0
  305. package/dist/src/ui/commands/quitCommand.js +34 -0
  306. package/dist/src/ui/commands/quitCommand.js.map +1 -0
  307. package/dist/src/ui/commands/restoreCommand.d.ts +8 -0
  308. package/dist/src/ui/commands/restoreCommand.js +128 -0
  309. package/dist/src/ui/commands/restoreCommand.js.map +1 -0
  310. package/dist/src/ui/commands/searchEngineSetupCommand.d.ts +7 -0
  311. package/dist/src/ui/commands/searchEngineSetupCommand.js +17 -0
  312. package/dist/src/ui/commands/searchEngineSetupCommand.js.map +1 -0
  313. package/dist/src/ui/commands/settingsCommand.d.ts +7 -0
  314. package/dist/src/ui/commands/settingsCommand.js +16 -0
  315. package/dist/src/ui/commands/settingsCommand.js.map +1 -0
  316. package/dist/src/ui/commands/setupGithubCommand.d.ts +9 -0
  317. package/dist/src/ui/commands/setupGithubCommand.js +154 -0
  318. package/dist/src/ui/commands/setupGithubCommand.js.map +1 -0
  319. package/dist/src/ui/commands/setupGithubCommand.test.d.ts +6 -0
  320. package/dist/src/ui/commands/setupGithubCommand.test.js +167 -0
  321. package/dist/src/ui/commands/setupGithubCommand.test.js.map +1 -0
  322. package/dist/src/ui/commands/speakCommand.d.ts +7 -0
  323. package/dist/src/ui/commands/speakCommand.js +136 -0
  324. package/dist/src/ui/commands/speakCommand.js.map +1 -0
  325. package/dist/src/ui/commands/statsCommand.d.ts +7 -0
  326. package/dist/src/ui/commands/statsCommand.js +54 -0
  327. package/dist/src/ui/commands/statsCommand.js.map +1 -0
  328. package/dist/src/ui/commands/terminalSetupCommand.d.ts +13 -0
  329. package/dist/src/ui/commands/terminalSetupCommand.js +41 -0
  330. package/dist/src/ui/commands/terminalSetupCommand.js.map +1 -0
  331. package/dist/src/ui/commands/themeCommand.d.ts +7 -0
  332. package/dist/src/ui/commands/themeCommand.js +16 -0
  333. package/dist/src/ui/commands/themeCommand.js.map +1 -0
  334. package/dist/src/ui/commands/toolsCommand.d.ts +7 -0
  335. package/dist/src/ui/commands/toolsCommand.js +56 -0
  336. package/dist/src/ui/commands/toolsCommand.js.map +1 -0
  337. package/dist/src/ui/commands/ttsCommand.d.ts +7 -0
  338. package/dist/src/ui/commands/ttsCommand.js +122 -0
  339. package/dist/src/ui/commands/ttsCommand.js.map +1 -0
  340. package/dist/src/ui/commands/types.d.ts +157 -0
  341. package/dist/src/ui/commands/types.js +12 -0
  342. package/dist/src/ui/commands/types.js.map +1 -0
  343. package/dist/src/ui/commands/vimCommand.d.ts +7 -0
  344. package/dist/src/ui/commands/vimCommand.js +23 -0
  345. package/dist/src/ui/commands/vimCommand.js.map +1 -0
  346. package/dist/src/ui/commands/voiceCommand.d.ts +7 -0
  347. package/dist/src/ui/commands/voiceCommand.js +95 -0
  348. package/dist/src/ui/commands/voiceCommand.js.map +1 -0
  349. package/dist/src/ui/components/AboutBox.d.ts +17 -0
  350. package/dist/src/ui/components/AboutBox.js +6 -0
  351. package/dist/src/ui/components/AboutBox.js.map +1 -0
  352. package/dist/src/ui/components/AsciiArt.d.ts +8 -0
  353. package/dist/src/ui/components/AsciiArt.js +53 -0
  354. package/dist/src/ui/components/AsciiArt.js.map +1 -0
  355. package/dist/src/ui/components/AuthDialog.d.ts +15 -0
  356. package/dist/src/ui/components/AuthDialog.js +174 -0
  357. package/dist/src/ui/components/AuthDialog.js.map +1 -0
  358. package/dist/src/ui/components/AuthDialog.test.d.ts +6 -0
  359. package/dist/src/ui/components/AuthDialog.test.js +220 -0
  360. package/dist/src/ui/components/AuthDialog.test.js.map +1 -0
  361. package/dist/src/ui/components/AuthInProgress.d.ts +11 -0
  362. package/dist/src/ui/components/AuthInProgress.js +28 -0
  363. package/dist/src/ui/components/AuthInProgress.js.map +1 -0
  364. package/dist/src/ui/components/AutoAcceptIndicator.d.ts +12 -0
  365. package/dist/src/ui/components/AutoAcceptIndicator.js +26 -0
  366. package/dist/src/ui/components/AutoAcceptIndicator.js.map +1 -0
  367. package/dist/src/ui/components/ConsoleSummaryDisplay.d.ts +11 -0
  368. package/dist/src/ui/components/ConsoleSummaryDisplay.js +11 -0
  369. package/dist/src/ui/components/ConsoleSummaryDisplay.js.map +1 -0
  370. package/dist/src/ui/components/ContextSummaryDisplay.d.ts +20 -0
  371. package/dist/src/ui/components/ContextSummaryDisplay.js +65 -0
  372. package/dist/src/ui/components/ContextSummaryDisplay.js.map +1 -0
  373. package/dist/src/ui/components/ContextUsageDisplay.d.ts +11 -0
  374. package/dist/src/ui/components/ContextUsageDisplay.js +100 -0
  375. package/dist/src/ui/components/ContextUsageDisplay.js.map +1 -0
  376. package/dist/src/ui/components/DebugProfiler.d.ts +6 -0
  377. package/dist/src/ui/components/DebugProfiler.js +27 -0
  378. package/dist/src/ui/components/DebugProfiler.js.map +1 -0
  379. package/dist/src/ui/components/DetailedMessagesDisplay.d.ts +14 -0
  380. package/dist/src/ui/components/DetailedMessagesDisplay.js +34 -0
  381. package/dist/src/ui/components/DetailedMessagesDisplay.js.map +1 -0
  382. package/dist/src/ui/components/EditorSettingsDialog.d.ts +15 -0
  383. package/dist/src/ui/components/EditorSettingsDialog.js +74 -0
  384. package/dist/src/ui/components/EditorSettingsDialog.js.map +1 -0
  385. package/dist/src/ui/components/FolderTrustDialog.d.ts +16 -0
  386. package/dist/src/ui/components/FolderTrustDialog.js +39 -0
  387. package/dist/src/ui/components/FolderTrustDialog.js.map +1 -0
  388. package/dist/src/ui/components/FolderTrustDialog.test.d.ts +6 -0
  389. package/dist/src/ui/components/FolderTrustDialog.test.js +26 -0
  390. package/dist/src/ui/components/FolderTrustDialog.test.js.map +1 -0
  391. package/dist/src/ui/components/Footer.d.ts +24 -0
  392. package/dist/src/ui/components/Footer.js +25 -0
  393. package/dist/src/ui/components/Footer.js.map +1 -0
  394. package/dist/src/ui/components/GeminiRespondingSpinner.d.ts +17 -0
  395. package/dist/src/ui/components/GeminiRespondingSpinner.js +16 -0
  396. package/dist/src/ui/components/GeminiRespondingSpinner.js.map +1 -0
  397. package/dist/src/ui/components/Header.d.ts +13 -0
  398. package/dist/src/ui/components/Header.js +28 -0
  399. package/dist/src/ui/components/Header.js.map +1 -0
  400. package/dist/src/ui/components/Header.test.d.ts +6 -0
  401. package/dist/src/ui/components/Header.test.js +37 -0
  402. package/dist/src/ui/components/Header.test.js.map +1 -0
  403. package/dist/src/ui/components/Help.d.ts +12 -0
  404. package/dist/src/ui/components/Help.js +10 -0
  405. package/dist/src/ui/components/Help.js.map +1 -0
  406. package/dist/src/ui/components/HistoryItemDisplay.d.ts +20 -0
  407. package/dist/src/ui/components/HistoryItemDisplay.js +18 -0
  408. package/dist/src/ui/components/HistoryItemDisplay.js.map +1 -0
  409. package/dist/src/ui/components/HistoryItemDisplay.test.d.ts +6 -0
  410. package/dist/src/ui/components/HistoryItemDisplay.test.js +91 -0
  411. package/dist/src/ui/components/HistoryItemDisplay.test.js.map +1 -0
  412. package/dist/src/ui/components/InputPrompt.d.ts +28 -0
  413. package/dist/src/ui/components/InputPrompt.js +440 -0
  414. package/dist/src/ui/components/InputPrompt.js.map +1 -0
  415. package/dist/src/ui/components/LMStudioModelPrompt.d.ts +12 -0
  416. package/dist/src/ui/components/LMStudioModelPrompt.js +100 -0
  417. package/dist/src/ui/components/LMStudioModelPrompt.js.map +1 -0
  418. package/dist/src/ui/components/LoadingIndicator.d.ts +15 -0
  419. package/dist/src/ui/components/LoadingIndicator.js +25 -0
  420. package/dist/src/ui/components/LoadingIndicator.js.map +1 -0
  421. package/dist/src/ui/components/LoadingIndicator.test.d.ts +6 -0
  422. package/dist/src/ui/components/LoadingIndicator.test.js +190 -0
  423. package/dist/src/ui/components/LoadingIndicator.test.js.map +1 -0
  424. package/dist/src/ui/components/MemoryUsageDisplay.d.ts +7 -0
  425. package/dist/src/ui/components/MemoryUsageDisplay.js +27 -0
  426. package/dist/src/ui/components/MemoryUsageDisplay.js.map +1 -0
  427. package/dist/src/ui/components/ModelStatsDisplay.d.ts +7 -0
  428. package/dist/src/ui/components/ModelStatsDisplay.js +33 -0
  429. package/dist/src/ui/components/ModelStatsDisplay.js.map +1 -0
  430. package/dist/src/ui/components/OllamaModelPrompt.d.ts +12 -0
  431. package/dist/src/ui/components/OllamaModelPrompt.js +94 -0
  432. package/dist/src/ui/components/OllamaModelPrompt.js.map +1 -0
  433. package/dist/src/ui/components/OpenAIEndpointDialog.d.ts +18 -0
  434. package/dist/src/ui/components/OpenAIEndpointDialog.js +77 -0
  435. package/dist/src/ui/components/OpenAIEndpointDialog.js.map +1 -0
  436. package/dist/src/ui/components/OpenAIKeyPrompt.d.ts +13 -0
  437. package/dist/src/ui/components/OpenAIKeyPrompt.js +118 -0
  438. package/dist/src/ui/components/OpenAIKeyPrompt.js.map +1 -0
  439. package/dist/src/ui/components/OpenAIKeyPrompt.test.d.ts +6 -0
  440. package/dist/src/ui/components/OpenAIKeyPrompt.test.js +44 -0
  441. package/dist/src/ui/components/OpenAIKeyPrompt.test.js.map +1 -0
  442. package/dist/src/ui/components/PrepareLabel.d.ts +15 -0
  443. package/dist/src/ui/components/PrepareLabel.js +16 -0
  444. package/dist/src/ui/components/PrepareLabel.js.map +1 -0
  445. package/dist/src/ui/components/SearchEngineConfigDialog.d.ts +18 -0
  446. package/dist/src/ui/components/SearchEngineConfigDialog.js +180 -0
  447. package/dist/src/ui/components/SearchEngineConfigDialog.js.map +1 -0
  448. package/dist/src/ui/components/SessionSummaryDisplay.d.ts +11 -0
  449. package/dist/src/ui/components/SessionSummaryDisplay.js +4 -0
  450. package/dist/src/ui/components/SessionSummaryDisplay.js.map +1 -0
  451. package/dist/src/ui/components/SettingsDialog.d.ts +14 -0
  452. package/dist/src/ui/components/SettingsDialog.js +519 -0
  453. package/dist/src/ui/components/SettingsDialog.js.map +1 -0
  454. package/dist/src/ui/components/SettingsDialog.test.d.ts +6 -0
  455. package/dist/src/ui/components/SettingsDialog.test.js +568 -0
  456. package/dist/src/ui/components/SettingsDialog.test.js.map +1 -0
  457. package/dist/src/ui/components/ShellConfirmationDialog.d.ts +15 -0
  458. package/dist/src/ui/components/ShellConfirmationDialog.js +46 -0
  459. package/dist/src/ui/components/ShellConfirmationDialog.js.map +1 -0
  460. package/dist/src/ui/components/ShellConfirmationDialog.test.d.ts +6 -0
  461. package/dist/src/ui/components/ShellConfirmationDialog.test.js +40 -0
  462. package/dist/src/ui/components/ShellConfirmationDialog.test.js.map +1 -0
  463. package/dist/src/ui/components/ShellModeIndicator.d.ts +7 -0
  464. package/dist/src/ui/components/ShellModeIndicator.js +5 -0
  465. package/dist/src/ui/components/ShellModeIndicator.js.map +1 -0
  466. package/dist/src/ui/components/ShowMoreLines.d.ts +10 -0
  467. package/dist/src/ui/components/ShowMoreLines.js +24 -0
  468. package/dist/src/ui/components/ShowMoreLines.js.map +1 -0
  469. package/dist/src/ui/components/StatsDisplay.d.ts +12 -0
  470. package/dist/src/ui/components/StatsDisplay.js +43 -0
  471. package/dist/src/ui/components/StatsDisplay.js.map +1 -0
  472. package/dist/src/ui/components/SuggestionsDisplay.d.ts +22 -0
  473. package/dist/src/ui/components/SuggestionsDisplay.js +32 -0
  474. package/dist/src/ui/components/SuggestionsDisplay.js.map +1 -0
  475. package/dist/src/ui/components/ThemeDialog.d.ts +19 -0
  476. package/dist/src/ui/components/ThemeDialog.js +143 -0
  477. package/dist/src/ui/components/ThemeDialog.js.map +1 -0
  478. package/dist/src/ui/components/Tips.d.ts +12 -0
  479. package/dist/src/ui/components/Tips.js +8 -0
  480. package/dist/src/ui/components/Tips.js.map +1 -0
  481. package/dist/src/ui/components/TodoDisplay.d.ts +16 -0
  482. package/dist/src/ui/components/TodoDisplay.js +27 -0
  483. package/dist/src/ui/components/TodoDisplay.js.map +1 -0
  484. package/dist/src/ui/components/TodoDisplay.test.d.ts +6 -0
  485. package/dist/src/ui/components/TodoDisplay.test.js +77 -0
  486. package/dist/src/ui/components/TodoDisplay.test.js.map +1 -0
  487. package/dist/src/ui/components/ToolStatsDisplay.d.ts +7 -0
  488. package/dist/src/ui/components/ToolStatsDisplay.js +41 -0
  489. package/dist/src/ui/components/ToolStatsDisplay.js.map +1 -0
  490. package/dist/src/ui/components/UpdateNotification.d.ts +10 -0
  491. package/dist/src/ui/components/UpdateNotification.js +10 -0
  492. package/dist/src/ui/components/UpdateNotification.js.map +1 -0
  493. package/dist/src/ui/components/WelcomeBackDialog.d.ts +36 -0
  494. package/dist/src/ui/components/WelcomeBackDialog.js +109 -0
  495. package/dist/src/ui/components/WelcomeBackDialog.js.map +1 -0
  496. package/dist/src/ui/components/messages/CompressionMessage.d.ts +11 -0
  497. package/dist/src/ui/components/messages/CompressionMessage.js +16 -0
  498. package/dist/src/ui/components/messages/CompressionMessage.js.map +1 -0
  499. package/dist/src/ui/components/messages/DiffRenderer.d.ts +16 -0
  500. package/dist/src/ui/components/messages/DiffRenderer.js +222 -0
  501. package/dist/src/ui/components/messages/DiffRenderer.js.map +1 -0
  502. package/dist/src/ui/components/messages/DiffRenderer.test.d.ts +6 -0
  503. package/dist/src/ui/components/messages/DiffRenderer.test.js +239 -0
  504. package/dist/src/ui/components/messages/DiffRenderer.test.js.map +1 -0
  505. package/dist/src/ui/components/messages/ErrorMessage.d.ts +11 -0
  506. package/dist/src/ui/components/messages/ErrorMessage.js +9 -0
  507. package/dist/src/ui/components/messages/ErrorMessage.js.map +1 -0
  508. package/dist/src/ui/components/messages/GeminiMessage.d.ts +14 -0
  509. package/dist/src/ui/components/messages/GeminiMessage.js +10 -0
  510. package/dist/src/ui/components/messages/GeminiMessage.js.map +1 -0
  511. package/dist/src/ui/components/messages/GeminiMessageContent.d.ts +14 -0
  512. package/dist/src/ui/components/messages/GeminiMessageContent.js +15 -0
  513. package/dist/src/ui/components/messages/GeminiMessageContent.js.map +1 -0
  514. package/dist/src/ui/components/messages/InfoMessage.d.ts +11 -0
  515. package/dist/src/ui/components/messages/InfoMessage.js +10 -0
  516. package/dist/src/ui/components/messages/InfoMessage.js.map +1 -0
  517. package/dist/src/ui/components/messages/ToolConfirmationMessage.d.ts +15 -0
  518. package/dist/src/ui/components/messages/ToolConfirmationMessage.js +145 -0
  519. package/dist/src/ui/components/messages/ToolConfirmationMessage.js.map +1 -0
  520. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.d.ts +6 -0
  521. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js +37 -0
  522. package/dist/src/ui/components/messages/ToolConfirmationMessage.test.js.map +1 -0
  523. package/dist/src/ui/components/messages/ToolGroupMessage.d.ts +18 -0
  524. package/dist/src/ui/components/messages/ToolGroupMessage.js +55 -0
  525. package/dist/src/ui/components/messages/ToolGroupMessage.js.map +1 -0
  526. package/dist/src/ui/components/messages/ToolMessage.d.ts +15 -0
  527. package/dist/src/ui/components/messages/ToolMessage.js +111 -0
  528. package/dist/src/ui/components/messages/ToolMessage.js.map +1 -0
  529. package/dist/src/ui/components/messages/ToolMessage.test.d.ts +6 -0
  530. package/dist/src/ui/components/messages/ToolMessage.test.js +118 -0
  531. package/dist/src/ui/components/messages/ToolMessage.test.js.map +1 -0
  532. package/dist/src/ui/components/messages/UserMessage.d.ts +11 -0
  533. package/dist/src/ui/components/messages/UserMessage.js +12 -0
  534. package/dist/src/ui/components/messages/UserMessage.js.map +1 -0
  535. package/dist/src/ui/components/messages/UserShellMessage.d.ts +11 -0
  536. package/dist/src/ui/components/messages/UserShellMessage.js +9 -0
  537. package/dist/src/ui/components/messages/UserShellMessage.js.map +1 -0
  538. package/dist/src/ui/components/shared/MaxSizedBox.d.ts +61 -0
  539. package/dist/src/ui/components/shared/MaxSizedBox.js +451 -0
  540. package/dist/src/ui/components/shared/MaxSizedBox.js.map +1 -0
  541. package/dist/src/ui/components/shared/MaxSizedBox.test.d.ts +6 -0
  542. package/dist/src/ui/components/shared/MaxSizedBox.test.js +154 -0
  543. package/dist/src/ui/components/shared/MaxSizedBox.test.js.map +1 -0
  544. package/dist/src/ui/components/shared/RadioButtonSelect.d.ts +46 -0
  545. package/dist/src/ui/components/shared/RadioButtonSelect.js +121 -0
  546. package/dist/src/ui/components/shared/RadioButtonSelect.js.map +1 -0
  547. package/dist/src/ui/components/shared/RadioButtonSelect.test.d.ts +6 -0
  548. package/dist/src/ui/components/shared/RadioButtonSelect.test.js +111 -0
  549. package/dist/src/ui/components/shared/RadioButtonSelect.test.js.map +1 -0
  550. package/dist/src/ui/components/shared/text-buffer.d.ts +467 -0
  551. package/dist/src/ui/components/shared/text-buffer.js +1533 -0
  552. package/dist/src/ui/components/shared/text-buffer.js.map +1 -0
  553. package/dist/src/ui/components/shared/vim-buffer-actions.d.ts +72 -0
  554. package/dist/src/ui/components/shared/vim-buffer-actions.js +552 -0
  555. package/dist/src/ui/components/shared/vim-buffer-actions.js.map +1 -0
  556. package/dist/src/ui/constants.d.ts +9 -0
  557. package/dist/src/ui/constants.js +13 -0
  558. package/dist/src/ui/constants.js.map +1 -0
  559. package/dist/src/ui/contexts/KeypressContext.d.ts +30 -0
  560. package/dist/src/ui/contexts/KeypressContext.js +331 -0
  561. package/dist/src/ui/contexts/KeypressContext.js.map +1 -0
  562. package/dist/src/ui/contexts/KeypressContext.test.d.ts +6 -0
  563. package/dist/src/ui/contexts/KeypressContext.test.js +275 -0
  564. package/dist/src/ui/contexts/KeypressContext.test.js.map +1 -0
  565. package/dist/src/ui/contexts/OverflowContext.d.ts +19 -0
  566. package/dist/src/ui/contexts/OverflowContext.js +43 -0
  567. package/dist/src/ui/contexts/OverflowContext.js.map +1 -0
  568. package/dist/src/ui/contexts/SessionContext.d.ts +39 -0
  569. package/dist/src/ui/contexts/SessionContext.js +60 -0
  570. package/dist/src/ui/contexts/SessionContext.js.map +1 -0
  571. package/dist/src/ui/contexts/SettingsContext.d.ts +9 -0
  572. package/dist/src/ui/contexts/SettingsContext.js +15 -0
  573. package/dist/src/ui/contexts/SettingsContext.js.map +1 -0
  574. package/dist/src/ui/contexts/StreamingContext.d.ts +9 -0
  575. package/dist/src/ui/contexts/StreamingContext.js +15 -0
  576. package/dist/src/ui/contexts/StreamingContext.js.map +1 -0
  577. package/dist/src/ui/contexts/VimModeContext.d.ts +19 -0
  578. package/dist/src/ui/contexts/VimModeContext.js +48 -0
  579. package/dist/src/ui/contexts/VimModeContext.js.map +1 -0
  580. package/dist/src/ui/editors/editorSettingsManager.d.ts +19 -0
  581. package/dist/src/ui/editors/editorSettingsManager.js +47 -0
  582. package/dist/src/ui/editors/editorSettingsManager.js.map +1 -0
  583. package/dist/src/ui/hooks/atCommandProcessor.d.ts +31 -0
  584. package/dist/src/ui/hooks/atCommandProcessor.js +365 -0
  585. package/dist/src/ui/hooks/atCommandProcessor.js.map +1 -0
  586. package/dist/src/ui/hooks/atCommandProcessor.test.d.ts +6 -0
  587. package/dist/src/ui/hooks/atCommandProcessor.test.js +824 -0
  588. package/dist/src/ui/hooks/atCommandProcessor.test.js.map +1 -0
  589. package/dist/src/ui/hooks/shellCommandProcessor.d.ts +17 -0
  590. package/dist/src/ui/hooks/shellCommandProcessor.js +233 -0
  591. package/dist/src/ui/hooks/shellCommandProcessor.js.map +1 -0
  592. package/dist/src/ui/hooks/shellCommandProcessor.test.d.ts +6 -0
  593. package/dist/src/ui/hooks/shellCommandProcessor.test.js +328 -0
  594. package/dist/src/ui/hooks/shellCommandProcessor.test.js.map +1 -0
  595. package/dist/src/ui/hooks/slashCommandProcessor.d.ts +28 -0
  596. package/dist/src/ui/hooks/slashCommandProcessor.js +459 -0
  597. package/dist/src/ui/hooks/slashCommandProcessor.js.map +1 -0
  598. package/dist/src/ui/hooks/useAtCompletion.d.ts +23 -0
  599. package/dist/src/ui/hooks/useAtCompletion.js +179 -0
  600. package/dist/src/ui/hooks/useAtCompletion.js.map +1 -0
  601. package/dist/src/ui/hooks/useAuthCommand.d.ts +14 -0
  602. package/dist/src/ui/hooks/useAuthCommand.js +100 -0
  603. package/dist/src/ui/hooks/useAuthCommand.js.map +1 -0
  604. package/dist/src/ui/hooks/useAutoAcceptIndicator.d.ts +10 -0
  605. package/dist/src/ui/hooks/useAutoAcceptIndicator.js +37 -0
  606. package/dist/src/ui/hooks/useAutoAcceptIndicator.js.map +1 -0
  607. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.d.ts +6 -0
  608. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js +190 -0
  609. package/dist/src/ui/hooks/useAutoAcceptIndicator.test.js.map +1 -0
  610. package/dist/src/ui/hooks/useBracketedPaste.d.ts +12 -0
  611. package/dist/src/ui/hooks/useBracketedPaste.js +32 -0
  612. package/dist/src/ui/hooks/useBracketedPaste.js.map +1 -0
  613. package/dist/src/ui/hooks/useCommandCompletion.d.ts +29 -0
  614. package/dist/src/ui/hooks/useCommandCompletion.js +165 -0
  615. package/dist/src/ui/hooks/useCommandCompletion.js.map +1 -0
  616. package/dist/src/ui/hooks/useCompletion.d.ts +24 -0
  617. package/dist/src/ui/hooks/useCompletion.js +88 -0
  618. package/dist/src/ui/hooks/useCompletion.js.map +1 -0
  619. package/dist/src/ui/hooks/useConsoleMessages.d.ts +12 -0
  620. package/dist/src/ui/hooks/useConsoleMessages.js +76 -0
  621. package/dist/src/ui/hooks/useConsoleMessages.js.map +1 -0
  622. package/dist/src/ui/hooks/useEditorSettings.d.ts +16 -0
  623. package/dist/src/ui/hooks/useEditorSettings.js +43 -0
  624. package/dist/src/ui/hooks/useEditorSettings.js.map +1 -0
  625. package/dist/src/ui/hooks/useEditorSettings.test.d.ts +6 -0
  626. package/dist/src/ui/hooks/useEditorSettings.test.js +164 -0
  627. package/dist/src/ui/hooks/useEditorSettings.test.js.map +1 -0
  628. package/dist/src/ui/hooks/useFocus.d.ts +10 -0
  629. package/dist/src/ui/hooks/useFocus.js +41 -0
  630. package/dist/src/ui/hooks/useFocus.js.map +1 -0
  631. package/dist/src/ui/hooks/useFolderTrust.d.ts +12 -0
  632. package/dist/src/ui/hooks/useFolderTrust.js +55 -0
  633. package/dist/src/ui/hooks/useFolderTrust.js.map +1 -0
  634. package/dist/src/ui/hooks/useGeminiStream.d.ts +24 -0
  635. package/dist/src/ui/hooks/useGeminiStream.js +653 -0
  636. package/dist/src/ui/hooks/useGeminiStream.js.map +1 -0
  637. package/dist/src/ui/hooks/useGitBranchName.d.ts +6 -0
  638. package/dist/src/ui/hooks/useGitBranchName.js +61 -0
  639. package/dist/src/ui/hooks/useGitBranchName.js.map +1 -0
  640. package/dist/src/ui/hooks/useGitBranchName.test.d.ts +6 -0
  641. package/dist/src/ui/hooks/useGitBranchName.test.js +215 -0
  642. package/dist/src/ui/hooks/useGitBranchName.test.js.map +1 -0
  643. package/dist/src/ui/hooks/useHistoryManager.d.ts +22 -0
  644. package/dist/src/ui/hooks/useHistoryManager.js +72 -0
  645. package/dist/src/ui/hooks/useHistoryManager.js.map +1 -0
  646. package/dist/src/ui/hooks/useHistoryManager.test.d.ts +6 -0
  647. package/dist/src/ui/hooks/useHistoryManager.test.js +171 -0
  648. package/dist/src/ui/hooks/useHistoryManager.test.js.map +1 -0
  649. package/dist/src/ui/hooks/useInputHistory.d.ts +19 -0
  650. package/dist/src/ui/hooks/useInputHistory.js +84 -0
  651. package/dist/src/ui/hooks/useInputHistory.js.map +1 -0
  652. package/dist/src/ui/hooks/useInputHistory.test.d.ts +6 -0
  653. package/dist/src/ui/hooks/useInputHistory.test.js +207 -0
  654. package/dist/src/ui/hooks/useInputHistory.test.js.map +1 -0
  655. package/dist/src/ui/hooks/useKeypress.d.ts +17 -0
  656. package/dist/src/ui/hooks/useKeypress.js +27 -0
  657. package/dist/src/ui/hooks/useKeypress.js.map +1 -0
  658. package/dist/src/ui/hooks/useKittyKeyboardProtocol.d.ts +15 -0
  659. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js +20 -0
  660. package/dist/src/ui/hooks/useKittyKeyboardProtocol.js.map +1 -0
  661. package/dist/src/ui/hooks/useLoadingIndicator.d.ts +10 -0
  662. package/dist/src/ui/hooks/useLoadingIndicator.js +44 -0
  663. package/dist/src/ui/hooks/useLoadingIndicator.js.map +1 -0
  664. package/dist/src/ui/hooks/useLoadingIndicator.test.d.ts +6 -0
  665. package/dist/src/ui/hooks/useLoadingIndicator.test.js +91 -0
  666. package/dist/src/ui/hooks/useLoadingIndicator.test.js.map +1 -0
  667. package/dist/src/ui/hooks/useLogger.d.ts +10 -0
  668. package/dist/src/ui/hooks/useLogger.js +29 -0
  669. package/dist/src/ui/hooks/useLogger.js.map +1 -0
  670. package/dist/src/ui/hooks/useMessageQueue.d.ts +22 -0
  671. package/dist/src/ui/hooks/useMessageQueue.js +49 -0
  672. package/dist/src/ui/hooks/useMessageQueue.js.map +1 -0
  673. package/dist/src/ui/hooks/useMessageQueue.test.d.ts +6 -0
  674. package/dist/src/ui/hooks/useMessageQueue.test.js +158 -0
  675. package/dist/src/ui/hooks/useMessageQueue.test.js.map +1 -0
  676. package/dist/src/ui/hooks/usePhraseCycler.d.ts +14 -0
  677. package/dist/src/ui/hooks/usePhraseCycler.js +187 -0
  678. package/dist/src/ui/hooks/usePhraseCycler.js.map +1 -0
  679. package/dist/src/ui/hooks/usePrivacySettings.d.ts +16 -0
  680. package/dist/src/ui/hooks/usePrivacySettings.js +119 -0
  681. package/dist/src/ui/hooks/usePrivacySettings.js.map +1 -0
  682. package/dist/src/ui/hooks/usePrivacySettings.test.d.ts +6 -0
  683. package/dist/src/ui/hooks/usePrivacySettings.test.js +154 -0
  684. package/dist/src/ui/hooks/usePrivacySettings.test.js.map +1 -0
  685. package/dist/src/ui/hooks/useReactToolScheduler.d.ts +33 -0
  686. package/dist/src/ui/hooks/useReactToolScheduler.js +187 -0
  687. package/dist/src/ui/hooks/useReactToolScheduler.js.map +1 -0
  688. package/dist/src/ui/hooks/useRefreshMemoryCommand.d.ts +6 -0
  689. package/dist/src/ui/hooks/useRefreshMemoryCommand.js +7 -0
  690. package/dist/src/ui/hooks/useRefreshMemoryCommand.js.map +1 -0
  691. package/dist/src/ui/hooks/useReverseSearchCompletion.d.ts +19 -0
  692. package/dist/src/ui/hooks/useReverseSearchCompletion.js +56 -0
  693. package/dist/src/ui/hooks/useReverseSearchCompletion.js.map +1 -0
  694. package/dist/src/ui/hooks/useReverseSearchCompletion.test.d.ts +6 -0
  695. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js +163 -0
  696. package/dist/src/ui/hooks/useReverseSearchCompletion.test.js.map +1 -0
  697. package/dist/src/ui/hooks/useSettingsCommand.d.ts +10 -0
  698. package/dist/src/ui/hooks/useSettingsCommand.js +21 -0
  699. package/dist/src/ui/hooks/useSettingsCommand.js.map +1 -0
  700. package/dist/src/ui/hooks/useShellHistory.d.ts +13 -0
  701. package/dist/src/ui/hooks/useShellHistory.js +112 -0
  702. package/dist/src/ui/hooks/useShellHistory.js.map +1 -0
  703. package/dist/src/ui/hooks/useShellHistory.test.d.ts +6 -0
  704. package/dist/src/ui/hooks/useShellHistory.test.js +162 -0
  705. package/dist/src/ui/hooks/useShellHistory.test.js.map +1 -0
  706. package/dist/src/ui/hooks/useShowMemoryCommand.d.ts +9 -0
  707. package/dist/src/ui/hooks/useShowMemoryCommand.js +58 -0
  708. package/dist/src/ui/hooks/useShowMemoryCommand.js.map +1 -0
  709. package/dist/src/ui/hooks/useSlashCompletion.d.ts +20 -0
  710. package/dist/src/ui/hooks/useSlashCompletion.js +135 -0
  711. package/dist/src/ui/hooks/useSlashCompletion.js.map +1 -0
  712. package/dist/src/ui/hooks/useSlashCompletion.test.d.ts +6 -0
  713. package/dist/src/ui/hooks/useSlashCompletion.test.js +272 -0
  714. package/dist/src/ui/hooks/useSlashCompletion.test.js.map +1 -0
  715. package/dist/src/ui/hooks/useStateAndRef.d.ts +7 -0
  716. package/dist/src/ui/hooks/useStateAndRef.js +26 -0
  717. package/dist/src/ui/hooks/useStateAndRef.js.map +1 -0
  718. package/dist/src/ui/hooks/useTerminalSize.d.ts +9 -0
  719. package/dist/src/ui/hooks/useTerminalSize.js +27 -0
  720. package/dist/src/ui/hooks/useTerminalSize.js.map +1 -0
  721. package/dist/src/ui/hooks/useThemeCommand.d.ts +15 -0
  722. package/dist/src/ui/hooks/useThemeCommand.js +79 -0
  723. package/dist/src/ui/hooks/useThemeCommand.js.map +1 -0
  724. package/dist/src/ui/hooks/useTimer.d.ts +12 -0
  725. package/dist/src/ui/hooks/useTimer.js +58 -0
  726. package/dist/src/ui/hooks/useTimer.js.map +1 -0
  727. package/dist/src/ui/hooks/useTimer.test.d.ts +6 -0
  728. package/dist/src/ui/hooks/useTimer.test.js +90 -0
  729. package/dist/src/ui/hooks/useTimer.test.js.map +1 -0
  730. package/dist/src/ui/hooks/useToolScheduler.test.d.ts +6 -0
  731. package/dist/src/ui/hooks/useToolScheduler.test.js +845 -0
  732. package/dist/src/ui/hooks/useToolScheduler.test.js.map +1 -0
  733. package/dist/src/ui/hooks/useWelcomeBack.d.ts +52 -0
  734. package/dist/src/ui/hooks/useWelcomeBack.js +214 -0
  735. package/dist/src/ui/hooks/useWelcomeBack.js.map +1 -0
  736. package/dist/src/ui/hooks/vim.d.ts +28 -0
  737. package/dist/src/ui/hooks/vim.js +639 -0
  738. package/dist/src/ui/hooks/vim.js.map +1 -0
  739. package/dist/src/ui/keyMatchers.d.ts +26 -0
  740. package/dist/src/ui/keyMatchers.js +68 -0
  741. package/dist/src/ui/keyMatchers.js.map +1 -0
  742. package/dist/src/ui/keyMatchers.test.d.ts +6 -0
  743. package/dist/src/ui/keyMatchers.test.js +276 -0
  744. package/dist/src/ui/keyMatchers.test.js.map +1 -0
  745. package/dist/src/ui/privacy/CloudFreePrivacyNotice.d.ts +12 -0
  746. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js +41 -0
  747. package/dist/src/ui/privacy/CloudFreePrivacyNotice.js.map +1 -0
  748. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.d.ts +10 -0
  749. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js +18 -0
  750. package/dist/src/ui/privacy/CloudPaidPrivacyNotice.js.map +1 -0
  751. package/dist/src/ui/privacy/GeminiPrivacyNotice.d.ts +10 -0
  752. package/dist/src/ui/privacy/GeminiPrivacyNotice.js +18 -0
  753. package/dist/src/ui/privacy/GeminiPrivacyNotice.js.map +1 -0
  754. package/dist/src/ui/privacy/PrivacyNotice.d.ts +12 -0
  755. package/dist/src/ui/privacy/PrivacyNotice.js +25 -0
  756. package/dist/src/ui/privacy/PrivacyNotice.js.map +1 -0
  757. package/dist/src/ui/semantic-colors.d.ts +7 -0
  758. package/dist/src/ui/semantic-colors.js +24 -0
  759. package/dist/src/ui/semantic-colors.js.map +1 -0
  760. package/dist/src/ui/themes/ansi-light.d.ts +7 -0
  761. package/dist/src/ui/themes/ansi-light.js +142 -0
  762. package/dist/src/ui/themes/ansi-light.js.map +1 -0
  763. package/dist/src/ui/themes/ansi.d.ts +7 -0
  764. package/dist/src/ui/themes/ansi.js +152 -0
  765. package/dist/src/ui/themes/ansi.js.map +1 -0
  766. package/dist/src/ui/themes/atom-one-dark.d.ts +7 -0
  767. package/dist/src/ui/themes/atom-one-dark.js +139 -0
  768. package/dist/src/ui/themes/atom-one-dark.js.map +1 -0
  769. package/dist/src/ui/themes/ayu-light.d.ts +7 -0
  770. package/dist/src/ui/themes/ayu-light.js +131 -0
  771. package/dist/src/ui/themes/ayu-light.js.map +1 -0
  772. package/dist/src/ui/themes/ayu.d.ts +7 -0
  773. package/dist/src/ui/themes/ayu.js +105 -0
  774. package/dist/src/ui/themes/ayu.js.map +1 -0
  775. package/dist/src/ui/themes/color-utils.d.ts +21 -0
  776. package/dist/src/ui/themes/color-utils.js +221 -0
  777. package/dist/src/ui/themes/color-utils.js.map +1 -0
  778. package/dist/src/ui/themes/color-utils.test.d.ts +6 -0
  779. package/dist/src/ui/themes/color-utils.test.js +197 -0
  780. package/dist/src/ui/themes/color-utils.test.js.map +1 -0
  781. package/dist/src/ui/themes/default-light.d.ts +7 -0
  782. package/dist/src/ui/themes/default-light.js +101 -0
  783. package/dist/src/ui/themes/default-light.js.map +1 -0
  784. package/dist/src/ui/themes/default.d.ts +7 -0
  785. package/dist/src/ui/themes/default.js +144 -0
  786. package/dist/src/ui/themes/default.js.map +1 -0
  787. package/dist/src/ui/themes/dracula.d.ts +7 -0
  788. package/dist/src/ui/themes/dracula.js +116 -0
  789. package/dist/src/ui/themes/dracula.js.map +1 -0
  790. package/dist/src/ui/themes/fss-code-dark.d.ts +7 -0
  791. package/dist/src/ui/themes/fss-code-dark.js +148 -0
  792. package/dist/src/ui/themes/fss-code-dark.js.map +1 -0
  793. package/dist/src/ui/themes/fss-dark.d.ts +7 -0
  794. package/dist/src/ui/themes/fss-dark.js +105 -0
  795. package/dist/src/ui/themes/fss-dark.js.map +1 -0
  796. package/dist/src/ui/themes/fss-light.d.ts +7 -0
  797. package/dist/src/ui/themes/fss-light.js +131 -0
  798. package/dist/src/ui/themes/fss-light.js.map +1 -0
  799. package/dist/src/ui/themes/github-dark.d.ts +7 -0
  800. package/dist/src/ui/themes/github-dark.js +139 -0
  801. package/dist/src/ui/themes/github-dark.js.map +1 -0
  802. package/dist/src/ui/themes/github-light.d.ts +7 -0
  803. package/dist/src/ui/themes/github-light.js +141 -0
  804. package/dist/src/ui/themes/github-light.js.map +1 -0
  805. package/dist/src/ui/themes/googlecode.d.ts +7 -0
  806. package/dist/src/ui/themes/googlecode.js +138 -0
  807. package/dist/src/ui/themes/googlecode.js.map +1 -0
  808. package/dist/src/ui/themes/no-color.d.ts +7 -0
  809. package/dist/src/ui/themes/no-color.js +115 -0
  810. package/dist/src/ui/themes/no-color.js.map +1 -0
  811. package/dist/src/ui/themes/qwen-dark.d.ts +7 -0
  812. package/dist/src/ui/themes/qwen-dark.js +109 -0
  813. package/dist/src/ui/themes/qwen-dark.js.map +1 -0
  814. package/dist/src/ui/themes/qwen-light.d.ts +7 -0
  815. package/dist/src/ui/themes/qwen-light.js +135 -0
  816. package/dist/src/ui/themes/qwen-light.js.map +1 -0
  817. package/dist/src/ui/themes/semantic-tokens.d.ts +37 -0
  818. package/dist/src/ui/themes/semantic-tokens.js +94 -0
  819. package/dist/src/ui/themes/semantic-tokens.js.map +1 -0
  820. package/dist/src/ui/themes/shades-of-purple.d.ts +11 -0
  821. package/dist/src/ui/themes/shades-of-purple.js +305 -0
  822. package/dist/src/ui/themes/shades-of-purple.js.map +1 -0
  823. package/dist/src/ui/themes/theme-manager.d.ts +64 -0
  824. package/dist/src/ui/themes/theme-manager.js +209 -0
  825. package/dist/src/ui/themes/theme-manager.js.map +1 -0
  826. package/dist/src/ui/themes/theme-manager.test.d.ts +6 -0
  827. package/dist/src/ui/themes/theme-manager.test.js +83 -0
  828. package/dist/src/ui/themes/theme-manager.test.js.map +1 -0
  829. package/dist/src/ui/themes/theme.d.ts +130 -0
  830. package/dist/src/ui/themes/theme.js +351 -0
  831. package/dist/src/ui/themes/theme.js.map +1 -0
  832. package/dist/src/ui/themes/xcode.d.ts +7 -0
  833. package/dist/src/ui/themes/xcode.js +146 -0
  834. package/dist/src/ui/themes/xcode.js.map +1 -0
  835. package/dist/src/ui/types.d.ts +191 -0
  836. package/dist/src/ui/types.js +44 -0
  837. package/dist/src/ui/types.js.map +1 -0
  838. package/dist/src/ui/utils/CodeColorizer.d.ts +17 -0
  839. package/dist/src/ui/utils/CodeColorizer.js +110 -0
  840. package/dist/src/ui/utils/CodeColorizer.js.map +1 -0
  841. package/dist/src/ui/utils/ConsolePatcher.d.ts +25 -0
  842. package/dist/src/ui/utils/ConsolePatcher.js +52 -0
  843. package/dist/src/ui/utils/ConsolePatcher.js.map +1 -0
  844. package/dist/src/ui/utils/InlineMarkdownRenderer.d.ts +16 -0
  845. package/dist/src/ui/utils/InlineMarkdownRenderer.js +111 -0
  846. package/dist/src/ui/utils/InlineMarkdownRenderer.js.map +1 -0
  847. package/dist/src/ui/utils/MarkdownDisplay.d.ts +14 -0
  848. package/dist/src/ui/utils/MarkdownDisplay.js +207 -0
  849. package/dist/src/ui/utils/MarkdownDisplay.js.map +1 -0
  850. package/dist/src/ui/utils/MarkdownDisplay.test.d.ts +6 -0
  851. package/dist/src/ui/utils/MarkdownDisplay.test.js +151 -0
  852. package/dist/src/ui/utils/MarkdownDisplay.test.js.map +1 -0
  853. package/dist/src/ui/utils/TableRenderer.d.ts +17 -0
  854. package/dist/src/ui/utils/TableRenderer.js +84 -0
  855. package/dist/src/ui/utils/TableRenderer.js.map +1 -0
  856. package/dist/src/ui/utils/clipboardUtils.d.ts +22 -0
  857. package/dist/src/ui/utils/clipboardUtils.js +127 -0
  858. package/dist/src/ui/utils/clipboardUtils.js.map +1 -0
  859. package/dist/src/ui/utils/clipboardUtils.test.d.ts +6 -0
  860. package/dist/src/ui/utils/clipboardUtils.test.js +65 -0
  861. package/dist/src/ui/utils/clipboardUtils.test.js.map +1 -0
  862. package/dist/src/ui/utils/commandUtils.d.ts +24 -0
  863. package/dist/src/ui/utils/commandUtils.js +93 -0
  864. package/dist/src/ui/utils/commandUtils.js.map +1 -0
  865. package/dist/src/ui/utils/commandUtils.test.d.ts +6 -0
  866. package/dist/src/ui/utils/commandUtils.test.js +294 -0
  867. package/dist/src/ui/utils/commandUtils.test.js.map +1 -0
  868. package/dist/src/ui/utils/computeStats.d.ts +10 -0
  869. package/dist/src/ui/utils/computeStats.js +57 -0
  870. package/dist/src/ui/utils/computeStats.js.map +1 -0
  871. package/dist/src/ui/utils/displayUtils.d.ts +17 -0
  872. package/dist/src/ui/utils/displayUtils.js +24 -0
  873. package/dist/src/ui/utils/displayUtils.js.map +1 -0
  874. package/dist/src/ui/utils/displayUtils.test.d.ts +6 -0
  875. package/dist/src/ui/utils/displayUtils.test.js +42 -0
  876. package/dist/src/ui/utils/displayUtils.test.js.map +1 -0
  877. package/dist/src/ui/utils/formatters.d.ts +13 -0
  878. package/dist/src/ui/utils/formatters.js +56 -0
  879. package/dist/src/ui/utils/formatters.js.map +1 -0
  880. package/dist/src/ui/utils/formatters.test.d.ts +6 -0
  881. package/dist/src/ui/utils/formatters.test.js +56 -0
  882. package/dist/src/ui/utils/formatters.test.js.map +1 -0
  883. package/dist/src/ui/utils/isNarrowWidth.d.ts +6 -0
  884. package/dist/src/ui/utils/isNarrowWidth.js +9 -0
  885. package/dist/src/ui/utils/isNarrowWidth.js.map +1 -0
  886. package/dist/src/ui/utils/kittyProtocolDetector.d.ts +13 -0
  887. package/dist/src/ui/utils/kittyProtocolDetector.js +88 -0
  888. package/dist/src/ui/utils/kittyProtocolDetector.js.map +1 -0
  889. package/dist/src/ui/utils/markdownUtilities.d.ts +6 -0
  890. package/dist/src/ui/utils/markdownUtilities.js +110 -0
  891. package/dist/src/ui/utils/markdownUtilities.js.map +1 -0
  892. package/dist/src/ui/utils/markdownUtilities.test.d.ts +6 -0
  893. package/dist/src/ui/utils/markdownUtilities.test.js +42 -0
  894. package/dist/src/ui/utils/markdownUtilities.test.js.map +1 -0
  895. package/dist/src/ui/utils/platformConstants.d.ts +45 -0
  896. package/dist/src/ui/utils/platformConstants.js +46 -0
  897. package/dist/src/ui/utils/platformConstants.js.map +1 -0
  898. package/dist/src/ui/utils/terminalSetup.d.ts +30 -0
  899. package/dist/src/ui/utils/terminalSetup.js +281 -0
  900. package/dist/src/ui/utils/terminalSetup.js.map +1 -0
  901. package/dist/src/ui/utils/textUtils.d.ts +14 -0
  902. package/dist/src/ui/utils/textUtils.js +36 -0
  903. package/dist/src/ui/utils/textUtils.js.map +1 -0
  904. package/dist/src/ui/utils/updateCheck.d.ts +12 -0
  905. package/dist/src/ui/utils/updateCheck.js +78 -0
  906. package/dist/src/ui/utils/updateCheck.js.map +1 -0
  907. package/dist/src/ui/utils/updateCheck.test.d.ts +6 -0
  908. package/dist/src/ui/utils/updateCheck.test.js +145 -0
  909. package/dist/src/ui/utils/updateCheck.test.js.map +1 -0
  910. package/dist/src/utils/checks.d.ts +19 -0
  911. package/dist/src/utils/checks.js +24 -0
  912. package/dist/src/utils/checks.js.map +1 -0
  913. package/dist/src/utils/cleanup.d.ts +8 -0
  914. package/dist/src/utils/cleanup.js +34 -0
  915. package/dist/src/utils/cleanup.js.map +1 -0
  916. package/dist/src/utils/dialogScopeUtils.d.ts +31 -0
  917. package/dist/src/utils/dialogScopeUtils.js +48 -0
  918. package/dist/src/utils/dialogScopeUtils.js.map +1 -0
  919. package/dist/src/utils/events.d.ts +11 -0
  920. package/dist/src/utils/events.js +13 -0
  921. package/dist/src/utils/events.js.map +1 -0
  922. package/dist/src/utils/gitUtils.d.ts +30 -0
  923. package/dist/src/utils/gitUtils.js +89 -0
  924. package/dist/src/utils/gitUtils.js.map +1 -0
  925. package/dist/src/utils/gitUtils.test.d.ts +6 -0
  926. package/dist/src/utils/gitUtils.test.js +113 -0
  927. package/dist/src/utils/gitUtils.test.js.map +1 -0
  928. package/dist/src/utils/handleAutoUpdate.d.ts +11 -0
  929. package/dist/src/utils/handleAutoUpdate.js +101 -0
  930. package/dist/src/utils/handleAutoUpdate.js.map +1 -0
  931. package/dist/src/utils/installationInfo.d.ts +23 -0
  932. package/dist/src/utils/installationInfo.js +169 -0
  933. package/dist/src/utils/installationInfo.js.map +1 -0
  934. package/dist/src/utils/installationInfo.test.d.ts +6 -0
  935. package/dist/src/utils/installationInfo.test.js +242 -0
  936. package/dist/src/utils/installationInfo.test.js.map +1 -0
  937. package/dist/src/utils/package.d.ts +12 -0
  938. package/dist/src/utils/package.js +24 -0
  939. package/dist/src/utils/package.js.map +1 -0
  940. package/dist/src/utils/readStdin.d.ts +6 -0
  941. package/dist/src/utils/readStdin.js +44 -0
  942. package/dist/src/utils/readStdin.js.map +1 -0
  943. package/dist/src/utils/resolvePath.d.ts +6 -0
  944. package/dist/src/utils/resolvePath.js +21 -0
  945. package/dist/src/utils/resolvePath.js.map +1 -0
  946. package/dist/src/utils/sandbox.d.ts +7 -0
  947. package/dist/src/utils/sandbox.js +739 -0
  948. package/dist/src/utils/sandbox.js.map +1 -0
  949. package/dist/src/utils/settingsUtils.d.ts +134 -0
  950. package/dist/src/utils/settingsUtils.js +336 -0
  951. package/dist/src/utils/settingsUtils.js.map +1 -0
  952. package/dist/src/utils/settingsUtils.test.d.ts +6 -0
  953. package/dist/src/utils/settingsUtils.test.js +514 -0
  954. package/dist/src/utils/settingsUtils.test.js.map +1 -0
  955. package/dist/src/utils/spawnWrapper.d.ts +7 -0
  956. package/dist/src/utils/spawnWrapper.js +8 -0
  957. package/dist/src/utils/spawnWrapper.js.map +1 -0
  958. package/dist/src/utils/startupWarnings.d.ts +6 -0
  959. package/dist/src/utils/startupWarnings.js +40 -0
  960. package/dist/src/utils/startupWarnings.js.map +1 -0
  961. package/dist/src/utils/updateEventEmitter.d.ts +11 -0
  962. package/dist/src/utils/updateEventEmitter.js +12 -0
  963. package/dist/src/utils/updateEventEmitter.js.map +1 -0
  964. package/dist/src/utils/userStartupWarnings.d.ts +6 -0
  965. package/dist/src/utils/userStartupWarnings.js +54 -0
  966. package/dist/src/utils/userStartupWarnings.js.map +1 -0
  967. package/dist/src/utils/userStartupWarnings.test.d.ts +6 -0
  968. package/dist/src/utils/userStartupWarnings.test.js +67 -0
  969. package/dist/src/utils/userStartupWarnings.test.js.map +1 -0
  970. package/dist/src/utils/version.d.ts +6 -0
  971. package/dist/src/utils/version.js +11 -0
  972. package/dist/src/utils/version.js.map +1 -0
  973. package/dist/src/validateNonInterActiveAuth.d.ts +7 -0
  974. package/dist/src/validateNonInterActiveAuth.js +51 -0
  975. package/dist/src/validateNonInterActiveAuth.js.map +1 -0
  976. package/dist/src/zed-integration/acp.d.ts +63 -0
  977. package/dist/src/zed-integration/acp.js +225 -0
  978. package/dist/src/zed-integration/acp.js.map +1 -0
  979. package/dist/src/zed-integration/fileSystemService.d.ts +19 -0
  980. package/dist/src/zed-integration/fileSystemService.js +43 -0
  981. package/dist/src/zed-integration/fileSystemService.js.map +1 -0
  982. package/dist/src/zed-integration/schema.d.ts +11782 -0
  983. package/dist/src/zed-integration/schema.js +311 -0
  984. package/dist/src/zed-integration/schema.js.map +1 -0
  985. package/dist/src/zed-integration/zedIntegration.d.ts +10 -0
  986. package/dist/src/zed-integration/zedIntegration.js +765 -0
  987. package/dist/src/zed-integration/zedIntegration.js.map +1 -0
  988. package/dist/tsconfig.tsbuildinfo +1 -0
  989. package/package.json +44 -113
  990. package/bundle/fss-link.js +0 -127361
  991. /package/{bundle → dist/src/utils}/sandbox-macos-permissive-closed.sb +0 -0
  992. /package/{bundle → dist/src/utils}/sandbox-macos-permissive-open.sb +0 -0
  993. /package/{bundle → dist/src/utils}/sandbox-macos-permissive-proxied.sb +0 -0
  994. /package/{bundle → dist/src/utils}/sandbox-macos-restrictive-closed.sb +0 -0
  995. /package/{bundle → dist/src/utils}/sandbox-macos-restrictive-open.sb +0 -0
  996. /package/{bundle → dist/src/utils}/sandbox-macos-restrictive-proxied.sb +0 -0
@@ -0,0 +1,77 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * @license
4
+ * Copyright 2025 Google LLC
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import { render } from 'ink-testing-library';
8
+ import { describe, it, expect } from 'vitest';
9
+ import { TodoDisplay } from './TodoDisplay.js';
10
+ describe('TodoDisplay', () => {
11
+ const mockTodos = [
12
+ {
13
+ id: '1',
14
+ content: 'Complete feature implementation',
15
+ status: 'completed',
16
+ },
17
+ {
18
+ id: '2',
19
+ content: 'Write unit tests',
20
+ status: 'in_progress',
21
+ },
22
+ {
23
+ id: '3',
24
+ content: 'Update documentation',
25
+ status: 'pending',
26
+ },
27
+ ];
28
+ it('should render todo list', () => {
29
+ const { lastFrame } = render(_jsx(TodoDisplay, { todos: mockTodos }));
30
+ const output = lastFrame();
31
+ // Check all todo items are displayed
32
+ expect(output).toContain('Complete feature implementation');
33
+ expect(output).toContain('Write unit tests');
34
+ expect(output).toContain('Update documentation');
35
+ });
36
+ it('should display correct status icons', () => {
37
+ const { lastFrame } = render(_jsx(TodoDisplay, { todos: mockTodos }));
38
+ const output = lastFrame();
39
+ // Check status icons are present
40
+ expect(output).toContain('●'); // completed
41
+ expect(output).toContain('◐'); // in_progress
42
+ expect(output).toContain('○'); // pending
43
+ });
44
+ it('should handle empty todo list', () => {
45
+ const { lastFrame } = render(_jsx(TodoDisplay, { todos: [] }));
46
+ const output = lastFrame();
47
+ // Should render nothing for empty todos
48
+ expect(output).toBe('');
49
+ });
50
+ it('should handle undefined todos', () => {
51
+ const { lastFrame } = render(_jsx(TodoDisplay, { todos: undefined }));
52
+ const output = lastFrame();
53
+ // Should render nothing for undefined todos
54
+ expect(output).toBe('');
55
+ });
56
+ it('should render tasks with different statuses', () => {
57
+ const allCompleted = [
58
+ { id: '1', content: 'Task 1', status: 'completed' },
59
+ { id: '2', content: 'Task 2', status: 'completed' },
60
+ ];
61
+ const { lastFrame } = render(_jsx(TodoDisplay, { todos: allCompleted }));
62
+ const output = lastFrame();
63
+ expect(output).toContain('Task 1');
64
+ expect(output).toContain('Task 2');
65
+ });
66
+ it('should render tasks with mixed statuses', () => {
67
+ const mixedTodos = [
68
+ { id: '1', content: 'Task 1', status: 'pending' },
69
+ { id: '2', content: 'Task 2', status: 'in_progress' },
70
+ ];
71
+ const { lastFrame } = render(_jsx(TodoDisplay, { todos: mixedTodos }));
72
+ const output = lastFrame();
73
+ expect(output).toContain('Task 1');
74
+ expect(output).toContain('Task 2');
75
+ });
76
+ });
77
+ //# sourceMappingURL=TodoDisplay.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TodoDisplay.test.js","sourceRoot":"","sources":["../../../../src/ui/components/TodoDisplay.test.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAY,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEzD,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,MAAM,SAAS,GAAe;QAC5B;YACE,EAAE,EAAE,GAAG;YACP,OAAO,EAAE,iCAAiC;YAC1C,MAAM,EAAE,WAAW;SACpB;QACD;YACE,EAAE,EAAE,GAAG;YACP,OAAO,EAAE,kBAAkB;YAC3B,MAAM,EAAE,aAAa;SACtB;QACD;YACE,EAAE,EAAE,GAAG;YACP,OAAO,EAAE,sBAAsB;YAC/B,MAAM,EAAE,SAAS;SAClB;KACF,CAAC;IAEF,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;QACjC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,KAAC,WAAW,IAAC,KAAK,EAAE,SAAS,GAAI,CAAC,CAAC;QAEhE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAE3B,qCAAqC;QACrC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,iCAAiC,CAAC,CAAC;QAC5D,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QAC7C,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,sBAAsB,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,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OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;SACpD,CAAC;QAEF,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,KAAC,WAAW,IAAC,KAAK,EAAE,YAAY,GAAI,CAAC,CAAC;QAEnE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yCAAyC,EAAE,GAAG,EAAE;QACjD,MAAM,UAAU,GAAe;YAC7B,EAAE,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE;YACjD,EAAE,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE;SACtD,CAAC;QAEF,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,KAAC,WAAW,IAAC,KAAK,EAAE,UAAU,GAAI,CAAC,CAAC;QAEjE,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import React from 'react';
7
+ export declare const ToolStatsDisplay: React.FC;
@@ -0,0 +1,41 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ import { Colors } from '../colors.js';
4
+ import { formatDuration } from '../utils/formatters.js';
5
+ import { getStatusColor, TOOL_SUCCESS_RATE_HIGH, TOOL_SUCCESS_RATE_MEDIUM, USER_AGREEMENT_RATE_HIGH, USER_AGREEMENT_RATE_MEDIUM, } from '../utils/displayUtils.js';
6
+ import { useSessionStats } from '../contexts/SessionContext.js';
7
+ const TOOL_NAME_COL_WIDTH = 25;
8
+ const CALLS_COL_WIDTH = 8;
9
+ const SUCCESS_RATE_COL_WIDTH = 15;
10
+ const AVG_DURATION_COL_WIDTH = 15;
11
+ const StatRow = ({ name, stats }) => {
12
+ const successRate = stats.count > 0 ? (stats.success / stats.count) * 100 : 0;
13
+ const avgDuration = stats.count > 0 ? stats.durationMs / stats.count : 0;
14
+ const successColor = getStatusColor(successRate, {
15
+ green: TOOL_SUCCESS_RATE_HIGH,
16
+ yellow: TOOL_SUCCESS_RATE_MEDIUM,
17
+ });
18
+ return (_jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH, children: _jsx(Text, { color: Colors.LightBlue, children: name }) }), _jsx(Box, { width: CALLS_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { children: stats.count }) }), _jsx(Box, { width: SUCCESS_RATE_COL_WIDTH, justifyContent: "flex-end", children: _jsxs(Text, { color: successColor, children: [successRate.toFixed(1), "%"] }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { children: formatDuration(avgDuration) }) })] }));
19
+ };
20
+ export const ToolStatsDisplay = () => {
21
+ const { stats } = useSessionStats();
22
+ const { tools } = stats.metrics;
23
+ const activeTools = Object.entries(tools.byName).filter(([, metrics]) => metrics.count > 0);
24
+ if (activeTools.length === 0) {
25
+ return (_jsx(Box, { borderStyle: "round", borderColor: Colors.Gray, paddingY: 1, paddingX: 2, children: _jsx(Text, { children: "No tool calls have been made in this session." }) }));
26
+ }
27
+ const totalDecisions = Object.values(tools.byName).reduce((acc, tool) => {
28
+ acc.accept += tool.decisions.accept;
29
+ acc.reject += tool.decisions.reject;
30
+ acc.modify += tool.decisions.modify;
31
+ return acc;
32
+ }, { accept: 0, reject: 0, modify: 0 });
33
+ const totalReviewed = totalDecisions.accept + totalDecisions.reject + totalDecisions.modify;
34
+ const agreementRate = totalReviewed > 0 ? (totalDecisions.accept / totalReviewed) * 100 : 0;
35
+ const agreementColor = getStatusColor(agreementRate, {
36
+ green: USER_AGREEMENT_RATE_HIGH,
37
+ yellow: USER_AGREEMENT_RATE_MEDIUM,
38
+ });
39
+ return (_jsxs(Box, { borderStyle: "round", borderColor: Colors.Gray, flexDirection: "column", paddingY: 1, paddingX: 2, width: 70, children: [_jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Tool Stats For Nerds" }), _jsx(Box, { height: 1 }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH, children: _jsx(Text, { bold: true, children: "Tool Name" }) }), _jsx(Box, { width: CALLS_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { bold: true, children: "Calls" }) }), _jsx(Box, { width: SUCCESS_RATE_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { bold: true, children: "Success Rate" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { bold: true, children: "Avg Duration" }) })] }), _jsx(Box, { borderStyle: "single", borderBottom: true, borderTop: false, borderLeft: false, borderRight: false, width: "100%" }), activeTools.map(([name, stats]) => (_jsx(StatRow, { name: name, stats: stats }, name))), _jsx(Box, { height: 1 }), _jsx(Text, { bold: true, children: "User Decision Summary" }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH + CALLS_COL_WIDTH + SUCCESS_RATE_COL_WIDTH, children: _jsx(Text, { color: Colors.LightBlue, children: "Total Reviewed Suggestions:" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { children: totalReviewed }) })] }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH + CALLS_COL_WIDTH + SUCCESS_RATE_COL_WIDTH, children: _jsx(Text, { children: " \u00BB Accepted:" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { color: Colors.AccentGreen, children: totalDecisions.accept }) })] }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH + CALLS_COL_WIDTH + SUCCESS_RATE_COL_WIDTH, children: _jsx(Text, { children: " \u00BB Rejected:" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { color: Colors.AccentRed, children: totalDecisions.reject }) })] }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH + CALLS_COL_WIDTH + SUCCESS_RATE_COL_WIDTH, children: _jsx(Text, { children: " \u00BB Modified:" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { color: Colors.AccentYellow, children: totalDecisions.modify }) })] }), _jsx(Box, { borderStyle: "single", borderBottom: true, borderTop: false, borderLeft: false, borderRight: false, width: "100%" }), _jsxs(Box, { children: [_jsx(Box, { width: TOOL_NAME_COL_WIDTH + CALLS_COL_WIDTH + SUCCESS_RATE_COL_WIDTH, children: _jsx(Text, { children: " Overall Agreement Rate:" }) }), _jsx(Box, { width: AVG_DURATION_COL_WIDTH, justifyContent: "flex-end", children: _jsx(Text, { bold: true, color: totalReviewed > 0 ? agreementColor : undefined, children: totalReviewed > 0 ? `${agreementRate.toFixed(1)}%` : '--' }) })] })] }));
40
+ };
41
+ //# sourceMappingURL=ToolStatsDisplay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolStatsDisplay.js","sourceRoot":"","sources":["../../../../src/ui/components/ToolStatsDisplay.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OA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F,KAAC,GAAG,IACF,KAAK,EAAE,mBAAmB,GAAG,eAAe,GAAG,sBAAsB,YAErE,KAAC,IAAI,oCAAoB,GACrB,EACN,KAAC,GAAG,IAAC,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAC,UAAU,YAC3D,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,YAAG,cAAc,CAAC,MAAM,GAAQ,GAC5D,IACF,EAGN,KAAC,GAAG,IACF,WAAW,EAAC,QAAQ,EACpB,YAAY,EAAE,IAAI,EAClB,SAAS,EAAE,KAAK,EAChB,UAAU,EAAE,KAAK,EACjB,WAAW,EAAE,KAAK,EAClB,KAAK,EAAC,MAAM,GACZ,EAEF,MAAC,GAAG,eACF,KAAC,GAAG,IACF,KAAK,EAAE,mBAAmB,GAAG,eAAe,GAAG,sBAAsB,YAErE,KAAC,IAAI,2CAAgC,GACjC,EACN,KAAC,GAAG,IAAC,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAC,UAAU,YAC3D,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAE,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,YAC7D,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,GACrD,GACH,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ interface UpdateNotificationProps {
7
+ message: string;
8
+ }
9
+ export declare const UpdateNotification: ({ message }: UpdateNotificationProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * @license
4
+ * Copyright 2025 Google LLC
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import { Box, Text } from 'ink';
8
+ import { Colors } from '../colors.js';
9
+ export const UpdateNotification = ({ message }) => (_jsx(Box, { borderStyle: "round", borderColor: Colors.AccentYellow, paddingX: 1, marginY: 1, children: _jsx(Text, { color: Colors.AccentYellow, children: message }) }));
10
+ //# sourceMappingURL=UpdateNotification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateNotification.js","sourceRoot":"","sources":["../../../../src/ui/components/UpdateNotification.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAMtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAE,OAAO,EAA2B,EAAE,EAAE,CAAC,CAC1E,KAAC,GAAG,IACF,WAAW,EAAC,OAAO,EACnB,WAAW,EAAE,MAAM,CAAC,YAAY,EAChC,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,CAAC,YAEV,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,YAAG,OAAO,GAAQ,GAC9C,CACP,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { ProjectSummary } from 'fss-link-core';
7
+ /**
8
+ * Props interface for the WelcomeBackDialog component
9
+ */
10
+ export interface WelcomeBackDialogProps {
11
+ /** The project summary containing session data, git status, and activity info */
12
+ projectSummary: ProjectSummary;
13
+ /** Callback when user selects to continue from previous session */
14
+ onContinue: () => void;
15
+ /** Callback when user selects to start a fresh session */
16
+ onRestart: () => void;
17
+ /** Callback when user cancels/exits without starting a session */
18
+ onCancel: () => void;
19
+ }
20
+ /** Available actions in the Welcome Back dialog */
21
+ export type ResumeAction = 'continue' | 'restart' | 'cancel';
22
+ /**
23
+ * Welcome Back dialog component using AuthDialog pattern for consistency
24
+ *
25
+ * Displays a comprehensive project status summary including:
26
+ * - Project goal and recent activity
27
+ * - Session history and momentum analysis
28
+ * - Git status with branch info and pending changes
29
+ * - Quick status dashboard with efficiency metrics
30
+ * - Keyboard shortcuts for quick navigation
31
+ *
32
+ * The component follows FSS Link's established UI patterns and provides
33
+ * the user with intelligent context to make informed decisions about
34
+ * how to resume their work.
35
+ */
36
+ export declare const WelcomeBackDialog: ({ projectSummary, onContinue, onRestart, onCancel, }: WelcomeBackDialogProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,109 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /**
3
+ * @license
4
+ * Copyright 2025 Google LLC
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import { Box, Text } from 'ink';
8
+ import { RadioButtonSelect } from './shared/RadioButtonSelect.js';
9
+ import { Colors } from '../colors.js';
10
+ import { useKeypress } from '../hooks/useKeypress.js';
11
+ /**
12
+ * Welcome Back dialog component using AuthDialog pattern for consistency
13
+ *
14
+ * Displays a comprehensive project status summary including:
15
+ * - Project goal and recent activity
16
+ * - Session history and momentum analysis
17
+ * - Git status with branch info and pending changes
18
+ * - Quick status dashboard with efficiency metrics
19
+ * - Keyboard shortcuts for quick navigation
20
+ *
21
+ * The component follows FSS Link's established UI patterns and provides
22
+ * the user with intelligent context to make informed decisions about
23
+ * how to resume their work.
24
+ */
25
+ export const WelcomeBackDialog = ({ projectSummary, onContinue, onRestart, onCancel, }) => {
26
+ // Handle keyboard shortcuts
27
+ useKeypress((key) => {
28
+ const { name, sequence } = key;
29
+ if (name === 'c' || sequence === 'C') {
30
+ onContinue();
31
+ }
32
+ else if (name === 'r' || sequence === 'R') {
33
+ onRestart();
34
+ }
35
+ else if (name === 'q' || sequence === 'Q' || name === 'escape') {
36
+ onCancel();
37
+ }
38
+ }, { isActive: true });
39
+ const getMomentumEmoji = (momentum) => {
40
+ switch (momentum) {
41
+ case 'high': return '🔥';
42
+ case 'building': return '📈';
43
+ case 'stale': return '💤';
44
+ case 'none':
45
+ default: return '📊';
46
+ }
47
+ };
48
+ const getMomentumColor = (momentum) => {
49
+ switch (momentum) {
50
+ case 'high': return Colors.AccentGreen;
51
+ case 'building': return Colors.AccentPurple;
52
+ case 'stale': return Colors.Gray;
53
+ default: return Colors.Foreground;
54
+ }
55
+ };
56
+ const getEfficiencyEmoji = (efficiency) => {
57
+ switch (efficiency) {
58
+ case 'high': return '💰';
59
+ case 'low': return '⚠️';
60
+ case 'normal':
61
+ default: return '📊';
62
+ }
63
+ };
64
+ const getEfficiencyColor = (efficiency) => {
65
+ switch (efficiency) {
66
+ case 'high': return Colors.AccentGreen;
67
+ case 'low': return Colors.AccentRed;
68
+ case 'normal':
69
+ default: return Colors.Foreground;
70
+ }
71
+ };
72
+ const items = [
73
+ {
74
+ label: `Continue Project`,
75
+ value: 'continue',
76
+ description: projectSummary.activeSessions > 0
77
+ ? `Resume from ${projectSummary.timeAgo} (${projectSummary.activeSessions} active sessions)`
78
+ : `Resume from ${projectSummary.timeAgo}`,
79
+ },
80
+ {
81
+ label: 'Start Fresh Session',
82
+ value: 'restart',
83
+ description: 'Begin new work session in this project',
84
+ },
85
+ {
86
+ label: 'Cancel',
87
+ value: 'cancel',
88
+ description: 'Exit without starting session',
89
+ },
90
+ ];
91
+ const handleSelection = (selection) => {
92
+ switch (selection) {
93
+ case 'continue':
94
+ onContinue();
95
+ break;
96
+ case 'restart':
97
+ onRestart();
98
+ break;
99
+ case 'cancel':
100
+ onCancel();
101
+ break;
102
+ default:
103
+ // All cases are exhaustively handled above
104
+ break;
105
+ }
106
+ };
107
+ return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Welcome Back to FSS Link" }) }), _jsxs(Box, { flexDirection: "column", marginBottom: 2, paddingX: 1, children: [projectSummary.projectGoal && (_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { color: Colors.Foreground, children: [_jsx(Text, { bold: true, children: "Project:" }), " ", projectSummary.projectGoal] }) })), _jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Last worked: " }), _jsx(Text, { color: Colors.Foreground, children: projectSummary.timeAgo })] }), _jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Sessions: " }), _jsx(Text, { color: Colors.Foreground, children: projectSummary.totalSessions }), projectSummary.activeSessions > 0 && (_jsxs(_Fragment, { children: [_jsx(Text, { color: Colors.Gray, children: " (" }), _jsxs(Text, { color: Colors.AccentGreen, children: [projectSummary.activeSessions, " active"] }), _jsx(Text, { color: Colors.Gray, children: ")" })] }))] }), _jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Momentum: " }), _jsxs(Text, { color: getMomentumColor(projectSummary.momentum), children: [getMomentumEmoji(projectSummary.momentum), " ", projectSummary.momentum] })] }), projectSummary.gitStatus && (_jsxs(Box, { flexDirection: "column", marginBottom: 1, children: [_jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Branch: " }), _jsx(Text, { color: Colors.AccentBlue, children: projectSummary.gitStatus.branch }), (projectSummary.gitStatus.ahead || projectSummary.gitStatus.behind) && (_jsxs(Text, { color: Colors.Gray, children: [' ', "[", projectSummary.gitStatus.ahead && `↑${projectSummary.gitStatus.ahead}`, projectSummary.gitStatus.ahead && projectSummary.gitStatus.behind && ' ', projectSummary.gitStatus.behind && `↓${projectSummary.gitStatus.behind}`, "]"] }))] }), projectSummary.gitStatus.hasChanges && (_jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Changes: " }), projectSummary.gitStatus.stagedFiles > 0 && (_jsxs(Text, { color: Colors.AccentGreen, children: [projectSummary.gitStatus.stagedFiles, " staged"] })), projectSummary.gitStatus.stagedFiles > 0 && projectSummary.gitStatus.unstagedFiles > 0 && (_jsx(Text, { color: Colors.Gray, children: ", " })), projectSummary.gitStatus.unstagedFiles > 0 && (_jsxs(Text, { color: Colors.AccentYellow, children: [projectSummary.gitStatus.unstagedFiles, " unstaged"] }))] })), projectSummary.gitStatus.lastCommitMessage && (_jsxs(Box, { flexDirection: "row", marginBottom: 1, children: [_jsx(Text, { color: Colors.Gray, children: "Last commit: " }), _jsxs(Text, { color: Colors.Foreground, children: [projectSummary.gitStatus.lastCommitHash, " \"", projectSummary.gitStatus.lastCommitMessage, "\""] })] }))] })), (projectSummary.efficiency || projectSummary.recentActivity || projectSummary.tokenEfficiency) && (_jsxs(Box, { flexDirection: "column", marginBottom: 1, paddingY: 1, borderStyle: "single", borderColor: Colors.Gray, children: [_jsx(Box, { marginBottom: 1, children: _jsx(Text, { bold: true, color: Colors.AccentPurple, children: "Quick Status" }) }), projectSummary.efficiency && (_jsx(Box, { flexDirection: "row", marginBottom: 1, children: _jsxs(Text, { color: getEfficiencyColor(projectSummary.efficiency), children: [getEfficiencyEmoji(projectSummary.efficiency), " ", projectSummary.efficiency, " efficiency"] }) })), projectSummary.recentActivity && (_jsx(Box, { marginBottom: 1, children: _jsx(Text, { color: Colors.Foreground, children: projectSummary.recentActivity }) })), projectSummary.tokenEfficiency && (_jsx(Box, { children: _jsx(Text, { color: Colors.Gray, children: projectSummary.tokenEfficiency }) }))] })), projectSummary.nextSuggestion && (_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { color: Colors.AccentPurple, children: ["\uD83D\uDCA1 ", projectSummary.nextSuggestion] }) })), projectSummary.lastContent && (_jsx(Box, { marginBottom: 1, children: _jsxs(Text, { color: Colors.Gray, children: ["Last message: \"", projectSummary.lastContent, "\""] }) }))] }), _jsx(RadioButtonSelect, { items: items, onSelect: handleSelection }), _jsx(Box, { marginTop: 1, paddingX: 1, children: _jsx(Text, { color: Colors.Gray, children: "Press C to continue, R to restart, Q to cancel, or use \u2191\u2193 arrows" }) })] }));
108
+ };
109
+ //# sourceMappingURL=WelcomeBackDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WelcomeBackDialog.js","sourceRoot":"","sources":["../../../../src/ui/components/WelcomeBackDialog.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAmBtD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,cAAc,EACd,UAAU,EACV,SAAS,EACT,QAAQ,GACe,EAAE,EAAE;IAE3B,4BAA4B;IAC5B,WAAW,CACT,CAAC,GAAG,EAAE,EAAE;QACN,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC;QAC/B,IAAI,IAAI,KAAK,GAAG,IAAI,QAAQ,KAAK,GAAG,EAAE,CAAC;YACrC,UAAU,EAAE,CAAC;QACf,CAAC;aAAM,IAAI,IAAI,KAAK,GAAG,IAAI,QAAQ,KAAK,GAAG,EAAE,CAAC;YAC5C,SAAS,EAAE,CAAC;QACd,CAAC;aAAM,IAAI,IAAI,KAAK,GAAG,IAAI,QAAQ,KAAK,GAAG,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;YACjE,QAAQ,EAAE,CAAC;QACb,CAAC;IACH,CAAC,EACD,EAAE,QAAQ,EAAE,IAAI,EAAE,CACnB,CAAC;IAEF,MAAM,gBAAgB,GAAG,CAAC,QAAgB,EAAE,EAAE;QAC5C,QAAQ,QAAQ,EAAE,CAAC;YACjB,KAAK,MAAM,CAAC,CAAC,OAAO,IAAI,CAAC;YACzB,KAAK,UAAU,CAAC,CAAC,OAAO,IAAI,CAAC;YAC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cAAc,CAAC,cAAc,IAC5B,GACH,CACP,EAEA,cAAc,CAAC,WAAW,IAAI,CAC7B,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,YAClB,MAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,iCACD,cAAc,CAAC,WAAW,UAC1C,GACH,CACP,IACG,EAGN,KAAC,iBAAiB,IAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,eAAe,GACzB,EAGF,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,YAC5B,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,2FAEjB,GACH,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import React from 'react';
7
+ import { CompressionProps } from '../../types.js';
8
+ export interface CompressionDisplayProps {
9
+ compression: CompressionProps;
10
+ }
11
+ export declare const CompressionMessage: React.FC<CompressionDisplayProps>;
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ import Spinner from 'ink-spinner';
4
+ import { Colors } from '../../colors.js';
5
+ /*
6
+ * Compression messages appear when the /compress command is run, and show a loading spinner
7
+ * while compression is in progress, followed up by some compression stats.
8
+ */
9
+ export const CompressionMessage = ({ compression, }) => {
10
+ const text = compression.isPending
11
+ ? 'Compressing chat history'
12
+ : `Chat history compressed from ${compression.originalTokenCount ?? 'unknown'}` +
13
+ ` to ${compression.newTokenCount ?? 'unknown'} tokens.`;
14
+ return (_jsxs(Box, { flexDirection: "row", children: [_jsx(Box, { marginRight: 1, children: compression.isPending ? (_jsx(Spinner, { type: "dots" })) : (_jsx(Text, { color: Colors.AccentPurple, children: "\u2726" })) }), _jsx(Box, { children: _jsx(Text, { color: compression.isPending ? Colors.AccentPurple : Colors.AccentGreen, children: text }) })] }));
15
+ };
16
+ //# sourceMappingURL=CompressionMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompressionMessage.js","sourceRoot":"","sources":["../../../../../src/ui/components/messages/CompressionMessage.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhC,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAMzC;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAsC,CAAC,EACpE,WAAW,GACZ,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,WAAW,CAAC,SAAS;QAChC,CAAC,CAAC,0BAA0B;QAC5B,CAAC,CAAC,gCAAgC,WAAW,CAAC,kBAAkB,IAAI,SAAS,EAAE;YAC7E,OAAO,WAAW,CAAC,aAAa,IAAI,SAAS,UAAU,CAAC;IAE5D,OAAO,CACL,MAAC,GAAG,IAAC,aAAa,EAAC,KAAK,aACtB,KAAC,GAAG,IAAC,WAAW,EAAE,CAAC,YAChB,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CACvB,KAAC,OAAO,IAAC,IAAI,EAAC,MAAM,GAAG,CACxB,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,uBAAU,CAC3C,GACG,EACN,KAAC,GAAG,cACF,KAAC,IAAI,IACH,KAAK,EACH,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,YAGjE,IAAI,GACA,GACH,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import React from 'react';
7
+ interface DiffRendererProps {
8
+ diffContent: string;
9
+ filename?: string;
10
+ tabWidth?: number;
11
+ availableTerminalHeight?: number;
12
+ terminalWidth: number;
13
+ theme?: import('../../themes/theme.js').Theme;
14
+ }
15
+ export declare const DiffRenderer: React.FC<DiffRendererProps>;
16
+ export {};
@@ -0,0 +1,222 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Box, Text } from 'ink';
3
+ import { Colors } from '../../colors.js';
4
+ import crypto from 'crypto';
5
+ import { colorizeCode, colorizeLine } from '../../utils/CodeColorizer.js';
6
+ import { MaxSizedBox } from '../shared/MaxSizedBox.js';
7
+ import { theme } from '../../semantic-colors.js';
8
+ function parseDiffWithLineNumbers(diffContent) {
9
+ const lines = diffContent.split('\n');
10
+ const result = [];
11
+ let currentOldLine = 0;
12
+ let currentNewLine = 0;
13
+ let inHunk = false;
14
+ const hunkHeaderRegex = /^@@ -(\d+),?\d* \+(\d+),?\d* @@/;
15
+ for (const line of lines) {
16
+ const hunkMatch = line.match(hunkHeaderRegex);
17
+ if (hunkMatch) {
18
+ currentOldLine = parseInt(hunkMatch[1], 10);
19
+ currentNewLine = parseInt(hunkMatch[2], 10);
20
+ inHunk = true;
21
+ result.push({ type: 'hunk', content: line });
22
+ // We need to adjust the starting point because the first line number applies to the *first* actual line change/context,
23
+ // but we increment *before* pushing that line. So decrement here.
24
+ currentOldLine--;
25
+ currentNewLine--;
26
+ continue;
27
+ }
28
+ if (!inHunk) {
29
+ // Skip standard Git header lines more robustly
30
+ if (line.startsWith('--- ') ||
31
+ line.startsWith('+++ ') ||
32
+ line.startsWith('diff --git') ||
33
+ line.startsWith('index ') ||
34
+ line.startsWith('similarity index') ||
35
+ line.startsWith('rename from') ||
36
+ line.startsWith('rename to') ||
37
+ line.startsWith('new file mode') ||
38
+ line.startsWith('deleted file mode'))
39
+ continue;
40
+ // If it's not a hunk or header, skip (or handle as 'other' if needed)
41
+ continue;
42
+ }
43
+ if (line.startsWith('+')) {
44
+ currentNewLine++; // Increment before pushing
45
+ result.push({
46
+ type: 'add',
47
+ newLine: currentNewLine,
48
+ content: line.substring(1),
49
+ });
50
+ }
51
+ else if (line.startsWith('-')) {
52
+ currentOldLine++; // Increment before pushing
53
+ result.push({
54
+ type: 'del',
55
+ oldLine: currentOldLine,
56
+ content: line.substring(1),
57
+ });
58
+ }
59
+ else if (line.startsWith(' ')) {
60
+ currentOldLine++; // Increment before pushing
61
+ currentNewLine++;
62
+ result.push({
63
+ type: 'context',
64
+ oldLine: currentOldLine,
65
+ newLine: currentNewLine,
66
+ content: line.substring(1),
67
+ });
68
+ }
69
+ else if (line.startsWith('\\')) {
70
+ // Handle ""
71
+ result.push({ type: 'other', content: line });
72
+ }
73
+ }
74
+ return result;
75
+ }
76
+ const DEFAULT_TAB_WIDTH = 4; // Spaces per tab for normalization
77
+ export const DiffRenderer = ({ diffContent, filename, tabWidth = DEFAULT_TAB_WIDTH, availableTerminalHeight, terminalWidth, theme, }) => {
78
+ if (!diffContent || typeof diffContent !== 'string') {
79
+ return _jsx(Text, { color: Colors.AccentYellow, children: "No diff content." });
80
+ }
81
+ const parsedLines = parseDiffWithLineNumbers(diffContent);
82
+ if (parsedLines.length === 0) {
83
+ return (_jsx(Box, { borderStyle: "round", borderColor: Colors.Gray, padding: 1, children: _jsx(Text, { dimColor: true, children: "No changes detected." }) }));
84
+ }
85
+ // Check if the diff represents a new file (only additions and header lines)
86
+ const isNewFile = parsedLines.every((line) => line.type === 'add' ||
87
+ line.type === 'hunk' ||
88
+ line.type === 'other' ||
89
+ line.content.startsWith('diff --git') ||
90
+ line.content.startsWith('new file mode'));
91
+ let renderedOutput;
92
+ if (isNewFile) {
93
+ // Extract only the added lines' content
94
+ const addedContent = parsedLines
95
+ .filter((line) => line.type === 'add')
96
+ .map((line) => line.content)
97
+ .join('\n');
98
+ // Attempt to infer language from filename, default to plain text if no filename
99
+ const fileExtension = filename?.split('.').pop() || null;
100
+ const language = fileExtension
101
+ ? getLanguageFromExtension(fileExtension)
102
+ : null;
103
+ renderedOutput = colorizeCode(addedContent, language, availableTerminalHeight, terminalWidth, theme);
104
+ }
105
+ else {
106
+ renderedOutput = renderDiffContent(parsedLines, filename, tabWidth, availableTerminalHeight, terminalWidth);
107
+ }
108
+ return renderedOutput;
109
+ };
110
+ const renderDiffContent = (parsedLines, filename, tabWidth = DEFAULT_TAB_WIDTH, availableTerminalHeight, terminalWidth) => {
111
+ // 1. Normalize whitespace (replace tabs with spaces) *before* further processing
112
+ const normalizedLines = parsedLines.map((line) => ({
113
+ ...line,
114
+ content: line.content.replace(/\t/g, ' '.repeat(tabWidth)),
115
+ }));
116
+ // Filter out non-displayable lines (hunks, potentially 'other') using the normalized list
117
+ const displayableLines = normalizedLines.filter((l) => l.type !== 'hunk' && l.type !== 'other');
118
+ if (displayableLines.length === 0) {
119
+ return (_jsx(Box, { borderStyle: "round", borderColor: Colors.Gray, padding: 1, children: _jsx(Text, { dimColor: true, children: "No changes detected." }) }));
120
+ }
121
+ const maxLineNumber = Math.max(0, ...displayableLines.map((l) => l.oldLine ?? 0), ...displayableLines.map((l) => l.newLine ?? 0));
122
+ const gutterWidth = Math.max(1, maxLineNumber.toString().length);
123
+ const fileExtension = filename?.split('.').pop() || null;
124
+ const language = fileExtension
125
+ ? getLanguageFromExtension(fileExtension)
126
+ : null;
127
+ // Calculate the minimum indentation across all displayable lines
128
+ let baseIndentation = Infinity; // Start high to find the minimum
129
+ for (const line of displayableLines) {
130
+ // Only consider lines with actual content for indentation calculation
131
+ if (line.content.trim() === '')
132
+ continue;
133
+ const firstCharIndex = line.content.search(/\S/); // Find index of first non-whitespace char
134
+ const currentIndent = firstCharIndex === -1 ? 0 : firstCharIndex; // Indent is 0 if no non-whitespace found
135
+ baseIndentation = Math.min(baseIndentation, currentIndent);
136
+ }
137
+ // If baseIndentation remained Infinity (e.g., no displayable lines with content), default to 0
138
+ if (!isFinite(baseIndentation)) {
139
+ baseIndentation = 0;
140
+ }
141
+ const key = filename
142
+ ? `diff-box-${filename}`
143
+ : `diff-box-${crypto.createHash('sha1').update(JSON.stringify(parsedLines)).digest('hex')}`;
144
+ let lastLineNumber = null;
145
+ const MAX_CONTEXT_LINES_WITHOUT_GAP = 5;
146
+ return (_jsx(MaxSizedBox, { maxHeight: availableTerminalHeight, maxWidth: terminalWidth, children: displayableLines.reduce((acc, line, index) => {
147
+ // Determine the relevant line number for gap calculation based on type
148
+ let relevantLineNumberForGapCalc = null;
149
+ if (line.type === 'add' || line.type === 'context') {
150
+ relevantLineNumberForGapCalc = line.newLine ?? null;
151
+ }
152
+ else if (line.type === 'del') {
153
+ // For deletions, the gap is typically in relation to the original file's line numbering
154
+ relevantLineNumberForGapCalc = line.oldLine ?? null;
155
+ }
156
+ if (lastLineNumber !== null &&
157
+ relevantLineNumberForGapCalc !== null &&
158
+ relevantLineNumberForGapCalc >
159
+ lastLineNumber + MAX_CONTEXT_LINES_WITHOUT_GAP + 1) {
160
+ acc.push(_jsx(Box, { children: _jsx(Text, { wrap: "truncate", color: Colors.Gray, children: '═'.repeat(terminalWidth) }) }, `gap-${index}`));
161
+ }
162
+ const lineKey = `diff-line-${index}`;
163
+ let gutterNumStr = '';
164
+ let prefixSymbol = ' ';
165
+ switch (line.type) {
166
+ case 'add':
167
+ gutterNumStr = (line.newLine ?? '').toString();
168
+ prefixSymbol = '+';
169
+ lastLineNumber = line.newLine ?? null;
170
+ break;
171
+ case 'del':
172
+ gutterNumStr = (line.oldLine ?? '').toString();
173
+ prefixSymbol = '-';
174
+ // For deletions, update lastLineNumber based on oldLine if it's advancing.
175
+ // This helps manage gaps correctly if there are multiple consecutive deletions
176
+ // or if a deletion is followed by a context line far away in the original file.
177
+ if (line.oldLine !== undefined) {
178
+ lastLineNumber = line.oldLine;
179
+ }
180
+ break;
181
+ case 'context':
182
+ gutterNumStr = (line.newLine ?? '').toString();
183
+ prefixSymbol = ' ';
184
+ lastLineNumber = line.newLine ?? null;
185
+ break;
186
+ default:
187
+ return acc;
188
+ }
189
+ const displayContent = line.content.substring(baseIndentation);
190
+ acc.push(_jsxs(Box, { flexDirection: "row", children: [_jsxs(Text, { color: theme.text.secondary, backgroundColor: line.type === 'add'
191
+ ? theme.background.diff.added
192
+ : line.type === 'del'
193
+ ? theme.background.diff.removed
194
+ : undefined, children: [gutterNumStr.padStart(gutterWidth), ' '] }), line.type === 'context' ? (_jsxs(_Fragment, { children: [_jsxs(Text, { children: [prefixSymbol, " "] }), _jsx(Text, { wrap: "wrap", children: colorizeLine(displayContent, language) })] })) : (_jsxs(Text, { backgroundColor: line.type === 'add'
195
+ ? theme.background.diff.added
196
+ : theme.background.diff.removed, wrap: "wrap", children: [_jsx(Text, { color: line.type === 'add'
197
+ ? theme.status.success
198
+ : theme.status.error, children: prefixSymbol }), ' ', colorizeLine(displayContent, language)] }))] }, lineKey));
199
+ return acc;
200
+ }, []) }, key));
201
+ };
202
+ const getLanguageFromExtension = (extension) => {
203
+ const languageMap = {
204
+ js: 'javascript',
205
+ ts: 'typescript',
206
+ py: 'python',
207
+ json: 'json',
208
+ css: 'css',
209
+ html: 'html',
210
+ sh: 'bash',
211
+ md: 'markdown',
212
+ yaml: 'yaml',
213
+ yml: 'yaml',
214
+ txt: 'plaintext',
215
+ java: 'java',
216
+ c: 'c',
217
+ cpp: 'cpp',
218
+ rb: 'ruby',
219
+ };
220
+ return languageMap[extension] || null; // Return null if extension not found
221
+ };
222
+ //# sourceMappingURL=DiffRenderer.js.map