|
19 | 19 | from .models import AgentMode |
20 | 20 | from .planmode import PlanMode |
21 | 21 | from .safety import BashPolicy, SafetyViolation, check_path |
22 | | -from .session import SessionStore |
| 22 | +from .session_store import SessionStore |
23 | 23 | from .subagent import run_subagent |
24 | | -from .tokenizer import TokenCalibrator |
| 24 | +from .token_estimator import TokenCalibrator |
25 | 25 | from .tools import Registry, ToolContext |
26 | 26 | from .undo import UndoStack |
27 | 27 |
|
@@ -428,7 +428,7 @@ def switch_to_plan(self) -> None: |
428 | 428 | self.registry.register(PlanExit()) |
429 | 429 |
|
430 | 430 | def _mode_prompts(self) -> dict[str, str]: |
431 | | - from .compaction import read_prompt_file |
| 431 | + from .prompts import read_prompt_file |
432 | 432 |
|
433 | 433 | return { |
434 | 434 | "plan": read_prompt_file("plan.txt"), |
@@ -475,7 +475,7 @@ def generate_session_title(self) -> None: |
475 | 475 | return |
476 | 476 | store.title_pending = True |
477 | 477 | try: |
478 | | - from .compaction import read_prompt_file |
| 478 | + from .prompts import read_prompt_file |
479 | 479 | from .models import Message as Msg |
480 | 480 |
|
481 | 481 | system = read_prompt_file("title.txt") |
@@ -542,7 +542,7 @@ def compact_conversation(self) -> tuple[bool, str]: |
542 | 542 | replaced by the summary frame + the last real user request, the |
543 | 543 | cache epoch is reset, and the session file is refreshed. |
544 | 544 | """ |
545 | | - from .compaction import last_user_request, read_prompt_file |
| 545 | + from .prompts import last_user_request, read_prompt_file |
546 | 546 | from .models import Message as Msg |
547 | 547 |
|
548 | 548 | messages = self.last_messages or [] |
@@ -585,7 +585,7 @@ def summarize_conversation(self) -> str: |
585 | 585 | text is sent with the summary prompt, and the result is appended |
586 | 586 | as an assistant message plus a session save. |
587 | 587 | """ |
588 | | - from .compaction import read_prompt_file |
| 588 | + from .prompts import read_prompt_file |
589 | 589 | from .models import Message as Msg |
590 | 590 |
|
591 | 591 | messages = self.last_messages or [] |
|
0 commit comments