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
//! The `pack.toml` of a pack, read into one checked manifest.
//!
//! Every rule that needs only the text of `pack.toml` lives here, apart from the checks that need
//! the pack's files or the other packs, so a manifest can be parsed and refused without a
//! directory.
//!
//! # Responsibilities
//!
//! - [`PackManifest`]: reads the whole file into one value, or reports every refusal of it at once.
//! - [`ManifestError`]: one variant per refusal wording a manifest field can meet.
//! - [`Requires`]: the `[requires]` table: required packs, the agentstacks and airsl ranges and
//! required binaries.
//! - [`VersionRange`]: a `requires` version range whose operators are all supported, kept as
//! written.
//! - [`PackPath`]: a path that stays inside the pack, used by `render` and by hook scripts.
//! - [`ExcludeGlob`]: a relative glob with its compiled matcher, used by `exclude`.
//! - [`OptionDecl`]: one `[options.<name>]` declaration: type, default and description.
//! - [`OptionType`]: the three option types, `boolean`, `integer` and `string`.
//! - [`OptionValue`]: a value an option can hold.
//! - [`PackVersion`]: a semantic version, used for packs, extensions and the locked airsl.
//! - [`InvalidVersion`], [`InvalidRange`], [`InvalidPackPath`], [`InvalidExcludeGlob`],
//! [`InvalidOptionType`]: the refusal each of those constructors returns.
//!
//! # Non-responsibilities
//!
//! A `render` file existing, an `exclude` protecting a `SKILL.md` and `requires.airsl` being
//! present when the pack holds Lua need the pack's files, so the pack loader owns them. Rules
//! across several packs belong to the set checks. The `[[hooks]]` tables are read here but defined
//! by [`hooks`](mod@crate::types::hooks).
//!
//! This file is an export-only module with no executable logic, so it carries no inline tests.
pub use ManifestError;
pub use ExcludeGlob;
pub use InvalidExcludeGlob;
pub use InvalidOptionType;
pub use InvalidPackPath;
pub use InvalidRange;
pub use InvalidVersion;
pub use OptionDecl;
pub use OptionType;
pub use OptionValue;
pub use PackManifest;
pub use PackPath;
pub use PackVersion;
pub use VersionRange;
pub use Requires;