@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,14 @@
|
|
|
1
|
+
export declare const removeTeamRepo: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
org: string;
|
|
5
|
+
team_slug: string;
|
|
6
|
+
githubToken?: string | undefined;
|
|
7
|
+
}, {
|
|
8
|
+
error: string;
|
|
9
|
+
message?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
message: string;
|
|
12
|
+
error?: undefined;
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=remove-team-repo.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const removeTeamRepo = tool({
|
|
6
|
+
description: 'Remove a repository from a team.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
org: z.string().describe('The organization name'),
|
|
10
|
+
team_slug: z.string().describe('The slug of the team'),
|
|
11
|
+
owner: z.string().describe('The owner of the repository'),
|
|
12
|
+
repo: z.string().describe('The name of the repository'),
|
|
13
|
+
}),
|
|
14
|
+
execute: async ({ githubToken, org, team_slug, owner, repo }) => {
|
|
15
|
+
if (!githubToken) {
|
|
16
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
17
|
+
}
|
|
18
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
19
|
+
try {
|
|
20
|
+
await octokit.rest.teams.removeRepoInOrg({
|
|
21
|
+
org,
|
|
22
|
+
team_slug,
|
|
23
|
+
owner,
|
|
24
|
+
repo,
|
|
25
|
+
});
|
|
26
|
+
return { message: `Successfully removed ${owner}/${repo} from team ${team_slug}` };
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
return { error: `Failed to remove team repo: ${error.message}` };
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=remove-team-repo.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const updateTeam: import("ai").Tool<{
|
|
2
|
+
org: string;
|
|
3
|
+
team_slug: string;
|
|
4
|
+
description?: string | undefined;
|
|
5
|
+
githubToken?: string | undefined;
|
|
6
|
+
name?: string | undefined;
|
|
7
|
+
permission?: "push" | "admin" | "pull" | "maintain" | "triage" | undefined;
|
|
8
|
+
privacy?: "closed" | "secret" | undefined;
|
|
9
|
+
parent_team_id?: number | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
error: string;
|
|
12
|
+
id?: undefined;
|
|
13
|
+
name?: undefined;
|
|
14
|
+
slug?: undefined;
|
|
15
|
+
description?: undefined;
|
|
16
|
+
privacy?: undefined;
|
|
17
|
+
permission?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
id: number;
|
|
20
|
+
name: string;
|
|
21
|
+
slug: string;
|
|
22
|
+
description: string | null;
|
|
23
|
+
privacy: "closed" | "secret" | undefined;
|
|
24
|
+
permission: string;
|
|
25
|
+
error?: undefined;
|
|
26
|
+
}>;
|
|
27
|
+
//# sourceMappingURL=update-team.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const updateTeam = tool({
|
|
6
|
+
description: 'Update a team.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
org: z.string().describe('The organization name'),
|
|
10
|
+
team_slug: z.string().describe('The slug of the team'),
|
|
11
|
+
name: z.string().optional().describe('The name of the team'),
|
|
12
|
+
description: z.string().optional().describe('The description of the team'),
|
|
13
|
+
privacy: z.enum(['secret', 'closed']).optional().describe('The level of privacy this team should have'),
|
|
14
|
+
permission: z.enum(['pull', 'push', 'admin', 'maintain', 'triage']).optional().describe('The default permission for new repositories added to this team'),
|
|
15
|
+
parent_team_id: z.number().optional().describe('The ID of a team to set as the parent team'),
|
|
16
|
+
}),
|
|
17
|
+
execute: async ({ githubToken, org, team_slug, ...options }) => {
|
|
18
|
+
if (!githubToken) {
|
|
19
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
20
|
+
}
|
|
21
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
22
|
+
try {
|
|
23
|
+
const { data } = await octokit.rest.teams.updateInOrg({
|
|
24
|
+
org,
|
|
25
|
+
team_slug,
|
|
26
|
+
...options,
|
|
27
|
+
});
|
|
28
|
+
if (!data)
|
|
29
|
+
return { error: 'No data returned from GitHub API' };
|
|
30
|
+
return {
|
|
31
|
+
id: data.id,
|
|
32
|
+
name: data.name,
|
|
33
|
+
slug: data.slug,
|
|
34
|
+
description: data.description,
|
|
35
|
+
privacy: data.privacy,
|
|
36
|
+
permission: data.permission,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
return { error: `Failed to update team: ${error.message}` };
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=update-team.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const followUser: import("ai").Tool<{
|
|
2
|
+
username: string;
|
|
3
|
+
action: "follow" | "unfollow";
|
|
4
|
+
githubToken?: string | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
error: string;
|
|
7
|
+
message?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
message: string;
|
|
10
|
+
error?: undefined;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=follow-user.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const followUser = tool({
|
|
6
|
+
description: 'Follow or unfollow a GitHub user.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
username: z.string().describe('Username of the user to follow/unfollow'),
|
|
10
|
+
action: z.enum(['follow', 'unfollow']).describe('Action to perform'),
|
|
11
|
+
}),
|
|
12
|
+
execute: async ({ githubToken, username, action }) => {
|
|
13
|
+
if (!githubToken) {
|
|
14
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
15
|
+
}
|
|
16
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
17
|
+
try {
|
|
18
|
+
if (action === 'follow') {
|
|
19
|
+
await octokit.rest.users.follow({
|
|
20
|
+
username,
|
|
21
|
+
});
|
|
22
|
+
return { message: `Followed user ${username}` };
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
await octokit.rest.users.unfollow({
|
|
26
|
+
username,
|
|
27
|
+
});
|
|
28
|
+
return { message: `Unfollowed user ${username}` };
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
return { error: `Failed to ${action} user: ${error.message}` };
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=follow-user.js.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const getGitHubUser: import("ai").Tool<{
|
|
2
|
+
githubToken?: string | undefined;
|
|
3
|
+
}, {
|
|
4
|
+
error: string;
|
|
5
|
+
id?: undefined;
|
|
6
|
+
login?: undefined;
|
|
7
|
+
name?: undefined;
|
|
8
|
+
email?: undefined;
|
|
9
|
+
avatar_url?: undefined;
|
|
10
|
+
html_url?: undefined;
|
|
11
|
+
bio?: undefined;
|
|
12
|
+
company?: undefined;
|
|
13
|
+
blog?: undefined;
|
|
14
|
+
location?: undefined;
|
|
15
|
+
hireable?: undefined;
|
|
16
|
+
public_repos?: undefined;
|
|
17
|
+
public_gists?: undefined;
|
|
18
|
+
followers?: undefined;
|
|
19
|
+
following?: undefined;
|
|
20
|
+
created_at?: undefined;
|
|
21
|
+
updated_at?: undefined;
|
|
22
|
+
total_private_repos?: undefined;
|
|
23
|
+
owned_private_repos?: undefined;
|
|
24
|
+
disk_usage?: undefined;
|
|
25
|
+
collaborators?: undefined;
|
|
26
|
+
two_factor_authentication?: undefined;
|
|
27
|
+
plan?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
id: number;
|
|
30
|
+
login: string;
|
|
31
|
+
name: string | null;
|
|
32
|
+
email: string | null;
|
|
33
|
+
avatar_url: string;
|
|
34
|
+
html_url: string;
|
|
35
|
+
bio: string | null;
|
|
36
|
+
company: string | null;
|
|
37
|
+
blog: string | null;
|
|
38
|
+
location: string | null;
|
|
39
|
+
hireable: boolean | null;
|
|
40
|
+
public_repos: number;
|
|
41
|
+
public_gists: number;
|
|
42
|
+
followers: number;
|
|
43
|
+
following: number;
|
|
44
|
+
created_at: string;
|
|
45
|
+
updated_at: string;
|
|
46
|
+
total_private_repos: number | undefined;
|
|
47
|
+
owned_private_repos: number | undefined;
|
|
48
|
+
disk_usage: number | undefined;
|
|
49
|
+
collaborators: number | undefined;
|
|
50
|
+
two_factor_authentication: any;
|
|
51
|
+
plan: {
|
|
52
|
+
collaborators: number;
|
|
53
|
+
name: string;
|
|
54
|
+
space: number;
|
|
55
|
+
private_repos: number;
|
|
56
|
+
} | {
|
|
57
|
+
collaborators: number;
|
|
58
|
+
name: string;
|
|
59
|
+
space: number;
|
|
60
|
+
private_repos: number;
|
|
61
|
+
} | undefined;
|
|
62
|
+
error?: undefined;
|
|
63
|
+
}>;
|
|
64
|
+
//# sourceMappingURL=get-github-user.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const getGitHubUser = tool({
|
|
6
|
+
description: 'Get the authenticated GitHub user profile. Returns detailed information including login, name, email, plan, usage, and repository counts.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
}),
|
|
10
|
+
execute: async ({ githubToken }) => {
|
|
11
|
+
if (!githubToken) {
|
|
12
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
13
|
+
}
|
|
14
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
15
|
+
try {
|
|
16
|
+
const { data } = await octokit.rest.users.getAuthenticated();
|
|
17
|
+
return {
|
|
18
|
+
id: data.id,
|
|
19
|
+
login: data.login,
|
|
20
|
+
name: data.name ?? null,
|
|
21
|
+
email: data.email ?? null,
|
|
22
|
+
avatar_url: data.avatar_url,
|
|
23
|
+
html_url: data.html_url,
|
|
24
|
+
bio: data.bio ?? null,
|
|
25
|
+
company: data.company ?? null,
|
|
26
|
+
blog: data.blog ?? null,
|
|
27
|
+
location: data.location ?? null,
|
|
28
|
+
hireable: data.hireable ?? null,
|
|
29
|
+
public_repos: data.public_repos,
|
|
30
|
+
public_gists: data.public_gists,
|
|
31
|
+
followers: data.followers,
|
|
32
|
+
following: data.following,
|
|
33
|
+
created_at: data.created_at,
|
|
34
|
+
updated_at: data.updated_at,
|
|
35
|
+
total_private_repos: data.total_private_repos,
|
|
36
|
+
owned_private_repos: data.owned_private_repos,
|
|
37
|
+
disk_usage: data.disk_usage,
|
|
38
|
+
collaborators: data.collaborators,
|
|
39
|
+
two_factor_authentication: data.two_factor_authentication,
|
|
40
|
+
plan: data.plan,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
return { error: `Failed to get authenticated user: ${error.message}` };
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=get-github-user.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const getUserById: import("ai").Tool<{
|
|
2
|
+
id: number;
|
|
3
|
+
githubToken?: string | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
login: string;
|
|
6
|
+
id: number;
|
|
7
|
+
user_view_type?: string;
|
|
8
|
+
node_id: string;
|
|
9
|
+
avatar_url: string;
|
|
10
|
+
gravatar_id: string | null;
|
|
11
|
+
url: string;
|
|
12
|
+
html_url: string;
|
|
13
|
+
followers_url: string;
|
|
14
|
+
following_url: string;
|
|
15
|
+
gists_url: string;
|
|
16
|
+
starred_url: string;
|
|
17
|
+
subscriptions_url: string;
|
|
18
|
+
organizations_url: string;
|
|
19
|
+
repos_url: string;
|
|
20
|
+
events_url: string;
|
|
21
|
+
received_events_url: string;
|
|
22
|
+
type: string;
|
|
23
|
+
site_admin: boolean;
|
|
24
|
+
name: string | null;
|
|
25
|
+
company: string | null;
|
|
26
|
+
blog: string | null;
|
|
27
|
+
location: string | null;
|
|
28
|
+
email: string | null;
|
|
29
|
+
notification_email?: string | null;
|
|
30
|
+
hireable: boolean | null;
|
|
31
|
+
bio: string | null;
|
|
32
|
+
twitter_username?: string | null;
|
|
33
|
+
public_repos: number;
|
|
34
|
+
public_gists: number;
|
|
35
|
+
followers: number;
|
|
36
|
+
following: number;
|
|
37
|
+
created_at: string;
|
|
38
|
+
updated_at: string;
|
|
39
|
+
plan?: {
|
|
40
|
+
collaborators: number;
|
|
41
|
+
name: string;
|
|
42
|
+
space: number;
|
|
43
|
+
private_repos: number;
|
|
44
|
+
};
|
|
45
|
+
private_gists?: number;
|
|
46
|
+
total_private_repos?: number;
|
|
47
|
+
owned_private_repos?: number;
|
|
48
|
+
disk_usage?: number;
|
|
49
|
+
collaborators?: number;
|
|
50
|
+
} | {
|
|
51
|
+
error: string;
|
|
52
|
+
}>;
|
|
53
|
+
//# sourceMappingURL=get-user-by-id.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const getUserById = tool({
|
|
6
|
+
description: 'Get a user using their ID.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
id: z.number().describe('The ID of the user.'),
|
|
10
|
+
}),
|
|
11
|
+
execute: async ({ githubToken, id }) => {
|
|
12
|
+
if (!githubToken) {
|
|
13
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
14
|
+
}
|
|
15
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
16
|
+
try {
|
|
17
|
+
const { data } = await octokit.rest.users.getById({
|
|
18
|
+
account_id: id,
|
|
19
|
+
});
|
|
20
|
+
return data;
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
return { error: `Failed to get user by ID: ${error.message}` };
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=get-user-by-id.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const getUserContext: import("ai").Tool<{
|
|
2
|
+
username: string;
|
|
3
|
+
githubToken?: string | undefined;
|
|
4
|
+
subject_type?: "issue" | "repository" | "organization" | "pull_request" | undefined;
|
|
5
|
+
subject_id?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
contexts: {
|
|
8
|
+
message: string;
|
|
9
|
+
octicon: string;
|
|
10
|
+
}[];
|
|
11
|
+
} | {
|
|
12
|
+
error: string;
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=get-user-context.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const getUserContext = tool({
|
|
6
|
+
description: 'Get contextual information for a user. Provides the interaction context between the authenticated user and another user.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
username: z.string().describe('The handle for the GitHub user account.'),
|
|
10
|
+
subject_type: z.enum(['organization', 'repository', 'issue', 'pull_request']).optional().describe('The type of subject to check context for.'),
|
|
11
|
+
subject_id: z.string().optional().describe('The ID of the subject.'),
|
|
12
|
+
}),
|
|
13
|
+
execute: async ({ githubToken, username, subject_type, subject_id }) => {
|
|
14
|
+
if (!githubToken) {
|
|
15
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
16
|
+
}
|
|
17
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
18
|
+
try {
|
|
19
|
+
// @ts-ignore - The types might be slightly off for this specific endpoint depending on octokit version
|
|
20
|
+
const { data } = await octokit.rest.users.getContextForUser({
|
|
21
|
+
username,
|
|
22
|
+
subject_type: subject_type,
|
|
23
|
+
subject_id,
|
|
24
|
+
});
|
|
25
|
+
return data;
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
return { error: `Failed to get user context: ${error.message}` };
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=get-user-context.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const getUser: import("ai").Tool<{
|
|
2
|
+
username: string;
|
|
3
|
+
githubToken?: string | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
login: string;
|
|
6
|
+
id: number;
|
|
7
|
+
user_view_type?: string;
|
|
8
|
+
node_id: string;
|
|
9
|
+
avatar_url: string;
|
|
10
|
+
gravatar_id: string | null;
|
|
11
|
+
url: string;
|
|
12
|
+
html_url: string;
|
|
13
|
+
followers_url: string;
|
|
14
|
+
following_url: string;
|
|
15
|
+
gists_url: string;
|
|
16
|
+
starred_url: string;
|
|
17
|
+
subscriptions_url: string;
|
|
18
|
+
organizations_url: string;
|
|
19
|
+
repos_url: string;
|
|
20
|
+
events_url: string;
|
|
21
|
+
received_events_url: string;
|
|
22
|
+
type: string;
|
|
23
|
+
site_admin: boolean;
|
|
24
|
+
name: string | null;
|
|
25
|
+
company: string | null;
|
|
26
|
+
blog: string | null;
|
|
27
|
+
location: string | null;
|
|
28
|
+
email: string | null;
|
|
29
|
+
notification_email?: string | null;
|
|
30
|
+
hireable: boolean | null;
|
|
31
|
+
bio: string | null;
|
|
32
|
+
twitter_username?: string | null;
|
|
33
|
+
public_repos: number;
|
|
34
|
+
public_gists: number;
|
|
35
|
+
followers: number;
|
|
36
|
+
following: number;
|
|
37
|
+
created_at: string;
|
|
38
|
+
updated_at: string;
|
|
39
|
+
plan?: {
|
|
40
|
+
collaborators: number;
|
|
41
|
+
name: string;
|
|
42
|
+
space: number;
|
|
43
|
+
private_repos: number;
|
|
44
|
+
};
|
|
45
|
+
private_gists?: number;
|
|
46
|
+
total_private_repos?: number;
|
|
47
|
+
owned_private_repos?: number;
|
|
48
|
+
disk_usage?: number;
|
|
49
|
+
collaborators?: number;
|
|
50
|
+
} | {
|
|
51
|
+
error: string;
|
|
52
|
+
}>;
|
|
53
|
+
//# sourceMappingURL=get-user.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const getUser = tool({
|
|
6
|
+
description: 'Get a user. Provides publicly available information about someone with a GitHub account.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
username: z.string().describe('The handle for the GitHub user account.'),
|
|
10
|
+
}),
|
|
11
|
+
execute: async ({ githubToken, username }) => {
|
|
12
|
+
if (!githubToken) {
|
|
13
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
14
|
+
}
|
|
15
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
16
|
+
try {
|
|
17
|
+
const { data } = await octokit.rest.users.getByUsername({
|
|
18
|
+
username,
|
|
19
|
+
});
|
|
20
|
+
return data;
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
return { error: `Failed to get user: ${error.message}` };
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=get-user.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const listUsers: import("ai").Tool<{
|
|
2
|
+
since?: number | undefined;
|
|
3
|
+
githubToken?: string | undefined;
|
|
4
|
+
per_page?: number | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
name?: string | null;
|
|
7
|
+
email?: string | null;
|
|
8
|
+
login: string;
|
|
9
|
+
id: number;
|
|
10
|
+
node_id: string;
|
|
11
|
+
avatar_url: string;
|
|
12
|
+
gravatar_id: string | null;
|
|
13
|
+
url: string;
|
|
14
|
+
html_url: string;
|
|
15
|
+
followers_url: string;
|
|
16
|
+
following_url: string;
|
|
17
|
+
gists_url: string;
|
|
18
|
+
starred_url: string;
|
|
19
|
+
subscriptions_url: string;
|
|
20
|
+
organizations_url: string;
|
|
21
|
+
repos_url: string;
|
|
22
|
+
events_url: string;
|
|
23
|
+
received_events_url: string;
|
|
24
|
+
type: string;
|
|
25
|
+
site_admin: boolean;
|
|
26
|
+
starred_at?: string;
|
|
27
|
+
user_view_type?: string;
|
|
28
|
+
}[] | {
|
|
29
|
+
error: string;
|
|
30
|
+
}>;
|
|
31
|
+
//# sourceMappingURL=list-users.d.ts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const listUsers = tool({
|
|
6
|
+
description: 'List users. Lists all users, in the order that they signed up on GitHub.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
since: z.number().optional().describe('The integer ID of the last User that you\'ve seen.'),
|
|
10
|
+
per_page: z.number().optional().describe('Results per page (max 100).'),
|
|
11
|
+
}),
|
|
12
|
+
execute: async ({ githubToken, since, per_page }) => {
|
|
13
|
+
if (!githubToken) {
|
|
14
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
15
|
+
}
|
|
16
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
17
|
+
try {
|
|
18
|
+
const { data } = await octokit.rest.users.list({
|
|
19
|
+
since,
|
|
20
|
+
per_page,
|
|
21
|
+
});
|
|
22
|
+
return data;
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
return { error: `Failed to list users: ${error.message}` };
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=list-users.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const updateAuthenticatedUser: import("ai").Tool<{
|
|
2
|
+
location?: string | undefined;
|
|
3
|
+
githubToken?: string | undefined;
|
|
4
|
+
name?: string | undefined;
|
|
5
|
+
email?: string | undefined;
|
|
6
|
+
company?: string | undefined;
|
|
7
|
+
blog?: string | undefined;
|
|
8
|
+
hireable?: boolean | undefined;
|
|
9
|
+
bio?: string | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
login: string;
|
|
12
|
+
id: number;
|
|
13
|
+
user_view_type?: string;
|
|
14
|
+
node_id: string;
|
|
15
|
+
avatar_url: string;
|
|
16
|
+
gravatar_id: string | null;
|
|
17
|
+
url: string;
|
|
18
|
+
html_url: string;
|
|
19
|
+
followers_url: string;
|
|
20
|
+
following_url: string;
|
|
21
|
+
gists_url: string;
|
|
22
|
+
starred_url: string;
|
|
23
|
+
subscriptions_url: string;
|
|
24
|
+
organizations_url: string;
|
|
25
|
+
repos_url: string;
|
|
26
|
+
events_url: string;
|
|
27
|
+
received_events_url: string;
|
|
28
|
+
type: string;
|
|
29
|
+
site_admin: boolean;
|
|
30
|
+
name: string | null;
|
|
31
|
+
company: string | null;
|
|
32
|
+
blog: string | null;
|
|
33
|
+
location: string | null;
|
|
34
|
+
email: string | null;
|
|
35
|
+
notification_email?: string | null;
|
|
36
|
+
hireable: boolean | null;
|
|
37
|
+
bio: string | null;
|
|
38
|
+
twitter_username?: string | null;
|
|
39
|
+
public_repos: number;
|
|
40
|
+
public_gists: number;
|
|
41
|
+
followers: number;
|
|
42
|
+
following: number;
|
|
43
|
+
created_at: string;
|
|
44
|
+
updated_at: string;
|
|
45
|
+
private_gists: number;
|
|
46
|
+
total_private_repos: number;
|
|
47
|
+
owned_private_repos: number;
|
|
48
|
+
disk_usage: number;
|
|
49
|
+
collaborators: number;
|
|
50
|
+
two_factor_authentication: boolean;
|
|
51
|
+
plan?: {
|
|
52
|
+
collaborators: number;
|
|
53
|
+
name: string;
|
|
54
|
+
space: number;
|
|
55
|
+
private_repos: number;
|
|
56
|
+
};
|
|
57
|
+
business_plus?: boolean;
|
|
58
|
+
ldap_dn?: string;
|
|
59
|
+
} | {
|
|
60
|
+
error: string;
|
|
61
|
+
}>;
|
|
62
|
+
//# sourceMappingURL=update-authenticated-user.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 updateAuthenticatedUser = tool({
|
|
6
|
+
description: 'Update the authenticated GitHub user profile.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
name: z.string().optional().describe('The new name of the user.'),
|
|
10
|
+
email: z.string().optional().describe('The publicly visible email address.'),
|
|
11
|
+
blog: z.string().optional().describe('The new blog URL of the user.'),
|
|
12
|
+
company: z.string().optional().describe('The new company of the user.'),
|
|
13
|
+
location: z.string().optional().describe('The new location of the user.'),
|
|
14
|
+
hireable: z.boolean().optional().describe('The new hireable status of the user.'),
|
|
15
|
+
bio: z.string().optional().describe('The new short biography of the user.'),
|
|
16
|
+
}),
|
|
17
|
+
execute: async ({ githubToken, name, email, blog, company, location, hireable, bio }) => {
|
|
18
|
+
if (!githubToken) {
|
|
19
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
20
|
+
}
|
|
21
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
22
|
+
try {
|
|
23
|
+
const { data } = await octokit.rest.users.updateAuthenticated({
|
|
24
|
+
name,
|
|
25
|
+
email,
|
|
26
|
+
blog,
|
|
27
|
+
company,
|
|
28
|
+
location,
|
|
29
|
+
hireable,
|
|
30
|
+
bio,
|
|
31
|
+
});
|
|
32
|
+
return data;
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
return { error: `Failed to update authenticated user: ${error.message}` };
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=update-authenticated-user.js.map
|