MCPcopy Create free account

hub / github.com/Einsia/OpenChronicle / functions

Functions450 in github.com/Einsia/OpenChronicle

↓ 29 callersFunctionget
(name: str)
src/openchronicle/logger.py:56
↓ 19 callersFunction_init
()
src/openchronicle/cli.py:32
↓ 18 callersMethodrun
(self, trigger: dict[str, Any] | None)
src/openchronicle/capture/scheduler.py:240
↓ 15 callersMethodon_event
Called for every capture-worthy event from the dispatcher.
src/openchronicle/session/manager.py:91
↓ 14 callersFunction_event
(bundle: str = "com.apple.dt.Xcode")
tests/test_session_manager.py:22
↓ 13 callersFunction_seed
(conn, *, id, ts, app, title, value, text, url="")
tests/test_captures_fts.py:10
↓ 12 callersFunction_as_dict
(section: Any)
src/openchronicle/config.py:157
↓ 12 callersFunction_seed_capture
(conn, *, id, ts, app, title, value, text, url="")
tests/test_mcp_tools.py:71
↓ 12 callersMethodadvance
(self, **kwargs: float)
tests/test_session_manager.py:15
↓ 10 callersMethodmodel_for
Return stage config (already inherited from default at build time).
src/openchronicle/config.py:144
↓ 9 callersFunction_build_dataclass
(cls, raw: dict)
src/openchronicle/config.py:176
↓ 9 callersFunctionroot
()
src/openchronicle/paths.py:9
↓ 7 callersFunction_ax_tree
(*apps: dict)
tests/test_s1_parser.py:6
↓ 7 callersFunction_dt
(v: str | None)
src/openchronicle/session/store.py:230
↓ 7 callersFunction_sink
(name: str, filename: str, *, level: int = logging.INFO)
src/openchronicle/logger.py:15
↓ 7 callersMethodcheck_cuts
Periodic tick. Detects idle gaps, soft cuts, and timeout.
src/openchronicle/session/manager.py:108
↓ 7 callersMethodstart
(self)
src/openchronicle/capture/watcher.py:95
↓ 6 callersFunction_response
(tool_calls: list | None = None, text: str = "")
tests/test_classifier.py:29
↓ 6 callersFunction_seed_blocks
Create 3 contiguous 5-min blocks with one entry each.
tests/test_session_reducer.py:41
↓ 6 callersFunction_to_row
(r: sqlite3.Row)
src/openchronicle/session/store.py:229
↓ 6 callersFunction_tool_call
(name: str, args: dict[str, Any], cid: str = "c0")
tests/test_classifier.py:22
↓ 5 callersFunction_cfg_with_model
(model: str = "gpt-5.4-nano", api_key: str = "sk-test")
tests/test_writer_llm_ping.py:16
↓ 5 callersFunction_read_pid
()
src/openchronicle/cli.py:51
↓ 4 callersFunction_confirm
(prompt: str, yes: bool)
src/openchronicle/cli.py:986
↓ 4 callersMethod_end_locked
(self, end_time: datetime)
src/openchronicle/session/manager.py:175
↓ 4 callersFunction_ensure_prefix
(path_name: str)
src/openchronicle/store/entries.py:38
↓ 4 callersMethodforce_end
Close the current session immediately (daily cron / shutdown).
src/openchronicle/session/manager.py:146
↓ 3 callersFunction_capture_dict
( *, ts: str, app: str, title: str, value: str, text: str, )
tests/test_capture_scheduler_fts.py:13
↓ 3 callersMethod_run
( self, *, all_visible: bool, app_name: str | None = None, focused_win
src/openchronicle/capture/ax_capture.py:181
↓ 3 callersFunction_seed_event_daily
Create event-YYYY-MM-DD.md with one entry; return (filename, entry_id).
tests/test_classifier.py:35
↓ 3 callersFunction_warn_if_running
()
src/openchronicle/cli.py:992
↓ 3 callersFunctionreduce_session
Terminal reduce for a session that has already ended. Covers only the trailing window since the last flush (or the full session if no flush h
src/openchronicle/writer/session_reducer.py:77
↓ 2 callersFunction_assemble_context
( *, event_daily_path: str, focus_entries: list[files_mod.ParsedEntry], timeline_text: str,
src/openchronicle/writer/classifier.py:321
↓ 2 callersFunction_build_capture
Build an enriched capture dict in memory. Returns None if capturing is paused.
src/openchronicle/capture/scheduler.py:36
↓ 2 callersMethod_cancel_debounce
(self)
src/openchronicle/capture/event_dispatcher.py:128
↓ 2 callersFunction_claude_desktop_config_path
()
src/openchronicle/cli.py:408
↓ 2 callersFunction_clean_captures
()
src/openchronicle/cli.py:1023
↓ 2 callersFunction_clean_memory
Delete memory Markdown files + reset entries/files tables. Returns (files, entries).
src/openchronicle/cli.py:1045
↓ 2 callersFunction_clean_timeline
()
src/openchronicle/cli.py:1038
↓ 2 callersFunction_delete_capture_rows
Delete capture rows in one explicit transaction. fts.connect uses autocommit mode, so sqlite3's connection context manager does not open a tr
src/openchronicle/cli.py:1001
↓ 2 callersFunction_event_daily_name
(start_time: datetime)
src/openchronicle/writer/session_reducer.py:547
↓ 2 callersFunction_format_response
( path: Path, data: dict[str, Any], include_screenshot: bool )
src/openchronicle/mcp/captures.py:86
↓ 2 callersFunction_format_time
(dt: datetime)
src/openchronicle/writer/session_reducer.py:420
↓ 2 callersFunction_format_window
(dt: datetime)
src/openchronicle/timeline/aggregator.py:193
↓ 2 callersFunction_heuristic_payload
Fallback when LLM attempts are exhausted.
src/openchronicle/writer/session_reducer.py:521
↓ 2 callersFunction_load_claude_desktop_config
(path: Path)
src/openchronicle/cli.py:418
↓ 2 callersFunction_load_opencode_config
(path: Path)
src/openchronicle/cli.py:552
↓ 2 callersMethod_maybe_capture
Apply last-frame dedup + rate limit, then invoke the capture fn.
src/openchronicle/capture/event_dispatcher.py:143
↓ 2 callersFunction_maybe_compile
Dev/first-run: compile the helper if missing or stale.
src/openchronicle/capture/ax_capture.py:33
↓ 2 callersFunction_now_iso_minute
()
src/openchronicle/store/entries.py:23
↓ 2 callersFunction_opencode_config_path
()
src/openchronicle/cli.py:548
↓ 2 callersFunction_reduce_window_locked
( cfg: Config, conn: sqlite3.Connection, *, session_id: str, session_start: datetime,
src/openchronicle/writer/session_reducer.py:154
↓ 2 callersFunction_restart_reminder
(action: str)
src/openchronicle/cli.py:435
↓ 2 callersFunction_row_to_block
(row: sqlite3.Row | tuple)
src/openchronicle/timeline/store.py:122
↓ 2 callersFunction_run_tool_loop
( cfg: Config, conn: sqlite3.Connection, *, session_id: str, event_daily_path: str, co
src/openchronicle/writer/classifier.py:375
↓ 2 callersFunction_safe_filename
(ts: str)
src/openchronicle/capture/scheduler.py:32
↓ 2 callersFunction_safe_fts_query
Turn an LLM-written query into a safe FTS5 MATCH expression. FTS5 treats ``col:value``, quotes, parens, etc. as syntax. An LLM that writes ``
src/openchronicle/store/fts.py:264
↓ 2 callersFunction_seed_block
(start: datetime)
tests/test_session_tick.py:21
↓ 2 callersFunction_to_file_row
(r: sqlite3.Row)
src/openchronicle/store/fts.py:213
↓ 2 callersFunction_tool_response
( assistant_msg: dict[str, Any], i: int, name: str, result: dict[str, Any] )
src/openchronicle/writer/classifier.py:489
↓ 2 callersFunction_unique_tokens
(text: str)
src/openchronicle/writer/compact.py:41
↓ 2 callersMethod_update_recent_apps_locked
(self, now: datetime)
src/openchronicle/session/manager.py:201
↓ 2 callersFunction_write_capture
Persist a built capture dict to the buffer, index it for search, and log.
src/openchronicle/capture/scheduler.py:86
↓ 2 callersFunctionatomic_write_text
Write ``content`` to ``path`` atomically. A crash between writing the temp file and the rename leaves the original file untouched; a crash af
src/openchronicle/store/files.py:21
↓ 2 callersFunctionax_tree_to_markdown
Convert AX tree JSON into compact, LLM-friendly Markdown. Apps → h2, Windows → h3, elements → indented bullet points. Container nodes (no tex
src/openchronicle/capture/ax_models.py:22
↓ 2 callersFunctionbuild_server
Construct and return a FastMCP server instance (not yet running).
src/openchronicle/mcp/server.py:316
↓ 2 callersMethodcurrent_snapshot
Atomic ``(session_id, session_start)`` for the active session, or None.
src/openchronicle/session/manager.py:84
↓ 2 callersFunctionmake_id
YYYYMMDD-HHMM-<6-hex>. 6 hex chars (24 bits) keeps collision probability <0.1% within a single minute even under heavy batched writes.
src/openchronicle/store/entries.py:27
↓ 2 callersFunctionresolve_api_key
(cfg: ModelConfig)
src/openchronicle/config.py:149
↓ 2 callersMethodrun_threaded
Enqueue a capture for the worker thread; drop with a warning if full.
src/openchronicle/capture/scheduler.py:267
↓ 2 callersMethodto_dict
(self)
src/openchronicle/capture/s1_parser.py:51
↓ 2 callersFunctiontoday
()
src/openchronicle/store/files.py:162
↓ 1 callersFunction_align_tz
Make ``ts`` comparable with ``ref`` — if one is naive, make the other naive too.
src/openchronicle/writer/classifier.py:225
↓ 1 callersFunction_append_event_entry
( conn: sqlite3.Connection, *, session_id: str, start_time: datetime, end_time: datetime,
src/openchronicle/writer/session_reducer.py:567
↓ 1 callersFunction_attach_drill_down_breadcrumb
Append a ``read_recent_capture`` breadcrumb to a sub_task line. Parses the canonical ``[HH:MM-HH:MM, <app>]`` prefix and appends ``— raw: rea
src/openchronicle/writer/session_reducer.py:432
↓ 1 callersFunction_ax_elements_to_bullets
( elements: list[dict[str, Any]], lines: list[str], depth: int )
src/openchronicle/capture/ax_models.py:47
↓ 1 callersFunction_blocks_for_session
Return timeline blocks whose window intersects ``[start, end)``.
src/openchronicle/writer/session_reducer.py:377
↓ 1 callersFunction_body_is_striked
(body: str)
src/openchronicle/store/entries.py:284
↓ 1 callersFunction_build_models
(raw: dict)
src/openchronicle/config.py:161
↓ 1 callersFunction_call_reducer_llm
( cfg: Config, blocks: list[timeline_store.TimelineBlock], start_time: datetime, end_time: dat
src/openchronicle/writer/session_reducer.py:482
↓ 1 callersFunction_capture_stem_in_window
Parse the filename stem back to a datetime and check window membership.
src/openchronicle/timeline/aggregator.py:42
↓ 1 callersFunction_choice_response
(tool_calls: list | None = None, text: str = "")
tests/test_writer_agent.py:29
↓ 1 callersFunction_classify_untimed
( cfg: Config, *, session_id: str, event_daily_path: str, just_written_entry_id: str, )
src/openchronicle/writer/classifier.py:162
↓ 1 callersFunction_clean_writer_state
()
src/openchronicle/cli.py:1061
↓ 1 callersFunction_content_fingerprint
Hash the content-bearing fields of a capture for consecutive-duplicate detection. Excludes timestamp, trigger metadata, screenshots, and the raw
src/openchronicle/capture/scheduler.py:132
↓ 1 callersFunction_daemon_uptime
Return a human-readable uptime string for the running daemon. Reads the PID file's mtime as a proxy for daemon start time (the daemon overwri
src/openchronicle/cli.py:59
↓ 1 callersFunction_dedupe_recent_captures
Pick up to ``limit`` rows distinct by (app_name, window_title).
src/openchronicle/mcp/captures.py:210
↓ 1 callersFunction_delete_captures_from_fts
Drop matching rows from the captures index. Non-fatal on failure.
src/openchronicle/capture/scheduler.py:458
↓ 1 callersFunction_ensure_event_daily_file
(conn: sqlite3.Connection, name: str, *, day: str)
src/openchronicle/writer/session_reducer.py:551
↓ 1 callersFunction_extract_focused_element
(app_data: dict[str, Any])
src/openchronicle/capture/s1_parser.py:88
↓ 1 callersFunction_extract_url
(app_data: dict[str, Any])
src/openchronicle/capture/s1_parser.py:118
↓ 1 callersFunction_focus_entries
Return every entry in today's event-daily tagged with this session. Falls back to ``[fallback_entry_id]`` (the single last-written entry) if
src/openchronicle/writer/classifier.py:241
↓ 1 callersFunction_focus_entries_in_range
( *, event_daily_path: str, session_id: str, start: datetime, end: datetime, )
src/openchronicle/writer/classifier.py:195
↓ 1 callersFunction_format_blocks
(blocks: list[timeline_store.TimelineBlock])
src/openchronicle/writer/session_reducer.py:407
↓ 1 callersFunction_format_events
Render captures for the timeline prompt. Returns (events_text, apps_used). Reads the structured S1 fields written by ``capture/s1_parser.py`` —
src/openchronicle/timeline/aggregator.py:109
↓ 1 callersFunction_format_ping
Render a PingResult as a short Rich-styled cell.
src/openchronicle/cli.py:320
↓ 1 callersFunction_frontmost_app
(ax_tree: dict[str, Any])
src/openchronicle/capture/s1_parser.py:80
↓ 1 callersFunction_get_schema
()
src/openchronicle/mcp/server.py:151
↓ 1 callersFunction_health_status
Return ``(label, style)`` for daemon health. ``style`` is a Rich-style string suitable for ``console.print``.
src/openchronicle/cli.py:105
↓ 1 callersFunction_heuristic_entries
Cheap fallback when the LLM returns no parseable entries.
src/openchronicle/timeline/aggregator.py:272
next →1–100 of 450, ranked by callers