saeeol 1.1.1 → 1.2.1

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 (379) hide show
  1. package/package.json +14 -14
  2. package/script/build.ts +1 -1
  3. package/src/addons/addon-analytics.ts +1 -1
  4. package/src/cli/cmd/tui/routes/session/suggest.tsx +1 -1
  5. package/src/cli/logo.ts +1 -1
  6. package/src/cli/ui.ts +1 -1
  7. package/src/config/config-loader.ts +1 -1
  8. package/src/config/config-schema.ts +1 -1
  9. package/src/config/config.ts +1 -1
  10. package/src/config/markdown.ts +1 -1
  11. package/src/index.ts +2 -2
  12. package/src/lsp/lsp.ts +1 -1
  13. package/src/lsp/server-web.ts +1 -1
  14. package/src/mcp/oauth-callback.ts +1 -1
  15. package/src/{saeeol → overlay}/encoding.ts +1 -1
  16. package/src/{saeeol → overlay}/text-stream.ts +1 -1
  17. package/src/{saeeol → overlay}/tool/encoded-io.ts +1 -1
  18. package/src/patch/patch-apply.ts +1 -1
  19. package/src/patch/patch-parse.ts +1 -1
  20. package/src/session/compaction-helpers.ts +1 -169
  21. package/src/session/compaction.ts +1 -712
  22. package/src/session/core/compaction/compaction-helpers.ts +169 -0
  23. package/src/session/core/compaction/compaction.ts +712 -0
  24. package/src/session/core/compaction/overflow.ts +28 -0
  25. package/src/session/core/instruction.ts +234 -0
  26. package/src/session/core/llm.ts +504 -0
  27. package/src/session/core/network.ts +392 -0
  28. package/src/session/core/processor.ts +731 -0
  29. package/src/session/core/projectors.ts +139 -0
  30. package/src/session/core/resolve-tools.ts +241 -0
  31. package/src/session/core/retry.ts +149 -0
  32. package/src/session/core/revert.ts +173 -0
  33. package/src/session/core/run-state.ts +110 -0
  34. package/src/session/core/schema.ts +35 -0
  35. package/src/session/core/session-types.ts +160 -0
  36. package/src/session/core/session.sql.ts +124 -0
  37. package/src/session/core/session.ts +948 -0
  38. package/src/session/core/shell-exec.ts +205 -0
  39. package/src/session/core/status.ts +100 -0
  40. package/src/session/core/subtask.ts +268 -0
  41. package/src/session/core/summary.ts +173 -0
  42. package/src/session/core/system.ts +114 -0
  43. package/src/session/core/todo.ts +86 -0
  44. package/src/session/core/user-part.ts +293 -0
  45. package/src/session/instruction.ts +1 -234
  46. package/src/session/llm.ts +1 -504
  47. package/src/session/message/message-errors.ts +83 -0
  48. package/src/session/message/message-parts.ts +89 -0
  49. package/src/session/message/message-query.ts +107 -0
  50. package/src/session/message/message-transform.ts +156 -0
  51. package/src/session/message/message-types.ts +68 -0
  52. package/src/session/message/message-v2.ts +73 -0
  53. package/src/session/message/message.ts +192 -0
  54. package/src/session/message-errors.ts +1 -83
  55. package/src/session/message-parts.ts +1 -89
  56. package/src/session/message-query.ts +1 -107
  57. package/src/session/message-transform.ts +1 -156
  58. package/src/session/message-types.ts +1 -68
  59. package/src/session/message-v2.ts +1 -73
  60. package/src/session/message.ts +1 -192
  61. package/src/session/network.ts +1 -392
  62. package/src/session/overflow.ts +1 -28
  63. package/src/session/processor.ts +1 -731
  64. package/src/session/projectors.ts +2 -139
  65. package/src/session/prompt/prompt-command.ts +93 -0
  66. package/src/session/prompt/prompt-loop.ts +299 -0
  67. package/src/session/prompt/prompt-model.ts +44 -0
  68. package/src/session/prompt/prompt-reminders.ts +120 -0
  69. package/src/session/prompt/prompt-resolve.ts +42 -0
  70. package/src/session/prompt/prompt-schemas.ts +128 -0
  71. package/src/session/prompt/prompt-title.ts +55 -0
  72. package/src/session/prompt/prompt-types.ts +47 -0
  73. package/src/session/prompt/prompt-user-msg.ts +80 -0
  74. package/src/session/prompt/prompt.ts +211 -0
  75. package/src/session/prompt-command.ts +1 -93
  76. package/src/session/prompt-loop.ts +1 -299
  77. package/src/session/prompt-model.ts +1 -44
  78. package/src/session/prompt-reminders.ts +1 -120
  79. package/src/session/prompt-resolve.ts +1 -42
  80. package/src/session/prompt-schemas.ts +1 -128
  81. package/src/session/prompt-title.ts +1 -55
  82. package/src/session/prompt-types.ts +1 -47
  83. package/src/session/prompt-user-msg.ts +1 -80
  84. package/src/session/prompt.ts +1 -211
  85. package/src/session/resolve-tools.ts +1 -241
  86. package/src/session/retry.ts +1 -149
  87. package/src/session/revert.ts +1 -173
  88. package/src/session/run-state.ts +1 -110
  89. package/src/session/schema.ts +1 -35
  90. package/src/session/session-types.ts +1 -160
  91. package/src/session/session.sql.ts +1 -124
  92. package/src/session/session.ts +1 -948
  93. package/src/session/shell-exec.ts +1 -205
  94. package/src/session/status.ts +1 -100
  95. package/src/session/subtask.ts +1 -268
  96. package/src/session/summary.ts +1 -173
  97. package/src/session/system.ts +1 -114
  98. package/src/session/todo.ts +1 -86
  99. package/src/session/user-part.ts +1 -293
  100. package/src/skill/index.ts +1 -1
  101. package/src/suggestion/index.ts +1 -1
  102. package/src/tool/apply_patch.ts +2 -2
  103. package/src/tool/edit.ts +2 -2
  104. package/src/tool/read.ts +2 -2
  105. package/src/tool/recall.ts +1 -1
  106. package/src/tool/registry.ts +2 -2
  107. package/src/tool/suggest.ts +1 -1
  108. package/src/tool/task.ts +3 -3
  109. package/src/tool/todo.ts +1 -1
  110. package/src/tool/write.ts +2 -2
  111. package/test/lsp/index.test.ts +1 -1
  112. package/test/saeeol/agent-manager-tool.test.ts +1 -1
  113. package/test/saeeol/ask-agent-permissions.test.ts +1 -1
  114. package/test/saeeol/bash-hierarchy.test.ts +1 -1
  115. package/test/saeeol/builtin-skills.test.ts +1 -1
  116. package/test/saeeol/cli/dev-setup.test.ts +1 -1
  117. package/test/saeeol/cli/roll-call.test.ts +1 -1
  118. package/test/saeeol/cli-run-auto-helper.test.ts +1 -1
  119. package/test/saeeol/codex-auth-refresh.test.ts +1 -1
  120. package/test/saeeol/commit-message/generate.test.ts +1 -1
  121. package/test/saeeol/commit-message/git-context.test.ts +1 -1
  122. package/test/saeeol/commit-message-windows.test.ts +1 -1
  123. package/test/saeeol/compaction-payload-recovery.test.ts +1 -1
  124. package/test/saeeol/config/config.test.ts +1 -1
  125. package/test/saeeol/config-injector.test.ts +1 -1
  126. package/test/saeeol/config-validation.test.ts +1 -1
  127. package/test/saeeol/cost-propagation.test.ts +1 -1
  128. package/test/saeeol/custom-provider-delete.test.ts +1 -1
  129. package/test/saeeol/diff-full.test.ts +1 -1
  130. package/test/saeeol/encoding.test.ts +1 -1
  131. package/test/saeeol/enhance-prompt.test.ts +1 -1
  132. package/test/saeeol/ensure-plan-dir.test.ts +1 -1
  133. package/test/saeeol/errors.test.ts +1 -1
  134. package/test/saeeol/help.test.ts +3 -3
  135. package/test/saeeol/ignore-migrator.test.ts +1 -1
  136. package/test/saeeol/indexing-auth.test.ts +1 -1
  137. package/test/saeeol/indexing-feature.test.ts +1 -1
  138. package/test/saeeol/indexing-label.test.ts +1 -1
  139. package/test/saeeol/indexing-startup.test.ts +1 -1
  140. package/test/saeeol/indexing-worktree.test.ts +1 -1
  141. package/test/saeeol/lancedb-runtime.test.ts +9 -9
  142. package/test/saeeol/logo.test.ts +1 -1
  143. package/test/saeeol/lsp-typescript-lightweight.test.ts +2 -2
  144. package/test/saeeol/mcp-migrator.test.ts +1 -1
  145. package/test/saeeol/model-info-panel-utils.test.ts +1 -1
  146. package/test/saeeol/modes-migrator.test.ts +1 -1
  147. package/test/saeeol/paths.test.ts +1 -1
  148. package/test/saeeol/permission/config-paths.test.ts +2 -2
  149. package/test/saeeol/permission/external-directory-allow.test.ts +1 -1
  150. package/test/saeeol/plan-exit-detection.test.ts +1 -1
  151. package/test/saeeol/plan-followup.test.ts +2 -2
  152. package/test/saeeol/project-id.test.ts +1 -1
  153. package/test/saeeol/question-dismiss-all.test.ts +1 -1
  154. package/test/saeeol/rules-migrator.test.ts +1 -1
  155. package/test/saeeol/semantic-search.test.ts +2 -2
  156. package/test/saeeol/session/platform-attribution.test.ts +1 -1
  157. package/test/saeeol/session-compaction-cap.test.ts +2 -2
  158. package/test/saeeol/session-compaction-chunks.test.ts +1 -1
  159. package/test/saeeol/session-compaction-safety.test.ts +1 -1
  160. package/test/saeeol/session-import-service.test.ts +1 -1
  161. package/test/saeeol/session-processor-empty-tool-calls.test.ts +1 -1
  162. package/test/saeeol/session-processor-review-telemetry.test.ts +1 -1
  163. package/test/saeeol/session-prompt-queue.test.ts +1 -1
  164. package/test/saeeol/sessions/remote-sender.test.ts +1 -1
  165. package/test/saeeol/snapshot-track-timeout.test.ts +1 -1
  166. package/test/saeeol/suggestion/auto-dismiss.test.ts +2 -2
  167. package/test/saeeol/suggestion/suggestion.test.ts +1 -1
  168. package/test/saeeol/suggestion/tool.test.ts +2 -2
  169. package/test/saeeol/system-prompt.test.ts +1 -1
  170. package/test/saeeol/todo-view.test.ts +1 -1
  171. package/test/saeeol/tool-registry-indexing.test.ts +3 -3
  172. package/test/saeeol/tui-diff.test.ts +1 -1
  173. package/test/saeeol/tui-sync.test.ts +1 -1
  174. package/test/saeeol/util/url.test.ts +1 -1
  175. package/test/saeeol/workflows-migrator.test.ts +1 -1
  176. package/test/saeeol/worktree-diff-summary.test.ts +1 -1
  177. package/tsconfig.json +1 -1
  178. /package/src/{saeeol → overlay}/agent/agent-remove.ts +0 -0
  179. /package/src/{saeeol → overlay}/agent/index.ts +0 -0
  180. /package/src/{saeeol → overlay}/agent/patch-agents.ts +0 -0
  181. /package/src/{saeeol → overlay}/agent/permissions.ts +0 -0
  182. /package/src/{saeeol → overlay}/agent-manager/event.ts +0 -0
  183. /package/src/{saeeol → overlay}/bash-hierarchy.ts +0 -0
  184. /package/src/{saeeol → overlay}/bell.ts +0 -0
  185. /package/src/{saeeol → overlay}/bootstrap.ts +0 -0
  186. /package/src/{saeeol → overlay}/claw/autocomplete-popup.tsx +0 -0
  187. /package/src/{saeeol → overlay}/claw/autocomplete-ref.ts +0 -0
  188. /package/src/{saeeol → overlay}/claw/autocomplete-types.ts +0 -0
  189. /package/src/{saeeol → overlay}/claw/autocomplete.tsx +0 -0
  190. /package/src/{saeeol → overlay}/claw/chat-client.ts +0 -0
  191. /package/src/{saeeol → overlay}/claw/chat.tsx +0 -0
  192. /package/src/{saeeol → overlay}/claw/client-events.ts +0 -0
  193. /package/src/{saeeol → overlay}/claw/client-helpers.ts +0 -0
  194. /package/src/{saeeol → overlay}/claw/client.ts +0 -0
  195. /package/src/{saeeol → overlay}/claw/dialog-conversation-list.tsx +0 -0
  196. /package/src/{saeeol → overlay}/claw/event-service-client-core.ts +0 -0
  197. /package/src/{saeeol → overlay}/claw/event-service-client-impl.ts +0 -0
  198. /package/src/{saeeol → overlay}/claw/event-service-client.ts +0 -0
  199. /package/src/{saeeol → overlay}/claw/hooks.ts +0 -0
  200. /package/src/{saeeol → overlay}/claw/sidebar.tsx +0 -0
  201. /package/src/{saeeol → overlay}/claw/types.ts +0 -0
  202. /package/src/{saeeol → overlay}/claw/view.tsx +0 -0
  203. /package/src/{saeeol → overlay}/cli/cmd/roll-call-call.ts +0 -0
  204. /package/src/{saeeol → overlay}/cli/cmd/roll-call-format.ts +0 -0
  205. /package/src/{saeeol → overlay}/cli/cmd/roll-call.ts +0 -0
  206. /package/src/{saeeol → overlay}/cli/cmd/tui/app.tsx +0 -0
  207. /package/src/{saeeol → overlay}/cli/cmd/tui/component/dialog-provider.tsx +0 -0
  208. /package/src/{saeeol → overlay}/cli/cmd/tui/feedback.ts +0 -0
  209. /package/src/{saeeol → overlay}/cli/cmd/tui/util/terminal.ts +0 -0
  210. /package/src/{saeeol → overlay}/cli/dev-setup-utils.ts +0 -0
  211. /package/src/{saeeol → overlay}/cli/dev-setup.ts +0 -0
  212. /package/src/{saeeol → overlay}/cli/heap-snapshot.ts +0 -0
  213. /package/src/{saeeol → overlay}/cli/logo.ts +0 -0
  214. /package/src/{saeeol → overlay}/cli/run-auto.ts +0 -0
  215. /package/src/{saeeol → overlay}/cli/saeeol-logo.ts +0 -0
  216. /package/src/{saeeol → overlay}/cloud-session.ts +0 -0
  217. /package/src/{saeeol → overlay}/commands-index.ts +0 -0
  218. /package/src/{saeeol → overlay}/commands.ts +0 -0
  219. /package/src/{saeeol → overlay}/commands.tsx +0 -0
  220. /package/src/{saeeol → overlay}/commit-message/generate.ts +0 -0
  221. /package/src/{saeeol → overlay}/commit-message/git-context.ts +0 -0
  222. /package/src/{saeeol → overlay}/commit-message/index.ts +0 -0
  223. /package/src/{saeeol → overlay}/commit-message/types.ts +0 -0
  224. /package/src/{saeeol → overlay}/components/dialog-auto-method.tsx +0 -0
  225. /package/src/{saeeol → overlay}/components/dialog-claw-setup.tsx +0 -0
  226. /package/src/{saeeol → overlay}/components/dialog-claw-upgrade.tsx +0 -0
  227. /package/src/{saeeol → overlay}/components/dialog-indexing-helpers.ts +0 -0
  228. /package/src/{saeeol → overlay}/components/dialog-indexing.tsx +0 -0
  229. /package/src/{saeeol → overlay}/components/dialog-notifications.tsx +0 -0
  230. /package/src/{saeeol → overlay}/components/dialog-organization.tsx +0 -0
  231. /package/src/{saeeol → overlay}/components/dialog-profile.tsx +0 -0
  232. /package/src/{saeeol → overlay}/components/dialog-provider-settings.tsx +0 -0
  233. /package/src/{saeeol → overlay}/components/dialog-team-select.tsx +0 -0
  234. /package/src/{saeeol → overlay}/components/dialog-tuning.tsx +0 -0
  235. /package/src/{saeeol → overlay}/components/dialog-vector-store.tsx +0 -0
  236. /package/src/{saeeol → overlay}/components/error-display.tsx +0 -0
  237. /package/src/{saeeol → overlay}/components/model-info-panel-utils.ts +0 -0
  238. /package/src/{saeeol → overlay}/components/model-info-panel.tsx +0 -0
  239. /package/src/{saeeol → overlay}/components/news.tsx +0 -0
  240. /package/src/{saeeol → overlay}/components/notification-banner.tsx +0 -0
  241. /package/src/{saeeol → overlay}/components/session-indexing.tsx +0 -0
  242. /package/src/{saeeol → overlay}/components/tips.tsx +0 -0
  243. /package/src/{saeeol → overlay}/config/config-core.ts +0 -0
  244. /package/src/{saeeol → overlay}/config/config-helpers.ts +0 -0
  245. /package/src/{saeeol → overlay}/config/config-legacy.ts +0 -0
  246. /package/src/{saeeol → overlay}/config/config.ts +0 -0
  247. /package/src/{saeeol → overlay}/config/default-plugins.ts +0 -0
  248. /package/src/{saeeol → overlay}/config/markdown.ts +0 -0
  249. /package/src/{saeeol → overlay}/config-injector.ts +0 -0
  250. /package/src/{saeeol → overlay}/config-validation.ts +0 -0
  251. /package/src/{saeeol → overlay}/const.ts +0 -0
  252. /package/src/{saeeol → overlay}/cost-tracker/format.ts +0 -0
  253. /package/src/{saeeol → overlay}/cost-tracker/index.ts +0 -0
  254. /package/src/{saeeol → overlay}/cost-tracker/state.ts +0 -0
  255. /package/src/{saeeol → overlay}/cost-tracker/types.ts +0 -0
  256. /package/src/{saeeol → overlay}/docs/migration.md +0 -0
  257. /package/src/{saeeol → overlay}/docs/rules-migration.md +0 -0
  258. /package/src/{saeeol → overlay}/editor-context.ts +0 -0
  259. /package/src/{saeeol → overlay}/enhance-prompt.ts +0 -0
  260. /package/src/{saeeol → overlay}/errors.ts +0 -0
  261. /package/src/{saeeol → overlay}/generate-cli-docs.ts +0 -0
  262. /package/src/{saeeol → overlay}/help-command.ts +0 -0
  263. /package/src/{saeeol → overlay}/help.ts +0 -0
  264. /package/src/{saeeol → overlay}/i18n/index.ts +0 -0
  265. /package/src/{saeeol → overlay}/ignore-migrator.ts +0 -0
  266. /package/src/{saeeol → overlay}/index.ts +0 -0
  267. /package/src/{saeeol → overlay}/indexing-auth.ts +0 -0
  268. /package/src/{saeeol → overlay}/indexing-feature.ts +0 -0
  269. /package/src/{saeeol → overlay}/indexing-helpers.ts +0 -0
  270. /package/src/{saeeol → overlay}/indexing-label.ts +0 -0
  271. /package/src/{saeeol → overlay}/indexing-state.ts +0 -0
  272. /package/src/{saeeol → overlay}/indexing-types.ts +0 -0
  273. /package/src/{saeeol → overlay}/indexing.ts +0 -0
  274. /package/src/{saeeol → overlay}/lancedb.ts +0 -0
  275. /package/src/{saeeol → overlay}/mcp-migrator.ts +0 -0
  276. /package/src/{saeeol → overlay}/mcp-oauth-callback.ts +0 -0
  277. /package/src/{saeeol → overlay}/memory/age.ts +0 -0
  278. /package/src/{saeeol → overlay}/memory/index.ts +0 -0
  279. /package/src/{saeeol → overlay}/memory/paths.ts +0 -0
  280. /package/src/{saeeol → overlay}/memory/scan.ts +0 -0
  281. /package/src/{saeeol → overlay}/memory/types.ts +0 -0
  282. /package/src/{saeeol → overlay}/model-match.ts +0 -0
  283. /package/src/{saeeol → overlay}/modes-migrator.ts +0 -0
  284. /package/src/{saeeol → overlay}/paths.ts +0 -0
  285. /package/src/{saeeol → overlay}/permission/config-paths.ts +0 -0
  286. /package/src/{saeeol → overlay}/permission/drain.ts +0 -0
  287. /package/src/{saeeol → overlay}/permission/external-directory.ts +0 -0
  288. /package/src/{saeeol → overlay}/permission/read.ts +0 -0
  289. /package/src/{saeeol → overlay}/permission/routes.ts +0 -0
  290. /package/src/{saeeol → overlay}/permission/rule.ts +0 -0
  291. /package/src/{saeeol → overlay}/plan-followup-handover.ts +0 -0
  292. /package/src/{saeeol → overlay}/plan-followup-runtime.ts +0 -0
  293. /package/src/{saeeol → overlay}/plan-followup-session.ts +0 -0
  294. /package/src/{saeeol → overlay}/plan-followup.ts +0 -0
  295. /package/src/{saeeol → overlay}/plugins/home-footer.tsx +0 -0
  296. /package/src/{saeeol → overlay}/plugins/home-news.tsx +0 -0
  297. /package/src/{saeeol → overlay}/plugins/home-onboarding.tsx +0 -0
  298. /package/src/{saeeol → overlay}/plugins/sidebar-footer.tsx +0 -0
  299. /package/src/{saeeol → overlay}/plugins/sidebar-pr.tsx +0 -0
  300. /package/src/{saeeol → overlay}/plugins/sidebar-usage.tsx +0 -0
  301. /package/src/{saeeol → overlay}/project-id.ts +0 -0
  302. /package/src/{saeeol → overlay}/provider/codex-refresh.ts +0 -0
  303. /package/src/{saeeol → overlay}/provider/provider.ts +0 -0
  304. /package/src/{saeeol → overlay}/provider-options.ts +0 -0
  305. /package/src/{saeeol → overlay}/question/index.ts +0 -0
  306. /package/src/{saeeol → overlay}/remote-tui.tsx +0 -0
  307. /package/src/{saeeol → overlay}/review/command.ts +0 -0
  308. /package/src/{saeeol → overlay}/review/diff.ts +0 -0
  309. /package/src/{saeeol → overlay}/review/prompt.ts +0 -0
  310. /package/src/{saeeol → overlay}/review/review.ts +0 -0
  311. /package/src/{saeeol → overlay}/review/types.ts +0 -0
  312. /package/src/{saeeol → overlay}/review/worktree-diff.ts +0 -0
  313. /package/src/{saeeol → overlay}/rules-migrator.ts +0 -0
  314. /package/src/{saeeol → overlay}/server/instance.ts +0 -0
  315. /package/src/{saeeol → overlay}/server/router.ts +0 -0
  316. /package/src/{saeeol → overlay}/server/routes/commit-message.ts +0 -0
  317. /package/src/{saeeol → overlay}/server/routes/indexing.ts +0 -0
  318. /package/src/{saeeol → overlay}/server/server.ts +0 -0
  319. /package/src/{saeeol → overlay}/session/compaction-chunks-core.ts +0 -0
  320. /package/src/{saeeol → overlay}/session/compaction-chunks-utils.ts +0 -0
  321. /package/src/{saeeol → overlay}/session/compaction-chunks.ts +0 -0
  322. /package/src/{saeeol → overlay}/session/compaction-payload-recovery.ts +0 -0
  323. /package/src/{saeeol → overlay}/session/cost-propagation.ts +0 -0
  324. /package/src/{saeeol → overlay}/session/digest-storage.ts +0 -0
  325. /package/src/{saeeol → overlay}/session/fork.ts +0 -0
  326. /package/src/{saeeol → overlay}/session/index.ts +0 -0
  327. /package/src/{saeeol → overlay}/session/instruction.ts +0 -0
  328. /package/src/{saeeol → overlay}/session/kg-compaction.ts +0 -0
  329. /package/src/{saeeol → overlay}/session/llm.ts +0 -0
  330. /package/src/{saeeol → overlay}/session/overflow.ts +0 -0
  331. /package/src/{saeeol → overlay}/session/platform.ts +0 -0
  332. /package/src/{saeeol → overlay}/session/processor.ts +0 -0
  333. /package/src/{saeeol → overlay}/session/prompt-context.ts +0 -0
  334. /package/src/{saeeol → overlay}/session/prompt-plan.ts +0 -0
  335. /package/src/{saeeol → overlay}/session/prompt-queue.ts +0 -0
  336. /package/src/{saeeol → overlay}/session/prompt.ts +0 -0
  337. /package/src/{saeeol → overlay}/session/queries.ts +0 -0
  338. /package/src/{saeeol → overlay}/session/tui-sync.ts +0 -0
  339. /package/src/{saeeol → overlay}/session-import/routes.ts +0 -0
  340. /package/src/{saeeol → overlay}/session-import/service.ts +0 -0
  341. /package/src/{saeeol → overlay}/session-import/types.ts +0 -0
  342. /package/src/{saeeol → overlay}/skills/builtin.ts +0 -0
  343. /package/src/{saeeol → overlay}/skills/config.md +0 -0
  344. /package/src/{saeeol → overlay}/snapshot/diff-full.ts +0 -0
  345. /package/src/{saeeol → overlay}/snapshot/index.ts +0 -0
  346. /package/src/{saeeol → overlay}/snapshot/track-hooks.ts +0 -0
  347. /package/src/{saeeol → overlay}/snapshot/track-types.ts +0 -0
  348. /package/src/{saeeol → overlay}/snapshot/track.ts +0 -0
  349. /package/src/{saeeol → overlay}/soul.txt +0 -0
  350. /package/src/{saeeol → overlay}/suggestion/index.ts +0 -0
  351. /package/src/{saeeol → overlay}/suggestion/routes.ts +0 -0
  352. /package/src/{saeeol → overlay}/suggestion/tool.ts +0 -0
  353. /package/src/{saeeol → overlay}/suggestion/tool.txt +0 -0
  354. /package/src/{saeeol → overlay}/suggestion/tui/bar.tsx +0 -0
  355. /package/src/{saeeol → overlay}/suggestion/tui/prompt.tsx +0 -0
  356. /package/src/{saeeol → overlay}/suggestion/tui/render.tsx +0 -0
  357. /package/src/{saeeol → overlay}/suggestion/tui/sync.ts +0 -0
  358. /package/src/{saeeol → overlay}/system-prompt.ts +0 -0
  359. /package/src/{saeeol → overlay}/todo-view.ts +0 -0
  360. /package/src/{saeeol → overlay}/tool/agent-manager.ts +0 -0
  361. /package/src/{saeeol → overlay}/tool/agent-manager.txt +0 -0
  362. /package/src/{saeeol → overlay}/tool/bash-security-patterns.ts +0 -0
  363. /package/src/{saeeol → overlay}/tool/bash-security.ts +0 -0
  364. /package/src/{saeeol → overlay}/tool/question.ts +0 -0
  365. /package/src/{saeeol → overlay}/tool/registry.ts +0 -0
  366. /package/src/{saeeol → overlay}/tool/semantic-search.ts +0 -0
  367. /package/src/{saeeol → overlay}/tool/semantic-search.txt +0 -0
  368. /package/src/{saeeol → overlay}/tool/task.ts +0 -0
  369. /package/src/{saeeol → overlay}/ts-check.ts +0 -0
  370. /package/src/{saeeol → overlay}/ts-client.ts +0 -0
  371. /package/src/{saeeol → overlay}/tui/diff.ts +0 -0
  372. /package/src/{saeeol → overlay}/util/url.ts +0 -0
  373. /package/src/{saeeol → overlay}/worker/index.ts +0 -0
  374. /package/src/{saeeol → overlay}/worker/pool.ts +0 -0
  375. /package/src/{saeeol → overlay}/worker/store.ts +0 -0
  376. /package/src/{saeeol → overlay}/worker/types.ts +0 -0
  377. /package/src/{saeeol → overlay}/workflows-migrator.ts +0 -0
  378. /package/src/{saeeol → overlay}/worktree-cleanup.ts +0 -0
  379. /package/src/{saeeol → overlay}/worktree-family.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
