@@ -21,7 +21,6 @@ func TestCommandFrontMatter_Marshal(t *testing.T) {
2121 name : "command with standard id, name, description" ,
2222 command : CommandFrontMatter {
2323 BaseFrontMatter : BaseFrontMatter {
24- URN : mustParseURN ("urn:agents:command:standard" ),
2524 Name : "Standard Command" ,
2625 Description : "This is a standard command with metadata" ,
2726 },
@@ -32,7 +31,6 @@ func TestCommandFrontMatter_Marshal(t *testing.T) {
3231 name : "command with expand false" ,
3332 command : CommandFrontMatter {
3433 BaseFrontMatter : BaseFrontMatter {
35- URN : mustParseURN ("urn:agents:command:no-expand" ),
3634 Name : "No Expand Command" ,
3735 Description : "Command with expansion disabled" ,
3836 },
@@ -47,7 +45,6 @@ func TestCommandFrontMatter_Marshal(t *testing.T) {
4745 name : "command with selectors" ,
4846 command : CommandFrontMatter {
4947 BaseFrontMatter : BaseFrontMatter {
50- URN : mustParseURN ("urn:agents:command:selector" ),
5148 Name : "Selector Command" ,
5249 Description : "Command with selectors" ,
5350 },
@@ -88,9 +85,9 @@ description: A command with standard fields
8885` ,
8986 want : CommandFrontMatter {
9087 BaseFrontMatter : BaseFrontMatter {
91- URN : mustParseURN ("urn:agents:command:named" ),
9288 Name : "Named Command" ,
9389 Description : "A command with standard fields" ,
90+ Content : map [string ]any {"id" : "urn:agents:command:named" },
9491 },
9592 },
9693 },
@@ -103,9 +100,9 @@ expand: false
103100` ,
104101 want : CommandFrontMatter {
105102 BaseFrontMatter : BaseFrontMatter {
106- URN : mustParseURN ("urn:agents:command:no-expand" ),
107103 Name : "No Expand" ,
108104 Description : "No expansion" ,
105+ Content : map [string ]any {"id" : "urn:agents:command:no-expand" },
109106 },
110107 ExpandParams : nil ,
111108 },
@@ -121,9 +118,9 @@ selectors:
121118` ,
122119 want : CommandFrontMatter {
123120 BaseFrontMatter : BaseFrontMatter {
124- URN : mustParseURN ("urn:agents:command:selector" ),
125121 Name : "Selector Command" ,
126122 Description : "Has selectors" ,
123+ Content : map [string ]any {"id" : "urn:agents:command:selector" },
127124 },
128125 Selectors : map [string ]any {
129126 "database" : "postgres" ,
@@ -145,9 +142,6 @@ selectors:
145142 }
146143
147144 // Compare fields individually
148- if ! urnEqual (got .URN , tt .want .URN ) {
149- t .Errorf ("URN = %q, want %q" , urnString (got .URN ), urnString (tt .want .URN ))
150- }
151145 if got .Name != tt .want .Name {
152146 t .Errorf ("Name = %q, want %q" , got .Name , tt .want .Name )
153147 }
0 commit comments