MCPcopy Create free account

hub / github.com/Einsia/OpenChronicle / functions

Functions450 in github.com/Einsia/OpenChronicle

↓ 1 callersFunction_index_capture
Insert/upsert the capture's S1 fields into the FTS5 index. Failures here are non-fatal — a missed FTS row is recoverable via ``openchronicle
src/openchronicle/capture/scheduler.py:105
↓ 1 callersMethod_is_frequent_switching_locked
(self)
src/openchronicle/session/manager.py:207
↓ 1 callersFunction_is_pid_alive
(pid: int)
src/openchronicle/cli.py:41
↓ 1 callersFunction_last_capture_info
Return ``(timestamp, app_name)`` of the most recent capture buffer file. Returns ``(None, None)`` when the buffer directory is empty or missing.
src/openchronicle/cli.py:84
↓ 1 callersFunction_list_memories
(conn, *, include_dormant: bool = False, include_archived: bool = False)
src/openchronicle/mcp/server.py:31
↓ 1 callersFunction_load_capture
(path: Path)
src/openchronicle/mcp/captures.py:79
↓ 1 callersFunction_load_captures
Parse every capture JSON once. Files that fail to read/parse are dropped. The window is small (≤30 files) so the entire parsed list stays cheap t
src/openchronicle/timeline/aggregator.py:85
↓ 1 callersFunction_load_preceding_entries
Return the last ``limit`` entries of ``file_name`` as a single string. Used to give the reducer context about what's already been written to
src/openchronicle/writer/session_reducer.py:454
↓ 1 callersFunction_lock_for
Return the threading.Lock that guards write access to ``path``. Resolves the path before keying so a relative and an absolute spelling of the
src/openchronicle/store/files.py:90
↓ 1 callersFunction_make_id
(start: datetime)
src/openchronicle/timeline/store.py:52
↓ 1 callersFunction_matches
( data: dict[str, Any], app_name: str | None, window_title_substring: str | None, )
src/openchronicle/mcp/captures.py:61
↓ 1 callersFunction_mcp_loop
Host the MCP server inside the daemon. On crash, back off and restart.
src/openchronicle/daemon.py:26
↓ 1 callersFunction_migrate
Backfill columns added after initial schema.
src/openchronicle/session/store.py:39
↓ 1 callersFunction_mock_response
Minimal stub for offline tests. Customize via OPENCHRONICLE_LLM_MOCK_JSON.
src/openchronicle/writer/llm.py:66
↓ 1 callersFunction_now
()
src/openchronicle/timeline/tick.py:27
↓ 1 callersFunction_now_iso
()
src/openchronicle/capture/scheduler.py:28
↓ 1 callersFunction_parse_at
Accept ISO timestamps or bare ``HH:MM[:SS]``. Bare times use today (local).
src/openchronicle/mcp/captures.py:41
↓ 1 callersFunction_parse_entries
(body: str)
src/openchronicle/store/files.py:205
↓ 1 callersFunction_parse_entry_ts
(text: str)
src/openchronicle/writer/classifier.py:234
↓ 1 callersFunction_parse_stem
Invert ``scheduler._safe_filename``. Returns None on malformed input.
src/openchronicle/mcp/captures.py:22
↓ 1 callersFunction_ping_stages
Probe each stage's configured model, deduping identical configs. Returns a dict keyed by stage name -> PingResult. Pings run in parallel so a
src/openchronicle/cli.py:273
↓ 1 callersMethod_prune_event_times
(self, now: float)
src/openchronicle/capture/event_dispatcher.py:112
↓ 1 callersMethod_read_events
(self)
src/openchronicle/capture/watcher.py:172
↓ 1 callersFunction_read_memory
( conn, *, path: str, since: str | None = None, until: str | None = None, tags: list[s
src/openchronicle/mcp/server.py:52
↓ 1 callersFunction_recent_activity
( conn, *, since: str | None = None, limit: int = 20, prefix_filter: list[str] | None = No
src/openchronicle/mcp/server.py:129
↓ 1 callersFunction_recent_timeline_blocks
( conn: sqlite3.Connection, limit: int, )
src/openchronicle/mcp/captures.py:227
↓ 1 callersFunction_render_index
(conn: sqlite3.Connection)
src/openchronicle/writer/classifier.py:357
↓ 1 callersFunction_render_prior_day
(session_start: datetime)
src/openchronicle/writer/classifier.py:298
↓ 1 callersFunction_render_timeline_blocks
( conn: sqlite3.Connection, start: datetime, end: datetime, )
src/openchronicle/writer/classifier.py:267
↓ 1 callersFunction_render_visible_text
(app_data: dict[str, Any])
src/openchronicle/capture/s1_parser.py:111
↓ 1 callersFunction_resolve_helper_path
Find or build the mac-ax-helper binary. Search order: 1. OPENCHRONICLE_AX_HELPER env var (absolute path) 2. Packaged resource shipped
src/openchronicle/capture/ax_capture.py:79
↓ 1 callersFunction_resolve_watcher_path
Find or build the mac-ax-watcher binary. Search order mirrors ax_capture._resolve_helper_path: 1. OPENCHRONICLE_AX_WATCHER env var 2.
src/openchronicle/capture/watcher.py:29
↓ 1 callersFunction_run
(cfg: Config, *, capture_only: bool = False)
src/openchronicle/daemon.py:51
↓ 1 callersFunction_run_once
(cfg: Config)
src/openchronicle/timeline/tick.py:31
↓ 1 callersMethod_schedule_debounce
(self, trigger: dict[str, Any])
src/openchronicle/capture/event_dispatcher.py:118
↓ 1 callersFunction_search
( conn, *, query: str, paths: list[str] | None = None, since: str | None = None, until
src/openchronicle/mcp/server.py:95
↓ 1 callersFunction_seconds_until_next_local
Seconds from now until the next local-time HH:MM.
src/openchronicle/session/tick.py:245
↓ 1 callersFunction_short_time
`2026-04-21T17:07:32+08:00` → `17:07:32`. Best-effort only.
src/openchronicle/timeline/aggregator.py:184
↓ 1 callersMethod_start_locked
(self, timestamp: datetime)
src/openchronicle/session/manager.py:155
↓ 1 callersMethod_start_process
(self)
src/openchronicle/capture/watcher.py:156
↓ 1 callersFunction_stem_to_dt
(stem: str)
src/openchronicle/timeline/aggregator.py:50
↓ 1 callersFunction_strip_frame_fields
(value: Any)
src/openchronicle/capture/ax_capture.py:25
↓ 1 callersFunction_strip_screenshot_inplace
Rewrite a capture JSON without its ``screenshot`` field. Returns True if stripped.
src/openchronicle/capture/scheduler.py:470
↓ 1 callersFunction_strip_strike
(body: str)
src/openchronicle/store/entries.py:289
↓ 1 callersFunction_tool_call
(name: str, args: dict[str, Any], cid: str = "c0")
tests/test_writer_agent.py:24
↓ 1 callersFunction_unwrap_code_fence
(text: str)
src/openchronicle/writer/compact.py:177
↓ 1 callersFunctionax_app_to_markdown
(app_data: dict[str, Any])
src/openchronicle/capture/ax_models.py:43
↓ 1 callersFunctioncapture_buffer_dir
()
src/openchronicle/paths.py:20
↓ 1 callersMethodcapture_frontmost
(self, *, focused_window_only: bool = True)
src/openchronicle/capture/ax_capture.py:126
↓ 1 callersFunctioncaptures_in_window
(start: datetime, end: datetime)
src/openchronicle/timeline/aggregator.py:72
↓ 1 callersFunctionclassify_window
Classify event-daily entries for ``session_id`` within ``[start, end)``. Used by two callers: * the 30-min classifier tick during an active
src/openchronicle/writer/classifier.py:51
↓ 1 callersFunctioncompact_file
(cfg: Config, conn: sqlite3.Connection, *, name: str)
src/openchronicle/writer/compact.py:45
↓ 1 callersFunctionconnect
(db_path: Path | None = None)
src/openchronicle/store/fts.py:109
↓ 1 callersFunctioncreate_file
( conn: sqlite3.Connection, *, name: str, description: str, tags: list[str] )
src/openchronicle/store/entries.py:42
↓ 1 callersFunctioncursor
(db_path: Path | None = None)
src/openchronicle/store/fts.py:130
↓ 1 callersFunctionfile_lock
Serialize concurrent writers on a single memory-file path.
src/openchronicle/store/files.py:108
↓ 1 callersFunctionfloor_to_window
Floor to the wall-clock window boundary. 14:07:42 → 14:05:00 (w=5).
src/openchronicle/timeline/store.py:137
↓ 1 callersFunctionlogs_dir
()
src/openchronicle/paths.py:24
↓ 1 callersFunctionmemory_dir
()
src/openchronicle/paths.py:16
↓ 1 callersMethodon_event
(self, callback: Callable[[dict[str, Any]], None])
src/openchronicle/capture/watcher.py:92
↓ 1 callersMethodshutdown
(self)
src/openchronicle/capture/event_dispatcher.py:186
↓ 1 callersMethodstart_worker
Spawn the dedicated worker thread. Idempotent.
src/openchronicle/capture/scheduler.py:213
↓ 1 callersMethodstop
Stop the subprocess and join the reader thread. Closing ``stdout`` is necessary because the reader loop is blocked on a line read; ot
src/openchronicle/capture/watcher.py:106
↓ 1 callersMethodstop_worker
Drain the queue and join the worker thread.
src/openchronicle/capture/scheduler.py:222
↓ 1 callersFunctiontool_append
( conn: sqlite3.Connection, *, path: str, content: str, tags: list[str], soft_limit_to
src/openchronicle/writer/tools.py:69
↓ 1 callersFunctiontool_commit
(state: CommitState, *, summary: str)
src/openchronicle/writer/tools.py:143
↓ 1 callersFunctiontool_create
( conn: sqlite3.Connection, *, path: str, description: str, tags: list[str], state: Co
src/openchronicle/writer/tools.py:89
↓ 1 callersFunctiontool_flag_compact
( conn: sqlite3.Connection, *, path: str, reason: str, state: CommitState )
src/openchronicle/writer/tools.py:130
↓ 1 callersFunctiontool_read_memory
(conn: sqlite3.Connection, *, path: str, tail_n: int = 10)
src/openchronicle/writer/tools.py:28
↓ 1 callersFunctiontool_search_memory
( conn: sqlite3.Connection, *, query: str, top_k: int = 5, include_superseded: bool = Fals
src/openchronicle/writer/tools.py:49
↓ 1 callersFunctiontool_supersede
( conn: sqlite3.Connection, *, path: str, old_entry_id: str, new_content: str, reason:
src/openchronicle/writer/tools.py:105
Method__call__
(self)
tests/test_session_manager.py:12
Method__init__
(self, content, tool_calls=None)
src/openchronicle/writer/llm.py:72
Method__init__
(self, msg)
src/openchronicle/writer/llm.py:77
Method__init__
(self, choices)
src/openchronicle/writer/llm.py:82
Method__init__
( self, *, gap_minutes: int = 5, soft_cut_minutes: int = 3, max_sessio
src/openchronicle/session/manager.py:50
Method__init__
(self, *, max_reconnect_delay: float = 60.0)
src/openchronicle/capture/watcher.py:76
Method__init__
( self, cfg: CaptureConfig, provider: ax_capture.AXProvider, *, pre_ca
src/openchronicle/capture/scheduler.py:198
Method__init__
(self, reason: str)
src/openchronicle/capture/ax_capture.py:136
Method__init__
(self, *, helper_path: Path, depth: int, timeout: int, raw: bool = False)
src/openchronicle/capture/ax_capture.py:158
Method__init__
( self, capture_fn: Callable[[dict[str, Any]], None], *, debounce_seconds: flo
src/openchronicle/capture/event_dispatcher.py:52
Method__init__
(self, start: datetime)
tests/test_session_manager.py:9
Method__init__
(self, content: str)
tests/test_store.py:16
Method__post_init__
(self)
src/openchronicle/timeline/store.py:45
Function_after_reduce
Terminal reducer succeeded → classify any window the 30-min tick missed.
src/openchronicle/session/tick.py:70
Method_flush_debounce
(self)
src/openchronicle/capture/event_dispatcher.py:135
Function_handle_stop
()
src/openchronicle/daemon.py:93
Function_local_now
()
src/openchronicle/session/manager.py:39
Function_on_capture
(trigger: dict[str, Any] | None)
src/openchronicle/capture/scheduler.py:307
Function_on_end
(session_id: str, start: datetime, end: datetime)
src/openchronicle/session/tick.py:45
Function_on_start
Persist an 'active' row immediately so crashes are recoverable.
src/openchronicle/session/tick.py:35
Function_run
()
src/openchronicle/writer/session_reducer.py:305
Method_run_loop
(self)
src/openchronicle/capture/watcher.py:138
Method_worker_loop
(self)
src/openchronicle/capture/scheduler.py:233
Functionac_root
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/conftest.py:12
Functionactive_window
()
src/openchronicle/capture/window_meta.py:42
Functionappend_during_rewrite
(*args, **kwargs)
tests/test_store.py:355
Functionappend_entry
Append a new entry, returning its id.
src/openchronicle/store/entries.py:76
Functionappend_worker
()
tests/test_store.py:279
Functionauto_dormant
(conn: sqlite3.Connection, *, days: int = 30)
src/openchronicle/store/index_md.py:83
← previousnext →101–200 of 450, ranked by callers