@loopstack/github-module 0.2.4 → 0.3.0

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.
Files changed (61) hide show
  1. package/dist/github-oauth.provider.js +9 -12
  2. package/dist/github-oauth.provider.js.map +1 -1
  3. package/dist/github.module.js +59 -62
  4. package/dist/github.module.js.map +1 -1
  5. package/dist/index.d.ts +27 -27
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +27 -43
  8. package/dist/index.js.map +1 -1
  9. package/dist/tools/actions/github-get-workflow-run.tool.js +15 -18
  10. package/dist/tools/actions/github-get-workflow-run.tool.js.map +1 -1
  11. package/dist/tools/actions/github-list-workflow-runs.tool.js +18 -21
  12. package/dist/tools/actions/github-list-workflow-runs.tool.js.map +1 -1
  13. package/dist/tools/actions/github-trigger-workflow.tool.js +17 -20
  14. package/dist/tools/actions/github-trigger-workflow.tool.js.map +1 -1
  15. package/dist/tools/content/github-create-or-update-file.tool.js +19 -22
  16. package/dist/tools/content/github-create-or-update-file.tool.js.map +1 -1
  17. package/dist/tools/content/github-get-commit.tool.js +15 -18
  18. package/dist/tools/content/github-get-commit.tool.js.map +1 -1
  19. package/dist/tools/content/github-get-file-content.tool.js +16 -19
  20. package/dist/tools/content/github-get-file-content.tool.js.map +1 -1
  21. package/dist/tools/content/github-list-directory.tool.js +16 -19
  22. package/dist/tools/content/github-list-directory.tool.js.map +1 -1
  23. package/dist/tools/issues/github-create-issue-comment.tool.js +16 -19
  24. package/dist/tools/issues/github-create-issue-comment.tool.js.map +1 -1
  25. package/dist/tools/issues/github-create-issue.tool.js +18 -21
  26. package/dist/tools/issues/github-create-issue.tool.js.map +1 -1
  27. package/dist/tools/issues/github-get-issue.tool.js +15 -18
  28. package/dist/tools/issues/github-get-issue.tool.js.map +1 -1
  29. package/dist/tools/issues/github-list-issues.tool.js +19 -22
  30. package/dist/tools/issues/github-list-issues.tool.js.map +1 -1
  31. package/dist/tools/pull-requests/github-create-pull-request.tool.js +19 -22
  32. package/dist/tools/pull-requests/github-create-pull-request.tool.js.map +1 -1
  33. package/dist/tools/pull-requests/github-get-pull-request.tool.js +15 -18
  34. package/dist/tools/pull-requests/github-get-pull-request.tool.js.map +1 -1
  35. package/dist/tools/pull-requests/github-list-pr-reviews.tool.js +15 -18
  36. package/dist/tools/pull-requests/github-list-pr-reviews.tool.js.map +1 -1
  37. package/dist/tools/pull-requests/github-list-pull-requests.tool.js +18 -21
  38. package/dist/tools/pull-requests/github-list-pull-requests.tool.js.map +1 -1
  39. package/dist/tools/pull-requests/github-merge-pull-request.tool.js +18 -21
  40. package/dist/tools/pull-requests/github-merge-pull-request.tool.js.map +1 -1
  41. package/dist/tools/repos/github-create-repo.tool.js +16 -19
  42. package/dist/tools/repos/github-create-repo.tool.js.map +1 -1
  43. package/dist/tools/repos/github-get-repo.tool.js +14 -17
  44. package/dist/tools/repos/github-get-repo.tool.js.map +1 -1
  45. package/dist/tools/repos/github-list-branches.tool.js +15 -18
  46. package/dist/tools/repos/github-list-branches.tool.js.map +1 -1
  47. package/dist/tools/repos/github-list-repos.tool.js +16 -19
  48. package/dist/tools/repos/github-list-repos.tool.js.map +1 -1
  49. package/dist/tools/search/github-search-code.tool.js +15 -18
  50. package/dist/tools/search/github-search-code.tool.js.map +1 -1
  51. package/dist/tools/search/github-search-issues.tool.js +16 -19
  52. package/dist/tools/search/github-search-issues.tool.js.map +1 -1
  53. package/dist/tools/search/github-search-repos.tool.js +16 -19
  54. package/dist/tools/search/github-search-repos.tool.js.map +1 -1
  55. package/dist/tools/users/github-get-authenticated-user.tool.d.ts +1 -1
  56. package/dist/tools/users/github-get-authenticated-user.tool.d.ts.map +1 -1
  57. package/dist/tools/users/github-get-authenticated-user.tool.js +12 -15
  58. package/dist/tools/users/github-get-authenticated-user.tool.js.map +1 -1
  59. package/dist/tools/users/github-list-user-orgs.tool.js +13 -16
  60. package/dist/tools/users/github-list-user-orgs.tool.js.map +1 -1
  61. package/package.json +8 -26
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -9,15 +8,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
10
  var GitHubOAuthProvider_1;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.GitHubOAuthProvider = void 0;
