ResolveLink
Object Hierarchy:
Description:
public class ResolveLink : Object
Turns validated task reference links into fenced markdown blocks for prompts: task docs, #anchors in the user request, http(s) from
cache, and file excerpts (line range, full file, or AST path after preload_links parsed the tree). Used from
Details.reference_contents, refine(), and Tool.run after preload.
Content:
Properties:
- public ProjectManager project_manager { get; }
Buffers, tree cache, and project files — same object as
runner.sr_factory.project_manager on the runner passed to the constructor.
Creation methods:
Methods:
- public async void preload_file (Format link)
Resolve path, create the buffer if needed, and read_async so
resolve / file can read full file or line ranges from the buffer.
- public async void preload_links (Collection<Format> links)
Warm state for a batch of links: preload_http
for http(s); for file, preload_file then, when hash is non-empty and not a #L line-range, tree_factory
+ tree.parse so file_ast can resolve AST path fragments.
- public string resolve (Format link)
Build one reference block (header + body). Synchronous; call
preload_links (and any narrower preload) first so file buffers, trees, and runner.http_cache are ready.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref