@@ -67,7 +67,7 @@ func TestEveryRegistryAgentGeneratesAContainedAdapter(t *testing.T) {
6767 writeTestFile (t , filepath .Join (repo , "package.json" ), `{"dependencies":{"@operatorstack/yield":"0.1.17"}}` )
6868 skill := filepath .Join (repo , "workflows" , "review" )
6969 writeTestFile (t , filepath .Join (skill , "SKILL.md" ), "---\n name: review\n description: Review the branch when the user wants code checked before shipping.\n ---\n " )
70- writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"language":"typescript","run":["node","main.ts"]}` )
70+ writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"yield_version":"0.1.23"," language":"typescript","run":["node","main.ts"]}` )
7171 writeTestFile (t , filepath .Join (skill , "main.ts" ), "export {}\n " )
7272 registry , err := loadAgentRegistry ()
7373 if err != nil {
@@ -225,7 +225,7 @@ func TestRegisterAllPreflightsAndWritesEveryWorkflow(t *testing.T) {
225225 for _ , name := range []string {"review" , "release" } {
226226 skill := filepath .Join (repo , "skills" , name )
227227 writeTestFile (t , filepath .Join (skill , "SKILL.md" ), "---\n name: " + name + "\n description: Run " + name + " when the matching project workflow is requested.\n ---\n " )
228- writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"language":"typescript","run":["node","main.ts"]}` )
228+ writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"yield_version":"0.1.23"," language":"typescript","run":["node","main.ts"]}` )
229229 writeTestFile (t , filepath .Join (skill , "main.ts" ), "export {}\n " )
230230 }
231231 output := captureStdout (t , func () {
@@ -256,7 +256,7 @@ func TestRegisterAllPruneRemovesOnlyOwnedAdapterFile(t *testing.T) {
256256 for _ , name := range []string {"review" , "release" } {
257257 skill := filepath .Join (repo , "skills" , name )
258258 writeTestFile (t , filepath .Join (skill , "SKILL.md" ), "---\n name: " + name + "\n description: Run " + name + " when the matching project workflow is requested.\n ---\n " )
259- writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"language":"typescript","run":["node","main.ts"]}` )
259+ writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"yield_version":"0.1.23"," language":"typescript","run":["node","main.ts"]}` )
260260 writeTestFile (t , filepath .Join (skill , "main.ts" ), "export {}\n " )
261261 }
262262 if err := cmdRegisterAll ([]string {filepath .Join (repo , "skills" ), "--root" , repo , "--agent" , "codex" }); err != nil {
@@ -285,7 +285,7 @@ func TestRegisterAllRefusesCrossDirectoryNameCollisionBeforeWrites(t *testing.T)
285285 makeSkill := func (parent string ) string {
286286 skill := filepath .Join (repo , parent , "review" )
287287 writeTestFile (t , filepath .Join (skill , "SKILL.md" ), "---\n name: review\n description: Review the project when a user asks for a check.\n ---\n " )
288- writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"language":"typescript","run":["node","main.ts"]}` )
288+ writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"yield_version":"0.1.23"," language":"typescript","run":["node","main.ts"]}` )
289289 writeTestFile (t , filepath .Join (skill , "main.ts" ), "export {}\n " )
290290 return skill
291291 }
@@ -442,7 +442,7 @@ func TestWorkflowSDKVersionMustMatchRuntime(t *testing.T) {
442442
443443func TestGoWorkflowSDKVersionAcceptsGeneratedAndBlockForms (t * testing.T ) {
444444 repo := t .TempDir ()
445- manifest := skillManifest {Version : 1 , Language : "go" , Run : []string {"go" , "run" , "." }}
445+ manifest := skillManifest {Version : 1 , YieldVersion : "0.1.23" , Language : "go" , Run : []string {"go" , "run" , "." }}
446446 for name , goMod := range map [string ]string {
447447 "generated" : "module review\n \n go 1.26.5\n \n require github.com/operatorstack/yield v0.1.23\n " ,
448448 "block" : "module review\n \n go 1.26.5\n \n require (\n \t github.com/operatorstack/yield v0.1.23\n )\n " ,
@@ -462,7 +462,7 @@ func TestDoctorReportsSDKRuntimeAndAdapterVersionProblemsTogether(t *testing.T)
462462 writeTestFile (t , filepath .Join (repo , ".git" , "keep" ), "" )
463463 skill := filepath .Join (repo , "skills" , "review" )
464464 writeTestFile (t , filepath .Join (skill , "SKILL.md" ), "---\n name: review\n description: Review code before it is shipped.\n ---\n " )
465- writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"language":"go","run":["go","run","."]}` )
465+ writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"yield_version":"0.1.23"," language":"go","run":["go","run","."]}` )
466466 writeTestFile (t , filepath .Join (skill , "go.mod" ), "module review\n \n go 1.26.5\n \n require github.com/operatorstack/yield v0.1.22\n " )
467467 writeTestFile (t , filepath .Join (skill , "main.go" ), "package main\n func main() {}\n " )
468468 writeTestFile (t , localRuntimePath (repo ), "runtime" )
@@ -491,7 +491,7 @@ func createTypeScriptSkill(t *testing.T, repo, name string) string {
491491 writeTestFile (t , filepath .Join (repo , "package.json" ), `{"dependencies":{"@operatorstack/yield":"0.1.17"}}` )
492492 skill := filepath .Join (repo , "skills" , name )
493493 writeTestFile (t , filepath .Join (skill , "SKILL.md" ), "---\n name: " + name + "\n description: Review the branch when the user wants code checked before shipping.\n ---\n " )
494- writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"language":"typescript","run":["node","main.ts"]}` )
494+ writeTestFile (t , filepath .Join (skill , "skill.json" ), `{"version":1,"yield_version":"0.1.23"," language":"typescript","run":["node","main.ts"]}` )
495495 writeTestFile (t , filepath .Join (skill , "main.ts" ), "export {}\n " )
496496 return skill
497497}
0 commit comments