14
- const common_1 = require("@nestjs/common");
15
- const config_1 = require("@nestjs/config");
16
- const oauth_module_1 = require("@loopstack/oauth-module");
11
+ import { Injectable, Logger } from '@nestjs/common';
12
+ import { ConfigService } from '@nestjs/config';
13
+ import { OAuthProviderRegistry } from '@loopstack/oauth-module';
17
14
  let GitHubOAuthProvider = GitHubOAuthProvider_1 = class GitHubOAuthProvider {
18
15
  configService;
19
16
  providerRegistry;
20
- logger = new common_1.Logger(GitHubOAuthProvider_1.name);
17
+ logger = new Logger(GitHubOAuthProvider_1.name);
21
18
  providerId = 'github';
22
19
  defaultScopes = ['repo', 'user', 'workflow', 'read:org'];
23
20
  constructor(configService, providerRegistry) {
@@ -82,10 +79,10 @@ let GitHubOAuthProvider = GitHubOAuthProvider_1 = class GitHubOAuthProvider {
82
79
  throw new Error('GitHub tokens do not expire and cannot be refreshed.');
83
80
  }
84
81
  };
85
- exports.GitHubOAuthProvider = GitHubOAuthProvider;
86
- exports.GitHubOAuthProvider = GitHubOAuthProvider = GitHubOAuthProvider_1 = __decorate([
87
- (0, common_1.Injectable)(),
88
- __metadata("design:paramtypes", [config_1.ConfigService,
89
- oauth_module_1.OAuthProviderRegistry])
82
+ GitHubOAuthProvider = GitHubOAuthProvider_1 = __decorate([
83
+ Injectable(),
84
+ __metadata("design:paramtypes", [ConfigService,
85
+ OAuthProviderRegistry])
90
86
  ], GitHubOAuthProvider);
87
+ export { GitHubOAuthProvider };
91
88
  //# sourceMappingURL=github-oauth.provider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"github-oauth.provider.js","sourceRoot":"","sources":["../src/github-oauth.provider.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAkE;AAClE,2CAA+C;AAC/C,0DAAuG;AAGhG,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAOX;IACA;IAPF,MAAM,GAAG,IAAI,eAAM,CAAC,qBAAmB,CAAC,IAAI,CAAC,CAAC;IAEtD,UAAU,GAAG,QAAQ,CAAC;IACtB,aAAa,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IAElE,YACmB,aAA4B,EAC5B,gBAAuC;QADvC,kBAAa,GAAb,aAAa,CAAe;QAC5B,qBAAgB,GAAhB,gBAAgB,CAAuB;IACvD,CAAC;IAEJ,YAAY;QACV,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;IAED,IAAY,QAAQ;QAClB,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,kBAAkB,CAAC,CAAC;QAC9D,IAAI,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QAC/D,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,IAAY,YAAY;QACtB,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAS,sBAAsB,CAAC,CAAC;QACtE,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;QACvE,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAY,WAAW;QACrB,OAAO,IAAI,CAAC,aAAa,CAA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,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;QAC1E,CAAC;QAED,MAAM,MAAM,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAIpC,CAAC;QAEF,OAAO;YACL,WAAW,EAAE,MAAM,CAAC,YAAY;YAChC,SAAS,EAAE,SAAS;YACpB,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC;IACJ,CAAC;IAED,YAAY;QACV,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,CAAC;CACF,CAAA;AA/EY,mBAAmB;IAD/B,UAAU,EAAE;qCAQuB,aAAa;QACV,qBAAqB;GAR/C,mBAAmB,CA+E/B"}
@@ -1,75 +1,72 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
6
  };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.GitHubModule = void 0;
10
- const common_1 = require("@nestjs/common");
11
- const oauth_module_1 = require("@loopstack/oauth-module");
12
- const github_oauth_provider_1 = require("./github-oauth.provider");
13
- const github_get_workflow_run_tool_1 = require("./tools/actions/github-get-workflow-run.tool");
14
- const github_list_workflow_runs_tool_1 = require("./tools/actions/github-list-workflow-runs.tool");
15
- const github_trigger_workflow_tool_1 = require("./tools/actions/github-trigger-workflow.tool");
16
- const github_create_or_update_file_tool_1 = require("./tools/content/github-create-or-update-file.tool");
17
- const github_get_commit_tool_1 = require("./tools/content/github-get-commit.tool");
18
- const github_get_file_content_tool_1 = require("./tools/content/github-get-file-content.tool");
19
- const github_list_directory_tool_1 = require("./tools/content/github-list-directory.tool");
20
- const github_create_issue_comment_tool_1 = require("./tools/issues/github-create-issue-comment.tool");
21
- const github_create_issue_tool_1 = require("./tools/issues/github-create-issue.tool");
22
- const github_get_issue_tool_1 = require("./tools/issues/github-get-issue.tool");
23
- const github_list_issues_tool_1 = require("./tools/issues/github-list-issues.tool");
24
- const github_create_pull_request_tool_1 = require("./tools/pull-requests/github-create-pull-request.tool");
25
- const github_get_pull_request_tool_1 = require("./tools/pull-requests/github-get-pull-request.tool");
26
- const github_list_pr_reviews_tool_1 = require("./tools/pull-requests/github-list-pr-reviews.tool");
27
- const github_list_pull_requests_tool_1 = require("./tools/pull-requests/github-list-pull-requests.tool");
28
- const github_merge_pull_request_tool_1 = require("./tools/pull-requests/github-merge-pull-request.tool");
29
- const github_create_repo_tool_1 = require("./tools/repos/github-create-repo.tool");
30
- const github_get_repo_tool_1 = require("./tools/repos/github-get-repo.tool");
31
- const github_list_branches_tool_1 = require("./tools/repos/github-list-branches.tool");
32
- const github_list_repos_tool_1 = require("./tools/repos/github-list-repos.tool");
33
- const github_search_code_tool_1 = require("./tools/search/github-search-code.tool");
34
- const github_search_issues_tool_1 = require("./tools/search/github-search-issues.tool");
35
- const github_search_repos_tool_1 = require("./tools/search/github-search-repos.tool");
36
- const github_get_authenticated_user_tool_1 = require("./tools/users/github-get-authenticated-user.tool");
37
- const github_list_user_orgs_tool_1 = require("./tools/users/github-list-user-orgs.tool");
7
+ import { Module } from '@nestjs/common';
8
+ import { OAuthModule } from '@loopstack/oauth-module';
9
+ import { GitHubOAuthProvider } from './github-oauth.provider.js';
10
+ import { GitHubGetWorkflowRunTool } from './tools/actions/github-get-workflow-run.tool.js';
11
+ import { GitHubListWorkflowRunsTool } from './tools/actions/github-list-workflow-runs.tool.js';
12
+ import { GitHubTriggerWorkflowTool } from './tools/actions/github-trigger-workflow.tool.js';
13
+ import { GitHubCreateOrUpdateFileTool } from './tools/content/github-create-or-update-file.tool.js';
14
+ import { GitHubGetCommitTool } from './tools/content/github-get-commit.tool.js';
15
+ import { GitHubGetFileContentTool } from './tools/content/github-get-file-content.tool.js';
16
+ import { GitHubListDirectoryTool } from './tools/content/github-list-directory.tool.js';
17
+ import { GitHubCreateIssueCommentTool } from './tools/issues/github-create-issue-comment.tool.js';
18
+ import { GitHubCreateIssueTool } from './tools/issues/github-create-issue.tool.js';
19
+ import { GitHubGetIssueTool } from './tools/issues/github-get-issue.tool.js';
20
+ import { GitHubListIssuesTool } from './tools/issues/github-list-issues.tool.js';
21
+ import { GitHubCreatePullRequestTool } from './tools/pull-requests/github-create-pull-request.tool.js';
22
+ import { GitHubGetPullRequestTool } from './tools/pull-requests/github-get-pull-request.tool.js';
23
+ import { GitHubListPrReviewsTool } from './tools/pull-requests/github-list-pr-reviews.tool.js';
24
+ import { GitHubListPullRequestsTool } from './tools/pull-requests/github-list-pull-requests.tool.js';
25
+ import { GitHubMergePullRequestTool } from './tools/pull-requests/github-merge-pull-request.tool.js';
26
+ import { GitHubCreateRepoTool } from './tools/repos/github-create-repo.tool.js';
27
+ import { GitHubGetRepoTool } from './tools/repos/github-get-repo.tool.js';
28
+ import { GitHubListBranchesTool } from './tools/repos/github-list-branches.tool.js';
29
+ import { GitHubListReposTool } from './tools/repos/github-list-repos.tool.js';
30
+ import { GitHubSearchCodeTool } from './tools/search/github-search-code.tool.js';
31
+ import { GitHubSearchIssuesTool } from './tools/search/github-search-issues.tool.js';
32
+ import { GitHubSearchReposTool } from './tools/search/github-search-repos.tool.js';
33
+ import { GitHubGetAuthenticatedUserTool } from './tools/users/github-get-authenticated-user.tool.js';
34
+ import { GitHubListUserOrgsTool } from './tools/users/github-list-user-orgs.tool.js';
38
35
  const tools = [
39
- github_list_repos_tool_1.GitHubListReposTool,
40
- github_get_repo_tool_1.GitHubGetRepoTool,
41
- github_create_repo_tool_1.GitHubCreateRepoTool,
42
- github_list_branches_tool_1.GitHubListBranchesTool,
43
- github_list_issues_tool_1.GitHubListIssuesTool,
44
- github_get_issue_tool_1.GitHubGetIssueTool,
45
- github_create_issue_tool_1.GitHubCreateIssueTool,
46
- github_create_issue_comment_tool_1.GitHubCreateIssueCommentTool,
47
- github_list_pull_requests_tool_1.GitHubListPullRequestsTool,
48
- github_get_pull_request_tool_1.GitHubGetPullRequestTool,
49
- github_create_pull_request_tool_1.GitHubCreatePullRequestTool,
50
- github_merge_pull_request_tool_1.GitHubMergePullRequestTool,
51
- github_list_pr_reviews_tool_1.GitHubListPrReviewsTool,
52
- github_get_file_content_tool_1.GitHubGetFileContentTool,
53
- github_create_or_update_file_tool_1.GitHubCreateOrUpdateFileTool,
54
- github_list_directory_tool_1.GitHubListDirectoryTool,
55
- github_get_commit_tool_1.GitHubGetCommitTool,
56
- github_list_workflow_runs_tool_1.GitHubListWorkflowRunsTool,
57
- github_trigger_workflow_tool_1.GitHubTriggerWorkflowTool,
58
- github_get_workflow_run_tool_1.GitHubGetWorkflowRunTool,
59
- github_search_code_tool_1.GitHubSearchCodeTool,
60
- github_search_repos_tool_1.GitHubSearchReposTool,
61
- github_search_issues_tool_1.GitHubSearchIssuesTool,
62
- github_get_authenticated_user_tool_1.GitHubGetAuthenticatedUserTool,
63
- github_list_user_orgs_tool_1.GitHubListUserOrgsTool,
36
+ GitHubListReposTool,
37
+ GitHubGetRepoTool,
38
+ GitHubCreateRepoTool,
39
+ GitHubListBranchesTool,
40
+ GitHubListIssuesTool,
41
+ GitHubGetIssueTool,
42
+ GitHubCreateIssueTool,
43
+ GitHubCreateIssueCommentTool,
44
+ GitHubListPullRequestsTool,
45
+ GitHubGetPullRequestTool,
46
+ GitHubCreatePullRequestTool,
47
+ GitHubMergePullRequestTool,
48
+ GitHubListPrReviewsTool,
49
+ GitHubGetFileContentTool,
50
+ GitHubCreateOrUpdateFileTool,
51
+ GitHubListDirectoryTool,
52
+ GitHubGetCommitTool,
53
+ GitHubListWorkflowRunsTool,
54
+ GitHubTriggerWorkflowTool,
55
+ GitHubGetWorkflowRunTool,
56
+ GitHubSearchCodeTool,
57
+ GitHubSearchReposTool,
58
+ GitHubSearchIssuesTool,
59
+ GitHubGetAuthenticatedUserTool,
60
+ GitHubListUserOrgsTool,
64
61
  ];
65
62
  let GitHubModule = class GitHubModule {
66
63
  };
67
- exports.GitHubModule = GitHubModule;
68
- exports.GitHubModule = GitHubModule = __decorate([
69
- (0, common_1.Module)({
70
- imports: [oauth_module_1.OAuthModule],
71
- providers: [github_oauth_provider_1.GitHubOAuthProvider, ...tools],
72
- exports: [github_oauth_provider_1.GitHubOAuthProvider, ...tools],
64
+ GitHubModule = __decorate([
65
+ Module({
66
+ imports: [OAuthModule],
67
+ providers: [GitHubOAuthProvider, ...tools],
68
+ exports: [GitHubOAuthProvider, ...tools],
73
69
  })
74
70
  ], GitHubModule);
71
+ export { GitHubModule };
75
72
  //# sourceMappingURL=github.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"github.module.js","sourceRoot":"","sources":["../src/github.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,0DAAsD;AACtD,mEAA8D;AAC9D,+FAAwF;AACxF,mGAA4F;AAC5F,+FAAyF;AACzF,yGAAiG;AACjG,mFAA6E;AAC7E,+FAAwF;AACxF,2FAAqF;AACrF,sGAA+F;AAC/F,sFAAgF;AAChF,gFAA0E;AAC1E,oFAA8E;AAC9E,2GAAoG;AACpG,qGAA8F;AAC9F,mGAA4F;AAC5F,yGAAkG;AAClG,yGAAkG;AAClG,mFAA6E;AAC7E,6EAAuE;AACvE,uFAAiF;AACjF,iFAA2E;AAC3E,oFAA8E;AAC9E,wFAAkF;AAClF,sFAAgF;AAChF,yGAAkG;AAClG,yFAAkF;AAElF,MAAM,KAAK,GAAG;IACZ,4CAAmB;IACnB,wCAAiB;IACjB,8CAAoB;IACpB,kDAAsB;IACtB,8CAAoB;IACpB,0CAAkB;IAClB,gDAAqB;IACrB,+DAA4B;IAC5B,2DAA0B;IAC1B,uDAAwB;IACxB,6DAA2B;IAC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AAOK,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,YAAY;IALxB,MAAM,CAAC;QACN,OAAO,EAAE,CAAC,WAAW,CAAC;QACtB,SAAS,EAAE,CAAC,mBAAmB,EAAE,GAAG,KAAK,CAAC;QAC1C,OAAO,EAAE,CAAC,mBAAmB,EAAE,GAAG,KAAK,CAAC;KACzC,CAAC;GACW,YAAY,CAAG"}
package/dist/index.d.ts CHANGED
@@ -1,28 +1,28 @@
1
- export * from './github.module';
2
- export * from './github-oauth.provider';
3
- export * from './tools/repos/github-list-repos.tool';
4
- export * from './tools/repos/github-get-repo.tool';
5
- export * from './tools/repos/github-create-repo.tool';
6
- export * from './tools/repos/github-list-branches.tool';
7
- export * from './tools/issues/github-list-issues.tool';
8
- export * from './tools/issues/github-get-issue.tool';
9
- export * from './tools/issues/github-create-issue.tool';
10
- export * from './tools/issues/github-create-issue-comment.tool';
11
- export * from './tools/pull-requests/github-list-pull-requests.tool';
12
- export * from './tools/pull-requests/github-get-pull-request.tool';
13
- export * from './tools/pull-requests/github-create-pull-request.tool';
14
- export * from './tools/pull-requests/github-merge-pull-request.tool';
15
- export * from './tools/pull-requests/github-list-pr-reviews.tool';
16
- export * from './tools/content/github-get-file-content.tool';
17
- export * from './tools/content/github-create-or-update-file.tool';
18
- export * from './tools/content/github-list-directory.tool';
19
- export * from './tools/content/github-get-commit.tool';
20
- export * from './tools/actions/github-list-workflow-runs.tool';
21
- export * from './tools/actions/github-trigger-workflow.tool';
22
- export * from './tools/actions/github-get-workflow-run.tool';
23
- export * from './tools/search/github-search-code.tool';
24
- export * from './tools/search/github-search-repos.tool';
25
- export * from './tools/search/github-search-issues.tool';
26
- export * from './tools/users/github-get-authenticated-user.tool';
27
- export * from './tools/users/github-list-user-orgs.tool';
1
+ export * from './github.module.js';
2
+ export * from './github-oauth.provider.js';
3
+ export * from './tools/repos/github-list-repos.tool.js';
4
+ export * from './tools/repos/github-get-repo.tool.js';
5
+ export * from './tools/repos/github-create-repo.tool.js';
6
+ export * from './tools/repos/github-list-branches.tool.js';
7
+ export * from './tools/issues/github-list-issues.tool.js';
8
+ export * from './tools/issues/github-get-issue.tool.js';
9
+ export * from './tools/issues/github-create-issue.tool.js';
10
+ export * from './tools/issues/github-create-issue-comment.tool.js';
11
+ export * from './tools/pull-requests/github-list-pull-requests.tool.js';
12
+ export * from './tools/pull-requests/github-get-pull-request.tool.js';
13
+ export * from './tools/pull-requests/github-create-pull-request.tool.js';
14
+ export * from './tools/pull-requests/github-merge-pull-request.tool.js';
15
+ export * from './tools/pull-requests/github-list-pr-reviews.tool.js';
16
+ export * from './tools/content/github-get-file-content.tool.js';
17
+ export * from './tools/content/github-create-or-update-file.tool.js';
18
+ export * from './tools/content/github-list-directory.tool.js';
19
+ export * from './tools/content/github-get-commit.tool.js';
20
+ export * from './tools/actions/github-list-workflow-runs.tool.js';
21
+ export * from './tools/actions/github-trigger-workflow.tool.js';
22
+ export * from './tools/actions/github-get-workflow-run.tool.js';
23
+ export * from './tools/search/github-search-code.tool.js';
24
+ export * from './tools/search/github-search-repos.tool.js';
25
+ export * from './tools/search/github-search-issues.tool.js';
26
+ export * from './tools/users/github-get-authenticated-user.tool.js';
27
+ export * from './tools/users/github-list-user-orgs.tool.js';
28
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sDAAsD,CAAC;AACrE,cAAc,oDAAoD,CAAC;AACnE,cAAc,uDAAuD,CAAC;AACtE,cAAc,sDAAsD,CAAC;AACrE,cAAc,mDAAmD,CAAC;AAClE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mDAAmD,CAAC;AAClE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,kDAAkD,CAAC;AACjE,cAAc,0CAA0C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oDAAoD,CAAC;AACnE,cAAc,yDAAyD,CAAC;AACxE,cAAc,uDAAuD,CAAC;AACtE,cAAc,0DAA0D,CAAC;AACzE,cAAc,yDAAyD,CAAC;AACxE,cAAc,sDAAsD,CAAC;AACrE,cAAc,iDAAiD,CAAC;AAChE,cAAc,sDAAsD,CAAC;AACrE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qDAAqD,CAAC;AACpE,cAAc,6CAA6C,CAAC"}
package/dist/index.js CHANGED
@@ -1,44 +1,28 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./github.module"), exports);
18
- __exportStar(require("./github-oauth.provider"), exports);
19
- __exportStar(require("./tools/repos/github-list-repos.tool"), exports);
20
- __exportStar(require("./tools/repos/github-get-repo.tool"), exports);
21
- __exportStar(require("./tools/repos/github-create-repo.tool"), exports);
22
- __exportStar(require("./tools/repos/github-list-branches.tool"), exports);
23
- __exportStar(require("./tools/issues/github-list-issues.tool"), exports);
24
- __exportStar(require("./tools/issues/github-get-issue.tool"), exports);
25
- __exportStar(require("./tools/issues/github-create-issue.tool"), exports);
26
- __exportStar(require("./tools/issues/github-create-issue-comment.tool"), exports);
27
- __exportStar(require("./tools/pull-requests/github-list-pull-requests.tool"), exports);
28
- __exportStar(require("./tools/pull-requests/github-get-pull-request.tool"), exports);
29
- __exportStar(require("./tools/pull-requests/github-create-pull-request.tool"), exports);
30
- __exportStar(require("./tools/pull-requests/github-merge-pull-request.tool"), exports);
31
- __exportStar(require("./tools/pull-requests/github-list-pr-reviews.tool"), exports);
32
- __exportStar(require("./tools/content/github-get-file-content.tool"), exports);
33
- __exportStar(require("./tools/content/github-create-or-update-file.tool"), exports);
34
- __exportStar(require("./tools/content/github-list-directory.tool"), exports);
35
- __exportStar(require("./tools/content/github-get-commit.tool"), exports);
36
- __exportStar(require("./tools/actions/github-list-workflow-runs.tool"), exports);
37
- __exportStar(require("./tools/actions/github-trigger-workflow.tool"), exports);
38
- __exportStar(require("./tools/actions/github-get-workflow-run.tool"), exports);
39
- __exportStar(require("./tools/search/github-search-code.tool"), exports);
40
- __exportStar(require("./tools/search/github-search-repos.tool"), exports);
41
- __exportStar(require("./tools/search/github-search-issues.tool"), exports);
42
- __exportStar(require("./tools/users/github-get-authenticated-user.tool"), exports);
43
- __exportStar(require("./tools/users/github-list-user-orgs.tool"), exports);
1
+ export * from './github.module.js';
2
+ export * from './github-oauth.provider.js';
3
+ export * from './tools/repos/github-list-repos.tool.js';
4
+ export * from './tools/repos/github-get-repo.tool.js';
5
+ export * from './tools/repos/github-create-repo.tool.js';
6
+ export * from './tools/repos/github-list-branches.tool.js';
7
+ export * from './tools/issues/github-list-issues.tool.js';
8
+ export * from './tools/issues/github-get-issue.tool.js';
9
+ export * from './tools/issues/github-create-issue.tool.js';
10
+ export * from './tools/issues/github-create-issue-comment.tool.js';
11
+ export * from './tools/pull-requests/github-list-pull-requests.tool.js';
12
+ export * from './tools/pull-requests/github-get-pull-request.tool.js';
13
+ export * from './tools/pull-requests/github-create-pull-request.tool.js';
14
+ export * from './tools/pull-requests/github-merge-pull-request.tool.js';
15
+ export * from './tools/pull-requests/github-list-pr-reviews.tool.js';
16
+ export * from './tools/content/github-get-file-content.tool.js';
17
+ export * from './tools/content/github-create-or-update-file.tool.js';
18
+ export * from './tools/content/github-list-directory.tool.js';
19
+ export * from './tools/content/github-get-commit.tool.js';
20
+ export * from './tools/actions/github-list-workflow-runs.tool.js';
21
+ export * from './tools/actions/github-trigger-workflow.tool.js';
22
+ export * from './tools/actions/github-get-workflow-run.tool.js';
23
+ export * from './tools/search/github-search-code.tool.js';
24
+ export * from './tools/search/github-search-repos.tool.js';
25
+ export * from './tools/search/github-search-issues.tool.js';
26
+ export * from './tools/users/github-get-authenticated-user.tool.js';
27
+ export * from './tools/users/github-list-user-orgs.tool.js';
44
28
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,0DAAwC;AACxC,uEAAqD;AACrD,qEAAmD;AACnD,wEAAsD;AACtD,0EAAwD;AACxD,yEAAuD;AACvD,uEAAqD;AACrD,0EAAwD;AACxD,kFAAgE;AAChE,uFAAqE;AACrE,qFAAmE;AACnE,wFAAsE;AACtE,uFAAqE;AACrE,oFAAkE;AAClE,+EAA6D;AAC7D,oFAAkE;AAClE,6EAA2D;AAC3D,yEAAuD;AACvD,iFAA+D;AAC/D,+EAA6D;AAC7D,+EAA6D;AAC7D,yEAAuD;AACvD,0EAAwD;AACxD,2EAAyD;AACzD,mFAAiE;AACjE,2EAAyD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,oDAAoD,CAAC;AACnE,cAAc,yDAAyD,CAAC;AACxE,cAAc,uDAAuD,CAAC;AACtE,cAAc,0DAA0D,CAAC;AACzE,cAAc,yDAAyD,CAAC;AACxE,cAAc,sDAAsD,CAAC;AACrE,cAAc,iDAAiD,CAAC;AAChE,cAAc,sDAAsD,CAAC;AACrE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qDAAqD,CAAC;AACpE,cAAc,6CAA6C,CAAC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -9,21 +8,19 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
10
  var GitHubGetWorkflowRunTool_1;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.GitHubGetWorkflowRunTool = void 0;
14
- const common_1 = require("@nestjs/common");
15
- const zod_1 = require("zod");
16
- const common_2 = require("@loopstack/common");
17
- const oauth_module_1 = require("@loopstack/oauth-module");
18
- const inputSchema = zod_1.z
11
+ import { Inject, Logger } from '@nestjs/common';
12
+ import { z } from 'zod';
13
+ import { BaseTool, Tool } from '@loopstack/common';
14
+ import { OAuthTokenStore } from '@loopstack/oauth-module';
15
+ const inputSchema = z
19
16
  .object({
20
- owner: zod_1.z.string(),
21
- repo: zod_1.z.string(),
22
- runId: zod_1.z.number(),
17
+ owner: z.string(),
18
+ repo: z.string(),
19
+ runId: z.number(),
23
20
  })
24
21
  .strict();
25
- let GitHubGetWorkflowRunTool = GitHubGetWorkflowRunTool_1 = class GitHubGetWorkflowRunTool extends common_2.BaseTool {
26
- logger = new common_1.Logger(GitHubGetWorkflowRunTool_1.name);
22
+ let GitHubGetWorkflowRunTool = GitHubGetWorkflowRunTool_1 = class GitHubGetWorkflowRunTool extends BaseTool {
23
+ logger = new Logger(GitHubGetWorkflowRunTool_1.name);
27
24
  tokenStore;
28
25
  async call(args) {
29
26
  const accessToken = await this.tokenStore.getValidAccessToken(this.ctx.context.userId, 'github');
@@ -85,17 +82,17 @@ let GitHubGetWorkflowRunTool = GitHubGetWorkflowRunTool_1 = class GitHubGetWorkf
85
82
  };
86
83
  }
87
84
  };
88
- exports.GitHubGetWorkflowRunTool = GitHubGetWorkflowRunTool;
89
85
  __decorate([
90
- (0, common_1.Inject)(),
91
- __metadata("design:type", oauth_module_1.OAuthTokenStore)
86
+ Inject(),
87
+ __metadata("design:type", OAuthTokenStore)
92
88
  ], GitHubGetWorkflowRunTool.prototype, "tokenStore", void 0);
93
- exports.GitHubGetWorkflowRunTool = GitHubGetWorkflowRunTool = GitHubGetWorkflowRunTool_1 = __decorate([
94
- (0, common_2.Tool)({
89
+ GitHubGetWorkflowRunTool = GitHubGetWorkflowRunTool_1 = __decorate([
90
+ Tool({
95
91
  uiConfig: {
96
92
  description: 'Gets detailed information about a specific GitHub Actions workflow run. Returns { error: "unauthorized" } if no valid token is available.',
97
93
  },
98
94
  schema: inputSchema,
99
95
  })
100
96
  ], GitHubGetWorkflowRunTool);
97
+ export { GitHubGetWorkflowRunTool };
101
98
  //# sourceMappingURL=github-get-workflow-run.tool.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"github-get-workflow-run.tool.js","sourceRoot":"","sources":["../../../src/tools/actions/github-get-workflow-run.tool.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAgD;AAChD,6BAAwB;AACxB,8CAA+D;AAC/D,0DAA0D;AAE1D,MAAM,WAAW,GAAG,OAAC;KAClB,MAAM,CAAC;IACN,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACD,MAAM,EAAE,CAAC;AAWL,IAAM,wBAAwB,gCAA9B,MAAM,wBAAyB,SAAQ,iBAAQ;IACnC,MAAM,GAAG,IAAI,eAAM,CAAC,0BAAwB,CAAC,IAAI,CAAC,CAAC;IAG5D,UAAU,CAAkB;IAEpC,KAAK,CAAC,I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J,KAAK,EAAE,WAAW;oBAClB,OAAO,EAAE,qBAAqB,QAAQ,CAAC,UAAU,EAAE;iBACpD;aACF,CAAC;QACJ,CAAC;QAED,MAAM,GAAG,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAejC,CAAC;QAEF,OAAO;YACL,IAAI,EAAE;gBACJ,GAAG,EAAE;oBACH,EAAE,EAAE,GAAG,CAAC,EAAE;oBACV,IAAI,EAAE,GAAG,CAAC,IAAI;oBACd,MAAM,EAAE,GAAG,CAAC,MAAM;oBAClB,UAAU,EAAE,GAAG,CAAC,UAAU;oBAC1B,UAAU,EAAE,GAAG,CAAC,WAAW;oBAC3B,OAAO,EAAE,GAAG,CAAC,QAAQ;oBACrB,KAAK,EAAE,GAAG,CAAC,KAAK;oBAChB,UAAU,EAAE,GAAG,CAAC,WAAW;oBAC3B,SAAS,EAAE,GAAG,CAAC,UAAU;oBACzB,UAAU,EAAE,GAAG,CAAC,WAAW;oBAC3B,SAAS,EAAE,GAAG,CAAC,UAAU;oBACzB,SAAS,EAAE,GAAG,CAAC,UAAU;oBACzB,YAAY,EAAE,GAAG,CAAC,cAAc;oBAChC,OAAO,EAAE,GAAG,CAAC,QAAQ;iBACtB;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAtFY,4DAAwB;AAI3B;IADP,IAAA,eAAM,GAAE;8BACW,8BAAe;4DAAC;mCAJzB,wBAAwB;IAPpC,IAAA,aAAI,EAAC;QACJ,QAAQ,EAAE;YACR,WAAW,EACT,2IAA2I;SAC9I;QACD,MAAM,EAAE,WAAW;KACpB,CAAC;GACW,wBAAwB,CAsFpC"}
1
+ {"version":3,"file":"github-get-workflow-run.tool.js","sourceRoot":"","sources":["../../../src/tools/actions/github-get-workflow-run.tool.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC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AAC,QAAQ;iBACtB;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAlFS;IADP,MAAM,EAAE;8BACW,eAAe;4DAAC;AAJzB,wBAAwB;IAPpC,IAAI,CAAC;QACJ,QAAQ,EAAE;YACR,WAAW,EACT,2IAA2I;SAC9I;QACD,MAAM,EAAE,WAAW;KACpB,CAAC;GACW,wBAAwB,CAsFpC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -9,18 +8,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
10
  var GitHubListWorkflowRunsTool_1;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.GitHubListWorkflowRunsTool = void 0;
14
- const common_1 = require("@nestjs/common");
15
- const zod_1 = require("zod");
16
- const common_2 = require("@loopstack/common");
17
- const oauth_module_1 = require("@loopstack/oauth-module");
18
- const inputSchema = zod_1.z
11
+ import { Inject, Logger } from '@nestjs/common';
12
+ import { z } from 'zod';
13
+ import { BaseTool, Tool } from '@loopstack/common';
14
+ import { OAuthTokenStore } from '@loopstack/oauth-module';
15
+ const inputSchema = z
19
16
  .object({
20
- owner: zod_1.z.string(),
21
- repo: zod_1.z.string(),
22
- branch: zod_1.z.string().optional(),
23
- status: zod_1.z
17
+ owner: z.string(),
18
+ repo: z.string(),
19
+ branch: z.string().optional(),
20
+ status: z
24
21
  .enum([
25
22
  'completed',
26
23
  'action_required',
@@ -38,12 +35,12 @@ const inputSchema = zod_1.z
38
35
  'pending',
39
36
  ])
40
37
  .optional(),
41
- perPage: zod_1.z.number().default(30),
42
- page: zod_1.z.number().default(1),
38
+ perPage: z.number().default(30),
39
+ page: z.number().default(1),
43
40
  })
44
41
  .strict();
45
- let GitHubListWorkflowRunsTool = GitHubListWorkflowRunsTool_1 = class GitHubListWorkflowRunsTool extends common_2.BaseTool {
46
- logger = new common_1.Logger(GitHubListWorkflowRunsTool_1.name);
42
+ let GitHubListWorkflowRunsTool = GitHubListWorkflowRunsTool_1 = class GitHubListWorkflowRunsTool extends BaseTool {
43
+ logger = new Logger(GitHubListWorkflowRunsTool_1.name);
47
44
  tokenStore;
48
45
  async call(args) {
49
46
  const accessToken = await this.tokenStore.getValidAccessToken(this.ctx.context.userId, 'github');
@@ -108,17 +105,17 @@ let GitHubListWorkflowRunsTool = GitHubListWorkflowRunsTool_1 = class GitHubList
108
105
  };
109
106
  }
110
107
  };
111
- exports.GitHubListWorkflowRunsTool = GitHubListWorkflowRunsTool;
112
108
  __decorate([
113
- (0, common_1.Inject)(),
114
- __metadata("design:type", oauth_module_1.OAuthTokenStore)
109
+ Inject(),
110
+ __metadata("design:type", OAuthTokenStore)
115
111
  ], GitHubListWorkflowRunsTool.prototype, "tokenStore", void 0);
116
- exports.GitHubListWorkflowRunsTool = GitHubListWorkflowRunsTool = GitHubListWorkflowRunsTool_1 = __decorate([
117
- (0, common_2.Tool)({
112
+ GitHubListWorkflowRunsTool = GitHubListWorkflowRunsTool_1 = __decorate([
113
+ Tool({
118
114
  uiConfig: {
119
115
  description: 'Lists workflow runs for a GitHub repository. Returns { error: "unauthorized" } if no valid token is available.',
120
116
  },
121
117
  schema: inputSchema,
122
118
  })
123
119
  ], GitHubListWorkflowRunsTool);
120
+ export { GitHubListWorkflowRunsTool };
124
121
  //# sourceMappingURL=github-list-workflow-runs.tool.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"github-list-workflow-runs.tool.js","sourceRoot":"","sources":["../../../src/tools/actions/github-list-workflow-runs.tool.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAgD;AAChD,6BAAwB;AACxB,8CAA+D;A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EAAE,qBAAqB,QAAQ,CAAC,UAAU,EAAE;iBACpD;aACF,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAclC,CAAC;QAEF,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YAC5C,EAAE,EAAE,GAAG,CAAC,EAAE;YACV,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,UAAU,EAAE,GAAG,CAAC,UAAU;YAC1B,UAAU,EAAE,GAAG,CAAC,WAAW;YAC3B,OAAO,EAAE,GAAG,CAAC,QAAQ;YACrB,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,SAAS,EAAE,GAAG,CAAC,UAAU;YACzB,SAAS,EAAE,GAAG,CAAC,UAAU;YACzB,OAAO,EAAE,GAAG,CAAC,QAAQ;SACtB,CAAC,CAAC,CAAC;QAEJ,OAAO;YACL,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE;SAC7C,CAAC;IACJ,CAAC;CACF,CAAA;AAzFY,gEAA0B;AAI7B;IADP,IAAA,eAAM,GAAE;8BACW,8BAAe;8DAAC;qCAJzB,0BAA0B;IAPtC,IAAA,aAAI,EAAC;QACJ,QAAQ,EAAE;YACR,WAAW,EACT,gHAAgH;SACnH;QACD,MAAM,EAAE,WAAW;KACpB,CAAC;GACW,0BAA0B,CAyFtC"}
1
+ {"version":3,"file":"github-list-workflow-runs.tool.js","sourceRoot":"","sources":["../../../src/tools/actions/github-list-workflow-runs.tool.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAc,MAA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L,IAAI,EAAE;oBACJ,KAAK,EAAE,WAAW;oBAClB,OAAO,EAAE,qBAAqB,QAAQ,CAAC,UAAU,EAAE;iBACpD;aACF,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAclC,CAAC;QAEF,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YAC5C,EAAE,EAAE,GAAG,CAAC,EAAE;YACV,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,UAAU,EAAE,GAAG,CAAC,UAAU;YAC1B,UAAU,EAAE,GAAG,CAAC,WAAW;YAC3B,OAAO,EAAE,GAAG,CAAC,QAAQ;YACrB,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,SAAS,EAAE,GAAG,CAAC,UAAU;YACzB,SAAS,EAAE,GAAG,CAAC,UAAU;YACzB,OAAO,EAAE,GAAG,CAAC,QAAQ;SACtB,CAAC,CAAC,CAAC;QAEJ,OAAO;YACL,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE;SAC7C,CAAC;IACJ,CAAC;CACF,CAAA;AArFS;IADP,MAAM,EAAE;8BACW,eAAe;8DAAC;AAJzB,0BAA0B;IAPtC,IAAI,CAAC;QACJ,QAAQ,EAAE;YACR,WAAW,EACT,gHAAgH;SACnH;QACD,MAAM,EAAE,WAAW;KACpB,CAAC;GACW,0BAA0B,CAyFtC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -9,23 +8,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
10
  var GitHubTriggerWorkflowTool_1;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.GitHubTriggerWorkflowTool = void 0;
14
- const common_1 = require("@nestjs/common");
15
- const zod_1 = require("zod");
16
- const common_2 = require("@loopstack/common");
17
- const oauth_module_1 = require("@loopstack/oauth-module");
18
- const inputSchema = zod_1.z
11
+ import { Inject, Logger } from '@nestjs/common';
12
+ import { z } from 'zod';
13
+ import { BaseTool, Tool } from '@loopstack/common';
14
+ import { OAuthTokenStore } from '@loopstack/oauth-module';
15
+ const inputSchema = z
19
16
  .object({
20
- owner: zod_1.z.string(),
21
- repo: zod_1.z.string(),
22
- workflowId: zod_1.z.string(),
23
- ref: zod_1.z.string(),
24
- inputs: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional(),
17
+ owner: z.string(),
18
+ repo: z.string(),
19
+ workflowId: z.string(),
20
+ ref: z.string(),
21
+ inputs: z.record(z.string(), z.string()).optional(),
25
22
  })
26
23
  .strict();
27
- let GitHubTriggerWorkflowTool = GitHubTriggerWorkflowTool_1 = class GitHubTriggerWorkflowTool extends common_2.BaseTool {
28
- logger = new common_1.Logger(GitHubTriggerWorkflowTool_1.name);
24
+ let GitHubTriggerWorkflowTool = GitHubTriggerWorkflowTool_1 = class GitHubTriggerWorkflowTool extends BaseTool {
25
+ logger = new Logger(GitHubTriggerWorkflowTool_1.name);
29
26
  tokenStore;
30
27
  async call(args) {
31
28
  const accessToken = await this.tokenStore.getValidAccessToken(this.ctx.context.userId, 'github');
@@ -80,17 +77,17 @@ let GitHubTriggerWorkflowTool = GitHubTriggerWorkflowTool_1 = class GitHubTrigge
80
77
  };
81
78
  }
82
79
  };
83
- exports.GitHubTriggerWorkflowTool = GitHubTriggerWorkflowTool;
84
80
  __decorate([
85
- (0, common_1.Inject)(),
86
- __metadata("design:type", oauth_module_1.OAuthTokenStore)
81
+ Inject(),
82
+ __metadata("design:type", OAuthTokenStore)
87
83
  ], GitHubTriggerWorkflowTool.prototype, "tokenStore", void 0);
88
- exports.GitHubTriggerWorkflowTool = GitHubTriggerWorkflowTool = GitHubTriggerWorkflowTool_1 = __decorate([
89
- (0, common_2.Tool)({
84
+ GitHubTriggerWorkflowTool = GitHubTriggerWorkflowTool_1 = __decorate([
85
+ Tool({
90
86
  uiConfig: {
91
87
  description: 'Triggers a GitHub Actions workflow dispatch event. Returns 204 No Content on success. Returns { error: "unauthorized" } if no valid token is available.',
92
88
  },
93
89
  schema: inputSchema,
94
90
  })
95
91
  ], GitHubTriggerWorkflowTool);
92
+ export { GitHubTriggerWorkflowTool };
96
93
  //# sourceMappingURL=github-trigger-workflow.tool.js.map