Skip to content

Commit 1b51ba9

Browse files
committed
fix: update types.ts comment to reflect underscore prefix convention
The AgentFrontmatter interface comment still referenced the old $varname syntax but the codebase was refactored to use _varname (underscore prefix) for template variables in commit 2ce043e.
1 parent 5a767a1 commit 1b51ba9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/types.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ export interface AgentFrontmatter {
3939
[key: `$${number}`]: string;
4040

4141
/**
42-
* Named template variables ($varname)
43-
* Reads value from --varname CLI flag and makes it available as {{ varname }}
44-
* Example: $feature_name: → reads --feature_name value → {{ feature_name }}
42+
* Template variables (_varname)
43+
* Underscore-prefixed keys are template variables, not passed to CLI.
44+
* Available in body as {{ _varname }}, can be overridden via --_varname CLI flag.
45+
* Example: _name: "default" → {{ _name }} in body → --_name "override"
4546
*/
46-
[key: `$${string}`]: string | undefined;
47+
[key: `_${string}`]: string | undefined;
4748

4849
/**
4950
* All other keys are passed directly as CLI flags to the command.

0 commit comments

Comments
 (0)