feat: todos (#2184)

This commit is contained in:
yetone
2025-06-15 15:10:07 +08:00
committed by GitHub
parent fdf4716ec0
commit ad05a802f9
13 changed files with 538 additions and 71 deletions

View File

@@ -43,6 +43,7 @@ struct TemplateContext {
system_info: Option<String>,
model_name: Option<String>,
memory: Option<String>,
todos: Option<String>,
}
// Given the file name registered after add, the context table in Lua, resulted in a formatted
@@ -70,6 +71,7 @@ fn render(state: &State, template: &str, context: TemplateContext) -> LuaResult<
system_info => context.system_info,
model_name => context.model_name,
memory => context.memory,
todos => context.todos,
})
.map_err(LuaError::external)
.unwrap())