MCPcopy Create free account

hub / github.com/avelino/outl / functions

Functions3,488 in github.com/avelino/outl

↓ 418 callersMethodpush
Ship this JSONL of local ops to your backend.
plugin-sdk/src/index.ts:325
↓ 298 callersMethodpath
Path of the lock file (for diagnostics).
crates/outl-core/src/lock.rs:129
↓ 277 callersMethoditer
Iterate all ops in HLC order.
crates/outl-core/src/log.rs:59
↓ 227 callersFunctiondefault
Default palette returned when nothing is configured. Mirrors the TUI's `theme::default_theme()` choice — `outl` is the brand palette every other clien
crates/outl-theme/src/lib.rs:82
↓ 213 callersMethodget
Fetch one block by id, or `null` if it no longer exists.
plugin-sdk/src/index.ts:171
↓ 201 callersMethodpath
Path this store reads from / writes to (`<workspace>/.outl/peers.json` in prod). The transport keeps the path so its catch-up loop can reload peers a
crates/outl-sync-iroh/src/peers.rs:327
↓ 187 callersFunctionparse
Parse a `.md` string into a [`ParsedPage`].
crates/outl-md/src/parse.rs:97
↓ 148 callersMethodis_empty
Whether the log is empty.
crates/outl-core/src/log.rs:28
↓ 144 callersMethodlen
Number of ops currently in the log.
crates/outl-core/src/log.rs:23
↓ 130 callersFunctionappend_block
Append a brand-new block as the last child of `parent` and return its id. `parent` defaults to [`NodeId::root`] when not supplied.
crates/outl-actions/src/block/create.rs:50
↓ 122 callersMethodapply
(&mut self, op: LogOp)
crates/outl-core/tests/common/mod.rs:32
↓ 113 callersFunctionroot
Tests don't need a real filesystem — `source_path` is just `root + journals/<slug>.md` / `pages/<slug>.md`. Using a constant root keeps assertions rea
crates/outl-actions/src/backlinks.rs:290
↓ 104 callersMethodcontains
Whether the tree currently contains a record for this node.
crates/outl-core/src/tree/mod.rs:77
↓ 103 callersMethodlen
Length in characters.
crates/outl-tui/src/edit_buffer.rs:39
↓ 98 callersFunctionopen
Open the workspace at `path`. Returns a stable [`ApiError`] on any boot failure (missing workspace, bad config, filesystem error). Lock policy.** The
crates/outl-cli/src/ws.rs:62
↓ 86 callersMethodtree
Read-only access to the materialized tree.
crates/outl-core/src/workspace.rs:472
↓ 82 callersMethodinsert
(&mut self, node: NodeId, doc: Doc)
crates/outl-core/src/content.rs:101
↓ 76 callersMethodis_empty
Whether the buffer is empty.
crates/outl-tui/src/edit_buffer.rs:44
↓ 68 callersFunctionblock
( id: string, opts: { text?: string; todo?: "TODO" | "DONE" | null; collapsed?: boolean; c
crates/outl-frontend-shared/src/outline/outline.test.ts:20
↓ 68 callersFunctionop_at
Build a deterministic `LogOp` at a chosen HLC.
crates/outl-core/tests/common/mod.rs:38
↓ 68 callersFunctionwrite
Write a sidecar to disk as pretty-printed JSON. Uses [`crate::atomic::write_atomic`] so a crash mid-write can never leave a half-written sidecar that
crates/outl-md/src/sidecar.rs:255
↓ 61 callersMethodok
(&mut self, msg: impl Into<String>)
crates/outl-cli/src/cmd/doctor.rs:95
↓ 59 callersFunctiontokenize
Tokenize inline block content. Greedy left-to-right scan. Plain text accumulates between recognized constructs and emerges as a single [`InlineTok::P
crates/outl-md/src/inline.rs:287
↓ 57 callersMethodregister
(transport: SyncTransport)
plugin-sdk/src/index.ts:332
↓ 56 callersMethodparent
Current parent of a node, or `None` if the node is not in the tree.
crates/outl-core/src/tree/mod.rs:82
↓ 55 callersMethodnext
Produce the next monotonic HLC.
crates/outl-core/src/hlc.rs:97
↓ 53 callersFunctionpos
Convenience: a fractional position parsed from a literal.
crates/outl-core/tests/common/mod.rs:83
↓ 51 callersFunctionopen_or_create
Open the page for `slug`, creating it if it doesn't exist yet. The page's [`NodeId`] is derived deterministically from the slug (see [`page_id_from_s
crates/outl-actions/src/page.rs:284
↓ 47 callersMethodremove
Remove a peer by node_id prefix. Returns true if found.
crates/outl-sync-iroh/src/peers.rs:366
↓ 46 callersFunctionhaptic
(style: HapticStyle = "light")
crates/outl-mobile/src/lib/haptics.ts:20
↓ 45 callersFunctionchildren_of
Children of `parent` sorted ascending by their fractional position.
crates/outl-actions/src/tree.rs:34
↓ 45 callersFunctionpage_meta
Read page metadata from a node. Returns `None` when the node is not a page (no `page-slug` property).
crates/outl-actions/src/page.rs:139
↓ 44 callersFunctionshared_wid
A fixed workspace id shared by both sides of a sync test. The serve side validates `SyncRequest.workspace_id` against the local id and rejects a mism
crates/outl-sync-iroh/tests/common/mod.rs:32
↓ 43 callersFunctioncreate_op
Convenience: `Create` under `parent` at `position`.
crates/outl-core/tests/common/mod.rs:100
↓ 43 callersFunctionfresh_identity
Build a fresh in-memory identity backed by a temp file path that doesn't exist yet (so `load_or_generate` generates + persists a new keypair).
crates/outl-sync-iroh/tests/common/mod.rs:38
↓ 42 callersMethodas_str
Wire value used in the stored property.
crates/outl-actions/src/page.rs:53
↓ 42 callersFunctionbind_sync_endpoint
Bind a sync-ALPN endpoint with the given identity, exactly like the transport's `run_iroh` does.
crates/outl-sync-iroh/src/test_support.rs:33
↓ 40 callersFunctionchord
(mods: number, key: Chord["key"])
crates/outl-desktop/src/lib/chord-format.test.ts:6
↓ 39 callersMethodcmp
(&self, other: &Self)
crates/outl-core/src/hlc.rs:43
↓ 38 callersFunctionparse_node_id
(s: &str)
crates/outl-tauri-shared/src/helpers.rs:23
↓ 37 callersMethodblock_text
Block text content, if the block has any.
crates/outl-core/src/workspace.rs:482
↓ 37 callersFunctionemit
Emit a result either as JSON (when `as_json` is true) or by running the human formatter. On the JSON path, errors propagate via process exit code matc
crates/outl-cli/src/output.rs:179
↓ 37 callersMethodwith_workspace
Run `f` against the cached workspace, opening it on first use. The lock is held for the whole call — fine because the MCP stdio loop is single-thread
crates/outl-cli/src/mcp/mod.rs:138
↓ 36 callersFunctionrequire_str
Extract a required string argument or return `INVALID_ARG`.
crates/outl-cli/src/mcp/tools/mod.rs:33
↓ 35 callersFunctionhex_to_color
Convert a `#rrggbb` palette string into a ratatui [`Color`]. Malformed input degrades to [`Color::Reset`] instead of panicking so a bad config never
crates/outl-tui/src/theme.rs:27
↓ 35 callersFunctionread
Read and validate a sidecar from disk. Accepts any version in `[MIN_READABLE_SIDECAR_VERSION, SIDECAR_VERSION]`. Older payloads are upgraded in-memor
crates/outl-md/src/sidecar.rs:236
↓ 34 callersFunctionderive_ref_handle
Derive the canonical ref handle for a given block id. Format: `blk-` followed by the last [`REF_HANDLE_TAIL_LEN`] characters of the ULID's Crockford
crates/outl-md/src/sidecar.rs:272
↓ 32 callersMethodapply
Apply an op locally and persist it. The op is appended to the in-memory log, dispatched to the Yrs content store if it's an `Edit`, and persisted to
crates/outl-core/src/workspace.rs:318
↓ 32 callersFunctionseed_ops
Write `count` real `Op::Create` ops authored by `actor` into `<workspace>/ops/ops-<actor>.jsonl` via the production `JsonlStorage`. Timestamps are an
crates/outl-sync-iroh/tests/common/mod.rs:50
↓ 32 callersFunctionwrite
(path: &Path, contents: &str)
crates/outl-cli/src/cmd/plugin_init.rs:60
↓ 31 callersMethodposition
Current position of a node, or `None` if the node is not in the tree.
crates/outl-core/src/tree/mod.rs:87
↓ 30 callersFunctionhtmlToOutlMarkdown
(html: string)
crates/outl-frontend-shared/src/paste/html.ts:137
↓ 30 callersFunctionwithError
(fn: () => Promise<T>)
crates/outl-mobile/src/components/Journal.tsx:654
↓ 27 callersFunctionapplyView
(v: PageView)
crates/outl-mobile/src/components/Journal.tsx:197
↓ 27 callersFunctioncontent_hash
Compute the canonical content hash of a block's text. The text is whitespace-normalized (internal whitespace collapsed to a single space, leading/tra
crates/outl-md/src/sidecar.rs:285
↓ 27 callersFunctionfile_hash
Compute the hash of the full `.md` file content.
crates/outl-md/src/sidecar.rs:293
↓ 27 callersFunctionrun
Run a `outl tag …` invocation.
crates/outl-cli/src/cmd/tag.rs:42
↓ 26 callersFunctionrender
Render a `ParsedPage` to a `.md` string.
crates/outl-md/src/render.rs:12
↓ 26 callersFunctionsafeCall
(p: Promise<T>)
crates/outl-desktop/src/lib/action-handlers.ts:71
↓ 26 callersFunctionsidecar_path_for
Compute the sidecar path for a given `.md` path. `pages/foo.md` → `pages/foo.outl`. The `.md` is dropped on purpose — the sidecar always pairs with a
crates/outl-md/src/sidecar.rs:174
↓ 25 callersMethodapply_op
Apply a new op to the log, reordering via undo/replay if necessary. Algorithm (per `docs/crdt.md` §`apply_op`): 1. If `new_op.ts` already in the log
crates/outl-core/src/tree/apply.rs:23
↓ 25 callersMethodbuild_text_replace_update
Build a Yrs `update_v1` payload that, once wrapped in `Op::Edit { node, text_op }` and pushed through [`Self::apply`], rewrites the block's text to `n
crates/outl-core/src/workspace.rs:507
↓ 25 callersFunctiondetectRefContext
( value: string, selection: number, )
crates/outl-frontend-shared/src/autocomplete/index.ts:233
↓ 25 callersFunctionopen_journal
Open the journal page for `date`, creating it if needed.
crates/outl-actions/src/page.rs:417
↓ 24 callersFunctionapply_page_md_with_sidecar
Render the page, write the `.md`, and (re)write its `.outl` sidecar to match the workspace tree exactly. This is the call clients use when they want
crates/outl-actions/src/journal.rs:177
↓ 24 callersFunctionspawn_responder
Mount the production `SyncProtocolHandler` on a `Router` and return it. Keep the returned `Router` alive for as long as the responder must accept con
crates/outl-sync-iroh/src/test_support.rs:52
↓ 23 callersMethodpop
Pop the most recent op. Used by `Tree::apply_op` while reordering.
crates/outl-core/src/log.rs:54
↓ 23 callersFunctionsetError
(msg: string)
crates/outl-desktop/src/components/AppShell.tsx:72
↓ 22 callersMethodhlc
(&self)
crates/outl-mobile/src-tauri/src/state.rs:83
↓ 22 callersFunctionmatch_blocks
Run the matching algorithm against new outline and old sidecar entries. Returns: - One [`Match`] per new block, in DFS preorder of the new AST. - Th
crates/outl-md/src/matching.rs:80
↓ 22 callersFunctionrender_page_md
Render every block under `page_root` to a clean `.md` string, including** the page-level properties stored on the page node (`title::`, `icon::`, `pin
crates/outl-actions/src/journal.rs:87
↓ 21 callersMethodlast
Most recent op (highest HLC), if any.
crates/outl-core/src/log.rs:33
↓ 21 callersMethodlen
(&self)
crates/outl-shortcuts/src/chord.rs:132
↓ 21 callersFunctionreconcile_md
Reconcile a single `.md` file with the workspace. `orphan_log_path` receives one line per orphan id surfaced during matching. Pass `None` to suppress
crates/outl-md/src/reconcile.rs:66
↓ 20 callersFunctiondetectEmojiContext
( value: string, selection: number, )
crates/outl-frontend-shared/src/autocomplete/index.ts:381
↓ 20 callersFunctionfind_by_slug
Look up a page by slug. Returns the page root [`NodeId`] when found.
crates/outl-actions/src/page.rs:115
↓ 20 callersFunctionpath_for_index
Return the path of indices to reach the block at `target_index` in DFS preorder. `None` if the index is out of range.
crates/outl-md/src/outline_ops.rs:53
↓ 20 callersFunctionvault_with
(files: &[(&str, &str)])
crates/outl-cli/src/cmd/import/obsidian/tests.rs:30
↓ 19 callersFunctionmake_op
(g: &HlcGenerator, op: Op)
crates/outl-core/tests/tree_unit.rs:18
↓ 19 callersFunctionresolve_path
(global: Option<&PathBuf>, local: Option<&PathBuf>)
crates/outl-cli/src/main.rs:541
↓ 19 callersFunctionrun_delta_sync
Run the production `delta_sync` initiator against `peer` (a full [`iroh::EndpointAddr`] from the responder's `endpoint.addr()`).
crates/outl-sync-iroh/src/test_support.rs:77
↓ 18 callersMethodclear
Drop both stacks. Call when the snapshots no longer describe the live workspace — e.g. on workspace switch, or after a peer merge **changed this page*
crates/outl-actions/src/history.rs:113
↓ 18 callersFunctioneditingId
()
crates/outl-desktop/src/components/OutlineView.tsx:44
↓ 18 callersFunctionformatChord
(chord: Chord)
crates/outl-desktop/src/lib/chord-format.ts:65
↓ 18 callersFunctionload
Load `config.toml` from the default path. Returns [`Config::default`] when the file doesn't exist (first launch), is empty, or fails to parse — all th
crates/outl-config/src/lib.rs:73
↓ 18 callersMethodnotify
Show a short message (toast / status line, per client).
plugin-sdk/src/index.ts:277
↓ 18 callersFunctionopt_str
Extract an optional string argument.
crates/outl-cli/src/mcp/tools/mod.rs:43
↓ 18 callersFunctionoutl
()
crates/outl-cli/tests/cli_machine.rs:14
↓ 18 callersFunctionpaste_markdown
Apply pasted markdown to the workspace at `anchor`. `raw` is the clipboard contents verbatim. The function: 1. Normalises external syntax to outl (s
crates/outl-actions/src/paste/mod.rs:150
↓ 18 callersFunctionrun_import
Run an import against `vault`, returning the workspace TempDir (kept alive so the caller can read the produced files), the workspace [`Paths`], and th
crates/outl-cli/src/cmd/import/obsidian/tests.rs:21
↓ 18 callersFunctionwrite_workspace
(files: &[(&str, &str)])
crates/outl-md/tests/workspace_index.rs:22
↓ 17 callersFunctionautoDeletePair
( value: string, selection: number, )
crates/outl-frontend-shared/src/autocomplete/index.ts:130
↓ 17 callersMethodcollect_page
One-shot page indexing — populates blocks, handles **and reverse refs in a single call. Safe to use after the initial build has finished: every cited
crates/outl-md/src/block_index.rs:219
↓ 17 callersFunctionhandleError
(promise: Promise<T>)
crates/outl-desktop/src/components/OutlineView.tsx:135
↓ 17 callersMethodlist
List every page in the workspace.
plugin-sdk/src/index.ts:195
↓ 17 callersFunctionlogop
(g: &HlcGenerator, op: Op)
crates/outl-core/tests/snapshot_equivalence.rs:20
↓ 17 callersFunctionparkCaret
(el: HTMLTextAreaElement, pos: number)
crates/outl-mobile/src/lib/textarea.ts:59
↓ 17 callersMethodproperty
Current value of a property, or `None` if unset.
crates/outl-core/src/tree/mod.rs:92
↓ 17 callersFunctionrequire_str
(args: &'a Value, key: &str)
crates/outl-cli/src/cmd/batch.rs:217
↓ 17 callersMethodsave
Render the in-memory `page` back to disk and reconcile. All writes go through [`outl_md::write_atomic`] so a crash between render and rename cannot l
crates/outl-tui/src/actions/lifecycle/persistence.rs:104
next →1–100 of 3,488, ranked by callers