-
Notifications
You must be signed in to change notification settings - Fork 1
Change BaseFrontMatter URN field from string to *urn.URN type #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,13 +5,14 @@ import ( | |
| "fmt" | ||
|
|
||
| "github.com/kitproj/coding-context-cli/pkg/codingcontext/mcp" | ||
| "github.com/kitproj/coding-context-cli/pkg/codingcontext/urn" | ||
| ) | ||
|
|
||
| // BaseFrontMatter represents parsed YAML frontmatter from markdown files | ||
| type BaseFrontMatter struct { | ||
| // URN is an optional unique identifier for the prompt in URN format (e.g. urn:agents:task:<name>) | ||
| // Automatically inferred from filename if not specified in frontmatter | ||
| URN string `yaml:"id,omitempty" json:"id,omitempty"` | ||
| // If not specified in frontmatter, this field remains empty and must be set explicitly by tooling if required. | ||
| URN *urn.URN `yaml:"urn,omitempty" json:"urn,omitempty"` | ||
|
Comment on lines
13
to
+15
|
||
|
|
||
| // Name is an optional human-readable name for the task | ||
| // Metadata only, does not affect task matching or filtering | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation in docs/reference/file-formats.md references "id" as the field name in multiple places (lines 32, 40, 486, 492, 652, 658), but this PR changes the field from "id" to "urn". The documentation should be updated to reflect the new field name and clarify that it expects URN format (e.g., "urn:agents:task:task-name").