ProjectContextConfig class final

The projectContext: config section (issue #1761).

Tolerant parse: unknown keys and mistyped values produce notes and defaults, never a boot failure — a typo must not kill a session.

Constructors

ProjectContextConfig({int maxBytes = projectContextMaxBytes, List<String> notes = const []})
Creates a configuration; see each field for its default.
const
ProjectContextConfig.fromYaml(Object? node)
Parses the projectContext: yaml section. Tolerant (issue #1761 AC5): numbers are accepted, mistyped scalars fall back to the default with a note, unknown keys are noted and ignored, and a negative value is treated as 0 (disabled). Never throws.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isDisabled → bool
Whether the section is switched off by config (maxBytes: 0).
no setter
maxBytes → int
The merged-content budget. 0 disables the project-context section entirely — no file reads at all (fast boot), an explicit opt-out distinct from "no files found".
final
notes → List<String>
Tolerant-parse notes (unknown keys, mistyped scalars) surfaced at boot.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toYaml() → String
The projectContext: yaml section, only the non-default value — the file stays minimal (defaults are never written). Empty at the default.

Operators

operator ==(Object other) → bool
The equality operator.
inherited