systemprompt-templates 0.54.0
“Template registry, loading, and rendering for systemprompt.io config-as-code AI governance deployments. Handlebars-powered template engine…”
Release published within seven daysimports tokio::fs
SHA-256fa0d23b3f51b10ff41a0e88971b9fdb759092f4ba6ee72cd82d39a2387097dd7
MaleculeH₂(CmF)
Evidence
1:3… ! Template-registry loading: provider iteration and partial registration.
2//!
3//! Copyright (c) systemprompt.io — Business Source License 1.1.
4//! See <https://systemprompt.io> for licensing details.
5
6use std::path::Path;
7
8use systemprompt_template_provider::{PartialSource, TemplateDefinition};
9use tracing::{debug, info, warn};
10
11use super::TemplateRegistry;
12use crate::TemplateError;
13
14impl TemplateRegistry {
15 pub async fn initialize(&mut self) -> Result<(), TemplateError> { …
133:31… (&self, path: &Path) -> Result<String, TemplateError> {
134 tokio::fs::read_to_string(path)
135 .await
136 .map_err(|e| TemplateError::LoadError {
137 name: path.display().to_string(),
138 …
5:31… mg.shields.io/badge/license-BSL--1.1-2b6cb0?style=flat-square)](https://github.com/systempromptio/systemprompt-core/blob/main/LICENSE)
6[ workspace.
11
12## Overvie …
1:4… Filesystem-backed [`TemplateProvider`] used by the core engine and the
2//! `defaults/` template tree.
3//!
4//! Copyright (c) systemprompt.io — Business Source License 1.1.
5//! See <https://systemprompt.io> for licensing details.
6
7use std::collections::HashMap;
8use std::path::{Path, PathBuf};
9
10use serde::Deserialize;
11use systemprompt_template_provider::{TemplateDefinition, TemplateProvider, TemplateSource};
12use tokio::fs;
13use tracing::{debug, warn};
14
15use crate::error::TemplateResult;
16
17#[derive(Debug, Deserialize, Default)]
18struct TemplateManifest {
19 #[serde(default)]
20 te …
No evidence locations were recorded for this file. Raw result