MCPcopy Create free account

hub / github.com/Einsia/OpenChronicle / functions

Functions450 in github.com/Einsia/OpenChronicle

Methodavailable
(self)
src/openchronicle/capture/watcher.py:85
Methodavailable
(self)
src/openchronicle/capture/ax_capture.py:124
Methodavailable
(self)
src/openchronicle/capture/ax_capture.py:140
Methodavailable
(self)
src/openchronicle/capture/ax_capture.py:165
Functionboom
(**kwargs)
tests/test_writer_llm_ping.py:70
Functionboom
(cfg, stage, *, timeout=5.0)
tests/test_cli_status.py:70
Functionbuild_manager
Construct a SessionManager whose end-callback wires the reducer.
src/openchronicle/session/tick.py:32
Functioncall_llm
Invoke litellm for the given stage. Returns the raw ModelResponse. Respects OPENCHRONICLE_LLM_MOCK=1 for tests: returns a minimal stub.
src/openchronicle/writer/llm.py:27
Methodcapture_all_visible
(self)
src/openchronicle/capture/ax_capture.py:128
Methodcapture_all_visible
(self)
src/openchronicle/capture/ax_capture.py:146
Methodcapture_all_visible
(self)
src/openchronicle/capture/ax_capture.py:171
Methodcapture_app
( self, app_name: str, *, focused_window_only: bool = True )
src/openchronicle/capture/ax_capture.py:130
Methodcapture_app
( self, app_name: str, *, focused_window_only: bool = True )
src/openchronicle/capture/ax_capture.py:149
Methodcapture_app
( self, app_name: str, *, focused_window_only: bool = True )
src/openchronicle/capture/ax_capture.py:174
Methodcapture_frontmost
(self, *, focused_window_only: bool = True)
src/openchronicle/capture/ax_capture.py:143
Methodcapture_frontmost
(self, *, focused_window_only: bool = True)
src/openchronicle/capture/ax_capture.py:168
Functioncapture_once
Perform one capture immediately (useful for testing).
src/openchronicle/cli.py:877
Functioncapture_once
Perform one capture and write it to the buffer. Returns the file path on success. ``trigger`` (optional) carries the watcher event metadata that
src/openchronicle/capture/scheduler.py:154
Functioncheckpoint
Run ``PRAGMA wal_checkpoint(<mode>)`` and return (busy, log, checkpointed). ``TRUNCATE`` is the form that actually shrinks the ``.db-wal`` sideca
src/openchronicle/store/fts.py:138
Functionclassify_after_reduce
Terminal-reduce classifier entry point. If ``window_start`` is provided (e.g. ``classified_end`` from the sessions table), classify only the
src/openchronicle/writer/classifier.py:109
Functionclean_all
Delete captures, timeline blocks, memory, and writer state. Config is kept.
src/openchronicle/cli.py:1128
Functionclean_captures
Delete all files in the capture buffer.
src/openchronicle/cli.py:1070
Functionclean_memory
Delete all memory Markdown files and reset the FTS index.
src/openchronicle/cli.py:1103
Functionclean_timeline
Delete all timeline blocks (short-window activity summaries).
src/openchronicle/cli.py:1087
Functioncleanup_buffer
Tiered buffer hygiene. Returns {deleted, stripped, evicted}. Three passes, all gated on ``processed_before_ts`` so an unprocessed trailing ca
src/openchronicle/capture/scheduler.py:364
Functionconfig
Print the resolved config path and contents.
src/openchronicle/cli.py:974
Functionconfig_file
()
src/openchronicle/paths.py:28
Functioncounting_ping
(cfg, stage, *, timeout=5.0)
tests/test_cli_status.py:43
Functioncreate_provider
(*, depth: int = 8, timeout: int = 3, raw: bool = False)
src/openchronicle/capture/ax_capture.py:240
Functioncurrent_context
One-shot snapshot of "what's happening on screen right now". Mirrors the payload Einsia-Partner auto-injects every chat turn: * ``recent_c
src/openchronicle/mcp/captures.py:262
Functioncurrent_context
**ALWAYS CALL** for present-tense or ambiguous-pronoun questions about the user's state. Two high-value trigger patterns: 1. Presen
src/openchronicle/mcp/server.py:534
Methodcurrent_id
(self)
src/openchronicle/session/manager.py:80
Functiondefault_frontmatter
(*, description: str, tags: list[str])
src/openchronicle/store/files.py:166
Functiondelete_capture
(conn: sqlite3.Connection, capture_id: str)
src/openchronicle/store/fts.py:376
Functiondelete_entries_for
(conn: sqlite3.Connection, path: str)
src/openchronicle/store/fts.py:253
Functiondelete_file_row
(conn: sqlite3.Connection, path: str)
src/openchronicle/store/fts.py:257
Functiondispatch
( name: str, args: dict[str, Any], *, conn: sqlite3.Connection, soft_limit_tokens: int,
src/openchronicle/writer/tools.py:271
Functionendpoint_url
Return the public URL where the daemon-hosted MCP server is reachable.
src/openchronicle/mcp/server.py:625
Functionenrich
Mutate ``capture`` in place: add ``focused_element`` / ``visible_text`` / ``url``. No-op when there is no ``ax_tree`` (e.g. AX unavailable, permi
src/openchronicle/capture/s1_parser.py:59
Functionensure_dirs
()
src/openchronicle/paths.py:49
Functionensure_schema
(conn: sqlite3.Connection)
src/openchronicle/timeline/store.py:58
Functionensure_schema
(conn: sqlite3.Connection)
src/openchronicle/session/store.py:63
Functionextract_text
(response: Any)
src/openchronicle/writer/llm.py:88
Functionextract_tool_calls
(response: Any)
src/openchronicle/writer/llm.py:149
Functionfake_call_llm
(cfg, stage, *, messages, tools=None, json_mode=False)
tests/test_writer_agent.py:78
Functionfake_call_llm
(cfg, stage, *, messages, tools=None, json_mode=False)
tests/test_classifier.py:81
Functionfake_completion
(**kwargs)
tests/test_writer_llm_ping.py:42
Functionfiles_needing_compact
(conn: sqlite3.Connection)
src/openchronicle/store/fts.py:208
Functionflush_active_session
Run an incremental reduce on an active session. Reduces any closed timeline blocks in ``[flush_end or session_start, now)`` and appends a par
src/openchronicle/writer/session_reducer.py:105
Functionget_by_id
(conn: sqlite3.Connection, session_id: str)
src/openchronicle/session/store.py:135
Functionget_capture_visible_text
Read just the visible_text field for a capture. Used by current_context.
src/openchronicle/store/fts.py:484
Functionget_file
(conn: sqlite3.Connection, path: str)
src/openchronicle/store/fts.py:180
Functionget_latest_end
(conn: sqlite3.Connection)
src/openchronicle/timeline/store.py:90
Functionget_open
(conn: sqlite3.Connection)
src/openchronicle/session/store.py:140
Functionget_schema
Return the memory organization spec (file naming, what each prefix means). Rarely needed at query time. Useful only if you need to reason abo
src/openchronicle/mcp/server.py:589
Functiongrab
Capture the primary monitor and return a base64-encoded JPEG.
src/openchronicle/capture/screenshot.py:22
Functionhas_window
(conn: sqlite3.Connection, start: datetime, end: datetime)
src/openchronicle/timeline/store.py:62
Functionindex_db
()
src/openchronicle/paths.py:32
Functioninsert
(conn: sqlite3.Connection, block: TimelineBlock)
src/openchronicle/timeline/store.py:70
Functioninsert
(conn: sqlite3.Connection, row: SessionRow)
src/openchronicle/session/store.py:68
Functioninsert_capture
Upsert one capture row. Triggers keep captures_fts in sync.
src/openchronicle/store/fts.py:341
Functioninsert_entry
( conn: sqlite3.Connection, *, id: str, path: str, prefix: str, timestamp: str, ta
src/openchronicle/store/fts.py:229
Functioninstall_claude_code
Add (or refresh) OpenChronicle's entry in Claude Code's MCP config. Always installs the current URL/transport — if an entry named ``name`` alread
src/openchronicle/cli.py:350
Functioninstall_claude_desktop
Add (or refresh) OpenChronicle's entry in Claude Desktop's MCP config. Claude Desktop's JSON config only accepts stdio servers (remote SSE/HTTP
src/openchronicle/cli.py:446
Functioninstall_codex
Add (or refresh) OpenChronicle's entry in Codex CLI's MCP config. Codex CLI supports streamable-HTTP MCP servers via ``codex mcp add <name> --url
src/openchronicle/cli.py:492
Functioninstall_mcp_json
Generate a generic MCP config in the current directory. Shape matches the ``mcpServers`` object used by most local agent frameworks (Cursor,
src/openchronicle/cli.py:636
Functioninstall_opencode
Add (or refresh) OpenChronicle's entry in opencode's MCP config. opencode (https://opencode.ai) reads ``~/.config/opencode/opencode.json`` an
src/openchronicle/cli.py:570
Functioniter_windows
Return the list of complete closed windows in ``[start, end)``. ``start`` is floored first; windows that would extend past ``end`` are not re
src/openchronicle/timeline/store.py:143
Functionlist_active
(conn: sqlite3.Connection)
src/openchronicle/session/store.py:173
Functionlist_due_for_retry
(conn: sqlite3.Connection, *, now: datetime)
src/openchronicle/session/store.py:180
Functionlist_files
( conn: sqlite3.Connection, *, include_dormant: bool = False, include_archived: bool = False,
src/openchronicle/store/fts.py:185
Functionlist_memories
**ALWAYS CALL FIRST** on the first personal-context turn of a conversation. List all memory files with descriptions + entry counts. Cheap (on
src/openchronicle/mcp/server.py:329
Functionlist_memory_files
()
src/openchronicle/store/files.py:259
Functionlist_pending_reduction
All non-reduced, non-active rows — the safety-net retry universe. Picks up ``ended`` rows whose reducer thread was killed mid-run (daemon shu
src/openchronicle/session/store.py:210
Functionlist_unfinished_for_date
Sessions that started during [day_start, day_end) and aren't reduced.
src/openchronicle/session/store.py:193
Functionload
(path: Path | None = None)
src/openchronicle/config.py:181
Functionload
Read a prompt file by basename (e.g. classifier.md, compact.md).
src/openchronicle/prompts/__init__.py:8
Functionmark_ended
(conn: sqlite3.Connection, session_id: str, end_time: datetime)
src/openchronicle/session/store.py:91
Functionmark_failed
( conn: sqlite3.Connection, session_id: str, *, error: str, next_retry_at: datetime | None
src/openchronicle/session/store.py:109
Functionmark_reduced
(conn: sqlite3.Connection, session_id: str)
src/openchronicle/session/store.py:102
Functionmark_superseded
(conn: sqlite3.Connection, entry_id: str)
src/openchronicle/store/fts.py:249
Functionmcp
Run the MCP server (stdio). For LLM client config.
src/openchronicle/cli.py:334
Functionmemory_path
Resolve a logical memory filename to an absolute path inside memory_dir().
src/openchronicle/store/files.py:143
Methodon_event
Watcher callback. Classifies the event and (maybe) triggers capture.
src/openchronicle/capture/event_dispatcher.py:82
Functionpause
Pause capture (daemon stays up but skips captures).
src/openchronicle/cli.py:177
Functionpaused_flag
()
src/openchronicle/paths.py:40
Functionpid_file
()
src/openchronicle/paths.py:36
Functionping_stage
Send a tiny round-trip request to the stage's configured model. Returns a PingResult with success, latency, and a short error label on failur
src/openchronicle/writer/llm.py:95
Functionproduce_block_for_window
Build one block. Returns ``None`` if the window is empty or already done.
src/openchronicle/timeline/aggregator.py:197
Functionquery_recent
Most recent blocks, oldest first in the returned list.
src/openchronicle/timeline/store.py:102
Functionquery_since
All blocks with end_time > ``since``, chronological order.
src/openchronicle/timeline/store.py:113
Functionread_file
(path: Path)
src/openchronicle/store/files.py:184
Functionread_memory
Read the full contents of ONE memory file the user has on disk. Use after `list_memories` / `search` points you at a promising file.
src/openchronicle/mcp/server.py:351
Functionread_recent_capture
Return the capture that best matches the given time + filters. ``at`` None → newest matching capture overall. ``at`` set → nearest-in-time ma
src/openchronicle/mcp/captures.py:115
Functionread_recent_capture
Hydrate ONE raw screen capture — the actual visible_text, focused input value, URL, and (optionally) screenshot from the buffer. Use
src/openchronicle/mcp/server.py:440
Functionrebuild
(conn: sqlite3.Connection)
src/openchronicle/store/index_md.py:13
Functionrebuild_captures_index
Backfill captures_fts from capture-buffer/*.json on disk. Re-runnable: existing rows are upserted via INSERT OR REPLACE, so this is safe to i
src/openchronicle/cli.py:906
Functionrebuild_index
Rebuild SQLite FTS index from Markdown files on disk.
src/openchronicle/cli.py:894
Functionrebuild_index
Full rebuild: drop all FTS rows and files rows, re-ingest from Markdown.
src/openchronicle/store/entries.py:237
Functionrecent
( conn: sqlite3.Connection, *, since: str | None = None, limit: int = 20, prefix_filter: l
src/openchronicle/store/fts.py:497
← previousnext →201–300 of 450, ranked by callers