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
//! Core-embedded default rules, descriptions, and repo_notes for
//! `alc_hub_gendoc` context7 / devin projections.
//!
//! These are compile-time constants (`&'static str` / `&'static [&'static str]`).
//! They are **not** executed as Lua — no `include_str!` or `@embedded:` prefix
//! applies here. The constants are merged into `HubProjectionConfig` by
//! `load_hub_projection_config` before being converted to `toml::Value` and
//! injected into the Lua preload registry via `inject_config_subtable`.
/// Fallback project name when no `name` field is supplied in `[hub]` or
/// `[hub.context7]` / `[hub.devin]` sections and the hub index basename
/// cannot be determined.
pub const DEFAULT_NAME_FALLBACK: &str = "algocline-hub";
/// Default description for context7 projections.
pub const DEFAULT_C7_DESCRIPTION: &str =
"A collection of packages and tools for the algocline ecosystem.";
/// Default rules injected into context7 projections when neither
/// `rules_file` nor `rules_override` is specified in `[hub.context7]`.
/// Extra rules from `extra_rules` are appended after these defaults.
pub const DEFAULT_C7_RULES: & = &;
/// Default repo notes injected into Devin wiki projections when neither
/// `repo_notes_file` nor `repo_notes_override` is specified in `[hub.devin]`.
/// Extra notes from `extra_repo_notes` are appended after these defaults.
///
/// These strings are stored as plain `&str` in-memory. When converted to
/// `toml::Value` via `HubProjectionConfig::to_devin_toml`, each entry is
/// wrapped into `{content = "<str>"}` inline-table form to satisfy the
/// `validate_note` contract in `projections.lua:664-670`.
pub const DEFAULT_DEVIN_REPO_NOTES: & = &;