aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
18
akode-rs/hooks/src/context.rs
Normal file
18
akode-rs/hooks/src/context.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
//! Model-visible hook context, attributed by the executor that produced it.
|
||||
|
||||
use akode_protocol::models::ContentItemMetadata;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct HookContext {
|
||||
pub text: String,
|
||||
pub metadata: ContentItemMetadata,
|
||||
}
|
||||
|
||||
impl HookContext {
|
||||
pub fn harness(text: String) -> Self {
|
||||
Self {
|
||||
text,
|
||||
metadata: ContentItemMetadata::harness(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user