Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

docs(daemon): clarify PII filter return contract (#1079)

Gustavo Ye49f19054c43a
diff --git a/src/daemon/src/drivers/systemPrompt.ts b/src/daemon/src/drivers/systemPrompt.ts
index b6805ef08..c0f1a3e63 100644
--- a/src/daemon/src/drivers/systemPrompt.ts
+++ b/src/daemon/src/drivers/systemPrompt.ts
@@ -181,7 +181,7 @@ function cliCommandsSection(): string {
`1. \`${CLI} pii list\` — list this bot's filters in execution order.`,
`2. \`${CLI} pii add --file <path.ts> --description <text>\` — append a new filter to this bot's pipeline.`,
"",
- "To add a filter, write a TS module with a pure, synchronous default export `(text: string) => string`. " +
+ "To add a filter, write a TS module with a pure, synchronous default export `(text: string) => ({ text: string, triggered: boolean })`. Set triggered explicitly when the filter matches. " +
"Use one sentence for its description. Plugins cannot import modules or access files, network, or environment variables.",
"Adding stores a source copy. Later edits to the input file do not update the installed filter. " +
"Do not edit daemon-managed copies.",