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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
//! An operation a tool extension proposes, and the validation of it.
//!
//! Extensions only propose; the core validates each operation before it can be planned or
//! applied. Everything here is pure: values in, an answer or a refusal out. Nothing reads Lua,
//! the disk, git or `PATH`.
//!
//! # Responsibilities
//!
//! - [`LuaType`] and [`ApiFunction`]: the type words and the function names an operation refusal
//! prints.
//! - [`OpError`]: every refusal of an operation, a call, or an extension's handlers.
//! - [`PathShape`]: the one wording of a project path that is empty, absolute, climbing out of
//! the project, or not `/`-separated.
//! - [`OpPath`]: a project-relative path in its normalised form. [`OpPath::proposed`] is the
//! entry point for the path of a `write` or a `copy`.
//! - [`ItemId`]: the id the plan payload gives each item.
//! - [`Operation`], [`Proposal`] and [`Origin`]: what an extension proposes and who proposed it;
//! [`SkipReason`], [`SkipSubject`] and [`CoreSkip`]: the skips, including the ones the core
//! makes. `owner` derives the owner of a proposal.
//! - [`Proposals`]: the record of accepted proposals in call order, with the duplicate-path and
//! skip/cover conflict rules. [`check_coverage`] and [`check_translate`] are the checks at the
//! end of a tool's plan.
//! - [`payload`]: the `values` and `plan` payloads the core hands an extension, as values.
//! - [`answer`]: the `values` result read and checked ([`ValuesResult`]), and a token's value
//! looked up in it. [`first_missing`] and the `skip_*` functions are the skips the core makes
//! when a value is missing.
//! - [`root_file_write`], [`runtime_write`] and [`runtime_needed`]: the writes the core makes
//! under the extension's root.
//! - [`collect_binaries`] and [`BinaryRequirement`]: the binaries to look up on `PATH`;
//! [`parse_airsl_version`] and the `airsl_*` refusals: the rule for the `airsl` binary.
//!
//! # Non-responsibilities
//!
//! Reading the arguments of a call from Lua, reading a file, and the phase a call is allowed in
//! belong to the extension host. Rendering the payloads and driving the order of a run belong to
//! the plan flow; deciding the step for each path belongs to the plan rules.
//!
//! This file is an export-only module with no executable logic, so it carries no inline tests.
pub use airsl_not_found;
pub use airsl_unparseable;
pub use parse_airsl_version;
pub use SkillValues;
pub use TokenValue;
pub use ValuesResult;
pub use BinaryRequirement;
pub use collect_binaries;
pub use check_coverage;
pub use OpError;
pub use ItemId;
pub use first_missing;
pub use skip_for_missing_value;
pub use skip_root_file_for_missing_value;
pub use skip_skill_without_location;
pub use Origin;
pub use owner;
pub use OpPath;
pub use PlanAction;
pub use PlanAgent;
pub use PlanFile;
pub use PlanHook;
pub use PlanInput;
pub use PlanNative;
pub use PlanNativeHook;
pub use PlanPack;
pub use PlanSkill;
pub use ValuesInput;
pub use ValuesPack;
pub use Operation;
pub use Proposal;
pub use Proposals;
pub use root_file_write;
pub use runtime_needed;
pub use runtime_write;
pub use PathShape;
pub use CoreSkip;
pub use SkipReason;
pub use SkipSubject;
pub use check_translate;
pub use ApiFunction;
pub use LuaType;