1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! `oino-resources`: resource loading for Oino — context files (`AGENTS.md` & co.),
//! SYSTEM/APPEND prompt sources, skills, prompt templates, theme files, the structured system
//! prompt, project trust and the keybindings file.
//!
//! Boundary: synchronous std I/O, no async runtime; `oino-core` calls it on blocking threads.
//! Packages and extensions are resolved by `oino-core` and contribute paths through
//! [`ResourceLoader::extend`].
//!
//! # API map
//!
//! | Module | Contents |
//! |---|---|---|
//! | [`loader`] | [`ResourceLoader`], [`ResourceLoaderOptions`], [`ResourceExtensionPaths`], [`ThemeResource`] |
//! | [`discovery`] | settings arrays + auto-discovery with `!glob`/`+path`/`-path`, precedence |
//! | [`context_files`] | [`ContextFile`], [`context_files::load_project_context_files`] |
//! | [`system_prompt`] | [`BuildSystemPromptOptions`], [`SystemPromptState`], [`system_prompt::build_system_prompt_sections`], [`system_prompt::build_system_prompt_state`], [`system_prompt::diff_system_prompt_sections`] |
//! | [`skills`] | [`Skill`], [`skills::load_skills`], [`skills::format_skills_for_prompt`], [`skills::expand_skill_command`] |
//! | [`templates`] | [`PromptTemplate`], [`templates::parse_command_args`], [`templates::substitute_args`], [`templates::expand_prompt_template`] |
//! | [`trust`] | [`trust::TrustStore`], [`trust::has_protected_resources`], [`trust::resolve_project_trust`] |
//! | [`keybindings`] | [`keybindings::KeybindingsFile`], [`keybindings::migrate_keybindings_config`], [`keybindings::is_valid_key_id`] |
//! | [`frontmatter`] | [`frontmatter::parse_frontmatter`] |
//! | [`diagnostics`], [`source`] | `diagnostics.ts`, `source-info.ts` | [`ResourceDiagnostic`], [`SourceInfo`], [`source::PathMetadata`] |
//!
//! Product substitutions (D13): the default preamble names Oino, the docs section points at the
//! bundled Oino docs (`docs_root`), and the bash env guideline is [`system_prompt::ENV_GUIDELINE`].
pub use ContextFile;
pub use ;
pub use ;
pub use Skill;
pub use SourceInfo;
pub use ;
pub use PromptTemplate;