4
  "name": "saeeol",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -50,8 +50,8 @@
50
50
  "@babel/core": "7.28.4",
51
51
  "@effect/language-service": "0.84.2",
52
52
  "@octokit/webhooks-types": "7.6.1",
53
- "@saeeol/script": "workspace:*",
54
- "@saeeol/core": "workspace:*",
53
+ "@saeeol/script": "7.3.1",
54
+ "@saeeol/core": "7.3.1",
55
55
  "@parcel/watcher-darwin-arm64": "2.5.1",
56
56
  "@parcel/watcher-darwin-x64": "2.5.1",
57
57
  "@parcel/watcher-linux-arm64-glibc": "2.5.1",
@@ -132,15 +132,15 @@
132
132
  "@opentui/solid": "0.2.2",
133
133
  "@parcel/watcher": "2.5.1",
134
134
  "@pierre/diffs": "1.1.0-beta.18",
135
- "@saeeol/boxes": "workspace:*",
136
- "@saeeol/core": "workspace:*",
137
- "@saeeol/gateway": "workspace:*",
138
- "@saeeol/i18n": "workspace:*",
139
- "@saeeol/indexing": "workspace:*",
140
- "@saeeol/plugin": "workspace:*",
141
- "@saeeol/script": "workspace:*",
142
- "@saeeol/sdk": "workspace:*",
143
- "@saeeol/telemetry": "workspace:*",
135
+ "@saeeol/boxes": "0.2.0",
136
+ "@saeeol/core": "7.3.1",
137
+ "@saeeol/gateway": "7.3.1",
138
+ "@saeeol/i18n": "7.3.1",
139
+ "@saeeol/indexing": "7.3.1",
140
+ "@saeeol/plugin": "7.3.1",
141
+ "@saeeol/script": "7.3.1",
142
+ "@saeeol/sdk": "7.3.1",
143
+ "@saeeol/telemetry": "7.3.1",
144
144
  "@solid-primitives/event-bus": "1.1.2",
