@savvy-web/mcp 1.3.5 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -12
- package/bin/savvy-mcp.js +2 -11
- package/index.d.ts +8 -91
- package/package.json +2 -3
- package/runtime.js +22 -4
- package/server.js +35 -30
- package/tools/biome-check.js +1 -1
- package/tools/changeset-deps-detect.js +88 -0
- package/tools/changeset-deps-regen.js +100 -0
- package/content/_templates/guides.md +0 -12
- package/content/_templates/packages.md +0 -21
- package/content/_templates/standards.md +0 -17
- package/content/guides/api-docs-from-api-extractor.md +0 -174
- package/content/guides/building-a-github-action.md +0 -233
- package/content/guides/choosing-a-builder.md +0 -93
- package/content/guides/llm-friendly-json-schemas.md +0 -64
- package/content/manifest.json +0 -10538
- package/content/packages/bundler/api/function/build.md +0 -18
- package/content/packages/bundler/api/function/definebuild.md +0 -18
- package/content/packages/bundler/api/function/parseargs.md +0 -18
- package/content/packages/bundler/api/function/runbuild.md +0 -18
- package/content/packages/bundler/api/interface/buildconfig.md +0 -147
- package/content/packages/bundler/api/interface/buildconfiginput.md +0 -153
- package/content/packages/bundler/api/interface/buildentryoverride.md +0 -86
- package/content/packages/bundler/api/interface/outputconfig.md +0 -34
- package/content/packages/bundler/api/interface/parsedargs.md +0 -44
- package/content/packages/bundler/api/interface/runoptions.md +0 -158
- package/content/packages/bundler/api.md +0 -28
- package/content/packages/bundler/overview.md +0 -89
- package/content/packages/cli/command-tree.md +0 -68
- package/content/packages/cli/init-and-check.md +0 -53
- package/content/packages/github-action-builder/api/class/actionymlmissing.md +0 -30
- package/content/packages/github-action-builder/api/class/actionymlpatherror.md +0 -48
- package/content/packages/github-action-builder/api/class/actionymlschemaerror.md +0 -45
- package/content/packages/github-action-builder/api/class/actionymlsyntaxerror.md +0 -57
- package/content/packages/github-action-builder/api/class/buildfailed.md +0 -39
- package/content/packages/github-action-builder/api/class/bundlefailed.md +0 -39
- package/content/packages/github-action-builder/api/class/cleanerror.md +0 -39
- package/content/packages/github-action-builder/api/class/configinvalid.md +0 -39
- package/content/packages/github-action-builder/api/class/configloadfailed.md +0 -39
- package/content/packages/github-action-builder/api/class/confignotfound.md +0 -39
- package/content/packages/github-action-builder/api/class/entryfilemissing.md +0 -39
- package/content/packages/github-action-builder/api/class/githubaction.md +0 -101
- package/content/packages/github-action-builder/api/class/mainentrymissing.md +0 -39
- package/content/packages/github-action-builder/api/class/persistlocalerror.md +0 -39
- package/content/packages/github-action-builder/api/class/validationfailed.md +0 -48
- package/content/packages/github-action-builder/api/class/workerentryinvalidname.md +0 -37
- package/content/packages/github-action-builder/api/class/workerentrymissing.md +0 -44
- package/content/packages/github-action-builder/api/class/writeerror.md +0 -39
- package/content/packages/github-action-builder/api/function/defineconfig.md +0 -68
- package/content/packages/github-action-builder/api/interface/buildservice.md +0 -83
- package/content/packages/github-action-builder/api/interface/configservice.md +0 -66
- package/content/packages/github-action-builder/api/interface/githubactionoptions.md +0 -60
- package/content/packages/github-action-builder/api/interface/loadconfigresult.md +0 -44
- package/content/packages/github-action-builder/api/interface/persistlocalservice.md +0 -37
- package/content/packages/github-action-builder/api/interface/validationservice.md +0 -82
- package/content/packages/github-action-builder/api/type/actionymlresult.md +0 -18
- package/content/packages/github-action-builder/api/type/apperror.md +0 -18
- package/content/packages/github-action-builder/api/type/builderror.md +0 -18
- package/content/packages/github-action-builder/api/type/buildoptions.md +0 -18
- package/content/packages/github-action-builder/api/type/buildresult.md +0 -18
- package/content/packages/github-action-builder/api/type/buildrunneroptions.md +0 -18
- package/content/packages/github-action-builder/api/type/bundleresult.md +0 -18
- package/content/packages/github-action-builder/api/type/bundlestats.md +0 -18
- package/content/packages/github-action-builder/api/type/config.md +0 -18
- package/content/packages/github-action-builder/api/type/configerror.md +0 -18
- package/content/packages/github-action-builder/api/type/configinput.md +0 -18
- package/content/packages/github-action-builder/api/type/detectedentry.md +0 -18
- package/content/packages/github-action-builder/api/type/detectentriesresult.md +0 -18
- package/content/packages/github-action-builder/api/type/entries.md +0 -18
- package/content/packages/github-action-builder/api/type/githubactionbuildresult.md +0 -18
- package/content/packages/github-action-builder/api/type/loadconfigoptions.md +0 -18
- package/content/packages/github-action-builder/api/type/persisterror.md +0 -18
- package/content/packages/github-action-builder/api/type/persistlocaloptions.md +0 -18
- package/content/packages/github-action-builder/api/type/persistlocalresult.md +0 -18
- package/content/packages/github-action-builder/api/type/persistlocalrunneroptions.md +0 -18
- package/content/packages/github-action-builder/api/type/validateoptions.md +0 -18
- package/content/packages/github-action-builder/api/type/validationerror.md +0 -20
- package/content/packages/github-action-builder/api/type/validationerroritem.md +0 -18
- package/content/packages/github-action-builder/api/type/validationoptions.md +0 -18
- package/content/packages/github-action-builder/api/type/validationresult.md +0 -18
- package/content/packages/github-action-builder/api/type/validationwarning.md +0 -18
- package/content/packages/github-action-builder/api/variable/actionymlmissingbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/actionymlpatherrorbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/actionymlresultschema.md +0 -33
- package/content/packages/github-action-builder/api/variable/actionymlschemaerrorbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/actionymlsyntaxerrorbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/applayer.md +0 -38
- package/content/packages/github-action-builder/api/variable/buildfailedbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/buildlayer.md +0 -18
- package/content/packages/github-action-builder/api/variable/buildoptionsschema.md +0 -31
- package/content/packages/github-action-builder/api/variable/buildresultschema.md +0 -32
- package/content/packages/github-action-builder/api/variable/buildrunneroptionsschema.md +0 -21
- package/content/packages/github-action-builder/api/variable/buildservice.md +0 -18
- package/content/packages/github-action-builder/api/variable/bundlefailedbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/bundleresultschema.md +0 -27
- package/content/packages/github-action-builder/api/variable/bundlestatsschema.md +0 -23
- package/content/packages/github-action-builder/api/variable/cleanerrorbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/configinputschema.md +0 -41
- package/content/packages/github-action-builder/api/variable/configinvalidbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/configlayer.md +0 -18
- package/content/packages/github-action-builder/api/variable/configloadfailedbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/confignotfoundbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/configschema.md +0 -59
- package/content/packages/github-action-builder/api/variable/configservice.md +0 -18
- package/content/packages/github-action-builder/api/variable/detectedentryschema.md +0 -22
- package/content/packages/github-action-builder/api/variable/detectentriesresultschema.md +0 -25
- package/content/packages/github-action-builder/api/variable/entriesschema.md +0 -25
- package/content/packages/github-action-builder/api/variable/entryfilemissingbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/githubactionbuildresultschema.md +0 -60
- package/content/packages/github-action-builder/api/variable/loadconfigoptionsschema.md +0 -21
- package/content/packages/github-action-builder/api/variable/mainentrymissingbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/persistlocalerrorbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/persistlocallayer.md +0 -18
- package/content/packages/github-action-builder/api/variable/persistlocaloptionsschema.md +0 -28
- package/content/packages/github-action-builder/api/variable/persistlocalresultschema.md +0 -25
- package/content/packages/github-action-builder/api/variable/persistlocalrunneroptionsschema.md +0 -20
- package/content/packages/github-action-builder/api/variable/persistlocalservice.md +0 -18
- package/content/packages/github-action-builder/api/variable/validateoptionsschema.md +0 -21
- package/content/packages/github-action-builder/api/variable/validationerrorschema.md +0 -23
- package/content/packages/github-action-builder/api/variable/validationfailedbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/validationlayer.md +0 -18
- package/content/packages/github-action-builder/api/variable/validationoptionsschema.md +0 -24
- package/content/packages/github-action-builder/api/variable/validationresultschema.md +0 -32
- package/content/packages/github-action-builder/api/variable/validationservice.md +0 -18
- package/content/packages/github-action-builder/api/variable/validationwarningschema.md +0 -23
- package/content/packages/github-action-builder/api/variable/workerentryinvalidnamebase.md +0 -20
- package/content/packages/github-action-builder/api/variable/workerentrymissingbase.md +0 -20
- package/content/packages/github-action-builder/api/variable/writeerrorbase.md +0 -20
- package/content/packages/github-action-builder/api.md +0 -125
- package/content/packages/github-action-effects/api/class/actioncache.md +0 -18
- package/content/packages/github-action-effects/api/class/actioncacheerror.md +0 -44
- package/content/packages/github-action-effects/api/class/actionenvironment.md +0 -18
- package/content/packages/github-action-effects/api/class/actionenvironmenterror.md +0 -37
- package/content/packages/github-action-effects/api/class/actioninputerror.md +0 -44
- package/content/packages/github-action-effects/api/class/actionlogger.md +0 -18
- package/content/packages/github-action-effects/api/class/actionoutputerror.md +0 -37
- package/content/packages/github-action-effects/api/class/actionoutputs.md +0 -18
- package/content/packages/github-action-effects/api/class/actionstate.md +0 -18
- package/content/packages/github-action-effects/api/class/actionstateerror.md +0 -44
- package/content/packages/github-action-effects/api/class/artifact.md +0 -18
- package/content/packages/github-action-effects/api/class/artifacterror.md +0 -53
- package/content/packages/github-action-effects/api/class/attest.md +0 -18
- package/content/packages/github-action-effects/api/class/attesterror.md +0 -42
- package/content/packages/github-action-effects/api/class/blobstore.md +0 -18
- package/content/packages/github-action-effects/api/class/blobstoreerror.md +0 -44
- package/content/packages/github-action-effects/api/class/changesetanalyzer.md +0 -18
- package/content/packages/github-action-effects/api/class/changeseterror.md +0 -37
- package/content/packages/github-action-effects/api/class/checkrun.md +0 -18
- package/content/packages/github-action-effects/api/class/checkrunerror.md +0 -44
- package/content/packages/github-action-effects/api/class/commandrunner.md +0 -18
- package/content/packages/github-action-effects/api/class/commandrunnererror.md +0 -73
- package/content/packages/github-action-effects/api/class/configloader.md +0 -18
- package/content/packages/github-action-effects/api/class/configloadererror.md +0 -44
- package/content/packages/github-action-effects/api/class/dryrun.md +0 -18
- package/content/packages/github-action-effects/api/class/gitbranch.md +0 -18
- package/content/packages/github-action-effects/api/class/gitbrancherror.md +0 -44
- package/content/packages/github-action-effects/api/class/gitcommit.md +0 -18
- package/content/packages/github-action-effects/api/class/gitcommiterror.md +0 -37
- package/content/packages/github-action-effects/api/class/githubapp.md +0 -18
- package/content/packages/github-action-effects/api/class/githubapperror.md +0 -37
- package/content/packages/github-action-effects/api/class/githubartifactmetadata.md +0 -18
- package/content/packages/github-action-effects/api/class/githubartifactmetadataerror.md +0 -44
- package/content/packages/github-action-effects/api/class/githubclient.md +0 -18
- package/content/packages/github-action-effects/api/class/githubclienterror.md +0 -60
- package/content/packages/github-action-effects/api/class/githubcommit.md +0 -18
- package/content/packages/github-action-effects/api/class/githubcommiterror.md +0 -44
- package/content/packages/github-action-effects/api/class/githubcontent.md +0 -18
- package/content/packages/github-action-effects/api/class/githubcontenterror.md +0 -44
- package/content/packages/github-action-effects/api/class/githubgraphql.md +0 -18
- package/content/packages/github-action-effects/api/class/githubgraphqlerror.md +0 -48
- package/content/packages/github-action-effects/api/class/githubissue.md +0 -18
- package/content/packages/github-action-effects/api/class/githubissueerror.md +0 -51
- package/content/packages/github-action-effects/api/class/githubrelease.md +0 -18
- package/content/packages/github-action-effects/api/class/githubreleaseerror.md +0 -51
- package/content/packages/github-action-effects/api/class/gittag.md +0 -18
- package/content/packages/github-action-effects/api/class/gittagerror.md +0 -44
- package/content/packages/github-action-effects/api/class/glob.md +0 -18
- package/content/packages/github-action-effects/api/class/globerror.md +0 -44
- package/content/packages/github-action-effects/api/class/intotostatement.md +0 -18
- package/content/packages/github-action-effects/api/class/intotosubject.md +0 -18
- package/content/packages/github-action-effects/api/class/ioerror.md +0 -44
- package/content/packages/github-action-effects/api/class/npmregistry.md +0 -18
- package/content/packages/github-action-effects/api/class/npmregistryerror.md +0 -50
- package/content/packages/github-action-effects/api/class/octokitauthapp.md +0 -18
- package/content/packages/github-action-effects/api/class/oidctokenerror.md +0 -42
- package/content/packages/github-action-effects/api/class/oidctokenissuer.md +0 -18
- package/content/packages/github-action-effects/api/class/packagemanageradapter.md +0 -18
- package/content/packages/github-action-effects/api/class/packagemanagererror.md +0 -44
- package/content/packages/github-action-effects/api/class/packagepublish.md +0 -18
- package/content/packages/github-action-effects/api/class/packagepublisherror.md +0 -68
- package/content/packages/github-action-effects/api/class/pullrequest.md +0 -18
- package/content/packages/github-action-effects/api/class/pullrequestcomment.md +0 -18
- package/content/packages/github-action-effects/api/class/pullrequestcommenterror.md +0 -44
- package/content/packages/github-action-effects/api/class/pullrequesterror.md +0 -44
- package/content/packages/github-action-effects/api/class/ratelimiter.md +0 -18
- package/content/packages/github-action-effects/api/class/ratelimiterror.md +0 -51
- package/content/packages/github-action-effects/api/class/runtimeenvironmenterror.md +0 -37
- package/content/packages/github-action-effects/api/class/sbom.md +0 -18
- package/content/packages/github-action-effects/api/class/sbomerror.md +0 -42
- package/content/packages/github-action-effects/api/class/semverresolvererror.md +0 -44
- package/content/packages/github-action-effects/api/class/sigstorebundle.md +0 -18
- package/content/packages/github-action-effects/api/class/sigstoresigner.md +0 -18
- package/content/packages/github-action-effects/api/class/sigstoresignererror.md +0 -42
- package/content/packages/github-action-effects/api/class/slsaerror.md +0 -42
- package/content/packages/github-action-effects/api/class/tokenpermissionchecker.md +0 -18
- package/content/packages/github-action-effects/api/class/tokenpermissionerror.md +0 -58
- package/content/packages/github-action-effects/api/class/toolinstaller.md +0 -18
- package/content/packages/github-action-effects/api/class/toolinstallererror.md +0 -58
- package/content/packages/github-action-effects/api/class/workflowdispatch.md +0 -18
- package/content/packages/github-action-effects/api/class/workflowdispatcherror.md +0 -44
- package/content/packages/github-action-effects/api/class/workspacedetector.md +0 -18
- package/content/packages/github-action-effects/api/class/workspacedetectorerror.md +0 -35
- package/content/packages/github-action-effects/api/function/attesttestfulllayer.md +0 -19
- package/content/packages/github-action-effects/api/function/buildslsaprovenancepredicate.md +0 -23
- package/content/packages/github-action-effects/api/function/buildstatement.md +0 -29
- package/content/packages/github-action-effects/api/function/decodejwtclaims.md +0 -18
- package/content/packages/github-action-effects/api/function/dryrunlive.md +0 -18
- package/content/packages/github-action-effects/api/function/generatepackageviewurl.md +0 -27
- package/content/packages/github-action-effects/api/function/getregistrydisplayname.md +0 -26
- package/content/packages/github-action-effects/api/function/getregistrytype.md +0 -26
- package/content/packages/github-action-effects/api/function/iscustomregistry.md +0 -26
- package/content/packages/github-action-effects/api/function/isgithubpackagesregistry.md +0 -26
- package/content/packages/github-action-effects/api/function/isjsrregistry.md +0 -26
- package/content/packages/github-action-effects/api/function/isnpmregistry.md +0 -26
- package/content/packages/github-action-effects/api/function/makeattestteststate.md +0 -18
- package/content/packages/github-action-effects/api/function/makesbomteststate.md +0 -18
- package/content/packages/github-action-effects/api/function/makesigstoresignerlive.md +0 -18
- package/content/packages/github-action-effects/api/function/npmpurl.md +0 -18
- package/content/packages/github-action-effects/api/function/resilienceschedule.md +0 -18
- package/content/packages/github-action-effects/api/function/s3blobstorelive.md +0 -18
- package/content/packages/github-action-effects/api/function/savetoken.md +0 -18
- package/content/packages/github-action-effects/api/function/serializestatement.md +0 -18
- package/content/packages/github-action-effects/api/function/subject.md +0 -23
- package/content/packages/github-action-effects/api/function/tokenpermissioncheckerlive.md +0 -18
- package/content/packages/github-action-effects/api/interface/accumulateresult.md +0 -35
- package/content/packages/github-action-effects/api/interface/actioncacheteststate.md +0 -26
- package/content/packages/github-action-effects/api/interface/actionloggerteststate.md +0 -59
- package/content/packages/github-action-effects/api/interface/actionoutputsteststate.md +0 -56
- package/content/packages/github-action-effects/api/interface/actionrunoptions.md +0 -28
- package/content/packages/github-action-effects/api/interface/actionstateteststate.md +0 -28
- package/content/packages/github-action-effects/api/interface/annotationproperties.md +0 -68
- package/content/packages/github-action-effects/api/interface/appauth.md +0 -44
- package/content/packages/github-action-effects/api/interface/artifactitem.md +0 -44
- package/content/packages/github-action-effects/api/interface/artifactteststate.md +0 -38
- package/content/packages/github-action-effects/api/interface/attestationlistentry.md +0 -36
- package/content/packages/github-action-effects/api/interface/attestationrecord.md +0 -44
- package/content/packages/github-action-effects/api/interface/attestinput.md +0 -38
- package/content/packages/github-action-effects/api/interface/attestteststate.md +0 -111
- package/content/packages/github-action-effects/api/interface/blobstoreteststate.md +0 -26
- package/content/packages/github-action-effects/api/interface/botidentity.md +0 -32
- package/content/packages/github-action-effects/api/interface/changesetanalyzerteststate.md +0 -32
- package/content/packages/github-action-effects/api/interface/checkrunannotation.md +0 -56
- package/content/packages/github-action-effects/api/interface/checkrundata.md +0 -50
- package/content/packages/github-action-effects/api/interface/checkrunoutput.md +0 -44
- package/content/packages/github-action-effects/api/interface/checkrunrecord.md +0 -62
- package/content/packages/github-action-effects/api/interface/checkrunteststate.md +0 -32
- package/content/packages/github-action-effects/api/interface/commandresponse.md +0 -38
- package/content/packages/github-action-effects/api/interface/commentrecord.md +0 -32
- package/content/packages/github-action-effects/api/interface/commitcomparison.md +0 -32
- package/content/packages/github-action-effects/api/interface/commitdetail.md +0 -28
- package/content/packages/github-action-effects/api/interface/commitfile.md +0 -32
- package/content/packages/github-action-effects/api/interface/commitsummary.md +0 -38
- package/content/packages/github-action-effects/api/interface/configloaderteststate.md +0 -28
- package/content/packages/github-action-effects/api/interface/dispatchrecord.md +0 -38
- package/content/packages/github-action-effects/api/interface/downloadoptions.md +0 -28
- package/content/packages/github-action-effects/api/interface/dryrunresult.md +0 -60
- package/content/packages/github-action-effects/api/interface/dryrunteststate.md +0 -26
- package/content/packages/github-action-effects/api/interface/execoptions.md +0 -52
- package/content/packages/github-action-effects/api/interface/execoutput.md +0 -38
- package/content/packages/github-action-effects/api/interface/findby.md +0 -44
- package/content/packages/github-action-effects/api/interface/gitbranchteststate.md +0 -26
- package/content/packages/github-action-effects/api/interface/gitcommitteststate.md +0 -51
- package/content/packages/github-action-effects/api/interface/githubappteststate.md +0 -54
- package/content/packages/github-action-effects/api/interface/githubartifactmetadatateststate.md +0 -36
- package/content/packages/github-action-effects/api/interface/githubclientteststate.md +0 -47
- package/content/packages/github-action-effects/api/interface/githubcommitteststate.md +0 -52
- package/content/packages/github-action-effects/api/interface/githubcontentteststate.md +0 -28
- package/content/packages/github-action-effects/api/interface/githubgraphqlteststate.md +0 -52
- package/content/packages/github-action-effects/api/interface/githubissueteststate.md +0 -53
- package/content/packages/github-action-effects/api/interface/githubreleaseteststate.md +0 -52
- package/content/packages/github-action-effects/api/interface/gittagteststate.md +0 -41
- package/content/packages/github-action-effects/api/interface/globoptions.md +0 -52
- package/content/packages/github-action-effects/api/interface/globteststate.md +0 -32
- package/content/packages/github-action-effects/api/interface/hashfilesoptions.md +0 -36
- package/content/packages/github-action-effects/api/interface/idempotentpublishinput.md +0 -66
- package/content/packages/github-action-effects/api/interface/idempotentpublishresult.md +0 -48
- package/content/packages/github-action-effects/api/interface/inflightpackage.md +0 -38
- package/content/packages/github-action-effects/api/interface/installoptions.md +0 -36
- package/content/packages/github-action-effects/api/interface/issuedata.md +0 -60
- package/content/packages/github-action-effects/api/interface/npmregistryteststate.md +0 -32
- package/content/packages/github-action-effects/api/interface/oidcclaims.md +0 -98
- package/content/packages/github-action-effects/api/interface/packagemanageradapterteststate.md +0 -47
- package/content/packages/github-action-effects/api/interface/packagepublishteststate.md +0 -121
- package/content/packages/github-action-effects/api/interface/packresult.md +0 -84
- package/content/packages/github-action-effects/api/interface/polloptions.md +0 -36
- package/content/packages/github-action-effects/api/interface/provenanceattestationinput.md +0 -44
- package/content/packages/github-action-effects/api/interface/provisionoptions.md +0 -52
- package/content/packages/github-action-effects/api/interface/publishtarballresult.md +0 -28
- package/content/packages/github-action-effects/api/interface/pullrequestcommentteststate.md +0 -35
- package/content/packages/github-action-effects/api/interface/pullrequestfile.md +0 -32
- package/content/packages/github-action-effects/api/interface/pullrequestinfo.md +0 -106
- package/content/packages/github-action-effects/api/interface/pullrequestlistoptions.md +0 -60
- package/content/packages/github-action-effects/api/interface/pullrequestrecord.md +0 -74
- package/content/packages/github-action-effects/api/interface/pullrequestteststate.md +0 -54
- package/content/packages/github-action-effects/api/interface/ratelimiterteststate.md +0 -44
- package/content/packages/github-action-effects/api/interface/registrytarget.md +0 -52
- package/content/packages/github-action-effects/api/interface/releaseasset.md +0 -44
- package/content/packages/github-action-effects/api/interface/releasedata.md +0 -62
- package/content/packages/github-action-effects/api/interface/report_2.md +0 -76
- package/content/packages/github-action-effects/api/interface/resilienceoptions.md +0 -52
- package/content/packages/github-action-effects/api/interface/resolveddependency.md +0 -44
- package/content/packages/github-action-effects/api/interface/restresponse.md +0 -26
- package/content/packages/github-action-effects/api/interface/s3blobstoreconfig.md +0 -62
- package/content/packages/github-action-effects/api/interface/sbomattestationinput.md +0 -44
- package/content/packages/github-action-effects/api/interface/sbomauthor.md +0 -38
- package/content/packages/github-action-effects/api/interface/sbomcontact.md +0 -38
- package/content/packages/github-action-effects/api/interface/sbominput.md +0 -88
- package/content/packages/github-action-effects/api/interface/sbomsupplier.md +0 -44
- package/content/packages/github-action-effects/api/interface/sbomteststate.md +0 -52
- package/content/packages/github-action-effects/api/interface/sigstoresignerconfig.md +0 -32
- package/content/packages/github-action-effects/api/interface/storagerecordinput.md +0 -68
- package/content/packages/github-action-effects/api/interface/tagref.md +0 -34
- package/content/packages/github-action-effects/api/interface/tokenpermissioncheckerteststate.md +0 -32
- package/content/packages/github-action-effects/api/interface/toolinstallerteststate.md +0 -97
- package/content/packages/github-action-effects/api/interface/uploadoptions.md +0 -36
- package/content/packages/github-action-effects/api/interface/uploadresult.md +0 -32
- package/content/packages/github-action-effects/api/interface/workflowdispatchteststate.md +0 -40
- package/content/packages/github-action-effects/api/interface/workflowrunstatus.md +0 -32
- package/content/packages/github-action-effects/api/interface/workspacedetectorteststate.md +0 -32
- package/content/packages/github-action-effects/api/namespace/step.md +0 -16
- package/content/packages/github-action-effects/api/type/actionloglevel.md +0 -16
- package/content/packages/github-action-effects/api/type/annotationlevel.md +0 -18
- package/content/packages/github-action-effects/api/type/bumptype.md +0 -16
- package/content/packages/github-action-effects/api/type/capturedoutput.md +0 -16
- package/content/packages/github-action-effects/api/type/changeset.md +0 -16
- package/content/packages/github-action-effects/api/type/changesetfile.md +0 -16
- package/content/packages/github-action-effects/api/type/checklistitem.md +0 -16
- package/content/packages/github-action-effects/api/type/checkrunconclusion.md +0 -18
- package/content/packages/github-action-effects/api/type/coreservices.md +0 -18
- package/content/packages/github-action-effects/api/type/cyclonedxbom.md +0 -18
- package/content/packages/github-action-effects/api/type/extrapermission.md +0 -18
- package/content/packages/github-action-effects/api/type/filechange.md +0 -16
- package/content/packages/github-action-effects/api/type/githubcontext.md +0 -18
- package/content/packages/github-action-effects/api/type/installationtoken.md +0 -18
- package/content/packages/github-action-effects/api/type/loglevelinput.md +0 -16
- package/content/packages/github-action-effects/api/type/npmpackageinfo.md +0 -16
- package/content/packages/github-action-effects/api/type/packagemanagerinfo.md +0 -18
- package/content/packages/github-action-effects/api/type/packagemanagername.md +0 -18
- package/content/packages/github-action-effects/api/type/permissioncheckresult.md +0 -18
- package/content/packages/github-action-effects/api/type/permissiongap.md +0 -18
- package/content/packages/github-action-effects/api/type/permissionlevel.md +0 -18
- package/content/packages/github-action-effects/api/type/ratelimitstatus.md +0 -18
- package/content/packages/github-action-effects/api/type/registrytype.md +0 -18
- package/content/packages/github-action-effects/api/type/runnercontext.md +0 -18
- package/content/packages/github-action-effects/api/type/status.md +0 -16
- package/content/packages/github-action-effects/api/type/treeentry.md +0 -16
- package/content/packages/github-action-effects/api/type/webhookpayload.md +0 -18
- package/content/packages/github-action-effects/api/type/workspaceinfo.md +0 -16
- package/content/packages/github-action-effects/api/type/workspacepackage.md +0 -16
- package/content/packages/github-action-effects/api/type/workspacetype.md +0 -16
- package/content/packages/github-action-effects/api/variable/action.md +0 -41
- package/content/packages/github-action-effects/api/variable/actioncachelive.md +0 -18
- package/content/packages/github-action-effects/api/variable/actioncachetest.md +0 -29
- package/content/packages/github-action-effects/api/variable/actionenvironmentlive.md +0 -16
- package/content/packages/github-action-effects/api/variable/actionenvironmenttest.md +0 -21
- package/content/packages/github-action-effects/api/variable/actioninput.md +0 -31
- package/content/packages/github-action-effects/api/variable/actionloggerlive.md +0 -18
- package/content/packages/github-action-effects/api/variable/actionloggertest.md +0 -29
- package/content/packages/github-action-effects/api/variable/actionloglevel.md +0 -18
- package/content/packages/github-action-effects/api/variable/actionoutputslive.md +0 -16
- package/content/packages/github-action-effects/api/variable/actionoutputstest.md +0 -29
- package/content/packages/github-action-effects/api/variable/actionsconfigprovider.md +0 -27
- package/content/packages/github-action-effects/api/variable/actionslogger.md +0 -18
- package/content/packages/github-action-effects/api/variable/actionsruntime.md +0 -36
- package/content/packages/github-action-effects/api/variable/actionstatelive.md +0 -16
- package/content/packages/github-action-effects/api/variable/actionstatetest.md +0 -29
- package/content/packages/github-action-effects/api/variable/artifactlive.md +0 -18
- package/content/packages/github-action-effects/api/variable/artifacttest.md +0 -29
- package/content/packages/github-action-effects/api/variable/attestlive.md +0 -18
- package/content/packages/github-action-effects/api/variable/attesttest.md +0 -21
- package/content/packages/github-action-effects/api/variable/automerge.md +0 -21
- package/content/packages/github-action-effects/api/variable/blobstoretest.md +0 -21
- package/content/packages/github-action-effects/api/variable/bumptype.md +0 -18
- package/content/packages/github-action-effects/api/variable/capturedoutput.md +0 -21
- package/content/packages/github-action-effects/api/variable/changeset.md +0 -25
- package/content/packages/github-action-effects/api/variable/changesetanalyzerlive.md +0 -16
- package/content/packages/github-action-effects/api/variable/changesetanalyzertest.md +0 -21
- package/content/packages/github-action-effects/api/variable/changesetfile.md +0 -21
- package/content/packages/github-action-effects/api/variable/checklistitem.md +0 -21
- package/content/packages/github-action-effects/api/variable/checkrunlive.md +0 -16
- package/content/packages/github-action-effects/api/variable/checkruntest.md +0 -21
- package/content/packages/github-action-effects/api/variable/commandrunnerlive.md +0 -16
- package/content/packages/github-action-effects/api/variable/commandrunnertest.md +0 -21
- package/content/packages/github-action-effects/api/variable/configloaderlive.md +0 -18
- package/content/packages/github-action-effects/api/variable/configloadertest.md +0 -21
- package/content/packages/github-action-effects/api/variable/cyclonedx_bom.md +0 -18
- package/content/packages/github-action-effects/api/variable/dryruntest.md +0 -24
- package/content/packages/github-action-effects/api/variable/erroraccumulator.md +0 -21
- package/content/packages/github-action-effects/api/variable/extrapermission.md +0 -21
- package/content/packages/github-action-effects/api/variable/filechange.md +0 -24
- package/content/packages/github-action-effects/api/variable/filechangecontent.md +0 -21
- package/content/packages/github-action-effects/api/variable/filechangedeletion.md +0 -21
- package/content/packages/github-action-effects/api/variable/gitbranchlive.md +0 -16
- package/content/packages/github-action-effects/api/variable/gitbranchtest.md +0 -21
- package/content/packages/github-action-effects/api/variable/gitcommitlive.md +0 -16
- package/content/packages/github-action-effects/api/variable/gitcommittest.md +0 -21
- package/content/packages/github-action-effects/api/variable/github_build_type.md +0 -18
- package/content/packages/github-action-effects/api/variable/githubapplive.md +0 -18
- package/content/packages/github-action-effects/api/variable/githubapptest.md +0 -21
- package/content/packages/github-action-effects/api/variable/githubartifactmetadatalive.md +0 -18
- package/content/packages/github-action-effects/api/variable/githubartifactmetadatatest.md +0 -24
- package/content/packages/github-action-effects/api/variable/githubblobstorelive.md +0 -18
- package/content/packages/github-action-effects/api/variable/githubclientlive.md +0 -26
- package/content/packages/github-action-effects/api/variable/githubclienttest.md +0 -21
- package/content/packages/github-action-effects/api/variable/githubcommitlive.md +0 -16
- package/content/packages/github-action-effects/api/variable/githubcommittest.md +0 -21
- package/content/packages/github-action-effects/api/variable/githubcontentlive.md +0 -16
- package/content/packages/github-action-effects/api/variable/githubcontenttest.md +0 -21
- package/content/packages/github-action-effects/api/variable/githubcontext.md +0 -35
- package/content/packages/github-action-effects/api/variable/githubgraphqllive.md +0 -18
- package/content/packages/github-action-effects/api/variable/githubgraphqltest.md +0 -24
- package/content/packages/github-action-effects/api/variable/githubissuelive.md +0 -16
- package/content/packages/github-action-effects/api/variable/githubissuetest.md +0 -24
- package/content/packages/github-action-effects/api/variable/githubmarkdown.md +0 -45
- package/content/packages/github-action-effects/api/variable/githubreleaselive.md +0 -16
- package/content/packages/github-action-effects/api/variable/githubreleasetest.md +0 -24
- package/content/packages/github-action-effects/api/variable/githubtoken.md +0 -27
- package/content/packages/github-action-effects/api/variable/gittaglive.md +0 -16
- package/content/packages/github-action-effects/api/variable/gittagtest.md +0 -24
- package/content/packages/github-action-effects/api/variable/globlive.md +0 -18
- package/content/packages/github-action-effects/api/variable/globtest.md +0 -30
- package/content/packages/github-action-effects/api/variable/in_toto_payload_type.md +0 -18
- package/content/packages/github-action-effects/api/variable/in_toto_statement_v1.md +0 -18
- package/content/packages/github-action-effects/api/variable/installationtoken.md +0 -28
- package/content/packages/github-action-effects/api/variable/ioutil.md +0 -22
- package/content/packages/github-action-effects/api/variable/loglevelinput.md +0 -18
- package/content/packages/github-action-effects/api/variable/npmpackageinfo.md +0 -24
- package/content/packages/github-action-effects/api/variable/npmregistrylive.md +0 -18
- package/content/packages/github-action-effects/api/variable/npmregistrytest.md +0 -21
- package/content/packages/github-action-effects/api/variable/octokitauthapplive.md +0 -18
- package/content/packages/github-action-effects/api/variable/oidctokenissuerlive.md +0 -18
- package/content/packages/github-action-effects/api/variable/oidctokenissuertest.md +0 -18
- package/content/packages/github-action-effects/api/variable/packagemanageradapterlive.md +0 -19
- package/content/packages/github-action-effects/api/variable/packagemanageradaptertest.md +0 -21
- package/content/packages/github-action-effects/api/variable/packagemanagerinfo.md +0 -22
- package/content/packages/github-action-effects/api/variable/packagemanagername.md +0 -18
- package/content/packages/github-action-effects/api/variable/packagepublishlive.md +0 -19
- package/content/packages/github-action-effects/api/variable/packagepublishtest.md +0 -27
- package/content/packages/github-action-effects/api/variable/pathutils.md +0 -31
- package/content/packages/github-action-effects/api/variable/permissioncheckresult.md +0 -31
- package/content/packages/github-action-effects/api/variable/permissiongap.md +0 -22
- package/content/packages/github-action-effects/api/variable/permissionlevel.md +0 -18
- package/content/packages/github-action-effects/api/variable/pullrequestcommentlive.md +0 -16
- package/content/packages/github-action-effects/api/variable/pullrequestcommenttest.md +0 -21
- package/content/packages/github-action-effects/api/variable/pullrequestlive.md +0 -16
- package/content/packages/github-action-effects/api/variable/pullrequesttest.md +0 -21
- package/content/packages/github-action-effects/api/variable/ratelimiterlive.md +0 -18
- package/content/packages/github-action-effects/api/variable/ratelimitertest.md +0 -21
- package/content/packages/github-action-effects/api/variable/ratelimitstatus.md +0 -23
- package/content/packages/github-action-effects/api/variable/reportbuilder.md +0 -33
- package/content/packages/github-action-effects/api/variable/runnercontext.md +0 -25
- package/content/packages/github-action-effects/api/variable/sbomlive.md +0 -18
- package/content/packages/github-action-effects/api/variable/sbomtest.md +0 -21
- package/content/packages/github-action-effects/api/variable/semverresolver.md +0 -30
- package/content/packages/github-action-effects/api/variable/sigstore_bundle_v0_3_media_type.md +0 -18
- package/content/packages/github-action-effects/api/variable/sigstore_oidc_audience.md +0 -18
- package/content/packages/github-action-effects/api/variable/sigstoresignerlive.md +0 -18
- package/content/packages/github-action-effects/api/variable/sigstoresignertest.md +0 -18
- package/content/packages/github-action-effects/api/variable/slsa_provenance_v1.md +0 -18
- package/content/packages/github-action-effects/api/variable/spdx_v2_3.md +0 -18
- package/content/packages/github-action-effects/api/variable/status.md +0 -18
- package/content/packages/github-action-effects/api/variable/tokenpermissioncheckertest.md +0 -21
- package/content/packages/github-action-effects/api/variable/toolinstallerlive.md +0 -18
- package/content/packages/github-action-effects/api/variable/toolinstallertest.md +0 -21
- package/content/packages/github-action-effects/api/variable/treeentry.md +0 -26
- package/content/packages/github-action-effects/api/variable/treeentrycontent.md +0 -22
- package/content/packages/github-action-effects/api/variable/treeentrydeletion.md +0 -22
- package/content/packages/github-action-effects/api/variable/webhookpayload.md +0 -51
- package/content/packages/github-action-effects/api/variable/workflowdispatchlive.md +0 -16
- package/content/packages/github-action-effects/api/variable/workflowdispatchtest.md +0 -21
- package/content/packages/github-action-effects/api/variable/workspacedetectorlive.md +0 -18
- package/content/packages/github-action-effects/api/variable/workspacedetectortest.md +0 -21
- package/content/packages/github-action-effects/api/variable/workspaceinfo.md +0 -22
- package/content/packages/github-action-effects/api/variable/workspacepackage.md +0 -24
- package/content/packages/github-action-effects/api/variable/workspacetype.md +0 -18
- package/content/packages/github-action-effects/api.md +0 -386
- package/content/packages/mcp/resource-taxonomy.md +0 -63
- package/content/packages/rspress-builder/api/function/build.md +0 -18
- package/content/packages/rspress-builder/api/function/defineplugin.md +0 -18
- package/content/packages/rspress-builder/api/interface/rspressbundleoptions.md +0 -28
- package/content/packages/rspress-builder/api/interface/rspresspluginoptions.md +0 -76
- package/content/packages/rspress-builder/api.md +0 -22
- package/content/packages/silk/export-map.md +0 -67
- package/content/packages/silk/install-and-setup.md +0 -59
- package/content/packages/silk-effects/api/class/analyzedworkspace.md +0 -121
- package/content/packages/silk-effects/api/class/biomeschemasync.md +0 -33
- package/content/packages/silk-effects/api/class/biomesyncerror.md +0 -41
- package/content/packages/silk-effects/api/class/changesetconfig.md +0 -28
- package/content/packages/silk-effects/api/class/changesetconfigerror.md +0 -41
- package/content/packages/silk-effects/api/class/changesetconfigreader.md +0 -33
- package/content/packages/silk-effects/api/class/configdiscovery.md +0 -33
- package/content/packages/silk-effects/api/class/confignotfounderror.md +0 -41
- package/content/packages/silk-effects/api/class/managedsection.md +0 -18
- package/content/packages/silk-effects/api/class/resolvedtool.md +0 -62
- package/content/packages/silk-effects/api/class/sectionblock.md +0 -95
- package/content/packages/silk-effects/api/class/sectiondefinition.md +0 -104
- package/content/packages/silk-effects/api/class/sectionparseerror.md +0 -41
- package/content/packages/silk-effects/api/class/sectionvalidationerror.md +0 -41
- package/content/packages/silk-effects/api/class/sectionwriteerror.md +0 -41
- package/content/packages/silk-effects/api/class/shellsectiondefinition.md +0 -56
- package/content/packages/silk-effects/api/class/silkpublishability.md +0 -46
- package/content/packages/silk-effects/api/class/silkpublishconfig.md +0 -18
- package/content/packages/silk-effects/api/class/silkworkspaceanalyzer.md +0 -33
- package/content/packages/silk-effects/api/class/tagformaterror.md +0 -48
- package/content/packages/silk-effects/api/class/tagstrategy.md +0 -32
- package/content/packages/silk-effects/api/class/toolcommand.md +0 -76
- package/content/packages/silk-effects/api/class/tooldefinition.md +0 -73
- package/content/packages/silk-effects/api/class/tooldiscovery.md +0 -35
- package/content/packages/silk-effects/api/class/toolnotfounderror.md +0 -39
- package/content/packages/silk-effects/api/class/toolresolutionerror.md +0 -39
- package/content/packages/silk-effects/api/class/toolversionmismatcherror.md +0 -46
- package/content/packages/silk-effects/api/class/versioningdetectionerror.md +0 -34
- package/content/packages/silk-effects/api/class/versioningstrategy.md +0 -34
- package/content/packages/silk-effects/api/class/workspaceanalysis.md +0 -94
- package/content/packages/silk-effects/api/class/workspaceanalysiserror.md +0 -41
- package/content/packages/silk-effects/api/function/buildschemaurl.md +0 -26
- package/content/packages/silk-effects/api/function/extractsemver.md +0 -26
- package/content/packages/silk-effects/api/function/readtargetsbinding.md +0 -23
- package/content/packages/silk-effects/api/function/savvybasepreamble.md +0 -22
- package/content/packages/silk-effects/api/function/savvyhookshygiene.md +0 -22
- package/content/packages/silk-effects/api/function/savvytoolsection.md +0 -37
- package/content/packages/silk-effects/api/interface/commitlintplugin.md +0 -26
- package/content/packages/silk-effects/api/interface/commitlintuserconfig.md +0 -76
- package/content/packages/silk-effects/api/interface/promptconfig.md +0 -38
- package/content/packages/silk-effects/api/interface/promptsettings.md +0 -32
- package/content/packages/silk-effects/api/interface/publishablepackage.md +0 -44
- package/content/packages/silk-effects/api/interface/rawpackagejson.md +0 -44
- package/content/packages/silk-effects/api/interface/rawpublishconfig.md +0 -44
- package/content/packages/silk-effects/api/interface/rawtargetobject.md +0 -44
- package/content/packages/silk-effects/api/interface/rulesconfig.md +0 -26
- package/content/packages/silk-effects/api/interface/targetbinding.md +0 -52
- package/content/packages/silk-effects/api/interface/targetgroupbinding.md +0 -44
- package/content/packages/silk-effects/api/interface/targetsbinding.md +0 -32
- package/content/packages/silk-effects/api/namespace/changesets.md +0 -16
- package/content/packages/silk-effects/api/namespace/commitlint.md +0 -16
- package/content/packages/silk-effects/api/namespace/lint.md +0 -16
- package/content/packages/silk-effects/api/namespace/turbo.md +0 -16
- package/content/packages/silk-effects/api/type/biomesyncoptions.md +0 -16
- package/content/packages/silk-effects/api/type/biomesyncresult.md +0 -16
- package/content/packages/silk-effects/api/type/changesetconfigfile.md +0 -16
- package/content/packages/silk-effects/api/type/changesetmode.md +0 -18
- package/content/packages/silk-effects/api/type/checkresult.md +0 -16
- package/content/packages/silk-effects/api/type/checkresultdefinition.md +0 -24
- package/content/packages/silk-effects/api/type/commentstyle.md +0 -16
- package/content/packages/silk-effects/api/type/configdiscoveryoptions.md +0 -16
- package/content/packages/silk-effects/api/type/configlocation.md +0 -16
- package/content/packages/silk-effects/api/type/configsource.md +0 -16
- package/content/packages/silk-effects/api/type/rawpublishtargets.md +0 -18
- package/content/packages/silk-effects/api/type/rawtargetvalue.md +0 -18
- package/content/packages/silk-effects/api/type/resolutionpolicy.md +0 -16
- package/content/packages/silk-effects/api/type/resolutionpolicydefinition.md +0 -23
- package/content/packages/silk-effects/api/type/ruleapplicability.md +0 -18
- package/content/packages/silk-effects/api/type/ruleconfigtuple.md +0 -18
- package/content/packages/silk-effects/api/type/ruleseverity.md +0 -18
- package/content/packages/silk-effects/api/type/sectiondiff.md +0 -16
- package/content/packages/silk-effects/api/type/sectiondiffdefinition.md +0 -24
- package/content/packages/silk-effects/api/type/silkchangesetconfigfile.md +0 -16
- package/content/packages/silk-effects/api/type/sourcerequirement.md +0 -16
- package/content/packages/silk-effects/api/type/sourcerequirementdefinition.md +0 -23
- package/content/packages/silk-effects/api/type/syncresult.md +0 -16
- package/content/packages/silk-effects/api/type/syncresultdefinition.md +0 -24
- package/content/packages/silk-effects/api/type/tagstrategytype.md +0 -16
- package/content/packages/silk-effects/api/type/toolsource.md +0 -16
- package/content/packages/silk-effects/api/type/versionextractor.md +0 -16
- package/content/packages/silk-effects/api/type/versionextractordefinition.md +0 -28
- package/content/packages/silk-effects/api/type/versioningstrategyresult.md +0 -16
- package/content/packages/silk-effects/api/type/versioningstrategytype.md +0 -16
- package/content/packages/silk-effects/api/variable/biomeschemasynclive.md +0 -18
- package/content/packages/silk-effects/api/variable/biomesyncoptions.md +0 -23
- package/content/packages/silk-effects/api/variable/biomesyncresult.md +0 -22
- package/content/packages/silk-effects/api/variable/changesetconfigfile.md +0 -36
- package/content/packages/silk-effects/api/variable/changesetconfiglive.md +0 -18
- package/content/packages/silk-effects/api/variable/changesetconfigreaderlive.md +0 -18
- package/content/packages/silk-effects/api/variable/checkresult.md +0 -70
- package/content/packages/silk-effects/api/variable/commentstyle.md +0 -18
- package/content/packages/silk-effects/api/variable/configdiscoverylive.md +0 -18
- package/content/packages/silk-effects/api/variable/configdiscoveryoptions.md +0 -21
- package/content/packages/silk-effects/api/variable/configlocation.md +0 -21
- package/content/packages/silk-effects/api/variable/configsource.md +0 -18
- package/content/packages/silk-effects/api/variable/managedsectionlive.md +0 -18
- package/content/packages/silk-effects/api/variable/publishabilitydetectoradaptivelive.md +0 -19
- package/content/packages/silk-effects/api/variable/resolutionpolicy.md +0 -92
- package/content/packages/silk-effects/api/variable/savvybasesection.md +0 -25
- package/content/packages/silk-effects/api/variable/savvyhookssection.md +0 -18
- package/content/packages/silk-effects/api/variable/sectiondiff.md +0 -70
- package/content/packages/silk-effects/api/variable/silkchangesetconfigfile.md +0 -40
- package/content/packages/silk-effects/api/variable/silkpublishabilitydetectorlive.md +0 -18
- package/content/packages/silk-effects/api/variable/silkworkspaceanalyzerlive.md +0 -20
- package/content/packages/silk-effects/api/variable/sourcerequirement.md +0 -92
- package/content/packages/silk-effects/api/variable/syncresult.md +0 -81
- package/content/packages/silk-effects/api/variable/tagstrategylive.md +0 -18
- package/content/packages/silk-effects/api/variable/tagstrategytype.md +0 -18
- package/content/packages/silk-effects/api/variable/tooldiscoverylive.md +0 -19
- package/content/packages/silk-effects/api/variable/toolsource.md +0 -18
- package/content/packages/silk-effects/api/variable/versionextractor.md +0 -99
- package/content/packages/silk-effects/api/variable/versioningstrategylive.md +0 -18
- package/content/packages/silk-effects/api/variable/versioningstrategyresult.md +0 -22
- package/content/packages/silk-effects/api/variable/versioningstrategytype.md +0 -18
- package/content/packages/silk-effects/api.md +0 -144
- package/content/packages/silk-effects/index.md +0 -76
- package/content/packages/silk-effects/managed-section.md +0 -84
- package/content/packages/silk-effects/platform-layers.md +0 -94
- package/content/packages/templates/api/function/createbiome.md +0 -26
- package/content/packages/templates/api/function/createchangeset.md +0 -26
- package/content/packages/templates/api/function/creategitignore.md +0 -26
- package/content/packages/templates/api/function/createpackagejson.md +0 -26
- package/content/packages/templates/api/function/createpnpmworkspace.md +0 -26
- package/content/packages/templates/api/function/createreadme.md +0 -26
- package/content/packages/templates/api/function/createtsconfig.md +0 -26
- package/content/packages/templates/api/function/createturboroot.md +0 -26
- package/content/packages/templates/api/function/createturboworkspace.md +0 -26
- package/content/packages/templates/api/function/createvscode.md +0 -26
- package/content/packages/templates/api/function/createworkspace.md +0 -26
- package/content/packages/templates/api/interface/templateentry.md +0 -44
- package/content/packages/templates/api/type/biomeoptionstype.md +0 -18
- package/content/packages/templates/api/type/changesetoptionstype.md +0 -18
- package/content/packages/templates/api/type/gitignoreoptionstype.md +0 -18
- package/content/packages/templates/api/type/packagejsonoptionstype.md +0 -18
- package/content/packages/templates/api/type/pnpmworkspaceoptionstype.md +0 -18
- package/content/packages/templates/api/type/readmeoptionstype.md +0 -18
- package/content/packages/templates/api/type/template.md +0 -18
- package/content/packages/templates/api/type/tsconfigoptionstype.md +0 -18
- package/content/packages/templates/api/type/turborootoptionstype.md +0 -18
- package/content/packages/templates/api/type/turboworkspaceoptionstype.md +0 -18
- package/content/packages/templates/api/type/updatetemplate.md +0 -18
- package/content/packages/templates/api/type/vscodeoptionstype.md +0 -18
- package/content/packages/templates/api/type/workspaceoptionstype.md +0 -18
- package/content/packages/templates/api/variable/biomeoptions.md +0 -22
- package/content/packages/templates/api/variable/changesetoptions.md +0 -29
- package/content/packages/templates/api/variable/gitignoreoptions.md +0 -27
- package/content/packages/templates/api/variable/packagejsonoptions.md +0 -60
- package/content/packages/templates/api/variable/pnpmworkspaceoptions.md +0 -23
- package/content/packages/templates/api/variable/readmeoptions.md +0 -21
- package/content/packages/templates/api/variable/tsconfigoptions.md +0 -26
- package/content/packages/templates/api/variable/turborootoptions.md +0 -25
- package/content/packages/templates/api/variable/turboworkspaceoptions.md +0 -20
- package/content/packages/templates/api/variable/vscodeoptions.md +0 -25
- package/content/packages/templates/api/variable/workspaceoptions.md +0 -33
- package/content/packages/templates/api.md +0 -60
- package/content/packages/tsdown-plugins/api/class/buildcollector.md +0 -62
- package/content/packages/tsdown-plugins/api/class/buildcollectortag.md +0 -16
- package/content/packages/tsdown-plugins/api/class/buildreport.md +0 -16
- package/content/packages/tsdown-plugins/api/class/configvalidationerror.md +0 -41
- package/content/packages/tsdown-plugins/api/class/configvalidator.md +0 -18
- package/content/packages/tsdown-plugins/api/class/diagnosticentry.md +0 -18
- package/content/packages/tsdown-plugins/api/class/emittedfile.md +0 -18
- package/content/packages/tsdown-plugins/api/class/environmentdetector.md +0 -16
- package/content/packages/tsdown-plugins/api/class/executorresolver.md +0 -16
- package/content/packages/tsdown-plugins/api/class/formatselector.md +0 -16
- package/content/packages/tsdown-plugins/api/class/metagenerationerror.md +0 -41
- package/content/packages/tsdown-plugins/api/class/outputrenderer.md +0 -16
- package/content/packages/tsdown-plugins/api/class/passreport.md +0 -18
- package/content/packages/tsdown-plugins/api/class/reporttimings.md +0 -16
- package/content/packages/tsdown-plugins/api/class/targetgroupreport.md +0 -16
- package/content/packages/tsdown-plugins/api/class/tsconfigresolver.md +0 -84
- package/content/packages/tsdown-plugins/api/function/ambientoutname.md +0 -18
- package/content/packages/tsdown-plugins/api/function/analyzereexportbarrel.md +0 -18
- package/content/packages/tsdown-plugins/api/function/applysubdirmetaentries.md +0 -21
- package/content/packages/tsdown-plugins/api/function/assertnoentrycollisions.md +0 -18
- package/content/packages/tsdown-plugins/api/function/buildemittedmanifest.md +0 -18
- package/content/packages/tsdown-plugins/api/function/buildmetricsplugin.md +0 -18
- package/content/packages/tsdown-plugins/api/function/buildresolvedtsconfig.md +0 -18
- package/content/packages/tsdown-plugins/api/function/buildtargetgroups.md +0 -18
- package/content/packages/tsdown-plugins/api/function/cjsdefaultinterop.md +0 -18
- package/content/packages/tsdown-plugins/api/function/classifydtsexport.md +0 -18
- package/content/packages/tsdown-plugins/api/function/collectexportnames.md +0 -18
- package/content/packages/tsdown-plugins/api/function/computeexefilename.md +0 -18
- package/content/packages/tsdown-plugins/api/function/copyambientdts.md +0 -18
- package/content/packages/tsdown-plugins/api/function/copypublicdir.md +0 -18
- package/content/packages/tsdown-plugins/api/function/createtimer.md +0 -18
- package/content/packages/tsdown-plugins/api/function/createtsdownlogger.md +0 -18
- package/content/packages/tsdown-plugins/api/function/declarationext.md +0 -18
- package/content/packages/tsdown-plugins/api/function/defaultmanifesttransform.md +0 -20
- package/content/packages/tsdown-plugins/api/function/deriveexportpaths.md +0 -18
- package/content/packages/tsdown-plugins/api/function/derivetargetgroupoptions.md +0 -18
- package/content/packages/tsdown-plugins/api/function/emitmanifest.md +0 -18
- package/content/packages/tsdown-plugins/api/function/extractambientdts.md +0 -18
- package/content/packages/tsdown-plugins/api/function/extractentries.md +0 -16
- package/content/packages/tsdown-plugins/api/function/findrelativespecifiers.md +0 -21
- package/content/packages/tsdown-plugins/api/function/flattenissues.md +0 -21
- package/content/packages/tsdown-plugins/api/function/formattime.md +0 -16
- package/content/packages/tsdown-plugins/api/function/generatemeta.md +0 -18
- package/content/packages/tsdown-plugins/api/function/istargetobject.md +0 -18
- package/content/packages/tsdown-plugins/api/function/mixeddtsexporterror.md +0 -18
- package/content/packages/tsdown-plugins/api/function/nodebuiltindefaultinterop.md +0 -18
- package/content/packages/tsdown-plugins/api/function/normalizebinpaths.md +0 -18
- package/content/packages/tsdown-plugins/api/function/normalizeexeoptions.md +0 -18
- package/content/packages/tsdown-plugins/api/function/normalizeloosefiles.md +0 -18
- package/content/packages/tsdown-plugins/api/function/normalizemetaoptions.md +0 -21
- package/content/packages/tsdown-plugins/api/function/packagejsonentries.md +0 -18
- package/content/packages/tsdown-plugins/api/function/readtsconfigjsx.md +0 -18
- package/content/packages/tsdown-plugins/api/function/removedeclarationmaps.md +0 -18
- package/content/packages/tsdown-plugins/api/function/renderreexportstub.md +0 -22
- package/content/packages/tsdown-plugins/api/function/renderreport.md +0 -17
- package/content/packages/tsdown-plugins/api/function/resolvejsxconfig.md +0 -18
- package/content/packages/tsdown-plugins/api/function/resolvemanifest.md +0 -18
- package/content/packages/tsdown-plugins/api/function/resolvenextversions.md +0 -18
- package/content/packages/tsdown-plugins/api/function/resolveportabletsconfig.md +0 -27
- package/content/packages/tsdown-plugins/api/function/resolvetargets.md +0 -21
- package/content/packages/tsdown-plugins/api/function/rewritemetaversions.md +0 -18
- package/content/packages/tsdown-plugins/api/function/runexebuild.md +0 -18
- package/content/packages/tsdown-plugins/api/function/runmetapass.md +0 -18
- package/content/packages/tsdown-plugins/api/function/serializeissues.md +0 -18
- package/content/packages/tsdown-plugins/api/function/transformbin.md +0 -18
- package/content/packages/tsdown-plugins/api/function/transformexports.md +0 -18
- package/content/packages/tsdown-plugins/api/function/transformmanifest.md +0 -18
- package/content/packages/tsdown-plugins/api/function/writedtsemittsconfig.md +0 -18
- package/content/packages/tsdown-plugins/api/function/writeissuesartifact.md +0 -23
- package/content/packages/tsdown-plugins/api/function/writeresolvedtsconfig.md +0 -18
- package/content/packages/tsdown-plugins/api/function/writetargetsbinding.md +0 -18
- package/content/packages/tsdown-plugins/api/interface/ambientdtsentry.md +0 -38
- package/content/packages/tsdown-plugins/api/interface/buildemittedmanifestoptions.md +0 -69
- package/content/packages/tsdown-plugins/api/interface/buildgroupspec.md +0 -32
- package/content/packages/tsdown-plugins/api/interface/buildissues.md +0 -56
- package/content/packages/tsdown-plugins/api/interface/buildtargetgroupsoptions.md +0 -205
- package/content/packages/tsdown-plugins/api/interface/copyambientdtsoptions.md +0 -42
- package/content/packages/tsdown-plugins/api/interface/cssoptions.md +0 -36
- package/content/packages/tsdown-plugins/api/interface/derivedtsdownoptions.md +0 -106
- package/content/packages/tsdown-plugins/api/interface/deriveoptions.md +0 -100
- package/content/packages/tsdown-plugins/api/interface/diagnosticinput.md +0 -66
- package/content/packages/tsdown-plugins/api/interface/emitmanifestoptions.md +0 -71
- package/content/packages/tsdown-plugins/api/interface/entryoverride.md +0 -86
- package/content/packages/tsdown-plugins/api/interface/execonfig.md +0 -60
- package/content/packages/tsdown-plugins/api/interface/exerewrite.md +0 -44
- package/content/packages/tsdown-plugins/api/interface/exeseaconfig.md +0 -38
- package/content/packages/tsdown-plugins/api/interface/exetarget.md +0 -38
- package/content/packages/tsdown-plugins/api/interface/exetargetinput.md +0 -32
- package/content/packages/tsdown-plugins/api/interface/extractambientoptions.md +0 -24
- package/content/packages/tsdown-plugins/api/interface/extractoptions.md +0 -32
- package/content/packages/tsdown-plugins/api/interface/extractresult.md +0 -34
- package/content/packages/tsdown-plugins/api/interface/formatter.md +0 -30
- package/content/packages/tsdown-plugins/api/interface/formattercontext.md +0 -30
- package/content/packages/tsdown-plugins/api/interface/generatemetaoptions.md +0 -124
- package/content/packages/tsdown-plugins/api/interface/jsxconfig.md +0 -36
- package/content/packages/tsdown-plugins/api/interface/loosefilespec.md +0 -36
- package/content/packages/tsdown-plugins/api/interface/metaoptions.md +0 -42
- package/content/packages/tsdown-plugins/api/interface/metaresult.md +0 -30
- package/content/packages/tsdown-plugins/api/interface/moduleexportnames.md +0 -34
- package/content/packages/tsdown-plugins/api/interface/nextversions.md +0 -36
- package/content/packages/tsdown-plugins/api/interface/normalizedexe.md +0 -48
- package/content/packages/tsdown-plugins/api/interface/normalizedloosefile.md +0 -60
- package/content/packages/tsdown-plugins/api/interface/normalizedmeta.md +0 -41
- package/content/packages/tsdown-plugins/api/interface/packagejsonentriesoptions.md +0 -34
- package/content/packages/tsdown-plugins/api/interface/packagejsonlike.md +0 -30
- package/content/packages/tsdown-plugins/api/interface/pkgoscpu.md +0 -32
- package/content/packages/tsdown-plugins/api/interface/plaindiagnostic.md +0 -68
- package/content/packages/tsdown-plugins/api/interface/portabletsconfig.md +0 -36
- package/content/packages/tsdown-plugins/api/interface/publishtargetobject.md +0 -44
- package/content/packages/tsdown-plugins/api/interface/reexportbarrelanalysis.md +0 -44
- package/content/packages/tsdown-plugins/api/interface/renderedoutput.md +0 -36
- package/content/packages/tsdown-plugins/api/interface/renderreportoptions.md +0 -44
- package/content/packages/tsdown-plugins/api/interface/resolvedcompileroptions.md +0 -26
- package/content/packages/tsdown-plugins/api/interface/resolvedgroup.md +0 -44
- package/content/packages/tsdown-plugins/api/interface/resolvedtarget.md +0 -52
- package/content/packages/tsdown-plugins/api/interface/resolvedtsconfig.md +0 -36
- package/content/packages/tsdown-plugins/api/interface/resolvedtsconfigoptions.md +0 -50
- package/content/packages/tsdown-plugins/api/interface/runexebuildoptions.md +0 -74
- package/content/packages/tsdown-plugins/api/interface/runmetapassoptions.md +0 -104
- package/content/packages/tsdown-plugins/api/interface/targetgroupref.md +0 -38
- package/content/packages/tsdown-plugins/api/interface/targetresolution.md +0 -32
- package/content/packages/tsdown-plugins/api/interface/timer.md +0 -30
- package/content/packages/tsdown-plugins/api/interface/transformmanifestoptions.md +0 -50
- package/content/packages/tsdown-plugins/api/interface/tsconfigjsx.md +0 -32
- package/content/packages/tsdown-plugins/api/interface/tsdocoptions.md +0 -32
- package/content/packages/tsdown-plugins/api/interface/tsdoctagdefinition.md +0 -38
- package/content/packages/tsdown-plugins/api/interface/tsdownlogger.md +0 -62
- package/content/packages/tsdown-plugins/api/interface/validationinput.md +0 -69
- package/content/packages/tsdown-plugins/api/interface/warningsuppressionrule.md +0 -32
- package/content/packages/tsdown-plugins/api/type/buildformat.md +0 -18
- package/content/packages/tsdown-plugins/api/type/buildplatform.md +0 -18
- package/content/packages/tsdown-plugins/api/type/dtsexportclass.md +0 -25
- package/content/packages/tsdown-plugins/api/type/dualexports.md +0 -18
- package/content/packages/tsdown-plugins/api/type/environment.md +0 -16
- package/content/packages/tsdown-plugins/api/type/exebuild.md +0 -18
- package/content/packages/tsdown-plugins/api/type/executor.md +0 -16
- package/content/packages/tsdown-plugins/api/type/json.md +0 -16
- package/content/packages/tsdown-plugins/api/type/loosefiles.md +0 -18
- package/content/packages/tsdown-plugins/api/type/outputformat.md +0 -16
- package/content/packages/tsdown-plugins/api/type/passkind.md +0 -16
- package/content/packages/tsdown-plugins/api/type/publishtargets.md +0 -18
- package/content/packages/tsdown-plugins/api/type/publishtargetvalue.md +0 -18
- package/content/packages/tsdown-plugins/api/type/targetgroupid.md +0 -18
- package/content/packages/tsdown-plugins/api/type/tsdownbuild.md +0 -18
- package/content/packages/tsdown-plugins/api/variable/ciannotationsformatter.md +0 -16
- package/content/packages/tsdown-plugins/api/variable/configvalidatorlive.md +0 -18
- package/content/packages/tsdown-plugins/api/variable/default_exe_node_version.md +0 -18
- package/content/packages/tsdown-plugins/api/variable/environmentdetectorlive.md +0 -16
- package/content/packages/tsdown-plugins/api/variable/executorresolverlive.md +0 -16
- package/content/packages/tsdown-plugins/api/variable/formatselectorlive.md +0 -16
- package/content/packages/tsdown-plugins/api/variable/jsonformatter.md +0 -16
- package/content/packages/tsdown-plugins/api/variable/markdownformatter.md +0 -16
- package/content/packages/tsdown-plugins/api/variable/outputrendererlive.md +0 -16
- package/content/packages/tsdown-plugins/api/variable/reportpipelinelive.md +0 -17
- package/content/packages/tsdown-plugins/api/variable/silentformatter.md +0 -16
- package/content/packages/tsdown-plugins/api/variable/terminalformatter.md +0 -16
- package/content/packages/tsdown-plugins/api.md +0 -183
- package/content/standards/api-model-pipeline.md +0 -64
- package/content/standards/catalog-usage.md +0 -48
- package/content/standards/changeset-discipline.md +0 -52
- package/content/standards/changeset-format.md +0 -132
- package/content/standards/commit-contract.md +0 -58
- package/content/standards/dependency-conventions.md +0 -82
- package/content/standards/linting-conventions.md +0 -47
- package/content/standards/publishability.md +0 -57
- package/content/standards/semver.md +0 -51
- package/content/standards/test-classification.md +0 -49
- package/content/standards/turbo/best-practices.md +0 -76
- package/content/standards/turbo/boundaries.md +0 -72
- package/content/standards/turbo/ci.md +0 -69
- package/content/standards/turbo/environment.md +0 -64
- package/content/standards/turbo/filtering.md +0 -72
- package/content/standards/turbo/watch.md +0 -64
- package/content/tags.json +0 -32
- package/resources/catalog.js +0 -29
- package/resources/doc-index.js +0 -112
- package/resources/index.js +0 -57
- package/resources/load.js +0 -38
- package/resources/paths.js +0 -23
- package/resources/query-log.js +0 -20
- package/resources/schema.js +0 -40
- package/tools/docs-search.js +0 -59
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@savvy-web/mcp)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
|
|
6
|
-
The `savvy-mcp` [Model Context Protocol](https://modelcontextprotocol.io/) server. It serves [Silk Suite](https://github.com/savvy-web/systems) tooling
|
|
6
|
+
The `savvy-mcp` [Model Context Protocol](https://modelcontextprotocol.io/) server. It serves [Silk Suite](https://github.com/savvy-web/systems) tooling to coding agents as structured tools, so an agent can read workspace facts and run Silk checks instead of parsing console output or guessing. It is a tools-only server — eight tools, no resources.
|
|
7
7
|
|
|
8
8
|
## Install
|
|
9
9
|
|
|
@@ -42,21 +42,13 @@ npx @modelcontextprotocol/inspector savvy-mcp .
|
|
|
42
42
|
## Tools
|
|
43
43
|
|
|
44
44
|
- `workspace_info` — returns a flat, structured projection of the workspace analysis: linked and fixed package groups as name arrays plus resolved registry targets. Backed by the same `silk-effects` analyzer the `savvy` CLI uses.
|
|
45
|
-
- `silk_docs_search` — ranks documents in the corpus against a plain keyword or phrase query and returns hits with a normalized confidence score plus a high/medium/low label. A query that matches nothing returns an empty result set, pointing the agent at `silk://catalog` to choose a doc by reasoning.
|
|
46
45
|
- `turbo_inspect` — read-only Turborepo inspection over `turbo --dry`: diagnose a task's per-package cache hits, derive the task graph or list the packages affected by recent changes. It never runs a task. Backed by the same `silk-effects` `Turbo` inspector an agent would otherwise drive by hand.
|
|
47
46
|
- `changeset_inspect` — read-only changeset analysis for release work: `mode=branch` diffs the current branch against its base and attributes every changed file to its owning package, `mode=config` surfaces the resolved `.changeset/config.json` with its release surfaces, version files and ignore list, and `mode=classify` reports how the branch's pending changesets classify each package's bump. It never writes a changeset. Backed by the same `silk-effects` changeset services the `savvy` CLI uses.
|
|
48
47
|
- `changeset_validate` — read-only validation of the files in a changeset directory against the section-aware rules, returning typed diagnostics (file, rule, line, column, message) plus an ok flag and error count. Use it instead of shelling out to `savvy changeset lint`.
|
|
49
48
|
- `changeset_preview` — read-only preview of the next release: it runs the genuine changesets engine over the pending changesets and returns each package's version bump (old to new) plus the rendered CHANGELOG block, exactly as it would ship. It never mutates the repo. Backed by the same `silk-effects` release planner the `savvy changeset version` command applies.
|
|
50
|
-
- `
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
The server exposes a curated markdown corpus behind the `silk://` URI scheme:
|
|
55
|
-
|
|
56
|
-
- `silk://catalog` — a single fixed resource listing every document grouped by tier with a "load when …" hint. The agent's mandated first read.
|
|
57
|
-
- `silk://{+path}` — a template resolving any document by its stable id, covering Silk development standards (`silk://standards/<topic>`), per-package API and usage docs (`silk://packages/<pkg>/<topic>`) and conceptual guides (`silk://guides/<slug>`).
|
|
58
|
-
|
|
59
|
-
Per-package API-reference docs under `silk://packages/<pkg>/api/*` are generated from API Extractor models and shipped with the package, with a bare `silk://packages/<pkg>/api` index page listing each package's symbols.
|
|
49
|
+
- `changeset_deps_detect` — read-only preview of the cumulative dependency diff (merge-base to working tree): one entry per affected workspace package with its resolved dependency-table rows, `catalog:`/`workspace:` specifiers resolved to concrete versions. It never writes a changeset. Backed by `silk-effects`' `Changesets.DepsRegen.plan`.
|
|
50
|
+
- `changeset_deps_regen` — regenerates pure-dependency changesets: deletes stale ones and writes fresh single-package, patch-bump changesets from the cumulative dependency diff. Mutating unless `dryRun` is set, in which case it reports what it would delete and write without touching the filesystem. Backed by `silk-effects`' `Changesets.DepsRegen`.
|
|
51
|
+
- `biome_check` — run Biome over a path and get structured diagnostics back: `mode=check` (lint, format and organize-imports) or `mode=lint`. Unlike most of the other tools it can mutate — pass `write` for safe fixes or `unsafe` for unsafe ones (both git-reversible) — so it returns the same diagnostics the Biome LSP surfaces for files you have edited.
|
|
60
52
|
|
|
61
53
|
## License
|
|
62
54
|
|
package/bin/savvy-mcp.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { SilkRuntimeLive } from "../runtime.js";
|
|
3
|
-
import { loadManifest, readDocBody, resolveContentRoot } from "../resources/load.js";
|
|
4
3
|
import { startMcpServer } from "../server.js";
|
|
5
|
-
import { DocIndex } from "../resources/doc-index.js";
|
|
6
4
|
import { Layer, ManagedRuntime } from "effect";
|
|
7
5
|
import { NodeContext } from "@effect/platform-node";
|
|
8
6
|
|
|
@@ -23,16 +21,9 @@ function resolveProjectDir() {
|
|
|
23
21
|
async function main() {
|
|
24
22
|
const cwd = resolveProjectDir();
|
|
25
23
|
const appLayer = SilkRuntimeLive.pipe(Layer.provide(NodeContext.layer));
|
|
26
|
-
const runtime = ManagedRuntime.make(appLayer);
|
|
27
|
-
const contentRoot = resolveContentRoot();
|
|
28
|
-
const manifest = loadManifest(contentRoot);
|
|
29
|
-
const bodies = Object.fromEntries(manifest.entries.map((e) => [e.uri, readDocBody(contentRoot, e.uri.replace(/^silk:\/\//, ""))]));
|
|
30
24
|
const ctx = {
|
|
31
|
-
runtime,
|
|
32
|
-
cwd
|
|
33
|
-
docIndex: DocIndex.fromManifest(manifest, bodies),
|
|
34
|
-
manifest,
|
|
35
|
-
contentRoot
|
|
25
|
+
runtime: ManagedRuntime.make(appLayer),
|
|
26
|
+
cwd
|
|
36
27
|
};
|
|
37
28
|
process.stderr.write(`[savvy-mcp] starting in ${cwd}\n`);
|
|
38
29
|
await startMcpServer(ctx);
|
package/index.d.ts
CHANGED
|
@@ -1,110 +1,27 @@
|
|
|
1
1
|
import { Changesets, SilkWorkspaceAnalyzer, Turbo } from "@savvy-web/silk-effects";
|
|
2
|
-
import { Layer, ManagedRuntime
|
|
2
|
+
import { Layer, ManagedRuntime } from "effect";
|
|
3
3
|
import { WorkspaceDiscoveryError, WorkspaceRoot } from "workspaces-effect";
|
|
4
|
-
//#region src/resources/schema.d.ts
|
|
5
|
-
/** A manifest entry = decoded front-matter + the derived uri + lastModified. */
|
|
6
|
-
declare const ManifestEntry: Schema.Struct<{
|
|
7
|
-
id: Schema.filter<typeof Schema.String>;
|
|
8
|
-
title: typeof Schema.NonEmptyString;
|
|
9
|
-
summary: typeof Schema.NonEmptyString;
|
|
10
|
-
tier: Schema.Literal<["standards", "packages", "guides"]>;
|
|
11
|
-
source: Schema.Literal<["hand", "generated"]>;
|
|
12
|
-
status: Schema.optionalWith<Schema.Literal<["draft", "stable", "deprecated"]>, {
|
|
13
|
-
default: () => "stable";
|
|
14
|
-
}>;
|
|
15
|
-
supersededBy: Schema.optional<typeof Schema.String>;
|
|
16
|
-
tags: Schema.Array$<typeof Schema.NonEmptyString>;
|
|
17
|
-
audience: Schema.optionalWith<Schema.Array$<Schema.Literal<["user", "assistant"]>>, {
|
|
18
|
-
default: () => ReadonlyArray<"assistant">;
|
|
19
|
-
}>;
|
|
20
|
-
priority: Schema.optionalWith<Schema.filter<typeof Schema.Number>, {
|
|
21
|
-
default: () => number;
|
|
22
|
-
}>;
|
|
23
|
-
related: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
24
|
-
default: () => ReadonlyArray<string>;
|
|
25
|
-
}>;
|
|
26
|
-
uri: typeof Schema.String;
|
|
27
|
-
lastModified: Schema.optional<typeof Schema.String>;
|
|
28
|
-
}>;
|
|
29
|
-
type ManifestEntry = Schema.Schema.Type<typeof ManifestEntry>;
|
|
30
|
-
declare const Manifest: Schema.Struct<{
|
|
31
|
-
entries: Schema.Array$<Schema.Struct<{
|
|
32
|
-
id: Schema.filter<typeof Schema.String>;
|
|
33
|
-
title: typeof Schema.NonEmptyString;
|
|
34
|
-
summary: typeof Schema.NonEmptyString;
|
|
35
|
-
tier: Schema.Literal<["standards", "packages", "guides"]>;
|
|
36
|
-
source: Schema.Literal<["hand", "generated"]>;
|
|
37
|
-
status: Schema.optionalWith<Schema.Literal<["draft", "stable", "deprecated"]>, {
|
|
38
|
-
default: () => "stable";
|
|
39
|
-
}>;
|
|
40
|
-
supersededBy: Schema.optional<typeof Schema.String>;
|
|
41
|
-
tags: Schema.Array$<typeof Schema.NonEmptyString>;
|
|
42
|
-
audience: Schema.optionalWith<Schema.Array$<Schema.Literal<["user", "assistant"]>>, {
|
|
43
|
-
default: () => ReadonlyArray<"assistant">;
|
|
44
|
-
}>;
|
|
45
|
-
priority: Schema.optionalWith<Schema.filter<typeof Schema.Number>, {
|
|
46
|
-
default: () => number;
|
|
47
|
-
}>;
|
|
48
|
-
related: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
49
|
-
default: () => ReadonlyArray<string>;
|
|
50
|
-
}>;
|
|
51
|
-
uri: typeof Schema.String;
|
|
52
|
-
lastModified: Schema.optional<typeof Schema.String>;
|
|
53
|
-
}>>;
|
|
54
|
-
}>;
|
|
55
|
-
type Manifest = Schema.Schema.Type<typeof Manifest>;
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region src/resources/doc-index.d.ts
|
|
58
|
-
interface SearchResult {
|
|
59
|
-
readonly uri: string;
|
|
60
|
-
readonly title: string;
|
|
61
|
-
readonly summary: string;
|
|
62
|
-
readonly tags: ReadonlyArray<string>;
|
|
63
|
-
readonly tier: ManifestEntry["tier"];
|
|
64
|
-
readonly confidence: number;
|
|
65
|
-
readonly confidenceLabel: "high" | "medium" | "low";
|
|
66
|
-
readonly matchedOn: ReadonlyArray<string>;
|
|
67
|
-
readonly related: ReadonlyArray<string>;
|
|
68
|
-
}
|
|
69
|
-
interface SearchOptions {
|
|
70
|
-
readonly limit?: number;
|
|
71
|
-
readonly tier?: ManifestEntry["tier"];
|
|
72
|
-
}
|
|
73
|
-
declare class DocIndex {
|
|
74
|
-
private readonly fuse;
|
|
75
|
-
private readonly entries;
|
|
76
|
-
private readonly byUri;
|
|
77
|
-
private constructor();
|
|
78
|
-
static fromManifest(manifest: Manifest, bodies: Readonly<Record<string, string>>): DocIndex;
|
|
79
|
-
search(query: string, opts?: SearchOptions): SearchResult[];
|
|
80
|
-
/** Browse fallback: surface the top entries (by priority) as low-confidence. */
|
|
81
|
-
private fallback;
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
4
|
//#region src/context.d.ts
|
|
85
|
-
/** The long-lived runtime
|
|
5
|
+
/** The long-lived runtime and the project working directory. */
|
|
86
6
|
interface McpContext {
|
|
87
|
-
readonly runtime: ManagedRuntime.ManagedRuntime<SilkWorkspaceAnalyzer | WorkspaceRoot | Turbo.TurboInspector | Changesets.BranchAnalyzer | Changesets.ConfigInspector | Changesets.ReleasePlanner, WorkspaceDiscoveryError>;
|
|
7
|
+
readonly runtime: ManagedRuntime.ManagedRuntime<SilkWorkspaceAnalyzer | WorkspaceRoot | Turbo.TurboInspector | Changesets.BranchAnalyzer | Changesets.ConfigInspector | Changesets.ReleasePlanner | Changesets.DepsRegen, WorkspaceDiscoveryError>;
|
|
88
8
|
readonly cwd: string;
|
|
89
|
-
readonly docIndex: DocIndex;
|
|
90
|
-
readonly manifest: Manifest;
|
|
91
|
-
readonly contentRoot: string;
|
|
92
9
|
}
|
|
93
10
|
//#endregion
|
|
94
11
|
//#region src/runtime.d.ts
|
|
95
12
|
/**
|
|
96
13
|
* The MCP runtime layer. Provides `SilkWorkspaceAnalyzer`, `WorkspaceRoot`,
|
|
97
14
|
* `Turbo.TurboInspector`, `Changesets.BranchAnalyzer`,
|
|
98
|
-
* `Changesets.ConfigInspector`,
|
|
99
|
-
* `CommandExecutor` + `FileSystem` + `Path`
|
|
100
|
-
* (`NodeContext.layer` in bin.ts).
|
|
15
|
+
* `Changesets.ConfigInspector`, `Changesets.ReleasePlanner`, and
|
|
16
|
+
* `Changesets.DepsRegen`; requires `CommandExecutor` + `FileSystem` + `Path`
|
|
17
|
+
* from the host's platform layer (`NodeContext.layer` in bin.ts).
|
|
101
18
|
*
|
|
102
19
|
* `TurboInspectorLive` is fed its own `ToolDiscoveryLive`, whose
|
|
103
20
|
* `PackageManagerDetector` + `WorkspaceRoot` requirements are satisfied by
|
|
104
21
|
* {@link DepsLive}; the leftover `CommandExecutor` + `FileSystem` flow up to the
|
|
105
22
|
* host platform layer.
|
|
106
23
|
*/
|
|
107
|
-
declare const SilkRuntimeLive: Layer.Layer<Changesets.BranchAnalyzer | Changesets.ConfigInspector | Changesets.ReleasePlanner | import("@savvy-web/silk-effects").SilkWorkspaceAnalyzer | Turbo.TurboInspector | import("workspaces-effect").WorkspaceRoot, import("workspaces-effect").WorkspaceDiscoveryError, import("@effect/platform/CommandExecutor").CommandExecutor | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path>;
|
|
24
|
+
declare const SilkRuntimeLive: Layer.Layer<Changesets.BranchAnalyzer | Changesets.ConfigInspector | Changesets.DepsRegen | Changesets.ReleasePlanner | import("@savvy-web/silk-effects").SilkWorkspaceAnalyzer | Turbo.TurboInspector | import("workspaces-effect").WorkspaceRoot, import("workspaces-effect").WorkspaceDiscoveryError, import("@effect/platform/CommandExecutor").CommandExecutor | import("@effect/platform/FileSystem").FileSystem | import("@effect/platform/Path").Path>;
|
|
108
25
|
//#endregion
|
|
109
26
|
//#region src/server.d.ts
|
|
110
27
|
/** Build the server and connect it over stdio. */
|
|
@@ -120,5 +37,5 @@ declare function startMcpServer(ctx: McpContext): Promise<void>;
|
|
|
120
37
|
*/
|
|
121
38
|
declare const CURRENT_MCP_VERSION = "0.0.0";
|
|
122
39
|
//#endregion
|
|
123
|
-
export { CURRENT_MCP_VERSION, type
|
|
40
|
+
export { CURRENT_MCP_VERSION, type McpContext, SilkRuntimeLive, startMcpServer };
|
|
124
41
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The savvy MCP server — Silk Suite tooling and library knowledge for coding agents",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/mcp",
|
|
@@ -36,9 +36,8 @@
|
|
|
36
36
|
"@effect/rpc": "^0.75.1",
|
|
37
37
|
"@effect/sql": "^0.51.1",
|
|
38
38
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
39
|
-
"@savvy-web/silk-effects": "1.
|
|
39
|
+
"@savvy-web/silk-effects": "1.6.0",
|
|
40
40
|
"effect": "^3.21.4",
|
|
41
|
-
"fuse.js": "^7.4.0",
|
|
42
41
|
"workspaces-effect": "^1.2.0",
|
|
43
42
|
"zod": "^4.4.3"
|
|
44
43
|
}
|
package/runtime.js
CHANGED
|
@@ -24,18 +24,36 @@ import { WorkspaceRootLive, WorkspacesLive } from "workspaces-effect";
|
|
|
24
24
|
const DepsLive = Layer.mergeAll(WorkspacesLive, ChangesetConfigReaderLive, TagStrategyLive, VersioningStrategyLive.pipe(Layer.provide(ChangesetConfigReaderLive)));
|
|
25
25
|
const InspectorAndAnalyzerLive = Changesets.BranchAnalyzerLive.pipe(Layer.provideMerge(Changesets.ReleasePlannerLive), Layer.provideMerge(Changesets.ConfigInspectorLive));
|
|
26
26
|
/**
|
|
27
|
+
* `Changesets.DepsRegen` (the `changeset_deps_detect` / `changeset_deps_regen`
|
|
28
|
+
* orchestration service), fully composed except for the services supplied by
|
|
29
|
+
* {@link DepsLive} / the host platform layer.
|
|
30
|
+
*
|
|
31
|
+
* `DepsRegenLive` requires `WorkspaceSnapshotReader | ConfigInspector |
|
|
32
|
+
* WorkspaceDiscovery | CatalogResolver | PublishabilityDetector`. Here
|
|
33
|
+
* `ConfigInspector` is provided via the shared {@link InspectorAndAnalyzerLive}
|
|
34
|
+
* reference (so Effect memoizes the single `ConfigInspector` instance already
|
|
35
|
+
* merged into the runtime), and `WorkspaceSnapshotReader` via the
|
|
36
|
+
* dependency-free {@link Changesets.WorkspaceSnapshotReaderLive}. The remaining
|
|
37
|
+
* three — `WorkspaceDiscovery`, `CatalogResolver`, `PublishabilityDetector` —
|
|
38
|
+
* are left open and satisfied by `WorkspacesLive` inside {@link DepsLive}
|
|
39
|
+
* (unlike the CLI, whose minimal workspace trio has to compose
|
|
40
|
+
* `CatalogResolverLive`/`PublishabilityDetectorLive` by hand). `FileSystem` /
|
|
41
|
+
* `Path` / `CommandExecutor` flow up to the host `NodeContext.layer`.
|
|
42
|
+
*/
|
|
43
|
+
const DepsRegenGroupLive = Changesets.DepsRegenLive.pipe(Layer.provide(InspectorAndAnalyzerLive), Layer.provide(Changesets.WorkspaceSnapshotReaderLive));
|
|
44
|
+
/**
|
|
27
45
|
* The MCP runtime layer. Provides `SilkWorkspaceAnalyzer`, `WorkspaceRoot`,
|
|
28
46
|
* `Turbo.TurboInspector`, `Changesets.BranchAnalyzer`,
|
|
29
|
-
* `Changesets.ConfigInspector`,
|
|
30
|
-
* `CommandExecutor` + `FileSystem` + `Path`
|
|
31
|
-
* (`NodeContext.layer` in bin.ts).
|
|
47
|
+
* `Changesets.ConfigInspector`, `Changesets.ReleasePlanner`, and
|
|
48
|
+
* `Changesets.DepsRegen`; requires `CommandExecutor` + `FileSystem` + `Path`
|
|
49
|
+
* from the host's platform layer (`NodeContext.layer` in bin.ts).
|
|
32
50
|
*
|
|
33
51
|
* `TurboInspectorLive` is fed its own `ToolDiscoveryLive`, whose
|
|
34
52
|
* `PackageManagerDetector` + `WorkspaceRoot` requirements are satisfied by
|
|
35
53
|
* {@link DepsLive}; the leftover `CommandExecutor` + `FileSystem` flow up to the
|
|
36
54
|
* host platform layer.
|
|
37
55
|
*/
|
|
38
|
-
const SilkRuntimeLive = Layer.mergeAll(SilkWorkspaceAnalyzerLive, WorkspaceRootLive, Turbo.TurboInspectorLive.pipe(Layer.provide(ToolDiscoveryLive)), InspectorAndAnalyzerLive).pipe(Layer.provide(DepsLive));
|
|
56
|
+
const SilkRuntimeLive = Layer.mergeAll(SilkWorkspaceAnalyzerLive, WorkspaceRootLive, Turbo.TurboInspectorLive.pipe(Layer.provide(ToolDiscoveryLive)), InspectorAndAnalyzerLive, DepsRegenGroupLive).pipe(Layer.provide(DepsLive));
|
|
39
57
|
|
|
40
58
|
//#endregion
|
|
41
59
|
export { SilkRuntimeLive };
|
package/server.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { registerAllResources } from "./resources/index.js";
|
|
2
|
-
import { stderrQueryLogger } from "./resources/query-log.js";
|
|
3
1
|
import { effectToZodSchema } from "./schema/effect-to-zod.js";
|
|
4
2
|
import { BiomeCheckAsMarkdown, BiomeCheckResult, runBiomeCheck } from "./tools/biome-check.js";
|
|
3
|
+
import { ChangesetDepsDetectAsMarkdown, ChangesetDepsDetectResult, changesetDepsDetect } from "./tools/changeset-deps-detect.js";
|
|
4
|
+
import { ChangesetDepsRegenAsMarkdown, ChangesetDepsRegenResult, changesetDepsRegen } from "./tools/changeset-deps-regen.js";
|
|
5
5
|
import { ChangesetInspectAsMarkdown, ChangesetInspectResult, changesetInspect } from "./tools/changeset-inspect.js";
|
|
6
6
|
import { ChangesetPreviewAsMarkdown, ChangesetPreviewResult, changesetPreview } from "./tools/changeset-preview.js";
|
|
7
7
|
import { ChangesetValidateAsMarkdown, ChangesetValidateResult, changesetValidate } from "./tools/changeset-validate.js";
|
|
8
|
-
import { DocsSearchResult, DocsSearchResultAsMarkdown, runDocsSearch } from "./tools/docs-search.js";
|
|
9
8
|
import { TurboInspectAsMarkdown, TurboInspectResult, turboInspect } from "./tools/turbo-inspect.js";
|
|
10
9
|
import { WorkspaceInfoAsMarkdown, WorkspaceInfoResult, workspaceInfo } from "./tools/workspace-info.js";
|
|
11
10
|
import { CURRENT_MCP_VERSION } from "./version.js";
|
|
@@ -16,8 +15,8 @@ import { z } from "zod";
|
|
|
16
15
|
|
|
17
16
|
//#region src/server.ts
|
|
18
17
|
/**
|
|
19
|
-
* Constructs the MCP server, registers tools
|
|
20
|
-
*
|
|
18
|
+
* Constructs the MCP server, registers tools, and connects the stdio
|
|
19
|
+
* transport.
|
|
21
20
|
*
|
|
22
21
|
* @packageDocumentation
|
|
23
22
|
*/
|
|
@@ -29,7 +28,7 @@ const structuredResult = (text, structured) => ({
|
|
|
29
28
|
}],
|
|
30
29
|
structuredContent: structured
|
|
31
30
|
});
|
|
32
|
-
/** Build the MCP server for the given context, registering tools
|
|
31
|
+
/** Build the MCP server for the given context, registering tools. */
|
|
33
32
|
function buildServer(ctx) {
|
|
34
33
|
const server = new McpServer({
|
|
35
34
|
name: "savvy-mcp",
|
|
@@ -44,26 +43,6 @@ function buildServer(ctx) {
|
|
|
44
43
|
const data = await ctx.runtime.runPromise(workspaceInfo(root));
|
|
45
44
|
return structuredResult(Schema.decodeSync(WorkspaceInfoAsMarkdown)(data), data);
|
|
46
45
|
});
|
|
47
|
-
server.registerTool("silk_docs_search", {
|
|
48
|
-
description: "Search Silk documentation by intent. Pass plain keywords or a short phrase describing what you need (e.g. 'changeset bump rules'). Returns ranked docs with a confidence label; fetch a hit with resources/read <uri>. Read silk://catalog first to orient.",
|
|
49
|
-
inputSchema: {
|
|
50
|
-
query: z.string().describe("Keywords or a short phrase describing the doc you need."),
|
|
51
|
-
limit: z.optional(z.number()).describe("Max results (default 10)."),
|
|
52
|
-
tier: z.optional(z.enum([
|
|
53
|
-
"standards",
|
|
54
|
-
"packages",
|
|
55
|
-
"guides"
|
|
56
|
-
])).describe("Restrict to one tier.")
|
|
57
|
-
},
|
|
58
|
-
outputSchema: effectToZodSchema(DocsSearchResult),
|
|
59
|
-
annotations: { readOnlyHint: true }
|
|
60
|
-
}, async (args) => {
|
|
61
|
-
const data = runDocsSearch(ctx.docIndex, args.query, {
|
|
62
|
-
...args.limit !== void 0 ? { limit: args.limit } : {},
|
|
63
|
-
...args.tier !== void 0 ? { tier: args.tier } : {}
|
|
64
|
-
}, stderrQueryLogger);
|
|
65
|
-
return structuredResult(Schema.decodeSync(DocsSearchResultAsMarkdown)(data), data);
|
|
66
|
-
});
|
|
67
46
|
server.registerTool("turbo_inspect", {
|
|
68
47
|
description: "Read-only Turborepo inspection. mode=cache diagnoses why a task's cache is hitting/missing (per-package status plus the exact hash contributors: input files, env vars, external-dep hashes, global hash). mode=graph returns the task graph and critical path. mode=affected lists changed packages and their dependents. Never executes tasks (uses --dry).",
|
|
69
48
|
inputSchema: {
|
|
@@ -112,6 +91,19 @@ function buildServer(ctx) {
|
|
|
112
91
|
const data = await ctx.runtime.runPromise(changesetValidate(args, ctx.cwd));
|
|
113
92
|
return structuredResult(Schema.decodeSync(ChangesetValidateAsMarkdown)(data), data);
|
|
114
93
|
});
|
|
94
|
+
server.registerTool("changeset_deps_detect", {
|
|
95
|
+
description: "Read-only preview of the cumulative dependency diff (merge-base -> working tree) per workspace package. Returns each affected package's resolved dependency-table rows (catalog:/workspace: specifiers resolved to concrete versions; devDependencies retained) as the exact rows a pure-dependency changeset would carry. Does NOT write or delete any file. Prefer this over shelling out to savvy changeset deps detect.",
|
|
96
|
+
inputSchema: {
|
|
97
|
+
base: z.optional(z.string()).describe("Override the base branch used to compute the merge-base."),
|
|
98
|
+
package: z.optional(z.string()).describe("Restrict output to a single workspace package."),
|
|
99
|
+
cwd: z.optional(z.string()).describe("Directory to resolve the workspace root from.")
|
|
100
|
+
},
|
|
101
|
+
outputSchema: effectToZodSchema(ChangesetDepsDetectResult),
|
|
102
|
+
annotations: { readOnlyHint: true }
|
|
103
|
+
}, async (args) => {
|
|
104
|
+
const data = await ctx.runtime.runPromise(changesetDepsDetect(args, ctx.cwd));
|
|
105
|
+
return structuredResult(Schema.decodeSync(ChangesetDepsDetectAsMarkdown)(data), data);
|
|
106
|
+
});
|
|
115
107
|
server.registerTool("changeset_preview", {
|
|
116
108
|
description: "Read-only preview of the next release. Runs the genuine changesets engine over the pending changesets and returns each package's version bump (old -> new) plus the rendered CHANGELOG block (dependency tables included), exactly as it would ship. Does not modify the repo. Prefer this over hand-merging changeset files.",
|
|
117
109
|
inputSchema: { cwd: z.optional(z.string()).describe("Directory to resolve the workspace root from.") },
|
|
@@ -121,6 +113,23 @@ function buildServer(ctx) {
|
|
|
121
113
|
const data = await ctx.runtime.runPromise(changesetPreview(args, ctx.cwd));
|
|
122
114
|
return structuredResult(Schema.decodeSync(ChangesetPreviewAsMarkdown)(data), data);
|
|
123
115
|
});
|
|
116
|
+
server.registerTool("changeset_deps_regen", {
|
|
117
|
+
description: "Regenerate pure-dependency changesets: delete stale single-package Dependencies-only changesets and write fresh single-package, patch-bump changesets from the cumulative dependency diff (catalog:/workspace: resolved; devDependencies dropped). Mixed changesets (Dependencies plus other content) are left untouched. Set dryRun=true to preview the plan without touching the filesystem. NOTE: without dryRun this tool MUTATES .changeset/*.md (git-reversible). Prefer this over shelling out to savvy changeset deps regen.",
|
|
118
|
+
inputSchema: {
|
|
119
|
+
base: z.optional(z.string()).describe("Override the base branch used to compute the merge-base."),
|
|
120
|
+
package: z.optional(z.string()).describe("Restrict regeneration to a single workspace package."),
|
|
121
|
+
dryRun: z.optional(z.boolean()).describe("Compute the plan without writing or deleting any file."),
|
|
122
|
+
cwd: z.optional(z.string()).describe("Directory to resolve the workspace root from.")
|
|
123
|
+
},
|
|
124
|
+
outputSchema: effectToZodSchema(ChangesetDepsRegenResult),
|
|
125
|
+
annotations: {
|
|
126
|
+
destructiveHint: true,
|
|
127
|
+
idempotentHint: false
|
|
128
|
+
}
|
|
129
|
+
}, async (args) => {
|
|
130
|
+
const data = await ctx.runtime.runPromise(changesetDepsRegen(args, ctx.cwd));
|
|
131
|
+
return structuredResult(Schema.decodeSync(ChangesetDepsRegenAsMarkdown)(data), data);
|
|
132
|
+
});
|
|
124
133
|
server.registerTool("biome_check", {
|
|
125
134
|
description: "Run Biome over a path and get structured diagnostics back. mode=check (default; lint + format + organize-imports) or mode=lint. Set write=true to apply safe fixes (--write), unsafe=true for unsafe fixes (--write --unsafe). Prefer this over shelling out to biome; the LSP already covers files you've edited. Returns markdown in content[] and a typed object in structuredContent. NOTE: with write/unsafe this tool MUTATES files (git-reversible).",
|
|
126
135
|
inputSchema: {
|
|
@@ -135,10 +144,6 @@ function buildServer(ctx) {
|
|
|
135
144
|
const data = await runBiomeCheck(args, ctx.cwd);
|
|
136
145
|
return structuredResult(Schema.decodeSync(BiomeCheckAsMarkdown)(data), data);
|
|
137
146
|
});
|
|
138
|
-
registerAllResources(server, {
|
|
139
|
-
manifest: ctx.manifest,
|
|
140
|
-
contentRoot: ctx.contentRoot
|
|
141
|
-
});
|
|
142
147
|
return server;
|
|
143
148
|
}
|
|
144
149
|
/** Build the server and connect it over stdio. */
|
package/tools/biome-check.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Lint } from "@savvy-web/silk-effects";
|
|
2
2
|
import { ParseResult, Schema } from "effect";
|
|
3
|
+
import { spawnSync } from "node:child_process";
|
|
3
4
|
import { realpathSync } from "node:fs";
|
|
4
5
|
import { relative, resolve, sep } from "node:path";
|
|
5
|
-
import { spawnSync } from "node:child_process";
|
|
6
6
|
|
|
7
7
|
//#region src/tools/biome-check.ts
|
|
8
8
|
/**
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Changesets } from "@savvy-web/silk-effects";
|
|
2
|
+
import { Effect, ParseResult, Schema } from "effect";
|
|
3
|
+
import { WorkspaceRoot } from "workspaces-effect";
|
|
4
|
+
|
|
5
|
+
//#region src/tools/changeset-deps-detect.ts
|
|
6
|
+
/**
|
|
7
|
+
* The `changeset_deps_detect` MCP tool: a read-only preview of the cumulative
|
|
8
|
+
* dependency diff (merge-base → working tree) over silk-effects'
|
|
9
|
+
* `Changesets.DepsRegen.plan`. Returns one entry per affected workspace package
|
|
10
|
+
* — its resolved dependency-table rows (devDependencies retained) — plus a
|
|
11
|
+
* one-way markdown transform. Read-only: no changeset file is written or
|
|
12
|
+
* deleted.
|
|
13
|
+
*
|
|
14
|
+
* @packageDocumentation
|
|
15
|
+
*/
|
|
16
|
+
/** One affected workspace package's resolved dependency diff. */
|
|
17
|
+
const ChangesetDepsDetectPackage = Schema.Struct({
|
|
18
|
+
package: Schema.String,
|
|
19
|
+
relativePath: Schema.String,
|
|
20
|
+
rows: Schema.Array(Changesets.DependencyTableRowSchema)
|
|
21
|
+
}).annotations({ identifier: "ChangesetDepsDetectPackage" });
|
|
22
|
+
/** The `changeset_deps_detect` tool result. */
|
|
23
|
+
const ChangesetDepsDetectResult = Schema.Struct({
|
|
24
|
+
root: Schema.String,
|
|
25
|
+
packages: Schema.Array(ChangesetDepsDetectPackage)
|
|
26
|
+
}).annotations({
|
|
27
|
+
identifier: "ChangesetDepsDetectResult",
|
|
28
|
+
title: "changeset_deps_detect result",
|
|
29
|
+
description: "Read-only per-package dependency diff (devDependencies retained). No files are written."
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* Render a repo-derived value as an inert markdown code span so a crafted path,
|
|
33
|
+
* package, or dependency name cannot inject markdown structure into the
|
|
34
|
+
* transcript an agent reads. Control characters (which would break table rows
|
|
35
|
+
* and headings) are flattened to spaces, table-cell pipes are escaped, and the
|
|
36
|
+
* span is fenced with a backtick run longer than any in the value — CommonMark
|
|
37
|
+
* forbids backslash-escaping a backtick inside a code span.
|
|
38
|
+
*/
|
|
39
|
+
const mdInline = (value) => {
|
|
40
|
+
const safe = value.replace(/\p{Cc}/gu, " ").replace(/\\/g, "\\\\").replace(/\|/g, "\\|");
|
|
41
|
+
const longest = safe.match(/`+/g)?.reduce((m, run) => Math.max(m, run.length), 0) ?? 0;
|
|
42
|
+
const fence = "`".repeat(longest + 1);
|
|
43
|
+
const pad = safe.startsWith("`") || safe.endsWith("`") || safe.trim() === "" ? " " : "";
|
|
44
|
+
return `${fence}${pad}${safe}${pad}${fence}`;
|
|
45
|
+
};
|
|
46
|
+
/** Render the structured result as a markdown transcript. */
|
|
47
|
+
const renderMarkdown = (data) => {
|
|
48
|
+
if (data.packages.length === 0) return `# changeset deps detect — ${mdInline(data.root)}\n\nNo dependency changes detected.`;
|
|
49
|
+
const lines = [`# changeset deps detect — ${mdInline(data.root)}`, ``];
|
|
50
|
+
for (const pkg of data.packages) {
|
|
51
|
+
lines.push(`## ${mdInline(pkg.package)} — ${mdInline(pkg.relativePath)}`, ``);
|
|
52
|
+
lines.push(`| Dependency | Type | Action | From | To |`, `| --- | --- | --- | --- | --- |`);
|
|
53
|
+
for (const r of pkg.rows) lines.push(`| ${mdInline(r.dependency)} | ${r.type} | ${r.action} | ${mdInline(r.from)} | ${mdInline(r.to)} |`);
|
|
54
|
+
lines.push(``);
|
|
55
|
+
}
|
|
56
|
+
return lines.join("\n").trimEnd();
|
|
57
|
+
};
|
|
58
|
+
/** One-way transform: result to markdown. Encoding back is forbidden. */
|
|
59
|
+
const ChangesetDepsDetectAsMarkdown = Schema.transformOrFail(ChangesetDepsDetectResult, Schema.String, {
|
|
60
|
+
strict: true,
|
|
61
|
+
decode: (data) => ParseResult.succeed(renderMarkdown(data)),
|
|
62
|
+
encode: (text, _options, ast) => ParseResult.fail(new ParseResult.Forbidden(ast, text, "ChangesetDepsDetectAsMarkdown is one-way: markdown cannot be parsed back."))
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* Effect handler: resolve the workspace root, then compute the cumulative
|
|
66
|
+
* dependency diff via {@link Changesets.DepsRegen.plan} with `includeDevDeps`
|
|
67
|
+
* so devDependency rows are retained. Maps `plan.toWrite` into the structured
|
|
68
|
+
* result. No filesystem mutation happens (no `execute`).
|
|
69
|
+
*/
|
|
70
|
+
const changesetDepsDetect = (args, fallbackCwd) => Effect.gen(function* () {
|
|
71
|
+
const root = yield* (yield* WorkspaceRoot).find(args.cwd ?? fallbackCwd);
|
|
72
|
+
return {
|
|
73
|
+
root,
|
|
74
|
+
packages: (yield* (yield* Changesets.DepsRegen).plan({
|
|
75
|
+
cwd: root,
|
|
76
|
+
includeDevDeps: true,
|
|
77
|
+
...args.base ? { base: args.base } : {},
|
|
78
|
+
...args.package ? { package: args.package } : {}
|
|
79
|
+
})).toWrite.map((entry) => ({
|
|
80
|
+
package: entry.diff.package,
|
|
81
|
+
relativePath: entry.diff.relativePath,
|
|
82
|
+
rows: entry.diff.rows
|
|
83
|
+
}))
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
//#endregion
|
|
88
|
+
export { ChangesetDepsDetectAsMarkdown, ChangesetDepsDetectPackage, ChangesetDepsDetectResult, changesetDepsDetect };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Changesets } from "@savvy-web/silk-effects";
|
|
2
|
+
import { Effect, ParseResult, Schema } from "effect";
|
|
3
|
+
import { WorkspaceRoot } from "workspaces-effect";
|
|
4
|
+
|
|
5
|
+
//#region src/tools/changeset-deps-regen.ts
|
|
6
|
+
/**
|
|
7
|
+
* The `changeset_deps_regen` MCP tool: delete stale pure-dependency changesets
|
|
8
|
+
* and write fresh single-package, patch-bump changesets from the cumulative
|
|
9
|
+
* dependency diff, over silk-effects' `Changesets.DepsRegen`. Mutating (writes
|
|
10
|
+
* and deletes `.changeset/*.md`) unless `dryRun` is set. The second mutating
|
|
11
|
+
* tool after `biome_check`; no `readOnlyHint`.
|
|
12
|
+
*
|
|
13
|
+
* @packageDocumentation
|
|
14
|
+
*/
|
|
15
|
+
/** The `changeset_deps_regen` tool result. */
|
|
16
|
+
const ChangesetDepsRegenResult = Schema.Struct({
|
|
17
|
+
root: Schema.String,
|
|
18
|
+
deleted: Schema.Array(Schema.String),
|
|
19
|
+
written: Schema.Array(Schema.String),
|
|
20
|
+
skippedMixed: Schema.Array(Schema.String),
|
|
21
|
+
dryRun: Schema.Boolean
|
|
22
|
+
}).annotations({
|
|
23
|
+
identifier: "ChangesetDepsRegenResult",
|
|
24
|
+
title: "changeset_deps_regen result",
|
|
25
|
+
description: "Regenerated pure-dependency changesets. Mutates .changeset/*.md unless dryRun is set."
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Render a repo-derived value (path) as an inert markdown code span. Control
|
|
29
|
+
* characters are flattened to spaces and the span is fenced with a backtick run
|
|
30
|
+
* longer than any in the value — CommonMark forbids backslash-escaping a
|
|
31
|
+
* backtick inside a code span.
|
|
32
|
+
*/
|
|
33
|
+
const mdInline = (value) => {
|
|
34
|
+
const safe = value.replace(/\p{Cc}/gu, " ");
|
|
35
|
+
const longest = safe.match(/`+/g)?.reduce((m, run) => Math.max(m, run.length), 0) ?? 0;
|
|
36
|
+
const fence = "`".repeat(longest + 1);
|
|
37
|
+
const pad = safe.startsWith("`") || safe.endsWith("`") || safe.trim() === "" ? " " : "";
|
|
38
|
+
return `${fence}${pad}${safe}${pad}${fence}`;
|
|
39
|
+
};
|
|
40
|
+
/** Render the structured result as a markdown transcript. */
|
|
41
|
+
const renderMarkdown = (data) => {
|
|
42
|
+
const heading = `# changeset deps regen — ${mdInline(data.root)}${data.dryRun ? " (dry run)" : ""}`;
|
|
43
|
+
if (data.deleted.length === 0 && data.written.length === 0 && data.skippedMixed.length === 0) return `${heading}\n\nNo dependency changes to regenerate.`;
|
|
44
|
+
const lines = [heading, ``];
|
|
45
|
+
const verb = data.dryRun ? "Would delete" : "Deleted";
|
|
46
|
+
if (data.deleted.length > 0) {
|
|
47
|
+
lines.push(`${verb} ${data.deleted.length} pure dependency changeset(s):`);
|
|
48
|
+
for (const file of data.deleted) lines.push(`- ${mdInline(file)}`);
|
|
49
|
+
lines.push(``);
|
|
50
|
+
}
|
|
51
|
+
if (data.written.length > 0) {
|
|
52
|
+
lines.push(`${data.dryRun ? "Would write" : "Wrote"} ${data.written.length} fresh dependency changeset(s):`);
|
|
53
|
+
for (const file of data.written) lines.push(`- ${mdInline(file)}`);
|
|
54
|
+
lines.push(``);
|
|
55
|
+
}
|
|
56
|
+
if (data.skippedMixed.length > 0) {
|
|
57
|
+
lines.push(`Skipped ${data.skippedMixed.length} mixed changeset(s):`);
|
|
58
|
+
for (const file of data.skippedMixed) lines.push(`- ${mdInline(file)}`);
|
|
59
|
+
}
|
|
60
|
+
return lines.join("\n").trimEnd();
|
|
61
|
+
};
|
|
62
|
+
/** One-way transform: result to markdown. Encoding back is forbidden. */
|
|
63
|
+
const ChangesetDepsRegenAsMarkdown = Schema.transformOrFail(ChangesetDepsRegenResult, Schema.String, {
|
|
64
|
+
strict: true,
|
|
65
|
+
decode: (data) => ParseResult.succeed(renderMarkdown(data)),
|
|
66
|
+
encode: (text, _options, ast) => ParseResult.fail(new ParseResult.Forbidden(ast, text, "ChangesetDepsRegenAsMarkdown is one-way: markdown cannot be parsed back."))
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* Effect handler: resolve the workspace root, compute a {@link Changesets.RegenPlan}
|
|
70
|
+
* via {@link Changesets.DepsRegen.plan}, then — unless `dryRun` — apply it via
|
|
71
|
+
* `execute`. On a dry run the reported `deleted`/`written` reflect the plan's
|
|
72
|
+
* intended files without touching the filesystem.
|
|
73
|
+
*/
|
|
74
|
+
const changesetDepsRegen = (args, fallbackCwd) => Effect.gen(function* () {
|
|
75
|
+
const root = yield* (yield* WorkspaceRoot).find(args.cwd ?? fallbackCwd);
|
|
76
|
+
const service = yield* Changesets.DepsRegen;
|
|
77
|
+
const plan = yield* service.plan({
|
|
78
|
+
cwd: root,
|
|
79
|
+
...args.base ? { base: args.base } : {},
|
|
80
|
+
...args.package ? { package: args.package } : {}
|
|
81
|
+
});
|
|
82
|
+
if (args.dryRun === true) return {
|
|
83
|
+
root,
|
|
84
|
+
deleted: plan.toDelete.map((entry) => entry.file),
|
|
85
|
+
written: plan.toWrite.map((entry) => entry.file),
|
|
86
|
+
skippedMixed: [...plan.skippedMixed],
|
|
87
|
+
dryRun: true
|
|
88
|
+
};
|
|
89
|
+
const result = yield* service.execute(plan);
|
|
90
|
+
return {
|
|
91
|
+
root,
|
|
92
|
+
deleted: [...result.deleted],
|
|
93
|
+
written: [...result.written],
|
|
94
|
+
skippedMixed: [...result.skippedMixed],
|
|
95
|
+
dryRun: false
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
//#endregion
|
|
100
|
+
export { ChangesetDepsRegenAsMarkdown, ChangesetDepsRegenResult, changesetDepsRegen };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Guide title
|
|
2
|
-
|
|
3
|
-
A short intro framing the problem and when to read this guide.
|
|
4
|
-
|
|
5
|
-
## A section
|
|
6
|
-
|
|
7
|
-
Free-form prose, lists, and code as the topic demands. Keep each guide a single
|
|
8
|
-
focused page; split when it outgrows the body budget.
|
|
9
|
-
|
|
10
|
-
## Another section
|
|
11
|
-
|
|
12
|
-
Close with concrete recommendations or a checklist where it helps.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Package topic title
|
|
2
|
-
|
|
3
|
-
## What
|
|
4
|
-
|
|
5
|
-
One paragraph: what this package or service is and the problem it solves.
|
|
6
|
-
|
|
7
|
-
## API
|
|
8
|
-
|
|
9
|
-
The key shapes, signatures, and statics a consumer touches. Condensed, not a full port.
|
|
10
|
-
|
|
11
|
-
## Layer
|
|
12
|
-
|
|
13
|
-
The Effect layer(s) and their platform requirements, or the install/build wiring.
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
A short, runnable example of the common path.
|
|
18
|
-
|
|
19
|
-
## Related
|
|
20
|
-
|
|
21
|
-
Cross-link sibling digests and the standards they implement.
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Standard title
|
|
2
|
-
|
|
3
|
-
## Rule
|
|
4
|
-
|
|
5
|
-
State the durable rule in one or two sentences. This is the thing that must hold.
|
|
6
|
-
|
|
7
|
-
## Why
|
|
8
|
-
|
|
9
|
-
Explain the reasoning the rule encodes, so a reader can apply judgment at the edges.
|
|
10
|
-
|
|
11
|
-
## Examples
|
|
12
|
-
|
|
13
|
-
Show a conforming case and a non-conforming case.
|
|
14
|
-
|
|
15
|
-
## See also
|
|
16
|
-
|
|
17
|
-
Cross-link related standards and package digests by `silk://` URI.
|