@meetkai/mka1 0.51.36 → 0.51.38
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 +659 -1198
- package/bin/mcp-server.js.map +24 -35
- 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/computeplacement.d.ts +6 -0
- package/dist/commonjs/models/components/computeplacement.d.ts.map +1 -1
- package/dist/commonjs/models/components/computeplacement.js +3 -0
- package/dist/commonjs/models/components/computeplacement.js.map +1 -1
- package/dist/commonjs/models/components/computeplacementstrategy.d.ts +18 -0
- package/dist/commonjs/models/components/computeplacementstrategy.d.ts.map +1 -0
- package/dist/commonjs/models/components/{visibility.js → computeplacementstrategy.js} +8 -12
- package/dist/commonjs/models/components/computeplacementstrategy.js.map +1 -0
- 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 +1 -3
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -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/computeplacement.d.ts +6 -0
- package/dist/esm/models/components/computeplacement.d.ts.map +1 -1
- package/dist/esm/models/components/computeplacement.js +3 -0
- package/dist/esm/models/components/computeplacement.js.map +1 -1
- package/dist/esm/models/components/computeplacementstrategy.d.ts +18 -0
- package/dist/esm/models/components/computeplacementstrategy.d.ts.map +1 -0
- package/dist/esm/models/components/computeplacementstrategy.js +16 -0
- package/dist/esm/models/components/computeplacementstrategy.js.map +1 -0
- 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 +1 -3
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -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/computeplacement.ts +12 -0
- package/src/models/components/computeplacementstrategy.ts +29 -0
- package/src/models/components/createreporequest.ts +0 -31
- package/src/models/components/index.ts +1 -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.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.38",
|
|
52880
52880
|
genVersion: "2.924.0",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.38 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(() => {
|
|
@@ -60328,15 +60310,30 @@ var init_computejob = __esm(() => {
|
|
|
60328
60310
|
});
|
|
60329
60311
|
});
|
|
60330
60312
|
|
|
60313
|
+
// src/models/components/computeplacementstrategy.ts
|
|
60314
|
+
var ComputePlacementStrategy, ComputePlacementStrategy$inboundSchema, ComputePlacementStrategy$outboundSchema;
|
|
60315
|
+
var init_computeplacementstrategy = __esm(() => {
|
|
60316
|
+
init_esm();
|
|
60317
|
+
ComputePlacementStrategy = {
|
|
60318
|
+
CapacityOptimized: "capacity_optimized",
|
|
60319
|
+
LowestCost: "lowest_cost"
|
|
60320
|
+
};
|
|
60321
|
+
ComputePlacementStrategy$inboundSchema = nativeEnumType(ComputePlacementStrategy);
|
|
60322
|
+
ComputePlacementStrategy$outboundSchema = ComputePlacementStrategy$inboundSchema;
|
|
60323
|
+
});
|
|
60324
|
+
|
|
60331
60325
|
// src/models/components/computeplacement.ts
|
|
60332
60326
|
var ComputePlacement$inboundSchema, ComputePlacement$outboundSchema;
|
|
60333
60327
|
var init_computeplacement = __esm(() => {
|
|
60334
60328
|
init_esm();
|
|
60329
|
+
init_computeplacementstrategy();
|
|
60335
60330
|
ComputePlacement$inboundSchema = objectType({
|
|
60336
|
-
providers: arrayType(stringType()).optional()
|
|
60331
|
+
providers: arrayType(stringType()).optional(),
|
|
60332
|
+
strategy: ComputePlacementStrategy$inboundSchema.optional()
|
|
60337
60333
|
});
|
|
60338
60334
|
ComputePlacement$outboundSchema = objectType({
|
|
60339
|
-
providers: arrayType(stringType()).optional()
|
|
60335
|
+
providers: arrayType(stringType()).optional(),
|
|
60336
|
+
strategy: ComputePlacementStrategy$outboundSchema.optional()
|
|
60340
60337
|
});
|
|
60341
60338
|
});
|
|
60342
60339
|
|
|
@@ -63817,24 +63814,16 @@ var init_createpromptresponse = __esm(() => {
|
|
|
63817
63814
|
});
|
|
63818
63815
|
|
|
63819
63816
|
// src/models/components/createreporequest.ts
|
|
63820
|
-
var
|
|
63817
|
+
var CreateRepoRequest$inboundSchema, CreateRepoRequest$outboundSchema;
|
|
63821
63818
|
var init_createreporequest = __esm(() => {
|
|
63822
63819
|
init_esm();
|
|
63823
|
-
CreateRepoRequestVisibility = {
|
|
63824
|
-
Private: "private",
|
|
63825
|
-
Team: "team"
|
|
63826
|
-
};
|
|
63827
|
-
CreateRepoRequestVisibility$inboundSchema = nativeEnumType(CreateRepoRequestVisibility);
|
|
63828
|
-
CreateRepoRequestVisibility$outboundSchema = CreateRepoRequestVisibility$inboundSchema;
|
|
63829
63820
|
CreateRepoRequest$inboundSchema = objectType({
|
|
63830
63821
|
description: stringType().optional(),
|
|
63831
|
-
name: stringType()
|
|
63832
|
-
visibility: CreateRepoRequestVisibility$inboundSchema.default("private")
|
|
63822
|
+
name: stringType()
|
|
63833
63823
|
});
|
|
63834
63824
|
CreateRepoRequest$outboundSchema = objectType({
|
|
63835
63825
|
description: stringType().optional(),
|
|
63836
|
-
name: stringType()
|
|
63837
|
-
visibility: CreateRepoRequestVisibility$outboundSchema.default("private")
|
|
63826
|
+
name: stringType()
|
|
63838
63827
|
});
|
|
63839
63828
|
});
|
|
63840
63829
|
|
|
@@ -69067,27 +69056,6 @@ var init_mcptoolcallwithid = __esm(() => {
|
|
|
69067
69056
|
});
|
|
69068
69057
|
});
|
|
69069
69058
|
|
|
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
69059
|
// src/models/components/memoryentry.ts
|
|
69092
69060
|
var MemoryEntry$inboundSchema, MemoryEntry$outboundSchema;
|
|
69093
69061
|
var init_memoryentry = __esm(() => {
|
|
@@ -70522,32 +70490,17 @@ var init_outputmessagewithid = __esm(() => {
|
|
|
70522
70490
|
});
|
|
70523
70491
|
});
|
|
70524
70492
|
|
|
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
70493
|
// src/models/components/patchreporequest.ts
|
|
70538
70494
|
var PatchRepoRequest$inboundSchema, PatchRepoRequest$outboundSchema;
|
|
70539
70495
|
var init_patchreporequest = __esm(() => {
|
|
70540
70496
|
init_esm();
|
|
70541
|
-
init_visibility();
|
|
70542
70497
|
PatchRepoRequest$inboundSchema = objectType({
|
|
70543
70498
|
description: stringType().optional(),
|
|
70544
|
-
name: stringType().optional()
|
|
70545
|
-
visibility: Visibility$inboundSchema.optional()
|
|
70499
|
+
name: stringType().optional()
|
|
70546
70500
|
});
|
|
70547
70501
|
PatchRepoRequest$outboundSchema = objectType({
|
|
70548
70502
|
description: stringType().optional(),
|
|
70549
|
-
name: stringType().optional()
|
|
70550
|
-
visibility: Visibility$outboundSchema.optional()
|
|
70503
|
+
name: stringType().optional()
|
|
70551
70504
|
});
|
|
70552
70505
|
});
|
|
70553
70506
|
|
|
@@ -70770,14 +70723,12 @@ var Repo$inboundSchema, Repo$outboundSchema;
|
|
|
70770
70723
|
var init_repo = __esm(() => {
|
|
70771
70724
|
init_esm();
|
|
70772
70725
|
init_primitives();
|
|
70773
|
-
init_visibility();
|
|
70774
70726
|
Repo$inboundSchema = objectType({
|
|
70775
70727
|
created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
70776
70728
|
description: stringType(),
|
|
70777
70729
|
id: stringType(),
|
|
70778
70730
|
name: stringType(),
|
|
70779
|
-
org: stringType()
|
|
70780
|
-
visibility: Visibility$inboundSchema
|
|
70731
|
+
org: stringType()
|
|
70781
70732
|
}).transform((v2) => {
|
|
70782
70733
|
return remap(v2, {
|
|
70783
70734
|
created_at: "createdAt"
|
|
@@ -70788,8 +70739,7 @@ var init_repo = __esm(() => {
|
|
|
70788
70739
|
description: stringType(),
|
|
70789
70740
|
id: stringType(),
|
|
70790
70741
|
name: stringType(),
|
|
70791
|
-
org: stringType()
|
|
70792
|
-
visibility: Visibility$outboundSchema
|
|
70742
|
+
org: stringType()
|
|
70793
70743
|
}).transform((v2) => {
|
|
70794
70744
|
return remap(v2, {
|
|
70795
70745
|
createdAt: "created_at"
|
|
@@ -77013,7 +76963,6 @@ var init_components = __esm(() => {
|
|
|
77013
76963
|
init_coderequest();
|
|
77014
76964
|
init_coderesult();
|
|
77015
76965
|
init_coderuntime();
|
|
77016
|
-
init_collaboratorrequest();
|
|
77017
76966
|
init_commandrequest();
|
|
77018
76967
|
init_commandresult();
|
|
77019
76968
|
init_compactedresponse();
|
|
@@ -77043,6 +76992,7 @@ var init_components = __esm(() => {
|
|
|
77043
76992
|
init_computeofferlist();
|
|
77044
76993
|
init_computeorder();
|
|
77045
76994
|
init_computeplacement();
|
|
76995
|
+
init_computeplacementstrategy();
|
|
77046
76996
|
init_computeport();
|
|
77047
76997
|
init_computepricerange();
|
|
77048
76998
|
init_computeproviderhealth();
|
|
@@ -77284,7 +77234,6 @@ var init_components = __esm(() => {
|
|
|
77284
77234
|
init_mcptoolchoice();
|
|
77285
77235
|
init_mcptooldefinition();
|
|
77286
77236
|
init_mcptoolfilter();
|
|
77287
|
-
init_member();
|
|
77288
77237
|
init_memoryentry();
|
|
77289
77238
|
init_memoryentrydeleted();
|
|
77290
77239
|
init_memoryentrylist();
|
|
@@ -77520,7 +77469,6 @@ var init_components = __esm(() => {
|
|
|
77520
77469
|
init_vectorstorelist();
|
|
77521
77470
|
init_vectorstoresearchresults();
|
|
77522
77471
|
init_vectorstoresgroupby();
|
|
77523
|
-
init_visibility();
|
|
77524
77472
|
init_waitaction();
|
|
77525
77473
|
init_wakeagentrunrequest();
|
|
77526
77474
|
init_websearchaction();
|
|
@@ -83438,7 +83386,7 @@ var init_addmodelcatalogorgaccess = __esm(() => {
|
|
|
83438
83386
|
});
|
|
83439
83387
|
|
|
83440
83388
|
// src/models/operations/addteammember.ts
|
|
83441
|
-
var AddTeamMemberRequestBody$inboundSchema, AddTeamMemberRequestBody$outboundSchema, AddTeamMemberRequest$inboundSchema, AddTeamMemberRequest$outboundSchema, Member$
|
|
83389
|
+
var AddTeamMemberRequestBody$inboundSchema, AddTeamMemberRequestBody$outboundSchema, AddTeamMemberRequest$inboundSchema, AddTeamMemberRequest$outboundSchema, Member$inboundSchema, Member$outboundSchema, AddTeamMemberResponseBody$inboundSchema2, AddTeamMemberResponseBody$outboundSchema2;
|
|
83442
83390
|
var init_addteammember2 = __esm(() => {
|
|
83443
83391
|
init_esm();
|
|
83444
83392
|
init_primitives();
|
|
@@ -83470,23 +83418,23 @@ var init_addteammember2 = __esm(() => {
|
|
|
83470
83418
|
requestBody: "RequestBody"
|
|
83471
83419
|
});
|
|
83472
83420
|
});
|
|
83473
|
-
Member$
|
|
83421
|
+
Member$inboundSchema = objectType({
|
|
83474
83422
|
id: stringType(),
|
|
83475
83423
|
teamId: stringType(),
|
|
83476
83424
|
userId: stringType(),
|
|
83477
83425
|
createdAt: stringType()
|
|
83478
83426
|
});
|
|
83479
|
-
Member$
|
|
83427
|
+
Member$outboundSchema = objectType({
|
|
83480
83428
|
id: stringType(),
|
|
83481
83429
|
teamId: stringType(),
|
|
83482
83430
|
userId: stringType(),
|
|
83483
83431
|
createdAt: stringType()
|
|
83484
83432
|
});
|
|
83485
83433
|
AddTeamMemberResponseBody$inboundSchema2 = objectType({
|
|
83486
|
-
member: lazyType(() => Member$
|
|
83434
|
+
member: lazyType(() => Member$inboundSchema)
|
|
83487
83435
|
});
|
|
83488
83436
|
AddTeamMemberResponseBody$outboundSchema2 = objectType({
|
|
83489
|
-
member: lazyType(() => Member$
|
|
83437
|
+
member: lazyType(() => Member$outboundSchema)
|
|
83490
83438
|
});
|
|
83491
83439
|
});
|
|
83492
83440
|
|
|
@@ -86976,33 +86924,6 @@ var init_deleteclusterorg2 = __esm(() => {
|
|
|
86976
86924
|
});
|
|
86977
86925
|
});
|
|
86978
86926
|
|
|
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
86927
|
// src/models/operations/deletecomputesecret.ts
|
|
87007
86928
|
var DeleteComputeSecretRequest$inboundSchema, DeleteComputeSecretRequest$outboundSchema;
|
|
87008
86929
|
var init_deletecomputesecret = __esm(() => {
|
|
@@ -92219,38 +92140,6 @@ var init_listclusterprices = __esm(() => {
|
|
|
92219
92140
|
});
|
|
92220
92141
|
});
|
|
92221
92142
|
|
|
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
92143
|
// src/models/operations/listcompletionfeedback.ts
|
|
92255
92144
|
var ListCompletionFeedbackQueryParamOrder, QueryParamRating, ListCompletionFeedbackQueryParamOrder$inboundSchema, ListCompletionFeedbackQueryParamOrder$outboundSchema, QueryParamRating$inboundSchema, QueryParamRating$outboundSchema, ListCompletionFeedbackRequest$inboundSchema, ListCompletionFeedbackRequest$outboundSchema;
|
|
92256
92145
|
var init_listcompletionfeedback = __esm(() => {
|
|
@@ -95576,38 +95465,6 @@ var init_proxybrowserportrequest = __esm(() => {
|
|
|
95576
95465
|
});
|
|
95577
95466
|
});
|
|
95578
95467
|
|
|
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
95468
|
// src/models/operations/putcomputetenant.ts
|
|
95612
95469
|
var PutComputeTenantRequest$inboundSchema, PutComputeTenantRequest$outboundSchema, PutComputeTenantResponse$inboundSchema, PutComputeTenantResponse$outboundSchema;
|
|
95613
95470
|
var init_putcomputetenant = __esm(() => {
|
|
@@ -99059,7 +98916,6 @@ var init_operations = __esm(() => {
|
|
|
99059
98916
|
init_deleteagentschedule();
|
|
99060
98917
|
init_deleteapikeybudget();
|
|
99061
98918
|
init_deleteclusterorg2();
|
|
99062
|
-
init_deletecollaborator();
|
|
99063
98919
|
init_deletecomputesecret();
|
|
99064
98920
|
init_deleteevalrun();
|
|
99065
98921
|
init_deleteevalschedule();
|
|
@@ -99176,7 +99032,6 @@ var init_operations = __esm(() => {
|
|
|
99176
99032
|
init_listclusterinvites2();
|
|
99177
99033
|
init_listclusterorgs2();
|
|
99178
99034
|
init_listclusterprices();
|
|
99179
|
-
init_listcollaborators();
|
|
99180
99035
|
init_listcompletionfeedback();
|
|
99181
99036
|
init_listcomputeoffers();
|
|
99182
99037
|
init_listcomputeproviders();
|
|
@@ -99240,7 +99095,6 @@ var init_operations = __esm(() => {
|
|
|
99240
99095
|
init_pauseagentschedule();
|
|
99241
99096
|
init_pausefinetuningjob();
|
|
99242
99097
|
init_proxybrowserportrequest();
|
|
99243
|
-
init_putcollaborator();
|
|
99244
99098
|
init_putcomputetenant();
|
|
99245
99099
|
init_putorgautomodel();
|
|
99246
99100
|
init_regeneratescopedapikey2();
|
|
@@ -134414,19 +134268,135 @@ Revoke a role from a user for a resource, or remove public access by using "*" a
|
|
|
134414
134268
|
};
|
|
134415
134269
|
});
|
|
134416
134270
|
|
|
134417
|
-
// src/funcs/
|
|
134418
|
-
function
|
|
134271
|
+
// src/funcs/reposCreate.ts
|
|
134272
|
+
function reposCreate(client, request, options) {
|
|
134419
134273
|
return new APIPromise($do300(client, request, options));
|
|
134420
134274
|
}
|
|
134421
134275
|
async function $do300(client, request, options) {
|
|
134422
|
-
const parsed = safeParse4(request, (value) =>
|
|
134276
|
+
const parsed = safeParse4(request, (value) => CreateRepoRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
134423
134277
|
if (!parsed.ok) {
|
|
134424
134278
|
return [parsed, { status: "invalid" }];
|
|
134425
134279
|
}
|
|
134426
134280
|
const payload = parsed.value;
|
|
134427
|
-
const body = encodeJSON("body", payload.
|
|
134428
|
-
|
|
134281
|
+
const body = encodeJSON("body", payload.CreateRepoRequest, { explode: true });
|
|
134282
|
+
const path = pathToFunc("/api/v1/repos")();
|
|
134283
|
+
const headers = new Headers(compactMap({
|
|
134284
|
+
"Content-Type": "application/json",
|
|
134285
|
+
Accept: "application/json",
|
|
134286
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
134287
|
+
}));
|
|
134288
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
134289
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
134290
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
134291
|
+
const context = {
|
|
134292
|
+
options: client._options,
|
|
134293
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134294
|
+
operationID: "createRepo",
|
|
134295
|
+
oAuth2Scopes: null,
|
|
134296
|
+
resolvedSecurity: requestSecurity,
|
|
134297
|
+
securitySource: client._options.bearerAuth,
|
|
134298
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
134299
|
+
strategy: "backoff",
|
|
134300
|
+
backoff: {
|
|
134301
|
+
initialInterval: 500,
|
|
134302
|
+
maxInterval: 5000,
|
|
134303
|
+
exponent: 1.5,
|
|
134304
|
+
maxElapsedTime: 15000
|
|
134305
|
+
},
|
|
134306
|
+
retryConnectionErrors: true
|
|
134307
|
+
},
|
|
134308
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
134309
|
+
};
|
|
134310
|
+
const requestRes = client._createRequest(context, {
|
|
134311
|
+
security: requestSecurity,
|
|
134312
|
+
method: "POST",
|
|
134313
|
+
baseURL: options?.serverURL,
|
|
134314
|
+
path,
|
|
134315
|
+
headers,
|
|
134316
|
+
body,
|
|
134317
|
+
userAgent: client._options.userAgent,
|
|
134318
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
134319
|
+
}, options);
|
|
134320
|
+
if (!requestRes.ok) {
|
|
134321
|
+
return [requestRes, { status: "invalid" }];
|
|
134322
|
+
}
|
|
134323
|
+
const req = requestRes.value;
|
|
134324
|
+
const doResult = await client._do(req, {
|
|
134325
|
+
context,
|
|
134326
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
134327
|
+
retryConfig: context.retryConfig,
|
|
134328
|
+
retryCodes: context.retryCodes
|
|
134429
134329
|
});
|
|
134330
|
+
if (!doResult.ok) {
|
|
134331
|
+
return [doResult, { status: "request-error", request: req }];
|
|
134332
|
+
}
|
|
134333
|
+
const response = doResult.value;
|
|
134334
|
+
const responseFields = {
|
|
134335
|
+
HttpMeta: { Response: response, Request: req }
|
|
134336
|
+
};
|
|
134337
|
+
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 });
|
|
134338
|
+
if (!result.ok) {
|
|
134339
|
+
return [result, { status: "complete", request: req, response }];
|
|
134340
|
+
}
|
|
134341
|
+
return [result, { status: "complete", request: req, response }];
|
|
134342
|
+
}
|
|
134343
|
+
var init_reposCreate = __esm(() => {
|
|
134344
|
+
init_encodings();
|
|
134345
|
+
init_http();
|
|
134346
|
+
init_matchers();
|
|
134347
|
+
init_primitives();
|
|
134348
|
+
init_schemas4();
|
|
134349
|
+
init_security();
|
|
134350
|
+
init_url();
|
|
134351
|
+
init_components();
|
|
134352
|
+
init_errors4();
|
|
134353
|
+
init_operations();
|
|
134354
|
+
init_async();
|
|
134355
|
+
});
|
|
134356
|
+
|
|
134357
|
+
// src/mcp-server/tools/reposCreate.ts
|
|
134358
|
+
var args292, tool$reposCreate;
|
|
134359
|
+
var init_reposCreate2 = __esm(() => {
|
|
134360
|
+
init_reposCreate();
|
|
134361
|
+
init_operations();
|
|
134362
|
+
init_tools();
|
|
134363
|
+
args292 = {
|
|
134364
|
+
request: CreateRepoRequest$inboundSchema2
|
|
134365
|
+
};
|
|
134366
|
+
tool$reposCreate = {
|
|
134367
|
+
name: "repos-create",
|
|
134368
|
+
description: `Create a repository
|
|
134369
|
+
|
|
134370
|
+
Provisions a repository (org owner/admin only): DB insert
|
|
134371
|
+
(authoritative) → Gitea create (rolled back on failure). The repository
|
|
134372
|
+
belongs to the caller's org.
|
|
134373
|
+
`,
|
|
134374
|
+
args: args292,
|
|
134375
|
+
tool: async (client, args293, ctx) => {
|
|
134376
|
+
const [result, apiCall] = await reposCreate(client, args293.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134377
|
+
if (!result.ok) {
|
|
134378
|
+
return {
|
|
134379
|
+
content: [{ type: "text", text: result.error.message }],
|
|
134380
|
+
isError: true
|
|
134381
|
+
};
|
|
134382
|
+
}
|
|
134383
|
+
const value = result.value;
|
|
134384
|
+
return formatResult(value, apiCall);
|
|
134385
|
+
}
|
|
134386
|
+
};
|
|
134387
|
+
});
|
|
134388
|
+
|
|
134389
|
+
// src/funcs/reposDelete.ts
|
|
134390
|
+
function reposDelete(client, request, options) {
|
|
134391
|
+
return new APIPromise($do301(client, request, options));
|
|
134392
|
+
}
|
|
134393
|
+
async function $do301(client, request, options) {
|
|
134394
|
+
const parsed = safeParse4(request, (value) => DeleteRepoRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134395
|
+
if (!parsed.ok) {
|
|
134396
|
+
return [parsed, { status: "invalid" }];
|
|
134397
|
+
}
|
|
134398
|
+
const payload = parsed.value;
|
|
134399
|
+
const body = null;
|
|
134430
134400
|
const pathParams = {
|
|
134431
134401
|
name: encodeSimple("name", payload.name, {
|
|
134432
134402
|
explode: false,
|
|
@@ -134435,15 +134405,10 @@ async function $do300(client, request, options) {
|
|
|
134435
134405
|
org: encodeSimple("org", payload.org, {
|
|
134436
134406
|
explode: false,
|
|
134437
134407
|
charEncoding: "percent"
|
|
134438
|
-
}),
|
|
134439
|
-
user: encodeSimple("user", payload.user, {
|
|
134440
|
-
explode: false,
|
|
134441
|
-
charEncoding: "percent"
|
|
134442
134408
|
})
|
|
134443
134409
|
};
|
|
134444
|
-
const path = pathToFunc("/api/v1/repos/{org}/{name}
|
|
134410
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
134445
134411
|
const headers = new Headers(compactMap({
|
|
134446
|
-
"Content-Type": "application/json",
|
|
134447
134412
|
Accept: "application/json",
|
|
134448
134413
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
134449
134414
|
}));
|
|
@@ -134453,7 +134418,7 @@ async function $do300(client, request, options) {
|
|
|
134453
134418
|
const context = {
|
|
134454
134419
|
options: client._options,
|
|
134455
134420
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134456
|
-
operationID: "
|
|
134421
|
+
operationID: "deleteRepo",
|
|
134457
134422
|
oAuth2Scopes: null,
|
|
134458
134423
|
resolvedSecurity: requestSecurity,
|
|
134459
134424
|
securitySource: client._options.bearerAuth,
|
|
@@ -134471,7 +134436,7 @@ async function $do300(client, request, options) {
|
|
|
134471
134436
|
};
|
|
134472
134437
|
const requestRes = client._createRequest(context, {
|
|
134473
134438
|
security: requestSecurity,
|
|
134474
|
-
method: "
|
|
134439
|
+
method: "DELETE",
|
|
134475
134440
|
baseURL: options?.serverURL,
|
|
134476
134441
|
path,
|
|
134477
134442
|
headers,
|
|
@@ -134496,13 +134461,14 @@ async function $do300(client, request, options) {
|
|
|
134496
134461
|
const responseFields = {
|
|
134497
134462
|
HttpMeta: { Response: response, Request: req }
|
|
134498
134463
|
};
|
|
134499
|
-
const [result] = await match(
|
|
134464
|
+
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 });
|
|
134500
134465
|
if (!result.ok) {
|
|
134501
134466
|
return [result, { status: "complete", request: req, response }];
|
|
134502
134467
|
}
|
|
134503
134468
|
return [result, { status: "complete", request: req, response }];
|
|
134504
134469
|
}
|
|
134505
|
-
var
|
|
134470
|
+
var init_reposDelete = __esm(() => {
|
|
134471
|
+
init_esm();
|
|
134506
134472
|
init_encodings();
|
|
134507
134473
|
init_http();
|
|
134508
134474
|
init_matchers();
|
|
@@ -134510,50 +134476,47 @@ var init_reposCollaboratorsAdd = __esm(() => {
|
|
|
134510
134476
|
init_schemas4();
|
|
134511
134477
|
init_security();
|
|
134512
134478
|
init_url();
|
|
134513
|
-
init_components();
|
|
134514
134479
|
init_errors4();
|
|
134515
134480
|
init_operations();
|
|
134516
134481
|
init_async();
|
|
134517
134482
|
});
|
|
134518
134483
|
|
|
134519
|
-
// src/mcp-server/tools/
|
|
134520
|
-
var
|
|
134521
|
-
var
|
|
134522
|
-
|
|
134484
|
+
// src/mcp-server/tools/reposDelete.ts
|
|
134485
|
+
var args293, tool$reposDelete;
|
|
134486
|
+
var init_reposDelete2 = __esm(() => {
|
|
134487
|
+
init_reposDelete();
|
|
134523
134488
|
init_operations();
|
|
134524
134489
|
init_tools();
|
|
134525
|
-
|
|
134526
|
-
request:
|
|
134490
|
+
args293 = {
|
|
134491
|
+
request: DeleteRepoRequest$inboundSchema
|
|
134527
134492
|
};
|
|
134528
|
-
tool$
|
|
134529
|
-
name: "repos-
|
|
134530
|
-
description: `
|
|
134493
|
+
tool$reposDelete = {
|
|
134494
|
+
name: "repos-delete",
|
|
134495
|
+
description: `Delete a repository
|
|
134531
134496
|
|
|
134532
|
-
|
|
134533
|
-
|
|
134534
|
-
grantable role — it is fixed to the creator at create time.
|
|
134497
|
+
Removes a repository; org owner/admin only. The DB delete is
|
|
134498
|
+
authoritative; the Gitea teardown is best-effort cleanup.
|
|
134535
134499
|
`,
|
|
134536
|
-
args:
|
|
134537
|
-
tool: async (client,
|
|
134538
|
-
const [result, apiCall] = await
|
|
134500
|
+
args: args293,
|
|
134501
|
+
tool: async (client, args294, ctx) => {
|
|
134502
|
+
const [result, apiCall] = await reposDelete(client, args294.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134539
134503
|
if (!result.ok) {
|
|
134540
134504
|
return {
|
|
134541
134505
|
content: [{ type: "text", text: result.error.message }],
|
|
134542
134506
|
isError: true
|
|
134543
134507
|
};
|
|
134544
134508
|
}
|
|
134545
|
-
|
|
134546
|
-
return formatResult(value, apiCall);
|
|
134509
|
+
return formatResult(undefined, apiCall);
|
|
134547
134510
|
}
|
|
134548
134511
|
};
|
|
134549
134512
|
});
|
|
134550
134513
|
|
|
134551
|
-
// src/funcs/
|
|
134552
|
-
function
|
|
134553
|
-
return new APIPromise($
|
|
134514
|
+
// src/funcs/reposGet.ts
|
|
134515
|
+
function reposGet(client, request, options) {
|
|
134516
|
+
return new APIPromise($do302(client, request, options));
|
|
134554
134517
|
}
|
|
134555
|
-
async function $
|
|
134556
|
-
const parsed = safeParse4(request, (value) =>
|
|
134518
|
+
async function $do302(client, request, options) {
|
|
134519
|
+
const parsed = safeParse4(request, (value) => GetRepoRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134557
134520
|
if (!parsed.ok) {
|
|
134558
134521
|
return [parsed, { status: "invalid" }];
|
|
134559
134522
|
}
|
|
@@ -134569,7 +134532,7 @@ async function $do301(client, request, options) {
|
|
|
134569
134532
|
charEncoding: "percent"
|
|
134570
134533
|
})
|
|
134571
134534
|
};
|
|
134572
|
-
const path = pathToFunc("/api/v1/repos/{org}/{name}
|
|
134535
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
134573
134536
|
const headers = new Headers(compactMap({
|
|
134574
134537
|
Accept: "application/json",
|
|
134575
134538
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -134580,7 +134543,7 @@ async function $do301(client, request, options) {
|
|
|
134580
134543
|
const context = {
|
|
134581
134544
|
options: client._options,
|
|
134582
134545
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134583
|
-
operationID: "
|
|
134546
|
+
operationID: "getRepo",
|
|
134584
134547
|
oAuth2Scopes: null,
|
|
134585
134548
|
resolvedSecurity: requestSecurity,
|
|
134586
134549
|
securitySource: client._options.bearerAuth,
|
|
@@ -134623,13 +134586,13 @@ async function $do301(client, request, options) {
|
|
|
134623
134586
|
const responseFields = {
|
|
134624
134587
|
HttpMeta: { Response: response, Request: req }
|
|
134625
134588
|
};
|
|
134626
|
-
const [result] = await match(json(200,
|
|
134589
|
+
const [result] = await match(json(200, Repo$inboundSchema), jsonErr([401, 403, 404], RepoError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134627
134590
|
if (!result.ok) {
|
|
134628
134591
|
return [result, { status: "complete", request: req, response }];
|
|
134629
134592
|
}
|
|
134630
134593
|
return [result, { status: "complete", request: req, response }];
|
|
134631
134594
|
}
|
|
134632
|
-
var
|
|
134595
|
+
var init_reposGet = __esm(() => {
|
|
134633
134596
|
init_encodings();
|
|
134634
134597
|
init_http();
|
|
134635
134598
|
init_matchers();
|
|
@@ -134637,30 +134600,31 @@ var init_reposCollaboratorsList = __esm(() => {
|
|
|
134637
134600
|
init_schemas4();
|
|
134638
134601
|
init_security();
|
|
134639
134602
|
init_url();
|
|
134603
|
+
init_components();
|
|
134640
134604
|
init_errors4();
|
|
134641
134605
|
init_operations();
|
|
134642
134606
|
init_async();
|
|
134643
134607
|
});
|
|
134644
134608
|
|
|
134645
|
-
// src/mcp-server/tools/
|
|
134646
|
-
var
|
|
134647
|
-
var
|
|
134648
|
-
|
|
134609
|
+
// src/mcp-server/tools/reposGet.ts
|
|
134610
|
+
var args294, tool$reposGet;
|
|
134611
|
+
var init_reposGet2 = __esm(() => {
|
|
134612
|
+
init_reposGet();
|
|
134649
134613
|
init_operations();
|
|
134650
134614
|
init_tools();
|
|
134651
|
-
|
|
134652
|
-
request:
|
|
134615
|
+
args294 = {
|
|
134616
|
+
request: GetRepoRequest$inboundSchema
|
|
134653
134617
|
};
|
|
134654
|
-
tool$
|
|
134655
|
-
name: "repos-
|
|
134656
|
-
description: `
|
|
134618
|
+
tool$reposGet = {
|
|
134619
|
+
name: "repos-get",
|
|
134620
|
+
description: `Get a repository
|
|
134657
134621
|
|
|
134658
|
-
|
|
134659
|
-
|
|
134622
|
+
Reads a single repository after the org+role access check (org
|
|
134623
|
+
owner/admin of the repository's org only).
|
|
134660
134624
|
`,
|
|
134661
|
-
args:
|
|
134662
|
-
tool: async (client,
|
|
134663
|
-
const [result, apiCall] = await
|
|
134625
|
+
args: args294,
|
|
134626
|
+
tool: async (client, args295, ctx) => {
|
|
134627
|
+
const [result, apiCall] = await reposGet(client, args295.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134664
134628
|
if (!result.ok) {
|
|
134665
134629
|
return {
|
|
134666
134630
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -134673,32 +134637,18 @@ caller with reader access may see them.
|
|
|
134673
134637
|
};
|
|
134674
134638
|
});
|
|
134675
134639
|
|
|
134676
|
-
// src/funcs/
|
|
134677
|
-
function
|
|
134678
|
-
return new APIPromise($
|
|
134640
|
+
// src/funcs/reposList.ts
|
|
134641
|
+
function reposList(client, request, options) {
|
|
134642
|
+
return new APIPromise($do303(client, request, options));
|
|
134679
134643
|
}
|
|
134680
|
-
async function $
|
|
134681
|
-
const parsed = safeParse4(request, (value) =>
|
|
134644
|
+
async function $do303(client, request, options) {
|
|
134645
|
+
const parsed = safeParse4(request, (value) => ListReposRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134682
134646
|
if (!parsed.ok) {
|
|
134683
134647
|
return [parsed, { status: "invalid" }];
|
|
134684
134648
|
}
|
|
134685
134649
|
const payload = parsed.value;
|
|
134686
134650
|
const body = null;
|
|
134687
|
-
const
|
|
134688
|
-
name: encodeSimple("name", payload.name, {
|
|
134689
|
-
explode: false,
|
|
134690
|
-
charEncoding: "percent"
|
|
134691
|
-
}),
|
|
134692
|
-
org: encodeSimple("org", payload.org, {
|
|
134693
|
-
explode: false,
|
|
134694
|
-
charEncoding: "percent"
|
|
134695
|
-
}),
|
|
134696
|
-
user: encodeSimple("user", payload.user, {
|
|
134697
|
-
explode: false,
|
|
134698
|
-
charEncoding: "percent"
|
|
134699
|
-
})
|
|
134700
|
-
};
|
|
134701
|
-
const path = pathToFunc("/api/v1/repos/{org}/{name}/collaborators/{user}")(pathParams);
|
|
134651
|
+
const path = pathToFunc("/api/v1/repos")();
|
|
134702
134652
|
const headers = new Headers(compactMap({
|
|
134703
134653
|
Accept: "application/json",
|
|
134704
134654
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -134709,7 +134659,7 @@ async function $do302(client, request, options) {
|
|
|
134709
134659
|
const context = {
|
|
134710
134660
|
options: client._options,
|
|
134711
134661
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134712
|
-
operationID: "
|
|
134662
|
+
operationID: "listRepos",
|
|
134713
134663
|
oAuth2Scopes: null,
|
|
134714
134664
|
resolvedSecurity: requestSecurity,
|
|
134715
134665
|
securitySource: client._options.bearerAuth,
|
|
@@ -134727,7 +134677,7 @@ async function $do302(client, request, options) {
|
|
|
134727
134677
|
};
|
|
134728
134678
|
const requestRes = client._createRequest(context, {
|
|
134729
134679
|
security: requestSecurity,
|
|
134730
|
-
method: "
|
|
134680
|
+
method: "GET",
|
|
134731
134681
|
baseURL: options?.serverURL,
|
|
134732
134682
|
path,
|
|
134733
134683
|
headers,
|
|
@@ -134752,14 +134702,13 @@ async function $do302(client, request, options) {
|
|
|
134752
134702
|
const responseFields = {
|
|
134753
134703
|
HttpMeta: { Response: response, Request: req }
|
|
134754
134704
|
};
|
|
134755
|
-
const [result] = await match(
|
|
134705
|
+
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 });
|
|
134756
134706
|
if (!result.ok) {
|
|
134757
134707
|
return [result, { status: "complete", request: req, response }];
|
|
134758
134708
|
}
|
|
134759
134709
|
return [result, { status: "complete", request: req, response }];
|
|
134760
134710
|
}
|
|
134761
|
-
var
|
|
134762
|
-
init_esm();
|
|
134711
|
+
var init_reposList = __esm(() => {
|
|
134763
134712
|
init_encodings();
|
|
134764
134713
|
init_http();
|
|
134765
134714
|
init_matchers();
|
|
@@ -134772,48 +134721,59 @@ var init_reposCollaboratorsRemove = __esm(() => {
|
|
|
134772
134721
|
init_async();
|
|
134773
134722
|
});
|
|
134774
134723
|
|
|
134775
|
-
// src/mcp-server/tools/
|
|
134776
|
-
var
|
|
134777
|
-
var
|
|
134778
|
-
|
|
134724
|
+
// src/mcp-server/tools/reposList.ts
|
|
134725
|
+
var args295, tool$reposList;
|
|
134726
|
+
var init_reposList2 = __esm(() => {
|
|
134727
|
+
init_reposList();
|
|
134779
134728
|
init_operations();
|
|
134780
134729
|
init_tools();
|
|
134781
|
-
|
|
134782
|
-
request:
|
|
134730
|
+
args295 = {
|
|
134731
|
+
request: ListReposRequest$inboundSchema
|
|
134783
134732
|
};
|
|
134784
|
-
tool$
|
|
134785
|
-
name: "repos-
|
|
134786
|
-
description: `
|
|
134733
|
+
tool$reposList = {
|
|
134734
|
+
name: "repos-list",
|
|
134735
|
+
description: `List the caller's org's repositories
|
|
134787
134736
|
|
|
134788
|
-
|
|
134789
|
-
|
|
134737
|
+
Returns every repository in the caller's org (org owner/admin only).
|
|
134738
|
+
Pure DB read.
|
|
134790
134739
|
`,
|
|
134791
|
-
args:
|
|
134792
|
-
tool: async (client,
|
|
134793
|
-
const [result, apiCall] = await
|
|
134740
|
+
args: args295,
|
|
134741
|
+
tool: async (client, args296, ctx) => {
|
|
134742
|
+
const [result, apiCall] = await reposList(client, args296.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134794
134743
|
if (!result.ok) {
|
|
134795
134744
|
return {
|
|
134796
134745
|
content: [{ type: "text", text: result.error.message }],
|
|
134797
134746
|
isError: true
|
|
134798
134747
|
};
|
|
134799
134748
|
}
|
|
134800
|
-
|
|
134749
|
+
const value = result.value;
|
|
134750
|
+
return formatResult(value, apiCall);
|
|
134801
134751
|
}
|
|
134802
134752
|
};
|
|
134803
134753
|
});
|
|
134804
134754
|
|
|
134805
|
-
// src/funcs/
|
|
134806
|
-
function
|
|
134807
|
-
return new APIPromise($
|
|
134755
|
+
// src/funcs/reposUpdate.ts
|
|
134756
|
+
function reposUpdate(client, request, options) {
|
|
134757
|
+
return new APIPromise($do304(client, request, options));
|
|
134808
134758
|
}
|
|
134809
|
-
async function $
|
|
134810
|
-
const parsed = safeParse4(request, (value) =>
|
|
134759
|
+
async function $do304(client, request, options) {
|
|
134760
|
+
const parsed = safeParse4(request, (value) => PatchRepoRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
134811
134761
|
if (!parsed.ok) {
|
|
134812
134762
|
return [parsed, { status: "invalid" }];
|
|
134813
134763
|
}
|
|
134814
134764
|
const payload = parsed.value;
|
|
134815
|
-
const body = encodeJSON("body", payload.
|
|
134816
|
-
const
|
|
134765
|
+
const body = encodeJSON("body", payload.PatchRepoRequest, { explode: true });
|
|
134766
|
+
const pathParams = {
|
|
134767
|
+
name: encodeSimple("name", payload.name, {
|
|
134768
|
+
explode: false,
|
|
134769
|
+
charEncoding: "percent"
|
|
134770
|
+
}),
|
|
134771
|
+
org: encodeSimple("org", payload.org, {
|
|
134772
|
+
explode: false,
|
|
134773
|
+
charEncoding: "percent"
|
|
134774
|
+
})
|
|
134775
|
+
};
|
|
134776
|
+
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
134817
134777
|
const headers = new Headers(compactMap({
|
|
134818
134778
|
"Content-Type": "application/json",
|
|
134819
134779
|
Accept: "application/json",
|
|
@@ -134825,7 +134785,7 @@ async function $do303(client, request, options) {
|
|
|
134825
134785
|
const context = {
|
|
134826
134786
|
options: client._options,
|
|
134827
134787
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134828
|
-
operationID: "
|
|
134788
|
+
operationID: "patchRepo",
|
|
134829
134789
|
oAuth2Scopes: null,
|
|
134830
134790
|
resolvedSecurity: requestSecurity,
|
|
134831
134791
|
securitySource: client._options.bearerAuth,
|
|
@@ -134843,7 +134803,7 @@ async function $do303(client, request, options) {
|
|
|
134843
134803
|
};
|
|
134844
134804
|
const requestRes = client._createRequest(context, {
|
|
134845
134805
|
security: requestSecurity,
|
|
134846
|
-
method: "
|
|
134806
|
+
method: "PATCH",
|
|
134847
134807
|
baseURL: options?.serverURL,
|
|
134848
134808
|
path,
|
|
134849
134809
|
headers,
|
|
@@ -134868,13 +134828,13 @@ async function $do303(client, request, options) {
|
|
|
134868
134828
|
const responseFields = {
|
|
134869
134829
|
HttpMeta: { Response: response, Request: req }
|
|
134870
134830
|
};
|
|
134871
|
-
const [result] = await match(json(
|
|
134831
|
+
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 });
|
|
134872
134832
|
if (!result.ok) {
|
|
134873
134833
|
return [result, { status: "complete", request: req, response }];
|
|
134874
134834
|
}
|
|
134875
134835
|
return [result, { status: "complete", request: req, response }];
|
|
134876
134836
|
}
|
|
134877
|
-
var
|
|
134837
|
+
var init_reposUpdate = __esm(() => {
|
|
134878
134838
|
init_encodings();
|
|
134879
134839
|
init_http();
|
|
134880
134840
|
init_matchers();
|
|
@@ -134888,26 +134848,26 @@ var init_reposCreate = __esm(() => {
|
|
|
134888
134848
|
init_async();
|
|
134889
134849
|
});
|
|
134890
134850
|
|
|
134891
|
-
// src/mcp-server/tools/
|
|
134892
|
-
var
|
|
134893
|
-
var
|
|
134894
|
-
|
|
134851
|
+
// src/mcp-server/tools/reposUpdate.ts
|
|
134852
|
+
var args296, tool$reposUpdate;
|
|
134853
|
+
var init_reposUpdate2 = __esm(() => {
|
|
134854
|
+
init_reposUpdate();
|
|
134895
134855
|
init_operations();
|
|
134896
134856
|
init_tools();
|
|
134897
|
-
|
|
134898
|
-
request:
|
|
134857
|
+
args296 = {
|
|
134858
|
+
request: PatchRepoRequest$inboundSchema2
|
|
134899
134859
|
};
|
|
134900
|
-
tool$
|
|
134901
|
-
name: "repos-
|
|
134902
|
-
description: `
|
|
134860
|
+
tool$reposUpdate = {
|
|
134861
|
+
name: "repos-update",
|
|
134862
|
+
description: `Update a repository's labels
|
|
134903
134863
|
|
|
134904
|
-
|
|
134905
|
-
|
|
134906
|
-
|
|
134864
|
+
Applies a label-only update (name/description); org owner/admin only.
|
|
134865
|
+
The repository id is stable, so a rename is a one-row DB update — no
|
|
134866
|
+
Gitea write. Omitted fields are left unchanged.
|
|
134907
134867
|
`,
|
|
134908
|
-
args:
|
|
134909
|
-
tool: async (client,
|
|
134910
|
-
const [result, apiCall] = await
|
|
134868
|
+
args: args296,
|
|
134869
|
+
tool: async (client, args297, ctx) => {
|
|
134870
|
+
const [result, apiCall] = await reposUpdate(client, args297.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134911
134871
|
if (!result.ok) {
|
|
134912
134872
|
return {
|
|
134913
134873
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -134920,29 +134880,22 @@ becomes the owner.
|
|
|
134920
134880
|
};
|
|
134921
134881
|
});
|
|
134922
134882
|
|
|
134923
|
-
// src/funcs/
|
|
134924
|
-
function
|
|
134925
|
-
return new APIPromise($
|
|
134883
|
+
// src/funcs/sandboxCreate.ts
|
|
134884
|
+
function sandboxCreate(client, request, options) {
|
|
134885
|
+
return new APIPromise($do305(client, request, options));
|
|
134926
134886
|
}
|
|
134927
|
-
async function $
|
|
134928
|
-
const parsed = safeParse4(request, (value) =>
|
|
134887
|
+
async function $do305(client, request, options) {
|
|
134888
|
+
const parsed = safeParse4(request, (value) => CreateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
134929
134889
|
if (!parsed.ok) {
|
|
134930
134890
|
return [parsed, { status: "invalid" }];
|
|
134931
134891
|
}
|
|
134932
134892
|
const payload = parsed.value;
|
|
134933
|
-
const body =
|
|
134934
|
-
|
|
134935
|
-
|
|
134936
|
-
|
|
134937
|
-
charEncoding: "percent"
|
|
134938
|
-
}),
|
|
134939
|
-
org: encodeSimple("org", payload.org, {
|
|
134940
|
-
explode: false,
|
|
134941
|
-
charEncoding: "percent"
|
|
134942
|
-
})
|
|
134943
|
-
};
|
|
134944
|
-
const path = pathToFunc("/api/v1/repos/{org}/{name}")(pathParams);
|
|
134893
|
+
const body = encodeJSON("body", payload.CreateSessionRequest, {
|
|
134894
|
+
explode: true
|
|
134895
|
+
});
|
|
134896
|
+
const path = pathToFunc("/api/v1/sandbox/sessions")();
|
|
134945
134897
|
const headers = new Headers(compactMap({
|
|
134898
|
+
"Content-Type": "application/json",
|
|
134946
134899
|
Accept: "application/json",
|
|
134947
134900
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
134948
134901
|
}));
|
|
@@ -134952,7 +134905,7 @@ async function $do304(client, request, options) {
|
|
|
134952
134905
|
const context = {
|
|
134953
134906
|
options: client._options,
|
|
134954
134907
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134955
|
-
operationID: "
|
|
134908
|
+
operationID: "createSession",
|
|
134956
134909
|
oAuth2Scopes: null,
|
|
134957
134910
|
resolvedSecurity: requestSecurity,
|
|
134958
134911
|
securitySource: client._options.bearerAuth,
|
|
@@ -134970,7 +134923,7 @@ async function $do304(client, request, options) {
|
|
|
134970
134923
|
};
|
|
134971
134924
|
const requestRes = client._createRequest(context, {
|
|
134972
134925
|
security: requestSecurity,
|
|
134973
|
-
method: "
|
|
134926
|
+
method: "POST",
|
|
134974
134927
|
baseURL: options?.serverURL,
|
|
134975
134928
|
path,
|
|
134976
134929
|
headers,
|
|
@@ -134995,14 +134948,13 @@ async function $do304(client, request, options) {
|
|
|
134995
134948
|
const responseFields = {
|
|
134996
134949
|
HttpMeta: { Response: response, Request: req }
|
|
134997
134950
|
};
|
|
134998
|
-
const [result] = await match(
|
|
134951
|
+
const [result] = await match(json([200, 202], CreateSessionResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail([501, "5XX"]))(response, req, { extraFields: responseFields });
|
|
134999
134952
|
if (!result.ok) {
|
|
135000
134953
|
return [result, { status: "complete", request: req, response }];
|
|
135001
134954
|
}
|
|
135002
134955
|
return [result, { status: "complete", request: req, response }];
|
|
135003
134956
|
}
|
|
135004
|
-
var
|
|
135005
|
-
init_esm();
|
|
134957
|
+
var init_sandboxCreate = __esm(() => {
|
|
135006
134958
|
init_encodings();
|
|
135007
134959
|
init_http();
|
|
135008
134960
|
init_matchers();
|
|
@@ -135010,65 +134962,67 @@ var init_reposDelete = __esm(() => {
|
|
|
135010
134962
|
init_schemas4();
|
|
135011
134963
|
init_security();
|
|
135012
134964
|
init_url();
|
|
134965
|
+
init_components();
|
|
135013
134966
|
init_errors4();
|
|
135014
134967
|
init_operations();
|
|
135015
134968
|
init_async();
|
|
135016
134969
|
});
|
|
135017
134970
|
|
|
135018
|
-
// src/mcp-server/tools/
|
|
135019
|
-
var
|
|
135020
|
-
var
|
|
135021
|
-
|
|
134971
|
+
// src/mcp-server/tools/sandboxCreate.ts
|
|
134972
|
+
var args297, tool$sandboxCreate;
|
|
134973
|
+
var init_sandboxCreate2 = __esm(() => {
|
|
134974
|
+
init_sandboxCreate();
|
|
135022
134975
|
init_operations();
|
|
135023
134976
|
init_tools();
|
|
135024
|
-
|
|
135025
|
-
request:
|
|
134977
|
+
args297 = {
|
|
134978
|
+
request: CreateSessionRequest$inboundSchema2
|
|
135026
134979
|
};
|
|
135027
|
-
tool$
|
|
135028
|
-
name: "
|
|
135029
|
-
description: `
|
|
134980
|
+
tool$sandboxCreate = {
|
|
134981
|
+
name: "sandbox-create",
|
|
134982
|
+
description: `Create Session
|
|
135030
134983
|
|
|
135031
|
-
|
|
135032
|
-
|
|
135033
|
-
|
|
135034
|
-
|
|
135035
|
-
tool: async (client, args297, ctx) => {
|
|
135036
|
-
const [result, apiCall] = await reposDelete(client, args297.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134984
|
+
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\`.`,
|
|
134985
|
+
args: args297,
|
|
134986
|
+
tool: async (client, args298, ctx) => {
|
|
134987
|
+
const [result, apiCall] = await sandboxCreate(client, args298.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135037
134988
|
if (!result.ok) {
|
|
135038
134989
|
return {
|
|
135039
134990
|
content: [{ type: "text", text: result.error.message }],
|
|
135040
134991
|
isError: true
|
|
135041
134992
|
};
|
|
135042
134993
|
}
|
|
135043
|
-
|
|
134994
|
+
const value = result.value;
|
|
134995
|
+
return formatResult(value, apiCall);
|
|
135044
134996
|
}
|
|
135045
134997
|
};
|
|
135046
134998
|
});
|
|
135047
134999
|
|
|
135048
|
-
// src/funcs/
|
|
135049
|
-
function
|
|
135050
|
-
return new APIPromise($
|
|
135000
|
+
// src/funcs/sandboxDownloadArchive.ts
|
|
135001
|
+
function sandboxDownloadArchive(client, request, options) {
|
|
135002
|
+
return new APIPromise($do306(client, request, options));
|
|
135051
135003
|
}
|
|
135052
|
-
async function $
|
|
135053
|
-
const parsed = safeParse4(request, (value) =>
|
|
135004
|
+
async function $do306(client, request, options) {
|
|
135005
|
+
const parsed = safeParse4(request, (value) => DownloadWorkspaceArchiveRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135054
135006
|
if (!parsed.ok) {
|
|
135055
135007
|
return [parsed, { status: "invalid" }];
|
|
135056
135008
|
}
|
|
135057
135009
|
const payload = parsed.value;
|
|
135058
|
-
const body =
|
|
135010
|
+
const body = encodeJSON("body", payload.WorkspaceArchiveRequest, {
|
|
135011
|
+
explode: true
|
|
135012
|
+
});
|
|
135059
135013
|
const pathParams = {
|
|
135060
|
-
|
|
135061
|
-
explode: false,
|
|
135062
|
-
charEncoding: "percent"
|
|
135063
|
-
}),
|
|
135064
|
-
org: encodeSimple("org", payload.org, {
|
|
135014
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
135065
135015
|
explode: false,
|
|
135066
135016
|
charEncoding: "percent"
|
|
135067
135017
|
})
|
|
135068
135018
|
};
|
|
135069
|
-
const path = pathToFunc("/api/v1/
|
|
135019
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/archive")(pathParams);
|
|
135020
|
+
const query = encodeFormQuery({
|
|
135021
|
+
session_token: payload.session_token
|
|
135022
|
+
});
|
|
135070
135023
|
const headers = new Headers(compactMap({
|
|
135071
|
-
|
|
135024
|
+
"Content-Type": "application/json",
|
|
135025
|
+
Accept: "application/zip",
|
|
135072
135026
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135073
135027
|
}));
|
|
135074
135028
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
@@ -135077,7 +135031,7 @@ async function $do305(client, request, options) {
|
|
|
135077
135031
|
const context = {
|
|
135078
135032
|
options: client._options,
|
|
135079
135033
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135080
|
-
operationID: "
|
|
135034
|
+
operationID: "downloadWorkspaceArchive",
|
|
135081
135035
|
oAuth2Scopes: null,
|
|
135082
135036
|
resolvedSecurity: requestSecurity,
|
|
135083
135037
|
securitySource: client._options.bearerAuth,
|
|
@@ -135095,10 +135049,11 @@ async function $do305(client, request, options) {
|
|
|
135095
135049
|
};
|
|
135096
135050
|
const requestRes = client._createRequest(context, {
|
|
135097
135051
|
security: requestSecurity,
|
|
135098
|
-
method: "
|
|
135052
|
+
method: "POST",
|
|
135099
135053
|
baseURL: options?.serverURL,
|
|
135100
135054
|
path,
|
|
135101
135055
|
headers,
|
|
135056
|
+
query,
|
|
135102
135057
|
body,
|
|
135103
135058
|
userAgent: client._options.userAgent,
|
|
135104
135059
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -135120,13 +135075,16 @@ async function $do305(client, request, options) {
|
|
|
135120
135075
|
const responseFields = {
|
|
135121
135076
|
HttpMeta: { Response: response, Request: req }
|
|
135122
135077
|
};
|
|
135123
|
-
const [result] = await match(
|
|
135078
|
+
const [result] = await match(stream(200, instanceOfType(ReadableStream), {
|
|
135079
|
+
ctype: "application/zip"
|
|
135080
|
+
}), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135124
135081
|
if (!result.ok) {
|
|
135125
135082
|
return [result, { status: "complete", request: req, response }];
|
|
135126
135083
|
}
|
|
135127
135084
|
return [result, { status: "complete", request: req, response }];
|
|
135128
135085
|
}
|
|
135129
|
-
var
|
|
135086
|
+
var init_sandboxDownloadArchive = __esm(() => {
|
|
135087
|
+
init_esm();
|
|
135130
135088
|
init_encodings();
|
|
135131
135089
|
init_http();
|
|
135132
135090
|
init_matchers();
|
|
@@ -135134,29 +135092,28 @@ var init_reposGet = __esm(() => {
|
|
|
135134
135092
|
init_schemas4();
|
|
135135
135093
|
init_security();
|
|
135136
135094
|
init_url();
|
|
135137
|
-
init_components();
|
|
135138
135095
|
init_errors4();
|
|
135139
135096
|
init_operations();
|
|
135140
135097
|
init_async();
|
|
135141
135098
|
});
|
|
135142
135099
|
|
|
135143
|
-
// src/mcp-server/tools/
|
|
135144
|
-
var
|
|
135145
|
-
var
|
|
135146
|
-
|
|
135100
|
+
// src/mcp-server/tools/sandboxDownloadArchive.ts
|
|
135101
|
+
var args298, tool$sandboxDownloadArchive;
|
|
135102
|
+
var init_sandboxDownloadArchive2 = __esm(() => {
|
|
135103
|
+
init_sandboxDownloadArchive();
|
|
135147
135104
|
init_operations();
|
|
135148
135105
|
init_tools();
|
|
135149
|
-
|
|
135150
|
-
request:
|
|
135106
|
+
args298 = {
|
|
135107
|
+
request: DownloadWorkspaceArchiveRequest$inboundSchema
|
|
135151
135108
|
};
|
|
135152
|
-
tool$
|
|
135153
|
-
name: "
|
|
135154
|
-
description: `
|
|
135109
|
+
tool$sandboxDownloadArchive = {
|
|
135110
|
+
name: "sandbox-download-archive",
|
|
135111
|
+
description: `Download Workspace Archive
|
|
135155
135112
|
|
|
135156
|
-
|
|
135157
|
-
args:
|
|
135158
|
-
tool: async (client,
|
|
135159
|
-
const [result, apiCall] = await
|
|
135113
|
+
Download a zip archive containing the selected workspace paths.`,
|
|
135114
|
+
args: args298,
|
|
135115
|
+
tool: async (client, args299, ctx) => {
|
|
135116
|
+
const [result, apiCall] = await sandboxDownloadArchive(client, args299.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135160
135117
|
if (!result.ok) {
|
|
135161
135118
|
return {
|
|
135162
135119
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135169,20 +135126,33 @@ Reads a single repository after a reader-level access check.`,
|
|
|
135169
135126
|
};
|
|
135170
135127
|
});
|
|
135171
135128
|
|
|
135172
|
-
// src/funcs/
|
|
135173
|
-
function
|
|
135174
|
-
return new APIPromise($
|
|
135129
|
+
// src/funcs/sandboxDownloadFile.ts
|
|
135130
|
+
function sandboxDownloadFile(client, request, options) {
|
|
135131
|
+
return new APIPromise($do307(client, request, options));
|
|
135175
135132
|
}
|
|
135176
|
-
async function $
|
|
135177
|
-
const parsed = safeParse4(request, (value) =>
|
|
135133
|
+
async function $do307(client, request, options) {
|
|
135134
|
+
const parsed = safeParse4(request, (value) => DownloadWorkspaceFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135178
135135
|
if (!parsed.ok) {
|
|
135179
135136
|
return [parsed, { status: "invalid" }];
|
|
135180
135137
|
}
|
|
135181
135138
|
const payload = parsed.value;
|
|
135182
135139
|
const body = null;
|
|
135183
|
-
const
|
|
135140
|
+
const pathParams = {
|
|
135141
|
+
file_path: encodeSimple("file_path", payload.file_path, {
|
|
135142
|
+
explode: false,
|
|
135143
|
+
charEncoding: "percent"
|
|
135144
|
+
}),
|
|
135145
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
135146
|
+
explode: false,
|
|
135147
|
+
charEncoding: "percent"
|
|
135148
|
+
})
|
|
135149
|
+
};
|
|
135150
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/files/{file_path}")(pathParams);
|
|
135151
|
+
const query = encodeFormQuery({
|
|
135152
|
+
session_token: payload.session_token
|
|
135153
|
+
});
|
|
135184
135154
|
const headers = new Headers(compactMap({
|
|
135185
|
-
Accept: "application/
|
|
135155
|
+
Accept: "application/octet-stream",
|
|
135186
135156
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135187
135157
|
}));
|
|
135188
135158
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
@@ -135191,7 +135161,7 @@ async function $do306(client, request, options) {
|
|
|
135191
135161
|
const context = {
|
|
135192
135162
|
options: client._options,
|
|
135193
135163
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135194
|
-
operationID: "
|
|
135164
|
+
operationID: "downloadWorkspaceFile",
|
|
135195
135165
|
oAuth2Scopes: null,
|
|
135196
135166
|
resolvedSecurity: requestSecurity,
|
|
135197
135167
|
securitySource: client._options.bearerAuth,
|
|
@@ -135213,6 +135183,7 @@ async function $do306(client, request, options) {
|
|
|
135213
135183
|
baseURL: options?.serverURL,
|
|
135214
135184
|
path,
|
|
135215
135185
|
headers,
|
|
135186
|
+
query,
|
|
135216
135187
|
body,
|
|
135217
135188
|
userAgent: client._options.userAgent,
|
|
135218
135189
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -135234,13 +135205,14 @@ async function $do306(client, request, options) {
|
|
|
135234
135205
|
const responseFields = {
|
|
135235
135206
|
HttpMeta: { Response: response, Request: req }
|
|
135236
135207
|
};
|
|
135237
|
-
const [result] = await match(
|
|
135208
|
+
const [result] = await match(stream(200, instanceOfType(ReadableStream)), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135238
135209
|
if (!result.ok) {
|
|
135239
135210
|
return [result, { status: "complete", request: req, response }];
|
|
135240
135211
|
}
|
|
135241
135212
|
return [result, { status: "complete", request: req, response }];
|
|
135242
135213
|
}
|
|
135243
|
-
var
|
|
135214
|
+
var init_sandboxDownloadFile = __esm(() => {
|
|
135215
|
+
init_esm();
|
|
135244
135216
|
init_encodings();
|
|
135245
135217
|
init_http();
|
|
135246
135218
|
init_matchers();
|
|
@@ -135253,25 +135225,23 @@ var init_reposList = __esm(() => {
|
|
|
135253
135225
|
init_async();
|
|
135254
135226
|
});
|
|
135255
135227
|
|
|
135256
|
-
// src/mcp-server/tools/
|
|
135257
|
-
var
|
|
135258
|
-
var
|
|
135259
|
-
|
|
135228
|
+
// src/mcp-server/tools/sandboxDownloadFile.ts
|
|
135229
|
+
var args299, tool$sandboxDownloadFile;
|
|
135230
|
+
var init_sandboxDownloadFile2 = __esm(() => {
|
|
135231
|
+
init_sandboxDownloadFile();
|
|
135260
135232
|
init_operations();
|
|
135261
135233
|
init_tools();
|
|
135262
|
-
|
|
135263
|
-
request:
|
|
135234
|
+
args299 = {
|
|
135235
|
+
request: DownloadWorkspaceFileRequest$inboundSchema
|
|
135264
135236
|
};
|
|
135265
|
-
tool$
|
|
135266
|
-
name: "
|
|
135267
|
-
description: `
|
|
135237
|
+
tool$sandboxDownloadFile = {
|
|
135238
|
+
name: "sandbox-download-file",
|
|
135239
|
+
description: `Download Workspace File
|
|
135268
135240
|
|
|
135269
|
-
|
|
135270
|
-
|
|
135271
|
-
|
|
135272
|
-
|
|
135273
|
-
tool: async (client, args299, ctx) => {
|
|
135274
|
-
const [result, apiCall] = await reposList(client, args299.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135241
|
+
Download raw bytes from a file in the session workspace.`,
|
|
135242
|
+
args: args299,
|
|
135243
|
+
tool: async (client, args300, ctx) => {
|
|
135244
|
+
const [result, apiCall] = await sandboxDownloadFile(client, args300.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135275
135245
|
if (!result.ok) {
|
|
135276
135246
|
return {
|
|
135277
135247
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135284,30 +135254,25 @@ widened to the whole (org, team) for an org admin. Pure DB read.
|
|
|
135284
135254
|
};
|
|
135285
135255
|
});
|
|
135286
135256
|
|
|
135287
|
-
// src/funcs/
|
|
135288
|
-
function
|
|
135289
|
-
return new APIPromise($
|
|
135257
|
+
// src/funcs/sandboxGet.ts
|
|
135258
|
+
function sandboxGet(client, request, options) {
|
|
135259
|
+
return new APIPromise($do308(client, request, options));
|
|
135290
135260
|
}
|
|
135291
|
-
async function $
|
|
135292
|
-
const parsed = safeParse4(request, (value) =>
|
|
135261
|
+
async function $do308(client, request, options) {
|
|
135262
|
+
const parsed = safeParse4(request, (value) => GetSessionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135293
135263
|
if (!parsed.ok) {
|
|
135294
135264
|
return [parsed, { status: "invalid" }];
|
|
135295
135265
|
}
|
|
135296
135266
|
const payload = parsed.value;
|
|
135297
|
-
const body =
|
|
135267
|
+
const body = null;
|
|
135298
135268
|
const pathParams = {
|
|
135299
|
-
|
|
135300
|
-
explode: false,
|
|
135301
|
-
charEncoding: "percent"
|
|
135302
|
-
}),
|
|
135303
|
-
org: encodeSimple("org", payload.org, {
|
|
135269
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
135304
135270
|
explode: false,
|
|
135305
135271
|
charEncoding: "percent"
|
|
135306
135272
|
})
|
|
135307
135273
|
};
|
|
135308
|
-
const path = pathToFunc("/api/v1/
|
|
135274
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}")(pathParams);
|
|
135309
135275
|
const headers = new Headers(compactMap({
|
|
135310
|
-
"Content-Type": "application/json",
|
|
135311
135276
|
Accept: "application/json",
|
|
135312
135277
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135313
135278
|
}));
|
|
@@ -135317,7 +135282,7 @@ async function $do307(client, request, options) {
|
|
|
135317
135282
|
const context = {
|
|
135318
135283
|
options: client._options,
|
|
135319
135284
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135320
|
-
operationID: "
|
|
135285
|
+
operationID: "getSession",
|
|
135321
135286
|
oAuth2Scopes: null,
|
|
135322
135287
|
resolvedSecurity: requestSecurity,
|
|
135323
135288
|
securitySource: client._options.bearerAuth,
|
|
@@ -135335,7 +135300,7 @@ async function $do307(client, request, options) {
|
|
|
135335
135300
|
};
|
|
135336
135301
|
const requestRes = client._createRequest(context, {
|
|
135337
135302
|
security: requestSecurity,
|
|
135338
|
-
method: "
|
|
135303
|
+
method: "GET",
|
|
135339
135304
|
baseURL: options?.serverURL,
|
|
135340
135305
|
path,
|
|
135341
135306
|
headers,
|
|
@@ -135360,13 +135325,13 @@ async function $do307(client, request, options) {
|
|
|
135360
135325
|
const responseFields = {
|
|
135361
135326
|
HttpMeta: { Response: response, Request: req }
|
|
135362
135327
|
};
|
|
135363
|
-
const [result] = await match(json(200,
|
|
135328
|
+
const [result] = await match(json(200, SessionRecord$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135364
135329
|
if (!result.ok) {
|
|
135365
135330
|
return [result, { status: "complete", request: req, response }];
|
|
135366
135331
|
}
|
|
135367
135332
|
return [result, { status: "complete", request: req, response }];
|
|
135368
135333
|
}
|
|
135369
|
-
var
|
|
135334
|
+
var init_sandboxGet = __esm(() => {
|
|
135370
135335
|
init_encodings();
|
|
135371
135336
|
init_http();
|
|
135372
135337
|
init_matchers();
|
|
@@ -135380,27 +135345,23 @@ var init_reposUpdate = __esm(() => {
|
|
|
135380
135345
|
init_async();
|
|
135381
135346
|
});
|
|
135382
135347
|
|
|
135383
|
-
// src/mcp-server/tools/
|
|
135384
|
-
var
|
|
135385
|
-
var
|
|
135386
|
-
|
|
135348
|
+
// src/mcp-server/tools/sandboxGet.ts
|
|
135349
|
+
var args300, tool$sandboxGet;
|
|
135350
|
+
var init_sandboxGet2 = __esm(() => {
|
|
135351
|
+
init_sandboxGet();
|
|
135387
135352
|
init_operations();
|
|
135388
135353
|
init_tools();
|
|
135389
|
-
|
|
135390
|
-
request:
|
|
135354
|
+
args300 = {
|
|
135355
|
+
request: GetSessionRequest$inboundSchema
|
|
135391
135356
|
};
|
|
135392
|
-
tool$
|
|
135393
|
-
name: "
|
|
135394
|
-
description: `
|
|
135357
|
+
tool$sandboxGet = {
|
|
135358
|
+
name: "sandbox-get",
|
|
135359
|
+
description: `Get Session
|
|
135395
135360
|
|
|
135396
|
-
|
|
135397
|
-
|
|
135398
|
-
|
|
135399
|
-
|
|
135400
|
-
`,
|
|
135401
|
-
args: args299,
|
|
135402
|
-
tool: async (client, args300, ctx) => {
|
|
135403
|
-
const [result, apiCall] = await reposUpdate(client, args300.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135361
|
+
Return the current state, configuration, and resource allocation for a sandbox session.`,
|
|
135362
|
+
args: args300,
|
|
135363
|
+
tool: async (client, args301, ctx) => {
|
|
135364
|
+
const [result, apiCall] = await sandboxGet(client, args301.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135404
135365
|
if (!result.ok) {
|
|
135405
135366
|
return {
|
|
135406
135367
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135413,22 +135374,28 @@ update — no Gitea/fga writes. Omitted fields are left unchanged;
|
|
|
135413
135374
|
};
|
|
135414
135375
|
});
|
|
135415
135376
|
|
|
135416
|
-
// src/funcs/
|
|
135417
|
-
function
|
|
135418
|
-
return new APIPromise($
|
|
135377
|
+
// src/funcs/sandboxGetBrowserUrl.ts
|
|
135378
|
+
function sandboxGetBrowserUrl(client, request, options) {
|
|
135379
|
+
return new APIPromise($do309(client, request, options));
|
|
135419
135380
|
}
|
|
135420
|
-
async function $
|
|
135421
|
-
const parsed = safeParse4(request, (value) =>
|
|
135381
|
+
async function $do309(client, request, options) {
|
|
135382
|
+
const parsed = safeParse4(request, (value) => GetBrowserSessionUrlRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135422
135383
|
if (!parsed.ok) {
|
|
135423
135384
|
return [parsed, { status: "invalid" }];
|
|
135424
135385
|
}
|
|
135425
135386
|
const payload = parsed.value;
|
|
135426
|
-
const body =
|
|
135427
|
-
|
|
135387
|
+
const body = null;
|
|
135388
|
+
const pathParams = {
|
|
135389
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
135390
|
+
explode: false,
|
|
135391
|
+
charEncoding: "percent"
|
|
135392
|
+
})
|
|
135393
|
+
};
|
|
135394
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/browser-url")(pathParams);
|
|
135395
|
+
const query = encodeFormQuery({
|
|
135396
|
+
session_token: payload.session_token
|
|
135428
135397
|
});
|
|
135429
|
-
const path = pathToFunc("/api/v1/sandbox/sessions")();
|
|
135430
135398
|
const headers = new Headers(compactMap({
|
|
135431
|
-
"Content-Type": "application/json",
|
|
135432
135399
|
Accept: "application/json",
|
|
135433
135400
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135434
135401
|
}));
|
|
@@ -135438,7 +135405,7 @@ async function $do308(client, request, options) {
|
|
|
135438
135405
|
const context = {
|
|
135439
135406
|
options: client._options,
|
|
135440
135407
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135441
|
-
operationID: "
|
|
135408
|
+
operationID: "getBrowserSessionUrl",
|
|
135442
135409
|
oAuth2Scopes: null,
|
|
135443
135410
|
resolvedSecurity: requestSecurity,
|
|
135444
135411
|
securitySource: client._options.bearerAuth,
|
|
@@ -135456,10 +135423,11 @@ async function $do308(client, request, options) {
|
|
|
135456
135423
|
};
|
|
135457
135424
|
const requestRes = client._createRequest(context, {
|
|
135458
135425
|
security: requestSecurity,
|
|
135459
|
-
method: "
|
|
135426
|
+
method: "GET",
|
|
135460
135427
|
baseURL: options?.serverURL,
|
|
135461
135428
|
path,
|
|
135462
135429
|
headers,
|
|
135430
|
+
query,
|
|
135463
135431
|
body,
|
|
135464
135432
|
userAgent: client._options.userAgent,
|
|
135465
135433
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -135481,13 +135449,13 @@ async function $do308(client, request, options) {
|
|
|
135481
135449
|
const responseFields = {
|
|
135482
135450
|
HttpMeta: { Response: response, Request: req }
|
|
135483
135451
|
};
|
|
135484
|
-
const [result] = await match(json(
|
|
135452
|
+
const [result] = await match(json(200, SessionUrlResponse$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail([501, "5XX"]))(response, req, { extraFields: responseFields });
|
|
135485
135453
|
if (!result.ok) {
|
|
135486
135454
|
return [result, { status: "complete", request: req, response }];
|
|
135487
135455
|
}
|
|
135488
135456
|
return [result, { status: "complete", request: req, response }];
|
|
135489
135457
|
}
|
|
135490
|
-
var
|
|
135458
|
+
var init_sandboxGetBrowserUrl = __esm(() => {
|
|
135491
135459
|
init_encodings();
|
|
135492
135460
|
init_http();
|
|
135493
135461
|
init_matchers();
|
|
@@ -135501,23 +135469,23 @@ var init_sandboxCreate = __esm(() => {
|
|
|
135501
135469
|
init_async();
|
|
135502
135470
|
});
|
|
135503
135471
|
|
|
135504
|
-
// src/mcp-server/tools/
|
|
135505
|
-
var
|
|
135506
|
-
var
|
|
135507
|
-
|
|
135472
|
+
// src/mcp-server/tools/sandboxGetBrowserUrl.ts
|
|
135473
|
+
var args301, tool$sandboxGetBrowserUrl;
|
|
135474
|
+
var init_sandboxGetBrowserUrl2 = __esm(() => {
|
|
135475
|
+
init_sandboxGetBrowserUrl();
|
|
135508
135476
|
init_operations();
|
|
135509
135477
|
init_tools();
|
|
135510
|
-
|
|
135511
|
-
request:
|
|
135478
|
+
args301 = {
|
|
135479
|
+
request: GetBrowserSessionUrlRequest$inboundSchema
|
|
135512
135480
|
};
|
|
135513
|
-
tool$
|
|
135514
|
-
name: "sandbox-
|
|
135515
|
-
description: `
|
|
135481
|
+
tool$sandboxGetBrowserUrl = {
|
|
135482
|
+
name: "sandbox-get-browser-url",
|
|
135483
|
+
description: `Get Browser Session URL
|
|
135516
135484
|
|
|
135517
|
-
|
|
135518
|
-
args:
|
|
135519
|
-
tool: async (client,
|
|
135520
|
-
const [result, apiCall] = await
|
|
135485
|
+
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.`,
|
|
135486
|
+
args: args301,
|
|
135487
|
+
tool: async (client, args302, ctx) => {
|
|
135488
|
+
const [result, apiCall] = await sandboxGetBrowserUrl(client, args302.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135521
135489
|
if (!result.ok) {
|
|
135522
135490
|
return {
|
|
135523
135491
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135530,33 +135498,14 @@ Create a sandbox session and return its public session metadata, session token,
|
|
|
135530
135498
|
};
|
|
135531
135499
|
});
|
|
135532
135500
|
|
|
135533
|
-
// src/funcs/
|
|
135534
|
-
function
|
|
135535
|
-
return new APIPromise($
|
|
135501
|
+
// src/funcs/sandboxGetPricing.ts
|
|
135502
|
+
function sandboxGetPricing(client, options) {
|
|
135503
|
+
return new APIPromise($do310(client, options));
|
|
135536
135504
|
}
|
|
135537
|
-
async function $
|
|
135538
|
-
const
|
|
135539
|
-
if (!parsed.ok) {
|
|
135540
|
-
return [parsed, { status: "invalid" }];
|
|
135541
|
-
}
|
|
135542
|
-
const payload = parsed.value;
|
|
135543
|
-
const body = encodeJSON("body", payload.WorkspaceArchiveRequest, {
|
|
135544
|
-
explode: true
|
|
135545
|
-
});
|
|
135546
|
-
const pathParams = {
|
|
135547
|
-
session_id: encodeSimple("session_id", payload.session_id, {
|
|
135548
|
-
explode: false,
|
|
135549
|
-
charEncoding: "percent"
|
|
135550
|
-
})
|
|
135551
|
-
};
|
|
135552
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace/archive")(pathParams);
|
|
135553
|
-
const query = encodeFormQuery({
|
|
135554
|
-
session_token: payload.session_token
|
|
135555
|
-
});
|
|
135505
|
+
async function $do310(client, options) {
|
|
135506
|
+
const path = pathToFunc("/api/v1/sandbox/pricing")();
|
|
135556
135507
|
const headers = new Headers(compactMap({
|
|
135557
|
-
|
|
135558
|
-
Accept: "application/zip",
|
|
135559
|
-
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135508
|
+
Accept: "application/json"
|
|
135560
135509
|
}));
|
|
135561
135510
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135562
135511
|
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
@@ -135564,7 +135513,7 @@ async function $do309(client, request, options) {
|
|
|
135564
135513
|
const context = {
|
|
135565
135514
|
options: client._options,
|
|
135566
135515
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135567
|
-
operationID: "
|
|
135516
|
+
operationID: "getSandboxPricing",
|
|
135568
135517
|
oAuth2Scopes: null,
|
|
135569
135518
|
resolvedSecurity: requestSecurity,
|
|
135570
135519
|
securitySource: client._options.bearerAuth,
|
|
@@ -135582,12 +135531,10 @@ async function $do309(client, request, options) {
|
|
|
135582
135531
|
};
|
|
135583
135532
|
const requestRes = client._createRequest(context, {
|
|
135584
135533
|
security: requestSecurity,
|
|
135585
|
-
method: "
|
|
135534
|
+
method: "GET",
|
|
135586
135535
|
baseURL: options?.serverURL,
|
|
135587
135536
|
path,
|
|
135588
135537
|
headers,
|
|
135589
|
-
query,
|
|
135590
|
-
body,
|
|
135591
135538
|
userAgent: client._options.userAgent,
|
|
135592
135539
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135593
135540
|
}, options);
|
|
@@ -135605,48 +135552,34 @@ async function $do309(client, request, options) {
|
|
|
135605
135552
|
return [doResult, { status: "request-error", request: req }];
|
|
135606
135553
|
}
|
|
135607
135554
|
const response = doResult.value;
|
|
135608
|
-
const
|
|
135609
|
-
HttpMeta: { Response: response, Request: req }
|
|
135610
|
-
};
|
|
135611
|
-
const [result] = await match(stream(200, instanceOfType(ReadableStream), {
|
|
135612
|
-
ctype: "application/zip"
|
|
135613
|
-
}), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135555
|
+
const [result] = await match(json(200, SandboxPricingCard$inboundSchema), fail("4XX"), fail("5XX"))(response, req);
|
|
135614
135556
|
if (!result.ok) {
|
|
135615
135557
|
return [result, { status: "complete", request: req, response }];
|
|
135616
135558
|
}
|
|
135617
135559
|
return [result, { status: "complete", request: req, response }];
|
|
135618
135560
|
}
|
|
135619
|
-
var
|
|
135620
|
-
init_esm();
|
|
135621
|
-
init_encodings();
|
|
135561
|
+
var init_sandboxGetPricing = __esm(() => {
|
|
135622
135562
|
init_http();
|
|
135623
135563
|
init_matchers();
|
|
135624
135564
|
init_primitives();
|
|
135625
|
-
init_schemas4();
|
|
135626
135565
|
init_security();
|
|
135627
135566
|
init_url();
|
|
135628
|
-
|
|
135629
|
-
init_operations();
|
|
135567
|
+
init_components();
|
|
135630
135568
|
init_async();
|
|
135631
135569
|
});
|
|
135632
135570
|
|
|
135633
|
-
// src/mcp-server/tools/
|
|
135634
|
-
var
|
|
135635
|
-
var
|
|
135636
|
-
|
|
135637
|
-
init_operations();
|
|
135571
|
+
// src/mcp-server/tools/sandboxGetPricing.ts
|
|
135572
|
+
var tool$sandboxGetPricing;
|
|
135573
|
+
var init_sandboxGetPricing2 = __esm(() => {
|
|
135574
|
+
init_sandboxGetPricing();
|
|
135638
135575
|
init_tools();
|
|
135639
|
-
|
|
135640
|
-
|
|
135641
|
-
|
|
135642
|
-
tool$sandboxDownloadArchive = {
|
|
135643
|
-
name: "sandbox-download-archive",
|
|
135644
|
-
description: `Download Workspace Archive
|
|
135576
|
+
tool$sandboxGetPricing = {
|
|
135577
|
+
name: "sandbox-get-pricing",
|
|
135578
|
+
description: `Get Sandbox Pricing
|
|
135645
135579
|
|
|
135646
|
-
|
|
135647
|
-
|
|
135648
|
-
|
|
135649
|
-
const [result, apiCall] = await sandboxDownloadArchive(client, args302.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135580
|
+
Current sandbox pricing rate card, keyed by SKU (\`standard\`, \`browser\`, \`eval-python\`). Metered sandbox usage is billed \`hours × (per_hour + reserved_memory_GiB × per_gib_hour)\`; SKUs without a configured rate accrue no spend. Cluster admins only.`,
|
|
135581
|
+
tool: async (client, ctx) => {
|
|
135582
|
+
const [result, apiCall] = await sandboxGetPricing(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135650
135583
|
if (!result.ok) {
|
|
135651
135584
|
return {
|
|
135652
135585
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135659,33 +135592,29 @@ Download a zip archive containing the selected workspace paths.`,
|
|
|
135659
135592
|
};
|
|
135660
135593
|
});
|
|
135661
135594
|
|
|
135662
|
-
// src/funcs/
|
|
135663
|
-
function
|
|
135664
|
-
return new APIPromise($
|
|
135595
|
+
// src/funcs/sandboxGetWorkspace.ts
|
|
135596
|
+
function sandboxGetWorkspace(client, request, options) {
|
|
135597
|
+
return new APIPromise($do311(client, request, options));
|
|
135665
135598
|
}
|
|
135666
|
-
async function $
|
|
135667
|
-
const parsed = safeParse4(request, (value) =>
|
|
135599
|
+
async function $do311(client, request, options) {
|
|
135600
|
+
const parsed = safeParse4(request, (value) => GetWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135668
135601
|
if (!parsed.ok) {
|
|
135669
135602
|
return [parsed, { status: "invalid" }];
|
|
135670
135603
|
}
|
|
135671
135604
|
const payload = parsed.value;
|
|
135672
135605
|
const body = null;
|
|
135673
135606
|
const pathParams = {
|
|
135674
|
-
file_path: encodeSimple("file_path", payload.file_path, {
|
|
135675
|
-
explode: false,
|
|
135676
|
-
charEncoding: "percent"
|
|
135677
|
-
}),
|
|
135678
135607
|
session_id: encodeSimple("session_id", payload.session_id, {
|
|
135679
135608
|
explode: false,
|
|
135680
135609
|
charEncoding: "percent"
|
|
135681
135610
|
})
|
|
135682
135611
|
};
|
|
135683
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace
|
|
135612
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/workspace")(pathParams);
|
|
135684
135613
|
const query = encodeFormQuery({
|
|
135685
135614
|
session_token: payload.session_token
|
|
135686
135615
|
});
|
|
135687
135616
|
const headers = new Headers(compactMap({
|
|
135688
|
-
Accept: "application/
|
|
135617
|
+
Accept: "application/json",
|
|
135689
135618
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135690
135619
|
}));
|
|
135691
135620
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
@@ -135694,7 +135623,7 @@ async function $do310(client, request, options) {
|
|
|
135694
135623
|
const context = {
|
|
135695
135624
|
options: client._options,
|
|
135696
135625
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135697
|
-
operationID: "
|
|
135626
|
+
operationID: "getWorkspace",
|
|
135698
135627
|
oAuth2Scopes: null,
|
|
135699
135628
|
resolvedSecurity: requestSecurity,
|
|
135700
135629
|
securitySource: client._options.bearerAuth,
|
|
@@ -135738,14 +135667,13 @@ async function $do310(client, request, options) {
|
|
|
135738
135667
|
const responseFields = {
|
|
135739
135668
|
HttpMeta: { Response: response, Request: req }
|
|
135740
135669
|
};
|
|
135741
|
-
const [result] = await match(
|
|
135670
|
+
const [result] = await match(json(200, WorkspaceManifest$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135742
135671
|
if (!result.ok) {
|
|
135743
135672
|
return [result, { status: "complete", request: req, response }];
|
|
135744
135673
|
}
|
|
135745
135674
|
return [result, { status: "complete", request: req, response }];
|
|
135746
135675
|
}
|
|
135747
|
-
var
|
|
135748
|
-
init_esm();
|
|
135676
|
+
var init_sandboxGetWorkspace = __esm(() => {
|
|
135749
135677
|
init_encodings();
|
|
135750
135678
|
init_http();
|
|
135751
135679
|
init_matchers();
|
|
@@ -135753,28 +135681,29 @@ var init_sandboxDownloadFile = __esm(() => {
|
|
|
135753
135681
|
init_schemas4();
|
|
135754
135682
|
init_security();
|
|
135755
135683
|
init_url();
|
|
135684
|
+
init_components();
|
|
135756
135685
|
init_errors4();
|
|
135757
135686
|
init_operations();
|
|
135758
135687
|
init_async();
|
|
135759
135688
|
});
|
|
135760
135689
|
|
|
135761
|
-
// src/mcp-server/tools/
|
|
135762
|
-
var args302, tool$
|
|
135763
|
-
var
|
|
135764
|
-
|
|
135690
|
+
// src/mcp-server/tools/sandboxGetWorkspace.ts
|
|
135691
|
+
var args302, tool$sandboxGetWorkspace;
|
|
135692
|
+
var init_sandboxGetWorkspace2 = __esm(() => {
|
|
135693
|
+
init_sandboxGetWorkspace();
|
|
135765
135694
|
init_operations();
|
|
135766
135695
|
init_tools();
|
|
135767
135696
|
args302 = {
|
|
135768
|
-
request:
|
|
135697
|
+
request: GetWorkspaceRequest$inboundSchema
|
|
135769
135698
|
};
|
|
135770
|
-
tool$
|
|
135771
|
-
name: "sandbox-
|
|
135772
|
-
description: `
|
|
135699
|
+
tool$sandboxGetWorkspace = {
|
|
135700
|
+
name: "sandbox-get-workspace",
|
|
135701
|
+
description: `Get Workspace Manifest
|
|
135773
135702
|
|
|
135774
|
-
|
|
135703
|
+
List files currently stored in the session workspace, including paths, sizes, and etags.`,
|
|
135775
135704
|
args: args302,
|
|
135776
135705
|
tool: async (client, args303, ctx) => {
|
|
135777
|
-
const [result, apiCall] = await
|
|
135706
|
+
const [result, apiCall] = await sandboxGetWorkspace(client, args303.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135778
135707
|
if (!result.ok) {
|
|
135779
135708
|
return {
|
|
135780
135709
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135787,24 +135716,18 @@ Download raw bytes from a file in the session workspace.`,
|
|
|
135787
135716
|
};
|
|
135788
135717
|
});
|
|
135789
135718
|
|
|
135790
|
-
// src/funcs/
|
|
135791
|
-
function
|
|
135792
|
-
return new APIPromise($
|
|
135719
|
+
// src/funcs/sandboxList.ts
|
|
135720
|
+
function sandboxList(client, request, options) {
|
|
135721
|
+
return new APIPromise($do312(client, request, options));
|
|
135793
135722
|
}
|
|
135794
|
-
async function $
|
|
135795
|
-
const parsed = safeParse4(request, (value) =>
|
|
135723
|
+
async function $do312(client, request, options) {
|
|
135724
|
+
const parsed = safeParse4(request, (value) => ListSessionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135796
135725
|
if (!parsed.ok) {
|
|
135797
135726
|
return [parsed, { status: "invalid" }];
|
|
135798
135727
|
}
|
|
135799
135728
|
const payload = parsed.value;
|
|
135800
135729
|
const body = null;
|
|
135801
|
-
const
|
|
135802
|
-
session_id: encodeSimple("session_id", payload.session_id, {
|
|
135803
|
-
explode: false,
|
|
135804
|
-
charEncoding: "percent"
|
|
135805
|
-
})
|
|
135806
|
-
};
|
|
135807
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}")(pathParams);
|
|
135730
|
+
const path = pathToFunc("/api/v1/sandbox/sessions")();
|
|
135808
135731
|
const headers = new Headers(compactMap({
|
|
135809
135732
|
Accept: "application/json",
|
|
135810
135733
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
@@ -135815,7 +135738,7 @@ async function $do311(client, request, options) {
|
|
|
135815
135738
|
const context = {
|
|
135816
135739
|
options: client._options,
|
|
135817
135740
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135818
|
-
operationID: "
|
|
135741
|
+
operationID: "listSessions",
|
|
135819
135742
|
oAuth2Scopes: null,
|
|
135820
135743
|
resolvedSecurity: requestSecurity,
|
|
135821
135744
|
securitySource: client._options.bearerAuth,
|
|
@@ -135858,13 +135781,14 @@ async function $do311(client, request, options) {
|
|
|
135858
135781
|
const responseFields = {
|
|
135859
135782
|
HttpMeta: { Response: response, Request: req }
|
|
135860
135783
|
};
|
|
135861
|
-
const [result] = await match(json(200, SessionRecord$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135784
|
+
const [result] = await match(json(200, arrayType(SessionRecord$inboundSchema)), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135862
135785
|
if (!result.ok) {
|
|
135863
135786
|
return [result, { status: "complete", request: req, response }];
|
|
135864
135787
|
}
|
|
135865
135788
|
return [result, { status: "complete", request: req, response }];
|
|
135866
135789
|
}
|
|
135867
|
-
var
|
|
135790
|
+
var init_sandboxList = __esm(() => {
|
|
135791
|
+
init_esm();
|
|
135868
135792
|
init_encodings();
|
|
135869
135793
|
init_http();
|
|
135870
135794
|
init_matchers();
|
|
@@ -135878,23 +135802,23 @@ var init_sandboxGet = __esm(() => {
|
|
|
135878
135802
|
init_async();
|
|
135879
135803
|
});
|
|
135880
135804
|
|
|
135881
|
-
// src/mcp-server/tools/
|
|
135882
|
-
var args303, tool$
|
|
135883
|
-
var
|
|
135884
|
-
|
|
135805
|
+
// src/mcp-server/tools/sandboxList.ts
|
|
135806
|
+
var args303, tool$sandboxList;
|
|
135807
|
+
var init_sandboxList2 = __esm(() => {
|
|
135808
|
+
init_sandboxList();
|
|
135885
135809
|
init_operations();
|
|
135886
135810
|
init_tools();
|
|
135887
135811
|
args303 = {
|
|
135888
|
-
request:
|
|
135812
|
+
request: ListSessionsRequest$inboundSchema
|
|
135889
135813
|
};
|
|
135890
|
-
tool$
|
|
135891
|
-
name: "sandbox-
|
|
135892
|
-
description: `
|
|
135814
|
+
tool$sandboxList = {
|
|
135815
|
+
name: "sandbox-list",
|
|
135816
|
+
description: `List Sessions
|
|
135893
135817
|
|
|
135894
|
-
|
|
135818
|
+
List sandbox sessions visible to the authenticated caller.`,
|
|
135895
135819
|
args: args303,
|
|
135896
135820
|
tool: async (client, args304, ctx) => {
|
|
135897
|
-
const [result, apiCall] = await
|
|
135821
|
+
const [result, apiCall] = await sandboxList(client, args304.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135898
135822
|
if (!result.ok) {
|
|
135899
135823
|
return {
|
|
135900
135824
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135907,24 +135831,32 @@ Return the current state, configuration, and resource allocation for a sandbox s
|
|
|
135907
135831
|
};
|
|
135908
135832
|
});
|
|
135909
135833
|
|
|
135910
|
-
// src/funcs/
|
|
135911
|
-
function
|
|
135912
|
-
return new APIPromise($
|
|
135834
|
+
// src/funcs/sandboxProxyBrowserPortRequest.ts
|
|
135835
|
+
function sandboxProxyBrowserPortRequest(client, request, options) {
|
|
135836
|
+
return new APIPromise($do313(client, request, options));
|
|
135913
135837
|
}
|
|
135914
|
-
async function $
|
|
135915
|
-
const parsed = safeParse4(request, (value) =>
|
|
135838
|
+
async function $do313(client, request, options) {
|
|
135839
|
+
const parsed = safeParse4(request, (value) => ProxyBrowserPortRequestRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135916
135840
|
if (!parsed.ok) {
|
|
135917
135841
|
return [parsed, { status: "invalid" }];
|
|
135918
135842
|
}
|
|
135919
135843
|
const payload = parsed.value;
|
|
135920
135844
|
const body = null;
|
|
135921
135845
|
const pathParams = {
|
|
135846
|
+
port: encodeSimple("port", payload.port, {
|
|
135847
|
+
explode: false,
|
|
135848
|
+
charEncoding: "percent"
|
|
135849
|
+
}),
|
|
135922
135850
|
session_id: encodeSimple("session_id", payload.session_id, {
|
|
135923
135851
|
explode: false,
|
|
135924
135852
|
charEncoding: "percent"
|
|
135853
|
+
}),
|
|
135854
|
+
subpath: encodeSimple("subpath", payload.subpath, {
|
|
135855
|
+
explode: false,
|
|
135856
|
+
charEncoding: "percent"
|
|
135925
135857
|
})
|
|
135926
135858
|
};
|
|
135927
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/
|
|
135859
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/ports/{port}/{subpath}")(pathParams);
|
|
135928
135860
|
const query = encodeFormQuery({
|
|
135929
135861
|
session_token: payload.session_token
|
|
135930
135862
|
});
|
|
@@ -135938,7 +135870,7 @@ async function $do312(client, request, options) {
|
|
|
135938
135870
|
const context = {
|
|
135939
135871
|
options: client._options,
|
|
135940
135872
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135941
|
-
operationID: "
|
|
135873
|
+
operationID: "proxyBrowserPortRequest",
|
|
135942
135874
|
oAuth2Scopes: null,
|
|
135943
135875
|
resolvedSecurity: requestSecurity,
|
|
135944
135876
|
securitySource: client._options.bearerAuth,
|
|
@@ -135982,13 +135914,14 @@ async function $do312(client, request, options) {
|
|
|
135982
135914
|
const responseFields = {
|
|
135983
135915
|
HttpMeta: { Response: response, Request: req }
|
|
135984
135916
|
};
|
|
135985
|
-
const [result] = await match(json(200,
|
|
135917
|
+
const [result] = await match(json(200, anyType()), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135986
135918
|
if (!result.ok) {
|
|
135987
135919
|
return [result, { status: "complete", request: req, response }];
|
|
135988
135920
|
}
|
|
135989
135921
|
return [result, { status: "complete", request: req, response }];
|
|
135990
135922
|
}
|
|
135991
|
-
var
|
|
135923
|
+
var init_sandboxProxyBrowserPortRequest = __esm(() => {
|
|
135924
|
+
init_esm();
|
|
135992
135925
|
init_encodings();
|
|
135993
135926
|
init_http();
|
|
135994
135927
|
init_matchers();
|
|
@@ -135996,29 +135929,28 @@ var init_sandboxGetBrowserUrl = __esm(() => {
|
|
|
135996
135929
|
init_schemas4();
|
|
135997
135930
|
init_security();
|
|
135998
135931
|
init_url();
|
|
135999
|
-
init_components();
|
|
136000
135932
|
init_errors4();
|
|
136001
135933
|
init_operations();
|
|
136002
135934
|
init_async();
|
|
136003
135935
|
});
|
|
136004
135936
|
|
|
136005
|
-
// src/mcp-server/tools/
|
|
136006
|
-
var args304, tool$
|
|
136007
|
-
var
|
|
136008
|
-
|
|
135937
|
+
// src/mcp-server/tools/sandboxProxyBrowserPortRequest.ts
|
|
135938
|
+
var args304, tool$sandboxProxyBrowserPortRequest;
|
|
135939
|
+
var init_sandboxProxyBrowserPortRequest2 = __esm(() => {
|
|
135940
|
+
init_sandboxProxyBrowserPortRequest();
|
|
136009
135941
|
init_operations();
|
|
136010
135942
|
init_tools();
|
|
136011
135943
|
args304 = {
|
|
136012
|
-
request:
|
|
135944
|
+
request: ProxyBrowserPortRequestRequest$inboundSchema
|
|
136013
135945
|
};
|
|
136014
|
-
tool$
|
|
136015
|
-
name: "sandbox-
|
|
136016
|
-
description: `
|
|
135946
|
+
tool$sandboxProxyBrowserPortRequest = {
|
|
135947
|
+
name: "sandbox-proxy-browser-port-request",
|
|
135948
|
+
description: `Proxy Browser Port Request
|
|
136017
135949
|
|
|
136018
|
-
|
|
135950
|
+
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.`,
|
|
136019
135951
|
args: args304,
|
|
136020
135952
|
tool: async (client, args305, ctx) => {
|
|
136021
|
-
const [result, apiCall] = await
|
|
135953
|
+
const [result, apiCall] = await sandboxProxyBrowserPortRequest(client, args305.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136022
135954
|
if (!result.ok) {
|
|
136023
135955
|
return {
|
|
136024
135956
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136031,14 +135963,28 @@ Return the public gateway URL for a browser session's Chrome DevTools Protocol e
|
|
|
136031
135963
|
};
|
|
136032
135964
|
});
|
|
136033
135965
|
|
|
136034
|
-
// src/funcs/
|
|
136035
|
-
function
|
|
136036
|
-
return new APIPromise($
|
|
135966
|
+
// src/funcs/sandboxRunCode.ts
|
|
135967
|
+
function sandboxRunCode(client, request, options) {
|
|
135968
|
+
return new APIPromise($do314(client, request, options));
|
|
136037
135969
|
}
|
|
136038
|
-
async function $
|
|
136039
|
-
const
|
|
135970
|
+
async function $do314(client, request, options) {
|
|
135971
|
+
const parsed = safeParse4(request, (value) => RunCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135972
|
+
if (!parsed.ok) {
|
|
135973
|
+
return [parsed, { status: "invalid" }];
|
|
135974
|
+
}
|
|
135975
|
+
const payload = parsed.value;
|
|
135976
|
+
const body = encodeJSON("body", payload.CodeRequest, { explode: true });
|
|
135977
|
+
const pathParams = {
|
|
135978
|
+
session_id: encodeSimple("session_id", payload.session_id, {
|
|
135979
|
+
explode: false,
|
|
135980
|
+
charEncoding: "percent"
|
|
135981
|
+
})
|
|
135982
|
+
};
|
|
135983
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/code")(pathParams);
|
|
136040
135984
|
const headers = new Headers(compactMap({
|
|
136041
|
-
|
|
135985
|
+
"Content-Type": "application/json",
|
|
135986
|
+
Accept: "application/json",
|
|
135987
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
136042
135988
|
}));
|
|
136043
135989
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
136044
135990
|
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
@@ -136046,7 +135992,7 @@ async function $do313(client, options) {
|
|
|
136046
135992
|
const context = {
|
|
136047
135993
|
options: client._options,
|
|
136048
135994
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136049
|
-
operationID: "
|
|
135995
|
+
operationID: "runCode",
|
|
136050
135996
|
oAuth2Scopes: null,
|
|
136051
135997
|
resolvedSecurity: requestSecurity,
|
|
136052
135998
|
securitySource: client._options.bearerAuth,
|
|
@@ -136064,10 +136010,11 @@ async function $do313(client, options) {
|
|
|
136064
136010
|
};
|
|
136065
136011
|
const requestRes = client._createRequest(context, {
|
|
136066
136012
|
security: requestSecurity,
|
|
136067
|
-
method: "
|
|
136013
|
+
method: "POST",
|
|
136068
136014
|
baseURL: options?.serverURL,
|
|
136069
136015
|
path,
|
|
136070
136016
|
headers,
|
|
136017
|
+
body,
|
|
136071
136018
|
userAgent: client._options.userAgent,
|
|
136072
136019
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
136073
136020
|
}, options);
|
|
@@ -136085,34 +136032,46 @@ async function $do313(client, options) {
|
|
|
136085
136032
|
return [doResult, { status: "request-error", request: req }];
|
|
136086
136033
|
}
|
|
136087
136034
|
const response = doResult.value;
|
|
136088
|
-
const
|
|
136035
|
+
const responseFields = {
|
|
136036
|
+
HttpMeta: { Response: response, Request: req }
|
|
136037
|
+
};
|
|
136038
|
+
const [result] = await match(json(200, CodeResult$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
136089
136039
|
if (!result.ok) {
|
|
136090
136040
|
return [result, { status: "complete", request: req, response }];
|
|
136091
136041
|
}
|
|
136092
136042
|
return [result, { status: "complete", request: req, response }];
|
|
136093
136043
|
}
|
|
136094
|
-
var
|
|
136044
|
+
var init_sandboxRunCode = __esm(() => {
|
|
136045
|
+
init_encodings();
|
|
136095
136046
|
init_http();
|
|
136096
136047
|
init_matchers();
|
|
136097
136048
|
init_primitives();
|
|
136049
|
+
init_schemas4();
|
|
136098
136050
|
init_security();
|
|
136099
136051
|
init_url();
|
|
136100
136052
|
init_components();
|
|
136053
|
+
init_errors4();
|
|
136054
|
+
init_operations();
|
|
136101
136055
|
init_async();
|
|
136102
136056
|
});
|
|
136103
136057
|
|
|
136104
|
-
// src/mcp-server/tools/
|
|
136105
|
-
var tool$
|
|
136106
|
-
var
|
|
136107
|
-
|
|
136058
|
+
// src/mcp-server/tools/sandboxRunCode.ts
|
|
136059
|
+
var args305, tool$sandboxRunCode;
|
|
136060
|
+
var init_sandboxRunCode2 = __esm(() => {
|
|
136061
|
+
init_sandboxRunCode();
|
|
136062
|
+
init_operations();
|
|
136108
136063
|
init_tools();
|
|
136109
|
-
|
|
136110
|
-
|
|
136111
|
-
|
|
136064
|
+
args305 = {
|
|
136065
|
+
request: RunCodeRequest$inboundSchema
|
|
136066
|
+
};
|
|
136067
|
+
tool$sandboxRunCode = {
|
|
136068
|
+
name: "sandbox-run-code",
|
|
136069
|
+
description: `Run Code
|
|
136112
136070
|
|
|
136113
|
-
|
|
136114
|
-
|
|
136115
|
-
|
|
136071
|
+
Execute source code in the session workspace using a supported runtime and return the execution result.`,
|
|
136072
|
+
args: args305,
|
|
136073
|
+
tool: async (client, args306, ctx) => {
|
|
136074
|
+
const [result, apiCall] = await sandboxRunCode(client, args306.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136116
136075
|
if (!result.ok) {
|
|
136117
136076
|
return {
|
|
136118
136077
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136125,28 +136084,26 @@ Current sandbox pricing rate card, keyed by SKU (\`standard\`, \`browser\`, \`ev
|
|
|
136125
136084
|
};
|
|
136126
136085
|
});
|
|
136127
136086
|
|
|
136128
|
-
// src/funcs/
|
|
136129
|
-
function
|
|
136130
|
-
return new APIPromise($
|
|
136087
|
+
// src/funcs/sandboxRunCommand.ts
|
|
136088
|
+
function sandboxRunCommand(client, request, options) {
|
|
136089
|
+
return new APIPromise($do315(client, request, options));
|
|
136131
136090
|
}
|
|
136132
|
-
async function $
|
|
136133
|
-
const parsed = safeParse4(request, (value) =>
|
|
136091
|
+
async function $do315(client, request, options) {
|
|
136092
|
+
const parsed = safeParse4(request, (value) => RunCommandRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136134
136093
|
if (!parsed.ok) {
|
|
136135
136094
|
return [parsed, { status: "invalid" }];
|
|
136136
136095
|
}
|
|
136137
136096
|
const payload = parsed.value;
|
|
136138
|
-
const body =
|
|
136097
|
+
const body = encodeJSON("body", payload.CommandRequest, { explode: true });
|
|
136139
136098
|
const pathParams = {
|
|
136140
136099
|
session_id: encodeSimple("session_id", payload.session_id, {
|
|
136141
136100
|
explode: false,
|
|
136142
136101
|
charEncoding: "percent"
|
|
136143
136102
|
})
|
|
136144
136103
|
};
|
|
136145
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/
|
|
136146
|
-
const query = encodeFormQuery({
|
|
136147
|
-
session_token: payload.session_token
|
|
136148
|
-
});
|
|
136104
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/commands")(pathParams);
|
|
136149
136105
|
const headers = new Headers(compactMap({
|
|
136106
|
+
"Content-Type": "application/json",
|
|
136150
136107
|
Accept: "application/json",
|
|
136151
136108
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
136152
136109
|
}));
|
|
@@ -136156,7 +136113,7 @@ async function $do314(client, request, options) {
|
|
|
136156
136113
|
const context = {
|
|
136157
136114
|
options: client._options,
|
|
136158
136115
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136159
|
-
operationID: "
|
|
136116
|
+
operationID: "runCommand",
|
|
136160
136117
|
oAuth2Scopes: null,
|
|
136161
136118
|
resolvedSecurity: requestSecurity,
|
|
136162
136119
|
securitySource: client._options.bearerAuth,
|
|
@@ -136174,11 +136131,10 @@ async function $do314(client, request, options) {
|
|
|
136174
136131
|
};
|
|
136175
136132
|
const requestRes = client._createRequest(context, {
|
|
136176
136133
|
security: requestSecurity,
|
|
136177
|
-
method: "
|
|
136134
|
+
method: "POST",
|
|
136178
136135
|
baseURL: options?.serverURL,
|
|
136179
136136
|
path,
|
|
136180
136137
|
headers,
|
|
136181
|
-
query,
|
|
136182
136138
|
body,
|
|
136183
136139
|
userAgent: client._options.userAgent,
|
|
136184
136140
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
@@ -136200,13 +136156,13 @@ async function $do314(client, request, options) {
|
|
|
136200
136156
|
const responseFields = {
|
|
136201
136157
|
HttpMeta: { Response: response, Request: req }
|
|
136202
136158
|
};
|
|
136203
|
-
const [result] = await match(json(200,
|
|
136159
|
+
const [result] = await match(json(200, CommandResult$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
136204
136160
|
if (!result.ok) {
|
|
136205
136161
|
return [result, { status: "complete", request: req, response }];
|
|
136206
136162
|
}
|
|
136207
136163
|
return [result, { status: "complete", request: req, response }];
|
|
136208
136164
|
}
|
|
136209
|
-
var
|
|
136165
|
+
var init_sandboxRunCommand = __esm(() => {
|
|
136210
136166
|
init_encodings();
|
|
136211
136167
|
init_http();
|
|
136212
136168
|
init_matchers();
|
|
@@ -136220,23 +136176,23 @@ var init_sandboxGetWorkspace = __esm(() => {
|
|
|
136220
136176
|
init_async();
|
|
136221
136177
|
});
|
|
136222
136178
|
|
|
136223
|
-
// src/mcp-server/tools/
|
|
136224
|
-
var
|
|
136225
|
-
var
|
|
136226
|
-
|
|
136179
|
+
// src/mcp-server/tools/sandboxRunCommand.ts
|
|
136180
|
+
var args306, tool$sandboxRunCommand;
|
|
136181
|
+
var init_sandboxRunCommand2 = __esm(() => {
|
|
136182
|
+
init_sandboxRunCommand();
|
|
136227
136183
|
init_operations();
|
|
136228
136184
|
init_tools();
|
|
136229
|
-
|
|
136230
|
-
request:
|
|
136185
|
+
args306 = {
|
|
136186
|
+
request: RunCommandRequest$inboundSchema
|
|
136231
136187
|
};
|
|
136232
|
-
tool$
|
|
136233
|
-
name: "sandbox-
|
|
136234
|
-
description: `
|
|
136188
|
+
tool$sandboxRunCommand = {
|
|
136189
|
+
name: "sandbox-run-command",
|
|
136190
|
+
description: `Run Command
|
|
136235
136191
|
|
|
136236
|
-
|
|
136237
|
-
args:
|
|
136238
|
-
tool: async (client,
|
|
136239
|
-
const [result, apiCall] = await
|
|
136192
|
+
Run a command in the session workspace and return stdout, stderr, exit code, and changed files.`,
|
|
136193
|
+
args: args306,
|
|
136194
|
+
tool: async (client, args307, ctx) => {
|
|
136195
|
+
const [result, apiCall] = await sandboxRunCommand(client, args307.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136240
136196
|
if (!result.ok) {
|
|
136241
136197
|
return {
|
|
136242
136198
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136249,21 +136205,21 @@ List files currently stored in the session workspace, including paths, sizes, an
|
|
|
136249
136205
|
};
|
|
136250
136206
|
});
|
|
136251
136207
|
|
|
136252
|
-
// src/funcs/
|
|
136253
|
-
function
|
|
136254
|
-
return new APIPromise($
|
|
136208
|
+
// src/funcs/sandboxSetPricing.ts
|
|
136209
|
+
function sandboxSetPricing(client, request, options) {
|
|
136210
|
+
return new APIPromise($do316(client, request, options));
|
|
136255
136211
|
}
|
|
136256
|
-
async function $
|
|
136257
|
-
const parsed = safeParse4(request, (value) =>
|
|
136212
|
+
async function $do316(client, request, options) {
|
|
136213
|
+
const parsed = safeParse4(request, (value) => SandboxPricingUpdate$outboundSchema.parse(value), "Input validation failed");
|
|
136258
136214
|
if (!parsed.ok) {
|
|
136259
136215
|
return [parsed, { status: "invalid" }];
|
|
136260
136216
|
}
|
|
136261
136217
|
const payload = parsed.value;
|
|
136262
|
-
const body =
|
|
136263
|
-
const path = pathToFunc("/api/v1/sandbox/
|
|
136218
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
136219
|
+
const path = pathToFunc("/api/v1/sandbox/pricing")();
|
|
136264
136220
|
const headers = new Headers(compactMap({
|
|
136265
|
-
|
|
136266
|
-
|
|
136221
|
+
"Content-Type": "application/json",
|
|
136222
|
+
Accept: "application/json"
|
|
136267
136223
|
}));
|
|
136268
136224
|
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
136269
136225
|
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
@@ -136271,7 +136227,7 @@ async function $do315(client, request, options) {
|
|
|
136271
136227
|
const context = {
|
|
136272
136228
|
options: client._options,
|
|
136273
136229
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136274
|
-
operationID: "
|
|
136230
|
+
operationID: "setSandboxPricing",
|
|
136275
136231
|
oAuth2Scopes: null,
|
|
136276
136232
|
resolvedSecurity: requestSecurity,
|
|
136277
136233
|
securitySource: client._options.bearerAuth,
|
|
@@ -136289,7 +136245,7 @@ async function $do315(client, request, options) {
|
|
|
136289
136245
|
};
|
|
136290
136246
|
const requestRes = client._createRequest(context, {
|
|
136291
136247
|
security: requestSecurity,
|
|
136292
|
-
method: "
|
|
136248
|
+
method: "PUT",
|
|
136293
136249
|
baseURL: options?.serverURL,
|
|
136294
136250
|
path,
|
|
136295
136251
|
headers,
|
|
@@ -136314,14 +136270,13 @@ async function $do315(client, request, options) {
|
|
|
136314
136270
|
const responseFields = {
|
|
136315
136271
|
HttpMeta: { Response: response, Request: req }
|
|
136316
136272
|
};
|
|
136317
|
-
const [result] = await match(json(200,
|
|
136273
|
+
const [result] = await match(json(200, SandboxPricingCard$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
136318
136274
|
if (!result.ok) {
|
|
136319
136275
|
return [result, { status: "complete", request: req, response }];
|
|
136320
136276
|
}
|
|
136321
136277
|
return [result, { status: "complete", request: req, response }];
|
|
136322
136278
|
}
|
|
136323
|
-
var
|
|
136324
|
-
init_esm();
|
|
136279
|
+
var init_sandboxSetPricing = __esm(() => {
|
|
136325
136280
|
init_encodings();
|
|
136326
136281
|
init_http();
|
|
136327
136282
|
init_matchers();
|
|
@@ -136331,27 +136286,26 @@ var init_sandboxList = __esm(() => {
|
|
|
136331
136286
|
init_url();
|
|
136332
136287
|
init_components();
|
|
136333
136288
|
init_errors4();
|
|
136334
|
-
init_operations();
|
|
136335
136289
|
init_async();
|
|
136336
136290
|
});
|
|
136337
136291
|
|
|
136338
|
-
// src/mcp-server/tools/
|
|
136339
|
-
var
|
|
136340
|
-
var
|
|
136341
|
-
|
|
136342
|
-
|
|
136292
|
+
// src/mcp-server/tools/sandboxSetPricing.ts
|
|
136293
|
+
var args307, tool$sandboxSetPricing;
|
|
136294
|
+
var init_sandboxSetPricing2 = __esm(() => {
|
|
136295
|
+
init_sandboxSetPricing();
|
|
136296
|
+
init_components();
|
|
136343
136297
|
init_tools();
|
|
136344
|
-
|
|
136345
|
-
request:
|
|
136298
|
+
args307 = {
|
|
136299
|
+
request: SandboxPricingUpdate$inboundSchema
|
|
136346
136300
|
};
|
|
136347
|
-
tool$
|
|
136348
|
-
name: "sandbox-
|
|
136349
|
-
description: `
|
|
136301
|
+
tool$sandboxSetPricing = {
|
|
136302
|
+
name: "sandbox-set-pricing",
|
|
136303
|
+
description: `Set Sandbox Pricing
|
|
136350
136304
|
|
|
136351
|
-
|
|
136352
|
-
args:
|
|
136353
|
-
tool: async (client,
|
|
136354
|
-
const [result, apiCall] = await
|
|
136305
|
+
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.`,
|
|
136306
|
+
args: args307,
|
|
136307
|
+
tool: async (client, args308, ctx) => {
|
|
136308
|
+
const [result, apiCall] = await sandboxSetPricing(client, args308.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136355
136309
|
if (!result.ok) {
|
|
136356
136310
|
return {
|
|
136357
136311
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136364,36 +136318,28 @@ List sandbox sessions visible to the authenticated caller.`,
|
|
|
136364
136318
|
};
|
|
136365
136319
|
});
|
|
136366
136320
|
|
|
136367
|
-
// src/funcs/
|
|
136368
|
-
function
|
|
136369
|
-
return new APIPromise($
|
|
136321
|
+
// src/funcs/sandboxTerminate.ts
|
|
136322
|
+
function sandboxTerminate(client, request, options) {
|
|
136323
|
+
return new APIPromise($do317(client, request, options));
|
|
136370
136324
|
}
|
|
136371
|
-
async function $
|
|
136372
|
-
const parsed = safeParse4(request, (value) =>
|
|
136325
|
+
async function $do317(client, request, options) {
|
|
136326
|
+
const parsed = safeParse4(request, (value) => TerminateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
136373
136327
|
if (!parsed.ok) {
|
|
136374
136328
|
return [parsed, { status: "invalid" }];
|
|
136375
136329
|
}
|
|
136376
136330
|
const payload = parsed.value;
|
|
136377
|
-
const body =
|
|
136331
|
+
const body = encodeJSON("body", payload.TerminateSessionRequest, {
|
|
136332
|
+
explode: true
|
|
136333
|
+
});
|
|
136378
136334
|
const pathParams = {
|
|
136379
|
-
port: encodeSimple("port", payload.port, {
|
|
136380
|
-
explode: false,
|
|
136381
|
-
charEncoding: "percent"
|
|
136382
|
-
}),
|
|
136383
136335
|
session_id: encodeSimple("session_id", payload.session_id, {
|
|
136384
136336
|
explode: false,
|
|
136385
136337
|
charEncoding: "percent"
|
|
136386
|
-
}),
|
|
136387
|
-
subpath: encodeSimple("subpath", payload.subpath, {
|
|
136388
|
-
explode: false,
|
|
136389
|
-
charEncoding: "percent"
|
|
136390
136338
|
})
|
|
136391
136339
|
};
|
|
136392
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/
|
|
136393
|
-
const query = encodeFormQuery({
|
|
136394
|
-
session_token: payload.session_token
|
|
136395
|
-
});
|
|
136340
|
+
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/terminate")(pathParams);
|
|
136396
136341
|
const headers = new Headers(compactMap({
|
|
136342
|
+
"Content-Type": "application/json",
|
|
136397
136343
|
Accept: "application/json",
|
|
136398
136344
|
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
136399
136345
|
}));
|
|
@@ -136403,7 +136349,7 @@ async function $do316(client, request, options) {
|
|
|
136403
136349
|
const context = {
|
|
136404
136350
|
options: client._options,
|
|
136405
136351
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136406
|
-
operationID: "
|
|
136352
|
+
operationID: "terminateSession",
|
|
136407
136353
|
oAuth2Scopes: null,
|
|
136408
136354
|
resolvedSecurity: requestSecurity,
|
|
136409
136355
|
securitySource: client._options.bearerAuth,
|
|
@@ -136421,486 +136367,7 @@ async function $do316(client, request, options) {
|
|
|
136421
136367
|
};
|
|
136422
136368
|
const requestRes = client._createRequest(context, {
|
|
136423
136369
|
security: requestSecurity,
|
|
136424
|
-
method: "
|
|
136425
|
-
baseURL: options?.serverURL,
|
|
136426
|
-
path,
|
|
136427
|
-
headers,
|
|
136428
|
-
query,
|
|
136429
|
-
body,
|
|
136430
|
-
userAgent: client._options.userAgent,
|
|
136431
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
136432
|
-
}, options);
|
|
136433
|
-
if (!requestRes.ok) {
|
|
136434
|
-
return [requestRes, { status: "invalid" }];
|
|
136435
|
-
}
|
|
136436
|
-
const req = requestRes.value;
|
|
136437
|
-
const doResult = await client._do(req, {
|
|
136438
|
-
context,
|
|
136439
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
136440
|
-
retryConfig: context.retryConfig,
|
|
136441
|
-
retryCodes: context.retryCodes
|
|
136442
|
-
});
|
|
136443
|
-
if (!doResult.ok) {
|
|
136444
|
-
return [doResult, { status: "request-error", request: req }];
|
|
136445
|
-
}
|
|
136446
|
-
const response = doResult.value;
|
|
136447
|
-
const responseFields = {
|
|
136448
|
-
HttpMeta: { Response: response, Request: req }
|
|
136449
|
-
};
|
|
136450
|
-
const [result] = await match(json(200, anyType()), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
136451
|
-
if (!result.ok) {
|
|
136452
|
-
return [result, { status: "complete", request: req, response }];
|
|
136453
|
-
}
|
|
136454
|
-
return [result, { status: "complete", request: req, response }];
|
|
136455
|
-
}
|
|
136456
|
-
var init_sandboxProxyBrowserPortRequest = __esm(() => {
|
|
136457
|
-
init_esm();
|
|
136458
|
-
init_encodings();
|
|
136459
|
-
init_http();
|
|
136460
|
-
init_matchers();
|
|
136461
|
-
init_primitives();
|
|
136462
|
-
init_schemas4();
|
|
136463
|
-
init_security();
|
|
136464
|
-
init_url();
|
|
136465
|
-
init_errors4();
|
|
136466
|
-
init_operations();
|
|
136467
|
-
init_async();
|
|
136468
|
-
});
|
|
136469
|
-
|
|
136470
|
-
// src/mcp-server/tools/sandboxProxyBrowserPortRequest.ts
|
|
136471
|
-
var args307, tool$sandboxProxyBrowserPortRequest;
|
|
136472
|
-
var init_sandboxProxyBrowserPortRequest2 = __esm(() => {
|
|
136473
|
-
init_sandboxProxyBrowserPortRequest();
|
|
136474
|
-
init_operations();
|
|
136475
|
-
init_tools();
|
|
136476
|
-
args307 = {
|
|
136477
|
-
request: ProxyBrowserPortRequestRequest$inboundSchema
|
|
136478
|
-
};
|
|
136479
|
-
tool$sandboxProxyBrowserPortRequest = {
|
|
136480
|
-
name: "sandbox-proxy-browser-port-request",
|
|
136481
|
-
description: `Proxy Browser Port Request
|
|
136482
|
-
|
|
136483
|
-
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: args307,
|
|
136485
|
-
tool: async (client, args308, ctx) => {
|
|
136486
|
-
const [result, apiCall] = await sandboxProxyBrowserPortRequest(client, args308.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136487
|
-
if (!result.ok) {
|
|
136488
|
-
return {
|
|
136489
|
-
content: [{ type: "text", text: result.error.message }],
|
|
136490
|
-
isError: true
|
|
136491
|
-
};
|
|
136492
|
-
}
|
|
136493
|
-
const value = result.value;
|
|
136494
|
-
return formatResult(value, apiCall);
|
|
136495
|
-
}
|
|
136496
|
-
};
|
|
136497
|
-
});
|
|
136498
|
-
|
|
136499
|
-
// src/funcs/sandboxRunCode.ts
|
|
136500
|
-
function sandboxRunCode(client, request, options) {
|
|
136501
|
-
return new APIPromise($do317(client, request, options));
|
|
136502
|
-
}
|
|
136503
|
-
async function $do317(client, request, options) {
|
|
136504
|
-
const parsed = safeParse4(request, (value) => RunCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136505
|
-
if (!parsed.ok) {
|
|
136506
|
-
return [parsed, { status: "invalid" }];
|
|
136507
|
-
}
|
|
136508
|
-
const payload = parsed.value;
|
|
136509
|
-
const body = encodeJSON("body", payload.CodeRequest, { explode: true });
|
|
136510
|
-
const pathParams = {
|
|
136511
|
-
session_id: encodeSimple("session_id", payload.session_id, {
|
|
136512
|
-
explode: false,
|
|
136513
|
-
charEncoding: "percent"
|
|
136514
|
-
})
|
|
136515
|
-
};
|
|
136516
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/code")(pathParams);
|
|
136517
|
-
const headers = new Headers(compactMap({
|
|
136518
|
-
"Content-Type": "application/json",
|
|
136519
|
-
Accept: "application/json",
|
|
136520
|
-
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
136521
|
-
}));
|
|
136522
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
136523
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
136524
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
136525
|
-
const context = {
|
|
136526
|
-
options: client._options,
|
|
136527
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136528
|
-
operationID: "runCode",
|
|
136529
|
-
oAuth2Scopes: null,
|
|
136530
|
-
resolvedSecurity: requestSecurity,
|
|
136531
|
-
securitySource: client._options.bearerAuth,
|
|
136532
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
136533
|
-
strategy: "backoff",
|
|
136534
|
-
backoff: {
|
|
136535
|
-
initialInterval: 500,
|
|
136536
|
-
maxInterval: 5000,
|
|
136537
|
-
exponent: 1.5,
|
|
136538
|
-
maxElapsedTime: 15000
|
|
136539
|
-
},
|
|
136540
|
-
retryConnectionErrors: true
|
|
136541
|
-
},
|
|
136542
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
136543
|
-
};
|
|
136544
|
-
const requestRes = client._createRequest(context, {
|
|
136545
|
-
security: requestSecurity,
|
|
136546
|
-
method: "POST",
|
|
136547
|
-
baseURL: options?.serverURL,
|
|
136548
|
-
path,
|
|
136549
|
-
headers,
|
|
136550
|
-
body,
|
|
136551
|
-
userAgent: client._options.userAgent,
|
|
136552
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
136553
|
-
}, options);
|
|
136554
|
-
if (!requestRes.ok) {
|
|
136555
|
-
return [requestRes, { status: "invalid" }];
|
|
136556
|
-
}
|
|
136557
|
-
const req = requestRes.value;
|
|
136558
|
-
const doResult = await client._do(req, {
|
|
136559
|
-
context,
|
|
136560
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
136561
|
-
retryConfig: context.retryConfig,
|
|
136562
|
-
retryCodes: context.retryCodes
|
|
136563
|
-
});
|
|
136564
|
-
if (!doResult.ok) {
|
|
136565
|
-
return [doResult, { status: "request-error", request: req }];
|
|
136566
|
-
}
|
|
136567
|
-
const response = doResult.value;
|
|
136568
|
-
const responseFields = {
|
|
136569
|
-
HttpMeta: { Response: response, Request: req }
|
|
136570
|
-
};
|
|
136571
|
-
const [result] = await match(json(200, CodeResult$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
136572
|
-
if (!result.ok) {
|
|
136573
|
-
return [result, { status: "complete", request: req, response }];
|
|
136574
|
-
}
|
|
136575
|
-
return [result, { status: "complete", request: req, response }];
|
|
136576
|
-
}
|
|
136577
|
-
var init_sandboxRunCode = __esm(() => {
|
|
136578
|
-
init_encodings();
|
|
136579
|
-
init_http();
|
|
136580
|
-
init_matchers();
|
|
136581
|
-
init_primitives();
|
|
136582
|
-
init_schemas4();
|
|
136583
|
-
init_security();
|
|
136584
|
-
init_url();
|
|
136585
|
-
init_components();
|
|
136586
|
-
init_errors4();
|
|
136587
|
-
init_operations();
|
|
136588
|
-
init_async();
|
|
136589
|
-
});
|
|
136590
|
-
|
|
136591
|
-
// src/mcp-server/tools/sandboxRunCode.ts
|
|
136592
|
-
var args308, tool$sandboxRunCode;
|
|
136593
|
-
var init_sandboxRunCode2 = __esm(() => {
|
|
136594
|
-
init_sandboxRunCode();
|
|
136595
|
-
init_operations();
|
|
136596
|
-
init_tools();
|
|
136597
|
-
args308 = {
|
|
136598
|
-
request: RunCodeRequest$inboundSchema
|
|
136599
|
-
};
|
|
136600
|
-
tool$sandboxRunCode = {
|
|
136601
|
-
name: "sandbox-run-code",
|
|
136602
|
-
description: `Run Code
|
|
136603
|
-
|
|
136604
|
-
Execute source code in the session workspace using a supported runtime and return the execution result.`,
|
|
136605
|
-
args: args308,
|
|
136606
|
-
tool: async (client, args309, ctx) => {
|
|
136607
|
-
const [result, apiCall] = await sandboxRunCode(client, args309.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136608
|
-
if (!result.ok) {
|
|
136609
|
-
return {
|
|
136610
|
-
content: [{ type: "text", text: result.error.message }],
|
|
136611
|
-
isError: true
|
|
136612
|
-
};
|
|
136613
|
-
}
|
|
136614
|
-
const value = result.value;
|
|
136615
|
-
return formatResult(value, apiCall);
|
|
136616
|
-
}
|
|
136617
|
-
};
|
|
136618
|
-
});
|
|
136619
|
-
|
|
136620
|
-
// src/funcs/sandboxRunCommand.ts
|
|
136621
|
-
function sandboxRunCommand(client, request, options) {
|
|
136622
|
-
return new APIPromise($do318(client, request, options));
|
|
136623
|
-
}
|
|
136624
|
-
async function $do318(client, request, options) {
|
|
136625
|
-
const parsed = safeParse4(request, (value) => RunCommandRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136626
|
-
if (!parsed.ok) {
|
|
136627
|
-
return [parsed, { status: "invalid" }];
|
|
136628
|
-
}
|
|
136629
|
-
const payload = parsed.value;
|
|
136630
|
-
const body = encodeJSON("body", payload.CommandRequest, { explode: true });
|
|
136631
|
-
const pathParams = {
|
|
136632
|
-
session_id: encodeSimple("session_id", payload.session_id, {
|
|
136633
|
-
explode: false,
|
|
136634
|
-
charEncoding: "percent"
|
|
136635
|
-
})
|
|
136636
|
-
};
|
|
136637
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/commands")(pathParams);
|
|
136638
|
-
const headers = new Headers(compactMap({
|
|
136639
|
-
"Content-Type": "application/json",
|
|
136640
|
-
Accept: "application/json",
|
|
136641
|
-
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
136642
|
-
}));
|
|
136643
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
136644
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
136645
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
136646
|
-
const context = {
|
|
136647
|
-
options: client._options,
|
|
136648
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136649
|
-
operationID: "runCommand",
|
|
136650
|
-
oAuth2Scopes: null,
|
|
136651
|
-
resolvedSecurity: requestSecurity,
|
|
136652
|
-
securitySource: client._options.bearerAuth,
|
|
136653
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
136654
|
-
strategy: "backoff",
|
|
136655
|
-
backoff: {
|
|
136656
|
-
initialInterval: 500,
|
|
136657
|
-
maxInterval: 5000,
|
|
136658
|
-
exponent: 1.5,
|
|
136659
|
-
maxElapsedTime: 15000
|
|
136660
|
-
},
|
|
136661
|
-
retryConnectionErrors: true
|
|
136662
|
-
},
|
|
136663
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
136664
|
-
};
|
|
136665
|
-
const requestRes = client._createRequest(context, {
|
|
136666
|
-
security: requestSecurity,
|
|
136667
|
-
method: "POST",
|
|
136668
|
-
baseURL: options?.serverURL,
|
|
136669
|
-
path,
|
|
136670
|
-
headers,
|
|
136671
|
-
body,
|
|
136672
|
-
userAgent: client._options.userAgent,
|
|
136673
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
136674
|
-
}, options);
|
|
136675
|
-
if (!requestRes.ok) {
|
|
136676
|
-
return [requestRes, { status: "invalid" }];
|
|
136677
|
-
}
|
|
136678
|
-
const req = requestRes.value;
|
|
136679
|
-
const doResult = await client._do(req, {
|
|
136680
|
-
context,
|
|
136681
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
136682
|
-
retryConfig: context.retryConfig,
|
|
136683
|
-
retryCodes: context.retryCodes
|
|
136684
|
-
});
|
|
136685
|
-
if (!doResult.ok) {
|
|
136686
|
-
return [doResult, { status: "request-error", request: req }];
|
|
136687
|
-
}
|
|
136688
|
-
const response = doResult.value;
|
|
136689
|
-
const responseFields = {
|
|
136690
|
-
HttpMeta: { Response: response, Request: req }
|
|
136691
|
-
};
|
|
136692
|
-
const [result] = await match(json(200, CommandResult$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
136693
|
-
if (!result.ok) {
|
|
136694
|
-
return [result, { status: "complete", request: req, response }];
|
|
136695
|
-
}
|
|
136696
|
-
return [result, { status: "complete", request: req, response }];
|
|
136697
|
-
}
|
|
136698
|
-
var init_sandboxRunCommand = __esm(() => {
|
|
136699
|
-
init_encodings();
|
|
136700
|
-
init_http();
|
|
136701
|
-
init_matchers();
|
|
136702
|
-
init_primitives();
|
|
136703
|
-
init_schemas4();
|
|
136704
|
-
init_security();
|
|
136705
|
-
init_url();
|
|
136706
|
-
init_components();
|
|
136707
|
-
init_errors4();
|
|
136708
|
-
init_operations();
|
|
136709
|
-
init_async();
|
|
136710
|
-
});
|
|
136711
|
-
|
|
136712
|
-
// src/mcp-server/tools/sandboxRunCommand.ts
|
|
136713
|
-
var args309, tool$sandboxRunCommand;
|
|
136714
|
-
var init_sandboxRunCommand2 = __esm(() => {
|
|
136715
|
-
init_sandboxRunCommand();
|
|
136716
|
-
init_operations();
|
|
136717
|
-
init_tools();
|
|
136718
|
-
args309 = {
|
|
136719
|
-
request: RunCommandRequest$inboundSchema
|
|
136720
|
-
};
|
|
136721
|
-
tool$sandboxRunCommand = {
|
|
136722
|
-
name: "sandbox-run-command",
|
|
136723
|
-
description: `Run Command
|
|
136724
|
-
|
|
136725
|
-
Run a command in the session workspace and return stdout, stderr, exit code, and changed files.`,
|
|
136726
|
-
args: args309,
|
|
136727
|
-
tool: async (client, args310, ctx) => {
|
|
136728
|
-
const [result, apiCall] = await sandboxRunCommand(client, args310.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136729
|
-
if (!result.ok) {
|
|
136730
|
-
return {
|
|
136731
|
-
content: [{ type: "text", text: result.error.message }],
|
|
136732
|
-
isError: true
|
|
136733
|
-
};
|
|
136734
|
-
}
|
|
136735
|
-
const value = result.value;
|
|
136736
|
-
return formatResult(value, apiCall);
|
|
136737
|
-
}
|
|
136738
|
-
};
|
|
136739
|
-
});
|
|
136740
|
-
|
|
136741
|
-
// src/funcs/sandboxSetPricing.ts
|
|
136742
|
-
function sandboxSetPricing(client, request, options) {
|
|
136743
|
-
return new APIPromise($do319(client, request, options));
|
|
136744
|
-
}
|
|
136745
|
-
async function $do319(client, request, options) {
|
|
136746
|
-
const parsed = safeParse4(request, (value) => SandboxPricingUpdate$outboundSchema.parse(value), "Input validation failed");
|
|
136747
|
-
if (!parsed.ok) {
|
|
136748
|
-
return [parsed, { status: "invalid" }];
|
|
136749
|
-
}
|
|
136750
|
-
const payload = parsed.value;
|
|
136751
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
136752
|
-
const path = pathToFunc("/api/v1/sandbox/pricing")();
|
|
136753
|
-
const headers = new Headers(compactMap({
|
|
136754
|
-
"Content-Type": "application/json",
|
|
136755
|
-
Accept: "application/json"
|
|
136756
|
-
}));
|
|
136757
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
136758
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
136759
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
136760
|
-
const context = {
|
|
136761
|
-
options: client._options,
|
|
136762
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136763
|
-
operationID: "setSandboxPricing",
|
|
136764
|
-
oAuth2Scopes: null,
|
|
136765
|
-
resolvedSecurity: requestSecurity,
|
|
136766
|
-
securitySource: client._options.bearerAuth,
|
|
136767
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
136768
|
-
strategy: "backoff",
|
|
136769
|
-
backoff: {
|
|
136770
|
-
initialInterval: 500,
|
|
136771
|
-
maxInterval: 5000,
|
|
136772
|
-
exponent: 1.5,
|
|
136773
|
-
maxElapsedTime: 15000
|
|
136774
|
-
},
|
|
136775
|
-
retryConnectionErrors: true
|
|
136776
|
-
},
|
|
136777
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
136778
|
-
};
|
|
136779
|
-
const requestRes = client._createRequest(context, {
|
|
136780
|
-
security: requestSecurity,
|
|
136781
|
-
method: "PUT",
|
|
136782
|
-
baseURL: options?.serverURL,
|
|
136783
|
-
path,
|
|
136784
|
-
headers,
|
|
136785
|
-
body,
|
|
136786
|
-
userAgent: client._options.userAgent,
|
|
136787
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
136788
|
-
}, options);
|
|
136789
|
-
if (!requestRes.ok) {
|
|
136790
|
-
return [requestRes, { status: "invalid" }];
|
|
136791
|
-
}
|
|
136792
|
-
const req = requestRes.value;
|
|
136793
|
-
const doResult = await client._do(req, {
|
|
136794
|
-
context,
|
|
136795
|
-
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
136796
|
-
retryConfig: context.retryConfig,
|
|
136797
|
-
retryCodes: context.retryCodes
|
|
136798
|
-
});
|
|
136799
|
-
if (!doResult.ok) {
|
|
136800
|
-
return [doResult, { status: "request-error", request: req }];
|
|
136801
|
-
}
|
|
136802
|
-
const response = doResult.value;
|
|
136803
|
-
const responseFields = {
|
|
136804
|
-
HttpMeta: { Response: response, Request: req }
|
|
136805
|
-
};
|
|
136806
|
-
const [result] = await match(json(200, SandboxPricingCard$inboundSchema), jsonErr(422, HTTPValidationError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
136807
|
-
if (!result.ok) {
|
|
136808
|
-
return [result, { status: "complete", request: req, response }];
|
|
136809
|
-
}
|
|
136810
|
-
return [result, { status: "complete", request: req, response }];
|
|
136811
|
-
}
|
|
136812
|
-
var init_sandboxSetPricing = __esm(() => {
|
|
136813
|
-
init_encodings();
|
|
136814
|
-
init_http();
|
|
136815
|
-
init_matchers();
|
|
136816
|
-
init_primitives();
|
|
136817
|
-
init_schemas4();
|
|
136818
|
-
init_security();
|
|
136819
|
-
init_url();
|
|
136820
|
-
init_components();
|
|
136821
|
-
init_errors4();
|
|
136822
|
-
init_async();
|
|
136823
|
-
});
|
|
136824
|
-
|
|
136825
|
-
// src/mcp-server/tools/sandboxSetPricing.ts
|
|
136826
|
-
var args310, tool$sandboxSetPricing;
|
|
136827
|
-
var init_sandboxSetPricing2 = __esm(() => {
|
|
136828
|
-
init_sandboxSetPricing();
|
|
136829
|
-
init_components();
|
|
136830
|
-
init_tools();
|
|
136831
|
-
args310 = {
|
|
136832
|
-
request: SandboxPricingUpdate$inboundSchema
|
|
136833
|
-
};
|
|
136834
|
-
tool$sandboxSetPricing = {
|
|
136835
|
-
name: "sandbox-set-pricing",
|
|
136836
|
-
description: `Set Sandbox Pricing
|
|
136837
|
-
|
|
136838
|
-
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: args310,
|
|
136840
|
-
tool: async (client, args311, ctx) => {
|
|
136841
|
-
const [result, apiCall] = await sandboxSetPricing(client, args311.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136842
|
-
if (!result.ok) {
|
|
136843
|
-
return {
|
|
136844
|
-
content: [{ type: "text", text: result.error.message }],
|
|
136845
|
-
isError: true
|
|
136846
|
-
};
|
|
136847
|
-
}
|
|
136848
|
-
const value = result.value;
|
|
136849
|
-
return formatResult(value, apiCall);
|
|
136850
|
-
}
|
|
136851
|
-
};
|
|
136852
|
-
});
|
|
136853
|
-
|
|
136854
|
-
// src/funcs/sandboxTerminate.ts
|
|
136855
|
-
function sandboxTerminate(client, request, options) {
|
|
136856
|
-
return new APIPromise($do320(client, request, options));
|
|
136857
|
-
}
|
|
136858
|
-
async function $do320(client, request, options) {
|
|
136859
|
-
const parsed = safeParse4(request, (value) => TerminateSessionRequest$outboundSchema2.parse(value), "Input validation failed");
|
|
136860
|
-
if (!parsed.ok) {
|
|
136861
|
-
return [parsed, { status: "invalid" }];
|
|
136862
|
-
}
|
|
136863
|
-
const payload = parsed.value;
|
|
136864
|
-
const body = encodeJSON("body", payload.TerminateSessionRequest, {
|
|
136865
|
-
explode: true
|
|
136866
|
-
});
|
|
136867
|
-
const pathParams = {
|
|
136868
|
-
session_id: encodeSimple("session_id", payload.session_id, {
|
|
136869
|
-
explode: false,
|
|
136870
|
-
charEncoding: "percent"
|
|
136871
|
-
})
|
|
136872
|
-
};
|
|
136873
|
-
const path = pathToFunc("/api/v1/sandbox/sessions/{session_id}/terminate")(pathParams);
|
|
136874
|
-
const headers = new Headers(compactMap({
|
|
136875
|
-
"Content-Type": "application/json",
|
|
136876
|
-
Accept: "application/json",
|
|
136877
|
-
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
136878
|
-
}));
|
|
136879
|
-
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
136880
|
-
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
136881
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
136882
|
-
const context = {
|
|
136883
|
-
options: client._options,
|
|
136884
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
136885
|
-
operationID: "terminateSession",
|
|
136886
|
-
oAuth2Scopes: null,
|
|
136887
|
-
resolvedSecurity: requestSecurity,
|
|
136888
|
-
securitySource: client._options.bearerAuth,
|
|
136889
|
-
retryConfig: options?.retries || client._options.retryConfig || {
|
|
136890
|
-
strategy: "backoff",
|
|
136891
|
-
backoff: {
|
|
136892
|
-
initialInterval: 500,
|
|
136893
|
-
maxInterval: 5000,
|
|
136894
|
-
exponent: 1.5,
|
|
136895
|
-
maxElapsedTime: 15000
|
|
136896
|
-
},
|
|
136897
|
-
retryConnectionErrors: true
|
|
136898
|
-
},
|
|
136899
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
136900
|
-
};
|
|
136901
|
-
const requestRes = client._createRequest(context, {
|
|
136902
|
-
security: requestSecurity,
|
|
136903
|
-
method: "POST",
|
|
136370
|
+
method: "POST",
|
|
136904
136371
|
baseURL: options?.serverURL,
|
|
136905
136372
|
path,
|
|
136906
136373
|
headers,
|
|
@@ -136946,12 +136413,12 @@ var init_sandboxTerminate = __esm(() => {
|
|
|
136946
136413
|
});
|
|
136947
136414
|
|
|
136948
136415
|
// src/mcp-server/tools/sandboxTerminate.ts
|
|
136949
|
-
var
|
|
136416
|
+
var args308, tool$sandboxTerminate;
|
|
136950
136417
|
var init_sandboxTerminate2 = __esm(() => {
|
|
136951
136418
|
init_sandboxTerminate();
|
|
136952
136419
|
init_operations();
|
|
136953
136420
|
init_tools();
|
|
136954
|
-
|
|
136421
|
+
args308 = {
|
|
136955
136422
|
request: TerminateSessionRequest$inboundSchema2
|
|
136956
136423
|
};
|
|
136957
136424
|
tool$sandboxTerminate = {
|
|
@@ -136959,9 +136426,9 @@ var init_sandboxTerminate2 = __esm(() => {
|
|
|
136959
136426
|
description: `Terminate Session
|
|
136960
136427
|
|
|
136961
136428
|
Stop a sandbox session and release the backing sandbox resources.`,
|
|
136962
|
-
args:
|
|
136963
|
-
tool: async (client,
|
|
136964
|
-
const [result, apiCall] = await sandboxTerminate(client,
|
|
136429
|
+
args: args308,
|
|
136430
|
+
tool: async (client, args309, ctx) => {
|
|
136431
|
+
const [result, apiCall] = await sandboxTerminate(client, args309.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136965
136432
|
if (!result.ok) {
|
|
136966
136433
|
return {
|
|
136967
136434
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136976,9 +136443,9 @@ Stop a sandbox session and release the backing sandbox resources.`,
|
|
|
136976
136443
|
|
|
136977
136444
|
// src/funcs/sandboxUploadArchive.ts
|
|
136978
136445
|
function sandboxUploadArchive(client, request, options) {
|
|
136979
|
-
return new APIPromise($
|
|
136446
|
+
return new APIPromise($do318(client, request, options));
|
|
136980
136447
|
}
|
|
136981
|
-
async function $
|
|
136448
|
+
async function $do318(client, request, options) {
|
|
136982
136449
|
const parsed = safeParse4(request, (value) => UploadWorkspaceArchiveRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136983
136450
|
if (!parsed.ok) {
|
|
136984
136451
|
return [parsed, { status: "invalid" }];
|
|
@@ -137071,12 +136538,12 @@ var init_sandboxUploadArchive = __esm(() => {
|
|
|
137071
136538
|
});
|
|
137072
136539
|
|
|
137073
136540
|
// src/mcp-server/tools/sandboxUploadArchive.ts
|
|
137074
|
-
var
|
|
136541
|
+
var args309, tool$sandboxUploadArchive;
|
|
137075
136542
|
var init_sandboxUploadArchive2 = __esm(() => {
|
|
137076
136543
|
init_sandboxUploadArchive();
|
|
137077
136544
|
init_operations();
|
|
137078
136545
|
init_tools();
|
|
137079
|
-
|
|
136546
|
+
args309 = {
|
|
137080
136547
|
request: UploadWorkspaceArchiveRequest$inboundSchema
|
|
137081
136548
|
};
|
|
137082
136549
|
tool$sandboxUploadArchive = {
|
|
@@ -137084,9 +136551,9 @@ var init_sandboxUploadArchive2 = __esm(() => {
|
|
|
137084
136551
|
description: `Upload Workspace Archive
|
|
137085
136552
|
|
|
137086
136553
|
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,
|
|
136554
|
+
args: args309,
|
|
136555
|
+
tool: async (client, args310, ctx) => {
|
|
136556
|
+
const [result, apiCall] = await sandboxUploadArchive(client, args310.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137090
136557
|
if (!result.ok) {
|
|
137091
136558
|
return {
|
|
137092
136559
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137101,9 +136568,9 @@ Upload a zip archive and extract its files into the session workspace.`,
|
|
|
137101
136568
|
|
|
137102
136569
|
// src/funcs/sandboxUploadFile.ts
|
|
137103
136570
|
function sandboxUploadFile(client, request, options) {
|
|
137104
|
-
return new APIPromise($
|
|
136571
|
+
return new APIPromise($do319(client, request, options));
|
|
137105
136572
|
}
|
|
137106
|
-
async function $
|
|
136573
|
+
async function $do319(client, request, options) {
|
|
137107
136574
|
const parsed = safeParse4(request, (value) => UploadWorkspaceFileRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137108
136575
|
if (!parsed.ok) {
|
|
137109
136576
|
return [parsed, { status: "invalid" }];
|
|
@@ -137200,12 +136667,12 @@ var init_sandboxUploadFile = __esm(() => {
|
|
|
137200
136667
|
});
|
|
137201
136668
|
|
|
137202
136669
|
// src/mcp-server/tools/sandboxUploadFile.ts
|
|
137203
|
-
var
|
|
136670
|
+
var args310, tool$sandboxUploadFile;
|
|
137204
136671
|
var init_sandboxUploadFile2 = __esm(() => {
|
|
137205
136672
|
init_sandboxUploadFile();
|
|
137206
136673
|
init_operations();
|
|
137207
136674
|
init_tools();
|
|
137208
|
-
|
|
136675
|
+
args310 = {
|
|
137209
136676
|
request: UploadWorkspaceFileRequest$inboundSchema
|
|
137210
136677
|
};
|
|
137211
136678
|
tool$sandboxUploadFile = {
|
|
@@ -137213,9 +136680,9 @@ var init_sandboxUploadFile2 = __esm(() => {
|
|
|
137213
136680
|
description: `Upload Workspace File
|
|
137214
136681
|
|
|
137215
136682
|
Upload raw bytes into the session workspace at the given path.`,
|
|
137216
|
-
args:
|
|
137217
|
-
tool: async (client,
|
|
137218
|
-
const [result, apiCall] = await sandboxUploadFile(client,
|
|
136683
|
+
args: args310,
|
|
136684
|
+
tool: async (client, args311, ctx) => {
|
|
136685
|
+
const [result, apiCall] = await sandboxUploadFile(client, args311.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137219
136686
|
if (!result.ok) {
|
|
137220
136687
|
return {
|
|
137221
136688
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137230,9 +136697,9 @@ Upload raw bytes into the session workspace at the given path.`,
|
|
|
137230
136697
|
|
|
137231
136698
|
// src/funcs/usageCosts.ts
|
|
137232
136699
|
function usageCosts(client, request, options) {
|
|
137233
|
-
return new APIPromise($
|
|
136700
|
+
return new APIPromise($do320(client, request, options));
|
|
137234
136701
|
}
|
|
137235
|
-
async function $
|
|
136702
|
+
async function $do320(client, request, options) {
|
|
137236
136703
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137237
136704
|
if (!parsed.ok) {
|
|
137238
136705
|
return [parsed, { status: "invalid" }];
|
|
@@ -137315,12 +136782,12 @@ var init_usageCosts = __esm(() => {
|
|
|
137315
136782
|
});
|
|
137316
136783
|
|
|
137317
136784
|
// src/mcp-server/tools/usageCosts.ts
|
|
137318
|
-
var
|
|
136785
|
+
var args311, tool$usageCosts;
|
|
137319
136786
|
var init_usageCosts2 = __esm(() => {
|
|
137320
136787
|
init_usageCosts();
|
|
137321
136788
|
init_operations();
|
|
137322
136789
|
init_tools();
|
|
137323
|
-
|
|
136790
|
+
args311 = {
|
|
137324
136791
|
request: GetCostsRequest$inboundSchema
|
|
137325
136792
|
};
|
|
137326
136793
|
tool$usageCosts = {
|
|
@@ -137328,9 +136795,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
137328
136795
|
description: `Aggregate cost by dimension
|
|
137329
136796
|
|
|
137330
136797
|
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,
|
|
136798
|
+
args: args311,
|
|
136799
|
+
tool: async (client, args312, ctx) => {
|
|
136800
|
+
const [result, apiCall] = await usageCosts(client, args312.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137334
136801
|
if (!result.ok) {
|
|
137335
136802
|
return {
|
|
137336
136803
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137345,9 +136812,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
137345
136812
|
|
|
137346
136813
|
// src/funcs/usageSandbox.ts
|
|
137347
136814
|
function usageSandbox(client, request, options) {
|
|
137348
|
-
return new APIPromise($
|
|
136815
|
+
return new APIPromise($do321(client, request, options));
|
|
137349
136816
|
}
|
|
137350
|
-
async function $
|
|
136817
|
+
async function $do321(client, request, options) {
|
|
137351
136818
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137352
136819
|
if (!parsed.ok) {
|
|
137353
136820
|
return [parsed, { status: "invalid" }];
|
|
@@ -137438,12 +136905,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
137438
136905
|
});
|
|
137439
136906
|
|
|
137440
136907
|
// src/mcp-server/tools/usageSandbox.ts
|
|
137441
|
-
var
|
|
136908
|
+
var args312, tool$usageSandbox;
|
|
137442
136909
|
var init_usageSandbox2 = __esm(() => {
|
|
137443
136910
|
init_usageSandbox();
|
|
137444
136911
|
init_operations();
|
|
137445
136912
|
init_tools();
|
|
137446
|
-
|
|
136913
|
+
args312 = {
|
|
137447
136914
|
request: GetSandboxUsageRequest$inboundSchema
|
|
137448
136915
|
};
|
|
137449
136916
|
tool$usageSandbox = {
|
|
@@ -137451,9 +136918,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
137451
136918
|
description: `Get Sandbox Usage
|
|
137452
136919
|
|
|
137453
136920
|
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,
|
|
136921
|
+
args: args312,
|
|
136922
|
+
tool: async (client, args313, ctx) => {
|
|
136923
|
+
const [result, apiCall] = await usageSandbox(client, args313.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137457
136924
|
if (!result.ok) {
|
|
137458
136925
|
return {
|
|
137459
136926
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137470,7 +136937,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
137470
136937
|
function createMCPServer(deps) {
|
|
137471
136938
|
const server = new McpServer({
|
|
137472
136939
|
name: "SDK",
|
|
137473
|
-
version: "0.51.
|
|
136940
|
+
version: "0.51.38"
|
|
137474
136941
|
});
|
|
137475
136942
|
const client = new SDKCore({
|
|
137476
136943
|
bearerAuth: deps.bearerAuth,
|
|
@@ -137805,9 +137272,6 @@ function createMCPServer(deps) {
|
|
|
137805
137272
|
tool(tool$authClusterInviteInfo);
|
|
137806
137273
|
tool(tool$authClusterAcceptInvite);
|
|
137807
137274
|
tool(tool$authApiKeyGetJwtFromKey);
|
|
137808
|
-
tool(tool$reposCollaboratorsList);
|
|
137809
|
-
tool(tool$reposCollaboratorsRemove);
|
|
137810
|
-
tool(tool$reposCollaboratorsAdd);
|
|
137811
137275
|
return server;
|
|
137812
137276
|
}
|
|
137813
137277
|
var init_server2 = __esm(() => {
|
|
@@ -138114,9 +137578,6 @@ var init_server2 = __esm(() => {
|
|
|
138114
137578
|
init_permissionsLlmCheck2();
|
|
138115
137579
|
init_permissionsLlmGrant2();
|
|
138116
137580
|
init_permissionsLlmRevoke2();
|
|
138117
|
-
init_reposCollaboratorsAdd2();
|
|
138118
|
-
init_reposCollaboratorsList2();
|
|
138119
|
-
init_reposCollaboratorsRemove2();
|
|
138120
137581
|
init_reposCreate2();
|
|
138121
137582
|
init_reposDelete2();
|
|
138122
137583
|
init_reposGet2();
|
|
@@ -139316,7 +138777,7 @@ var routes = rn({
|
|
|
139316
138777
|
var app = Ve(routes, {
|
|
139317
138778
|
name: "mcp",
|
|
139318
138779
|
versionInfo: {
|
|
139319
|
-
currentVersion: "0.51.
|
|
138780
|
+
currentVersion: "0.51.38"
|
|
139320
138781
|
}
|
|
139321
138782
|
});
|
|
139322
138783
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -139324,5 +138785,5 @@ export {
|
|
|
139324
138785
|
app
|
|
139325
138786
|
};
|
|
139326
138787
|
|
|
139327
|
-
//# debugId=
|
|
138788
|
+
//# debugId=2399EE05031D2BAC64756E2164756E21
|
|
139328
138789
|
//# sourceMappingURL=mcp-server.js.map
|