@meetkai/mka1 0.51.36 → 0.51.37
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 +229 -241
- package/bin/mcp-server.js +246 -801
- package/bin/mcp-server.js.map +22 -34
- package/dist/commonjs/funcs/reposCreate.d.ts +3 -3
- package/dist/commonjs/funcs/reposCreate.js +4 -4
- package/dist/commonjs/funcs/reposCreate.js.map +1 -1
- package/dist/commonjs/funcs/reposDelete.d.ts +2 -2
- package/dist/commonjs/funcs/reposDelete.js +2 -2
- package/dist/commonjs/funcs/reposGet.d.ts +2 -1
- package/dist/commonjs/funcs/reposGet.d.ts.map +1 -1
- package/dist/commonjs/funcs/reposGet.js +2 -1
- package/dist/commonjs/funcs/reposGet.js.map +1 -1
- package/dist/commonjs/funcs/reposList.d.ts +3 -3
- package/dist/commonjs/funcs/reposList.js +4 -4
- package/dist/commonjs/funcs/reposList.js.map +1 -1
- package/dist/commonjs/funcs/reposUpdate.d.ts +3 -4
- package/dist/commonjs/funcs/reposUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/reposUpdate.js +3 -4
- package/dist/commonjs/funcs/reposUpdate.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -7
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/reposCreate.js +3 -3
- package/dist/commonjs/mcp-server/tools/reposDelete.js +2 -2
- package/dist/commonjs/mcp-server/tools/reposGet.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/reposGet.js +3 -1
- package/dist/commonjs/mcp-server/tools/reposGet.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/reposList.js +3 -3
- package/dist/commonjs/mcp-server/tools/reposUpdate.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/reposUpdate.js +3 -4
- package/dist/commonjs/mcp-server/tools/reposUpdate.js.map +1 -1
- package/dist/commonjs/models/components/createreporequest.d.ts +0 -21
- package/dist/commonjs/models/components/createreporequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createreporequest.js +1 -14
- package/dist/commonjs/models/components/createreporequest.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -3
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -3
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/patchreporequest.d.ts +1 -10
- package/dist/commonjs/models/components/patchreporequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/patchreporequest.js +0 -3
- package/dist/commonjs/models/components/patchreporequest.js.map +1 -1
- package/dist/commonjs/models/components/repo.d.ts +0 -9
- package/dist/commonjs/models/components/repo.d.ts.map +1 -1
- package/dist/commonjs/models/components/repo.js +0 -3
- package/dist/commonjs/models/components/repo.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -3
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -3
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listrepos.d.ts +1 -1
- package/dist/commonjs/react-query/index.d.ts +0 -3
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +0 -3
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/reposCreate.d.ts +3 -3
- package/dist/commonjs/react-query/reposCreate.js +3 -3
- package/dist/commonjs/react-query/reposDelete.d.ts +2 -2
- package/dist/commonjs/react-query/reposDelete.js +2 -2
- package/dist/commonjs/react-query/reposGet.d.ts +4 -2
- package/dist/commonjs/react-query/reposGet.d.ts.map +1 -1
- package/dist/commonjs/react-query/reposGet.js +4 -2
- package/dist/commonjs/react-query/reposGet.js.map +1 -1
- package/dist/commonjs/react-query/reposList.d.ts +6 -6
- package/dist/commonjs/react-query/reposList.js +6 -6
- package/dist/commonjs/react-query/reposUpdate.d.ts +3 -4
- package/dist/commonjs/react-query/reposUpdate.d.ts.map +1 -1
- package/dist/commonjs/react-query/reposUpdate.js +3 -4
- package/dist/commonjs/react-query/reposUpdate.js.map +1 -1
- package/dist/commonjs/sdk/repos.d.ts +13 -16
- package/dist/commonjs/sdk/repos.d.ts.map +1 -1
- package/dist/commonjs/sdk/repos.js +13 -17
- package/dist/commonjs/sdk/repos.js.map +1 -1
- package/dist/esm/funcs/reposCreate.d.ts +3 -3
- package/dist/esm/funcs/reposCreate.js +4 -4
- package/dist/esm/funcs/reposCreate.js.map +1 -1
- package/dist/esm/funcs/reposDelete.d.ts +2 -2
- package/dist/esm/funcs/reposDelete.js +2 -2
- package/dist/esm/funcs/reposGet.d.ts +2 -1
- package/dist/esm/funcs/reposGet.d.ts.map +1 -1
- package/dist/esm/funcs/reposGet.js +2 -1
- package/dist/esm/funcs/reposGet.js.map +1 -1
- package/dist/esm/funcs/reposList.d.ts +3 -3
- package/dist/esm/funcs/reposList.js +4 -4
- package/dist/esm/funcs/reposList.js.map +1 -1
- package/dist/esm/funcs/reposUpdate.d.ts +3 -4
- package/dist/esm/funcs/reposUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/reposUpdate.js +3 -4
- package/dist/esm/funcs/reposUpdate.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -7
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/reposCreate.js +3 -3
- package/dist/esm/mcp-server/tools/reposDelete.js +2 -2
- package/dist/esm/mcp-server/tools/reposGet.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/reposGet.js +3 -1
- package/dist/esm/mcp-server/tools/reposGet.js.map +1 -1
- package/dist/esm/mcp-server/tools/reposList.js +3 -3
- package/dist/esm/mcp-server/tools/reposUpdate.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/reposUpdate.js +3 -4
- package/dist/esm/mcp-server/tools/reposUpdate.js.map +1 -1
- package/dist/esm/models/components/createreporequest.d.ts +0 -21
- package/dist/esm/models/components/createreporequest.d.ts.map +1 -1
- package/dist/esm/models/components/createreporequest.js +0 -13
- package/dist/esm/models/components/createreporequest.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -3
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -3
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/patchreporequest.d.ts +1 -10
- package/dist/esm/models/components/patchreporequest.d.ts.map +1 -1
- package/dist/esm/models/components/patchreporequest.js +0 -3
- package/dist/esm/models/components/patchreporequest.js.map +1 -1
- package/dist/esm/models/components/repo.d.ts +0 -9
- package/dist/esm/models/components/repo.d.ts.map +1 -1
- package/dist/esm/models/components/repo.js +0 -3
- package/dist/esm/models/components/repo.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -3
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -3
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listrepos.d.ts +1 -1
- package/dist/esm/react-query/index.d.ts +0 -3
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +0 -3
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/reposCreate.d.ts +3 -3
- package/dist/esm/react-query/reposCreate.js +3 -3
- package/dist/esm/react-query/reposDelete.d.ts +2 -2
- package/dist/esm/react-query/reposDelete.js +2 -2
- package/dist/esm/react-query/reposGet.d.ts +4 -2
- package/dist/esm/react-query/reposGet.d.ts.map +1 -1
- package/dist/esm/react-query/reposGet.js +4 -2
- package/dist/esm/react-query/reposGet.js.map +1 -1
- package/dist/esm/react-query/reposList.d.ts +6 -6
- package/dist/esm/react-query/reposList.js +6 -6
- package/dist/esm/react-query/reposUpdate.d.ts +3 -4
- package/dist/esm/react-query/reposUpdate.d.ts.map +1 -1
- package/dist/esm/react-query/reposUpdate.js +3 -4
- package/dist/esm/react-query/reposUpdate.js.map +1 -1
- package/dist/esm/sdk/repos.d.ts +13 -16
- package/dist/esm/sdk/repos.d.ts.map +1 -1
- package/dist/esm/sdk/repos.js +13 -17
- package/dist/esm/sdk/repos.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/reposCreate.ts +4 -4
- package/src/funcs/reposDelete.ts +2 -2
- package/src/funcs/reposGet.ts +2 -1
- package/src/funcs/reposList.ts +5 -5
- package/src/funcs/reposUpdate.ts +3 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -7
- package/src/mcp-server/tools/reposCreate.ts +3 -3
- package/src/mcp-server/tools/reposDelete.ts +2 -2
- package/src/mcp-server/tools/reposGet.ts +3 -1
- package/src/mcp-server/tools/reposList.ts +3 -3
- package/src/mcp-server/tools/reposUpdate.ts +3 -4
- package/src/models/components/createreporequest.ts +0 -31
- package/src/models/components/index.ts +0 -3
- package/src/models/components/patchreporequest.ts +1 -16
- package/src/models/components/repo.ts +0 -15
- package/src/models/operations/index.ts +0 -3
- package/src/models/operations/listrepos.ts +1 -1
- package/src/react-query/index.ts +0 -3
- package/src/react-query/reposCreate.ts +3 -3
- package/src/react-query/reposDelete.ts +2 -2
- package/src/react-query/reposGet.ts +4 -2
- package/src/react-query/reposList.ts +6 -6
- package/src/react-query/reposUpdate.ts +3 -4
- package/src/sdk/repos.ts +13 -19
- package/dist/commonjs/funcs/reposCollaboratorsAdd.d.ts +0 -21
- package/dist/commonjs/funcs/reposCollaboratorsAdd.d.ts.map +0 -1
- package/dist/commonjs/funcs/reposCollaboratorsAdd.js +0 -149
- package/dist/commonjs/funcs/reposCollaboratorsAdd.js.map +0 -1
- package/dist/commonjs/funcs/reposCollaboratorsList.d.ts +0 -19
- package/dist/commonjs/funcs/reposCollaboratorsList.d.ts.map +0 -1
- package/dist/commonjs/funcs/reposCollaboratorsList.js +0 -140
- package/dist/commonjs/funcs/reposCollaboratorsList.js.map +0 -1
- package/dist/commonjs/funcs/reposCollaboratorsRemove.d.ts +0 -19
- package/dist/commonjs/funcs/reposCollaboratorsRemove.d.ts.map +0 -1
- package/dist/commonjs/funcs/reposCollaboratorsRemove.js +0 -145
- package/dist/commonjs/funcs/reposCollaboratorsRemove.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.js +0 -67
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsAdd.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.js +0 -66
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsList.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.js +0 -65
- package/dist/commonjs/mcp-server/tools/reposCollaboratorsRemove.js.map +0 -1
- package/dist/commonjs/models/components/collaboratorrequest.d.ts +0 -45
- package/dist/commonjs/models/components/collaboratorrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/collaboratorrequest.js +0 -72
- package/dist/commonjs/models/components/collaboratorrequest.js.map +0 -1
- package/dist/commonjs/models/components/member.d.ts +0 -51
- package/dist/commonjs/models/components/member.d.ts.map +0 -1
- package/dist/commonjs/models/components/member.js +0 -77
- package/dist/commonjs/models/components/member.js.map +0 -1
- package/dist/commonjs/models/components/visibility.d.ts +0 -24
- package/dist/commonjs/models/components/visibility.d.ts.map +0 -1
- package/dist/commonjs/models/components/visibility.js +0 -56
- package/dist/commonjs/models/components/visibility.js.map +0 -1
- package/dist/commonjs/models/operations/deletecollaborator.d.ts +0 -35
- package/dist/commonjs/models/operations/deletecollaborator.d.ts.map +0 -1
- package/dist/commonjs/models/operations/deletecollaborator.js +0 -73
- package/dist/commonjs/models/operations/deletecollaborator.js.map +0 -1
- package/dist/commonjs/models/operations/listcollaborators.d.ts +0 -47
- package/dist/commonjs/models/operations/listcollaborators.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listcollaborators.js +0 -88
- package/dist/commonjs/models/operations/listcollaborators.js.map +0 -1
- package/dist/commonjs/models/operations/putcollaborator.d.ts +0 -38
- package/dist/commonjs/models/operations/putcollaborator.d.ts.map +0 -1
- package/dist/commonjs/models/operations/putcollaborator.js +0 -78
- package/dist/commonjs/models/operations/putcollaborator.js.map +0 -1
- package/dist/commonjs/react-query/reposCollaboratorsAdd.d.ts +0 -32
- package/dist/commonjs/react-query/reposCollaboratorsAdd.d.ts.map +0 -1
- package/dist/commonjs/react-query/reposCollaboratorsAdd.js +0 -49
- package/dist/commonjs/react-query/reposCollaboratorsAdd.js.map +0 -1
- package/dist/commonjs/react-query/reposCollaboratorsList.core.d.ts +0 -14
- package/dist/commonjs/react-query/reposCollaboratorsList.core.d.ts.map +0 -1
- package/dist/commonjs/react-query/reposCollaboratorsList.core.js +0 -36
- package/dist/commonjs/react-query/reposCollaboratorsList.core.js.map +0 -1
- package/dist/commonjs/react-query/reposCollaboratorsList.d.ts +0 -43
- package/dist/commonjs/react-query/reposCollaboratorsList.d.ts.map +0 -1
- package/dist/commonjs/react-query/reposCollaboratorsList.js +0 -62
- package/dist/commonjs/react-query/reposCollaboratorsList.js.map +0 -1
- package/dist/commonjs/react-query/reposCollaboratorsRemove.d.ts +0 -30
- package/dist/commonjs/react-query/reposCollaboratorsRemove.d.ts.map +0 -1
- package/dist/commonjs/react-query/reposCollaboratorsRemove.js +0 -48
- package/dist/commonjs/react-query/reposCollaboratorsRemove.js.map +0 -1
- package/dist/commonjs/sdk/collaborators.d.ts +0 -31
- package/dist/commonjs/sdk/collaborators.d.ts.map +0 -1
- package/dist/commonjs/sdk/collaborators.js +0 -46
- package/dist/commonjs/sdk/collaborators.js.map +0 -1
- package/dist/esm/funcs/reposCollaboratorsAdd.d.ts +0 -21
- package/dist/esm/funcs/reposCollaboratorsAdd.d.ts.map +0 -1
- package/dist/esm/funcs/reposCollaboratorsAdd.js +0 -113
- package/dist/esm/funcs/reposCollaboratorsAdd.js.map +0 -1
- package/dist/esm/funcs/reposCollaboratorsList.d.ts +0 -19
- package/dist/esm/funcs/reposCollaboratorsList.d.ts.map +0 -1
- package/dist/esm/funcs/reposCollaboratorsList.js +0 -104
- package/dist/esm/funcs/reposCollaboratorsList.js.map +0 -1
- package/dist/esm/funcs/reposCollaboratorsRemove.d.ts +0 -19
- package/dist/esm/funcs/reposCollaboratorsRemove.d.ts.map +0 -1
- package/dist/esm/funcs/reposCollaboratorsRemove.js +0 -109
- package/dist/esm/funcs/reposCollaboratorsRemove.js.map +0 -1
- package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.d.ts +0 -8
- package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.js +0 -31
- package/dist/esm/mcp-server/tools/reposCollaboratorsAdd.js.map +0 -1
- package/dist/esm/mcp-server/tools/reposCollaboratorsList.d.ts +0 -8
- package/dist/esm/mcp-server/tools/reposCollaboratorsList.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/reposCollaboratorsList.js +0 -30
- package/dist/esm/mcp-server/tools/reposCollaboratorsList.js.map +0 -1
- package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.d.ts +0 -8
- package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.js +0 -29
- package/dist/esm/mcp-server/tools/reposCollaboratorsRemove.js.map +0 -1
- package/dist/esm/models/components/collaboratorrequest.d.ts +0 -45
- package/dist/esm/models/components/collaboratorrequest.d.ts.map +0 -1
- package/dist/esm/models/components/collaboratorrequest.js +0 -34
- package/dist/esm/models/components/collaboratorrequest.js.map +0 -1
- package/dist/esm/models/components/member.d.ts +0 -51
- package/dist/esm/models/components/member.d.ts.map +0 -1
- package/dist/esm/models/components/member.js +0 -39
- package/dist/esm/models/components/member.js.map +0 -1
- package/dist/esm/models/components/visibility.d.ts +0 -24
- package/dist/esm/models/components/visibility.d.ts.map +0 -1
- package/dist/esm/models/components/visibility.js +0 -20
- package/dist/esm/models/components/visibility.js.map +0 -1
- package/dist/esm/models/operations/deletecollaborator.d.ts +0 -35
- package/dist/esm/models/operations/deletecollaborator.d.ts.map +0 -1
- package/dist/esm/models/operations/deletecollaborator.js +0 -35
- package/dist/esm/models/operations/deletecollaborator.js.map +0 -1
- package/dist/esm/models/operations/listcollaborators.d.ts +0 -47
- package/dist/esm/models/operations/listcollaborators.d.ts.map +0 -1
- package/dist/esm/models/operations/listcollaborators.js +0 -48
- package/dist/esm/models/operations/listcollaborators.js.map +0 -1
- package/dist/esm/models/operations/putcollaborator.d.ts +0 -38
- package/dist/esm/models/operations/putcollaborator.d.ts.map +0 -1
- package/dist/esm/models/operations/putcollaborator.js +0 -40
- package/dist/esm/models/operations/putcollaborator.js.map +0 -1
- package/dist/esm/react-query/reposCollaboratorsAdd.d.ts +0 -32
- package/dist/esm/react-query/reposCollaboratorsAdd.d.ts.map +0 -1
- package/dist/esm/react-query/reposCollaboratorsAdd.js +0 -44
- package/dist/esm/react-query/reposCollaboratorsAdd.js.map +0 -1
- package/dist/esm/react-query/reposCollaboratorsList.core.d.ts +0 -14
- package/dist/esm/react-query/reposCollaboratorsList.core.d.ts.map +0 -1
- package/dist/esm/react-query/reposCollaboratorsList.core.js +0 -31
- package/dist/esm/react-query/reposCollaboratorsList.core.js.map +0 -1
- package/dist/esm/react-query/reposCollaboratorsList.d.ts +0 -43
- package/dist/esm/react-query/reposCollaboratorsList.d.ts.map +0 -1
- package/dist/esm/react-query/reposCollaboratorsList.js +0 -52
- package/dist/esm/react-query/reposCollaboratorsList.js.map +0 -1
- package/dist/esm/react-query/reposCollaboratorsRemove.d.ts +0 -30
- package/dist/esm/react-query/reposCollaboratorsRemove.d.ts.map +0 -1
- package/dist/esm/react-query/reposCollaboratorsRemove.js +0 -43
- package/dist/esm/react-query/reposCollaboratorsRemove.js.map +0 -1
- package/dist/esm/sdk/collaborators.d.ts +0 -31
- package/dist/esm/sdk/collaborators.d.ts.map +0 -1
- package/dist/esm/sdk/collaborators.js +0 -42
- package/dist/esm/sdk/collaborators.js.map +0 -1
- package/src/funcs/reposCollaboratorsAdd.ts +0 -208
- package/src/funcs/reposCollaboratorsList.ts +0 -198
- package/src/funcs/reposCollaboratorsRemove.ts +0 -204
- package/src/mcp-server/tools/reposCollaboratorsAdd.ts +0 -40
- package/src/mcp-server/tools/reposCollaboratorsList.ts +0 -39
- package/src/mcp-server/tools/reposCollaboratorsRemove.ts +0 -37
- package/src/models/components/collaboratorrequest.ts +0 -87
- package/src/models/components/member.ts +0 -84
- package/src/models/components/visibility.ts +0 -31
- package/src/models/operations/deletecollaborator.ts +0 -84
- package/src/models/operations/listcollaborators.ts +0 -126
- package/src/models/operations/putcollaborator.ts +0 -91
- package/src/react-query/reposCollaboratorsAdd.ts +0 -113
- package/src/react-query/reposCollaboratorsList.core.ts +0 -77
- package/src/react-query/reposCollaboratorsList.ts +0 -150
- package/src/react-query/reposCollaboratorsRemove.ts +0 -111
- package/src/sdk/collaborators.ts +0 -68
package/bin/mcp-server.js
CHANGED
|
@@ -52876,9 +52876,9 @@ var init_config = __esm(() => {
|
|
|
52876
52876
|
SDK_METADATA = {
|
|
52877
52877
|
language: "typescript",
|
|
52878
52878
|
openapiDocVersion: "1.1.0",
|
|
52879
|
-
sdkVersion: "0.51.
|
|
52879
|
+
sdkVersion: "0.51.37",
|
|
52880
52880
|
genVersion: "2.924.0",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.37 2.924.0 1.1.0 @meetkai/mka1"
|
|
52882
52882
|
};
|
|
52883
52883
|
});
|
|
52884
52884
|
|
|
@@ -57784,24 +57784,6 @@ var init_coderesult = __esm(() => {
|
|
|
57784
57784
|
});
|
|
57785
57785
|
});
|
|
57786
57786
|
|
|
57787
|
-
// src/models/components/collaboratorrequest.ts
|
|
57788
|
-
var CollaboratorRequestRole, CollaboratorRequestRole$inboundSchema, CollaboratorRequestRole$outboundSchema, CollaboratorRequest$inboundSchema, CollaboratorRequest$outboundSchema;
|
|
57789
|
-
var init_collaboratorrequest = __esm(() => {
|
|
57790
|
-
init_esm();
|
|
57791
|
-
CollaboratorRequestRole = {
|
|
57792
|
-
Reader: "reader",
|
|
57793
|
-
Writer: "writer"
|
|
57794
|
-
};
|
|
57795
|
-
CollaboratorRequestRole$inboundSchema = nativeEnumType(CollaboratorRequestRole);
|
|
57796
|
-
CollaboratorRequestRole$outboundSchema = CollaboratorRequestRole$inboundSchema;
|
|
57797
|
-
CollaboratorRequest$inboundSchema = objectType({
|
|
57798
|
-
role: CollaboratorRequestRole$inboundSchema
|
|
57799
|
-
});
|
|
57800
|
-
CollaboratorRequest$outboundSchema = objectType({
|
|
57801
|
-
role: CollaboratorRequestRole$outboundSchema
|
|
57802
|
-
});
|
|
57803
|
-
});
|
|
57804
|
-
|
|
57805
57787
|
// src/models/components/commandrequest.ts
|
|
57806
57788
|
var CommandRequest$inboundSchema, CommandRequest$outboundSchema;
|
|
57807
57789
|
var init_commandrequest = __esm(() => {
|
|
@@ -63817,24 +63799,16 @@ var init_createpromptresponse = __esm(() => {
|
|
|
63817
63799
|
});
|
|
63818
63800
|
|
|
63819
63801
|
// src/models/components/createreporequest.ts
|
|
63820
|
-
var
|
|
63802
|
+
var CreateRepoRequest$inboundSchema, CreateRepoRequest$outboundSchema;
|
|
63821
63803
|
var init_createreporequest = __esm(() => {
|
|
63822
63804
|
init_esm();
|
|
63823
|
-
CreateRepoRequestVisibility = {
|
|
63824
|
-
Private: "private",
|
|
63825
|
-
Team: "team"
|
|
63826
|
-
};
|
|
63827
|
-
CreateRepoRequestVisibility$inboundSchema = nativeEnumType(CreateRepoRequestVisibility);
|
|
63828
|
-
CreateRepoRequestVisibility$outboundSchema = CreateRepoRequestVisibility$inboundSchema;
|
|
63829
63805
|
CreateRepoRequest$inboundSchema = objectType({
|
|
63830
63806
|
description: stringType().optional(),
|
|
63831
|
-
name: stringType()
|
|
63832
|
-
visibility: CreateRepoRequestVisibility$inboundSchema.default("private")
|
|
63807
|
+
name: stringType()
|
|
63833
63808
|
});
|
|
63834
63809
|
CreateRepoRequest$outboundSchema = objectType({
|
|
63835
63810
|
description: stringType().optional(),
|
|
63836
|
-
name: stringType()
|
|
63837
|
-
visibility: CreateRepoRequestVisibility$outboundSchema.default("private")
|
|
63811
|
+
name: stringType()
|
|
63838
63812
|
});
|
|
63839
63813
|
});
|
|
63840
63814
|
|
|
@@ -69067,27 +69041,6 @@ var init_mcptoolcallwithid = __esm(() => {
|
|
|
69067
69041
|
});
|
|
69068
69042
|
});
|
|
69069
69043
|
|
|
69070
|
-
// src/models/components/member.ts
|
|
69071
|
-
var MemberRole, MemberRole$inboundSchema, MemberRole$outboundSchema, Member$inboundSchema, Member$outboundSchema;
|
|
69072
|
-
var init_member = __esm(() => {
|
|
69073
|
-
init_esm();
|
|
69074
|
-
MemberRole = {
|
|
69075
|
-
Reader: "reader",
|
|
69076
|
-
Writer: "writer",
|
|
69077
|
-
Owner: "owner"
|
|
69078
|
-
};
|
|
69079
|
-
MemberRole$inboundSchema = nativeEnumType(MemberRole);
|
|
69080
|
-
MemberRole$outboundSchema = MemberRole$inboundSchema;
|
|
69081
|
-
Member$inboundSchema = objectType({
|
|
69082
|
-
role: MemberRole$inboundSchema,
|
|
69083
|
-
user: stringType()
|
|
69084
|
-
});
|
|
69085
|
-
Member$outboundSchema = objectType({
|
|
69086
|
-
role: MemberRole$outboundSchema,
|
|
69087
|
-
user: stringType()
|
|
69088
|
-
});
|
|
69089
|
-
});
|
|
69090
|
-
|
|
69091
69044
|
// src/models/components/memoryentry.ts
|
|
69092
69045
|
var MemoryEntry$inboundSchema, MemoryEntry$outboundSchema;
|
|
69093
69046
|
var init_memoryentry = __esm(() => {
|
|
@@ -70522,32 +70475,17 @@ var init_outputmessagewithid = __esm(() => {
|
|
|
70522
70475
|
});
|
|
70523
70476
|
});
|
|
70524
70477
|
|
|
70525
|
-
// src/models/components/visibility.ts
|
|
70526
|
-
var Visibility, Visibility$inboundSchema, Visibility$outboundSchema;
|
|
70527
|
-
var init_visibility = __esm(() => {
|
|
70528
|
-
init_esm();
|
|
70529
|
-
Visibility = {
|
|
70530
|
-
Private: "private",
|
|
70531
|
-
Team: "team"
|
|
70532
|
-
};
|
|
70533
|
-
Visibility$inboundSchema = nativeEnumType(Visibility);
|
|
70534
|
-
Visibility$outboundSchema = Visibility$inboundSchema;
|
|
70535
|
-
});
|
|
70536
|
-
|
|
70537
70478
|
// src/models/components/patchreporequest.ts
|
|
70538
70479
|
var PatchRepoRequest$inboundSchema, PatchRepoRequest$outboundSchema;
|
|
70539
70480
|
var init_patchreporequest = __esm(() => {
|
|
70540
70481
|
init_esm();
|
|
70541
|
-
init_visibility();
|
|
70542
70482
|
PatchRepoRequest$inboundSchema = objectType({
|
|
70543
70483
|
description: stringType().optional(),
|
|
70544
|
-
name: stringType().optional()
|
|
70545
|
-
visibility: Visibility$inboundSchema.optional()
|
|
70484
|
+
name: stringType().optional()
|
|
70546
70485
|
});
|
|
70547
70486
|
PatchRepoRequest$outboundSchema = objectType({
|
|
70548
70487
|
description: stringType().optional(),
|
|
70549
|
-
name: stringType().optional()
|
|
70550
|
-
visibility: Visibility$outboundSchema.optional()
|
|
70488
|
+
name: stringType().optional()
|
|
70551
70489
|
});
|
|
70552
70490
|
});
|
|
70553
70491
|
|
|
@@ -70770,14 +70708,12 @@ var Repo$inboundSchema, Repo$outboundSchema;
|
|
|
70770
70708
|
var init_repo = __esm(() => {
|
|
70771
70709
|
init_esm();
|
|
70772
70710
|
init_primitives();
|
|
70773
|
-
init_visibility();
|
|
70774
70711
|
Repo$inboundSchema = objectType({
|
|
70775
70712
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
70776
70713
|
description: stringType(),
|
|
70777
70714
|
id: stringType(),
|
|
70778
70715
|
name: stringType(),
|
|
70779
|
-
org: stringType()
|
|
70780
|
-
visibility: Visibility$inboundSchema
|
|
70716
|
+
org: stringType()
|
|
70781
70717
|
}).transform((v2) => {
|
|
70782
70718
|
return remap(v2, {
|
|
70783
70719
|
created_at: "createdAt"
|
|
@@ -70788,8 +70724,7 @@ var init_repo = __esm(() => {
|
|
|
70788
70724
|
description: stringType(),
|
|
70789
70725
|
id: stringType(),
|
|
70790
70726
|
name: stringType(),
|
|
70791
|
-
org: stringType()
|
|
70792
|
-
visibility: Visibility$outboundSchema
|
|
70727
|
+
org: stringType()
|
|
70793
70728
|
}).transform((v2) => {
|
|
70794
70729
|
return remap(v2, {
|
|
70795
70730
|
createdAt: "created_at"
|
|
@@ -77013,7 +76948,6 @@ var init_components = __esm(() => {
|
|
|
77013
76948
|
init_coderequest();
|
|
77014
76949
|
init_coderesult();
|
|
77015
76950
|
init_coderuntime();
|
|
77016
|
-
init_collaboratorrequest();
|
|
77017
76951
|
init_commandrequest();
|
|
77018
76952
|
init_commandresult();
|
|
77019
76953
|
init_compactedresponse();
|
|
@@ -77284,7 +77218,6 @@ var init_components = __esm(() => {
|
|
|
77284
77218
|
init_mcptoolchoice();
|
|
77285
77219
|
init_mcptooldefinition();
|
|
77286
77220
|
init_mcptoolfilter();
|
|
77287
|
-
init_member();
|
|
77288
77221
|
init_memoryentry();
|
|
77289
77222
|
init_memoryentrydeleted();
|
|
77290
77223
|
init_memoryentrylist();
|
|
@@ -77520,7 +77453,6 @@ var init_components = __esm(() => {
|
|
|
77520
77453
|
init_vectorstorelist();
|
|
77521
77454
|
init_vectorstoresearchresults();
|
|
77522
77455
|
init_vectorstoresgroupby();
|
|
77523
|
-
init_visibility();
|
|
77524
77456
|
init_waitaction();
|
|
77525
77457
|
init_wakeagentrunrequest();
|
|
77526
77458
|
init_websearchaction();
|
|
@@ -83438,7 +83370,7 @@ var init_addmodelcatalogorgaccess = __esm(() => {
|
|
|
83438
83370
|
});
|
|
83439
83371
|
|
|
83440
83372
|
// src/models/operations/addteammember.ts
|
|
83441
|
-
var AddTeamMemberRequestBody$inboundSchema, AddTeamMemberRequestBody$outboundSchema, AddTeamMemberRequest$inboundSchema, AddTeamMemberRequest$outboundSchema, Member$
|
|
83373
|
+
var AddTeamMemberRequestBody$inboundSchema, AddTeamMemberRequestBody$outboundSchema, AddTeamMemberRequest$inboundSchema, AddTeamMemberRequest$outboundSchema, Member$inboundSchema, Member$outboundSchema, AddTeamMemberResponseBody$inboundSchema2, AddTeamMemberResponseBody$outboundSchema2;
|
|
83442
83374
|
var init_addteammember2 = __esm(() => {
|
|
83443
83375
|
init_esm();
|
|
83444
83376
|
init_primitives();
|
|
@@ -83470,23 +83402,23 @@ var init_addteammember2 = __esm(() => {
|
|
|
83470
83402
|
requestBody: "RequestBody"
|
|
83471
83403
|
});
|
|
83472
83404
|
});
|
|
83473
|
-
Member$
|
|
83405
|
+
Member$inboundSchema = objectType({
|
|
83474
83406
|
id: stringType(),
|
|
83475
83407
|
teamId: stringType(),
|
|
83476
83408
|
userId: stringType(),
|
|
83477
83409
|
createdAt: stringType()
|
|
83478
83410
|
});
|
|
83479
|
-
Member$
|
|
83411
|
+
Member$outboundSchema = objectType({
|
|
83480
83412
|
id: stringType(),
|
|
83481
83413
|
teamId: stringType(),
|
|
83482
83414
|
userId: stringType(),
|
|
83483
83415
|
createdAt: stringType()
|
|
83484
83416
|
});
|
|
83485
83417
|
AddTeamMemberResponseBody$inboundSchema2 = objectType({
|
|
83486
|
-
member: lazyType(() => Member$
|
|
83418
|
+
member: lazyType(() => Member$inboundSchema)
|
|
83487
83419
|
});
|
|
83488
83420
|
AddTeamMemberResponseBody$outboundSchema2 = objectType({
|
|
83489
|
-
member: lazyType(() => Member$
|
|
83421
|
+
member: lazyType(() => Member$outboundSchema)
|
|
83490
83422
|
});
|
|
83491
83423
|
});
|
|
83492
83424
|
|
|
@@ -86976,33 +86908,6 @@ var init_deleteclusterorg2 = __esm(() => {
|
|
|
86976
86908
|
});
|
|
86977
86909
|
});
|
|
86978
86910
|
|
|
86979
|
-
// src/models/operations/deletecollaborator.ts
|
|
86980
|
-
var DeleteCollaboratorRequest$inboundSchema, DeleteCollaboratorRequest$outboundSchema;
|
|
86981
|
-
var init_deletecollaborator = __esm(() => {
|
|
86982
|
-
init_esm();
|
|
86983
|
-
init_primitives();
|
|
86984
|
-
DeleteCollaboratorRequest$inboundSchema = objectType({
|
|
86985
|
-
org: stringType(),
|
|
86986
|
-
name: stringType(),
|
|
86987
|
-
user: stringType(),
|
|
86988
|
-
"X-On-Behalf-Of": stringType().optional()
|
|
86989
|
-
}).transform((v2) => {
|
|
86990
|
-
return remap(v2, {
|
|
86991
|
-
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
86992
|
-
});
|
|
86993
|
-
});
|
|
86994
|
-
DeleteCollaboratorRequest$outboundSchema = objectType({
|
|
86995
|
-
org: stringType(),
|
|
86996
|
-
name: stringType(),
|
|
86997
|
-
user: stringType(),
|
|
86998
|
-
xOnBehalfOf: stringType().optional()
|
|
86999
|
-
}).transform((v2) => {
|
|
87000
|
-
return remap(v2, {
|
|
87001
|
-
xOnBehalfOf: "X-On-Behalf-Of"
|
|
87002
|
-
});
|
|
87003
|
-
});
|
|
87004
|
-
});
|
|
87005
|
-
|
|
87006
86911
|
// src/models/operations/deletecomputesecret.ts
|
|
87007
86912
|
var DeleteComputeSecretRequest$inboundSchema, DeleteComputeSecretRequest$outboundSchema;
|
|
87008
86913
|
var init_deletecomputesecret = __esm(() => {
|
|
@@ -92219,38 +92124,6 @@ var init_listclusterprices = __esm(() => {
|
|
|
92219
92124
|
});
|
|
92220
92125
|
});
|
|
92221
92126
|
|
|
92222
|
-
// src/models/operations/listcollaborators.ts
|
|
92223
|
-
var ListCollaboratorsRequest$inboundSchema, ListCollaboratorsRequest$outboundSchema, ListCollaboratorsResponseBody$inboundSchema, ListCollaboratorsResponseBody$outboundSchema;
|
|
92224
|
-
var init_listcollaborators = __esm(() => {
|
|
92225
|
-
init_esm();
|
|
92226
|
-
init_primitives();
|
|
92227
|
-
init_components();
|
|
92228
|
-
ListCollaboratorsRequest$inboundSchema = objectType({
|
|
92229
|
-
org: stringType(),
|
|
92230
|
-
name: stringType(),
|
|
92231
|
-
"X-On-Behalf-Of": stringType().optional()
|
|
92232
|
-
}).transform((v2) => {
|
|
92233
|
-
return remap(v2, {
|
|
92234
|
-
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
92235
|
-
});
|
|
92236
|
-
});
|
|
92237
|
-
ListCollaboratorsRequest$outboundSchema = objectType({
|
|
92238
|
-
org: stringType(),
|
|
92239
|
-
name: stringType(),
|
|
92240
|
-
xOnBehalfOf: stringType().optional()
|
|
92241
|
-
}).transform((v2) => {
|
|
92242
|
-
return remap(v2, {
|
|
92243
|
-
xOnBehalfOf: "X-On-Behalf-Of"
|
|
92244
|
-
});
|
|
92245
|
-
});
|
|
92246
|
-
ListCollaboratorsResponseBody$inboundSchema = objectType({
|
|
92247
|
-
collaborators: arrayType(Member$inboundSchema)
|
|
92248
|
-
});
|
|
92249
|
-
ListCollaboratorsResponseBody$outboundSchema = objectType({
|
|
92250
|
-
collaborators: arrayType(Member$outboundSchema)
|
|
92251
|
-
});
|
|
92252
|
-
});
|
|
92253
|
-
|
|
92254
92127
|
// src/models/operations/listcompletionfeedback.ts
|
|
92255
92128
|
var ListCompletionFeedbackQueryParamOrder, QueryParamRating, ListCompletionFeedbackQueryParamOrder$inboundSchema, ListCompletionFeedbackQueryParamOrder$outboundSchema, QueryParamRating$inboundSchema, QueryParamRating$outboundSchema, ListCompletionFeedbackRequest$inboundSchema, ListCompletionFeedbackRequest$outboundSchema;
|
|
92256
92129
|
var init_listcompletionfeedback = __esm(() => {
|
|
@@ -95576,38 +95449,6 @@ var init_proxybrowserportrequest = __esm(() => {
|
|
|
95576
95449
|
});
|
|
95577
95450
|
});
|
|
95578
95451
|
|
|
95579
|
-
// src/models/operations/putcollaborator.ts
|
|
95580
|
-
var PutCollaboratorRequest$inboundSchema, PutCollaboratorRequest$outboundSchema;
|
|
95581
|
-
var init_putcollaborator = __esm(() => {
|
|
95582
|
-
init_esm();
|
|
95583
|
-
init_primitives();
|
|
95584
|
-
init_components();
|
|
95585
|
-
PutCollaboratorRequest$inboundSchema = objectType({
|
|
95586
|
-
org: stringType(),
|
|
95587
|
-
name: stringType(),
|
|
95588
|
-
user: stringType(),
|
|
95589
|
-
"X-On-Behalf-Of": stringType().optional(),
|
|
95590
|
-
CollaboratorRequest: CollaboratorRequest$inboundSchema
|
|
95591
|
-
}).transform((v2) => {
|
|
95592
|
-
return remap(v2, {
|
|
95593
|
-
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
95594
|
-
CollaboratorRequest: "collaboratorRequest"
|
|
95595
|
-
});
|
|
95596
|
-
});
|
|
95597
|
-
PutCollaboratorRequest$outboundSchema = objectType({
|
|
95598
|
-
org: stringType(),
|
|
95599
|
-
name: stringType(),
|
|
95600
|
-
user: stringType(),
|
|
95601
|
-
xOnBehalfOf: stringType().optional(),
|
|
95602
|
-
collaboratorRequest: CollaboratorRequest$outboundSchema
|
|
95603
|
-
}).transform((v2) => {
|
|
95604
|
-
return remap(v2, {
|
|
95605
|
-
xOnBehalfOf: "X-On-Behalf-Of",
|
|
95606
|
-
collaboratorRequest: "CollaboratorRequest"
|
|
95607
|
-
});
|
|
95608
|
-
});
|
|
95609
|
-
});
|
|
95610
|
-
|
|
95611
95452
|
// src/models/operations/putcomputetenant.ts
|
|
95612
95453
|
var PutComputeTenantRequest$inboundSchema, PutComputeTenantRequest$outboundSchema, PutComputeTenantResponse$inboundSchema, PutComputeTenantResponse$outboundSchema;
|
|
95613
95454
|
var init_putcomputetenant = __esm(() => {
|
|
@@ -99059,7 +98900,6 @@ var init_operations = __esm(() => {
|
|
|
99059
98900
|
init_deleteagentschedule();
|
|
99060
98901
|
init_deleteapikeybudget();
|
|
99061
98902
|
init_deleteclusterorg2();
|
|
99062
|
-
init_deletecollaborator();
|
|
99063
98903
|
init_deletecomputesecret();
|
|
99064
98904
|
init_deleteevalrun();
|
|
99065
98905
|
init_deleteevalschedule();
|
|
@@ -99176,7 +99016,6 @@ var init_operations = __esm(() => {
|
|
|
99176
99016
|
init_listclusterinvites2();
|
|
99177
99017
|
init_listclusterorgs2();
|
|
99178
99018
|
init_listclusterprices();
|
|
99179
|
-
init_listcollaborators();
|
|
99180
99019
|
init_listcompletionfeedback();
|
|
99181
99020
|
init_listcomputeoffers();
|
|
99182
99021
|
init_listcomputeproviders();
|
|
@@ -99240,7 +99079,6 @@ var init_operations = __esm(() => {
|
|
|
99240
99079
|
init_pauseagentschedule();
|
|
99241
99080
|
init_pausefinetuningjob();
|
|
99242
99081
|
init_proxybrowserportrequest();
|
|
99243
|
-
init_putcollaborator();
|
|
99244
99082
|
init_putcomputetenant();
|
|
99245
99083
|
init_putorgautomodel();
|
|
99246
99084
|
init_regeneratescopedapikey2();
|
|
@@ -134414,34 +134252,18 @@ Revoke a role from a user for a resource, or remove public access by using "*" a
|
|
|
134414
134252
|
};
|
|
134415
134253
|
});
|
|
134416
134254
|
|
|
134417
|
-
// src/funcs/
|
|
134418
|
-
function
|
|
134255
|
+
// src/funcs/reposCreate.ts
|
|
134256
|
+
function reposCreate(client, request, options) {
|
|
134419
134257
|
return new APIPromise($do300(client, request, options));
|
|
134420
134258
|
}
|
|
134421
134259
|
async function $do300(client, request, options) {
|
|
134422
|
-
const parsed = safeParse4(request, (value) =>
|
|
134260
|
+
const parsed = safeParse4(request, (value) => CreateRepoRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
134423
134261
|
if (!parsed.ok) {
|
|
134424
134262
|
return [parsed, { status: "invalid" }];
|
|
134425
134263
|
}
|
|
134426
134264
|
const payload = parsed.value;
|
|
134427
|
-
const body = encodeJSON("body", payload.
|
|
134428
|
-
|
|
134429
|
-
});
|
|
134430
|
-
const pathParams = {
|
|
134431
|
-
name: encodeSimple("name", payload.name, {
|
|
134432
|
-
explode: false,
|
|
134433
|
-
charEncoding: "percent"
|
|
134434
|
-
}),
|
|
134435
|
-
org: encodeSimple("org", payload.org, {
|
|
134436
|
-
explode: false,
|
|
134437
|
-
charEncoding: "percent"
|
|
134438
|
-
}),
|
|
134439
|
-
user: encodeSimple("user", payload.user, {
|
|
134440
|
-
explode: false,
|
|
134441
|
-
charEncoding: "percent"
|
|
134442
|
-
})
|
|
134443
|
-
};
|
|
134444
|
-
const path = pathToFunc("/api/v1/repos/{org}/{name}/collaborators/{user}")(pathParams);
|
|
134265
|
+
const body = encodeJSON("body", payload.CreateRepoRequest, { explode: true });
|
|
134266
|
+
const path = pathToFunc("/api/v1/repos")();
|
|
134445
134267
|
const headers = new Headers(compactMap({
|
|
134446
134268
|
"Content-Type": "application/json",
|
|
134447
134269
|
Accept: "application/json",
|
|
@@ -134453,7 +134275,7 @@ async function $do300(client, request, options) {
|
|
|
134453
134275
|
const context = {
|
|
134454
134276
|
options: client._options,
|
|
134455
134277
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134456
|
-
operationID: "
|
|
134278
|
+
operationID: "createRepo",
|
|
134457
134279
|
oAuth2Scopes: null,
|
|
134458
134280
|
resolvedSecurity: requestSecurity,
|
|
134459
134281
|
securitySource: client._options.bearerAuth,
|
|
@@ -134471,7 +134293,7 @@ async function $do300(client, request, options) {
|
|
|
134471
134293
|
};
|
|
134472
134294
|
const requestRes = client._createRequest(context, {
|
|
134473
134295
|
security: requestSecurity,
|
|
134474
|
-
method: "
|
|
134296
|
+
method: "POST",
|
|
134475
134297
|
baseURL: options?.serverURL,
|
|
134476
134298
|
path,
|
|
134477
134299
|
headers,
|
|
@@ -134496,13 +134318,13 @@ async function $do300(client, request, options) {
|
|
|
134496
134318
|
const responseFields = {
|
|
134497
134319
|
HttpMeta: { Response: response, Request: req }
|
|
134498
134320
|
};
|
|
134499
|
-
const [result] = await match(json(
|
|
134321
|
+
const [result] = await match(json(201, Repo$inboundSchema), jsonErr([400, 401, 403, 409], RepoError$inboundSchema), jsonErr([500, 502, 503], RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134500
134322
|
if (!result.ok) {
|
|
134501
134323
|
return [result, { status: "complete", request: req, response }];
|
|
134502
134324
|
}
|
|
134503
134325
|
return [result, { status: "complete", request: req, response }];
|
|
134504
134326
|
}
|
|
134505
|
-
var
|
|
134327
|
+
var init_reposCreate = __esm(() => {
|
|
134506
134328
|
init_encodings();
|
|
134507
134329
|
init_http();
|
|
134508
134330
|
init_matchers();
|
|
@@ -134516,26 +134338,26 @@ var init_reposCollaboratorsAdd = __esm(() => {
|
|
|
134516
134338
|
init_async();
|
|
134517
134339
|
});
|
|
134518
134340
|
|
|
134519
|
-
// src/mcp-server/tools/
|
|
134520
|
-
var args292, tool$
|
|
134521
|
-
var
|
|
134522
|
-
|
|
134341
|
+
// src/mcp-server/tools/reposCreate.ts
|
|
134342
|
+
var args292, tool$reposCreate;
|
|
134343
|
+
var init_reposCreate2 = __esm(() => {
|
|
134344
|
+
init_reposCreate();
|
|
134523
134345
|
init_operations();
|
|
134524
134346
|
init_tools();
|
|
134525
134347
|
args292 = {
|
|
134526
|
-
request:
|
|
134348
|
+
request: CreateRepoRequest$inboundSchema2
|
|
134527
134349
|
};
|
|
134528
|
-
tool$
|
|
134529
|
-
name: "repos-
|
|
134530
|
-
description: `
|
|
134350
|
+
tool$reposCreate = {
|
|
134351
|
+
name: "repos-create",
|
|
134352
|
+
description: `Create a repository
|
|
134531
134353
|
|
|
134532
|
-
|
|
134533
|
-
|
|
134534
|
-
|
|
134354
|
+
Provisions a repository (org owner/admin only): DB insert
|
|
134355
|
+
(authoritative) → Gitea create (rolled back on failure). The repository
|
|
134356
|
+
belongs to the caller's org.
|
|
134535
134357
|
`,
|
|
134536
134358
|
args: args292,
|
|
134537
134359
|
tool: async (client, args293, ctx) => {
|
|
134538
|
-
const [result, apiCall] = await
|
|
134360
|
+
const [result, apiCall] = await reposCreate(client, args293.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134539
134361
|
if (!result.ok) {
|
|
134540
134362
|
return {
|
|
134541
134363
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -134548,12 +134370,12 @@ grantable role — it is fixed to the creator at create time.
|
|
|
134548
134370
|
};
|
|
134549
134371
|
});
|
|
134550
134372
|
|
|
134551
|
-
// src/funcs/
|
|
134552
|
-
function
|
|
134373
|
+
// src/funcs/reposDelete.ts
|
|
134374
|
+
function reposDelete(client, request, options) {
|
|
134553
134375
|
return new APIPromise($do301(client, request, options));
|
|
134554
134376
|
}
|
|
134555
134377
|
async function $do301(client, request, options) {
|
|
134556
|
-
const parsed = safeParse4(request, (value) =>
|
|
134378
|
+
const parsed = safeParse4(request, (value) => DeleteRepoRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134557
134379
|
if (!parsed.ok) {
|
|
134558
134380
|
return [parsed, { status: "invalid" }];
|
|
134559
134381
|
}
|
|
@@ -134569,7 +134391,7 @@ async function $do301(client, request, options) {
|
|
|
134569
134391
|
charEncoding: "percent"
|
|
134570
134392
|
})
|
|
134571
134393
|
};
|
|
134572
|
-
const path = pathToFunc("/api/v1/repos/{org}/{name}
|
|
134394
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
134573
134395
|
const headers = new Headers(compactMap({
|
|
134574
134396
|
Accept: "application/json",
|
|
134575
134397
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -134580,7 +134402,7 @@ async function $do301(client, request, options) {
|
|
|
134580
134402
|
const context = {
|
|
134581
134403
|
options: client._options,
|
|
134582
134404
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134583
|
-
operationID: "
|
|
134405
|
+
operationID: "deleteRepo",
|
|
134584
134406
|
oAuth2Scopes: null,
|
|
134585
134407
|
resolvedSecurity: requestSecurity,
|
|
134586
134408
|
securitySource: client._options.bearerAuth,
|
|
@@ -134598,7 +134420,7 @@ async function $do301(client, request, options) {
|
|
|
134598
134420
|
};
|
|
134599
134421
|
const requestRes = client._createRequest(context, {
|
|
134600
134422
|
security: requestSecurity,
|
|
134601
|
-
method: "
|
|
134423
|
+
method: "DELETE",
|
|
134602
134424
|
baseURL: options?.serverURL,
|
|
134603
134425
|
path,
|
|
134604
134426
|
headers,
|
|
@@ -134623,13 +134445,14 @@ async function $do301(client, request, options) {
|
|
|
134623
134445
|
const responseFields = {
|
|
134624
134446
|
HttpMeta: { Response: response, Request: req }
|
|
134625
134447
|
};
|
|
134626
|
-
const [result] = await match(
|
|
134448
|
+
const [result] = await match(nil(204, voidType()), jsonErr([401, 403, 404], RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134627
134449
|
if (!result.ok) {
|
|
134628
134450
|
return [result, { status: "complete", request: req, response }];
|
|
134629
134451
|
}
|
|
134630
134452
|
return [result, { status: "complete", request: req, response }];
|
|
134631
134453
|
}
|
|
134632
|
-
var
|
|
134454
|
+
var init_reposDelete = __esm(() => {
|
|
134455
|
+
init_esm();
|
|
134633
134456
|
init_encodings();
|
|
134634
134457
|
init_http();
|
|
134635
134458
|
init_matchers();
|
|
@@ -134642,43 +134465,42 @@ var init_reposCollaboratorsList = __esm(() => {
|
|
|
134642
134465
|
init_async();
|
|
134643
134466
|
});
|
|
134644
134467
|
|
|
134645
|
-
// src/mcp-server/tools/
|
|
134646
|
-
var args293, tool$
|
|
134647
|
-
var
|
|
134648
|
-
|
|
134468
|
+
// src/mcp-server/tools/reposDelete.ts
|
|
134469
|
+
var args293, tool$reposDelete;
|
|
134470
|
+
var init_reposDelete2 = __esm(() => {
|
|
134471
|
+
init_reposDelete();
|
|
134649
134472
|
init_operations();
|
|
134650
134473
|
init_tools();
|
|
134651
134474
|
args293 = {
|
|
134652
|
-
request:
|
|
134475
|
+
request: DeleteRepoRequest$inboundSchema
|
|
134653
134476
|
};
|
|
134654
|
-
tool$
|
|
134655
|
-
name: "repos-
|
|
134656
|
-
description: `
|
|
134477
|
+
tool$reposDelete = {
|
|
134478
|
+
name: "repos-delete",
|
|
134479
|
+
description: `Delete a repository
|
|
134657
134480
|
|
|
134658
|
-
|
|
134659
|
-
|
|
134481
|
+
Removes a repository; org owner/admin only. The DB delete is
|
|
134482
|
+
authoritative; the Gitea teardown is best-effort cleanup.
|
|
134660
134483
|
`,
|
|
134661
134484
|
args: args293,
|
|
134662
134485
|
tool: async (client, args294, ctx) => {
|
|
134663
|
-
const [result, apiCall] = await
|
|
134486
|
+
const [result, apiCall] = await reposDelete(client, args294.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134664
134487
|
if (!result.ok) {
|
|
134665
134488
|
return {
|
|
134666
134489
|
content: [{ type: "text", text: result.error.message }],
|
|
134667
134490
|
isError: true
|
|
134668
134491
|
};
|
|
134669
134492
|
}
|
|
134670
|
-
|
|
134671
|
-
return formatResult(value, apiCall);
|
|
134493
|
+
return formatResult(undefined, apiCall);
|
|
134672
134494
|
}
|
|
134673
134495
|
};
|
|
134674
134496
|
});
|
|
134675
134497
|
|
|
134676
|
-
// src/funcs/
|
|
134677
|
-
function
|
|
134498
|
+
// src/funcs/reposGet.ts
|
|
134499
|
+
function reposGet(client, request, options) {
|
|
134678
134500
|
return new APIPromise($do302(client, request, options));
|
|
134679
134501
|
}
|
|
134680
134502
|
async function $do302(client, request, options) {
|
|
134681
|
-
const parsed = safeParse4(request, (value) =>
|
|
134503
|
+
const parsed = safeParse4(request, (value) => GetRepoRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134682
134504
|
if (!parsed.ok) {
|
|
134683
134505
|
return [parsed, { status: "invalid" }];
|
|
134684
134506
|
}
|
|
@@ -134692,13 +134514,9 @@ async function $do302(client, request, options) {
|
|
|
134692
134514
|
org: encodeSimple("org", payload.org, {
|
|
134693
134515
|
explode: false,
|
|
134694
134516
|
charEncoding: "percent"
|
|
134695
|
-
}),
|
|
134696
|
-
user: encodeSimple("user", payload.user, {
|
|
134697
|
-
explode: false,
|
|
134698
|
-
charEncoding: "percent"
|
|
134699
134517
|
})
|
|
134700
134518
|
};
|
|
134701
|
-
const path = pathToFunc("/api/v1/repos/{org}/{name}
|
|
134519
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
134702
134520
|
const headers = new Headers(compactMap({
|
|
134703
134521
|
Accept: "application/json",
|
|
134704
134522
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -134709,7 +134527,7 @@ async function $do302(client, request, options) {
|
|
|
134709
134527
|
const context = {
|
|
134710
134528
|
options: client._options,
|
|
134711
134529
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134712
|
-
operationID: "
|
|
134530
|
+
operationID: "getRepo",
|
|
134713
134531
|
oAuth2Scopes: null,
|
|
134714
134532
|
resolvedSecurity: requestSecurity,
|
|
134715
134533
|
securitySource: client._options.bearerAuth,
|
|
@@ -134727,7 +134545,7 @@ async function $do302(client, request, options) {
|
|
|
134727
134545
|
};
|
|
134728
134546
|
const requestRes = client._createRequest(context, {
|
|
134729
134547
|
security: requestSecurity,
|
|
134730
|
-
method: "
|
|
134548
|
+
method: "GET",
|
|
134731
134549
|
baseURL: options?.serverURL,
|
|
134732
134550
|
path,
|
|
134733
134551
|
headers,
|
|
@@ -134752,14 +134570,13 @@ async function $do302(client, request, options) {
|
|
|
134752
134570
|
const responseFields = {
|
|
134753
134571
|
HttpMeta: { Response: response, Request: req }
|
|
134754
134572
|
};
|
|
134755
|
-
const [result] = await match(
|
|
134573
|
+
const [result] = await match(json(200, Repo$inboundSchema), jsonErr([401, 403, 404], RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134756
134574
|
if (!result.ok) {
|
|
134757
134575
|
return [result, { status: "complete", request: req, response }];
|
|
134758
134576
|
}
|
|
134759
134577
|
return [result, { status: "complete", request: req, response }];
|
|
134760
134578
|
}
|
|
134761
|
-
var
|
|
134762
|
-
init_esm();
|
|
134579
|
+
var init_reposGet = __esm(() => {
|
|
134763
134580
|
init_encodings();
|
|
134764
134581
|
init_http();
|
|
134765
134582
|
init_matchers();
|
|
@@ -134767,55 +134584,56 @@ var init_reposCollaboratorsRemove = __esm(() => {
|
|
|
134767
134584
|
init_schemas4();
|
|
134768
134585
|
init_security();
|
|
134769
134586
|
init_url();
|
|
134587
|
+
init_components();
|
|
134770
134588
|
init_errors4();
|
|
134771
134589
|
init_operations();
|
|
134772
134590
|
init_async();
|
|
134773
134591
|
});
|
|
134774
134592
|
|
|
134775
|
-
// src/mcp-server/tools/
|
|
134776
|
-
var args294, tool$
|
|
134777
|
-
var
|
|
134778
|
-
|
|
134593
|
+
// src/mcp-server/tools/reposGet.ts
|
|
134594
|
+
var args294, tool$reposGet;
|
|
134595
|
+
var init_reposGet2 = __esm(() => {
|
|
134596
|
+
init_reposGet();
|
|
134779
134597
|
init_operations();
|
|
134780
134598
|
init_tools();
|
|
134781
134599
|
args294 = {
|
|
134782
|
-
request:
|
|
134600
|
+
request: GetRepoRequest$inboundSchema
|
|
134783
134601
|
};
|
|
134784
|
-
tool$
|
|
134785
|
-
name: "repos-
|
|
134786
|
-
description: `
|
|
134602
|
+
tool$reposGet = {
|
|
134603
|
+
name: "repos-get",
|
|
134604
|
+
description: `Get a repository
|
|
134787
134605
|
|
|
134788
|
-
|
|
134789
|
-
|
|
134606
|
+
Reads a single repository after the org+role access check (org
|
|
134607
|
+
owner/admin of the repository's org only).
|
|
134790
134608
|
`,
|
|
134791
134609
|
args: args294,
|
|
134792
134610
|
tool: async (client, args295, ctx) => {
|
|
134793
|
-
const [result, apiCall] = await
|
|
134611
|
+
const [result, apiCall] = await reposGet(client, args295.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134794
134612
|
if (!result.ok) {
|
|
134795
134613
|
return {
|
|
134796
134614
|
content: [{ type: "text", text: result.error.message }],
|
|
134797
134615
|
isError: true
|
|
134798
134616
|
};
|
|
134799
134617
|
}
|
|
134800
|
-
|
|
134618
|
+
const value = result.value;
|
|
134619
|
+
return formatResult(value, apiCall);
|
|
134801
134620
|
}
|
|
134802
134621
|
};
|
|
134803
134622
|
});
|
|
134804
134623
|
|
|
134805
|
-
// src/funcs/
|
|
134806
|
-
function
|
|
134624
|
+
// src/funcs/reposList.ts
|
|
134625
|
+
function reposList(client, request, options) {
|
|
134807
134626
|
return new APIPromise($do303(client, request, options));
|
|
134808
134627
|
}
|
|
134809
134628
|
async function $do303(client, request, options) {
|
|
134810
|
-
const parsed = safeParse4(request, (value) =>
|
|
134629
|
+
const parsed = safeParse4(request, (value) => ListReposRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134811
134630
|
if (!parsed.ok) {
|
|
134812
134631
|
return [parsed, { status: "invalid" }];
|
|
134813
134632
|
}
|
|
134814
134633
|
const payload = parsed.value;
|
|
134815
|
-
const body =
|
|
134634
|
+
const body = null;
|
|
134816
134635
|
const path = pathToFunc("/api/v1/repos")();
|
|
134817
134636
|
const headers = new Headers(compactMap({
|
|
134818
|
-
"Content-Type": "application/json",
|
|
134819
134637
|
Accept: "application/json",
|
|
134820
134638
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
134821
134639
|
}));
|
|
@@ -134825,7 +134643,7 @@ async function $do303(client, request, options) {
|
|
|
134825
134643
|
const context = {
|
|
134826
134644
|
options: client._options,
|
|
134827
134645
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134828
|
-
operationID: "
|
|
134646
|
+
operationID: "listRepos",
|
|
134829
134647
|
oAuth2Scopes: null,
|
|
134830
134648
|
resolvedSecurity: requestSecurity,
|
|
134831
134649
|
securitySource: client._options.bearerAuth,
|
|
@@ -134843,7 +134661,7 @@ async function $do303(client, request, options) {
|
|
|
134843
134661
|
};
|
|
134844
134662
|
const requestRes = client._createRequest(context, {
|
|
134845
134663
|
security: requestSecurity,
|
|
134846
|
-
method: "
|
|
134664
|
+
method: "GET",
|
|
134847
134665
|
baseURL: options?.serverURL,
|
|
134848
134666
|
path,
|
|
134849
134667
|
headers,
|
|
@@ -134868,13 +134686,13 @@ async function $do303(client, request, options) {
|
|
|
134868
134686
|
const responseFields = {
|
|
134869
134687
|
HttpMeta: { Response: response, Request: req }
|
|
134870
134688
|
};
|
|
134871
|
-
const [result] = await match(json(
|
|
134689
|
+
const [result] = await match(json(200, ListReposResponseBody$inboundSchema), jsonErr([401, 403], RepoError$inboundSchema), jsonErr([500, 503], RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134872
134690
|
if (!result.ok) {
|
|
134873
134691
|
return [result, { status: "complete", request: req, response }];
|
|
134874
134692
|
}
|
|
134875
134693
|
return [result, { status: "complete", request: req, response }];
|
|
134876
134694
|
}
|
|
134877
|
-
var
|
|
134695
|
+
var init_reposList = __esm(() => {
|
|
134878
134696
|
init_encodings();
|
|
134879
134697
|
init_http();
|
|
134880
134698
|
init_matchers();
|
|
@@ -134882,32 +134700,30 @@ var init_reposCreate = __esm(() => {
|
|
|
134882
134700
|
init_schemas4();
|
|
134883
134701
|
init_security();
|
|
134884
134702
|
init_url();
|
|
134885
|
-
init_components();
|
|
134886
134703
|
init_errors4();
|
|
134887
134704
|
init_operations();
|
|
134888
134705
|
init_async();
|
|
134889
134706
|
});
|
|
134890
134707
|
|
|
134891
|
-
// src/mcp-server/tools/
|
|
134892
|
-
var args295, tool$
|
|
134893
|
-
var
|
|
134894
|
-
|
|
134708
|
+
// src/mcp-server/tools/reposList.ts
|
|
134709
|
+
var args295, tool$reposList;
|
|
134710
|
+
var init_reposList2 = __esm(() => {
|
|
134711
|
+
init_reposList();
|
|
134895
134712
|
init_operations();
|
|
134896
134713
|
init_tools();
|
|
134897
134714
|
args295 = {
|
|
134898
|
-
request:
|
|
134715
|
+
request: ListReposRequest$inboundSchema
|
|
134899
134716
|
};
|
|
134900
|
-
tool$
|
|
134901
|
-
name: "repos-
|
|
134902
|
-
description: `
|
|
134717
|
+
tool$reposList = {
|
|
134718
|
+
name: "repos-list",
|
|
134719
|
+
description: `List the caller's org's repositories
|
|
134903
134720
|
|
|
134904
|
-
|
|
134905
|
-
|
|
134906
|
-
becomes the owner.
|
|
134721
|
+
Returns every repository in the caller's org (org owner/admin only).
|
|
134722
|
+
Pure DB read.
|
|
134907
134723
|
`,
|
|
134908
134724
|
args: args295,
|
|
134909
134725
|
tool: async (client, args296, ctx) => {
|
|
134910
|
-
const [result, apiCall] = await
|
|
134726
|
+
const [result, apiCall] = await reposList(client, args296.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134911
134727
|
if (!result.ok) {
|
|
134912
134728
|
return {
|
|
134913
134729
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -134920,17 +134736,17 @@ becomes the owner.
|
|
|
134920
134736
|
};
|
|
134921
134737
|
});
|
|
134922
134738
|
|
|
134923
|
-
// src/funcs/
|
|
134924
|
-
function
|
|
134739
|
+
// src/funcs/reposUpdate.ts
|
|
134740
|
+
function reposUpdate(client, request, options) {
|
|
134925
134741
|
return new APIPromise($do304(client, request, options));
|
|
134926
134742
|
}
|
|
134927
134743
|
async function $do304(client, request, options) {
|
|
134928
|
-
const parsed = safeParse4(request, (value) =>
|
|
134744
|
+
const parsed = safeParse4(request, (value) => PatchRepoRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
134929
134745
|
if (!parsed.ok) {
|
|
134930
134746
|
return [parsed, { status: "invalid" }];
|
|
134931
134747
|
}
|
|
134932
134748
|
const payload = parsed.value;
|
|
134933
|
-
const body =
|
|
134749
|
+
const body = encodeJSON("body", payload.PatchRepoRequest, { explode: true });
|
|
134934
134750
|
const pathParams = {
|
|
134935
134751
|
name: encodeSimple("name", payload.name, {
|
|
134936
134752
|
explode: false,
|
|
@@ -134943,6 +134759,7 @@ async function $do304(client, request, options) {
|
|
|
134943
134759
|
};
|
|
134944
134760
|
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
134945
134761
|
const headers = new Headers(compactMap({
|
|
134762
|
+
"Content-Type": "application/json",
|
|
134946
134763
|
Accept: "application/json",
|
|
134947
134764
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
134948
134765
|
}));
|
|
@@ -134952,7 +134769,7 @@ async function $do304(client, request, options) {
|
|
|
134952
134769
|
const context = {
|
|
134953
134770
|
options: client._options,
|
|
134954
134771
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134955
|
-
operationID: "
|
|
134772
|
+
operationID: "patchRepo",
|
|
134956
134773
|
oAuth2Scopes: null,
|
|
134957
134774
|
resolvedSecurity: requestSecurity,
|
|
134958
134775
|
securitySource: client._options.bearerAuth,
|
|
@@ -134970,7 +134787,7 @@ async function $do304(client, request, options) {
|
|
|
134970
134787
|
};
|
|
134971
134788
|
const requestRes = client._createRequest(context, {
|
|
134972
134789
|
security: requestSecurity,
|
|
134973
|
-
method: "
|
|
134790
|
+
method: "PATCH",
|
|
134974
134791
|
baseURL: options?.serverURL,
|
|
134975
134792
|
path,
|
|
134976
134793
|
headers,
|
|
@@ -134995,14 +134812,13 @@ async function $do304(client, request, options) {
|
|
|
134995
134812
|
const responseFields = {
|
|
134996
134813
|
HttpMeta: { Response: response, Request: req }
|
|
134997
134814
|
};
|
|
134998
|
-
const [result] = await match(
|
|
134815
|
+
const [result] = await match(json(200, Repo$inboundSchema), jsonErr([400, 401, 403, 404, 409], RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134999
134816
|
if (!result.ok) {
|
|
135000
134817
|
return [result, { status: "complete", request: req, response }];
|
|
135001
134818
|
}
|
|
135002
134819
|
return [result, { status: "complete", request: req, response }];
|
|
135003
134820
|
}
|
|
135004
|
-
var
|
|
135005
|
-
init_esm();
|
|
134821
|
+
var init_reposUpdate = __esm(() => {
|
|
135006
134822
|
init_encodings();
|
|
135007
134823
|
init_http();
|
|
135008
134824
|
init_matchers();
|
|
@@ -135010,64 +134826,60 @@ var init_reposDelete = __esm(() => {
|
|
|
135010
134826
|
init_schemas4();
|
|
135011
134827
|
init_security();
|
|
135012
134828
|
init_url();
|
|
134829
|
+
init_components();
|
|
135013
134830
|
init_errors4();
|
|
135014
134831
|
init_operations();
|
|
135015
134832
|
init_async();
|
|
135016
134833
|
});
|
|
135017
134834
|
|
|
135018
|
-
// src/mcp-server/tools/
|
|
135019
|
-
var args296, tool$
|
|
135020
|
-
var
|
|
135021
|
-
|
|
134835
|
+
// src/mcp-server/tools/reposUpdate.ts
|
|
134836
|
+
var args296, tool$reposUpdate;
|
|
134837
|
+
var init_reposUpdate2 = __esm(() => {
|
|
134838
|
+
init_reposUpdate();
|
|
135022
134839
|
init_operations();
|
|
135023
134840
|
init_tools();
|
|
135024
134841
|
args296 = {
|
|
135025
|
-
request:
|
|
134842
|
+
request: PatchRepoRequest$inboundSchema2
|
|
135026
134843
|
};
|
|
135027
|
-
tool$
|
|
135028
|
-
name: "repos-
|
|
135029
|
-
description: `
|
|
134844
|
+
tool$reposUpdate = {
|
|
134845
|
+
name: "repos-update",
|
|
134846
|
+
description: `Update a repository's labels
|
|
135030
134847
|
|
|
135031
|
-
|
|
135032
|
-
|
|
134848
|
+
Applies a label-only update (name/description); org owner/admin only.
|
|
134849
|
+
The repository id is stable, so a rename is a one-row DB update — no
|
|
134850
|
+
Gitea write. Omitted fields are left unchanged.
|
|
135033
134851
|
`,
|
|
135034
134852
|
args: args296,
|
|
135035
134853
|
tool: async (client, args297, ctx) => {
|
|
135036
|
-
const [result, apiCall] = await
|
|
134854
|
+
const [result, apiCall] = await reposUpdate(client, args297.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135037
134855
|
if (!result.ok) {
|
|
135038
134856
|
return {
|
|
135039
134857
|
content: [{ type: "text", text: result.error.message }],
|
|
135040
134858
|
isError: true
|
|
135041
134859
|
};
|
|
135042
134860
|
}
|
|
135043
|
-
|
|
134861
|
+
const value = result.value;
|
|
134862
|
+
return formatResult(value, apiCall);
|
|
135044
134863
|
}
|
|
135045
134864
|
};
|
|
135046
134865
|
});
|
|
135047
134866
|
|
|
135048
|
-
// src/funcs/
|
|
135049
|
-
function
|
|
134867
|
+
// src/funcs/sandboxCreate.ts
|
|
134868
|
+
function sandboxCreate(client, request, options) {
|
|
135050
134869
|
return new APIPromise($do305(client, request, options));
|
|
135051
134870
|
}
|
|
135052
134871
|
async function $do305(client, request, options) {
|
|
135053
|
-
const parsed = safeParse4(request, (value) =>
|
|
134872
|
+
const parsed = safeParse4(request, (value) => CreateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
135054
134873
|
if (!parsed.ok) {
|
|
135055
134874
|
return [parsed, { status: "invalid" }];
|
|
135056
134875
|
}
|
|
135057
134876
|
const payload = parsed.value;
|
|
135058
|
-
const body =
|
|
135059
|
-
|
|
135060
|
-
|
|
135061
|
-
|
|
135062
|
-
charEncoding: "percent"
|
|
135063
|
-
}),
|
|
135064
|
-
org: encodeSimple("org", payload.org, {
|
|
135065
|
-
explode: false,
|
|
135066
|
-
charEncoding: "percent"
|
|
135067
|
-
})
|
|
135068
|
-
};
|
|
135069
|
-
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
134877
|
+
const body = encodeJSON("body", payload.CreateSessionRequest, {
|
|
134878
|
+
explode: true
|
|
134879
|
+
});
|
|
134880
|
+
const path = pathToFunc("/api/v1/sandbox/sessions")();
|
|
135070
134881
|
const headers = new Headers(compactMap({
|
|
134882
|
+
"Content-Type": "application/json",
|
|
135071
134883
|
Accept: "application/json",
|
|
135072
134884
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135073
134885
|
}));
|
|
@@ -135077,7 +134889,7 @@ async function $do305(client, request, options) {
|
|
|
135077
134889
|
const context = {
|
|
135078
134890
|
options: client._options,
|
|
135079
134891
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135080
|
-
operationID: "
|
|
134892
|
+
operationID: "createSession",
|
|
135081
134893
|
oAuth2Scopes: null,
|
|
135082
134894
|
resolvedSecurity: requestSecurity,
|
|
135083
134895
|
securitySource: client._options.bearerAuth,
|
|
@@ -135095,368 +134907,7 @@ async function $do305(client, request, options) {
|
|
|
135095
134907
|
};
|
|
135096
134908
|
const requestRes = client._createRequest(context, {
|
|
135097
134909
|
security: requestSecurity,
|
|
135098
|
-
method: "
|
|
135099
|
-
baseURL: options?.serverURL,
|
|
135100
|
-
path,
|
|
135101
|
-
headers,
|
|
135102
|
-
body,
|
|
135103
|
-
userAgent: client._options.userAgent,
|
|
135104
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135105
|
-
}, options);
|
|
135106
|
-
if (!requestRes.ok) {
|
|
135107
|
-
return [requestRes, { status: "invalid" }];
|
|
135108
|
-
}
|
|
135109
|
-
const req = requestRes.value;
|
|
135110
|
-
const doResult = await client._do(req, {
|
|
135111
|
-
context,
|
|
135112
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135113
|
-
retryConfig: context.retryConfig,
|
|
135114
|
-
retryCodes: context.retryCodes
|
|
135115
|
-
});
|
|
135116
|
-
if (!doResult.ok) {
|
|
135117
|
-
return [doResult, { status: "request-error", request: req }];
|
|
135118
|
-
}
|
|
135119
|
-
const response = doResult.value;
|
|
135120
|
-
const responseFields = {
|
|
135121
|
-
HttpMeta: { Response: response, Request: req }
|
|
135122
|
-
};
|
|
135123
|
-
const [result] = await match(json(200, Repo$inboundSchema), jsonErr([401, 403, 404], RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135124
|
-
if (!result.ok) {
|
|
135125
|
-
return [result, { status: "complete", request: req, response }];
|
|
135126
|
-
}
|
|
135127
|
-
return [result, { status: "complete", request: req, response }];
|
|
135128
|
-
}
|
|
135129
|
-
var init_reposGet = __esm(() => {
|
|
135130
|
-
init_encodings();
|
|
135131
|
-
init_http();
|
|
135132
|
-
init_matchers();
|
|
135133
|
-
init_primitives();
|
|
135134
|
-
init_schemas4();
|
|
135135
|
-
init_security();
|
|
135136
|
-
init_url();
|
|
135137
|
-
init_components();
|
|
135138
|
-
init_errors4();
|
|
135139
|
-
init_operations();
|
|
135140
|
-
init_async();
|
|
135141
|
-
});
|
|
135142
|
-
|
|
135143
|
-
// src/mcp-server/tools/reposGet.ts
|
|
135144
|
-
var args297, tool$reposGet;
|
|
135145
|
-
var init_reposGet2 = __esm(() => {
|
|
135146
|
-
init_reposGet();
|
|
135147
|
-
init_operations();
|
|
135148
|
-
init_tools();
|
|
135149
|
-
args297 = {
|
|
135150
|
-
request: GetRepoRequest$inboundSchema
|
|
135151
|
-
};
|
|
135152
|
-
tool$reposGet = {
|
|
135153
|
-
name: "repos-get",
|
|
135154
|
-
description: `Get a repository
|
|
135155
|
-
|
|
135156
|
-
Reads a single repository after a reader-level access check.`,
|
|
135157
|
-
args: args297,
|
|
135158
|
-
tool: async (client, args298, ctx) => {
|
|
135159
|
-
const [result, apiCall] = await reposGet(client, args298.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135160
|
-
if (!result.ok) {
|
|
135161
|
-
return {
|
|
135162
|
-
content: [{ type: "text", text: result.error.message }],
|
|
135163
|
-
isError: true
|
|
135164
|
-
};
|
|
135165
|
-
}
|
|
135166
|
-
const value = result.value;
|
|
135167
|
-
return formatResult(value, apiCall);
|
|
135168
|
-
}
|
|
135169
|
-
};
|
|
135170
|
-
});
|
|
135171
|
-
|
|
135172
|
-
// src/funcs/reposList.ts
|
|
135173
|
-
function reposList(client, request, options) {
|
|
135174
|
-
return new APIPromise($do306(client, request, options));
|
|
135175
|
-
}
|
|
135176
|
-
async function $do306(client, request, options) {
|
|
135177
|
-
const parsed = safeParse4(request, (value) => ListReposRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135178
|
-
if (!parsed.ok) {
|
|
135179
|
-
return [parsed, { status: "invalid" }];
|
|
135180
|
-
}
|
|
135181
|
-
const payload = parsed.value;
|
|
135182
|
-
const body = null;
|
|
135183
|
-
const path = pathToFunc("/api/v1/repos")();
|
|
135184
|
-
const headers = new Headers(compactMap({
|
|
135185
|
-
Accept: "application/json",
|
|
135186
|
-
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135187
|
-
}));
|
|
135188
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135189
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135190
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135191
|
-
const context = {
|
|
135192
|
-
options: client._options,
|
|
135193
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135194
|
-
operationID: "listRepos",
|
|
135195
|
-
oAuth2Scopes: null,
|
|
135196
|
-
resolvedSecurity: requestSecurity,
|
|
135197
|
-
securitySource: client._options.bearerAuth,
|
|
135198
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135199
|
-
strategy: "backoff",
|
|
135200
|
-
backoff: {
|
|
135201
|
-
initialInterval: 500,
|
|
135202
|
-
maxInterval: 5000,
|
|
135203
|
-
exponent: 1.5,
|
|
135204
|
-
maxElapsedTime: 15000
|
|
135205
|
-
},
|
|
135206
|
-
retryConnectionErrors: true
|
|
135207
|
-
},
|
|
135208
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135209
|
-
};
|
|
135210
|
-
const requestRes = client._createRequest(context, {
|
|
135211
|
-
security: requestSecurity,
|
|
135212
|
-
method: "GET",
|
|
135213
|
-
baseURL: options?.serverURL,
|
|
135214
|
-
path,
|
|
135215
|
-
headers,
|
|
135216
|
-
body,
|
|
135217
|
-
userAgent: client._options.userAgent,
|
|
135218
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135219
|
-
}, options);
|
|
135220
|
-
if (!requestRes.ok) {
|
|
135221
|
-
return [requestRes, { status: "invalid" }];
|
|
135222
|
-
}
|
|
135223
|
-
const req = requestRes.value;
|
|
135224
|
-
const doResult = await client._do(req, {
|
|
135225
|
-
context,
|
|
135226
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135227
|
-
retryConfig: context.retryConfig,
|
|
135228
|
-
retryCodes: context.retryCodes
|
|
135229
|
-
});
|
|
135230
|
-
if (!doResult.ok) {
|
|
135231
|
-
return [doResult, { status: "request-error", request: req }];
|
|
135232
|
-
}
|
|
135233
|
-
const response = doResult.value;
|
|
135234
|
-
const responseFields = {
|
|
135235
|
-
HttpMeta: { Response: response, Request: req }
|
|
135236
|
-
};
|
|
135237
|
-
const [result] = await match(json(200, ListReposResponseBody$inboundSchema), jsonErr(401, RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135238
|
-
if (!result.ok) {
|
|
135239
|
-
return [result, { status: "complete", request: req, response }];
|
|
135240
|
-
}
|
|
135241
|
-
return [result, { status: "complete", request: req, response }];
|
|
135242
|
-
}
|
|
135243
|
-
var init_reposList = __esm(() => {
|
|
135244
|
-
init_encodings();
|
|
135245
|
-
init_http();
|
|
135246
|
-
init_matchers();
|
|
135247
|
-
init_primitives();
|
|
135248
|
-
init_schemas4();
|
|
135249
|
-
init_security();
|
|
135250
|
-
init_url();
|
|
135251
|
-
init_errors4();
|
|
135252
|
-
init_operations();
|
|
135253
|
-
init_async();
|
|
135254
|
-
});
|
|
135255
|
-
|
|
135256
|
-
// src/mcp-server/tools/reposList.ts
|
|
135257
|
-
var args298, tool$reposList;
|
|
135258
|
-
var init_reposList2 = __esm(() => {
|
|
135259
|
-
init_reposList();
|
|
135260
|
-
init_operations();
|
|
135261
|
-
init_tools();
|
|
135262
|
-
args298 = {
|
|
135263
|
-
request: ListReposRequest$inboundSchema
|
|
135264
|
-
};
|
|
135265
|
-
tool$reposList = {
|
|
135266
|
-
name: "repos-list",
|
|
135267
|
-
description: `List the caller's repositories
|
|
135268
|
-
|
|
135269
|
-
Returns the repositories visible to the caller within their (org, team),
|
|
135270
|
-
widened to the whole (org, team) for an org admin. Pure DB read.
|
|
135271
|
-
`,
|
|
135272
|
-
args: args298,
|
|
135273
|
-
tool: async (client, args299, ctx) => {
|
|
135274
|
-
const [result, apiCall] = await reposList(client, args299.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135275
|
-
if (!result.ok) {
|
|
135276
|
-
return {
|
|
135277
|
-
content: [{ type: "text", text: result.error.message }],
|
|
135278
|
-
isError: true
|
|
135279
|
-
};
|
|
135280
|
-
}
|
|
135281
|
-
const value = result.value;
|
|
135282
|
-
return formatResult(value, apiCall);
|
|
135283
|
-
}
|
|
135284
|
-
};
|
|
135285
|
-
});
|
|
135286
|
-
|
|
135287
|
-
// src/funcs/reposUpdate.ts
|
|
135288
|
-
function reposUpdate(client, request, options) {
|
|
135289
|
-
return new APIPromise($do307(client, request, options));
|
|
135290
|
-
}
|
|
135291
|
-
async function $do307(client, request, options) {
|
|
135292
|
-
const parsed = safeParse4(request, (value) => PatchRepoRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
135293
|
-
if (!parsed.ok) {
|
|
135294
|
-
return [parsed, { status: "invalid" }];
|
|
135295
|
-
}
|
|
135296
|
-
const payload = parsed.value;
|
|
135297
|
-
const body = encodeJSON("body", payload.PatchRepoRequest, { explode: true });
|
|
135298
|
-
const pathParams = {
|
|
135299
|
-
name: encodeSimple("name", payload.name, {
|
|
135300
|
-
explode: false,
|
|
135301
|
-
charEncoding: "percent"
|
|
135302
|
-
}),
|
|
135303
|
-
org: encodeSimple("org", payload.org, {
|
|
135304
|
-
explode: false,
|
|
135305
|
-
charEncoding: "percent"
|
|
135306
|
-
})
|
|
135307
|
-
};
|
|
135308
|
-
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
135309
|
-
const headers = new Headers(compactMap({
|
|
135310
|
-
"Content-Type": "application/json",
|
|
135311
|
-
Accept: "application/json",
|
|
135312
|
-
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135313
|
-
}));
|
|
135314
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135315
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135316
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135317
|
-
const context = {
|
|
135318
|
-
options: client._options,
|
|
135319
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135320
|
-
operationID: "patchRepo",
|
|
135321
|
-
oAuth2Scopes: null,
|
|
135322
|
-
resolvedSecurity: requestSecurity,
|
|
135323
|
-
securitySource: client._options.bearerAuth,
|
|
135324
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135325
|
-
strategy: "backoff",
|
|
135326
|
-
backoff: {
|
|
135327
|
-
initialInterval: 500,
|
|
135328
|
-
maxInterval: 5000,
|
|
135329
|
-
exponent: 1.5,
|
|
135330
|
-
maxElapsedTime: 15000
|
|
135331
|
-
},
|
|
135332
|
-
retryConnectionErrors: true
|
|
135333
|
-
},
|
|
135334
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135335
|
-
};
|
|
135336
|
-
const requestRes = client._createRequest(context, {
|
|
135337
|
-
security: requestSecurity,
|
|
135338
|
-
method: "PATCH",
|
|
135339
|
-
baseURL: options?.serverURL,
|
|
135340
|
-
path,
|
|
135341
|
-
headers,
|
|
135342
|
-
body,
|
|
135343
|
-
userAgent: client._options.userAgent,
|
|
135344
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135345
|
-
}, options);
|
|
135346
|
-
if (!requestRes.ok) {
|
|
135347
|
-
return [requestRes, { status: "invalid" }];
|
|
135348
|
-
}
|
|
135349
|
-
const req = requestRes.value;
|
|
135350
|
-
const doResult = await client._do(req, {
|
|
135351
|
-
context,
|
|
135352
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135353
|
-
retryConfig: context.retryConfig,
|
|
135354
|
-
retryCodes: context.retryCodes
|
|
135355
|
-
});
|
|
135356
|
-
if (!doResult.ok) {
|
|
135357
|
-
return [doResult, { status: "request-error", request: req }];
|
|
135358
|
-
}
|
|
135359
|
-
const response = doResult.value;
|
|
135360
|
-
const responseFields = {
|
|
135361
|
-
HttpMeta: { Response: response, Request: req }
|
|
135362
|
-
};
|
|
135363
|
-
const [result] = await match(json(200, Repo$inboundSchema), jsonErr([400, 401, 403, 404, 409], RepoError$inboundSchema), jsonErr(500, RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135364
|
-
if (!result.ok) {
|
|
135365
|
-
return [result, { status: "complete", request: req, response }];
|
|
135366
|
-
}
|
|
135367
|
-
return [result, { status: "complete", request: req, response }];
|
|
135368
|
-
}
|
|
135369
|
-
var init_reposUpdate = __esm(() => {
|
|
135370
|
-
init_encodings();
|
|
135371
|
-
init_http();
|
|
135372
|
-
init_matchers();
|
|
135373
|
-
init_primitives();
|
|
135374
|
-
init_schemas4();
|
|
135375
|
-
init_security();
|
|
135376
|
-
init_url();
|
|
135377
|
-
init_components();
|
|
135378
|
-
init_errors4();
|
|
135379
|
-
init_operations();
|
|
135380
|
-
init_async();
|
|
135381
|
-
});
|
|
135382
|
-
|
|
135383
|
-
// src/mcp-server/tools/reposUpdate.ts
|
|
135384
|
-
var args299, tool$reposUpdate;
|
|
135385
|
-
var init_reposUpdate2 = __esm(() => {
|
|
135386
|
-
init_reposUpdate();
|
|
135387
|
-
init_operations();
|
|
135388
|
-
init_tools();
|
|
135389
|
-
args299 = {
|
|
135390
|
-
request: PatchRepoRequest$inboundSchema2
|
|
135391
|
-
};
|
|
135392
|
-
tool$reposUpdate = {
|
|
135393
|
-
name: "repos-update",
|
|
135394
|
-
description: `Update a repository's labels
|
|
135395
|
-
|
|
135396
|
-
Applies a label-only update (name/visibility/description); owner or org
|
|
135397
|
-
admin only. The repository id is stable, so a rename is a one-row DB
|
|
135398
|
-
update — no Gitea/fga writes. Omitted fields are left unchanged;
|
|
135399
|
-
\`visibility\` cannot be set to empty.
|
|
135400
|
-
`,
|
|
135401
|
-
args: args299,
|
|
135402
|
-
tool: async (client, args300, ctx) => {
|
|
135403
|
-
const [result, apiCall] = await reposUpdate(client, args300.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135404
|
-
if (!result.ok) {
|
|
135405
|
-
return {
|
|
135406
|
-
content: [{ type: "text", text: result.error.message }],
|
|
135407
|
-
isError: true
|
|
135408
|
-
};
|
|
135409
|
-
}
|
|
135410
|
-
const value = result.value;
|
|
135411
|
-
return formatResult(value, apiCall);
|
|
135412
|
-
}
|
|
135413
|
-
};
|
|
135414
|
-
});
|
|
135415
|
-
|
|
135416
|
-
// src/funcs/sandboxCreate.ts
|
|
135417
|
-
function sandboxCreate(client, request, options) {
|
|
135418
|
-
return new APIPromise($do308(client, request, options));
|
|
135419
|
-
}
|
|
135420
|
-
async function $do308(client, request, options) {
|
|
135421
|
-
const parsed = safeParse4(request, (value) => CreateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
135422
|
-
if (!parsed.ok) {
|
|
135423
|
-
return [parsed, { status: "invalid" }];
|
|
135424
|
-
}
|
|
135425
|
-
const payload = parsed.value;
|
|
135426
|
-
const body = encodeJSON("body", payload.CreateSessionRequest, {
|
|
135427
|
-
explode: true
|
|
135428
|
-
});
|
|
135429
|
-
const path = pathToFunc("/api/v1/sandbox/sessions")();
|
|
135430
|
-
const headers = new Headers(compactMap({
|
|
135431
|
-
"Content-Type": "application/json",
|
|
135432
|
-
Accept: "application/json",
|
|
135433
|
-
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135434
|
-
}));
|
|
135435
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135436
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135437
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135438
|
-
const context = {
|
|
135439
|
-
options: client._options,
|
|
135440
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135441
|
-
operationID: "createSession",
|
|
135442
|
-
oAuth2Scopes: null,
|
|
135443
|
-
resolvedSecurity: requestSecurity,
|
|
135444
|
-
securitySource: client._options.bearerAuth,
|
|
135445
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135446
|
-
strategy: "backoff",
|
|
135447
|
-
backoff: {
|
|
135448
|
-
initialInterval: 500,
|
|
135449
|
-
maxInterval: 5000,
|
|
135450
|
-
exponent: 1.5,
|
|
135451
|
-
maxElapsedTime: 15000
|
|
135452
|
-
},
|
|
135453
|
-
retryConnectionErrors: true
|
|
135454
|
-
},
|
|
135455
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135456
|
-
};
|
|
135457
|
-
const requestRes = client._createRequest(context, {
|
|
135458
|
-
security: requestSecurity,
|
|
135459
|
-
method: "POST",
|
|
134910
|
+
method: "POST",
|
|
135460
134911
|
baseURL: options?.serverURL,
|
|
135461
134912
|
path,
|
|
135462
134913
|
headers,
|
|
@@ -135502,12 +134953,12 @@ var init_sandboxCreate = __esm(() => {
|
|
|
135502
134953
|
});
|
|
135503
134954
|
|
|
135504
134955
|
// src/mcp-server/tools/sandboxCreate.ts
|
|
135505
|
-
var
|
|
134956
|
+
var args297, tool$sandboxCreate;
|
|
135506
134957
|
var init_sandboxCreate2 = __esm(() => {
|
|
135507
134958
|
init_sandboxCreate();
|
|
135508
134959
|
init_operations();
|
|
135509
134960
|
init_tools();
|
|
135510
|
-
|
|
134961
|
+
args297 = {
|
|
135511
134962
|
request: CreateSessionRequest$inboundSchema2
|
|
135512
134963
|
};
|
|
135513
134964
|
tool$sandboxCreate = {
|
|
@@ -135515,9 +134966,9 @@ var init_sandboxCreate2 = __esm(() => {
|
|
|
135515
134966
|
description: `Create Session
|
|
135516
134967
|
|
|
135517
134968
|
Create a sandbox session and return its public session metadata, session token, and provider. Set \`session_kind\` to \`browser\` to start a browser-backed session instead of a standard command/code sandbox. Set \`queue_if_full\` to \`true\` to queue the request instead of failing when runner capacity is temporarily unavailable. It does not queue requests for session kinds the deployment does not support. Browser sessions require a Firecracker-backed deployment; standard-only deployments reject them immediately with \`browser_sessions_not_enabled\`.`,
|
|
135518
|
-
args:
|
|
135519
|
-
tool: async (client,
|
|
135520
|
-
const [result, apiCall] = await sandboxCreate(client,
|
|
134969
|
+
args: args297,
|
|
134970
|
+
tool: async (client, args298, ctx) => {
|
|
134971
|
+
const [result, apiCall] = await sandboxCreate(client, args298.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135521
134972
|
if (!result.ok) {
|
|
135522
134973
|
return {
|
|
135523
134974
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135532,9 +134983,9 @@ Create a sandbox session and return its public session metadata, session token,
|
|
|
135532
134983
|
|
|
135533
134984
|
// src/funcs/sandboxDownloadArchive.ts
|
|
135534
134985
|
function sandboxDownloadArchive(client, request, options) {
|
|
135535
|
-
return new APIPromise($
|
|
134986
|
+
return new APIPromise($do306(client, request, options));
|
|
135536
134987
|
}
|
|
135537
|
-
async function $
|
|
134988
|
+
async function $do306(client, request, options) {
|
|
135538
134989
|
const parsed = safeParse4(request, (value) => DownloadWorkspaceArchiveRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135539
134990
|
if (!parsed.ok) {
|
|
135540
134991
|
return [parsed, { status: "invalid" }];
|
|
@@ -135631,12 +135082,12 @@ var init_sandboxDownloadArchive = __esm(() => {
|
|
|
135631
135082
|
});
|
|
135632
135083
|
|
|
135633
135084
|
// src/mcp-server/tools/sandboxDownloadArchive.ts
|
|
135634
|
-
var
|
|
135085
|
+
var args298, tool$sandboxDownloadArchive;
|
|
135635
135086
|
var init_sandboxDownloadArchive2 = __esm(() => {
|
|
135636
135087
|
init_sandboxDownloadArchive();
|
|
135637
135088
|
init_operations();
|
|
135638
135089
|
init_tools();
|
|
135639
|
-
|
|
135090
|
+
args298 = {
|
|
135640
135091
|
request: DownloadWorkspaceArchiveRequest$inboundSchema
|
|
135641
135092
|
};
|
|
135642
135093
|
tool$sandboxDownloadArchive = {
|
|
@@ -135644,9 +135095,9 @@ var init_sandboxDownloadArchive2 = __esm(() => {
|
|
|
135644
135095
|
description: `Download Workspace Archive
|
|
135645
135096
|
|
|
135646
135097
|
Download a zip archive containing the selected workspace paths.`,
|
|
135647
|
-
args:
|
|
135648
|
-
tool: async (client,
|
|
135649
|
-
const [result, apiCall] = await sandboxDownloadArchive(client,
|
|
135098
|
+
args: args298,
|
|
135099
|
+
tool: async (client, args299, ctx) => {
|
|
135100
|
+
const [result, apiCall] = await sandboxDownloadArchive(client, args299.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135650
135101
|
if (!result.ok) {
|
|
135651
135102
|
return {
|
|
135652
135103
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135661,9 +135112,9 @@ Download a zip archive containing the selected workspace paths.`,
|
|
|
135661
135112
|
|
|
135662
135113
|
// src/funcs/sandboxDownloadFile.ts
|
|
135663
135114
|
function sandboxDownloadFile(client, request, options) {
|
|
135664
|
-
return new APIPromise($
|
|
135115
|
+
return new APIPromise($do307(client, request, options));
|
|
135665
135116
|
}
|
|
135666
|
-
async function $
|
|
135117
|
+
async function $do307(client, request, options) {
|
|
135667
135118
|
const parsed = safeParse4(request, (value) => DownloadWorkspaceFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135668
135119
|
if (!parsed.ok) {
|
|
135669
135120
|
return [parsed, { status: "invalid" }];
|
|
@@ -135759,12 +135210,12 @@ var init_sandboxDownloadFile = __esm(() => {
|
|
|
135759
135210
|
});
|
|
135760
135211
|
|
|
135761
135212
|
// src/mcp-server/tools/sandboxDownloadFile.ts
|
|
135762
|
-
var
|
|
135213
|
+
var args299, tool$sandboxDownloadFile;
|
|
135763
135214
|
var init_sandboxDownloadFile2 = __esm(() => {
|
|
135764
135215
|
init_sandboxDownloadFile();
|
|
135765
135216
|
init_operations();
|
|
135766
135217
|
init_tools();
|
|
135767
|
-
|
|
135218
|
+
args299 = {
|
|
135768
135219
|
request: DownloadWorkspaceFileRequest$inboundSchema
|
|
135769
135220
|
};
|
|
135770
135221
|
tool$sandboxDownloadFile = {
|
|
@@ -135772,9 +135223,9 @@ var init_sandboxDownloadFile2 = __esm(() => {
|
|
|
135772
135223
|
description: `Download Workspace File
|
|
135773
135224
|
|
|
135774
135225
|
Download raw bytes from a file in the session workspace.`,
|
|
135775
|
-
args:
|
|
135776
|
-
tool: async (client,
|
|
135777
|
-
const [result, apiCall] = await sandboxDownloadFile(client,
|
|
135226
|
+
args: args299,
|
|
135227
|
+
tool: async (client, args300, ctx) => {
|
|
135228
|
+
const [result, apiCall] = await sandboxDownloadFile(client, args300.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135778
135229
|
if (!result.ok) {
|
|
135779
135230
|
return {
|
|
135780
135231
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135789,9 +135240,9 @@ Download raw bytes from a file in the session workspace.`,
|
|
|
135789
135240
|
|
|
135790
135241
|
// src/funcs/sandboxGet.ts
|
|
135791
135242
|
function sandboxGet(client, request, options) {
|
|
135792
|
-
return new APIPromise($
|
|
135243
|
+
return new APIPromise($do308(client, request, options));
|
|
135793
135244
|
}
|
|
135794
|
-
async function $
|
|
135245
|
+
async function $do308(client, request, options) {
|
|
135795
135246
|
const parsed = safeParse4(request, (value) => GetSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135796
135247
|
if (!parsed.ok) {
|
|
135797
135248
|
return [parsed, { status: "invalid" }];
|
|
@@ -135879,12 +135330,12 @@ var init_sandboxGet = __esm(() => {
|
|
|
135879
135330
|
});
|
|
135880
135331
|
|
|
135881
135332
|
// src/mcp-server/tools/sandboxGet.ts
|
|
135882
|
-
var
|
|
135333
|
+
var args300, tool$sandboxGet;
|
|
135883
135334
|
var init_sandboxGet2 = __esm(() => {
|
|
135884
135335
|
init_sandboxGet();
|
|
135885
135336
|
init_operations();
|
|
135886
135337
|
init_tools();
|
|
135887
|
-
|
|
135338
|
+
args300 = {
|
|
135888
135339
|
request: GetSessionRequest$inboundSchema
|
|
135889
135340
|
};
|
|
135890
135341
|
tool$sandboxGet = {
|
|
@@ -135892,9 +135343,9 @@ var init_sandboxGet2 = __esm(() => {
|
|
|
135892
135343
|
description: `Get Session
|
|
135893
135344
|
|
|
135894
135345
|
Return the current state, configuration, and resource allocation for a sandbox session.`,
|
|
135895
|
-
args:
|
|
135896
|
-
tool: async (client,
|
|
135897
|
-
const [result, apiCall] = await sandboxGet(client,
|
|
135346
|
+
args: args300,
|
|
135347
|
+
tool: async (client, args301, ctx) => {
|
|
135348
|
+
const [result, apiCall] = await sandboxGet(client, args301.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135898
135349
|
if (!result.ok) {
|
|
135899
135350
|
return {
|
|
135900
135351
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135909,9 +135360,9 @@ Return the current state, configuration, and resource allocation for a sandbox s
|
|
|
135909
135360
|
|
|
135910
135361
|
// src/funcs/sandboxGetBrowserUrl.ts
|
|
135911
135362
|
function sandboxGetBrowserUrl(client, request, options) {
|
|
135912
|
-
return new APIPromise($
|
|
135363
|
+
return new APIPromise($do309(client, request, options));
|
|
135913
135364
|
}
|
|
135914
|
-
async function $
|
|
135365
|
+
async function $do309(client, request, options) {
|
|
135915
135366
|
const parsed = safeParse4(request, (value) => GetBrowserSessionUrlRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135916
135367
|
if (!parsed.ok) {
|
|
135917
135368
|
return [parsed, { status: "invalid" }];
|
|
@@ -136003,12 +135454,12 @@ var init_sandboxGetBrowserUrl = __esm(() => {
|
|
|
136003
135454
|
});
|
|
136004
135455
|
|
|
136005
135456
|
// src/mcp-server/tools/sandboxGetBrowserUrl.ts
|
|
136006
|
-
var
|
|
135457
|
+
var args301, tool$sandboxGetBrowserUrl;
|
|
136007
135458
|
var init_sandboxGetBrowserUrl2 = __esm(() => {
|
|
136008
135459
|
init_sandboxGetBrowserUrl();
|
|
136009
135460
|
init_operations();
|
|
136010
135461
|
init_tools();
|
|
136011
|
-
|
|
135462
|
+
args301 = {
|
|
136012
135463
|
request: GetBrowserSessionUrlRequest$inboundSchema
|
|
136013
135464
|
};
|
|
136014
135465
|
tool$sandboxGetBrowserUrl = {
|
|
@@ -136016,9 +135467,9 @@ var init_sandboxGetBrowserUrl2 = __esm(() => {
|
|
|
136016
135467
|
description: `Get Browser Session URL
|
|
136017
135468
|
|
|
136018
135469
|
Return the public gateway URL for a browser session's Chrome DevTools Protocol endpoint. Playwright can use this HTTP endpoint directly. For clients that require a WebSocket endpoint, request \`json/version\` and use its rewritten \`webSocketDebuggerUrl\`. Insert subpaths before the query string; for example, use \`/ports/9222/json/version?session_token=...\`. Send the same MKA1 API-key authorization header on the HTTP and WebSocket requests. Standard sessions do not expose a public URL; use the command, code, and workspace operations instead.`,
|
|
136019
|
-
args:
|
|
136020
|
-
tool: async (client,
|
|
136021
|
-
const [result, apiCall] = await sandboxGetBrowserUrl(client,
|
|
135470
|
+
args: args301,
|
|
135471
|
+
tool: async (client, args302, ctx) => {
|
|
135472
|
+
const [result, apiCall] = await sandboxGetBrowserUrl(client, args302.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136022
135473
|
if (!result.ok) {
|
|
136023
135474
|
return {
|
|
136024
135475
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136033,9 +135484,9 @@ Return the public gateway URL for a browser session's Chrome DevTools Protocol e
|
|
|
136033
135484
|
|
|
136034
135485
|
// src/funcs/sandboxGetPricing.ts
|
|
136035
135486
|
function sandboxGetPricing(client, options) {
|
|
136036
|
-
return new APIPromise($
|
|
135487
|
+
return new APIPromise($do310(client, options));
|
|
136037
135488
|
}
|
|
136038
|
-
async function $
|
|
135489
|
+
async function $do310(client, options) {
|
|
136039
135490
|
const path = pathToFunc("/api/v1/sandbox/pricing")();
|
|
136040
135491
|
const headers = new Headers(compactMap({
|
|
136041
135492
|
Accept: "application/json"
|
|
@@ -136127,9 +135578,9 @@ Current sandbox pricing rate card, keyed by SKU (\`standard\`, \`browser\`, \`ev
|
|
|
136127
135578
|
|
|
136128
135579
|
// src/funcs/sandboxGetWorkspace.ts
|
|
136129
135580
|
function sandboxGetWorkspace(client, request, options) {
|
|
136130
|
-
return new APIPromise($
|
|
135581
|
+
return new APIPromise($do311(client, request, options));
|
|
136131
135582
|
}
|
|
136132
|
-
async function $
|
|
135583
|
+
async function $do311(client, request, options) {
|
|
136133
135584
|
const parsed = safeParse4(request, (value) => GetWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136134
135585
|
if (!parsed.ok) {
|
|
136135
135586
|
return [parsed, { status: "invalid" }];
|
|
@@ -136221,12 +135672,12 @@ var init_sandboxGetWorkspace = __esm(() => {
|
|
|
136221
135672
|
});
|
|
136222
135673
|
|
|
136223
135674
|
// src/mcp-server/tools/sandboxGetWorkspace.ts
|
|
136224
|
-
var
|
|
135675
|
+
var args302, tool$sandboxGetWorkspace;
|
|
136225
135676
|
var init_sandboxGetWorkspace2 = __esm(() => {
|
|
136226
135677
|
init_sandboxGetWorkspace();
|
|
136227
135678
|
init_operations();
|
|
136228
135679
|
init_tools();
|
|
136229
|
-
|
|
135680
|
+
args302 = {
|
|
136230
135681
|
request: GetWorkspaceRequest$inboundSchema
|
|
136231
135682
|
};
|
|
136232
135683
|
tool$sandboxGetWorkspace = {
|
|
@@ -136234,9 +135685,9 @@ var init_sandboxGetWorkspace2 = __esm(() => {
|
|
|
136234
135685
|
description: `Get Workspace Manifest
|
|
136235
135686
|
|
|
136236
135687
|
List files currently stored in the session workspace, including paths, sizes, and etags.`,
|
|
136237
|
-
args:
|
|
136238
|
-
tool: async (client,
|
|
136239
|
-
const [result, apiCall] = await sandboxGetWorkspace(client,
|
|
135688
|
+
args: args302,
|
|
135689
|
+
tool: async (client, args303, ctx) => {
|
|
135690
|
+
const [result, apiCall] = await sandboxGetWorkspace(client, args303.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136240
135691
|
if (!result.ok) {
|
|
136241
135692
|
return {
|
|
136242
135693
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136251,9 +135702,9 @@ List files currently stored in the session workspace, including paths, sizes, an
|
|
|
136251
135702
|
|
|
136252
135703
|
// src/funcs/sandboxList.ts
|
|
136253
135704
|
function sandboxList(client, request, options) {
|
|
136254
|
-
return new APIPromise($
|
|
135705
|
+
return new APIPromise($do312(client, request, options));
|
|
136255
135706
|
}
|
|
136256
|
-
async function $
|
|
135707
|
+
async function $do312(client, request, options) {
|
|
136257
135708
|
const parsed = safeParse4(request, (value) => ListSessionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136258
135709
|
if (!parsed.ok) {
|
|
136259
135710
|
return [parsed, { status: "invalid" }];
|
|
@@ -136336,12 +135787,12 @@ var init_sandboxList = __esm(() => {
|
|
|
136336
135787
|
});
|
|
136337
135788
|
|
|
136338
135789
|
// src/mcp-server/tools/sandboxList.ts
|
|
136339
|
-
var
|
|
135790
|
+
var args303, tool$sandboxList;
|
|
136340
135791
|
var init_sandboxList2 = __esm(() => {
|
|
136341
135792
|
init_sandboxList();
|
|
136342
135793
|
init_operations();
|
|
136343
135794
|
init_tools();
|
|
136344
|
-
|
|
135795
|
+
args303 = {
|
|
136345
135796
|
request: ListSessionsRequest$inboundSchema
|
|
136346
135797
|
};
|
|
136347
135798
|
tool$sandboxList = {
|
|
@@ -136349,9 +135800,9 @@ var init_sandboxList2 = __esm(() => {
|
|
|
136349
135800
|
description: `List Sessions
|
|
136350
135801
|
|
|
136351
135802
|
List sandbox sessions visible to the authenticated caller.`,
|
|
136352
|
-
args:
|
|
136353
|
-
tool: async (client,
|
|
136354
|
-
const [result, apiCall] = await sandboxList(client,
|
|
135803
|
+
args: args303,
|
|
135804
|
+
tool: async (client, args304, ctx) => {
|
|
135805
|
+
const [result, apiCall] = await sandboxList(client, args304.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136355
135806
|
if (!result.ok) {
|
|
136356
135807
|
return {
|
|
136357
135808
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136366,9 +135817,9 @@ List sandbox sessions visible to the authenticated caller.`,
|
|
|
136366
135817
|
|
|
136367
135818
|
// src/funcs/sandboxProxyBrowserPortRequest.ts
|
|
136368
135819
|
function sandboxProxyBrowserPortRequest(client, request, options) {
|
|
136369
|
-
return new APIPromise($
|
|
135820
|
+
return new APIPromise($do313(client, request, options));
|
|
136370
135821
|
}
|
|
136371
|
-
async function $
|
|
135822
|
+
async function $do313(client, request, options) {
|
|
136372
135823
|
const parsed = safeParse4(request, (value) => ProxyBrowserPortRequestRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136373
135824
|
if (!parsed.ok) {
|
|
136374
135825
|
return [parsed, { status: "invalid" }];
|
|
@@ -136468,12 +135919,12 @@ var init_sandboxProxyBrowserPortRequest = __esm(() => {
|
|
|
136468
135919
|
});
|
|
136469
135920
|
|
|
136470
135921
|
// src/mcp-server/tools/sandboxProxyBrowserPortRequest.ts
|
|
136471
|
-
var
|
|
135922
|
+
var args304, tool$sandboxProxyBrowserPortRequest;
|
|
136472
135923
|
var init_sandboxProxyBrowserPortRequest2 = __esm(() => {
|
|
136473
135924
|
init_sandboxProxyBrowserPortRequest();
|
|
136474
135925
|
init_operations();
|
|
136475
135926
|
init_tools();
|
|
136476
|
-
|
|
135927
|
+
args304 = {
|
|
136477
135928
|
request: ProxyBrowserPortRequestRequest$inboundSchema
|
|
136478
135929
|
};
|
|
136479
135930
|
tool$sandboxProxyBrowserPortRequest = {
|
|
@@ -136481,9 +135932,9 @@ var init_sandboxProxyBrowserPortRequest2 = __esm(() => {
|
|
|
136481
135932
|
description: `Proxy Browser Port Request
|
|
136482
135933
|
|
|
136483
135934
|
Proxy an HTTP request to an exposed browser-session port through the gateway. Use the URL returned by \`GET /sessions/{session_id}/browser-url\` as the base. Insert CDP subpaths such as \`json/version\` or \`json/list\` before its query string, preserving the \`session_token\` parameter. This low-level proxy is intended for browser sessions on port \`9222\` and still requires the normal MKA1 API-key authorization header.`,
|
|
136484
|
-
args:
|
|
136485
|
-
tool: async (client,
|
|
136486
|
-
const [result, apiCall] = await sandboxProxyBrowserPortRequest(client,
|
|
135935
|
+
args: args304,
|
|
135936
|
+
tool: async (client, args305, ctx) => {
|
|
135937
|
+
const [result, apiCall] = await sandboxProxyBrowserPortRequest(client, args305.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136487
135938
|
if (!result.ok) {
|
|
136488
135939
|
return {
|
|
136489
135940
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136498,9 +135949,9 @@ Proxy an HTTP request to an exposed browser-session port through the gateway. Us
|
|
|
136498
135949
|
|
|
136499
135950
|
// src/funcs/sandboxRunCode.ts
|
|
136500
135951
|
function sandboxRunCode(client, request, options) {
|
|
136501
|
-
return new APIPromise($
|
|
135952
|
+
return new APIPromise($do314(client, request, options));
|
|
136502
135953
|
}
|
|
136503
|
-
async function $
|
|
135954
|
+
async function $do314(client, request, options) {
|
|
136504
135955
|
const parsed = safeParse4(request, (value) => RunCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136505
135956
|
if (!parsed.ok) {
|
|
136506
135957
|
return [parsed, { status: "invalid" }];
|
|
@@ -136589,12 +136040,12 @@ var init_sandboxRunCode = __esm(() => {
|
|
|
136589
136040
|
});
|
|
136590
136041
|
|
|
136591
136042
|
// src/mcp-server/tools/sandboxRunCode.ts
|
|
136592
|
-
var
|
|
136043
|
+
var args305, tool$sandboxRunCode;
|
|
136593
136044
|
var init_sandboxRunCode2 = __esm(() => {
|
|
136594
136045
|
init_sandboxRunCode();
|
|
136595
136046
|
init_operations();
|
|
136596
136047
|
init_tools();
|
|
136597
|
-
|
|
136048
|
+
args305 = {
|
|
136598
136049
|
request: RunCodeRequest$inboundSchema
|
|
136599
136050
|
};
|
|
136600
136051
|
tool$sandboxRunCode = {
|
|
@@ -136602,9 +136053,9 @@ var init_sandboxRunCode2 = __esm(() => {
|
|
|
136602
136053
|
description: `Run Code
|
|
136603
136054
|
|
|
136604
136055
|
Execute source code in the session workspace using a supported runtime and return the execution result.`,
|
|
136605
|
-
args:
|
|
136606
|
-
tool: async (client,
|
|
136607
|
-
const [result, apiCall] = await sandboxRunCode(client,
|
|
136056
|
+
args: args305,
|
|
136057
|
+
tool: async (client, args306, ctx) => {
|
|
136058
|
+
const [result, apiCall] = await sandboxRunCode(client, args306.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136608
136059
|
if (!result.ok) {
|
|
136609
136060
|
return {
|
|
136610
136061
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136619,9 +136070,9 @@ Execute source code in the session workspace using a supported runtime and retur
|
|
|
136619
136070
|
|
|
136620
136071
|
// src/funcs/sandboxRunCommand.ts
|
|
136621
136072
|
function sandboxRunCommand(client, request, options) {
|
|
136622
|
-
return new APIPromise($
|
|
136073
|
+
return new APIPromise($do315(client, request, options));
|
|
136623
136074
|
}
|
|
136624
|
-
async function $
|
|
136075
|
+
async function $do315(client, request, options) {
|
|
136625
136076
|
const parsed = safeParse4(request, (value) => RunCommandRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136626
136077
|
if (!parsed.ok) {
|
|
136627
136078
|
return [parsed, { status: "invalid" }];
|
|
@@ -136710,12 +136161,12 @@ var init_sandboxRunCommand = __esm(() => {
|
|
|
136710
136161
|
});
|
|
136711
136162
|
|
|
136712
136163
|
// src/mcp-server/tools/sandboxRunCommand.ts
|
|
136713
|
-
var
|
|
136164
|
+
var args306, tool$sandboxRunCommand;
|
|
136714
136165
|
var init_sandboxRunCommand2 = __esm(() => {
|
|
136715
136166
|
init_sandboxRunCommand();
|
|
136716
136167
|
init_operations();
|
|
136717
136168
|
init_tools();
|
|
136718
|
-
|
|
136169
|
+
args306 = {
|
|
136719
136170
|
request: RunCommandRequest$inboundSchema
|
|
136720
136171
|
};
|
|
136721
136172
|
tool$sandboxRunCommand = {
|
|
@@ -136723,9 +136174,9 @@ var init_sandboxRunCommand2 = __esm(() => {
|
|
|
136723
136174
|
description: `Run Command
|
|
136724
136175
|
|
|
136725
136176
|
Run a command in the session workspace and return stdout, stderr, exit code, and changed files.`,
|
|
136726
|
-
args:
|
|
136727
|
-
tool: async (client,
|
|
136728
|
-
const [result, apiCall] = await sandboxRunCommand(client,
|
|
136177
|
+
args: args306,
|
|
136178
|
+
tool: async (client, args307, ctx) => {
|
|
136179
|
+
const [result, apiCall] = await sandboxRunCommand(client, args307.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136729
136180
|
if (!result.ok) {
|
|
136730
136181
|
return {
|
|
136731
136182
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136740,9 +136191,9 @@ Run a command in the session workspace and return stdout, stderr, exit code, and
|
|
|
136740
136191
|
|
|
136741
136192
|
// src/funcs/sandboxSetPricing.ts
|
|
136742
136193
|
function sandboxSetPricing(client, request, options) {
|
|
136743
|
-
return new APIPromise($
|
|
136194
|
+
return new APIPromise($do316(client, request, options));
|
|
136744
136195
|
}
|
|
136745
|
-
async function $
|
|
136196
|
+
async function $do316(client, request, options) {
|
|
136746
136197
|
const parsed = safeParse4(request, (value) => SandboxPricingUpdate$outboundSchema.parse(value), "Input validation failed");
|
|
136747
136198
|
if (!parsed.ok) {
|
|
136748
136199
|
return [parsed, { status: "invalid" }];
|
|
@@ -136823,12 +136274,12 @@ var init_sandboxSetPricing = __esm(() => {
|
|
|
136823
136274
|
});
|
|
136824
136275
|
|
|
136825
136276
|
// src/mcp-server/tools/sandboxSetPricing.ts
|
|
136826
|
-
var
|
|
136277
|
+
var args307, tool$sandboxSetPricing;
|
|
136827
136278
|
var init_sandboxSetPricing2 = __esm(() => {
|
|
136828
136279
|
init_sandboxSetPricing();
|
|
136829
136280
|
init_components();
|
|
136830
136281
|
init_tools();
|
|
136831
|
-
|
|
136282
|
+
args307 = {
|
|
136832
136283
|
request: SandboxPricingUpdate$inboundSchema
|
|
136833
136284
|
};
|
|
136834
136285
|
tool$sandboxSetPricing = {
|
|
@@ -136836,9 +136287,9 @@ var init_sandboxSetPricing2 = __esm(() => {
|
|
|
136836
136287
|
description: `Set Sandbox Pricing
|
|
136837
136288
|
|
|
136838
136289
|
Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from the request become unpriced and accrue no spend. Takes effect on the next meter window without a restart. Cluster admins only.`,
|
|
136839
|
-
args:
|
|
136840
|
-
tool: async (client,
|
|
136841
|
-
const [result, apiCall] = await sandboxSetPricing(client,
|
|
136290
|
+
args: args307,
|
|
136291
|
+
tool: async (client, args308, ctx) => {
|
|
136292
|
+
const [result, apiCall] = await sandboxSetPricing(client, args308.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136842
136293
|
if (!result.ok) {
|
|
136843
136294
|
return {
|
|
136844
136295
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136853,9 +136304,9 @@ Replace the sandbox pricing rate card. Full-replace semantics: SKUs omitted from
|
|
|
136853
136304
|
|
|
136854
136305
|
// src/funcs/sandboxTerminate.ts
|
|
136855
136306
|
function sandboxTerminate(client, request, options) {
|
|
136856
|
-
return new APIPromise($
|
|
136307
|
+
return new APIPromise($do317(client, request, options));
|
|
136857
136308
|
}
|
|
136858
|
-
async function $
|
|
136309
|
+
async function $do317(client, request, options) {
|
|
136859
136310
|
const parsed = safeParse4(request, (value) => TerminateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
136860
136311
|
if (!parsed.ok) {
|
|
136861
136312
|
return [parsed, { status: "invalid" }];
|
|
@@ -136946,12 +136397,12 @@ var init_sandboxTerminate = __esm(() => {
|
|
|
136946
136397
|
});
|
|
136947
136398
|
|
|
136948
136399
|
// src/mcp-server/tools/sandboxTerminate.ts
|
|
136949
|
-
var
|
|
136400
|
+
var args308, tool$sandboxTerminate;
|
|
136950
136401
|
var init_sandboxTerminate2 = __esm(() => {
|
|
136951
136402
|
init_sandboxTerminate();
|
|
136952
136403
|
init_operations();
|
|
136953
136404
|
init_tools();
|
|
136954
|
-
|
|
136405
|
+
args308 = {
|
|
136955
136406
|
request: TerminateSessionRequest$inboundSchema2
|
|
136956
136407
|
};
|
|
136957
136408
|
tool$sandboxTerminate = {
|
|
@@ -136959,9 +136410,9 @@ var init_sandboxTerminate2 = __esm(() => {
|
|
|
136959
136410
|
description: `Terminate Session
|
|
136960
136411
|
|
|
136961
136412
|
Stop a sandbox session and release the backing sandbox resources.`,
|
|
136962
|
-
args:
|
|
136963
|
-
tool: async (client,
|
|
136964
|
-
const [result, apiCall] = await sandboxTerminate(client,
|
|
136413
|
+
args: args308,
|
|
136414
|
+
tool: async (client, args309, ctx) => {
|
|
136415
|
+
const [result, apiCall] = await sandboxTerminate(client, args309.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136965
136416
|
if (!result.ok) {
|
|
136966
136417
|
return {
|
|
136967
136418
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136976,9 +136427,9 @@ Stop a sandbox session and release the backing sandbox resources.`,
|
|
|
136976
136427
|
|
|
136977
136428
|
// src/funcs/sandboxUploadArchive.ts
|
|
136978
136429
|
function sandboxUploadArchive(client, request, options) {
|
|
136979
|
-
return new APIPromise($
|
|
136430
|
+
return new APIPromise($do318(client, request, options));
|
|
136980
136431
|
}
|
|
136981
|
-
async function $
|
|
136432
|
+
async function $do318(client, request, options) {
|
|
136982
136433
|
const parsed = safeParse4(request, (value) => UploadWorkspaceArchiveRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136983
136434
|
if (!parsed.ok) {
|
|
136984
136435
|
return [parsed, { status: "invalid" }];
|
|
@@ -137071,12 +136522,12 @@ var init_sandboxUploadArchive = __esm(() => {
|
|
|
137071
136522
|
});
|
|
137072
136523
|
|
|
137073
136524
|
// src/mcp-server/tools/sandboxUploadArchive.ts
|
|
137074
|
-
var
|
|
136525
|
+
var args309, tool$sandboxUploadArchive;
|
|
137075
136526
|
var init_sandboxUploadArchive2 = __esm(() => {
|
|
137076
136527
|
init_sandboxUploadArchive();
|
|
137077
136528
|
init_operations();
|
|
137078
136529
|
init_tools();
|
|
137079
|
-
|
|
136530
|
+
args309 = {
|
|
137080
136531
|
request: UploadWorkspaceArchiveRequest$inboundSchema
|
|
137081
136532
|
};
|
|
137082
136533
|
tool$sandboxUploadArchive = {
|
|
@@ -137084,9 +136535,9 @@ var init_sandboxUploadArchive2 = __esm(() => {
|
|
|
137084
136535
|
description: `Upload Workspace Archive
|
|
137085
136536
|
|
|
137086
136537
|
Upload a zip archive and extract its files into the session workspace.`,
|
|
137087
|
-
args:
|
|
137088
|
-
tool: async (client,
|
|
137089
|
-
const [result, apiCall] = await sandboxUploadArchive(client,
|
|
136538
|
+
args: args309,
|
|
136539
|
+
tool: async (client, args310, ctx) => {
|
|
136540
|
+
const [result, apiCall] = await sandboxUploadArchive(client, args310.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137090
136541
|
if (!result.ok) {
|
|
137091
136542
|
return {
|
|
137092
136543
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137101,9 +136552,9 @@ Upload a zip archive and extract its files into the session workspace.`,
|
|
|
137101
136552
|
|
|
137102
136553
|
// src/funcs/sandboxUploadFile.ts
|
|
137103
136554
|
function sandboxUploadFile(client, request, options) {
|
|
137104
|
-
return new APIPromise($
|
|
136555
|
+
return new APIPromise($do319(client, request, options));
|
|
137105
136556
|
}
|
|
137106
|
-
async function $
|
|
136557
|
+
async function $do319(client, request, options) {
|
|
137107
136558
|
const parsed = safeParse4(request, (value) => UploadWorkspaceFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137108
136559
|
if (!parsed.ok) {
|
|
137109
136560
|
return [parsed, { status: "invalid" }];
|
|
@@ -137200,12 +136651,12 @@ var init_sandboxUploadFile = __esm(() => {
|
|
|
137200
136651
|
});
|
|
137201
136652
|
|
|
137202
136653
|
// src/mcp-server/tools/sandboxUploadFile.ts
|
|
137203
|
-
var
|
|
136654
|
+
var args310, tool$sandboxUploadFile;
|
|
137204
136655
|
var init_sandboxUploadFile2 = __esm(() => {
|
|
137205
136656
|
init_sandboxUploadFile();
|
|
137206
136657
|
init_operations();
|
|
137207
136658
|
init_tools();
|
|
137208
|
-
|
|
136659
|
+
args310 = {
|
|
137209
136660
|
request: UploadWorkspaceFileRequest$inboundSchema
|
|
137210
136661
|
};
|
|
137211
136662
|
tool$sandboxUploadFile = {
|
|
@@ -137213,9 +136664,9 @@ var init_sandboxUploadFile2 = __esm(() => {
|
|
|
137213
136664
|
description: `Upload Workspace File
|
|
137214
136665
|
|
|
137215
136666
|
Upload raw bytes into the session workspace at the given path.`,
|
|
137216
|
-
args:
|
|
137217
|
-
tool: async (client,
|
|
137218
|
-
const [result, apiCall] = await sandboxUploadFile(client,
|
|
136667
|
+
args: args310,
|
|
136668
|
+
tool: async (client, args311, ctx) => {
|
|
136669
|
+
const [result, apiCall] = await sandboxUploadFile(client, args311.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137219
136670
|
if (!result.ok) {
|
|
137220
136671
|
return {
|
|
137221
136672
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137230,9 +136681,9 @@ Upload raw bytes into the session workspace at the given path.`,
|
|
|
137230
136681
|
|
|
137231
136682
|
// src/funcs/usageCosts.ts
|
|
137232
136683
|
function usageCosts(client, request, options) {
|
|
137233
|
-
return new APIPromise($
|
|
136684
|
+
return new APIPromise($do320(client, request, options));
|
|
137234
136685
|
}
|
|
137235
|
-
async function $
|
|
136686
|
+
async function $do320(client, request, options) {
|
|
137236
136687
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137237
136688
|
if (!parsed.ok) {
|
|
137238
136689
|
return [parsed, { status: "invalid" }];
|
|
@@ -137315,12 +136766,12 @@ var init_usageCosts = __esm(() => {
|
|
|
137315
136766
|
});
|
|
137316
136767
|
|
|
137317
136768
|
// src/mcp-server/tools/usageCosts.ts
|
|
137318
|
-
var
|
|
136769
|
+
var args311, tool$usageCosts;
|
|
137319
136770
|
var init_usageCosts2 = __esm(() => {
|
|
137320
136771
|
init_usageCosts();
|
|
137321
136772
|
init_operations();
|
|
137322
136773
|
init_tools();
|
|
137323
|
-
|
|
136774
|
+
args311 = {
|
|
137324
136775
|
request: GetCostsRequest$inboundSchema
|
|
137325
136776
|
};
|
|
137326
136777
|
tool$usageCosts = {
|
|
@@ -137328,9 +136779,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
137328
136779
|
description: `Aggregate cost by dimension
|
|
137329
136780
|
|
|
137330
136781
|
Sums stored per-entry cost over [start_time, end_time), grouped by any of service, task_type, model, api_key_id, team_id, user_id, external_user_id, org_id. Point-in-time correct for chargeback/showback.`,
|
|
137331
|
-
args:
|
|
137332
|
-
tool: async (client,
|
|
137333
|
-
const [result, apiCall] = await usageCosts(client,
|
|
136782
|
+
args: args311,
|
|
136783
|
+
tool: async (client, args312, ctx) => {
|
|
136784
|
+
const [result, apiCall] = await usageCosts(client, args312.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137334
136785
|
if (!result.ok) {
|
|
137335
136786
|
return {
|
|
137336
136787
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137345,9 +136796,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
137345
136796
|
|
|
137346
136797
|
// src/funcs/usageSandbox.ts
|
|
137347
136798
|
function usageSandbox(client, request, options) {
|
|
137348
|
-
return new APIPromise($
|
|
136799
|
+
return new APIPromise($do321(client, request, options));
|
|
137349
136800
|
}
|
|
137350
|
-
async function $
|
|
136801
|
+
async function $do321(client, request, options) {
|
|
137351
136802
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137352
136803
|
if (!parsed.ok) {
|
|
137353
136804
|
return [parsed, { status: "invalid" }];
|
|
@@ -137438,12 +136889,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
137438
136889
|
});
|
|
137439
136890
|
|
|
137440
136891
|
// src/mcp-server/tools/usageSandbox.ts
|
|
137441
|
-
var
|
|
136892
|
+
var args312, tool$usageSandbox;
|
|
137442
136893
|
var init_usageSandbox2 = __esm(() => {
|
|
137443
136894
|
init_usageSandbox();
|
|
137444
136895
|
init_operations();
|
|
137445
136896
|
init_tools();
|
|
137446
|
-
|
|
136897
|
+
args312 = {
|
|
137447
136898
|
request: GetSandboxUsageRequest$inboundSchema
|
|
137448
136899
|
};
|
|
137449
136900
|
tool$usageSandbox = {
|
|
@@ -137451,9 +136902,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
137451
136902
|
description: `Get Sandbox Usage
|
|
137452
136903
|
|
|
137453
136904
|
Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
|
|
137454
|
-
args:
|
|
137455
|
-
tool: async (client,
|
|
137456
|
-
const [result, apiCall] = await usageSandbox(client,
|
|
136905
|
+
args: args312,
|
|
136906
|
+
tool: async (client, args313, ctx) => {
|
|
136907
|
+
const [result, apiCall] = await usageSandbox(client, args313.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137457
136908
|
if (!result.ok) {
|
|
137458
136909
|
return {
|
|
137459
136910
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137470,7 +136921,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
137470
136921
|
function createMCPServer(deps) {
|
|
137471
136922
|
const server = new McpServer({
|
|
137472
136923
|
name: "SDK",
|
|
137473
|
-
version: "0.51.
|
|
136924
|
+
version: "0.51.37"
|
|
137474
136925
|
});
|
|
137475
136926
|
const client = new SDKCore({
|
|
137476
136927
|
bearerAuth: deps.bearerAuth,
|
|
@@ -137805,9 +137256,6 @@ function createMCPServer(deps) {
|
|
|
137805
137256
|
tool(tool$authClusterInviteInfo);
|
|
137806
137257
|
tool(tool$authClusterAcceptInvite);
|
|
137807
137258
|
tool(tool$authApiKeyGetJwtFromKey);
|
|
137808
|
-
tool(tool$reposCollaboratorsList);
|
|
137809
|
-
tool(tool$reposCollaboratorsRemove);
|
|
137810
|
-
tool(tool$reposCollaboratorsAdd);
|
|
137811
137259
|
return server;
|
|
137812
137260
|
}
|
|
137813
137261
|
var init_server2 = __esm(() => {
|
|
@@ -138114,9 +137562,6 @@ var init_server2 = __esm(() => {
|
|
|
138114
137562
|
init_permissionsLlmCheck2();
|
|
138115
137563
|
init_permissionsLlmGrant2();
|
|
138116
137564
|
init_permissionsLlmRevoke2();
|
|
138117
|
-
init_reposCollaboratorsAdd2();
|
|
138118
|
-
init_reposCollaboratorsList2();
|
|
138119
|
-
init_reposCollaboratorsRemove2();
|
|
138120
137565
|
init_reposCreate2();
|
|
138121
137566
|
init_reposDelete2();
|
|
138122
137567
|
init_reposGet2();
|
|
@@ -139316,7 +138761,7 @@ var routes = rn({
|
|
|
139316
138761
|
var app = Ve(routes, {
|
|
139317
138762
|
name: "mcp",
|
|
139318
138763
|
versionInfo: {
|
|
139319
|
-
currentVersion: "0.51.
|
|
138764
|
+
currentVersion: "0.51.37"
|
|
139320
138765
|
}
|
|
139321
138766
|
});
|
|
139322
138767
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -139324,5 +138769,5 @@ export {
|
|
|
139324
138769
|
app
|
|
139325
138770
|
};
|
|
139326
138771
|
|
|
139327
|
-
//# debugId=
|
|
138772
|
+
//# debugId=ACCA14F3EB9EA48864756E2164756E21
|
|
139328
138773
|
//# sourceMappingURL=mcp-server.js.map
|