145
145
  "@solid-primitives/scheduled": "1.5.2",
146
146
  "@standard-schema/spec": "1.0.0",
@@ -179,8 +179,8 @@
179
179
  "remeda": "2.26.0",
180
180
  "ripgrep": "0.3.1",
181
181
  "rotating-file-stream": "3.2.9",
182
- "saeeol-gitlab-auth": "workspace:*",
183
- "saeeol-poe-auth": "workspace:*",
182
+ "saeeol-gitlab-auth": "2.0.2",
183
+ "saeeol-poe-auth": "0.0.4",
184
184
  "semver": "^7.6.3",
185
185
  "simple-git": "3.36.0",
186
186
  "solid-js": "1.9.12",
package/script/build.ts CHANGED
@@ -18,7 +18,7 @@ await import("./generate.ts")
18
18
 
19
19
  import { Script } from "@saeeol/script"
20
20
  import pkg from "../package.json"
21
- import { LanceDBRuntime } from "../src/saeeol/lancedb"
21
+ import { LanceDBRuntime } from "../src/overlay/lancedb"
22
22
 
23
23
  // Load migrations from migration directories
24
24
  const migrationDirs = (
@@ -9,6 +9,6 @@ export const analytics: Addon = {
9
9
  commands: [
10
10
  () => import("../cli/cmd/stats").then((m) => ({ StatsCommand: m.StatsCommand })),
11
11
  () => import("../cli/cmd/pr").then((m) => ({ PrCommand: m.PrCommand })),
12
- () => import("../saeeol/cli/cmd/roll-call").then((m) => ({ RollCallCommand: m.RollCallCommand })),
12
+ () => import("../overlay/cli/cmd/roll-call").then((m) => ({ RollCallCommand: m.RollCallCommand })),
13
13
  ],
14
14
  }
@@ -1 +1 @@
1
- export { SuggestPrompt } from "../../../../../saeeol/suggestion/tui/prompt"
1
+ export { SuggestPrompt } from "../../../../../overlay/suggestion/tui/prompt"
package/src/cli/logo.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { art } from "../saeeol/cli/saeeol-logo"
1
+ import { art } from "../overlay/cli/saeeol-logo"
2
2
 
3
3
  export const logo = {
4
4
  left: ["", "", "", "", "", "", ""],
package/src/cli/ui.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import z from "zod"
2
2
  import { EOL } from "os"
3
3
  import { NamedError } from "@saeeol/core/util/error"
4
- import { art, loadCustomArt } from "../saeeol/cli/saeeol-logo"
4
+ import { art, loadCustomArt } from "../overlay/cli/saeeol-logo"
5
5
 
6
6
  export const CancelledError = NamedError.create("UICancelledError", z.void())
7
7
 
@@ -17,7 +17,7 @@ import { ConfigPlugin } from "./plugin"
17
17
  import { ConfigParse } from "./parse"
18
18
  import { ConfigPaths } from "./paths"
19
19
  import { ConfigVariable } from "./variable"
20
- import { SaeeolConfig } from "../saeeol/config/config"
20
+ import { SaeeolConfig } from "../overlay/config/config"
21
21
 
22
22
  const log = Log.create({ service: "config" })
23
23
  const { caught: caughtWarning } = SaeeolConfig
@@ -14,7 +14,7 @@ import { ConfigPlugin } from "./plugin"
14
14
  import { ConfigProvider } from "./provider"
15
15
  import { ConfigServer } from "./server"
16
16
  import { ConfigSkills } from "./skills"
17
- import { SaeeolConfig } from "../saeeol/config/config"
17
+ import { SaeeolConfig } from "../overlay/config/config"
18
18
  import { IndexingConfig as SaeeolIndexingConfig } from "@saeeol/indexing/config"
19
19
 
20
20
  export const Warning = z.object({
@@ -21,7 +21,7 @@ import { InstanceState } from "@/effect/instance-state"
21
21
  import { Context, Duration, Effect, Exit, Fiber, Layer, Option, Schema } from "effect"
22
22
  import { EffectFlock } from "@saeeol/core/util/effect-flock"
23
23
  import { Npm } from "@saeeol/core/npm"
24
- import { SaeeolConfig } from "../saeeol/config/config"
24
+ import { SaeeolConfig } from "../overlay/config/config"
25
25
  import { SaeeolDefaultPlugins } from "@/saeeol/config/default-plugins"
26
26
  import { makeRuntime } from "@/effect/run-service"
27
27
  import { ConfigAgent } from "./agent"
@@ -2,7 +2,7 @@ import { NamedError } from "@saeeol/core/util/error"
2
2
  import matter from "gray-matter"
3
3
  import { z } from "zod"
4
4
  import { Filesystem } from "@/util/filesystem"
5
- import { SaeeolMarkdown } from "../saeeol/config/markdown"
5
+ import { SaeeolMarkdown } from "../overlay/config/markdown"
6
6
 
7
7
  export const FILE_REGEX = /(?<![\w`])@(\.?[^\s`,.]*(?:\.[^\s`,.]+)*)/g
8
8
  export const SHELL_REGEX = /!`([^`]+)`/g
package/src/index.ts CHANGED
@@ -15,7 +15,7 @@ import type { Tier } from "./addons/types"
15
15
  import { commandsForTier, manifest } from "./addons/registry"
16
16
 
17
17
  // ── DEV 전용 (항상 포함) ────────────────────────────────────────────
18
- import { DevSetupCommand, DevAliasCommand } from "./saeeol/cli/dev-setup"
18
+ import { DevSetupCommand, DevAliasCommand } from "./overlay/cli/dev-setup"
19
19
 
20
20
  // ── 공통 ────────────────────────────────────────────────────────────
21
21
  import * as Log from "@saeeol/core/util/log"
@@ -33,7 +33,7 @@ import { Config } from "./config/config"
33
33
  import { Auth } from "./auth"
34
34
  import path from "path"
35
35
  import { Global } from "@saeeol/core/global"
36
- import { createHelpCommand } from "./saeeol/help-command"
36
+ import { createHelpCommand } from "./overlay/help-command"
37
37
  import { JsonMigration } from "@/storage/json-migration"
38
38
  import { Database } from "@/storage/db"
39
39
  import { errorMessage } from "./util/error"
package/src/lsp/lsp.ts CHANGED
@@ -13,7 +13,7 @@ import { spawn as lspspawn } from "./launch"
13
13
  import { Effect, Layer, Context, Schema } from "effect"
14
14
  import { InstanceState } from "@/effect/instance-state"
15
15
  import { containsPath } from "@/project/instance-context"
16
- import { TsClient } from "../saeeol/ts-client"
16
+ import { TsClient } from "../overlay/ts-client"
17
17
  import { NonNegativeInt, withStatics } from "@/util/schema"
18
18
  import { zod, ZodOverride } from "@/util/effect-zod"
19
19
 
@@ -3,7 +3,7 @@ import { Filesystem } from "@/util/filesystem"
3
3
  import { Flag } from "@saeeol/core/flag/flag"
4
4
  import { Npm } from "@saeeol/core/npm"
5
5
  import { Module } from "@saeeol/core/util/module"
6
- import { TsCheck } from "../saeeol/ts-check"
6
+ import { TsCheck } from "../overlay/ts-check"
7
7
  import { which } from "../util/which"
8
8
  import { spawn } from "./launch"
9
9
  import { log, NearestRoot, type Info } from "./server-shared"
@@ -2,7 +2,7 @@ import { createConnection } from "net"
2
2
  import { createServer } from "http"
3
3
  import * as Log from "@saeeol/core/util/log"
4
4
  import { OAUTH_CALLBACK_PORT, OAUTH_CALLBACK_PATH, parseRedirectUri } from "./oauth-provider"
5
- import * as SaeeolOAuthCallback from "../saeeol/mcp-oauth-callback"
5
+ import * as SaeeolOAuthCallback from "../overlay/mcp-oauth-callback"
6
6
 
7
7
  const log = Log.create({ service: "mcp.oauth-callback" })
8
8
 
@@ -26,7 +26,7 @@ import iconv from "iconv-lite"
26
26
  * so UTF BOMs are handled explicitly in {@link encode} to round-trip cleanly.
27
27
  *
28
28
  * Consumers should import this module as a namespace:
29
- * import * as Encoding from "../saeeol/encoding"
29
+ * import * as Encoding from "../overlay/encoding"
30
30
  */
31
31
 
32
32
  export const DEFAULT = "utf-8"
@@ -7,7 +7,7 @@ import * as Encoding from "./encoding"
7
7
  * Optimistically stream as UTF-8; fall back to a buffered iconv decode only
8
8
  * when the bytes turn out not to be valid UTF-8.
9
9
  *
10
- * import * as TextStream from "../saeeol/text-stream"
10
+ * import * as TextStream from "../overlay/text-stream"
11
11
  */
12
12
 
13
13
  /** Distinct class so {@link withFallback} can tell us apart from real I/O failures. */
@@ -8,7 +8,7 @@ import * as Encoding from "../encoding"
8
8
  * as typed errors that can be recovered with `.pipe(Effect.catch(...))`.
9
9
  *
10
10
  * Consumers should import this module as a namespace:
11
- * import * as EncodedIO from "../saeeol/tool/encoded-io"
11
+ * import * as EncodedIO from "../overlay/tool/encoded-io"
12
12
  */
13
13
 
14
14
  const wrap = (cause: unknown) => (cause instanceof Error ? cause : new Error(String(cause)))
@@ -5,7 +5,7 @@ import { parsePatch, maybeParseApplyPatch } from "./patch-parse"
5
5
  import * as path from "path"
6
6
  import * as fs from "fs/promises"
7
7
  import * as Log from "@saeeol/core/util/log"
8
- import * as Encoding from "../saeeol/encoding"
8
+ import * as Encoding from "../overlay/encoding"
9
9
  import * as Bom from "../util/bom"
10
10
 
11
11
  const log = Log.create({ service: "patch" })
@@ -5,7 +5,7 @@ import type { ApplyPatchArgs, ApplyPatchAction, ApplyPatchFileChange, AffectedPa
5
5
  import * as path from "path"
6
6
  import * as fs from "fs/promises"
7
7
  import * as Log from "@saeeol/core/util/log"
8
- import * as Encoding from "../saeeol/encoding"
8
+ import * as Encoding from "../overlay/encoding"
9
9
  import * as Bom from "../util/bom"
10
10
 
11
11
  const log = Log.create({ service: "patch" })
@@ -1,169 +1 @@
1
- import { clamp } from "@saeeol/boxes/clamp"
2
- import { BusEvent } from "@/bus/bus-event"
3
- import { SessionID, MessageID } from "./schema"
4
- import { Provider } from "@/provider/provider"
5
- import { MessageV2 } from "./message-v2"
6
- import { Schema, Effect } from "effect"
7
- import { Config } from "@/config/config"
8
- import { usable } from "./overflow"
9
-
10
- export const PRUNE_MINIMUM = 20_000
11
- export const PRUNE_PROTECT = 40_000
12
- export const TOOL_OUTPUT_MAX_CHARS = 2_000
13
- export const PRUNE_PROTECTED_TOOLS = ["skill"]
14
- export const DEFAULT_TAIL_TURNS = 2
15
- export const MIN_PRESERVE_RECENT_TOKENS = 2_000
16
- export const MAX_PRESERVE_RECENT_TOKENS = 8_000
17
- export const SUMMARY_TEMPLATE = `Output exactly the Markdown structure shown inside <template> and keep the section order unchanged. Do not include the <template> tags in your response.
18
- <template>
19
- ## Goal
20
- - [single-sentence task summary]
21
-
22
- ## Constraints & Preferences
23
- - [user constraints, preferences, specs, or "(none)"]
24
-
25
- ## Progress
26
- ### Done
27
- - [completed work or "(none)"]
28
-
29
- ### In Progress
30
- - [current work or "(none)"]
31
-
32
- ### Blocked
33
- - [blockers or "(none)"]
34
-
35
- ## Key Decisions
36
- - [decision and why, or "(none)"]
37
-
38
- ## Next Steps
39
- - [ordered next actions or "(none)"]
40
-
41
- ## Critical Context
42
- - [important technical facts, errors, open questions, or "(none)"]
43
-
44
- ## Relevant Files
45
- - [file or directory path: why it matters, or "(none)"]
46
- </template>
47
-
48
- Rules:
49
- - Keep every section, even when empty.
50
- - Use terse bullets, not prose paragraphs.
51
- - Preserve exact file paths, commands, error strings, and identifiers when known.
52
- - Do not mention the summary process or that context was compacted.`
53
- export type Turn = {
54
- start: number
55
- end: number
56
- id: MessageID
57
- }
58
-
59
- export type Tail = {
60
- start: number
61
- id: MessageID
62
- }
63
-
64
- export type CompletedCompaction = {
65
- userIndex: number
66
- assistantIndex: number
67
- summary: string | undefined
68
- }
69
- export type PruneReason = "normal" | "post-compaction" | "payload-limit"
70
-
71
- export const Event = {
72
- Compacted: BusEvent.define(
73
- "session.compacted",
74
- Schema.Struct({
75
- sessionID: SessionID,
76
- }),
77
- ),
78
- }
79
-
80
- export function summaryText(message: MessageV2.WithParts) {
81
- const text = message.parts
82
- .filter((part): part is MessageV2.TextPart => part.type === "text")
83
- .map((part) => part.text.trim())
84
- .filter(Boolean)
85
- .join("\n\n")
86
- .trim()
87
- return text || undefined
88
- }
89
-
90
- export function completedCompactions(messages: MessageV2.WithParts[]) {
91
- const users = new Map<MessageID, number>()
92
- for (let i = 0; i < messages.length; i++) {
93
- const msg = messages[i]
94
- if (msg.info.role !== "user") continue
95
- if (!msg.parts.some((part) => part.type === "compaction")) continue
96
- users.set(msg.info.id, i)
97
- }
98
-
99
- return messages.flatMap((msg, assistantIndex): CompletedCompaction[] => {
100
- if (msg.info.role !== "assistant") return []
101
- if (!msg.info.summary || !msg.info.finish || msg.info.error) return []
102
- const userIndex = users.get(msg.info.parentID)
103
- if (userIndex === undefined) return []
104
- return [{ userIndex, assistantIndex, summary: summaryText(msg) }]
105
- })
106
- }
107
-
108
- export function buildPrompt(input: { previousSummary?: string; context: string[] }) {
109
- const anchor = input.previousSummary
110
- ? [
111
- "Update the anchored summary below using the conversation history above.",
112
- "Preserve still-true details, remove stale details, and merge in the new facts.",
113
- "<previous-summary>",
114
- input.previousSummary,
115
- "</previous-summary>",
116
- ].join("\n")
117
- : "Create a new anchored summary from the conversation history above."
118
- return [anchor, SUMMARY_TEMPLATE, ...input.context].join("\n\n")
119
- }
120
-
121
- export function preserveRecentBudget(input: { cfg: Config.Info; model: Provider.Model }) {
122
- return (
123
- input.cfg.compaction?.preserve_recent_tokens ??
124
- clamp(Math.floor(usable(input) * 0.25), MIN_PRESERVE_RECENT_TOKENS, MAX_PRESERVE_RECENT_TOKENS)
125
- )
126
- }
127
-
128
- export function turns(messages: MessageV2.WithParts[]) {
129
- const result: Turn[] = []
130
- for (let i = 0; i < messages.length; i++) {
131
- const msg = messages[i]
132
- if (msg.info.role !== "user") continue
133
- if (msg.parts.some((part) => part.type === "compaction")) continue
134
- result.push({
135
- start: i,
136
- end: messages.length,
137
- id: msg.info.id,
138
- })
139
- }
140
- for (let i = 0; i < result.length - 1; i++) {
141
- result[i].end = result[i + 1].start
142
- }
143
- return result
144
- }
145
-
146
- export function splitTurn(input: {
147
- messages: MessageV2.WithParts[]
148
- turn: Turn
149
- model: Provider.Model
150
- budget: number
151
- estimate: (input: { messages: MessageV2.WithParts[]; model: Provider.Model }) => Effect.Effect<number>
152
- }) {
153
- return Effect.gen(function* () {
154
- if (input.budget <= 0) return undefined
155
- if (input.turn.end - input.turn.start <= 1) return undefined
156
- for (let start = input.turn.start + 1; start < input.turn.end; start++) {
157
- const size = yield* input.estimate({
158
- messages: input.messages.slice(start, input.turn.end),
159
- model: input.model,
160
- })
161
- if (size > input.budget) continue
162
- return {
163
- start,
164
- id: input.messages[start]!.info.id,
165
- } satisfies Tail
166
- }
167
- return undefined
168
- })
169
- }
1
+ export * from "./core/compaction/compaction-helpers"