@rnsk/toolkits 0.0.1 → 0.0.2
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/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/scope.d.ts +4 -0
- package/dist/core/scope.js +12 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +15 -2
- package/dist/runtime/meta-tools.js +2 -0
- package/dist/toolkits/github/icon.d.ts +5 -0
- package/dist/toolkits/github/icon.js +15 -0
- package/dist/toolkits/github/manifest.d.ts +3 -0
- package/dist/toolkits/github/manifest.js +36 -0
- package/dist/toolkits/github/tools/Actions/delete-artifact.d.ts +13 -0
- package/dist/toolkits/github/tools/Actions/delete-artifact.js +31 -0
- package/dist/toolkits/github/tools/Actions/get-artifact.d.ts +31 -0
- package/dist/toolkits/github/tools/Actions/get-artifact.js +39 -0
- package/dist/toolkits/github/tools/Actions/get-workflow-job.d.ts +36 -0
- package/dist/toolkits/github/tools/Actions/get-workflow-job.js +48 -0
- package/dist/toolkits/github/tools/Actions/list-artifacts.d.ts +23 -0
- package/dist/toolkits/github/tools/Actions/list-artifacts.js +43 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-jobs.d.ts +27 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-jobs.js +49 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-run-artifacts.d.ts +24 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-run-artifacts.js +45 -0
- package/dist/toolkits/github/tools/Activity/list-notifications.d.ts +24 -0
- package/dist/toolkits/github/tools/Activity/list-notifications.js +45 -0
- package/dist/toolkits/github/tools/Activity/list-public-events.d.ts +18 -0
- package/dist/toolkits/github/tools/Activity/list-public-events.js +37 -0
- package/dist/toolkits/github/tools/Activity/list-repo-events.d.ts +19 -0
- package/dist/toolkits/github/tools/Activity/list-repo-events.js +40 -0
- package/dist/toolkits/github/tools/Activity/list-user-events.d.ts +17 -0
- package/dist/toolkits/github/tools/Activity/list-user-events.js +37 -0
- package/dist/toolkits/github/tools/Activity/mark-notifications-read.d.ts +11 -0
- package/dist/toolkits/github/tools/Activity/mark-notifications-read.js +27 -0
- package/dist/toolkits/github/tools/Apps/get-authenticated-app.d.ts +24 -0
- package/dist/toolkits/github/tools/Apps/get-authenticated-app.js +36 -0
- package/dist/toolkits/github/tools/Apps/get-installation.d.ts +76 -0
- package/dist/toolkits/github/tools/Apps/get-installation.js +36 -0
- package/dist/toolkits/github/tools/Apps/list-installations.d.ts +19 -0
- package/dist/toolkits/github/tools/Apps/list-installations.js +38 -0
- package/dist/toolkits/github/tools/Checks/create-check-run.d.ts +24 -0
- package/dist/toolkits/github/tools/Checks/create-check-run.js +43 -0
- package/dist/toolkits/github/tools/Checks/create-check-suite.d.ts +21 -0
- package/dist/toolkits/github/tools/Checks/create-check-suite.js +37 -0
- package/dist/toolkits/github/tools/Checks/get-check-run.d.ts +25 -0
- package/dist/toolkits/github/tools/Checks/get-check-run.js +39 -0
- package/dist/toolkits/github/tools/Checks/get-check-suite.d.ts +25 -0
- package/dist/toolkits/github/tools/Checks/get-check-suite.js +39 -0
- package/dist/toolkits/github/tools/Checks/list-check-runs.d.ts +27 -0
- package/dist/toolkits/github/tools/Checks/list-check-runs.js +50 -0
- package/dist/toolkits/github/tools/Checks/update-check-run.d.ts +23 -0
- package/dist/toolkits/github/tools/Checks/update-check-run.js +41 -0
- package/dist/toolkits/github/tools/CodeScanning/get-alert.d.ts +25 -0
- package/dist/toolkits/github/tools/CodeScanning/get-alert.js +41 -0
- package/dist/toolkits/github/tools/CodeScanning/list-alerts.d.ts +23 -0
- package/dist/toolkits/github/tools/CodeScanning/list-alerts.js +50 -0
- package/dist/toolkits/github/tools/CodeScanning/update-alert.d.ts +19 -0
- package/dist/toolkits/github/tools/CodeScanning/update-alert.js +39 -0
- package/dist/toolkits/github/tools/Collaborators/add-collaborator.d.ts +14 -0
- package/dist/toolkits/github/tools/Collaborators/add-collaborator.js +33 -0
- package/dist/toolkits/github/tools/Collaborators/check-collaborator.d.ts +13 -0
- package/dist/toolkits/github/tools/Collaborators/check-collaborator.js +34 -0
- package/dist/toolkits/github/tools/Collaborators/list-collaborators.d.ts +25 -0
- package/dist/toolkits/github/tools/Collaborators/list-collaborators.js +41 -0
- package/dist/toolkits/github/tools/Collaborators/remove-collaborator.d.ts +13 -0
- package/dist/toolkits/github/tools/Collaborators/remove-collaborator.js +31 -0
- package/dist/toolkits/github/tools/Commits/compare-commits.d.ts +30 -0
- package/dist/toolkits/github/tools/Commits/compare-commits.js +37 -0
- package/dist/toolkits/github/tools/Commits/get-commit.d.ts +46 -0
- package/dist/toolkits/github/tools/Commits/get-commit.js +35 -0
- package/dist/toolkits/github/tools/Commits/list-branches-for-head-commit.d.ts +20 -0
- package/dist/toolkits/github/tools/Commits/list-branches-for-head-commit.js +31 -0
- package/dist/toolkits/github/tools/Commits/list-commits.d.ts +21 -0
- package/dist/toolkits/github/tools/Commits/list-commits.js +43 -0
- package/dist/toolkits/github/tools/Commits/list-pull-requests-associated-with-commit.d.ts +81 -0
- package/dist/toolkits/github/tools/Commits/list-pull-requests-associated-with-commit.js +35 -0
- package/dist/toolkits/github/tools/Dependabot/get-alert.d.ts +53 -0
- package/dist/toolkits/github/tools/Dependabot/get-alert.js +37 -0
- package/dist/toolkits/github/tools/Dependabot/list-alerts.d.ts +23 -0
- package/dist/toolkits/github/tools/Dependabot/list-alerts.js +46 -0
- package/dist/toolkits/github/tools/Dependabot/update-alert.d.ts +19 -0
- package/dist/toolkits/github/tools/Dependabot/update-alert.js +39 -0
- package/dist/toolkits/github/tools/DeployKeys/create-deploy-key.d.ts +23 -0
- package/dist/toolkits/github/tools/DeployKeys/create-deploy-key.js +43 -0
- package/dist/toolkits/github/tools/DeployKeys/delete-deploy-key.d.ts +13 -0
- package/dist/toolkits/github/tools/DeployKeys/delete-deploy-key.js +31 -0
- package/dist/toolkits/github/tools/DeployKeys/get-deploy-key.d.ts +21 -0
- package/dist/toolkits/github/tools/DeployKeys/get-deploy-key.js +39 -0
- package/dist/toolkits/github/tools/DeployKeys/list-deploy-keys.d.ts +21 -0
- package/dist/toolkits/github/tools/DeployKeys/list-deploy-keys.js +44 -0
- package/dist/toolkits/github/tools/Deployments/create-deployment.d.ts +33 -0
- package/dist/toolkits/github/tools/Deployments/create-deployment.js +51 -0
- package/dist/toolkits/github/tools/Deployments/delete-deployment.d.ts +13 -0
- package/dist/toolkits/github/tools/Deployments/delete-deployment.js +31 -0
- package/dist/toolkits/github/tools/Deployments/get-deployment.d.ts +27 -0
- package/dist/toolkits/github/tools/Deployments/get-deployment.js +42 -0
- package/dist/toolkits/github/tools/Deployments/list-deployments.d.ts +27 -0
- package/dist/toolkits/github/tools/Deployments/list-deployments.js +52 -0
- package/dist/toolkits/github/tools/Environments/create-or-update-environment.d.ts +32 -0
- package/dist/toolkits/github/tools/Environments/create-or-update-environment.js +50 -0
- package/dist/toolkits/github/tools/Environments/delete-environment.d.ts +13 -0
- package/dist/toolkits/github/tools/Environments/delete-environment.js +31 -0
- package/dist/toolkits/github/tools/Environments/get-environment.d.ts +48 -0
- package/dist/toolkits/github/tools/Environments/get-environment.js +42 -0
- package/dist/toolkits/github/tools/Environments/list-environments.d.ts +23 -0
- package/dist/toolkits/github/tools/Environments/list-environments.js +45 -0
- package/dist/toolkits/github/tools/Files/create-or-update-file.d.ts +21 -0
- package/dist/toolkits/github/tools/Files/create-or-update-file.js +44 -0
- package/dist/toolkits/github/tools/Files/delete-file.d.ts +18 -0
- package/dist/toolkits/github/tools/Files/delete-file.js +40 -0
- package/dist/toolkits/github/tools/Files/get-file-content.d.ts +32 -0
- package/dist/toolkits/github/tools/Files/get-file-content.js +51 -0
- package/dist/toolkits/github/tools/Gists/create-gist.d.ts +19 -0
- package/dist/toolkits/github/tools/Gists/create-gist.js +37 -0
- package/dist/toolkits/github/tools/Gists/get-gist.d.ts +23 -0
- package/dist/toolkits/github/tools/Gists/get-gist.js +43 -0
- package/dist/toolkits/github/tools/Gists/list-gists.d.ts +19 -0
- package/dist/toolkits/github/tools/Gists/list-gists.js +38 -0
- package/dist/toolkits/github/tools/Git/create-blob.d.ts +16 -0
- package/dist/toolkits/github/tools/Git/create-blob.js +38 -0
- package/dist/toolkits/github/tools/Git/create-git-commit.d.ts +47 -0
- package/dist/toolkits/github/tools/Git/create-git-commit.js +51 -0
- package/dist/toolkits/github/tools/Git/create-ref.d.ts +24 -0
- package/dist/toolkits/github/tools/Git/create-ref.js +40 -0
- package/dist/toolkits/github/tools/Git/create-tree.d.ts +31 -0
- package/dist/toolkits/github/tools/Git/create-tree.js +52 -0
- package/dist/toolkits/github/tools/Git/delete-ref.d.ts +13 -0
- package/dist/toolkits/github/tools/Git/delete-ref.js +31 -0
- package/dist/toolkits/github/tools/Git/get-blob.d.ts +21 -0
- package/dist/toolkits/github/tools/Git/get-blob.js +39 -0
- package/dist/toolkits/github/tools/Git/get-git-commit.d.ts +40 -0
- package/dist/toolkits/github/tools/Git/get-git-commit.js +41 -0
- package/dist/toolkits/github/tools/Git/get-ref.d.ts +18 -0
- package/dist/toolkits/github/tools/Git/get-ref.js +42 -0
- package/dist/toolkits/github/tools/Git/get-tree.d.ts +27 -0
- package/dist/toolkits/github/tools/Git/get-tree.js +47 -0
- package/dist/toolkits/github/tools/Git/update-ref.d.ts +25 -0
- package/dist/toolkits/github/tools/Git/update-ref.js +42 -0
- package/dist/toolkits/github/tools/Issues/add-issue-assignees.d.ts +14 -0
- package/dist/toolkits/github/tools/Issues/add-issue-assignees.js +35 -0
- package/dist/toolkits/github/tools/Issues/add-issue-comment.d.ts +20 -0
- package/dist/toolkits/github/tools/Issues/add-issue-comment.js +38 -0
- package/dist/toolkits/github/tools/Issues/add-issue-labels.d.ts +14 -0
- package/dist/toolkits/github/tools/Issues/add-issue-labels.js +35 -0
- package/dist/toolkits/github/tools/Issues/create-issue.d.ts +22 -0
- package/dist/toolkits/github/tools/Issues/create-issue.js +34 -0
- package/dist/toolkits/github/tools/Issues/get-issue.d.ts +29 -0
- package/dist/toolkits/github/tools/Issues/get-issue.js +36 -0
- package/dist/toolkits/github/tools/Issues/list-authenticated-user-issues.d.ts +21 -0
- package/dist/toolkits/github/tools/Issues/list-authenticated-user-issues.js +34 -0
- package/dist/toolkits/github/tools/Issues/list-issue-comments.d.ts +19 -0
- package/dist/toolkits/github/tools/Issues/list-issue-comments.js +40 -0
- package/dist/toolkits/github/tools/Issues/list-org-issues.d.ts +22 -0
- package/dist/toolkits/github/tools/Issues/list-org-issues.js +38 -0
- package/dist/toolkits/github/tools/Issues/list-repo-issues.d.ts +28 -0
- package/dist/toolkits/github/tools/Issues/list-repo-issues.js +42 -0
- package/dist/toolkits/github/tools/Issues/list-user-account-issues.d.ts +21 -0
- package/dist/toolkits/github/tools/Issues/list-user-account-issues.js +36 -0
- package/dist/toolkits/github/tools/Issues/lock-issue.d.ts +15 -0
- package/dist/toolkits/github/tools/Issues/lock-issue.js +44 -0
- package/dist/toolkits/github/tools/Issues/remove-issue-label.d.ts +14 -0
- package/dist/toolkits/github/tools/Issues/remove-issue-label.js +33 -0
- package/dist/toolkits/github/tools/Issues/unlock-issue.d.ts +13 -0
- package/dist/toolkits/github/tools/Issues/unlock-issue.js +31 -0
- package/dist/toolkits/github/tools/Issues/update-issue.d.ts +22 -0
- package/dist/toolkits/github/tools/Issues/update-issue.js +42 -0
- package/dist/toolkits/github/tools/Licenses/get-license.d.ts +33 -0
- package/dist/toolkits/github/tools/Licenses/get-license.js +42 -0
- package/dist/toolkits/github/tools/Licenses/get-repo-license.d.ts +47 -0
- package/dist/toolkits/github/tools/Licenses/get-repo-license.js +45 -0
- package/dist/toolkits/github/tools/Licenses/list-licenses.d.ts +12 -0
- package/dist/toolkits/github/tools/Licenses/list-licenses.js +32 -0
- package/dist/toolkits/github/tools/Markdown/render-markdown.d.ts +13 -0
- package/dist/toolkits/github/tools/Markdown/render-markdown.js +31 -0
- package/dist/toolkits/github/tools/Organizations/get-org-membership.d.ts +58 -0
- package/dist/toolkits/github/tools/Organizations/get-org-membership.js +38 -0
- package/dist/toolkits/github/tools/Organizations/get-organization.d.ts +65 -0
- package/dist/toolkits/github/tools/Organizations/get-organization.js +58 -0
- package/dist/toolkits/github/tools/Organizations/list-org-members.d.ts +18 -0
- package/dist/toolkits/github/tools/Organizations/list-org-members.js +44 -0
- package/dist/toolkits/github/tools/Organizations/list-org-repositories.d.ts +50 -0
- package/dist/toolkits/github/tools/Organizations/list-org-repositories.js +69 -0
- package/dist/toolkits/github/tools/Organizations/list-organizations.d.ts +13 -0
- package/dist/toolkits/github/tools/Organizations/list-organizations.js +36 -0
- package/dist/toolkits/github/tools/Organizations/list-user-organizations.d.ts +20 -0
- package/dist/toolkits/github/tools/Organizations/list-user-organizations.js +43 -0
- package/dist/toolkits/github/tools/Organizations/update-organization.d.ts +33 -0
- package/dist/toolkits/github/tools/Organizations/update-organization.js +50 -0
- package/dist/toolkits/github/tools/PRs/check-pull-request-merged.d.ts +13 -0
- package/dist/toolkits/github/tools/PRs/check-pull-request-merged.js +34 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request-review.d.ts +19 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request-review.js +39 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request.d.ts +23 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request.js +44 -0
- package/dist/toolkits/github/tools/PRs/get-pull-request.d.ts +41 -0
- package/dist/toolkits/github/tools/PRs/get-pull-request.js +47 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-commits.d.ts +15 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-commits.js +37 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-files.d.ts +22 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-files.js +42 -0
- package/dist/toolkits/github/tools/PRs/list-pull-requests.d.ts +24 -0
- package/dist/toolkits/github/tools/PRs/list-pull-requests.js +44 -0
- package/dist/toolkits/github/tools/PRs/merge-pull-request.d.ts +20 -0
- package/dist/toolkits/github/tools/PRs/merge-pull-request.js +41 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request-branch.d.ts +16 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request-branch.js +36 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request.d.ts +26 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request.js +47 -0
- package/dist/toolkits/github/tools/Projects/create-org-project.d.ts +27 -0
- package/dist/toolkits/github/tools/Projects/create-org-project.js +43 -0
- package/dist/toolkits/github/tools/Projects/delete-project.d.ts +11 -0
- package/dist/toolkits/github/tools/Projects/delete-project.js +27 -0
- package/dist/toolkits/github/tools/Projects/get-project.d.ts +31 -0
- package/dist/toolkits/github/tools/Projects/get-project.js +42 -0
- package/dist/toolkits/github/tools/Projects/list-org-projects.d.ts +20 -0
- package/dist/toolkits/github/tools/Projects/list-org-projects.js +45 -0
- package/dist/toolkits/github/tools/Projects/list-project-columns.d.ts +16 -0
- package/dist/toolkits/github/tools/Projects/list-project-columns.js +40 -0
- package/dist/toolkits/github/tools/Projects/list-repo-projects.d.ts +21 -0
- package/dist/toolkits/github/tools/Projects/list-repo-projects.js +47 -0
- package/dist/toolkits/github/tools/Projects/update-project.d.ts +22 -0
- package/dist/toolkits/github/tools/Projects/update-project.js +41 -0
- package/dist/toolkits/github/tools/RateLimit/get-rate-limit.d.ts +19 -0
- package/dist/toolkits/github/tools/RateLimit/get-rate-limit.js +26 -0
- package/dist/toolkits/github/tools/Reactions/create-commit-comment-reaction.d.ts +20 -0
- package/dist/toolkits/github/tools/Reactions/create-commit-comment-reaction.js +40 -0
- package/dist/toolkits/github/tools/Reactions/create-issue-reaction.d.ts +20 -0
- package/dist/toolkits/github/tools/Reactions/create-issue-reaction.js +40 -0
- package/dist/toolkits/github/tools/Reactions/delete-reaction.d.ts +11 -0
- package/dist/toolkits/github/tools/Reactions/delete-reaction.js +27 -0
- package/dist/toolkits/github/tools/Reactions/list-commit-comment-reactions.d.ts +17 -0
- package/dist/toolkits/github/tools/Reactions/list-commit-comment-reactions.js +44 -0
- package/dist/toolkits/github/tools/Reactions/list-issue-reactions.d.ts +17 -0
- package/dist/toolkits/github/tools/Reactions/list-issue-reactions.js +44 -0
- package/dist/toolkits/github/tools/Reactions/list-pr-comment-reactions.d.ts +17 -0
- package/dist/toolkits/github/tools/Reactions/list-pr-comment-reactions.js +44 -0
- package/dist/toolkits/github/tools/Releases/create-release.d.ts +27 -0
- package/dist/toolkits/github/tools/Releases/create-release.js +45 -0
- package/dist/toolkits/github/tools/Releases/delete-release.d.ts +13 -0
- package/dist/toolkits/github/tools/Releases/delete-release.js +31 -0
- package/dist/toolkits/github/tools/Releases/generate-release-notes.d.ts +18 -0
- package/dist/toolkits/github/tools/Releases/generate-release-notes.js +39 -0
- package/dist/toolkits/github/tools/Releases/get-latest-release.d.ts +22 -0
- package/dist/toolkits/github/tools/Releases/get-latest-release.js +38 -0
- package/dist/toolkits/github/tools/Releases/get-release.d.ts +37 -0
- package/dist/toolkits/github/tools/Releases/get-release.js +50 -0
- package/dist/toolkits/github/tools/Releases/list-releases.d.ts +22 -0
- package/dist/toolkits/github/tools/Releases/list-releases.js +47 -0
- package/dist/toolkits/github/tools/Releases/update-release.d.ts +27 -0
- package/dist/toolkits/github/tools/Releases/update-release.js +46 -0
- package/dist/toolkits/github/tools/Repos/create-repo.d.ts +32 -0
- package/dist/toolkits/github/tools/Repos/create-repo.js +57 -0
- package/dist/toolkits/github/tools/Repos/fork-repo.d.ts +17 -0
- package/dist/toolkits/github/tools/Repos/fork-repo.js +35 -0
- package/dist/toolkits/github/tools/Repos/get-repo-contributors.d.ts +20 -0
- package/dist/toolkits/github/tools/Repos/get-repo-contributors.js +39 -0
- package/dist/toolkits/github/tools/Repos/get-repo-languages.d.ts +14 -0
- package/dist/toolkits/github/tools/Repos/get-repo-languages.js +29 -0
- package/dist/toolkits/github/tools/Repos/get-repo.d.ts +36 -0
- package/dist/toolkits/github/tools/Repos/get-repo.js +43 -0
- package/dist/toolkits/github/tools/Repos/list-branches.d.ts +17 -0
- package/dist/toolkits/github/tools/Repos/list-branches.js +37 -0
- package/dist/toolkits/github/tools/Repos/list-repos.d.ts +22 -0
- package/dist/toolkits/github/tools/Repos/list-repos.js +36 -0
- package/dist/toolkits/github/tools/Repos/star-repo.d.ts +13 -0
- package/dist/toolkits/github/tools/Repos/star-repo.js +39 -0
- package/dist/toolkits/github/tools/Repos/watch-repo.d.ts +18 -0
- package/dist/toolkits/github/tools/Repos/watch-repo.js +37 -0
- package/dist/toolkits/github/tools/Search/search-code.d.ts +14 -0
- package/dist/toolkits/github/tools/Search/search-code.js +33 -0
- package/dist/toolkits/github/tools/Search/search-commits.d.ts +14 -0
- package/dist/toolkits/github/tools/Search/search-commits.js +33 -0
- package/dist/toolkits/github/tools/Search/search-issues.d.ts +23 -0
- package/dist/toolkits/github/tools/Search/search-issues.js +43 -0
- package/dist/toolkits/github/tools/Search/search-labels.d.ts +15 -0
- package/dist/toolkits/github/tools/Search/search-labels.js +35 -0
- package/dist/toolkits/github/tools/Search/search-repos.d.ts +22 -0
- package/dist/toolkits/github/tools/Search/search-repos.js +47 -0
- package/dist/toolkits/github/tools/Search/search-topics.d.ts +12 -0
- package/dist/toolkits/github/tools/Search/search-topics.js +29 -0
- package/dist/toolkits/github/tools/Search/search-users.d.ts +21 -0
- package/dist/toolkits/github/tools/Search/search-users.js +41 -0
- package/dist/toolkits/github/tools/SecretScanning/get-alert.d.ts +33 -0
- package/dist/toolkits/github/tools/SecretScanning/get-alert.js +45 -0
- package/dist/toolkits/github/tools/SecretScanning/list-alerts.d.ts +25 -0
- package/dist/toolkits/github/tools/SecretScanning/list-alerts.js +53 -0
- package/dist/toolkits/github/tools/SecretScanning/update-alert.d.ts +19 -0
- package/dist/toolkits/github/tools/SecretScanning/update-alert.js +41 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.d.ts +34 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.js +52 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.d.ts +27 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.js +42 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.d.ts +14 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.js +37 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.d.ts +22 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.js +47 -0
- package/dist/toolkits/github/tools/Stars/check-repo-starred.d.ts +12 -0
- package/dist/toolkits/github/tools/Stars/check-repo-starred.js +32 -0
- package/dist/toolkits/github/tools/Stars/list-stargazers.d.ts +15 -0
- package/dist/toolkits/github/tools/Stars/list-stargazers.js +40 -0
- package/dist/toolkits/github/tools/Stars/list-starred-repos.d.ts +15 -0
- package/dist/toolkits/github/tools/Stars/list-starred-repos.js +38 -0
- package/dist/toolkits/github/tools/Stars/star-repo.d.ts +12 -0
- package/dist/toolkits/github/tools/Stars/star-repo.js +29 -0
- package/dist/toolkits/github/tools/Stars/unstar-repo.d.ts +12 -0
- package/dist/toolkits/github/tools/Stars/unstar-repo.js +29 -0
- package/dist/toolkits/github/tools/Statuses/create-commit-status.d.ts +25 -0
- package/dist/toolkits/github/tools/Statuses/create-commit-status.js +44 -0
- package/dist/toolkits/github/tools/Statuses/get-combined-status.d.ts +26 -0
- package/dist/toolkits/github/tools/Statuses/get-combined-status.js +44 -0
- package/dist/toolkits/github/tools/Statuses/list-commit-statuses.d.ts +18 -0
- package/dist/toolkits/github/tools/Statuses/list-commit-statuses.js +44 -0
- package/dist/toolkits/github/tools/Teams/add-team-repo.d.ts +15 -0
- package/dist/toolkits/github/tools/Teams/add-team-repo.js +35 -0
- package/dist/toolkits/github/tools/Teams/create-team.d.ts +32 -0
- package/dist/toolkits/github/tools/Teams/create-team.js +46 -0
- package/dist/toolkits/github/tools/Teams/delete-team.d.ts +12 -0
- package/dist/toolkits/github/tools/Teams/delete-team.js +29 -0
- package/dist/toolkits/github/tools/Teams/get-team.d.ts +28 -0
- package/dist/toolkits/github/tools/Teams/get-team.js +41 -0
- package/dist/toolkits/github/tools/Teams/list-team-members.d.ts +16 -0
- package/dist/toolkits/github/tools/Teams/list-team-members.js +42 -0
- package/dist/toolkits/github/tools/Teams/list-team-repos.d.ts +22 -0
- package/dist/toolkits/github/tools/Teams/list-team-repos.js +41 -0
- package/dist/toolkits/github/tools/Teams/list-teams.d.ts +18 -0
- package/dist/toolkits/github/tools/Teams/list-teams.js +42 -0
- package/dist/toolkits/github/tools/Teams/remove-team-repo.d.ts +14 -0
- package/dist/toolkits/github/tools/Teams/remove-team-repo.js +33 -0
- package/dist/toolkits/github/tools/Teams/update-team.d.ts +27 -0
- package/dist/toolkits/github/tools/Teams/update-team.js +44 -0
- package/dist/toolkits/github/tools/Users/follow-user.d.ts +12 -0
- package/dist/toolkits/github/tools/Users/follow-user.js +36 -0
- package/dist/toolkits/github/tools/Users/get-github-user.d.ts +64 -0
- package/dist/toolkits/github/tools/Users/get-github-user.js +48 -0
- package/dist/toolkits/github/tools/Users/get-user-by-id.d.ts +53 -0
- package/dist/toolkits/github/tools/Users/get-user-by-id.js +27 -0
- package/dist/toolkits/github/tools/Users/get-user-context.d.ts +14 -0
- package/dist/toolkits/github/tools/Users/get-user-context.js +32 -0
- package/dist/toolkits/github/tools/Users/get-user.d.ts +53 -0
- package/dist/toolkits/github/tools/Users/get-user.js +27 -0
- package/dist/toolkits/github/tools/Users/list-users.d.ts +31 -0
- package/dist/toolkits/github/tools/Users/list-users.js +29 -0
- package/dist/toolkits/github/tools/Users/update-authenticated-user.d.ts +62 -0
- package/dist/toolkits/github/tools/Users/update-authenticated-user.js +39 -0
- package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.d.ts +34 -0
- package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.js +47 -0
- package/dist/toolkits/github/tools/Webhooks/delete-repo-webhook.d.ts +13 -0
- package/dist/toolkits/github/tools/Webhooks/delete-repo-webhook.js +31 -0
- package/dist/toolkits/github/tools/Webhooks/get-repo-webhook.d.ts +30 -0
- package/dist/toolkits/github/tools/Webhooks/get-repo-webhook.js +41 -0
- package/dist/toolkits/github/tools/Webhooks/list-repo-webhooks.d.ts +31 -0
- package/dist/toolkits/github/tools/Webhooks/list-repo-webhooks.js +47 -0
- package/dist/toolkits/github/tools/Webhooks/update-repo-webhook.d.ts +36 -0
- package/dist/toolkits/github/tools/Webhooks/update-repo-webhook.js +50 -0
- package/dist/toolkits/github/tools/Workflows/get-workflow-run.d.ts +31 -0
- package/dist/toolkits/github/tools/Workflows/get-workflow-run.js +42 -0
- package/dist/toolkits/github/tools/Workflows/list-workflow-runs.d.ts +25 -0
- package/dist/toolkits/github/tools/Workflows/list-workflow-runs.js +59 -0
- package/dist/toolkits/github/tools/Workflows/list-workflows.d.ts +21 -0
- package/dist/toolkits/github/tools/Workflows/list-workflows.js +40 -0
- package/dist/toolkits/github/tools/Workflows/trigger-workflow.d.ts +15 -0
- package/dist/toolkits/github/tools/Workflows/trigger-workflow.js +35 -0
- package/dist/toolkits/github/tools/index.d.ts +176 -0
- package/dist/toolkits/github/tools/index.js +646 -0
- package/dist/toolkits/gmail/icon.js +25 -1
- package/dist/toolkits/google-calendar/icon.d.ts +5 -0
- package/dist/toolkits/google-calendar/icon.js +6 -0
- package/dist/toolkits/google-calendar/manifest.d.ts +3 -0
- package/dist/toolkits/google-calendar/manifest.js +45 -0
- package/dist/toolkits/google-calendar/tools/create-event.d.ts +27 -0
- package/dist/toolkits/google-calendar/tools/create-event.js +54 -0
- package/dist/toolkits/google-calendar/tools/index.d.ts +7 -0
- package/dist/toolkits/google-calendar/tools/index.js +18 -0
- package/dist/toolkits/google-calendar/tools/list-events.d.ts +24 -0
- package/dist/toolkits/google-calendar/tools/list-events.js +46 -0
- package/dist/toolkits/google-sheets/icon.d.ts +5 -0
- package/dist/toolkits/google-sheets/icon.js +13 -0
- package/dist/toolkits/google-sheets/manifest.d.ts +3 -0
- package/dist/toolkits/google-sheets/manifest.js +45 -0
- package/dist/toolkits/google-sheets/tools/get-spreadsheet.d.ts +5 -0
- package/dist/toolkits/google-sheets/tools/get-spreadsheet.js +33 -0
- package/dist/toolkits/google-sheets/tools/get-values.d.ts +6 -0
- package/dist/toolkits/google-sheets/tools/get-values.js +34 -0
- package/dist/toolkits/google-sheets/tools/index.d.ts +11 -0
- package/dist/toolkits/google-sheets/tools/index.js +26 -0
- package/dist/toolkits/google-sheets/tools/list-spreadsheets.d.ts +21 -0
- package/dist/toolkits/google-sheets/tools/list-spreadsheets.js +43 -0
- package/dist/toolkits/linear/icon.js +24 -1
- package/dist/toolkits/mathematics/icon.js +1 -1
- package/dist/toolkits/notion/icon.d.ts +5 -0
- package/dist/toolkits/notion/icon.js +10 -0
- package/dist/toolkits/notion/manifest.d.ts +3 -0
- package/dist/toolkits/notion/manifest.js +37 -0
- package/dist/toolkits/notion/tools/append-block-children.d.ts +6 -0
- package/dist/toolkits/notion/tools/append-block-children.js +30 -0
- package/dist/toolkits/notion/tools/create-page.d.ts +12 -0
- package/dist/toolkits/notion/tools/create-page.js +40 -0
- package/dist/toolkits/notion/tools/get-database.d.ts +5 -0
- package/dist/toolkits/notion/tools/get-database.js +25 -0
- package/dist/toolkits/notion/tools/get-page.d.ts +15 -0
- package/dist/toolkits/notion/tools/get-page.js +42 -0
- package/dist/toolkits/notion/tools/index.d.ts +16 -0
- package/dist/toolkits/notion/tools/index.js +61 -0
- package/dist/toolkits/notion/tools/list-databases.d.ts +5 -0
- package/dist/toolkits/notion/tools/list-databases.js +33 -0
- package/dist/toolkits/notion/tools/query-database.d.ts +8 -0
- package/dist/toolkits/notion/tools/query-database.js +34 -0
- package/dist/toolkits/notion/tools/search.d.ts +14 -0
- package/dist/toolkits/notion/tools/search.js +41 -0
- package/dist/toolkits/notion/tools/update-page.d.ts +9 -0
- package/dist/toolkits/notion/tools/update-page.js +36 -0
- package/dist/toolkits/web-search/icon.js +3 -1
- package/package.json +4 -2
- package/dist/core/categories.d.ts.map +0 -1
- package/dist/core/categories.js.map +0 -1
- package/dist/core/define.d.ts.map +0 -1
- package/dist/core/define.js.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js.map +0 -1
- package/dist/core/validate.d.ts.map +0 -1
- package/dist/core/validate.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/runtime/credentials.d.ts.map +0 -1
- package/dist/runtime/credentials.js.map +0 -1
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/meta-tools.d.ts.map +0 -1
- package/dist/runtime/meta-tools.js.map +0 -1
- package/dist/runtime/registry.d.ts.map +0 -1
- package/dist/runtime/registry.js.map +0 -1
- package/dist/runtime/schema-helpers.d.ts.map +0 -1
- package/dist/runtime/schema-helpers.js.map +0 -1
- package/dist/toolkits/gmail/icon.d.ts.map +0 -1
- package/dist/toolkits/gmail/icon.js.map +0 -1
- package/dist/toolkits/gmail/manifest.d.ts.map +0 -1
- package/dist/toolkits/gmail/manifest.js.map +0 -1
- package/dist/toolkits/gmail/tools/get-message.d.ts.map +0 -1
- package/dist/toolkits/gmail/tools/get-message.js.map +0 -1
- package/dist/toolkits/gmail/tools/list-messages.d.ts.map +0 -1
- package/dist/toolkits/gmail/tools/list-messages.js.map +0 -1
- package/dist/toolkits/gmail/tools/send-message.d.ts.map +0 -1
- package/dist/toolkits/gmail/tools/send-message.js.map +0 -1
- package/dist/toolkits/linear/icon.d.ts.map +0 -1
- package/dist/toolkits/linear/icon.js.map +0 -1
- package/dist/toolkits/linear/manifest.d.ts.map +0 -1
- package/dist/toolkits/linear/manifest.js.map +0 -1
- package/dist/toolkits/linear/tools/create-issue.d.ts.map +0 -1
- package/dist/toolkits/linear/tools/create-issue.js.map +0 -1
- package/dist/toolkits/linear/tools/list-teams.d.ts.map +0 -1
- package/dist/toolkits/linear/tools/list-teams.js.map +0 -1
- package/dist/toolkits/linear/tools/search-issues.d.ts.map +0 -1
- package/dist/toolkits/linear/tools/search-issues.js.map +0 -1
- package/dist/toolkits/mathematics/icon.d.ts.map +0 -1
- package/dist/toolkits/mathematics/icon.js.map +0 -1
- package/dist/toolkits/mathematics/manifest.d.ts.map +0 -1
- package/dist/toolkits/mathematics/manifest.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-combinatorics.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-combinatorics.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-matrix-determinant.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-matrix-determinant.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-percentage.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-percentage.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-product.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-product.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-quadratic-roots.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-quadratic-roots.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-statistics.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-statistics.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-sum.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-sum.js.map +0 -1
- package/dist/toolkits/mathematics/tools/get-random-number.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/get-random-number.js.map +0 -1
- package/dist/toolkits/mathematics/tools/solve-linear-equations.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/solve-linear-equations.js.map +0 -1
- package/dist/toolkits/web-search/icon.d.ts.map +0 -1
- package/dist/toolkits/web-search/icon.js.map +0 -1
- package/dist/toolkits/web-search/manifest.d.ts.map +0 -1
- package/dist/toolkits/web-search/manifest.js.map +0 -1
- package/dist/toolkits/web-search/tools/firecrawl-client.d.ts.map +0 -1
- package/dist/toolkits/web-search/tools/firecrawl-client.js.map +0 -1
- package/dist/toolkits/web-search/tools/web-scrape.d.ts.map +0 -1
- package/dist/toolkits/web-search/tools/web-scrape.js.map +0 -1
- package/dist/toolkits/web-search/tools/web-search.d.ts.map +0 -1
- package/dist/toolkits/web-search/tools/web-search.js.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const compareCommits = tool({
|
|
6
|
+
description: 'Compare two commits',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('The account owner of the repository. The name is not case sensitive.'),
|
|
10
|
+
repo: z.string().describe('The name of the repository without the .git extension. The name is not case sensitive.'),
|
|
11
|
+
base: z.string().describe('The base branch or commit SHA to compare against.'),
|
|
12
|
+
head: z.string().describe('The head branch or commit SHA to compare.'),
|
|
13
|
+
perPage: z.number().optional().default(30),
|
|
14
|
+
page: z.number().optional().default(1),
|
|
15
|
+
}),
|
|
16
|
+
execute: async ({ githubToken, owner, repo, base, head, perPage = 30, page = 1 }) => {
|
|
17
|
+
if (!githubToken) {
|
|
18
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
19
|
+
}
|
|
20
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
21
|
+
try {
|
|
22
|
+
const { data } = await octokit.rest.repos.compareCommits({
|
|
23
|
+
owner,
|
|
24
|
+
repo,
|
|
25
|
+
base,
|
|
26
|
+
head,
|
|
27
|
+
per_page: perPage,
|
|
28
|
+
page,
|
|
29
|
+
});
|
|
30
|
+
return { comparison: data };
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
return { error: `Failed to compare commits: ${error.message}` };
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=compare-commits.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const getCommit: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
page: number;
|
|
5
|
+
ref: string;
|
|
6
|
+
perPage: number;
|
|
7
|
+
githubToken?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
error: string;
|
|
10
|
+
commit?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
commit: {
|
|
13
|
+
url: string;
|
|
14
|
+
sha: string;
|
|
15
|
+
node_id: string;
|
|
16
|
+
html_url: string;
|
|
17
|
+
comments_url: string;
|
|
18
|
+
commit: {
|
|
19
|
+
url: string;
|
|
20
|
+
author: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
21
|
+
committer: import("@octokit/openapi-types").components["schemas"]["nullable-git-user"];
|
|
22
|
+
message: string;
|
|
23
|
+
comment_count: number;
|
|
24
|
+
tree: {
|
|
25
|
+
sha: string;
|
|
26
|
+
url: string;
|
|
27
|
+
};
|
|
28
|
+
verification?: import("@octokit/openapi-types").components["schemas"]["verification"];
|
|
29
|
+
};
|
|
30
|
+
author: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
31
|
+
committer: import("@octokit/openapi-types").components["schemas"]["simple-user"] | import("@octokit/openapi-types").components["schemas"]["empty-object"] | null;
|
|
32
|
+
parents: {
|
|
33
|
+
sha: string;
|
|
34
|
+
url: string;
|
|
35
|
+
html_url?: string;
|
|
36
|
+
}[];
|
|
37
|
+
stats?: {
|
|
38
|
+
additions?: number;
|
|
39
|
+
deletions?: number;
|
|
40
|
+
total?: number;
|
|
41
|
+
};
|
|
42
|
+
files?: import("@octokit/openapi-types").components["schemas"]["diff-entry"][];
|
|
43
|
+
};
|
|
44
|
+
error?: undefined;
|
|
45
|
+
}>;
|
|
46
|
+
//# sourceMappingURL=get-commit.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const getCommit = tool({
|
|
6
|
+
description: 'Get a commit',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('The account owner of the repository. The name is not case sensitive.'),
|
|
10
|
+
repo: z.string().describe('The name of the repository without the .git extension. The name is not case sensitive.'),
|
|
11
|
+
ref: z.string().describe('The commit reference. Can be a commit SHA, branch name, or tag name.'),
|
|
12
|
+
perPage: z.number().optional().default(30),
|
|
13
|
+
page: z.number().optional().default(1),
|
|
14
|
+
}),
|
|
15
|
+
execute: async ({ githubToken, owner, repo, ref, perPage = 30, page = 1 }) => {
|
|
16
|
+
if (!githubToken) {
|
|
17
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
18
|
+
}
|
|
19
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
20
|
+
try {
|
|
21
|
+
const { data } = await octokit.rest.repos.getCommit({
|
|
22
|
+
owner,
|
|
23
|
+
repo,
|
|
24
|
+
ref,
|
|
25
|
+
per_page: perPage,
|
|
26
|
+
page,
|
|
27
|
+
});
|
|
28
|
+
return { commit: data };
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
return { error: `Failed to get commit: ${error.message}` };
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=get-commit.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const listBranchesForHeadCommit: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
commit_sha: string;
|
|
5
|
+
githubToken?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
error: string;
|
|
8
|
+
branches?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
branches: {
|
|
11
|
+
name: string;
|
|
12
|
+
commit: {
|
|
13
|
+
sha: string;
|
|
14
|
+
url: string;
|
|
15
|
+
};
|
|
16
|
+
protected: boolean;
|
|
17
|
+
}[];
|
|
18
|
+
error?: undefined;
|
|
19
|
+
}>;
|
|
20
|
+
//# sourceMappingURL=list-branches-for-head-commit.d.ts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const listBranchesForHeadCommit = tool({
|
|
6
|
+
description: 'List branches for HEAD commit',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('The account owner of the repository. The name is not case sensitive.'),
|
|
10
|
+
repo: z.string().describe('The name of the repository without the .git extension. The name is not case sensitive.'),
|
|
11
|
+
commit_sha: z.string().describe('The SHA of the commit.'),
|
|
12
|
+
}),
|
|
13
|
+
execute: async ({ githubToken, owner, repo, commit_sha }) => {
|
|
14
|
+
if (!githubToken) {
|
|
15
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
16
|
+
}
|
|
17
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
18
|
+
try {
|
|
19
|
+
const { data } = await octokit.rest.repos.listBranchesForHeadCommit({
|
|
20
|
+
owner,
|
|
21
|
+
repo,
|
|
22
|
+
commit_sha,
|
|
23
|
+
});
|
|
24
|
+
return { branches: data };
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
return { error: `Failed to list branches for HEAD commit: ${error.message}` };
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=list-branches-for-head-commit.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const listCommits: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
perPage: number;
|
|
5
|
+
path?: string | undefined;
|
|
6
|
+
githubToken?: string | undefined;
|
|
7
|
+
sha?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
error: string;
|
|
10
|
+
commits?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
commits: {
|
|
13
|
+
sha: string;
|
|
14
|
+
message: string;
|
|
15
|
+
author: string | undefined;
|
|
16
|
+
date: string | undefined;
|
|
17
|
+
html_url: string;
|
|
18
|
+
}[];
|
|
19
|
+
error?: undefined;
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=list-commits.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const listCommits = tool({
|
|
6
|
+
description: 'List commits on a GitHub repository.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
perPage: z.number().optional().default(30),
|
|
12
|
+
sha: z.string().optional().describe('SHA or branch to start listing from'),
|
|
13
|
+
path: z.string().optional().describe('Only commits containing this file path'),
|
|
14
|
+
}),
|
|
15
|
+
execute: async ({ githubToken, owner, repo, perPage = 30, sha, path }) => {
|
|
16
|
+
if (!githubToken) {
|
|
17
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
18
|
+
}
|
|
19
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
20
|
+
try {
|
|
21
|
+
const { data } = await octokit.rest.repos.listCommits({
|
|
22
|
+
owner,
|
|
23
|
+
repo,
|
|
24
|
+
per_page: perPage,
|
|
25
|
+
sha,
|
|
26
|
+
path,
|
|
27
|
+
});
|
|
28
|
+
return {
|
|
29
|
+
commits: data.map((commit) => ({
|
|
30
|
+
sha: commit.sha,
|
|
31
|
+
message: commit.commit.message,
|
|
32
|
+
author: commit.commit.author?.name,
|
|
33
|
+
date: commit.commit.author?.date,
|
|
34
|
+
html_url: commit.html_url,
|
|
35
|
+
})),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
return { error: `Failed to list commits: ${error.message}` };
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=list-commits.js.map
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export declare const listPullRequestsAssociatedWithCommit: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
page: number;
|
|
5
|
+
perPage: number;
|
|
6
|
+
commit_sha: string;
|
|
7
|
+
githubToken?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
error: string;
|
|
10
|
+
pullRequests?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
pullRequests: {
|
|
13
|
+
url: string;
|
|
14
|
+
id: number;
|
|
15
|
+
node_id: string;
|
|
16
|
+
html_url: string;
|
|
17
|
+
diff_url: string;
|
|
18
|
+
patch_url: string;
|
|
19
|
+
issue_url: string;
|
|
20
|
+
commits_url: string;
|
|
21
|
+
review_comments_url: string;
|
|
22
|
+
review_comment_url: string;
|
|
23
|
+
comments_url: string;
|
|
24
|
+
statuses_url: string;
|
|
25
|
+
number: number;
|
|
26
|
+
state: string;
|
|
27
|
+
locked: boolean;
|
|
28
|
+
title: string;
|
|
29
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
30
|
+
body: string | null;
|
|
31
|
+
labels: {
|
|
32
|
+
id: number;
|
|
33
|
+
node_id: string;
|
|
34
|
+
url: string;
|
|
35
|
+
name: string;
|
|
36
|
+
description: string;
|
|
37
|
+
color: string;
|
|
38
|
+
default: boolean;
|
|
39
|
+
}[];
|
|
40
|
+
milestone: import("@octokit/openapi-types").components["schemas"]["nullable-milestone"];
|
|
41
|
+
active_lock_reason?: string | null;
|
|
42
|
+
created_at: string;
|
|
43
|
+
updated_at: string;
|
|
44
|
+
closed_at: string | null;
|
|
45
|
+
merged_at: string | null;
|
|
46
|
+
merge_commit_sha: string | null;
|
|
47
|
+
assignee: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
48
|
+
assignees?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
49
|
+
requested_reviewers?: import("@octokit/openapi-types").components["schemas"]["simple-user"][] | null;
|
|
50
|
+
requested_teams?: import("@octokit/openapi-types").components["schemas"]["team"][] | null;
|
|
51
|
+
head: {
|
|
52
|
+
label: string;
|
|
53
|
+
ref: string;
|
|
54
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
55
|
+
sha: string;
|
|
56
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
57
|
+
};
|
|
58
|
+
base: {
|
|
59
|
+
label: string;
|
|
60
|
+
ref: string;
|
|
61
|
+
repo: import("@octokit/openapi-types").components["schemas"]["repository"];
|
|
62
|
+
sha: string;
|
|
63
|
+
user: import("@octokit/openapi-types").components["schemas"]["nullable-simple-user"];
|
|
64
|
+
};
|
|
65
|
+
_links: {
|
|
66
|
+
comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
67
|
+
commits: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
68
|
+
statuses: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
69
|
+
html: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
70
|
+
issue: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
71
|
+
review_comments: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
72
|
+
review_comment: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
73
|
+
self: import("@octokit/openapi-types").components["schemas"]["link"];
|
|
74
|
+
};
|
|
75
|
+
author_association: import("@octokit/openapi-types").components["schemas"]["author-association"];
|
|
76
|
+
auto_merge: import("@octokit/openapi-types").components["schemas"]["auto-merge"];
|
|
77
|
+
draft?: boolean;
|
|
78
|
+
}[];
|
|
79
|
+
error?: undefined;
|
|
80
|
+
}>;
|
|
81
|
+
//# sourceMappingURL=list-pull-requests-associated-with-commit.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const listPullRequestsAssociatedWithCommit = tool({
|
|
6
|
+
description: 'List pull requests associated with a commit',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('The account owner of the repository. The name is not case sensitive.'),
|
|
10
|
+
repo: z.string().describe('The name of the repository without the .git extension. The name is not case sensitive.'),
|
|
11
|
+
commit_sha: z.string().describe('The SHA of the commit.'),
|
|
12
|
+
perPage: z.number().optional().default(30),
|
|
13
|
+
page: z.number().optional().default(1),
|
|
14
|
+
}),
|
|
15
|
+
execute: async ({ githubToken, owner, repo, commit_sha, perPage = 30, page = 1 }) => {
|
|
16
|
+
if (!githubToken) {
|
|
17
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
18
|
+
}
|
|
19
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
20
|
+
try {
|
|
21
|
+
const { data } = await octokit.rest.repos.listPullRequestsAssociatedWithCommit({
|
|
22
|
+
owner,
|
|
23
|
+
repo,
|
|
24
|
+
commit_sha,
|
|
25
|
+
per_page: perPage,
|
|
26
|
+
page,
|
|
27
|
+
});
|
|
28
|
+
return { pullRequests: data };
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
return { error: `Failed to list PRs associated with commit: ${error.message}` };
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=list-pull-requests-associated-with-commit.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const getDependabotAlert: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
alert_number: number;
|
|
5
|
+
githubToken?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
error: string;
|
|
8
|
+
number?: undefined;
|
|
9
|
+
state?: undefined;
|
|
10
|
+
dependency?: undefined;
|
|
11
|
+
security_advisory?: undefined;
|
|
12
|
+
html_url?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
number: number;
|
|
15
|
+
state: "open" | "dismissed" | "fixed" | "auto_dismissed";
|
|
16
|
+
dependency: {
|
|
17
|
+
readonly package?: import("@octokit/openapi-types").components["schemas"]["dependabot-alert-package"];
|
|
18
|
+
readonly manifest_path?: string;
|
|
19
|
+
readonly scope?: "development" | "runtime" | null;
|
|
20
|
+
readonly relationship?: "unknown" | "direct" | "transitive" | null;
|
|
21
|
+
};
|
|
22
|
+
security_advisory: {
|
|
23
|
+
readonly ghsa_id: string;
|
|
24
|
+
readonly cve_id: string | null;
|
|
25
|
+
readonly summary: string;
|
|
26
|
+
readonly description: string;
|
|
27
|
+
readonly vulnerabilities: readonly import("@octokit/openapi-types").components["schemas"]["dependabot-alert-security-vulnerability"][];
|
|
28
|
+
readonly severity: "low" | "medium" | "high" | "critical";
|
|
29
|
+
readonly cvss: {
|
|
30
|
+
readonly score: number;
|
|
31
|
+
readonly vector_string: string | null;
|
|
32
|
+
};
|
|
33
|
+
readonly cvss_severities?: import("@octokit/openapi-types").components["schemas"]["cvss-severities"];
|
|
34
|
+
readonly epss?: import("@octokit/openapi-types").components["schemas"]["security-advisory-epss"];
|
|
35
|
+
readonly cwes: readonly {
|
|
36
|
+
readonly cwe_id: string;
|
|
37
|
+
readonly name: string;
|
|
38
|
+
}[];
|
|
39
|
+
readonly identifiers: readonly {
|
|
40
|
+
readonly type: "CVE" | "GHSA";
|
|
41
|
+
readonly value: string;
|
|
42
|
+
}[];
|
|
43
|
+
readonly references: readonly {
|
|
44
|
+
readonly url: string;
|
|
45
|
+
}[];
|
|
46
|
+
readonly published_at: string;
|
|
47
|
+
readonly updated_at: string;
|
|
48
|
+
readonly withdrawn_at: string | null;
|
|
49
|
+
};
|
|
50
|
+
html_url: string;
|
|
51
|
+
error?: undefined;
|
|
52
|
+
}>;
|
|
53
|
+
//# sourceMappingURL=get-alert.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const getDependabotAlert = tool({
|
|
6
|
+
description: 'Get a Dependabot alert.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner (username or org)'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
alert_number: z.number().describe('The alert number'),
|
|
12
|
+
}),
|
|
13
|
+
execute: async ({ githubToken, owner, repo, alert_number }) => {
|
|
14
|
+
if (!githubToken) {
|
|
15
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
16
|
+
}
|
|
17
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
18
|
+
try {
|
|
19
|
+
const { data } = await octokit.rest.dependabot.getAlert({
|
|
20
|
+
owner,
|
|
21
|
+
repo,
|
|
22
|
+
alert_number,
|
|
23
|
+
});
|
|
24
|
+
return {
|
|
25
|
+
number: data.number,
|
|
26
|
+
state: data.state,
|
|
27
|
+
dependency: data.dependency,
|
|
28
|
+
security_advisory: data.security_advisory,
|
|
29
|
+
html_url: data.html_url,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
return { error: `Failed to get Dependabot alert: ${error.message}` };
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=get-alert.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const listDependabotAlerts: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
githubToken?: string | undefined;
|
|
5
|
+
per_page?: number | undefined;
|
|
6
|
+
page?: number | undefined;
|
|
7
|
+
state?: "open" | "dismissed" | "fixed" | "auto_dismissed" | undefined;
|
|
8
|
+
severity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
error: string;
|
|
11
|
+
alerts?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
alerts: {
|
|
14
|
+
number: number;
|
|
15
|
+
state: "open" | "dismissed" | "fixed" | "auto_dismissed";
|
|
16
|
+
dependency: string | undefined;
|
|
17
|
+
security_advisory: string;
|
|
18
|
+
severity: "low" | "medium" | "high" | "critical";
|
|
19
|
+
html_url: string;
|
|
20
|
+
}[];
|
|
21
|
+
error?: undefined;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=list-alerts.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const listDependabotAlerts = tool({
|
|
6
|
+
description: 'List Dependabot alerts for a repository.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner (username or org)'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
state: z.enum(['auto_dismissed', 'dismissed', 'fixed', 'open']).optional().describe('Filter by state'),
|
|
12
|
+
severity: z.enum(['low', 'medium', 'high', 'critical']).optional().describe('Filter by severity'),
|
|
13
|
+
per_page: z.number().optional().describe('Number of results per page (max 100)'),
|
|
14
|
+
page: z.number().optional().describe('Page number of results to fetch'),
|
|
15
|
+
}),
|
|
16
|
+
execute: async ({ githubToken, owner, repo, state, severity, per_page, page }) => {
|
|
17
|
+
if (!githubToken) {
|
|
18
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
19
|
+
}
|
|
20
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
21
|
+
try {
|
|
22
|
+
const { data } = await octokit.rest.dependabot.listAlertsForRepo({
|
|
23
|
+
owner,
|
|
24
|
+
repo,
|
|
25
|
+
state,
|
|
26
|
+
severity,
|
|
27
|
+
per_page: per_page ?? 30,
|
|
28
|
+
page: page ?? 1,
|
|
29
|
+
});
|
|
30
|
+
return {
|
|
31
|
+
alerts: data.map(alert => ({
|
|
32
|
+
number: alert.number,
|
|
33
|
+
state: alert.state,
|
|
34
|
+
dependency: alert.dependency?.package?.name,
|
|
35
|
+
security_advisory: alert.security_advisory?.summary,
|
|
36
|
+
severity: alert.security_advisory?.severity,
|
|
37
|
+
html_url: alert.html_url,
|
|
38
|
+
})),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
catch (error) {
|
|
42
|
+
return { error: `Failed to list Dependabot alerts: ${error.message}` };
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=list-alerts.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const updateDependabotAlert: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
alert_number: number;
|
|
5
|
+
state: "open" | "dismissed";
|
|
6
|
+
githubToken?: string | undefined;
|
|
7
|
+
dismissed_reason?: "fix_started" | "inaccurate" | "no_bandwidth" | "not_used" | "tolerable_risk" | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
error: string;
|
|
10
|
+
number?: undefined;
|
|
11
|
+
state?: undefined;
|
|
12
|
+
dismissed_reason?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
number: number;
|
|
15
|
+
state: "open" | "dismissed" | "fixed" | "auto_dismissed";
|
|
16
|
+
dismissed_reason: "fix_started" | "inaccurate" | "no_bandwidth" | "not_used" | "tolerable_risk" | null;
|
|
17
|
+
error?: undefined;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=update-alert.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const updateDependabotAlert = tool({
|
|
6
|
+
description: 'Update a Dependabot alert.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner (username or org)'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
alert_number: z.number().describe('The alert number'),
|
|
12
|
+
state: z.enum(['dismissed', 'open']).describe('The state to set'),
|
|
13
|
+
dismissed_reason: z.enum(['fix_started', 'inaccurate', 'no_bandwidth', 'not_used', 'tolerable_risk']).optional().describe('Required when state is dismissed'),
|
|
14
|
+
}),
|
|
15
|
+
execute: async ({ githubToken, owner, repo, alert_number, state, dismissed_reason }) => {
|
|
16
|
+
if (!githubToken) {
|
|
17
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
18
|
+
}
|
|
19
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
20
|
+
try {
|
|
21
|
+
const { data } = await octokit.rest.dependabot.updateAlert({
|
|
22
|
+
owner,
|
|
23
|
+
repo,
|
|
24
|
+
alert_number,
|
|
25
|
+
state,
|
|
26
|
+
dismissed_reason,
|
|
27
|
+
});
|
|
28
|
+
return {
|
|
29
|
+
number: data.number,
|
|
30
|
+
state: data.state,
|
|
31
|
+
dismissed_reason: data.dismissed_reason,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
return { error: `Failed to update Dependabot alert: ${error.message}` };
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=update-alert.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const createDeployKey: import("ai").Tool<{
|
|
2
|
+
title: string;
|
|
3
|
+
repo: string;
|
|
4
|
+
owner: string;
|
|
5
|
+
key: string;
|
|
6
|
+
githubToken?: string | undefined;
|
|
7
|
+
read_only?: boolean | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
error: string;
|
|
10
|
+
id?: undefined;
|
|
11
|
+
key?: undefined;
|
|
12
|
+
title?: undefined;
|
|
13
|
+
read_only?: undefined;
|
|
14
|
+
created_at?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
id: number;
|
|
17
|
+
key: string;
|
|
18
|
+
title: string;
|
|
19
|
+
read_only: boolean;
|
|
20
|
+
created_at: string;
|
|
21
|
+
error?: undefined;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=create-deploy-key.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const createDeployKey = tool({
|
|
6
|
+
description: 'Create a deploy key for a repository.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
owner: z.string().describe('Repository owner (username or org)'),
|
|
10
|
+
repo: z.string().describe('Repository name'),
|
|
11
|
+
title: z.string().describe('A name for the key'),
|
|
12
|
+
key: z.string().describe('The contents of the key'),
|
|
13
|
+
read_only: z.boolean().optional().describe('If true, the key will only be able to read repository contents'),
|
|
14
|
+
}),
|
|
15
|
+
execute: async ({ githubToken, owner, repo, title, key, read_only }) => {
|
|
16
|
+
if (!githubToken) {
|
|
17
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
18
|
+
}
|
|
19
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
20
|
+
try {
|
|
21
|
+
const { data } = await octokit.rest.repos.createDeployKey({
|
|
22
|
+
owner,
|
|
23
|
+
repo,
|
|
24
|
+
title,
|
|
25
|
+
key,
|
|
26
|
+
read_only: read_only ?? true,
|
|
27
|
+
});
|
|
28
|
+
if (!data)
|
|
29
|
+
return { error: 'No data returned from GitHub API' };
|
|
30
|
+
return {
|
|
31
|
+
id: data.id,
|
|
32
|
+
key: data.key,
|
|
33
|
+
title: data.title,
|
|
34
|
+
read_only: data.read_only,
|
|
35
|
+
created_at: data.created_at,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
return { error: `Failed to create deploy key: ${error.message}` };
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=create-deploy-key.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const deleteDeployKey: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
key_id: number;
|
|
5
|
+
githubToken?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
error: string;
|
|
8
|
+
message?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
message: string;
|
|
11
|
+
error?: undefined;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=delete-deploy-key.d.ts.map
|