refactor: remove verified unused internals (#6460)
* refactor: remove verified unused internals * test(linear): synchronize webhook shutdown with writer join
This commit is contained in:
1 parent
3230013963
commit
f23a6d1485
105 files changed
+207
-1282
No files matched your search
@@ -111,9 +111,6 @@ class HistoryReader:
|
||||
):
|
||||
yield HistoryTurn(*row)
|
||||
|
||||
def read_turn(self, ordinal: int) -> list[HistoryFact]:
|
||||
return [fact for _, fact in self.read_entries(ordinal)]
|
||||
|
||||
def read_entries(
|
||||
self, ordinal: int, *, max_records: int | None = None, max_bytes: int | None = None,
|
||||
) -> list[tuple[int, HistoryFact]]:
|
||||
|
||||
@@ -40,8 +40,6 @@ _MESSAGE_TIME_PREFIX_RE = re.compile(r"^\[Message Time: [^\]]+\]\n?")
|
||||
_LOCAL_IMAGE_BREADCRUMB_RE = re.compile(r"^\[image: (?:/|~)[^\]]+\]\s*$")
|
||||
_TOOL_CALL_ECHO_RE = re.compile(r'^\s*(?:generate_image|message)\([^)]*\)\s*$')
|
||||
_SESSION_PREVIEW_MAX_CHARS = 120
|
||||
_SESSION_LIST_PREVIEW_MAX_RECORDS = 200
|
||||
_SESSION_LIST_PREVIEW_MAX_CHARS = 1_000_000
|
||||
_FORK_VOLATILE_METADATA_KEYS = {
|
||||
"_stopped_at_iteration_limit",
|
||||
PARENT_SESSION_KEY,
|
||||
@@ -484,11 +482,6 @@ class SessionManager:
|
||||
"""Public decoder for components that inspect canonical session filenames."""
|
||||
return SessionManager._decode_storage_key(stem)
|
||||
|
||||
@classmethod
|
||||
def _session_key_from_path(cls, path: Path) -> str | None:
|
||||
"""Decode a session key only from a canonical collision-resistant filename."""
|
||||
return SessionLocation.session_key_from_path(path)
|
||||
|
||||
def _require_offline_mutation(self) -> None:
|
||||
if self._state is not None and self._state.is_bound:
|
||||
raise RuntimeError(
|
||||
|
||||
Reference in new issue
Block a user