@rnsk/toolkits 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +2 -0
- package/dist/core/schema-helpers.d.ts +20 -0
- package/dist/core/schema-helpers.js +157 -0
- package/dist/core/scope.d.ts +4 -0
- package/dist/core/scope.js +12 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +15 -3
- 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/gmail/manifest.js +78 -5
- package/dist/toolkits/gmail/tools/create-draft.d.ts +34 -0
- package/dist/toolkits/gmail/tools/create-draft.js +60 -0
- package/dist/toolkits/gmail/tools/delete-draft.d.ts +23 -0
- package/dist/toolkits/gmail/tools/delete-draft.js +34 -0
- package/dist/toolkits/gmail/tools/get-draft.d.ts +32 -0
- package/dist/toolkits/gmail/tools/get-draft.js +36 -0
- package/dist/toolkits/gmail/tools/get-message.d.ts +12 -12
- package/dist/toolkits/gmail/tools/get-message.js +3 -24
- package/dist/toolkits/gmail/tools/get-thread.d.ts +29 -0
- package/dist/toolkits/gmail/tools/get-thread.js +39 -0
- package/dist/toolkits/gmail/tools/index.d.ts +17 -0
- package/dist/toolkits/gmail/tools/index.js +17 -0
- package/dist/toolkits/gmail/tools/list-drafts.d.ts +28 -0
- package/dist/toolkits/gmail/tools/list-drafts.js +43 -0
- package/dist/toolkits/gmail/tools/list-labels.d.ts +20 -0
- package/dist/toolkits/gmail/tools/list-labels.js +46 -0
- package/dist/toolkits/gmail/tools/list-threads.d.ts +28 -0
- package/dist/toolkits/gmail/tools/list-threads.js +43 -0
- package/dist/toolkits/gmail/tools/modify-message-labels.d.ts +31 -0
- package/dist/toolkits/gmail/tools/modify-message-labels.js +44 -0
- package/dist/toolkits/gmail/tools/reply-to-thread.d.ts +33 -0
- package/dist/toolkits/gmail/tools/reply-to-thread.js +58 -0
- package/dist/toolkits/gmail/tools/send-draft.d.ts +29 -0
- package/dist/toolkits/gmail/tools/send-draft.js +41 -0
- package/dist/toolkits/gmail/tools/send-message.d.ts +4 -1
- package/dist/toolkits/gmail/tools/send-message.js +18 -16
- package/dist/toolkits/gmail/tools/trash-message.d.ts +29 -0
- package/dist/toolkits/gmail/tools/trash-message.js +37 -0
- package/dist/toolkits/gmail/tools/untrash-message.d.ts +29 -0
- package/dist/toolkits/gmail/tools/untrash-message.js +37 -0
- package/dist/toolkits/gmail/tools/utils.d.ts +41 -0
- package/dist/toolkits/gmail/tools/utils.js +97 -0
- 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/delete-event.d.ts +27 -0
- package/dist/toolkits/google-calendar/tools/delete-event.js +38 -0
- package/dist/toolkits/google-calendar/tools/get-event.d.ts +24 -0
- package/dist/toolkits/google-calendar/tools/get-event.js +37 -0
- package/dist/toolkits/google-calendar/tools/index.d.ts +185 -0
- package/dist/toolkits/google-calendar/tools/index.js +47 -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-calendar/tools/search-events.d.ts +27 -0
- package/dist/toolkits/google-calendar/tools/search-events.js +49 -0
- package/dist/toolkits/google-calendar/tools/update-event.d.ts +29 -0
- package/dist/toolkits/google-calendar/tools/update-event.js +56 -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/append-values.d.ts +41 -0
- package/dist/toolkits/google-sheets/tools/append-values.js +51 -0
- package/dist/toolkits/google-sheets/tools/clear-values.d.ts +27 -0
- package/dist/toolkits/google-sheets/tools/clear-values.js +41 -0
- package/dist/toolkits/google-sheets/tools/create-spreadsheet.d.ts +33 -0
- package/dist/toolkits/google-sheets/tools/create-spreadsheet.js +59 -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 +209 -0
- package/dist/toolkits/google-sheets/tools/index.js +61 -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/google-sheets/tools/update-values.d.ts +38 -0
- package/dist/toolkits/google-sheets/tools/update-values.js +50 -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 +5 -6
- 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,42 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const listRepoIssues = tool({
|
|
6
|
+
description: 'List issues for a GitHub repository. Use when the user asks to see issues, open issues, or list issues in a repo. Provide owner and repo (e.g. owner: octocat, repo: hello-world).',
|
|
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(['open', 'closed', 'all']).optional().default('open').describe('Filter by issue state'),
|
|
12
|
+
perPage: z.number().min(1).max(100).optional().default(30).describe('Number of issues per page'),
|
|
13
|
+
page: z.number().min(1).optional().default(1).describe('Page number'),
|
|
14
|
+
}),
|
|
15
|
+
execute: async ({ githubToken, owner, repo, state = 'open', 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
|
+
const { data } = await octokit.rest.issues.listForRepo({
|
|
21
|
+
owner,
|
|
22
|
+
repo,
|
|
23
|
+
state,
|
|
24
|
+
per_page: perPage,
|
|
25
|
+
page,
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
owner,
|
|
29
|
+
repo,
|
|
30
|
+
issues: data.map((issue) => ({
|
|
31
|
+
number: issue.number,
|
|
32
|
+
title: issue.title,
|
|
33
|
+
state: issue.state,
|
|
34
|
+
html_url: issue.html_url ?? null,
|
|
35
|
+
user: issue.user?.login ?? null,
|
|
36
|
+
created_at: issue.created_at,
|
|
37
|
+
})),
|
|
38
|
+
total: data.length,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=list-repo-issues.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const listUserAccountIssues: import("ai").Tool<{
|
|
2
|
+
sort?: "created" | "updated" | "comments" | undefined;
|
|
3
|
+
filter?: "all" | "assigned" | "created" | "mentioned" | "subscribed" | undefined;
|
|
4
|
+
since?: string | undefined;
|
|
5
|
+
labels?: string | undefined;
|
|
6
|
+
githubToken?: string | undefined;
|
|
7
|
+
per_page?: number | undefined;
|
|
8
|
+
page?: number | undefined;
|
|
9
|
+
state?: "all" | "open" | "closed" | undefined;
|
|
10
|
+
direction?: "asc" | "desc" | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
number: number;
|
|
13
|
+
title: string;
|
|
14
|
+
state: string;
|
|
15
|
+
repository: string | undefined;
|
|
16
|
+
html_url: string;
|
|
17
|
+
created_at: string;
|
|
18
|
+
}[] | {
|
|
19
|
+
error: string;
|
|
20
|
+
}>;
|
|
21
|
+
//# sourceMappingURL=list-user-account-issues.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 listUserAccountIssues = tool({
|
|
6
|
+
description: 'List issues assigned to the authenticated user across their own user repositories.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
filter: z.enum(['assigned', 'created', 'mentioned', 'subscribed', 'all']).optional().describe('Indicates which sorts of issues to return.'),
|
|
10
|
+
state: z.enum(['open', 'closed', 'all']).optional().describe('Indicates the state of the issues to return.'),
|
|
11
|
+
labels: z.string().optional().describe('A list of comma separated label names.'),
|
|
12
|
+
sort: z.enum(['created', 'updated', 'comments']).optional().describe('What to sort results by.'),
|
|
13
|
+
direction: z.enum(['asc', 'desc']).optional().describe('The direction to sort the results by.'),
|
|
14
|
+
since: z.string().optional().describe('Only show issues updated after this time (ISO 8601 format).'),
|
|
15
|
+
per_page: z.number().optional().describe('The number of results per page (max 100).'),
|
|
16
|
+
page: z.number().optional().describe('Page number of the results to fetch.'),
|
|
17
|
+
}),
|
|
18
|
+
execute: async ({ githubToken, ...params }) => {
|
|
19
|
+
if (!githubToken) {
|
|
20
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
21
|
+
}
|
|
22
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
23
|
+
const { data } = await octokit.rest.issues.list({
|
|
24
|
+
...params,
|
|
25
|
+
});
|
|
26
|
+
return data.map((issue) => ({
|
|
27
|
+
number: issue.number,
|
|
28
|
+
title: issue.title,
|
|
29
|
+
state: issue.state,
|
|
30
|
+
repository: issue.repository?.full_name,
|
|
31
|
+
html_url: issue.html_url,
|
|
32
|
+
created_at: issue.created_at,
|
|
33
|
+
}));
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=list-user-account-issues.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const lockIssue: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
issueNumber: number;
|
|
5
|
+
githubToken?: string | undefined;
|
|
6
|
+
lockReason?: "off-topic" | "too heated" | "resolved" | "spam" | undefined;
|
|
7
|
+
unlock?: boolean | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
error: string;
|
|
10
|
+
message?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
message: string;
|
|
13
|
+
error?: undefined;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=lock-issue.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 lockIssue = tool({
|
|
6
|
+
description: 'Lock or unlock a GitHub issue.',
|
|
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
|
+
issueNumber: z.number().describe('Issue number'),
|
|
12
|
+
lockReason: z.enum(['off-topic', 'too heated', 'resolved', 'spam']).optional(),
|
|
13
|
+
unlock: z.boolean().optional().describe('If true, unlock the issue. Default is false (lock).'),
|
|
14
|
+
}),
|
|
15
|
+
execute: async ({ githubToken, owner, repo, issueNumber, lockReason, unlock = false }) => {
|
|
16
|
+
if (!githubToken) {
|
|
17
|
+
return { error: 'GitHub token is required. Connect GitHub first.' };
|
|
18
|
+
}
|
|
19
|
+
const octokit = new Octokit({ auth: githubToken });
|
|
20
|
+
try {
|
|
21
|
+
if (unlock) {
|
|
22
|
+
await octokit.rest.issues.unlock({
|
|
23
|
+
owner,
|
|
24
|
+
repo,
|
|
25
|
+
issue_number: issueNumber,
|
|
26
|
+
});
|
|
27
|
+
return { message: `Unlocked issue #${issueNumber}` };
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
await octokit.rest.issues.lock({
|
|
31
|
+
owner,
|
|
32
|
+
repo,
|
|
33
|
+
issue_number: issueNumber,
|
|
34
|
+
lock_reason: lockReason,
|
|
35
|
+
});
|
|
36
|
+
return { message: `Locked issue #${issueNumber}` };
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
return { error: `Failed to lock/unlock issue: ${error.message}` };
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=lock-issue.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const removeIssueLabel: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
issueNumber: number;
|
|
5
|
+
label: string;
|
|
6
|
+
githubToken?: string | undefined;
|
|
7
|
+
}, {
|
|
8
|
+
error: string;
|
|
9
|
+
message?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
message: string;
|
|
12
|
+
error?: undefined;
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=remove-issue-label.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 removeIssueLabel = tool({
|
|
6
|
+
description: 'Remove a label from a GitHub issue.',
|
|
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
|
+
issueNumber: z.number().describe('Issue number'),
|
|
12
|
+
label: z.string().describe('Label name'),
|
|
13
|
+
}),
|
|
14
|
+
execute: async ({ githubToken, owner, repo, issueNumber, label }) => {
|
|
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.issues.removeLabel({
|
|
21
|
+
owner,
|
|
22
|
+
repo,
|
|
23
|
+
issue_number: issueNumber,
|
|
24
|
+
name: label,
|
|
25
|
+
});
|
|
26
|
+
return { message: `Removed label ${label} from issue #${issueNumber}` };
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
return { error: `Failed to remove label: ${error.message}` };
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=remove-issue-label.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const unlockIssue: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
issue_number: number;
|
|
5
|
+
githubToken?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
error: string;
|
|
8
|
+
message?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
message: string;
|
|
11
|
+
error?: undefined;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=unlock-issue.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 unlockIssue = tool({
|
|
6
|
+
description: 'Unlock a GitHub issue. Use when the user wants to unlock an issue to allow new comments.',
|
|
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
|
+
issue_number: z.number().describe('The number that identifies the issue'),
|
|
12
|
+
}),
|
|
13
|
+
execute: async ({ githubToken, owner, repo, issue_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
|
+
await octokit.rest.issues.unlock({
|
|
20
|
+
owner,
|
|
21
|
+
repo,
|
|
22
|
+
issue_number,
|
|
23
|
+
});
|
|
24
|
+
return { message: `Successfully unlocked issue #${issue_number} in ${owner}/${repo}` };
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
return { error: `Failed to unlock issue: ${error.message}` };
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=unlock-issue.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const updateIssue: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
issueNumber: number;
|
|
5
|
+
title?: string | undefined;
|
|
6
|
+
body?: string | undefined;
|
|
7
|
+
githubToken?: string | undefined;
|
|
8
|
+
state?: "open" | "closed" | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
error: string;
|
|
11
|
+
number?: undefined;
|
|
12
|
+
title?: undefined;
|
|
13
|
+
state?: undefined;
|
|
14
|
+
html_url?: undefined;
|
|
15
|
+
} | {
|
|
16
|
+
number: number;
|
|
17
|
+
title: string;
|
|
18
|
+
state: string;
|
|
19
|
+
html_url: string;
|
|
20
|
+
error?: undefined;
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=update-issue.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const updateIssue = tool({
|
|
6
|
+
description: 'Update a GitHub issue (close, reopen, edit title/body).',
|
|
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
|
+
issueNumber: z.number().describe('Issue number'),
|
|
12
|
+
title: z.string().optional().describe('New title'),
|
|
13
|
+
body: z.string().optional().describe('New body'),
|
|
14
|
+
state: z.enum(['open', 'closed']).optional().describe('New state'),
|
|
15
|
+
}),
|
|
16
|
+
execute: async ({ githubToken, owner, repo, issueNumber, title, body, state }) => {
|
|
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.issues.update({
|
|
23
|
+
owner,
|
|
24
|
+
repo,
|
|
25
|
+
issue_number: issueNumber,
|
|
26
|
+
title,
|
|
27
|
+
body,
|
|
28
|
+
state,
|
|
29
|
+
});
|
|
30
|
+
return {
|
|
31
|
+
number: data.number,
|
|
32
|
+
title: data.title,
|
|
33
|
+
state: data.state,
|
|
34
|
+
html_url: data.html_url,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
return { error: `Failed to update issue: ${error.message}` };
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=update-issue.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const getLicense: import("ai").Tool<{
|
|
2
|
+
license: string;
|
|
3
|
+
githubToken?: string | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
error: string;
|
|
6
|
+
key?: undefined;
|
|
7
|
+
name?: undefined;
|
|
8
|
+
spdx_id?: undefined;
|
|
9
|
+
url?: undefined;
|
|
10
|
+
node_id?: undefined;
|
|
11
|
+
description?: undefined;
|
|
12
|
+
implementation?: undefined;
|
|
13
|
+
permissions?: undefined;
|
|
14
|
+
conditions?: undefined;
|
|
15
|
+
limitations?: undefined;
|
|
16
|
+
body?: undefined;
|
|
17
|
+
featured?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
key: string;
|
|
20
|
+
name: string;
|
|
21
|
+
spdx_id: string | null;
|
|
22
|
+
url: string | null;
|
|
23
|
+
node_id: string;
|
|
24
|
+
description: string;
|
|
25
|
+
implementation: string;
|
|
26
|
+
permissions: string[];
|
|
27
|
+
conditions: string[];
|
|
28
|
+
limitations: string[];
|
|
29
|
+
body: string;
|
|
30
|
+
featured: boolean;
|
|
31
|
+
error?: undefined;
|
|
32
|
+
}>;
|
|
33
|
+
//# sourceMappingURL=get-license.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const getLicense = tool({
|
|
6
|
+
description: 'Get an individual license.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
license: z.string().describe('The key of the license (e.g., mit)'),
|
|
10
|
+
}),
|
|
11
|
+
execute: async ({ githubToken, license }) => {
|
|
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.licenses.get({
|
|
18
|
+
license,
|
|
19
|
+
});
|
|
20
|
+
if (!data)
|
|
21
|
+
return { error: 'No data returned from GitHub API' };
|
|
22
|
+
return {
|
|
23
|
+
key: data.key,
|
|
24
|
+
name: data.name,
|
|
25
|
+
spdx_id: data.spdx_id,
|
|
26
|
+
url: data.url,
|
|
27
|
+
node_id: data.node_id,
|
|
28
|
+
description: data.description,
|
|
29
|
+
implementation: data.implementation,
|
|
30
|
+
permissions: data.permissions,
|
|
31
|
+
conditions: data.conditions,
|
|
32
|
+
limitations: data.limitations,
|
|
33
|
+
body: data.body,
|
|
34
|
+
featured: data.featured,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
return { error: `Failed to get license: ${error.message}` };
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=get-license.js.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const getRepoLicense: import("ai").Tool<{
|
|
2
|
+
repo: string;
|
|
3
|
+
owner: string;
|
|
4
|
+
githubToken?: string | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
error: string;
|
|
7
|
+
name?: undefined;
|
|
8
|
+
path?: undefined;
|
|
9
|
+
sha?: undefined;
|
|
10
|
+
size?: undefined;
|
|
11
|
+
url?: undefined;
|
|
12
|
+
html_url?: undefined;
|
|
13
|
+
git_url?: undefined;
|
|
14
|
+
download_url?: undefined;
|
|
15
|
+
type?: undefined;
|
|
16
|
+
content?: undefined;
|
|
17
|
+
encoding?: undefined;
|
|
18
|
+
_links?: undefined;
|
|
19
|
+
license?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
name: string;
|
|
22
|
+
path: string;
|
|
23
|
+
sha: string;
|
|
24
|
+
size: number;
|
|
25
|
+
url: string;
|
|
26
|
+
html_url: string | null;
|
|
27
|
+
git_url: string | null;
|
|
28
|
+
download_url: string | null;
|
|
29
|
+
type: string;
|
|
30
|
+
content: string;
|
|
31
|
+
encoding: string;
|
|
32
|
+
_links: {
|
|
33
|
+
git: string | null;
|
|
34
|
+
html: string | null;
|
|
35
|
+
self: string;
|
|
36
|
+
};
|
|
37
|
+
license: {
|
|
38
|
+
key: string;
|
|
39
|
+
name: string;
|
|
40
|
+
url: string | null;
|
|
41
|
+
spdx_id: string | null;
|
|
42
|
+
node_id: string;
|
|
43
|
+
html_url?: string;
|
|
44
|
+
} | null;
|
|
45
|
+
error?: undefined;
|
|
46
|
+
}>;
|
|
47
|
+
//# sourceMappingURL=get-repo-license.d.ts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { tool } from 'ai';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { Octokit } from 'octokit';
|
|
5
|
+
export const getRepoLicense = tool({
|
|
6
|
+
description: 'Get the license 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
|
+
}),
|
|
12
|
+
execute: async ({ githubToken, owner, repo }) => {
|
|
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.licenses.getForRepo({
|
|
19
|
+
owner,
|
|
20
|
+
repo,
|
|
21
|
+
});
|
|
22
|
+
if (!data)
|
|
23
|
+
return { error: 'No data returned from GitHub API' };
|
|
24
|
+
return {
|
|
25
|
+
name: data.name,
|
|
26
|
+
path: data.path,
|
|
27
|
+
sha: data.sha,
|
|
28
|
+
size: data.size,
|
|
29
|
+
url: data.url,
|
|
30
|
+
html_url: data.html_url,
|
|
31
|
+
git_url: data.git_url,
|
|
32
|
+
download_url: data.download_url,
|
|
33
|
+
type: data.type,
|
|
34
|
+
content: data.content,
|
|
35
|
+
encoding: data.encoding,
|
|
36
|
+
_links: data._links,
|
|
37
|
+
license: data.license,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
return { error: `Failed to get repo license: ${error.message}` };
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=get-repo-license.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const listLicenses: import("ai").Tool<{
|
|
2
|
+
githubToken?: string | undefined;
|
|
3
|
+
}, {
|
|
4
|
+
key: string;
|
|
5
|
+
name: string;
|
|
6
|
+
spdx_id: string | null;
|
|
7
|
+
url: string | null;
|
|
8
|
+
node_id: string;
|
|
9
|
+
}[] | {
|
|
10
|
+
error: string;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=list-licenses.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 listLicenses = tool({
|
|
6
|
+
description: 'Get all commonly used licenses.',
|
|
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.licenses.getAllCommonlyUsed();
|
|
17
|
+
if (!data)
|
|
18
|
+
return { error: 'No data returned from GitHub API' };
|
|
19
|
+
return data.map(license => ({
|
|
20
|
+
key: license.key,
|
|
21
|
+
name: license.name,
|
|
22
|
+
spdx_id: license.spdx_id,
|
|
23
|
+
url: license.url,
|
|
24
|
+
node_id: license.node_id,
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
return { error: `Failed to list licenses: ${error.message}` };
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=list-licenses.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const renderMarkdown: import("ai").Tool<{
|
|
2
|
+
text: string;
|
|
3
|
+
mode?: "markdown" | "gfm" | undefined;
|
|
4
|
+
githubToken?: string | undefined;
|
|
5
|
+
context?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
error: string;
|
|
8
|
+
html?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
html: string;
|
|
11
|
+
error?: undefined;
|
|
12
|
+
}>;
|
|
13
|
+
//# sourceMappingURL=render-markdown.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 renderMarkdown = tool({
|
|
6
|
+
description: 'Render a Markdown document.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
githubToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
9
|
+
text: z.string().describe('The Markdown text to render'),
|
|
10
|
+
mode: z.enum(['markdown', 'gfm']).optional().describe('The rendering mode'),
|
|
11
|
+
context: z.string().optional().describe('The repository context to use when rendering links in GFM mode'),
|
|
12
|
+
}),
|
|
13
|
+
execute: async ({ githubToken, text, mode, context }) => {
|
|
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.markdown.render({
|
|
20
|
+
text,
|
|
21
|
+
mode: mode ?? 'markdown',
|
|
22
|
+
context,
|
|
23
|
+
});
|
|
24
|
+
return { html: data };
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
return { error: `Failed to render markdown: ${error.message}` };
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=render-markdown.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const getOrgMembership: import("ai").Tool<{
|
|
2
|
+
username: string;
|
|
3
|
+
org: string;
|
|
4
|
+
githubToken?: string | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
error: string;
|
|
7
|
+
url?: undefined;
|
|
8
|
+
state?: undefined;
|
|
9
|
+
role?: undefined;
|
|
10
|
+
organization_url?: undefined;
|
|
11
|
+
organization?: undefined;
|
|
12
|
+
user?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
url: string;
|
|
15
|
+
state: "pending" | "active";
|
|
16
|
+
role: "admin" | "member" | "billing_manager";
|
|
17
|
+
organization_url: string;
|
|
18
|
+
organization: {
|
|
19
|
+
login: string;
|
|
20
|
+
id: number;
|
|
21
|
+
node_id: string;
|
|
22
|
+
url: string;
|
|
23
|
+
repos_url: string;
|
|
24
|
+
events_url: string;
|
|
25
|
+
hooks_url: string;
|
|
26
|
+
issues_url: string;
|
|
27
|
+
members_url: string;
|
|
28
|
+
public_members_url: string;
|
|
29
|
+
avatar_url: string;
|
|
30
|
+
description: string | null;
|
|
31
|
+
};
|
|
32
|
+
user: {
|
|
33
|
+
name?: string | null;
|
|
34
|
+
email?: string | null;
|
|
35
|
+
login: string;
|
|
36
|
+
id: number;
|
|
37
|
+
node_id: string;
|
|
38
|
+
avatar_url: string;
|
|
39
|
+
gravatar_id: string | null;
|
|
40
|
+
url: string;
|
|
41
|
+
html_url: string;
|
|
42
|
+
followers_url: string;
|
|
43
|
+
following_url: string;
|
|
44
|
+
gists_url: string;
|
|
45
|
+
starred_url: string;
|
|
46
|
+
subscriptions_url: string;
|
|
47
|
+
organizations_url: string;
|
|
48
|
+
repos_url: string;
|
|
49
|
+
events_url: string;
|
|
50
|
+
received_events_url: string;
|
|
51
|
+
type: string;
|
|
52
|
+
site_admin: boolean;
|
|
53
|
+
starred_at?: string;
|
|
54
|
+
user_view_type?: string;
|
|
55
|
+
} | null;
|
|
56
|
+
error?: undefined;
|
|
57
|
+
}>;
|
|
58
|
+
//# sourceMappingURL=get-org-membership.d.ts.map
|