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
60
61
62
63
64
65
66
//! The `providers.yaml` half of the §9.4 block grammar: reading back every role
//! the file declares, and rewriting exactly one role's `provider:`/`model:`
//! fields in place.
//!
//! The sibling of [`models`](super::models) and [`tools`](super::tools) — one
//! module per file the picker touches, all three over [`super`]'s shared
//! anchored primitives. Pure text → text; every byte outside the two rewritten
//! lines survives, and anything off-grammar declines loudly rather than being
//! guessed at.
use ;
/// Every role `providers.yaml` declares, in file order. A role whose block
/// lacks `provider:` or `model:` is omitted — it is not an assignment yet, and
/// a rewrite of it would refuse anyway ([`set_role_model`]).
/// Rewrite one role's `provider:` and `model:` lines in place, preserving
/// every other byte (comments, `tools:`, sibling roles) — two applications of
/// the one [`set_field`] rewrite. The pair is all-or-nothing: a role missing
/// either line refuses and the intermediate text is dropped unwritten.
/// The role assignment's four-space field names, said once (bl-23bd): two
/// required — the (row, id) pointer §9.4 writes — and two optional tuning knobs
/// litany reads as `Option`s. `&'static str` because [`GrammarError::NoField`]
/// carries the name it could not find.
pub const PROVIDER: &str = "provider";
/// The model id half of the pointer.
pub const MODEL: &str = "model";
/// The role's reasoning-effort level (litany ARCH §4.3, upstream bl-acba).
pub const EFFORT: &str = "effort";
/// The role's priority-lane request (upstream bl-f587).
pub const PRIORITY: &str = "priority";