{"_id":"@lushly-dev/afd-testing","_rev":"16-cd7e1e70ae8157f978be4e712cd2a804","name":"@lushly-dev/afd-testing","dist-tags":{"latest":"2.5.0"},"versions":{"0.1.0":{"name":"@lushly-dev/afd-testing","version":"0.1.0","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@0.1.0","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"e3b8380b1ef34c9dfc7862c8477a1da2d5a6a63f","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-0.1.0.tgz","fileCount":115,"integrity":"sha512-cEzQYeKEd93VVS9gvFF//6fgKVAoz3lQ6Gr04S7J5OpdMQfhvOshNpODvNBLZyn0111ngQiB7Wm8VgmoI47ahQ==","signatures":[{"sig":"MEQCIBXHNgai4xV+U286NYUQbTTdd3V/J/p3Ssp2DaoGW43jAiBB8PnjWl2ZZiRDLfmHp+XF1hZhW+fertPEbXwQzZ4COg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":545221},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-0.1.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"lushly-admin","email":"falkicon@gmail.com"},"_resolved":"C:\\Users\\jasfalk\\AppData\\Local\\Temp\\7b74e26d5f72ccfd9340015f3bb1d766\\lushly-dev-afd-testing-0.1.0.tgz","_integrity":"sha512-cEzQYeKEd93VVS9gvFF//6fgKVAoz3lQ6Gr04S7J5OpdMQfhvOshNpODvNBLZyn0111ngQiB7Wm8VgmoI47ahQ==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"11.2.0","description":"Testing utilities for Agent-First Development","directories":{},"_nodeVersion":"23.3.0","dependencies":{"yaml":"^2.7.0","@lushly-dev/afd-core":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","vitest":"^2.1.8","typescript":"^5.7.2"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_0.1.0_1767824771702_0.9999461274595707","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@lushly-dev/afd-testing","version":"0.3.0","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@0.3.0","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"5a2494bcddf6a48654a17add43c86c9b3fc5ee32","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-0.3.0.tgz","fileCount":147,"integrity":"sha512-W9LaQzXGpfAbE9D7gYukkCb02sqXuD2t6zebOqrVf68p7Fx9xigU2KiLxot/KtqxwD1qhsbHsLDDbZ7aeKn1WA==","signatures":[{"sig":"MEUCIEtlKTogiNRtURq1PNhq01vjE54oU74VMFLtrPfHGNWXAiEAscIvnsZiG4aJspBSsBa10xclnQrnpu3fSFCgKeteQdw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":655344},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-0.3.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"lushly-admin","email":"falkicon@gmail.com"},"_resolved":"/tmp/0184d04e1a72d3eb6224cae25a69c896/lushly-dev-afd-testing-0.3.0.tgz","_integrity":"sha512-W9LaQzXGpfAbE9D7gYukkCb02sqXuD2t6zebOqrVf68p7Fx9xigU2KiLxot/KtqxwD1qhsbHsLDDbZ7aeKn1WA==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"10.9.4","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"yaml":"^2.7.0","@lushly-dev/afd-core":"0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","vitest":"^2.1.8","typescript":"^5.7.2"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_0.3.0_1772238045432_0.5657016564622828","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@lushly-dev/afd-testing","version":"0.3.1","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@0.3.1","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"74e364a19ecb3039a44114001bd0bad8be2cd886","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-0.3.1.tgz","fileCount":147,"integrity":"sha512-9HvOFH3OVB3gHXnt+hcLx5MkizL9Ogs9Xs3Wl5E11Lldv0NLFg/2TTe3mHYdhzn5m5INKuyG+kTaBM+zNcWhsQ==","signatures":[{"sig":"MEQCIF4LNNd4tm+RFxnmaWpUobV5zaZx7rFSQAMhXwVz5N7KAiBcx7g2g+6c0dkhhR7PUWN5O4OCJ0dTuebHizB3xioDkQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":655383},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-0.3.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"lushly-admin","email":"falkicon@gmail.com"},"_resolved":"/tmp/0c3f3b8ecbfb27019d97af4daa659744/lushly-dev-afd-testing-0.3.1.tgz","_integrity":"sha512-9HvOFH3OVB3gHXnt+hcLx5MkizL9Ogs9Xs3Wl5E11Lldv0NLFg/2TTe3mHYdhzn5m5INKuyG+kTaBM+zNcWhsQ==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"10.9.4","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"yaml":"^2.7.0","@lushly-dev/afd-core":"0.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","vitest":"^4.0.18","typescript":"^5.7.2","@vitest/coverage-v8":"^4.0.18"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_0.3.1_1772250990045_0.9876000626146493","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@lushly-dev/afd-testing","version":"0.3.2","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@0.3.2","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"7c8632fd2202ea75dbf5fe5806702e8b840db9d3","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-0.3.2.tgz","fileCount":147,"integrity":"sha512-iToBE99LLbgXZVTGMqDrbm4/u8NNNYuCYiAzohsRq5+D+4ZxMIJnyD4+NT/w1ihRxFH4k5EHl5bO5Jmyt9fZUQ==","signatures":[{"sig":"MEYCIQCmLkFNGNfGO2Qoh7LOJ0q0eKu6fiJfktpLJeS8DRdErgIhAN1BkpqlNTVKau3PMQlB7lG2ezQhxPpW4lzjHpHtk4FT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@0.3.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":655383},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-0.3.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"lushly-admin","email":"falkicon@gmail.com"},"_resolved":"/tmp/6b24b0874bdfb335305ddb49e3b837f8/lushly-dev-afd-testing-0.3.2.tgz","_integrity":"sha512-iToBE99LLbgXZVTGMqDrbm4/u8NNNYuCYiAzohsRq5+D+4ZxMIJnyD4+NT/w1ihRxFH4k5EHl5bO5Jmyt9fZUQ==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"10.9.4","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"yaml":"^2.7.0","@lushly-dev/afd-core":"0.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","vitest":"^4.0.18","typescript":"^5.7.2","@vitest/coverage-v8":"^4.0.18"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_0.3.2_1772256950724_0.5869392043206798","host":"s3://npm-registry-packages-npm-production"}},"0.3.4":{"name":"@lushly-dev/afd-testing","version":"0.3.4","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@0.3.4","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"5932ae56f558c717479bdbeb95b2f8a8dc3d3512","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-0.3.4.tgz","fileCount":147,"integrity":"sha512-AZvAISuNTHGAM5H8n7eSfdgfab8emruJF99zhdJADAIxdfjOsleBKep6K5vmnLIriN0VQOpjC1Wv2uBa1NyyNg==","signatures":[{"sig":"MEQCIG3EFJQJbrfdK8RD3vGpr2iRBVguVPYwFD3tFI5c2XtTAiABRvyW3jaIwB4TPXNRs8SzTfW1idYAElXzfPK1t6Ih4Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@0.3.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":655383},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-0.3.4.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"lushly-admin","email":"falkicon@gmail.com"},"_resolved":"/tmp/126ad839e48a9d8142563542dbdef1ab/lushly-dev-afd-testing-0.3.4.tgz","_integrity":"sha512-AZvAISuNTHGAM5H8n7eSfdgfab8emruJF99zhdJADAIxdfjOsleBKep6K5vmnLIriN0VQOpjC1Wv2uBa1NyyNg==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"10.9.4","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"yaml":"^2.7.0","@lushly-dev/afd-core":"0.3.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","vitest":"^4.0.18","typescript":"^5.7.2","@vitest/coverage-v8":"^4.0.18"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_0.3.4_1772258399527_0.014137828404710007","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@lushly-dev/afd-testing","version":"0.4.0","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@0.4.0","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"ff5f824233ebf925f52b0b53aede292214b2ea2c","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-0.4.0.tgz","fileCount":147,"integrity":"sha512-lMipxW19jt6DTpjnMa+JxKdJ0FT4v8FFsIGh033F1JDRnCStd4mdkg6ZS4Qy8d8gkA1Fvj5y8qORuFr7j/fwOw==","signatures":[{"sig":"MEYCIQD5MrdrXDH6EQgRREDMGsRGHiW2ZT0tF57ukzPRRXeUOgIhAJD/0rq1oTAqhQ8tOuxojT4zIfm/tGTmzsfkWxIjcJRc","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":655383},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-0.4.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"lushly-admin","email":"falkicon@gmail.com"},"_resolved":"/tmp/597dd24d1b1c925645f7920687ef200a/lushly-dev-afd-testing-0.4.0.tgz","_integrity":"sha512-lMipxW19jt6DTpjnMa+JxKdJ0FT4v8FFsIGh033F1JDRnCStd4mdkg6ZS4Qy8d8gkA1Fvj5y8qORuFr7j/fwOw==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"10.9.4","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"yaml":"^2.7.0","@lushly-dev/afd-core":"0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","vitest":"^4.0.18","typescript":"^5.7.2","@vitest/coverage-v8":"^4.0.18"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_0.4.0_1772310067410_0.3573873023984364","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@lushly-dev/afd-testing","version":"0.5.0","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@0.5.0","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"ec122707546f30281f68d269612e2f2ffdd4527a","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-0.5.0.tgz","fileCount":147,"integrity":"sha512-5Vv6lPi2PJ7dokWB/UC9xVxUFb72grHxK1tEXSIjcXZO0NYwBrgRCF53Ex1RKF3Ld7x0wTK+gvFojBPLFroLTw==","signatures":[{"sig":"MEYCIQC3q9Foi0IG93xfvnHR5JtVyYgYxXsAOKIQlBC4AvvlqAIhANczKmkDnYn2/eRHARxpm/tcAFkzGAri6/bBy3oNzWuL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":663707},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-0.5.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"lushly-admin","email":"falkicon@gmail.com"},"_resolved":"/tmp/a390e6849a8bdaee71ab0f7b427c7ef9/lushly-dev-afd-testing-0.5.0.tgz","_integrity":"sha512-5Vv6lPi2PJ7dokWB/UC9xVxUFb72grHxK1tEXSIjcXZO0NYwBrgRCF53Ex1RKF3Ld7x0wTK+gvFojBPLFroLTw==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"10.9.4","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"22.22.0","dependencies":{"yaml":"^2.7.0","@lushly-dev/afd-core":"0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.0.1","vitest":"^4.0.18","typescript":"^5.7.2","@vitest/coverage-v8":"^4.0.18"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_0.5.0_1773188890395_0.18885507636124532","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@lushly-dev/afd-testing","version":"0.6.0","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@0.6.0","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"a61b0b98d0f0c8bb8b12e260c4121cee1d650dfc","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-0.6.0.tgz","fileCount":151,"integrity":"sha512-tOEpg5SCfrxaw6gp+5jxabt5e+IU4BHUA+kC7AVkFEU6CaDa3y1WephLuSuna+b5zGFliqDTTzgCQalllQc1/Q==","signatures":[{"sig":"MEQCICwUw2OEZqkWWwK2zso0b15+Hdh6JD+yCbrmZ71mPYv5AiBfbBsKDy7wtdRs41f+SFCsotAl4NDgbVfuzyrOO82dhw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":665037},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-0.6.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"lushly-admin","email":"falkicon@gmail.com"},"_resolved":"/tmp/ce3f6bb3cdf447b12ce5a38b57168745/lushly-dev-afd-testing-0.6.0.tgz","_integrity":"sha512-tOEpg5SCfrxaw6gp+5jxabt5e+IU4BHUA+kC7AVkFEU6CaDa3y1WephLuSuna+b5zGFliqDTTzgCQalllQc1/Q==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"11.9.0","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","dependencies":{"yaml":"^2.8.2","@lushly-dev/afd-core":"0.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.3","vitest":"^4.1.0","typescript":"^5.9.3","@vitest/coverage-v8":"^4.1.0"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_0.6.0_1773466660005_0.09158456665066028","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@lushly-dev/afd-testing","version":"1.0.0","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@1.0.0","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"569c94632c35ce42f5a3a6eae3821fd4537bfac5","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-1.0.0.tgz","fileCount":151,"integrity":"sha512-FO0REfUDG1FgnFkhP/bzxVxyBugxZVnhe8FFE04IF5PfmzJin/K8XVxYww14hnRJKiifwF6Yg6j5NaXyCBcb3w==","signatures":[{"sig":"MEUCIQCz9RlamysNF9XValvTve0V0gL8oMXnzuJ2kPefY66qcgIgJjsoqkkrwUSPlsxv8JT2HQBkXPrP1rlDDBoX7GhCERg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":665037},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-1.0.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"lushly-admin","email":"falkicon@gmail.com"},"_resolved":"/tmp/15dd4c071f9bfb0a3c641731eb6e10a1/lushly-dev-afd-testing-1.0.0.tgz","_integrity":"sha512-FO0REfUDG1FgnFkhP/bzxVxyBugxZVnhe8FFE04IF5PfmzJin/K8XVxYww14hnRJKiifwF6Yg6j5NaXyCBcb3w==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"11.9.0","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","dependencies":{"yaml":"^2.8.2","@lushly-dev/afd-core":"1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.3","vitest":"^4.1.0","typescript":"^5.9.3","@vitest/coverage-v8":"^4.1.0"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_1.0.0_1773633892791_0.03474162512951651","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@lushly-dev/afd-testing","version":"2.0.0","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@2.0.0","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"52b1fe184d94ba93e878a90364ec5b289dc1b980","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-2.0.0.tgz","fileCount":195,"integrity":"sha512-D+NuWG9wmg0BICwcqqBmz+uYDRi0O+44HGfKGa3jdkfH0t1yHtRm509C86vRD5R3AA9NOpsELk/zlIC6yTGP2g==","signatures":[{"sig":"MEUCIAIHKisqD/0TfazI1SCQ++2j0BqFRtg6QjjVoPbwlxE8AiEA7CXb5hrcz/0lvgr9k2/C2MzOgHOOWpoGscvtilLVy8I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIBkR8v2tKx8l6DWQMjlR74d8GDbLoQvxUydRutW72x9LAiEAm6kAOhUQaERg6W+6X6PNLccJiFWz1LTm1sgGggk8h0A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":769210},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-2.0.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc -p tsconfig.typecheck.json","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"cfc4d813-29d9-4d91-8b2f-2c1993631b69"}},"_resolved":"/tmp/ae73754e9fa9d75fa3e434d66e0740ca/lushly-dev-afd-testing-2.0.0.tgz","_integrity":"sha512-D+NuWG9wmg0BICwcqqBmz+uYDRi0O+44HGfKGa3jdkfH0t1yHtRm509C86vRD5R3AA9NOpsELk/zlIC6yTGP2g==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"11.19.0","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","dependencies":{"yaml":"^2.9.0","@lushly-dev/afd-core":"2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.3","vitest":"^4.1.11","typescript":"^5.9.3","@vitest/coverage-v8":"^4.1.11"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_2.0.0_1791773987629_0.5744886771879107","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@lushly-dev/afd-testing","version":"2.1.0","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@2.1.0","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"d95b923628a8849996a0d7ebfe68397dad27c2d2","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-2.1.0.tgz","fileCount":195,"integrity":"sha512-jND6c7esfBD3JkZTK+x2z8LNB3VlFsbpQplfMs6eKGwd1vB1IeW+AcfFUKY1QShbike8tzwlzNFaFkOM+kikEw==","signatures":[{"sig":"MEUCIQCKgGNBjD9iJnw3EHeo6DzmWixzAZMNCEC2pUN52ylNmAIgHrRHj9v6lO14GFIDpIExGI5tfvep1m94rZQShqt0HcA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDVT42M0rHSpUPlIO5K90ac99/Q5mUlJGQaXq6+f9+74QIgIlTyb+7qH+cqvP6b7iTezyUXHJfjeHtbQjrfSJ5rd+s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@2.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":769663},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-2.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc -p tsconfig.typecheck.json","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"cfc4d813-29d9-4d91-8b2f-2c1993631b69"}},"_resolved":"/tmp/e4d21f0d0ea8d96fcc228c1c9804e26b/lushly-dev-afd-testing-2.1.0.tgz","_integrity":"sha512-jND6c7esfBD3JkZTK+x2z8LNB3VlFsbpQplfMs6eKGwd1vB1IeW+AcfFUKY1QShbike8tzwlzNFaFkOM+kikEw==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"11.19.0","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","dependencies":{"yaml":"^2.9.0","@lushly-dev/afd-core":"2.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.3","vitest":"^4.1.11","typescript":"^5.9.3","@vitest/coverage-v8":"^4.1.11"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_2.1.0_1791774515254_0.9077619934126822","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@lushly-dev/afd-testing","version":"2.2.0","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@2.2.0","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"cb238edd0e32f08fa2a3afa079326d02040f4105","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-2.2.0.tgz","fileCount":199,"integrity":"sha512-XZE8648+g/EMYgmrv2DuAy6RR+I+v1JC+gguSkXDF1kFR1oYYfbqBmYH6U4dOkEw3+ZalAYQUPRTSpIyqAJisw==","signatures":[{"sig":"MEYCIQCVVAL5/FtRhZVfTLebYf14TD1fvNDT7jZ1MrxuMM5wFAIhANrkBX233wZvbO5cK4EbFkzaw5bRs7FLys5e9pBpBgMN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIBgUxYEYy/iT4jrZ6amLqvs6s9JKzrwwhrOiCxW5rThuAiAfF6TovvSsClC2i+4OkhBks/uRdz4a4YBDtcPOw5yMLw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@2.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":784500},"main":"./dist/index.js","type":"module","_from":"file:lushly-dev-afd-testing-2.2.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc -p tsconfig.typecheck.json","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"cfc4d813-29d9-4d91-8b2f-2c1993631b69"}},"_resolved":"/tmp/77ac3561f6ce207d2c28eda03b000daa/lushly-dev-afd-testing-2.2.0.tgz","_integrity":"sha512-XZE8648+g/EMYgmrv2DuAy6RR+I+v1JC+gguSkXDF1kFR1oYYfbqBmYH6U4dOkEw3+ZalAYQUPRTSpIyqAJisw==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"11.19.0","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"24.21.0","dependencies":{"yaml":"^2.9.0","@lushly-dev/afd-core":"2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.3","vitest":"^4.1.11","typescript":"^5.9.3","@vitest/coverage-v8":"^4.1.11"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_2.2.0_1793086543098_0.9319596375310936","host":"s3://npm-registry-packages-npm-production"}},"2.2.1":{"name":"@lushly-dev/afd-testing","version":"2.2.1","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@2.2.1","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"927cf756e46327685921ee7c0911a0d8dd36d716","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-2.2.1.tgz","fileCount":199,"integrity":"sha512-SccvI+1dpOWt65brcgre4giq9F5LZDFaAv2j2SC4a2/06B5TBeMWjq7SU7slKmQcPOQS3AeiN4czNYHpeQD4Cg==","signatures":[{"sig":"MEUCIQDMRVUgB6tk45nb7DN1PfoB4Ne2XTYxMYlhpXNp5IB9SQIgJUYxzvg18U5Dm3fO3UZ0SBXG4NZHPM/zECHwJXvaQW0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIDEnLPZZWiqAArtx0DnBJn2n4uDGBH3KT2huWtUH0mdJAiBWFBivkmPeh6MZsc1VuNJYuqwB8BNvN6zc98ohF98ZOw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@2.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":784500},"main":"./dist/index.js","type":"module","_from":"file:/home/runner/work/_temp/npm-plan.json.artifacts/7/lushly-dev-afd-testing-2.2.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc -p tsconfig.typecheck.json","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"cfc4d813-29d9-4d91-8b2f-2c1993631b69"}},"_resolved":"/home/runner/work/_temp/npm-plan.json.artifacts/7/lushly-dev-afd-testing-2.2.1.tgz","_integrity":"sha512-SccvI+1dpOWt65brcgre4giq9F5LZDFaAv2j2SC4a2/06B5TBeMWjq7SU7slKmQcPOQS3AeiN4czNYHpeQD4Cg==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"11.19.1","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"24.22.1","dependencies":{"yaml":"^2.9.0","@lushly-dev/afd-core":"2.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.3","vitest":"^4.1.11","typescript":"^5.9.3","@vitest/coverage-v8":"^4.1.11"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_2.2.1_1793271677043_0.30833466927182385","host":"s3://npm-registry-packages-npm-production"}},"2.3.0":{"name":"@lushly-dev/afd-testing","version":"2.3.0","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@2.3.0","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"b94cc5faefdaaec3e8047af70182bafb08731aa6","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-2.3.0.tgz","fileCount":199,"integrity":"sha512-OG73OnGMWnl/bd8arAbUCMFWzga9+PCjQIqj0MmBGI+XNsZ9F4G8a5cnlU5g+ErwlHgL6XfuJdqXDb5J8YPodQ==","signatures":[{"sig":"MEQCIDudD4TBjoZJOnhe1XRkeZN0JGaQ3zeDyDmoa63ldrGCAiA+oQp66wb9elb636RwnNMRcgnkBcKB/xZrO2Teo5jlsQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCICAGGiQkha51Dan8a+1T/1Wf9F6+scmOAlIzi5oOhBD6AiAugyeofExpqPscyY2uYkMiARmQT1Ajyj2mRuggdu2MVA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@2.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":784822},"main":"./dist/index.js","type":"module","_from":"file:/home/runner/work/_temp/npm-plan.json.artifacts/7/lushly-dev-afd-testing-2.3.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc -p tsconfig.typecheck.json","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"cfc4d813-29d9-4d91-8b2f-2c1993631b69"}},"_resolved":"/home/runner/work/_temp/npm-plan.json.artifacts/7/lushly-dev-afd-testing-2.3.0.tgz","_integrity":"sha512-OG73OnGMWnl/bd8arAbUCMFWzga9+PCjQIqj0MmBGI+XNsZ9F4G8a5cnlU5g+ErwlHgL6XfuJdqXDb5J8YPodQ==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"11.20.0","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"26.13.0","dependencies":{"yaml":"^2.9.0","@lushly-dev/afd-core":"2.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.3","vitest":"^4.1.12","typescript":"^7.0.2","@vitest/coverage-v8":"^4.1.12"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_2.3.0_1794114769305_0.6075792695526377","host":"s3://npm-registry-packages-npm-production"}},"2.4.0":{"name":"@lushly-dev/afd-testing","version":"2.4.0","keywords":["afd","testing","mcp","validation","commands"],"author":{"name":"Falkicon"},"license":"MIT","_id":"@lushly-dev/afd-testing@2.4.0","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"homepage":"https://github.com/lushly-dev/afd#readme","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"0b6bf867768f039e0f144d3cd495947b92eaff34","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-2.4.0.tgz","fileCount":199,"integrity":"sha512-s/rP/PeM9Tev68gG232H6XjoyGRFJah0FsnCNSZQQ2ZWxOj5ykPO88b8HHgCM3zONbecVxLWRKyB52O17zwL8w==","signatures":[{"sig":"MEUCIQCNixvvzC/S2hCTNoLIhcXiNDKYCRNJ+9KI1ZYa5N8QawIgBa53JttCr+V2/4j6MA0c8QPMIAnsZkgzk4mSXt8rSM4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIHLdscZoCe/Lg8/FKdoXRr+e1Ys05guYwDMZ5sH3zSp7AiAUBM+VFh9t3NtSxQEMfFJnSEx+0HLIfAe5yBbGqr1GNQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@2.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":784820},"main":"./dist/index.js","type":"module","_from":"file:/home/runner/work/_temp/npm-plan.json.artifacts/7/lushly-dev-afd-testing-2.4.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.12.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc -p tsconfig.typecheck.json","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"cfc4d813-29d9-4d91-8b2f-2c1993631b69"}},"_resolved":"/home/runner/work/_temp/npm-plan.json.artifacts/7/lushly-dev-afd-testing-2.4.0.tgz","_integrity":"sha512-s/rP/PeM9Tev68gG232H6XjoyGRFJah0FsnCNSZQQ2ZWxOj5ykPO88b8HHgCM3zONbecVxLWRKyB52O17zwL8w==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"11.20.0","description":"Testing utilities for Agent-First Development","directories":{},"sideEffects":false,"_nodeVersion":"26.13.0","dependencies":{"yaml":"^2.9.0","@lushly-dev/afd-core":"2.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.4","vitest":"^5.1.0","typescript":"^7.0.2","@vitest/coverage-v8":"^5.1.0"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/afd-testing_2.4.0_1794308442884_0.006667119098905605","host":"s3://npm-registry-packages-npm-production"}},"2.5.0":{"_id":"@lushly-dev/afd-testing@2.5.0","bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"dist":{"shasum":"8938344746c1086f84c70f17157e1179404ab4e7","tarball":"https://registry.npmjs.org/@lushly-dev/afd-testing/-/afd-testing-2.5.0.tgz","fileCount":207,"integrity":"sha512-6Gqs6ysz78lqqLZSzCMklpAdSgDxR6VRG4ZhfQv9zbEQfAMJyiPUkyWwJoFL42ZaPGBJISXLrh/DpzfcCqMBWQ==","signatures":[{"sig":"MEUCIGeRTXMsGsnYYBBkkFX+HOB1DRgQAA2JWBVRpXFT4QM3AiEA8DYvrGjZXzQMOJGKKjmlrxWPAn7qR0a0J1J7yiA8pSw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBr/kuK8NseMS5+3aaaLWaB23yuZt1+KFX5WYenjXDq5AiBbFQNq7vFq0zWCGMbSYoNa/61okyOSQ22fgJbFI5UHjA=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@lushly-dev%2fafd-testing@2.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":821199},"main":"./dist/index.js","name":"@lushly-dev/afd-testing","type":"module","_from":"file:/home/runner/work/_temp/npm-plan.json.artifacts/7/lushly-dev-afd-testing-2.5.0.tgz","types":"./dist/index.d.ts","author":{"name":"Falkicon"},"engines":{"node":">=22.12.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./browser":{"types":"./dist/browser.d.ts","import":"./dist/browser.js"}},"license":"MIT","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rimraf dist *.tsbuildinfo","typecheck":"tsc -p tsconfig.typecheck.json","test:watch":"vitest"},"version":"2.5.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"cfc4d813-29d9-4d91-8b2f-2c1993631b69"}},"homepage":"https://github.com/lushly-dev/afd#readme","keywords":["afd","testing","mcp","validation","commands"],"_resolved":"/home/runner/work/_temp/npm-plan.json.artifacts/7/lushly-dev-afd-testing-2.5.0.tgz","_integrity":"sha512-6Gqs6ysz78lqqLZSzCMklpAdSgDxR6VRG4ZhfQv9zbEQfAMJyiPUkyWwJoFL42ZaPGBJISXLrh/DpzfcCqMBWQ==","repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"_npmVersion":"11.20.0","description":"Testing utilities for Agent-First Development","directories":{},"maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"sideEffects":false,"_nodeVersion":"26.13.1","dependencies":{"zod":"^4.6.6","yaml":"^2.9.0","@lushly-dev/afd-core":"2.5.0","@lushly-dev/afd-server":"2.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^6.1.4","vitest":"^5.1.1","typescript":"^7.0.2","@vitest/coverage-v8":"^5.1.1"},"peerDependencies":{"vitest":">=1.0.0"},"peerDependenciesMeta":{"vitest":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/afd-testing_2.5.0_1795489601785_0.1579966318123458"}}},"time":{"created":"2026-01-07T22:26:11.576Z","modified":"2026-11-24T03:06:42.306Z","0.1.0":"2026-01-07T22:26:11.868Z","0.3.0":"2026-02-28T00:20:45.624Z","0.3.1":"2026-02-28T03:56:30.219Z","0.3.2":"2026-02-28T05:35:50.976Z","0.3.4":"2026-02-28T05:59:59.695Z","0.4.0":"2026-02-28T20:21:07.622Z","0.5.0":"2026-03-11T00:28:10.546Z","0.6.0":"2026-03-14T05:37:40.247Z","1.0.0":"2026-03-16T04:04:52.955Z","2.0.0":"2026-10-12T02:59:47.727Z","2.1.0":"2026-10-12T03:08:35.343Z","2.2.0":"2026-10-27T07:35:43.192Z","2.2.1":"2026-10-29T11:01:17.151Z","2.3.0":"2026-11-08T05:12:49.392Z","2.4.0":"2026-11-10T11:00:43.014Z","2.5.0":"2026-11-24T03:06:41.883Z"},"bugs":{"url":"https://github.com/lushly-dev/afd/issues"},"author":{"name":"Falkicon"},"license":"MIT","homepage":"https://github.com/lushly-dev/afd#readme","keywords":["afd","testing","mcp","validation","commands"],"repository":{"url":"git+https://github.com/lushly-dev/afd.git","type":"git","directory":"packages/testing"},"description":"Testing utilities for Agent-First Development","maintainers":[{"name":"lushly-admin","email":"falkicon@gmail.com"}],"readme":"# @lushly-dev/afd-testing\n\nTesting utilities for Agent-First Development.\n\n## Installation\n\n```bash\nnpm install @lushly-dev/afd-testing --save-dev\n# or\npnpm add @lushly-dev/afd-testing -D\n```\n\n## Overview\n\nThis package provides utilities for testing AFD commands:\n\n- **Validators**: Validate command results and definitions\n- **Surface Validation**: Cross-command semantic quality analysis (similarity, schema overlap, naming, injection detection)\n- **Test Helpers**: Easy command testing with validation\n- **Assertions**: Custom assertions for command results\n- **Mock Server**: In-memory MCP server for testing\n- **JTBD Scenario Runner**: Jobs-to-be-Done scenario testing with YAML files\n- **Fixtures**: Pre-seeded test data with inheritance and overrides\n- **Step References**: Dynamic references between scenario steps\n- **Scenario Commands**: List, evaluate, coverage, create, and suggest scenarios\n- **MCP Agent Integration**: Expose commands as MCP tools with agent hints\n\n### Subprocess Scenario Execution\n\n`ScenarioExecutor` can run each step through the installed `afd` CLI. The\nserver URL and transport are passed to each `afd call` without changing the\ndeveloper's saved CLI connection:\n\n```typescript\nimport { ScenarioExecutor } from '@lushly-dev/afd-testing';\n\nconst executor = new ScenarioExecutor({\n  cliPath: '/path/to/afd',\n  serverUrl: 'http://localhost:3100/mcp',\n  transport: 'http',\n});\n```\n\nThe wrapper uses the public CLI contract: positional JSON input plus\n`--format json`. Malformed CLI output is reported as a scenario parse error.\n\n## Surface Validation (Semantic Quality)\n\nCross-command analysis that detects semantic collisions, naming ambiguities, schema overlaps, and prompt injection risks. Designed for command sets of 50+ where agents struggle to pick the right tool.\n\n### Basic Usage\n\n```typescript\nimport { validateCommandSurface } from '@lushly-dev/afd-testing';\n\nconst result = validateCommandSurface(commands, {\n  similarityThreshold: 0.7,\n  schemaOverlapThreshold: 0.8,\n  strict: false,\n});\n\nconsole.log(result.valid);          // true if no errors (or no errors+warnings in strict mode)\nconsole.log(result.summary);        // { commandCount, errorCount, warningCount, infoCount, ... }\nconsole.log(result.findings);       // SurfaceFinding[] with rule, severity, message, suggestion\n```\n\n### Input Types\n\n`validateCommandSurface()` accepts both `ZodCommandDefinition[]` (from `@lushly-dev/afd-server`) and `CommandDefinition[]` (from `@lushly-dev/afd-core`). Input is auto-detected via duck-typing.\n\n### Validation Rules\n\n| Rule | Severity | Description |\n|------|----------|-------------|\n| `similar-descriptions` | Warning | Command pairs with highly similar descriptions (cosine similarity) |\n| `schema-overlap` | Warning | Command pairs sharing a high percentage of input fields |\n| `naming-convention` | Error | Command names not matching kebab-case `domain-action` pattern |\n| `naming-collision` | Error | Command names that collide when separators are normalized |\n| `missing-category` | Info | Commands without a category field |\n| `description-injection` | Error | Descriptions containing prompt injection patterns |\n| `description-quality` | Warning | Descriptions that are too short or missing action verbs |\n| `orphaned-category` | Info | Categories containing only one command |\n| `schema-complexity` | Warning/Info | Input schemas too complex for agents (unions, nesting, constraints) |\n| `unresolved-prerequisite` | Error | `requires` entry references a command not in the surface |\n| `circular-prerequisite` | Error | Circular dependency cycle in the `requires` graph |\n| `missing-output-schema` | Info | Command does not declare an `output` schema |\n| `missing-context` | Info | Command has no `contexts` array (when server has configured contexts) |\n\n### Options\n\n```typescript\ninterface SurfaceValidationOptions {\n  similarityThreshold?: number;        // Default: 0.7 (70% similarity triggers warning)\n  schemaOverlapThreshold?: number;     // Default: 0.8 (80% field overlap triggers warning)\n  detectInjection?: boolean;           // Default: true\n  checkDescriptionQuality?: boolean;   // Default: true\n  minDescriptionLength?: number;       // Default: 20\n  enforceNaming?: boolean;             // Default: true\n  namingPattern?: RegExp;              // Default: /^[a-z][a-z0-9]*-[a-z][a-z0-9-]*$/\n  skipCategories?: string[];           // Categories to exclude from analysis\n  strict?: boolean;                    // Treat warnings as errors\n  suppressions?: string[];             // Suppress specific findings\n  additionalInjectionPatterns?: InjectionPattern[]; // Added to the built-in patterns\n  checkSchemaComplexity?: boolean;    // Default: true\n  schemaComplexityThreshold?: number; // Default: 13 (warning threshold)\n}\n```\n\n### Suppressions\n\nSuppress findings at the rule level or for specific command pairs:\n\n```typescript\nconst result = validateCommandSurface(commands, {\n  suppressions: [\n    'missing-category',                        // Suppress all missing-category findings\n    'schema-complexity:auth-sign-in',           // Suppress for a single command\n    'similar-descriptions:user-get:user-fetch', // Suppress only this pair (order-independent)\n  ],\n});\n```\n\n### CLI Integration\n\n```bash\n# Run surface validation against a connected MCP server\nafd validate --surface\n\n# With custom threshold\nafd validate --surface --similarity-threshold 0.8\n\n# Skip categories and suppress rules\nafd validate --surface --skip-category internal --suppress missing-category\n\n# Strict mode (warnings = errors)\nafd validate --surface --strict --verbose\n```\n\n`afd validate --surface` validates the server's commands whatever its `toolStrategy`:\ngrouped tools are expanded into the commands listed in their `_meta.actions`, lazy\nservers are enumerated with `afd-discover` and `afd-detail`, hybrid servers (first-class\ncommand tools beside `afd-discover`) are completed with the same two tools and warned about a\nfirst-class command that declares `contexts` (`afd-help` tells the CLI the server is hybrid), and the tools AFD provides\nitself (`afd-call`, `afd-batch`, `afd-pipe`, `afd-discover`, `afd-detail`, `afd-help`,\n`afd-docs`, `afd-schema`, `afd-context-*`; `AFD_BUILTIN_TOOL_NAMES` in\n`@lushly-dev/afd-core`) are skipped.\n\n## Agent Integration (Phase 3)\n\nMCP server and tools for AI agent integration.\n\n### MCP Server\n\nStart an MCP server exposing all scenario commands:\n\n```typescript\nimport { createMcpTestingServer, runStdioServer } from '@lushly-dev/afd-testing';\n\n// Handle JSON-RPC requests programmatically\nconst server = createMcpTestingServer({\n  commandHandler: async (command, input) => registry.execute(command, input),\n  cwd: process.cwd(), // tools may only read and write inside this directory\n});\n\n// Or serve over stdio: one JSON-RPC message per line on stdin, responses on stdout\nawait runStdioServer({\n  commandHandler: async (command, input) => registry.execute(command, input),\n});\n```\n\n`commandHandler` runs the commands that `scenario-evaluate` executes. Every path\nargument (`directory`, `scenarios`, `output`, and the fixture files that scenarios\nname) is resolved against `cwd`; a path that leaves it, including through a\nsymlinked directory, returns `PATH_OUTSIDE_WORKSPACE`. Tool arguments are checked\nagainst each tool's `inputSchema` (types, enums, required fields, no unknown\nfields) and invalid input returns `VALIDATION_ERROR`. Notifications (messages\nwithout an `id`) get no response.\n\n### MCP Tools\n\nAll scenario commands are exposed as MCP tools:\n\n| Tool | Description |\n|------|-------------|\n| `scenario-list` | List and filter scenarios, including files that failed to parse |\n| `scenario-evaluate` | Run scenarios and return a report (`failFast`, `timeout`, `concurrency`, `format`, `output`) |\n| `scenario-coverage` | Calculate command, error and job coverage |\n| `scenario-create` | Generate a scenario file from a template |\n| `scenario-suggest` | Heuristic suggestions from keyword and file-name rules (no AI model) |\n\n### Agent Hints\n\nAll results include `_agentHints` for AI interpretation:\n\n```typescript\nimport { enhanceWithAgentHints, scenarioEvaluate } from '@lushly-dev/afd-testing';\n\nconst result = await scenarioEvaluate({ handler, directory });\nconst enhanced = enhanceWithAgentHints('scenario-evaluate', result);\n\n// Result includes:\n// _agentHints: {\n//   shouldRetry: false,\n//   relatedCommands: ['scenario-coverage', 'scenario-suggest'], // tool names only\n//   nextSteps: ['Run scenario-coverage to check test coverage'],\n//   interpretationConfidence: 0.95\n// }\n```\n\n### scenario-suggest\n\nHeuristic scenario suggestions based on context. Each strategy applies keyword and\nfile-name rules; no AI model is called, and each suggestion's `confidence` is the\nfixed score of the rule that produced it:\n\n```typescript\nimport { scenarioSuggest } from '@lushly-dev/afd-testing';\n\n// Suggest based on changed files\nconst changed = await scenarioSuggest({\n  context: 'changed-files',\n  files: ['src/commands/todo/create.ts'],\n});\n\n// Suggest for uncovered commands\nconst uncovered = await scenarioSuggest({\n  context: 'uncovered',\n  directory: './scenarios',\n  knownCommands: ['todo-create', 'todo-list', 'todo-delete'],\n});\n\n// Suggest for failed scenarios\nconst failed = await scenarioSuggest({\n  context: 'failed',\n  directory: './scenarios',\n});\n\n// Suggest test variations for a command\nconst command = await scenarioSuggest({\n  context: 'command',\n  command: 'todo-create',\n  includeSkeleton: true,  // Include generated scenario YAML\n});\n\n// Natural language query\nconst natural = await scenarioSuggest({\n  context: 'natural',\n  query: 'error handling for invalid input',\n});\n\nfor (const s of changed.data.suggestions) {\n  console.log(`${s.name} (${s.confidence}): ${s.reason}`);\n}\n```\n\n## App Adapters (Phase 4)\n\nAdapters enable the framework to work with different AFD applications.\n\n### Adapter Interface\n\nEach app provides an adapter implementing:\n\n```typescript\ninterface AppAdapter {\n  name: string;          // e.g., 'todo', 'violet', 'noisett'\n  version: string;\n  cli: CliConfig;        // CLI command configuration\n  fixture: FixtureConfig; // How to apply/reset fixtures\n  commands: CommandsConfig; // Available commands\n  errors: ErrorsConfig;   // Known error codes\n  jobs: JobsConfig;       // User goals/jobs\n}\n```\n\n### Using the Registry\n\n```typescript\nimport {\n  registerAdapter,\n  detectAdapter,\n  todoAdapter,\n  createGenericAdapter,\n} from '@lushly-dev/afd-testing';\n\n// Register built-in adapter\nregisterAdapter(todoAdapter);\n\n// Create and register custom adapter\nconst myAdapter = createGenericAdapter('myapp', {\n  commands: ['myapp-create', 'myapp-list'],\n  errors: ['NOT_FOUND', 'VALIDATION_ERROR'],\n});\nregisterAdapter(myAdapter);\n\n// Auto-detect adapter from fixture\nconst fixture = { app: 'todo', todos: [] };\nconst adapter = detectAdapter(fixture);\nconsole.log(adapter?.name); // 'todo'\n```\n\n### Built-in Adapters\n\n| Adapter | App | Description |\n|---------|-----|-------------|\n| `todoAdapter` | Todo | The AFD Todo example app |\n| `genericAdapter` | Generic | Fallback for unknown apps |\n\n### Creating a Custom Adapter\n\n```typescript\nimport { createGenericAdapter, type AppAdapter } from '@lushly-dev/afd-testing';\n\n// Simple approach: use factory\nconst myAdapter = createGenericAdapter('myapp', {\n  version: '1.0.0',\n  cliCommand: 'myapp-cli',\n  commands: ['myapp-create', 'myapp-list', 'myapp-delete'],\n  errors: ['NOT_FOUND', 'INVALID_INPUT'],\n  jobs: ['manage-items', 'cleanup'],\n});\n\n// Advanced: full custom adapter\nconst customAdapter: AppAdapter = {\n  name: 'custom',\n  version: '1.0.0',\n  cli: {\n    command: 'custom-cli',\n    inputFormat: 'json-arg',\n    outputFormat: 'json',\n  },\n  fixture: {\n    async apply(fixture, context) {\n      // Custom fixture application logic\n      return { appliedCommands: [] };\n    },\n    async reset(context) {\n      // Reset app state\n    },\n  },\n  commands: {\n    list: () => ['custom-create', 'custom-delete'],\n  },\n  errors: {\n    list: () => ['ERROR_ONE', 'ERROR_TWO'],\n  },\n  jobs: {\n    list: () => ['job-one'],\n  },\n};\n```\n\n`fixture.apply` receives `context.handler`, which returns each command's real\n`CommandResult`. Stop at the first failed result: `applyFixture` fails the\nfixture on any failed command (naming it and its error code) whether or not the\nadapter stops, and it returns the adapter's `warnings` to the caller.\n\n## Scenario Commands (Phase 2)\n\nBatch operations and management commands for JTBD scenarios.\n\n### scenario-list\n\nList and filter scenarios in a directory.\n\n```typescript\nimport { scenarioList } from '@lushly-dev/afd-testing';\n\n// List all scenarios\nconst result = await scenarioList({ directory: './scenarios' });\n\n// Filter by job\nconst filtered = await scenarioList({\n  directory: './scenarios',\n  job: 'todo-management',\n});\n\n// Filter by tags\nconst tagged = await scenarioList({\n  directory: './scenarios',\n  tags: ['smoke', 'p0'],\n});\n\n// Search in scenario names\nconst searched = await scenarioList({\n  directory: './scenarios',\n  search: 'create',\n});\n\n// Sort results\nconst sorted = await scenarioList({\n  directory: './scenarios',\n  sortBy: 'stepCount',\n  sortOrder: 'desc',\n});\n\nconsole.log(`Found ${result.data.total} scenarios`);\nconsole.log(`Filtered: ${result.data.filtered}`);\nfor (const s of result.data.scenarios) {\n  console.log(`  ${s.name}: ${s.stepCount} steps [${s.tags.join(', ')}]`);\n}\n```\n\nFiles that fail to parse are returned in `parseErrors` (and as `PARSE_ERROR`\nwarnings) instead of being dropped. `recursive: false` searches only the top\ndirectory, `pattern` matches file names (default `*.scenario.yaml`), and `format`\n(`'table' | 'json' | 'names'`) adds a `formattedOutput`. `status: 'passed'` or\n`'failed'` returns `UNSUPPORTED_FILTER`, because scenario-list keeps no run history.\n\n### scenario-evaluate\n\nBatch execute scenarios with parallel support and multiple output formats.\n\n```typescript\nimport { scenarioEvaluate } from '@lushly-dev/afd-testing';\n\n// Basic evaluation\nconst result = await scenarioEvaluate({\n  handler: async (command, input) => registry.execute(command, input),\n  directory: './scenarios',\n});\n\nconsole.log(`Exit code: ${result.data.exitCode}`);\nconsole.log(`Passed: ${result.data.report.summary.passedScenarios}`);\n\n// With filtering and fail-fast\nconst filtered = await scenarioEvaluate({\n  handler,\n  directory: './scenarios',\n  job: 'todo-management',\n  tags: ['smoke'],\n  failFast: true,  // After the first failing scenario, report the rest as 'skip'\n});\n\n// Parallel execution\nconst parallel = await scenarioEvaluate({\n  handler,\n  directory: './scenarios',\n  concurrency: 4,  // Run 4 scenarios at once\n  timeout: 30000,  // 30s per scenario; a timed-out scenario is cancelled and reported as an error\n});\n\n// Output formats for CI\nconst junit = await scenarioEvaluate({\n  handler,\n  directory: './scenarios',\n  format: 'junit',\n  output: './test-results.xml',  // Write to file\n});\n\n// Available formats: 'terminal', 'json', 'junit', 'markdown'\n```\n\nScenario files that fail to parse are reported as `error` scenarios\n(`error.type: 'parse_error'`) and make the exit code 1; they are never skipped\nsilently. The report summary counts `passedScenarios`, `failedScenarios`,\n`errorScenarios` and `skippedScenarios`.\n\n### scenario-coverage\n\nCalculate coverage metrics across commands, errors, and jobs.\n\n```typescript\nimport { scenarioCoverage } from '@lushly-dev/afd-testing';\n\n// Basic coverage\nconst result = await scenarioCoverage({\n  directory: './scenarios',\n});\n\nconsole.log(`Commands tested: ${result.data.summary.commands.tested}`);\nconsole.log(`Jobs covered: ${result.data.summary.jobs.count}`);\n\n// Coverage against known commands\nconst detailed = await scenarioCoverage({\n  directory: './scenarios',\n  knownCommands: ['todo-create', 'todo-list', 'todo-get', 'todo-update', 'todo-delete'],\n  knownErrors: ['NOT_FOUND', 'VALIDATION_ERROR', 'UNAUTHORIZED'],\n});\n\nconsole.log(`Command coverage: ${detailed.data.summary.commands.coverage}%`);\nconsole.log(`Untested commands:`, detailed.data.summary.commands.untested);\n\n// Per-command details\nfor (const cmd of detailed.data.commandCoverage) {\n  console.log(`${cmd.command}: ${cmd.stepCount} steps, error tests: ${cmd.hasErrorTests}`);\n}\n\n// Format for reporting\nconst markdown = await scenarioCoverage({\n  directory: './scenarios',\n  format: 'markdown',\n  output: './coverage.md',  // Optional: also write the report to a file\n});\nconsole.log(markdown.data.formattedOutput);\n```\n\n### scenario-create\n\nGenerate scenario files from templates.\n\n```typescript\nimport { scenarioCreate, listTemplates } from '@lushly-dev/afd-testing';\n\n// See available templates\nconst templates = listTemplates();\n// [\n//   { name: 'blank', description: 'One placeholder step to replace with the command under test' },\n//   { name: 'crud', description: 'Create, Read, Update, Delete test pattern' },\n//   { name: 'error-handling', description: 'Tests for error cases and validation' },\n//   { name: 'workflow', description: 'Multi-step workflow with state verification' },\n// ]\n\n// Create blank scenario\nconst result = await scenarioCreate({\n  name: 'my-new-scenario',\n  job: 'My user job',\n  description: 'Tests the my user job workflow',\n  directory: './scenarios',\n  tags: ['smoke', 'p0'],\n});\n\n// Create from CRUD template\nconst crud = await scenarioCreate({\n  name: 'todo-crud',\n  job: 'Manage todo items',\n  directory: './scenarios',\n  template: 'crud',  // Generates create/read/update/delete/verify steps\n});\n\n// Create error handling tests\nconst errors = await scenarioCreate({\n  name: 'todo-errors',\n  job: 'Handle todo errors',\n  directory: './scenarios',\n  template: 'error-handling',  // Generates validation and not-found tests\n});\n\n// Create with custom steps\nconst custom = await scenarioCreate({\n  name: 'custom-workflow',\n  job: 'Custom workflow',\n  directory: './scenarios',\n  steps: [\n    { description: 'Step 1', command: 'action-first', expectSuccess: true },\n    { description: 'Step 2', command: 'action-second', expectData: { status: 'done' } },\n  ],\n});\n```\n\n`name` and `filename` must be plain file names (no path separators); choose the\nlocation with `directory`. `commands: ['todo-create', 'todo-list']` adds one step\nper command expecting success. Every generated file is parsed before it is\nwritten, so a template never produces a scenario the runner would reject.\n\n## JTBD Scenario Runner\n\nTest user journeys and jobs-to-be-done through YAML scenario files.\n\n### Scenario Structure\n\n```yaml\n# scenarios/create-and-complete-todo.scenario.yaml\nname: Create and complete a todo\ndescription: Tests the complete lifecycle of a todo item\njob: create-and-complete\ntags: [smoke, crud]\ntimeout: 30000                          # Optional: per-scenario timeout in ms\n\nfixture:\n  file: ../fixtures/seeded-todos.json   # Relative to this scenario file\n\nsteps:\n  - description: Create a new todo\n    command: todo-create\n    input:\n      title: Buy groceries\n      priority: high\n    expect:\n      success: true\n      data:\n        title: Buy groceries\n        completed: false\n\n  - description: Complete the todo\n    command: todo-toggle\n    input:\n      id: ${{ steps[0].data.id }}        # Reference a previous step\n    expect:\n      success: true\n      data:\n        completed: true\n\n  - description: Delete the todo\n    command: todo-delete\n    input:\n      id: ${{ steps[0].data.id }}\n    expect:\n      success: true\n```\n\nThe parser is strict: an unknown field at any level (a typo such as `fixtures:` or\n`date:`) is a parse error rather than something silently ignored. `verify`,\n`isolation` and `dependsOn` are not implemented, so they are rejected with a\n\"not supported\" error instead of producing a green run that checked nothing.\nParse errors report the line number and never echo the file's contents.\n\n### Running Scenarios\n\n```typescript\nimport { InProcessExecutor, parseScenarioFile, TerminalReporter } from '@lushly-dev/afd-testing';\n\nconst parsed = await parseScenarioFile('scenarios/create-and-complete-todo.scenario.yaml');\nif (!parsed.success) {\n  console.error('Parse error:', parsed.error);\n  process.exit(1);\n}\n\n// The handler receives the run's AbortSignal as an optional third argument\nconst executor = new InProcessExecutor({\n  handler: async (command, input, context) =>\n    myCommandRegistry.execute(command, input, { signal: context?.signal }),\n});\n\n// Optionally cancel the whole run from outside\nconst result = await executor.execute(parsed.scenario, { signal: AbortSignal.timeout(60_000) });\n\nnew TerminalReporter().reportScenario(result);\n\n// 'pass', 'fail', 'partial', 'error' (fixture, timeout, abort...) or 'skip'\nprocess.exit(result.outcome === 'pass' ? 0 : 1);\n```\n\nWhen a scenario times out or is aborted, the running step is abandoned, the\nremaining steps are skipped, and the result has `outcome: 'error'` with\n`error: { type: 'timeout' | 'aborted', message }`. `ScenarioExecutor` (which runs\nsteps through the `afd` CLI) behaves the same way and kills the CLI process.\n\n### Browser-Safe Entry Point and Awaited Step Hooks\n\nImport from `@lushly-dev/afd-testing/browser` when running parsed scenarios inside\na browser page, web worker, or webview. It exports `runScenario`, `evaluateStep`,\n`evaluateResult`, `applyFixture`, `resolveStepReferences`, and the scenario,\nreport, and adapter helpers with no Node.js built-in imports:\n\n```typescript\nimport {\n  applyFixture,\n  evaluateStep,\n  runScenario,\n} from '@lushly-dev/afd-testing/browser';\n\nconst result = await runScenario(parsedScenario, {\n  stopOnFailure: true,\n  signal,\n  setup: fixtureData\n    ? async (runSignal) => {\n        const applied = await applyFixture(fixtureData, appCall, { signal: runSignal });\n        return applied.success\n          ? { warnings: applied.warnings }\n          : { error: applied.error, warnings: applied.warnings };\n      }\n    : undefined,\n  beforeStep: async (step, stepId, runSignal) => {\n    // Awaited before each non-skipped step executes\n  },\n  runStep: async (step, stepId, runSignal) => {\n    const start = Date.now();\n    const commandResult = await appCall(step.command, step.input, { signal: runSignal });\n    return evaluateStep(step, stepId, commandResult, Date.now() - start);\n  },\n  afterStep: async (step, stepResult, runSignal) => {\n    // Awaited after each non-skipped step completes\n  },\n});\n```\n\n`beforeStep` and `afterStep` are awaited in step order, respect `AbortSignal`\ncancellation and scenario timeouts, and are not called for skipped steps (such as\nafter a previous failure, a fixture error, or cancellation) or during dry runs.\nThe existing synchronous `onStepComplete` callback remains unchanged and still\nfires for every step, including skipped steps.\n\n### Deterministic Time, Randomness and Actor\n\nSteps run as `actor: { kind: 'test' }`. Pass `context` to give every step a fixed\nclock and a seeded random source, so scenarios that assert on timestamps or\ngenerated ids are reproducible:\n\n```typescript\nimport { fixedClock, InProcessExecutor, seededRandom } from '@lushly-dev/afd-testing';\n\nconst executor = new InProcessExecutor({\n  handler: (command, input, context) => myCommandRegistry.execute(command, input, context),\n  context: { clock: fixedClock('2026-01-01T00:00:00Z'), random: seededRandom('scenario-1') },\n});\n```\n\nFor unit tests, `createTestContext()` sets the same `actor`, plus `clock` and\n`random` (the real ones unless overridden; `now` without a `clock` stops the\nclock at `now`): `createTestContext({ clock: fixedClock('2026-01-01'), random: seededRandom('abc') })`.\n\n### Dry Run Mode\n\nValidate scenarios without executing them using `validateScenario()`:\n\n```typescript\nimport { validateScenario, InProcessExecutor } from '@lushly-dev/afd-testing';\n\n// Structure, step references, expectations and fixture files\nconst validation = await validateScenario(parsed.scenario, { checkFixtures: true });\n\nif (!validation.valid) {\n  console.error('Validation errors:', validation.errors);\n  // Example: [\"Step 3: Invalid reference to step 4 (can only reference earlier steps)\"]\n  process.exit(1);\n}\n\n// Or use dryRun in the executor: loads the fixture, but runs no command\nconst executor = new InProcessExecutor({ handler, dryRun: true });\nconst result = await executor.execute(parsed.scenario);\n```\n\n### Error Messages\n\nWhen assertions fail, detailed messages show expected vs actual values:\n\n```typescript\n// result.stepResults[n].error for a failed step:\n{\n  type: 'expectation_mismatch',\n  message: '2 assertions failed:\\n  - data.total: expected 99, got 2\\n  - data.completed: expected true, got false'\n}\n```\n\n### Fixtures\n\nFixtures pre-seed test data before the first step. A fixture is applied through\nthe adapter for its `app` (see [App Adapters](#app-adapters-phase-4)): a\nregistered adapter, the built-in `todo` adapter, or the generic adapter for a\nfixture with a `setup` or `data` command list. Every command's real\n`CommandResult` is checked: the first failed command stops the fixture and the\nscenario is reported as an `error` at the fixture step\n(`error.type: 'fixture_failed'`, naming the command and its error code), and no\nstep runs. A fixture for an app with no adapter is an error, not a no-op.\n\n#### JSON Fixture File\n\n```json\n// fixtures/seeded-todos.json\n{\n  \"app\": \"todo\",\n  \"clearFirst\": true,\n  \"todos\": [\n    { \"title\": \"Existing todo 1\", \"priority\": \"high\" },\n    { \"title\": \"Existing todo 2\", \"priority\": \"low\", \"completed\": true }\n  ]\n}\n```\n\n#### Using Fixtures in Scenarios\n\n```yaml\nfixture:\n  file: fixtures/base.json          # Main fixture file, relative to the scenario file\n  base: common.json                 # Optional base, relative to the main fixture file\n  overrides:                        # Optional inline overrides\n    todos:\n      - title: Override todo\n```\n\nMerge order is base → file → overrides; arrays are replaced, not concatenated.\n\n#### Supported Fixture Structures\n\n**Todo App** (`todo-clear` with `{ all: true }` unless `clearFirst` is `false`, then\n`todo-create` per todo and `todo-toggle` for completed ones):\n```json\n{\n  \"app\": \"todo\",\n  \"clearFirst\": true,\n  \"todos\": [\n    { \"title\": \"string\", \"priority\": \"low|medium|high\", \"completed\": false }\n  ]\n}\n```\n\n**Generic (any app):** commands to run in order, `data` first, then `setup`.\n```json\n{\n  \"app\": \"custom\",\n  \"setup\": [\n    { \"command\": \"custom-init\", \"input\": { \"key\": \"value\" } }\n  ]\n}\n```\n\nFor any other structure, register an adapter with `registerAdapter()`.\n\n#### Programmatic Fixture Loading\n\nUse `loadFixture()` and `applyFixture()` for direct fixture handling:\n\n```typescript\nimport { applyFixture, loadFixture } from '@lushly-dev/afd-testing';\n\nconst loaded = await loadFixture(\n  { file: 'fixtures/test-data.json', base: 'common.json', overrides: { clearFirst: true } },\n  { basePath: './scenarios', validate: true }\n);\nif (!loaded.success) throw new Error(loaded.error);\n\n// The handler must return each command's CommandResult\nconst result = await applyFixture(loaded.data, (command, input) =>\n  myRegistry.execute(command, input)\n);\n\nif (!result.success) {\n  console.error(result.error); // \"Fixture command 'todo-create' failed with VALIDATION_ERROR: ...\"\n}\nconsole.log(result.appliedCommands, result.warnings);\n```\n\n### Step References\n\nReference data from previous steps using `${{ steps[N].path }}` syntax.\n\n#### Reference Syntax\n\n```yaml\n# Exact reference (preserves type)\ninput:\n  id: \"${{ steps[0].data.id }}\"           # Returns actual type (string, number, etc.)\n\n# Embedded reference (string interpolation; objects are embedded as JSON)\ninput:\n  message: \"Created todo ${{ steps[0].data.id }}\"  # Returns string\n\n# Nested paths\ninput:\n  name: \"${{ steps[0].data.user.profile.name }}\"\n\n# Array access\ninput:\n  firstItem: \"${{ steps[0].data.items[0].name }}\"\n```\n\nA reference that does not resolve (a step that has not run, or a path with no\nvalue) fails the step with a `reference_error`; it is never sent as an empty\nstring or `undefined`.\n\n#### Reference Examples\n\n```yaml\nsteps:\n  - description: Create user\n    command: user-create\n    input:\n      email: test@example.com\n    expect: { success: true }\n    # Result: { data: { id: \"user-123\", email: \"test@example.com\" } }\n\n  - description: Create todo for user\n    command: todo-create\n    input:\n      title: My todo\n      userId: ${{ steps[0].data.id }}     # → \"user-123\"\n    expect: { success: true }\n\n  - description: Get todo\n    command: todo-get\n    input:\n      id: ${{ steps[1].data.id }}         # → the new todo's id\n    expect: { success: true }\n```\n\n### Expectations\n\n#### Success Expectations\n\n```yaml\nexpect:\n  success: true\n  data:\n    title: \"Expected title\"\n    completed: false\n```\n\n#### Partial Data Matching\n\n```yaml\nexpect:\n  success: true\n  data:\n    title: \"Expected title\"     # Only checks title\n    # Other fields ignored\n```\n\nAn expected array that holds objects is matched item by item: the arrays must have the\nsame length, and each object item checks only the fields it names, with matchers allowed.\nAn array of plain values is compared whole, and `{ equals: [...] }` compares any array\nliterally.\n\n```yaml\nexpect:\n  success: true\n  data:\n    violations:                 # Exactly two items, in this order\n      - { number: 203, rule: { contains: one execution } }\n      - { number: 207 }         # Its other fields are ignored\n    ids: [1, 2]                 # Compared whole\n```\n\n#### Matchers\n\nAn object whose keys are **all** matcher keys is a matcher; any other object is\na nested set of field assertions. Mixing the two (for example\n`{ exists: true, name: Bob }`), a typo next to a matcher (`{ matches: '^A', matchs: 'x' }`)\nor a matcher with the wrong type of value is a parse error.\n\n| Matcher | Example | Passes when |\n|---------|---------|-------------|\n| `equals` | `settings: { equals: { exists: true } }` | Value deep-equals (use it for literal objects that look like matchers) |\n| `contains` | `name: { contains: box }` | String contains the substring |\n| `matches` | `id: { matches: '^todo-' }` | String matches the regular expression |\n| `exists` / `notExists` | `createdAt: { exists: true }` | Value is (not) null or undefined |\n| `length` | `items: { length: 3 }` | Array or string has this length |\n| `includes` | `tags: { includes: urgent }` | Array contains the value |\n| `gte` / `lte` | `count: { gte: 5 }` | Number is at least / at most the value |\n| `between` | `score: { between: [1, 10] }` | Number is within the inclusive range |\n\n#### Error Expectations\n\n```yaml\nexpect:\n  success: false\n  error:\n    code: \"NOT_FOUND\"            # Exact\n    message: \"Todo not found\"    # Optional: message contains this text\n    suggestion:                  # Optional: a string to contain, or a matcher\n      contains: todo-list\n```\n\n`data` is only checked when `success` is `true`, and `error` only when it is\n`false`; the parser rejects the other combinations.\n\n## Usage\n\n### Testing Commands\n\n```typescript\nimport { testCommand, assertSuccess, assertHasReasoning } from '@lushly-dev/afd-testing';\nimport { describe, it, expect } from 'vitest';\nimport { myCommand } from './my-command';\n\ndescribe('myCommand', () => {\n  it('returns a valid result', async () => {\n    const test = await testCommand(myCommand.handler, {\n      input: 'test value'\n    });\n\n    // Check basic validity\n    expect(test.isValid).toBe(true);\n    expect(test.isSuccess).toBe(true);\n\n    // Use assertions\n    assertSuccess(test.result);\n    assertHasReasoning(test.result);\n\n    // Check data\n    expect(test.result.data).toBeDefined();\n  });\n\n  it('handles errors correctly', async () => {\n    const test = await testCommand(myCommand.handler, {\n      input: '' // Invalid input\n    });\n\n    expect(test.isFailure).toBe(true);\n    expect(test.result.error?.suggestion).toBeDefined();\n  });\n});\n```\n\n### Validating Command Definitions\n\n```typescript\nimport { validateCommandDefinition, validateResult } from '@lushly-dev/afd-testing';\n\n// Validate a command definition\nconst defValidation = validateCommandDefinition(myCommand);\nconsole.log('Definition valid:', defValidation.valid);\nconsole.log('Errors:', defValidation.errors);\nconsole.log('Warnings:', defValidation.warnings);\n\n// Validate a result with options\nconst resultValidation = validateResult(result, {\n  requireConfidence: true,\n  requireReasoning: true,\n  requireSources: true,\n});\n```\n\n### Testing Multiple Cases\n\n```typescript\nimport { testCommandMultiple } from '@lushly-dev/afd-testing';\n\nconst results = await testCommandMultiple(myCommand.handler, [\n  {\n    input: { title: 'Valid Title' },\n    expectSuccess: true,\n    description: 'Valid input should succeed',\n  },\n  {\n    input: { title: '' },\n    expectSuccess: false,\n    expectError: 'VALIDATION_ERROR',\n    description: 'Empty title should fail',\n  },\n  {\n    input: {},\n    expectSuccess: false,\n    description: 'Missing title should fail',\n  },\n]);\n\n// Check all tests passed\nconst allPassed = results.every(r => r.passed);\n```\n\nA case with `expectError` passes only if the command fails with exactly that\nerror code; a success does not satisfy it.\n\n### Custom Assertions\n\n```typescript\nimport {\n  assertSuccess,\n  assertFailure,\n  assertErrorCode,\n  assertConfidence,\n  assertHasSources,\n  assertAiResult,\n} from '@lushly-dev/afd-testing';\n\n// Basic assertions\nassertSuccess(result); // Throws if not success\nassertFailure(result); // Throws if not failure\n\n// Error assertions\nassertErrorCode(result, 'NOT_FOUND');\nassertHasSuggestion(result);\nassertRetryable(result, true);\n\n// UX field assertions\nassertConfidence(result, 0.8); // Minimum confidence\nassertHasReasoning(result);\nassertHasSources(result, 2); // At least 2 sources\nassertHasPlan(result);\nassertStepStatus(result, 'step-1', 'complete');\n\n// AI result assertion (checks all UX fields)\nassertAiResult(result, {\n  minConfidence: 0.7,\n  requireSources: true,\n  requireAlternatives: false,\n});\n```\n\n### Using Mock Server\n\n```typescript\nimport { createMockServer, createMockCommand } from '@lushly-dev/afd-testing';\n\n// Create server with mock commands\nconst server = createMockServer([\n  createMockCommand('document-get', (input) => ({\n    id: input.id,\n    title: 'Test Document',\n  })),\n]);\n\n// Add more commands\nserver.register(createMockCommand('document-create', (input) => ({\n  id: 'new-id',\n  title: input.title,\n})));\n\n// Handle requests\nconst response = await server.handleRequest({\n  jsonrpc: '2.0',\n  id: 1,\n  method: 'tools/call',\n  params: {\n    name: 'document-get',\n    arguments: { id: 'doc-123' },\n  },\n});\n\n// Check request log\nconst log = server.getRequestLog();\nconsole.log('Requests made:', log.length);\n```\n\nThe mock server runs commands through `createDirectRegistry` from `afd-server/direct`,\nusing the production execution engine behind an in-memory MCP envelope. Pass commands\ncreated with `defineCommand` directly to preserve their Zod validation, defaults,\ntransforms and unknown-key handling. Existing core `CommandDefinition` objects and mock\nhelpers retain their historical input passthrough: their parameter schemas describe the\ntool but are not executable Zod schemas. Pass the original `defineCommand` definition,\nrather than its `toCommandDefinition()` result, when testing input validation.\n\n`MockServerOptions` accepts the registry's middleware, hooks, context definitions,\ndeclared context fields and clock/random/actor defaults. Each request's\n`_meta['dev.afd/context']` selects its context without retaining state, and declared\ncontext-field values are read from their configured `_meta` keys. Single calls and batch\nentries use the same validation and middleware. Completed handler results include the\nserver engine's execution metadata. The default actor is `{ kind: 'agent' }`, as for\nproduction MCP; an explicit `actor` overrides it. Discovery advertises declared context\nfields. A batch can also carry these values in `arguments.meta`; conflicting `_meta` and\n`meta` values fail before any command runs.\n\nThe mock keeps its command and batch surface:\n\n- Only commands with `expose: { mcp: true }` are listed and callable; any other command\n  returns `COMMAND_NOT_EXPOSED`. Commands built with `createMockCommand`,\n  `createSuccessCommand` and `createFailureCommand` are exposed to MCP.\n- `tools/call` with `name: 'afd-batch'` runs a batch: a malformed request is rejected\n  before anything runs, `options.timeout` is a deadline at any `parallelism`, and every\n  entry is exposure-checked.\n- A handler that throws returns `COMMAND_EXECUTION_ERROR` without the exception message\n  or stack, unless you pass `createMockServer(commands, { devMode: true })`.\n\n### Creating Mock Commands\n\n```typescript\nimport {\n  createMockCommand,\n  createSuccessCommand,\n  createFailureCommand,\n  createTestRegistry,\n} from '@lushly-dev/afd-testing';\n\n// Simple mock that returns static data\nconst getUser = createSuccessCommand('user-get', {\n  id: 'user-1',\n  name: 'Test User',\n});\n\n// Mock with dynamic behavior\nconst createDoc = createMockCommand('document-create', (input) => ({\n  id: `doc-${Date.now()}`,\n  title: input.title,\n  createdAt: new Date().toISOString(),\n}));\n\n// Mock that always fails\nconst deleteProtected = createFailureCommand('protected-delete', {\n  code: 'FORBIDDEN',\n  message: 'Cannot delete protected resource',\n});\n\n// Create registry with all mocks\nconst registry = createTestRegistry([getUser, createDoc, deleteProtected]);\n\n// Execute commands\nconst result = await registry.execute('document-create', { title: 'New Doc' });\n```\n\n## Validation Rules\n\n### Command Definition Validation\n\n| Rule | Severity | Description |\n|------|----------|-------------|\n| `MISSING_NAME` | Error | Command must have a name |\n| `INVALID_NAME_FORMAT` | Warning | Name should use kebab-case (`domain-action`) |\n| `MISSING_DESCRIPTION` | Error | Command must have a description |\n| `SHORT_DESCRIPTION` | Warning | Description should be detailed |\n| `MISSING_PARAMETERS` | Error | Command must have parameters array |\n| `MISSING_HANDLER` | Error | Command must have a handler function |\n| `MISSING_CATEGORY` | Warning | Command should have a category |\n| `MISSING_ERROR_DOCS` | Warning | Command should document error codes |\n\n### Result Validation\n\n| Rule | Severity | Description |\n|------|----------|-------------|\n| `INVALID_SUCCESS_TYPE` | Error | success must be boolean |\n| `MISSING_DATA` | Warning | Success result should have data |\n| `MISSING_ERROR` | Error | Failed result must have error |\n| `MISSING_CONFIDENCE` | Warning | AI commands should have confidence |\n| `INVALID_CONFIDENCE_RANGE` | Error | Confidence must be 0-1 |\n| `MISSING_REASONING` | Warning | AI commands should have reasoning |\n| `MISSING_SOURCES` | Warning | External data commands should have sources |\n\n### Error Validation\n\n| Rule | Severity | Description |\n|------|----------|-------------|\n| `INVALID_ERROR_CODE` | Error | Error code must be a string |\n| `INVALID_ERROR_MESSAGE` | Error | Error message must be a string |\n| `MISSING_SUGGESTION` | Warning | Errors should have suggestions |\n| `MISSING_RETRYABLE` | Warning | Errors should indicate if retryable |\n\n### Surface Validation Rules\n\n| Rule | Severity | Description |\n|------|----------|-------------|\n| `similar-descriptions` | Warning | Command pair descriptions exceed similarity threshold |\n| `schema-overlap` | Warning | Command pair input schemas share too many fields |\n| `naming-convention` | Error | Command name doesn't match naming pattern |\n| `naming-collision` | Error | Command names collide when separators are removed |\n| `missing-category` | Info | Command has no category assigned |\n| `description-injection` | Error | Description contains prompt injection patterns |\n| `description-quality` | Warning | Description too short or missing action verb |\n| `orphaned-category` | Info | Category contains only one command |\n| `schema-complexity` | Warning/Info | Input schema too complex for agents (scored by fields, depth, unions, constraints) |\n| `unresolved-prerequisite` | Error | `requires` entry references a command not in the surface |\n| `circular-prerequisite` | Error | Circular dependency cycle in the `requires` graph |\n| `missing-output-schema` | Info | Command does not declare an `output` schema |\n| `missing-context` | Info | Command has no `contexts` array (when server has configured contexts) |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}