feat(core): Artifact Metadata Binding (${env|arg|sys|secret})
Load-time resolve of frontmatter bindings into Module.metadata; Secret masking; sys.meta / --bind; llm ctor prefers meta over env_get. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
4a2d89406b
commit
88dc6d5a54
31 files changed
+2466
-49
No files matched your search
@@ -27,6 +27,10 @@ pub struct Module {
|
||||
pub functions: Vec<Function>,
|
||||
/// Populated by the loader: bind name → imported module (not flattened).
|
||||
pub import_modules: HashMap<String, Module>,
|
||||
/// Unresolved Artifact Metadata (from frontmatter); filled by parse.
|
||||
pub metadata_raw: Vec<(String, crate::binding::MetaValue)>,
|
||||
/// Bound metadata after load-time Binding resolve (insertion order).
|
||||
pub metadata: Vec<(String, crate::value::Value)>,
|
||||
}
|
||||
|
||||
impl Default for Module {
|
||||
@@ -36,6 +40,8 @@ impl Default for Module {
|
||||
uses: Vec::new(),
|
||||
functions: Vec::new(),
|
||||
import_modules: HashMap::new(),
|
||||
metadata_raw: Vec::new(),
|
||||
metadata: Vec::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user