@invect/core 0.0.1
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/LICENSE +21 -0
- package/README.md +103 -0
- package/dist/_virtual/_rolldown/runtime.cjs +33 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/actions/action-executor.cjs +166 -0
- package/dist/actions/action-executor.cjs.map +1 -0
- package/dist/actions/action-executor.d.cts +33 -0
- package/dist/actions/action-executor.d.cts.map +1 -0
- package/dist/actions/action-executor.d.ts +33 -0
- package/dist/actions/action-executor.d.ts.map +1 -0
- package/dist/actions/action-executor.js +164 -0
- package/dist/actions/action-executor.js.map +1 -0
- package/dist/actions/action-registry.cjs +236 -0
- package/dist/actions/action-registry.cjs.map +1 -0
- package/dist/actions/action-registry.d.cts +58 -0
- package/dist/actions/action-registry.d.cts.map +1 -0
- package/dist/actions/action-registry.d.ts +58 -0
- package/dist/actions/action-registry.d.ts.map +1 -0
- package/dist/actions/action-registry.js +233 -0
- package/dist/actions/action-registry.js.map +1 -0
- package/dist/actions/core/if-else.cjs +111 -0
- package/dist/actions/core/if-else.cjs.map +1 -0
- package/dist/actions/core/if-else.d.cts +1 -0
- package/dist/actions/core/if-else.d.ts +1 -0
- package/dist/actions/core/if-else.js +98 -0
- package/dist/actions/core/if-else.js.map +1 -0
- package/dist/actions/core/index.cjs +20 -0
- package/dist/actions/core/index.cjs.map +1 -0
- package/dist/actions/core/index.d.cts +7 -0
- package/dist/actions/core/index.d.cts.map +1 -0
- package/dist/actions/core/index.d.ts +7 -0
- package/dist/actions/core/index.d.ts.map +1 -0
- package/dist/actions/core/index.js +20 -0
- package/dist/actions/core/index.js.map +1 -0
- package/dist/actions/core/input.cjs +73 -0
- package/dist/actions/core/input.cjs.map +1 -0
- package/dist/actions/core/input.d.cts +1 -0
- package/dist/actions/core/input.d.ts +1 -0
- package/dist/actions/core/input.js +72 -0
- package/dist/actions/core/input.js.map +1 -0
- package/dist/actions/core/javascript.cjs +77 -0
- package/dist/actions/core/javascript.cjs.map +1 -0
- package/dist/actions/core/javascript.d.cts +1 -0
- package/dist/actions/core/javascript.d.ts +1 -0
- package/dist/actions/core/javascript.js +62 -0
- package/dist/actions/core/javascript.js.map +1 -0
- package/dist/actions/core/model.cjs +285 -0
- package/dist/actions/core/model.cjs.map +1 -0
- package/dist/actions/core/model.d.cts +1 -0
- package/dist/actions/core/model.d.ts +1 -0
- package/dist/actions/core/model.js +276 -0
- package/dist/actions/core/model.js.map +1 -0
- package/dist/actions/core/output.cjs +66 -0
- package/dist/actions/core/output.cjs.map +1 -0
- package/dist/actions/core/output.d.cts +1 -0
- package/dist/actions/core/output.d.ts +1 -0
- package/dist/actions/core/output.js +57 -0
- package/dist/actions/core/output.js.map +1 -0
- package/dist/actions/core/template-string.cjs +85 -0
- package/dist/actions/core/template-string.cjs.map +1 -0
- package/dist/actions/core/template-string.d.cts +1 -0
- package/dist/actions/core/template-string.d.ts +1 -0
- package/dist/actions/core/template-string.js +76 -0
- package/dist/actions/core/template-string.js.map +1 -0
- package/dist/actions/define-action.cjs +14 -0
- package/dist/actions/define-action.cjs.map +1 -0
- package/dist/actions/define-action.d.cts +13 -0
- package/dist/actions/define-action.d.cts.map +1 -0
- package/dist/actions/define-action.d.ts +13 -0
- package/dist/actions/define-action.d.ts.map +1 -0
- package/dist/actions/define-action.js +14 -0
- package/dist/actions/define-action.js.map +1 -0
- package/dist/actions/github/add-issue-comment.cjs +152 -0
- package/dist/actions/github/add-issue-comment.cjs.map +1 -0
- package/dist/actions/github/add-issue-comment.d.cts +1 -0
- package/dist/actions/github/add-issue-comment.d.ts +1 -0
- package/dist/actions/github/add-issue-comment.js +150 -0
- package/dist/actions/github/add-issue-comment.js.map +1 -0
- package/dist/actions/github/create-branch.cjs +201 -0
- package/dist/actions/github/create-branch.cjs.map +1 -0
- package/dist/actions/github/create-branch.d.cts +1 -0
- package/dist/actions/github/create-branch.d.ts +1 -0
- package/dist/actions/github/create-branch.js +199 -0
- package/dist/actions/github/create-branch.js.map +1 -0
- package/dist/actions/github/create-issue.cjs +190 -0
- package/dist/actions/github/create-issue.cjs.map +1 -0
- package/dist/actions/github/create-issue.d.cts +1 -0
- package/dist/actions/github/create-issue.d.ts +1 -0
- package/dist/actions/github/create-issue.js +188 -0
- package/dist/actions/github/create-issue.js.map +1 -0
- package/dist/actions/github/create-or-update-file.cjs +216 -0
- package/dist/actions/github/create-or-update-file.cjs.map +1 -0
- package/dist/actions/github/create-or-update-file.d.cts +1 -0
- package/dist/actions/github/create-or-update-file.d.ts +1 -0
- package/dist/actions/github/create-or-update-file.js +214 -0
- package/dist/actions/github/create-or-update-file.js.map +1 -0
- package/dist/actions/github/create-pull-request.cjs +206 -0
- package/dist/actions/github/create-pull-request.cjs.map +1 -0
- package/dist/actions/github/create-pull-request.d.cts +1 -0
- package/dist/actions/github/create-pull-request.d.ts +1 -0
- package/dist/actions/github/create-pull-request.js +204 -0
- package/dist/actions/github/create-pull-request.js.map +1 -0
- package/dist/actions/github/create-release.cjs +218 -0
- package/dist/actions/github/create-release.cjs.map +1 -0
- package/dist/actions/github/create-release.d.cts +1 -0
- package/dist/actions/github/create-release.d.ts +1 -0
- package/dist/actions/github/create-release.js +216 -0
- package/dist/actions/github/create-release.js.map +1 -0
- package/dist/actions/github/get-file-content.cjs +164 -0
- package/dist/actions/github/get-file-content.cjs.map +1 -0
- package/dist/actions/github/get-file-content.d.cts +1 -0
- package/dist/actions/github/get-file-content.d.ts +1 -0
- package/dist/actions/github/get-file-content.js +162 -0
- package/dist/actions/github/get-file-content.js.map +1 -0
- package/dist/actions/github/get-issue.cjs +149 -0
- package/dist/actions/github/get-issue.cjs.map +1 -0
- package/dist/actions/github/get-issue.d.cts +1 -0
- package/dist/actions/github/get-issue.d.ts +1 -0
- package/dist/actions/github/get-issue.js +147 -0
- package/dist/actions/github/get-issue.js.map +1 -0
- package/dist/actions/github/get-pull-request.cjs +160 -0
- package/dist/actions/github/get-pull-request.cjs.map +1 -0
- package/dist/actions/github/get-pull-request.d.cts +1 -0
- package/dist/actions/github/get-pull-request.d.ts +1 -0
- package/dist/actions/github/get-pull-request.js +158 -0
- package/dist/actions/github/get-pull-request.js.map +1 -0
- package/dist/actions/github/get-repo.cjs +144 -0
- package/dist/actions/github/get-repo.cjs.map +1 -0
- package/dist/actions/github/get-repo.d.cts +1 -0
- package/dist/actions/github/get-repo.d.ts +1 -0
- package/dist/actions/github/get-repo.js +142 -0
- package/dist/actions/github/get-repo.js.map +1 -0
- package/dist/actions/github/index.cjs +48 -0
- package/dist/actions/github/index.cjs.map +1 -0
- package/dist/actions/github/index.d.cts +7 -0
- package/dist/actions/github/index.d.cts.map +1 -0
- package/dist/actions/github/index.d.ts +7 -0
- package/dist/actions/github/index.d.ts.map +1 -0
- package/dist/actions/github/index.js +48 -0
- package/dist/actions/github/index.js.map +1 -0
- package/dist/actions/github/list-branches.cjs +149 -0
- package/dist/actions/github/list-branches.cjs.map +1 -0
- package/dist/actions/github/list-branches.d.cts +1 -0
- package/dist/actions/github/list-branches.d.ts +1 -0
- package/dist/actions/github/list-branches.js +147 -0
- package/dist/actions/github/list-branches.js.map +1 -0
- package/dist/actions/github/list-commits.cjs +200 -0
- package/dist/actions/github/list-commits.cjs.map +1 -0
- package/dist/actions/github/list-commits.d.cts +1 -0
- package/dist/actions/github/list-commits.d.ts +1 -0
- package/dist/actions/github/list-commits.js +198 -0
- package/dist/actions/github/list-commits.js.map +1 -0
- package/dist/actions/github/list-issue-comments.cjs +153 -0
- package/dist/actions/github/list-issue-comments.cjs.map +1 -0
- package/dist/actions/github/list-issue-comments.d.cts +1 -0
- package/dist/actions/github/list-issue-comments.d.ts +1 -0
- package/dist/actions/github/list-issue-comments.js +151 -0
- package/dist/actions/github/list-issue-comments.js.map +1 -0
- package/dist/actions/github/list-issues.cjs +244 -0
- package/dist/actions/github/list-issues.cjs.map +1 -0
- package/dist/actions/github/list-issues.d.cts +1 -0
- package/dist/actions/github/list-issues.d.ts +1 -0
- package/dist/actions/github/list-issues.js +242 -0
- package/dist/actions/github/list-issues.js.map +1 -0
- package/dist/actions/github/list-pull-requests.cjs +252 -0
- package/dist/actions/github/list-pull-requests.cjs.map +1 -0
- package/dist/actions/github/list-pull-requests.d.cts +1 -0
- package/dist/actions/github/list-pull-requests.d.ts +1 -0
- package/dist/actions/github/list-pull-requests.js +250 -0
- package/dist/actions/github/list-pull-requests.js.map +1 -0
- package/dist/actions/github/list-releases.cjs +152 -0
- package/dist/actions/github/list-releases.cjs.map +1 -0
- package/dist/actions/github/list-releases.d.cts +1 -0
- package/dist/actions/github/list-releases.d.ts +1 -0
- package/dist/actions/github/list-releases.js +150 -0
- package/dist/actions/github/list-releases.js.map +1 -0
- package/dist/actions/github/list-repos.cjs +227 -0
- package/dist/actions/github/list-repos.cjs.map +1 -0
- package/dist/actions/github/list-repos.d.cts +1 -0
- package/dist/actions/github/list-repos.d.ts +1 -0
- package/dist/actions/github/list-repos.js +225 -0
- package/dist/actions/github/list-repos.js.map +1 -0
- package/dist/actions/github/merge-pull-request.cjs +204 -0
- package/dist/actions/github/merge-pull-request.cjs.map +1 -0
- package/dist/actions/github/merge-pull-request.d.cts +1 -0
- package/dist/actions/github/merge-pull-request.d.ts +1 -0
- package/dist/actions/github/merge-pull-request.js +202 -0
- package/dist/actions/github/merge-pull-request.js.map +1 -0
- package/dist/actions/github/search-issues.cjs +200 -0
- package/dist/actions/github/search-issues.cjs.map +1 -0
- package/dist/actions/github/search-issues.d.cts +1 -0
- package/dist/actions/github/search-issues.d.ts +1 -0
- package/dist/actions/github/search-issues.js +198 -0
- package/dist/actions/github/search-issues.js.map +1 -0
- package/dist/actions/github/update-issue.cjs +243 -0
- package/dist/actions/github/update-issue.cjs.map +1 -0
- package/dist/actions/github/update-issue.d.cts +1 -0
- package/dist/actions/github/update-issue.d.ts +1 -0
- package/dist/actions/github/update-issue.js +241 -0
- package/dist/actions/github/update-issue.js.map +1 -0
- package/dist/actions/gmail/create-draft.cjs +228 -0
- package/dist/actions/gmail/create-draft.cjs.map +1 -0
- package/dist/actions/gmail/create-draft.d.cts +1 -0
- package/dist/actions/gmail/create-draft.d.ts +1 -0
- package/dist/actions/gmail/create-draft.js +226 -0
- package/dist/actions/gmail/create-draft.js.map +1 -0
- package/dist/actions/gmail/get-message.cjs +205 -0
- package/dist/actions/gmail/get-message.cjs.map +1 -0
- package/dist/actions/gmail/get-message.d.cts +1 -0
- package/dist/actions/gmail/get-message.d.ts +1 -0
- package/dist/actions/gmail/get-message.js +203 -0
- package/dist/actions/gmail/get-message.js.map +1 -0
- package/dist/actions/gmail/index.cjs +18 -0
- package/dist/actions/gmail/index.cjs.map +1 -0
- package/dist/actions/gmail/index.d.cts +7 -0
- package/dist/actions/gmail/index.d.cts.map +1 -0
- package/dist/actions/gmail/index.d.ts +7 -0
- package/dist/actions/gmail/index.d.ts.map +1 -0
- package/dist/actions/gmail/index.js +18 -0
- package/dist/actions/gmail/index.js.map +1 -0
- package/dist/actions/gmail/list-messages.cjs +195 -0
- package/dist/actions/gmail/list-messages.cjs.map +1 -0
- package/dist/actions/gmail/list-messages.d.cts +1 -0
- package/dist/actions/gmail/list-messages.d.ts +1 -0
- package/dist/actions/gmail/list-messages.js +193 -0
- package/dist/actions/gmail/list-messages.js.map +1 -0
- package/dist/actions/gmail/modify-labels.cjs +163 -0
- package/dist/actions/gmail/modify-labels.cjs.map +1 -0
- package/dist/actions/gmail/modify-labels.d.cts +1 -0
- package/dist/actions/gmail/modify-labels.d.ts +1 -0
- package/dist/actions/gmail/modify-labels.js +161 -0
- package/dist/actions/gmail/modify-labels.js.map +1 -0
- package/dist/actions/gmail/send-message.cjs +233 -0
- package/dist/actions/gmail/send-message.cjs.map +1 -0
- package/dist/actions/gmail/send-message.d.cts +1 -0
- package/dist/actions/gmail/send-message.d.ts +1 -0
- package/dist/actions/gmail/send-message.js +231 -0
- package/dist/actions/gmail/send-message.js.map +1 -0
- package/dist/actions/google-calendar/create-event.cjs +274 -0
- package/dist/actions/google-calendar/create-event.cjs.map +1 -0
- package/dist/actions/google-calendar/create-event.d.cts +1 -0
- package/dist/actions/google-calendar/create-event.d.ts +1 -0
- package/dist/actions/google-calendar/create-event.js +272 -0
- package/dist/actions/google-calendar/create-event.js.map +1 -0
- package/dist/actions/google-calendar/delete-event.cjs +145 -0
- package/dist/actions/google-calendar/delete-event.cjs.map +1 -0
- package/dist/actions/google-calendar/delete-event.d.cts +1 -0
- package/dist/actions/google-calendar/delete-event.d.ts +1 -0
- package/dist/actions/google-calendar/delete-event.js +143 -0
- package/dist/actions/google-calendar/delete-event.js.map +1 -0
- package/dist/actions/google-calendar/get-event.cjs +128 -0
- package/dist/actions/google-calendar/get-event.cjs.map +1 -0
- package/dist/actions/google-calendar/get-event.d.cts +1 -0
- package/dist/actions/google-calendar/get-event.d.ts +1 -0
- package/dist/actions/google-calendar/get-event.js +126 -0
- package/dist/actions/google-calendar/get-event.js.map +1 -0
- package/dist/actions/google-calendar/index.cjs +20 -0
- package/dist/actions/google-calendar/index.cjs.map +1 -0
- package/dist/actions/google-calendar/index.d.cts +7 -0
- package/dist/actions/google-calendar/index.d.cts.map +1 -0
- package/dist/actions/google-calendar/index.d.ts +7 -0
- package/dist/actions/google-calendar/index.d.ts.map +1 -0
- package/dist/actions/google-calendar/index.js +20 -0
- package/dist/actions/google-calendar/index.js.map +1 -0
- package/dist/actions/google-calendar/list-events.cjs +193 -0
- package/dist/actions/google-calendar/list-events.cjs.map +1 -0
- package/dist/actions/google-calendar/list-events.d.cts +1 -0
- package/dist/actions/google-calendar/list-events.d.ts +1 -0
- package/dist/actions/google-calendar/list-events.js +191 -0
- package/dist/actions/google-calendar/list-events.js.map +1 -0
- package/dist/actions/google-calendar/query-freebusy.cjs +160 -0
- package/dist/actions/google-calendar/query-freebusy.cjs.map +1 -0
- package/dist/actions/google-calendar/query-freebusy.d.cts +1 -0
- package/dist/actions/google-calendar/query-freebusy.d.ts +1 -0
- package/dist/actions/google-calendar/query-freebusy.js +158 -0
- package/dist/actions/google-calendar/query-freebusy.js.map +1 -0
- package/dist/actions/google-calendar/update-event.cjs +221 -0
- package/dist/actions/google-calendar/update-event.cjs.map +1 -0
- package/dist/actions/google-calendar/update-event.d.cts +1 -0
- package/dist/actions/google-calendar/update-event.d.ts +1 -0
- package/dist/actions/google-calendar/update-event.js +219 -0
- package/dist/actions/google-calendar/update-event.js.map +1 -0
- package/dist/actions/google-docs/append-text.cjs +138 -0
- package/dist/actions/google-docs/append-text.cjs.map +1 -0
- package/dist/actions/google-docs/append-text.d.cts +1 -0
- package/dist/actions/google-docs/append-text.d.ts +1 -0
- package/dist/actions/google-docs/append-text.js +136 -0
- package/dist/actions/google-docs/append-text.js.map +1 -0
- package/dist/actions/google-docs/create-document.cjs +138 -0
- package/dist/actions/google-docs/create-document.cjs.map +1 -0
- package/dist/actions/google-docs/create-document.d.cts +1 -0
- package/dist/actions/google-docs/create-document.d.ts +1 -0
- package/dist/actions/google-docs/create-document.js +136 -0
- package/dist/actions/google-docs/create-document.js.map +1 -0
- package/dist/actions/google-docs/get-document.cjs +118 -0
- package/dist/actions/google-docs/get-document.cjs.map +1 -0
- package/dist/actions/google-docs/get-document.d.cts +1 -0
- package/dist/actions/google-docs/get-document.d.ts +1 -0
- package/dist/actions/google-docs/get-document.js +116 -0
- package/dist/actions/google-docs/get-document.js.map +1 -0
- package/dist/actions/google-docs/index.cjs +18 -0
- package/dist/actions/google-docs/index.cjs.map +1 -0
- package/dist/actions/google-docs/index.d.cts +7 -0
- package/dist/actions/google-docs/index.d.cts.map +1 -0
- package/dist/actions/google-docs/index.d.ts +7 -0
- package/dist/actions/google-docs/index.d.ts.map +1 -0
- package/dist/actions/google-docs/index.js +18 -0
- package/dist/actions/google-docs/index.js.map +1 -0
- package/dist/actions/google-docs/insert-text.cjs +136 -0
- package/dist/actions/google-docs/insert-text.cjs.map +1 -0
- package/dist/actions/google-docs/insert-text.d.cts +1 -0
- package/dist/actions/google-docs/insert-text.d.ts +1 -0
- package/dist/actions/google-docs/insert-text.js +134 -0
- package/dist/actions/google-docs/insert-text.js.map +1 -0
- package/dist/actions/google-docs/replace-text.cjs +152 -0
- package/dist/actions/google-docs/replace-text.cjs.map +1 -0
- package/dist/actions/google-docs/replace-text.d.cts +1 -0
- package/dist/actions/google-docs/replace-text.d.ts +1 -0
- package/dist/actions/google-docs/replace-text.js +150 -0
- package/dist/actions/google-docs/replace-text.js.map +1 -0
- package/dist/actions/google-drive/create-file.cjs +155 -0
- package/dist/actions/google-drive/create-file.cjs.map +1 -0
- package/dist/actions/google-drive/create-file.d.cts +1 -0
- package/dist/actions/google-drive/create-file.d.ts +1 -0
- package/dist/actions/google-drive/create-file.js +153 -0
- package/dist/actions/google-drive/create-file.js.map +1 -0
- package/dist/actions/google-drive/create-folder.cjs +130 -0
- package/dist/actions/google-drive/create-folder.cjs.map +1 -0
- package/dist/actions/google-drive/create-folder.d.cts +1 -0
- package/dist/actions/google-drive/create-folder.d.ts +1 -0
- package/dist/actions/google-drive/create-folder.js +128 -0
- package/dist/actions/google-drive/create-folder.js.map +1 -0
- package/dist/actions/google-drive/delete-file.cjs +98 -0
- package/dist/actions/google-drive/delete-file.cjs.map +1 -0
- package/dist/actions/google-drive/delete-file.d.cts +1 -0
- package/dist/actions/google-drive/delete-file.d.ts +1 -0
- package/dist/actions/google-drive/delete-file.js +96 -0
- package/dist/actions/google-drive/delete-file.js.map +1 -0
- package/dist/actions/google-drive/get-file.cjs +103 -0
- package/dist/actions/google-drive/get-file.cjs.map +1 -0
- package/dist/actions/google-drive/get-file.d.cts +1 -0
- package/dist/actions/google-drive/get-file.d.ts +1 -0
- package/dist/actions/google-drive/get-file.js +101 -0
- package/dist/actions/google-drive/get-file.js.map +1 -0
- package/dist/actions/google-drive/index.cjs +22 -0
- package/dist/actions/google-drive/index.cjs.map +1 -0
- package/dist/actions/google-drive/index.d.cts +7 -0
- package/dist/actions/google-drive/index.d.cts.map +1 -0
- package/dist/actions/google-drive/index.d.ts +7 -0
- package/dist/actions/google-drive/index.d.ts.map +1 -0
- package/dist/actions/google-drive/index.js +22 -0
- package/dist/actions/google-drive/index.js.map +1 -0
- package/dist/actions/google-drive/list-files.cjs +156 -0
- package/dist/actions/google-drive/list-files.cjs.map +1 -0
- package/dist/actions/google-drive/list-files.d.cts +1 -0
- package/dist/actions/google-drive/list-files.d.ts +1 -0
- package/dist/actions/google-drive/list-files.js +154 -0
- package/dist/actions/google-drive/list-files.js.map +1 -0
- package/dist/actions/google-drive/search-files.cjs +138 -0
- package/dist/actions/google-drive/search-files.cjs.map +1 -0
- package/dist/actions/google-drive/search-files.d.cts +1 -0
- package/dist/actions/google-drive/search-files.d.ts +1 -0
- package/dist/actions/google-drive/search-files.js +136 -0
- package/dist/actions/google-drive/search-files.js.map +1 -0
- package/dist/actions/google-drive/share-file.cjs +226 -0
- package/dist/actions/google-drive/share-file.cjs.map +1 -0
- package/dist/actions/google-drive/share-file.d.cts +1 -0
- package/dist/actions/google-drive/share-file.d.ts +1 -0
- package/dist/actions/google-drive/share-file.js +224 -0
- package/dist/actions/google-drive/share-file.js.map +1 -0
- package/dist/actions/google-sheets/append-values.cjs +175 -0
- package/dist/actions/google-sheets/append-values.cjs.map +1 -0
- package/dist/actions/google-sheets/append-values.d.cts +1 -0
- package/dist/actions/google-sheets/append-values.d.ts +1 -0
- package/dist/actions/google-sheets/append-values.js +173 -0
- package/dist/actions/google-sheets/append-values.js.map +1 -0
- package/dist/actions/google-sheets/clear-values.cjs +118 -0
- package/dist/actions/google-sheets/clear-values.cjs.map +1 -0
- package/dist/actions/google-sheets/clear-values.d.cts +1 -0
- package/dist/actions/google-sheets/clear-values.d.ts +1 -0
- package/dist/actions/google-sheets/clear-values.js +116 -0
- package/dist/actions/google-sheets/clear-values.js.map +1 -0
- package/dist/actions/google-sheets/create-spreadsheet.cjs +128 -0
- package/dist/actions/google-sheets/create-spreadsheet.cjs.map +1 -0
- package/dist/actions/google-sheets/create-spreadsheet.d.cts +1 -0
- package/dist/actions/google-sheets/create-spreadsheet.d.ts +1 -0
- package/dist/actions/google-sheets/create-spreadsheet.js +126 -0
- package/dist/actions/google-sheets/create-spreadsheet.js.map +1 -0
- package/dist/actions/google-sheets/get-values.cjs +168 -0
- package/dist/actions/google-sheets/get-values.cjs.map +1 -0
- package/dist/actions/google-sheets/get-values.d.cts +1 -0
- package/dist/actions/google-sheets/get-values.d.ts +1 -0
- package/dist/actions/google-sheets/get-values.js +166 -0
- package/dist/actions/google-sheets/get-values.js.map +1 -0
- package/dist/actions/google-sheets/index.cjs +18 -0
- package/dist/actions/google-sheets/index.cjs.map +1 -0
- package/dist/actions/google-sheets/index.d.cts +7 -0
- package/dist/actions/google-sheets/index.d.cts.map +1 -0
- package/dist/actions/google-sheets/index.d.ts +7 -0
- package/dist/actions/google-sheets/index.d.ts.map +1 -0
- package/dist/actions/google-sheets/index.js +18 -0
- package/dist/actions/google-sheets/index.js.map +1 -0
- package/dist/actions/google-sheets/update-values.cjs +158 -0
- package/dist/actions/google-sheets/update-values.cjs.map +1 -0
- package/dist/actions/google-sheets/update-values.d.cts +1 -0
- package/dist/actions/google-sheets/update-values.d.ts +1 -0
- package/dist/actions/google-sheets/update-values.js +156 -0
- package/dist/actions/google-sheets/update-values.js.map +1 -0
- package/dist/actions/http/index.cjs +7 -0
- package/dist/actions/http/index.cjs.map +1 -0
- package/dist/actions/http/index.d.cts +7 -0
- package/dist/actions/http/index.d.cts.map +1 -0
- package/dist/actions/http/index.d.ts +7 -0
- package/dist/actions/http/index.d.ts.map +1 -0
- package/dist/actions/http/index.js +8 -0
- package/dist/actions/http/index.js.map +1 -0
- package/dist/actions/http/request.cjs +223 -0
- package/dist/actions/http/request.cjs.map +1 -0
- package/dist/actions/http/request.d.cts +1 -0
- package/dist/actions/http/request.d.ts +1 -0
- package/dist/actions/http/request.js +222 -0
- package/dist/actions/http/request.js.map +1 -0
- package/dist/actions/index.cjs +46 -0
- package/dist/actions/index.cjs.map +1 -0
- package/dist/actions/index.d.cts +27 -0
- package/dist/actions/index.d.cts.map +1 -0
- package/dist/actions/index.d.ts +27 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +45 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/linear/create-issue.cjs +296 -0
- package/dist/actions/linear/create-issue.cjs.map +1 -0
- package/dist/actions/linear/create-issue.d.cts +1 -0
- package/dist/actions/linear/create-issue.d.ts +1 -0
- package/dist/actions/linear/create-issue.js +294 -0
- package/dist/actions/linear/create-issue.js.map +1 -0
- package/dist/actions/linear/index.cjs +16 -0
- package/dist/actions/linear/index.cjs.map +1 -0
- package/dist/actions/linear/index.d.cts +7 -0
- package/dist/actions/linear/index.d.cts.map +1 -0
- package/dist/actions/linear/index.d.ts +7 -0
- package/dist/actions/linear/index.d.ts.map +1 -0
- package/dist/actions/linear/index.js +16 -0
- package/dist/actions/linear/index.js.map +1 -0
- package/dist/actions/linear/list-issues.cjs +239 -0
- package/dist/actions/linear/list-issues.cjs.map +1 -0
- package/dist/actions/linear/list-issues.d.cts +1 -0
- package/dist/actions/linear/list-issues.d.ts +1 -0
- package/dist/actions/linear/list-issues.js +237 -0
- package/dist/actions/linear/list-issues.js.map +1 -0
- package/dist/actions/linear/list-teams.cjs +183 -0
- package/dist/actions/linear/list-teams.cjs.map +1 -0
- package/dist/actions/linear/list-teams.d.cts +1 -0
- package/dist/actions/linear/list-teams.d.ts +1 -0
- package/dist/actions/linear/list-teams.js +181 -0
- package/dist/actions/linear/list-teams.js.map +1 -0
- package/dist/actions/linear/update-issue.cjs +282 -0
- package/dist/actions/linear/update-issue.cjs.map +1 -0
- package/dist/actions/linear/update-issue.d.cts +1 -0
- package/dist/actions/linear/update-issue.d.ts +1 -0
- package/dist/actions/linear/update-issue.js +280 -0
- package/dist/actions/linear/update-issue.js.map +1 -0
- package/dist/actions/microsoft/get-calendar-event.cjs +139 -0
- package/dist/actions/microsoft/get-calendar-event.cjs.map +1 -0
- package/dist/actions/microsoft/get-calendar-event.d.cts +1 -0
- package/dist/actions/microsoft/get-calendar-event.d.ts +1 -0
- package/dist/actions/microsoft/get-calendar-event.js +137 -0
- package/dist/actions/microsoft/get-calendar-event.js.map +1 -0
- package/dist/actions/microsoft/get-meeting-transcript.cjs +221 -0
- package/dist/actions/microsoft/get-meeting-transcript.cjs.map +1 -0
- package/dist/actions/microsoft/get-meeting-transcript.d.cts +1 -0
- package/dist/actions/microsoft/get-meeting-transcript.d.ts +1 -0
- package/dist/actions/microsoft/get-meeting-transcript.js +219 -0
- package/dist/actions/microsoft/get-meeting-transcript.js.map +1 -0
- package/dist/actions/microsoft/get-message.cjs +173 -0
- package/dist/actions/microsoft/get-message.cjs.map +1 -0
- package/dist/actions/microsoft/get-message.d.cts +1 -0
- package/dist/actions/microsoft/get-message.d.ts +1 -0
- package/dist/actions/microsoft/get-message.js +171 -0
- package/dist/actions/microsoft/get-message.js.map +1 -0
- package/dist/actions/microsoft/index.cjs +22 -0
- package/dist/actions/microsoft/index.cjs.map +1 -0
- package/dist/actions/microsoft/index.d.cts +1 -0
- package/dist/actions/microsoft/index.d.ts +1 -0
- package/dist/actions/microsoft/index.js +22 -0
- package/dist/actions/microsoft/index.js.map +1 -0
- package/dist/actions/microsoft/list-calendar-events.cjs +202 -0
- package/dist/actions/microsoft/list-calendar-events.cjs.map +1 -0
- package/dist/actions/microsoft/list-calendar-events.d.cts +1 -0
- package/dist/actions/microsoft/list-calendar-events.d.ts +1 -0
- package/dist/actions/microsoft/list-calendar-events.js +200 -0
- package/dist/actions/microsoft/list-calendar-events.js.map +1 -0
- package/dist/actions/microsoft/list-calendars.cjs +99 -0
- package/dist/actions/microsoft/list-calendars.cjs.map +1 -0
- package/dist/actions/microsoft/list-calendars.d.cts +1 -0
- package/dist/actions/microsoft/list-calendars.d.ts +1 -0
- package/dist/actions/microsoft/list-calendars.js +97 -0
- package/dist/actions/microsoft/list-calendars.js.map +1 -0
- package/dist/actions/microsoft/list-messages.cjs +223 -0
- package/dist/actions/microsoft/list-messages.cjs.map +1 -0
- package/dist/actions/microsoft/list-messages.d.cts +1 -0
- package/dist/actions/microsoft/list-messages.d.ts +1 -0
- package/dist/actions/microsoft/list-messages.js +221 -0
- package/dist/actions/microsoft/list-messages.js.map +1 -0
- package/dist/actions/microsoft/list-online-meetings.cjs +132 -0
- package/dist/actions/microsoft/list-online-meetings.cjs.map +1 -0
- package/dist/actions/microsoft/list-online-meetings.d.cts +1 -0
- package/dist/actions/microsoft/list-online-meetings.d.ts +1 -0
- package/dist/actions/microsoft/list-online-meetings.js +130 -0
- package/dist/actions/microsoft/list-online-meetings.js.map +1 -0
- package/dist/actions/postgres/describe-table.cjs +175 -0
- package/dist/actions/postgres/describe-table.cjs.map +1 -0
- package/dist/actions/postgres/describe-table.d.cts +1 -0
- package/dist/actions/postgres/describe-table.d.ts +1 -0
- package/dist/actions/postgres/describe-table.js +165 -0
- package/dist/actions/postgres/describe-table.js.map +1 -0
- package/dist/actions/postgres/execute-query.cjs +120 -0
- package/dist/actions/postgres/execute-query.cjs.map +1 -0
- package/dist/actions/postgres/execute-query.d.cts +1 -0
- package/dist/actions/postgres/execute-query.d.ts +1 -0
- package/dist/actions/postgres/execute-query.js +110 -0
- package/dist/actions/postgres/execute-query.js.map +1 -0
- package/dist/actions/postgres/index.cjs +16 -0
- package/dist/actions/postgres/index.cjs.map +1 -0
- package/dist/actions/postgres/index.d.cts +7 -0
- package/dist/actions/postgres/index.d.cts.map +1 -0
- package/dist/actions/postgres/index.d.ts +7 -0
- package/dist/actions/postgres/index.d.ts.map +1 -0
- package/dist/actions/postgres/index.js +16 -0
- package/dist/actions/postgres/index.js.map +1 -0
- package/dist/actions/postgres/insert-rows.cjs +168 -0
- package/dist/actions/postgres/insert-rows.cjs.map +1 -0
- package/dist/actions/postgres/insert-rows.d.cts +1 -0
- package/dist/actions/postgres/insert-rows.d.ts +1 -0
- package/dist/actions/postgres/insert-rows.js +158 -0
- package/dist/actions/postgres/insert-rows.js.map +1 -0
- package/dist/actions/postgres/list-tables.cjs +133 -0
- package/dist/actions/postgres/list-tables.cjs.map +1 -0
- package/dist/actions/postgres/list-tables.d.cts +1 -0
- package/dist/actions/postgres/list-tables.d.ts +1 -0
- package/dist/actions/postgres/list-tables.js +123 -0
- package/dist/actions/postgres/list-tables.js.map +1 -0
- package/dist/actions/providers.cjs +128 -0
- package/dist/actions/providers.cjs.map +1 -0
- package/dist/actions/providers.d.cts +22 -0
- package/dist/actions/providers.d.cts.map +1 -0
- package/dist/actions/providers.d.ts +22 -0
- package/dist/actions/providers.d.ts.map +1 -0
- package/dist/actions/providers.js +116 -0
- package/dist/actions/providers.js.map +1 -0
- package/dist/actions/slack/index.cjs +9 -0
- package/dist/actions/slack/index.cjs.map +1 -0
- package/dist/actions/slack/index.d.cts +7 -0
- package/dist/actions/slack/index.d.cts.map +1 -0
- package/dist/actions/slack/index.d.ts +7 -0
- package/dist/actions/slack/index.d.ts.map +1 -0
- package/dist/actions/slack/index.js +9 -0
- package/dist/actions/slack/index.js.map +1 -0
- package/dist/actions/slack/list-channels.cjs +157 -0
- package/dist/actions/slack/list-channels.cjs.map +1 -0
- package/dist/actions/slack/list-channels.d.cts +1 -0
- package/dist/actions/slack/list-channels.d.ts +1 -0
- package/dist/actions/slack/list-channels.js +155 -0
- package/dist/actions/slack/list-channels.js.map +1 -0
- package/dist/actions/slack/send-message.cjs +157 -0
- package/dist/actions/slack/send-message.cjs.map +1 -0
- package/dist/actions/slack/send-message.d.cts +1 -0
- package/dist/actions/slack/send-message.d.ts +1 -0
- package/dist/actions/slack/send-message.js +155 -0
- package/dist/actions/slack/send-message.js.map +1 -0
- package/dist/actions/triggers/cron.cjs +95 -0
- package/dist/actions/triggers/cron.cjs.map +1 -0
- package/dist/actions/triggers/cron.d.cts +1 -0
- package/dist/actions/triggers/cron.d.ts +1 -0
- package/dist/actions/triggers/cron.js +83 -0
- package/dist/actions/triggers/cron.js.map +1 -0
- package/dist/actions/triggers/index.cjs +9 -0
- package/dist/actions/triggers/index.cjs.map +1 -0
- package/dist/actions/triggers/index.d.cts +1 -0
- package/dist/actions/triggers/index.d.ts +1 -0
- package/dist/actions/triggers/index.js +9 -0
- package/dist/actions/triggers/index.js.map +1 -0
- package/dist/actions/triggers/manual.cjs +105 -0
- package/dist/actions/triggers/manual.cjs.map +1 -0
- package/dist/actions/triggers/manual.d.cts +1 -0
- package/dist/actions/triggers/manual.d.ts +1 -0
- package/dist/actions/triggers/manual.js +103 -0
- package/dist/actions/triggers/manual.js.map +1 -0
- package/dist/actions/types.d.cts +373 -0
- package/dist/actions/types.d.cts.map +1 -0
- package/dist/actions/types.d.ts +373 -0
- package/dist/actions/types.d.ts.map +1 -0
- package/dist/database/adapter-factory.cjs +188 -0
- package/dist/database/adapter-factory.cjs.map +1 -0
- package/dist/database/adapter-factory.js +187 -0
- package/dist/database/adapter-factory.js.map +1 -0
- package/dist/database/adapter.cjs +33 -0
- package/dist/database/adapter.cjs.map +1 -0
- package/dist/database/adapter.d.cts +76 -0
- package/dist/database/adapter.d.cts.map +1 -0
- package/dist/database/adapter.d.ts +76 -0
- package/dist/database/adapter.d.ts.map +1 -0
- package/dist/database/adapter.js +33 -0
- package/dist/database/adapter.js.map +1 -0
- package/dist/database/adapters/connection-bridge.cjs +119 -0
- package/dist/database/adapters/connection-bridge.cjs.map +1 -0
- package/dist/database/adapters/connection-bridge.js +118 -0
- package/dist/database/adapters/connection-bridge.js.map +1 -0
- package/dist/database/adapters/kysely-adapter.cjs +138 -0
- package/dist/database/adapters/kysely-adapter.cjs.map +1 -0
- package/dist/database/adapters/kysely-adapter.js +137 -0
- package/dist/database/adapters/kysely-adapter.js.map +1 -0
- package/dist/database/connection.cjs +277 -0
- package/dist/database/connection.cjs.map +1 -0
- package/dist/database/connection.d.cts +115 -0
- package/dist/database/connection.d.cts.map +1 -0
- package/dist/database/connection.d.ts +115 -0
- package/dist/database/connection.d.ts.map +1 -0
- package/dist/database/connection.js +271 -0
- package/dist/database/connection.js.map +1 -0
- package/dist/database/core-schema.cjs +644 -0
- package/dist/database/core-schema.cjs.map +1 -0
- package/dist/database/core-schema.d.cts +22 -0
- package/dist/database/core-schema.d.cts.map +1 -0
- package/dist/database/core-schema.d.ts +22 -0
- package/dist/database/core-schema.d.ts.map +1 -0
- package/dist/database/core-schema.js +642 -0
- package/dist/database/core-schema.js.map +1 -0
- package/dist/database/index.cjs +4 -0
- package/dist/database/index.d.cts +10 -0
- package/dist/database/index.d.cts.map +1 -0
- package/dist/database/index.d.ts +10 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +5 -0
- package/dist/database/prisma-schema-generator.cjs +219 -0
- package/dist/database/prisma-schema-generator.cjs.map +1 -0
- package/dist/database/prisma-schema-generator.d.cts +19 -0
- package/dist/database/prisma-schema-generator.d.cts.map +1 -0
- package/dist/database/prisma-schema-generator.d.ts +19 -0
- package/dist/database/prisma-schema-generator.d.ts.map +1 -0
- package/dist/database/prisma-schema-generator.js +218 -0
- package/dist/database/prisma-schema-generator.js.map +1 -0
- package/dist/database/schema-generator.cjs +576 -0
- package/dist/database/schema-generator.cjs.map +1 -0
- package/dist/database/schema-generator.d.cts +18 -0
- package/dist/database/schema-generator.d.cts.map +1 -0
- package/dist/database/schema-generator.d.ts +18 -0
- package/dist/database/schema-generator.d.ts.map +1 -0
- package/dist/database/schema-generator.js +571 -0
- package/dist/database/schema-generator.js.map +1 -0
- package/dist/database/schema-merger.cjs +153 -0
- package/dist/database/schema-merger.cjs.map +1 -0
- package/dist/database/schema-merger.d.cts +53 -0
- package/dist/database/schema-merger.d.cts.map +1 -0
- package/dist/database/schema-merger.d.ts +53 -0
- package/dist/database/schema-merger.d.ts.map +1 -0
- package/dist/database/schema-merger.js +152 -0
- package/dist/database/schema-merger.js.map +1 -0
- package/dist/database/schema-metadata.cjs +98 -0
- package/dist/database/schema-metadata.cjs.map +1 -0
- package/dist/database/schema-metadata.js +98 -0
- package/dist/database/schema-metadata.js.map +1 -0
- package/dist/database/schema-mysql.cjs +288 -0
- package/dist/database/schema-mysql.cjs.map +1 -0
- package/dist/database/schema-mysql.d.cts +2117 -0
- package/dist/database/schema-mysql.d.cts.map +1 -0
- package/dist/database/schema-mysql.d.ts +2117 -0
- package/dist/database/schema-mysql.d.ts.map +1 -0
- package/dist/database/schema-mysql.js +263 -0
- package/dist/database/schema-mysql.js.map +1 -0
- package/dist/database/schema-postgres.cjs +312 -0
- package/dist/database/schema-postgres.cjs.map +1 -0
- package/dist/database/schema-postgres.d.cts +2127 -0
- package/dist/database/schema-postgres.d.cts.map +1 -0
- package/dist/database/schema-postgres.d.ts +2127 -0
- package/dist/database/schema-postgres.d.ts.map +1 -0
- package/dist/database/schema-postgres.js +280 -0
- package/dist/database/schema-postgres.js.map +1 -0
- package/dist/database/schema-sqlite.cjs +247 -0
- package/dist/database/schema-sqlite.cjs.map +1 -0
- package/dist/database/schema-sqlite.d.cts +2294 -0
- package/dist/database/schema-sqlite.d.cts.map +1 -0
- package/dist/database/schema-sqlite.d.ts +2294 -0
- package/dist/database/schema-sqlite.d.ts.map +1 -0
- package/dist/database/schema-sqlite.js +222 -0
- package/dist/database/schema-sqlite.js.map +1 -0
- package/dist/database/schema-verification.cjs +123 -0
- package/dist/database/schema-verification.cjs.map +1 -0
- package/dist/database/schema-verification.d.cts +40 -0
- package/dist/database/schema-verification.d.cts.map +1 -0
- package/dist/database/schema-verification.d.ts +40 -0
- package/dist/database/schema-verification.d.ts.map +1 -0
- package/dist/database/schema-verification.js +123 -0
- package/dist/database/schema-verification.js.map +1 -0
- package/dist/database/schema.cjs +3 -0
- package/dist/database/schema.d.cts +3 -0
- package/dist/database/schema.d.ts +3 -0
- package/dist/database/schema.js +4 -0
- package/dist/index.cjs +199 -0
- package/dist/index.d.cts +70 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +56 -0
- package/dist/invect-core.cjs +1688 -0
- package/dist/invect-core.cjs.map +1 -0
- package/dist/invect-core.d.cts +846 -0
- package/dist/invect-core.d.cts.map +1 -0
- package/dist/invect-core.d.ts +846 -0
- package/dist/invect-core.d.ts.map +1 -0
- package/dist/invect-core.js +1688 -0
- package/dist/invect-core.js.map +1 -0
- package/dist/nodes/agent-executor.cjs +881 -0
- package/dist/nodes/agent-executor.cjs.map +1 -0
- package/dist/nodes/agent-executor.d.cts +243 -0
- package/dist/nodes/agent-executor.d.cts.map +1 -0
- package/dist/nodes/agent-executor.d.ts +243 -0
- package/dist/nodes/agent-executor.d.ts.map +1 -0
- package/dist/nodes/agent-executor.js +877 -0
- package/dist/nodes/agent-executor.js.map +1 -0
- package/dist/nodes/base-node.cjs +174 -0
- package/dist/nodes/base-node.cjs.map +1 -0
- package/dist/nodes/base-node.d.cts +125 -0
- package/dist/nodes/base-node.d.cts.map +1 -0
- package/dist/nodes/base-node.d.ts +125 -0
- package/dist/nodes/base-node.d.ts.map +1 -0
- package/dist/nodes/base-node.js +170 -0
- package/dist/nodes/base-node.js.map +1 -0
- package/dist/nodes/executor-registry.cjs +46 -0
- package/dist/nodes/executor-registry.cjs.map +1 -0
- package/dist/nodes/executor-registry.d.cts +18 -0
- package/dist/nodes/executor-registry.d.cts.map +1 -0
- package/dist/nodes/executor-registry.d.ts +18 -0
- package/dist/nodes/executor-registry.d.ts.map +1 -0
- package/dist/nodes/executor-registry.js +46 -0
- package/dist/nodes/executor-registry.js.map +1 -0
- package/dist/nodes/index.cjs +2 -0
- package/dist/nodes/index.d.cts +3 -0
- package/dist/nodes/index.d.ts +3 -0
- package/dist/nodes/index.js +3 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.cjs +110 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.cjs.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.d.cts +42 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.d.cts.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.d.ts +42 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.d.ts.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.js +110 -0
- package/dist/services/agent-tool-executions/agent-tool-execution.service.js.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.cjs +152 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.cjs.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.d.cts +71 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.d.cts.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.d.ts +71 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.d.ts.map +1 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.js +152 -0
- package/dist/services/agent-tool-executions/agent-tool-executions.model.js.map +1 -0
- package/dist/services/agent-tools/agent-tool-registry.cjs +101 -0
- package/dist/services/agent-tools/agent-tool-registry.cjs.map +1 -0
- package/dist/services/agent-tools/agent-tool-registry.d.cts +51 -0
- package/dist/services/agent-tools/agent-tool-registry.d.cts.map +1 -0
- package/dist/services/agent-tools/agent-tool-registry.d.ts +51 -0
- package/dist/services/agent-tools/agent-tool-registry.d.ts.map +1 -0
- package/dist/services/agent-tools/agent-tool-registry.js +98 -0
- package/dist/services/agent-tools/agent-tool-registry.js.map +1 -0
- package/dist/services/agent-tools/builtin/index.cjs +17 -0
- package/dist/services/agent-tools/builtin/index.cjs.map +1 -0
- package/dist/services/agent-tools/builtin/index.js +17 -0
- package/dist/services/agent-tools/builtin/index.js.map +1 -0
- package/dist/services/agent-tools/builtin/json-logic-tool.cjs +73 -0
- package/dist/services/agent-tools/builtin/json-logic-tool.cjs.map +1 -0
- package/dist/services/agent-tools/builtin/json-logic-tool.js +70 -0
- package/dist/services/agent-tools/builtin/json-logic-tool.js.map +1 -0
- package/dist/services/agent-tools/builtin/math-tool.cjs +117 -0
- package/dist/services/agent-tools/builtin/math-tool.cjs.map +1 -0
- package/dist/services/agent-tools/builtin/math-tool.js +116 -0
- package/dist/services/agent-tools/builtin/math-tool.js.map +1 -0
- package/dist/services/agent-tools/index.cjs +2 -0
- package/dist/services/agent-tools/index.js +3 -0
- package/dist/services/ai/ai-types.cjs +37 -0
- package/dist/services/ai/ai-types.cjs.map +1 -0
- package/dist/services/ai/ai-types.d.cts +105 -0
- package/dist/services/ai/ai-types.d.cts.map +1 -0
- package/dist/services/ai/ai-types.d.ts +105 -0
- package/dist/services/ai/ai-types.d.ts.map +1 -0
- package/dist/services/ai/ai-types.js +35 -0
- package/dist/services/ai/ai-types.js.map +1 -0
- package/dist/services/ai/anthropic-adapter.cjs +411 -0
- package/dist/services/ai/anthropic-adapter.cjs.map +1 -0
- package/dist/services/ai/anthropic-adapter.d.cts +1 -0
- package/dist/services/ai/anthropic-adapter.d.ts +1 -0
- package/dist/services/ai/anthropic-adapter.js +409 -0
- package/dist/services/ai/anthropic-adapter.js.map +1 -0
- package/dist/services/ai/base-client.cjs +345 -0
- package/dist/services/ai/base-client.cjs.map +1 -0
- package/dist/services/ai/base-client.d.cts +138 -0
- package/dist/services/ai/base-client.d.cts.map +1 -0
- package/dist/services/ai/base-client.d.ts +138 -0
- package/dist/services/ai/base-client.d.ts.map +1 -0
- package/dist/services/ai/base-client.js +345 -0
- package/dist/services/ai/base-client.js.map +1 -0
- package/dist/services/ai/openai-adapter.cjs +460 -0
- package/dist/services/ai/openai-adapter.cjs.map +1 -0
- package/dist/services/ai/openai-adapter.d.cts +1 -0
- package/dist/services/ai/openai-adapter.d.ts +1 -0
- package/dist/services/ai/openai-adapter.js +458 -0
- package/dist/services/ai/openai-adapter.js.map +1 -0
- package/dist/services/ai/openrouter-adapter.cjs +124 -0
- package/dist/services/ai/openrouter-adapter.cjs.map +1 -0
- package/dist/services/ai/openrouter-adapter.d.cts +1 -0
- package/dist/services/ai/openrouter-adapter.d.ts +1 -0
- package/dist/services/ai/openrouter-adapter.js +122 -0
- package/dist/services/ai/openrouter-adapter.js.map +1 -0
- package/dist/services/ai/provider-adapter.cjs +72 -0
- package/dist/services/ai/provider-adapter.cjs.map +1 -0
- package/dist/services/ai/provider-adapter.d.cts +81 -0
- package/dist/services/ai/provider-adapter.d.cts.map +1 -0
- package/dist/services/ai/provider-adapter.d.ts +81 -0
- package/dist/services/ai/provider-adapter.d.ts.map +1 -0
- package/dist/services/ai/provider-adapter.js +72 -0
- package/dist/services/ai/provider-adapter.js.map +1 -0
- package/dist/services/auth/authorization.service.cjs +259 -0
- package/dist/services/auth/authorization.service.cjs.map +1 -0
- package/dist/services/auth/authorization.service.d.cts +102 -0
- package/dist/services/auth/authorization.service.d.cts.map +1 -0
- package/dist/services/auth/authorization.service.d.ts +102 -0
- package/dist/services/auth/authorization.service.d.ts.map +1 -0
- package/dist/services/auth/authorization.service.js +257 -0
- package/dist/services/auth/authorization.service.js.map +1 -0
- package/dist/services/auth/flow-access.service.cjs +259 -0
- package/dist/services/auth/flow-access.service.cjs.map +1 -0
- package/dist/services/auth/flow-access.service.d.cts +89 -0
- package/dist/services/auth/flow-access.service.d.cts.map +1 -0
- package/dist/services/auth/flow-access.service.d.ts +89 -0
- package/dist/services/auth/flow-access.service.d.ts.map +1 -0
- package/dist/services/auth/flow-access.service.js +259 -0
- package/dist/services/auth/flow-access.service.js.map +1 -0
- package/dist/services/auth/index.d.ts +2 -0
- package/dist/services/batch-jobs/batch-jobs.model.cjs +213 -0
- package/dist/services/batch-jobs/batch-jobs.model.cjs.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.model.d.cts +79 -0
- package/dist/services/batch-jobs/batch-jobs.model.d.cts.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.model.d.ts +79 -0
- package/dist/services/batch-jobs/batch-jobs.model.d.ts.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.model.js +213 -0
- package/dist/services/batch-jobs/batch-jobs.model.js.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.service.cjs +178 -0
- package/dist/services/batch-jobs/batch-jobs.service.cjs.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.service.d.cts +83 -0
- package/dist/services/batch-jobs/batch-jobs.service.d.cts.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.service.d.ts +83 -0
- package/dist/services/batch-jobs/batch-jobs.service.d.ts.map +1 -0
- package/dist/services/batch-jobs/batch-jobs.service.js +178 -0
- package/dist/services/batch-jobs/batch-jobs.service.js.map +1 -0
- package/dist/services/chat/chat-messages.model.cjs +143 -0
- package/dist/services/chat/chat-messages.model.cjs.map +1 -0
- package/dist/services/chat/chat-messages.model.d.cts +43 -0
- package/dist/services/chat/chat-messages.model.d.cts.map +1 -0
- package/dist/services/chat/chat-messages.model.d.ts +43 -0
- package/dist/services/chat/chat-messages.model.d.ts.map +1 -0
- package/dist/services/chat/chat-messages.model.js +142 -0
- package/dist/services/chat/chat-messages.model.js.map +1 -0
- package/dist/services/chat/chat-stream-session.cjs +181 -0
- package/dist/services/chat/chat-stream-session.cjs.map +1 -0
- package/dist/services/chat/chat-stream-session.d.cts +1 -0
- package/dist/services/chat/chat-stream-session.d.ts +1 -0
- package/dist/services/chat/chat-stream-session.js +181 -0
- package/dist/services/chat/chat-stream-session.js.map +1 -0
- package/dist/services/chat/chat-stream.service.cjs +205 -0
- package/dist/services/chat/chat-stream.service.cjs.map +1 -0
- package/dist/services/chat/chat-stream.service.d.cts +84 -0
- package/dist/services/chat/chat-stream.service.d.cts.map +1 -0
- package/dist/services/chat/chat-stream.service.d.ts +84 -0
- package/dist/services/chat/chat-stream.service.d.ts.map +1 -0
- package/dist/services/chat/chat-stream.service.js +205 -0
- package/dist/services/chat/chat-stream.service.js.map +1 -0
- package/dist/services/chat/chat-toolkit.cjs +125 -0
- package/dist/services/chat/chat-toolkit.cjs.map +1 -0
- package/dist/services/chat/chat-toolkit.d.cts +58 -0
- package/dist/services/chat/chat-toolkit.d.cts.map +1 -0
- package/dist/services/chat/chat-toolkit.d.ts +58 -0
- package/dist/services/chat/chat-toolkit.d.ts.map +1 -0
- package/dist/services/chat/chat-toolkit.js +124 -0
- package/dist/services/chat/chat-toolkit.js.map +1 -0
- package/dist/services/chat/chat-types.cjs +24 -0
- package/dist/services/chat/chat-types.cjs.map +1 -0
- package/dist/services/chat/chat-types.d.cts +134 -0
- package/dist/services/chat/chat-types.d.cts.map +1 -0
- package/dist/services/chat/chat-types.d.ts +134 -0
- package/dist/services/chat/chat-types.d.ts.map +1 -0
- package/dist/services/chat/chat-types.js +23 -0
- package/dist/services/chat/chat-types.js.map +1 -0
- package/dist/services/chat/index.cjs +5 -0
- package/dist/services/chat/index.d.cts +3 -0
- package/dist/services/chat/index.d.ts +3 -0
- package/dist/services/chat/index.js +6 -0
- package/dist/services/chat/system-prompt.cjs +223 -0
- package/dist/services/chat/system-prompt.cjs.map +1 -0
- package/dist/services/chat/system-prompt.d.cts +1 -0
- package/dist/services/chat/system-prompt.d.ts +1 -0
- package/dist/services/chat/system-prompt.js +223 -0
- package/dist/services/chat/system-prompt.js.map +1 -0
- package/dist/services/chat/tools/agent-tools.cjs +472 -0
- package/dist/services/chat/tools/agent-tools.cjs.map +1 -0
- package/dist/services/chat/tools/agent-tools.js +471 -0
- package/dist/services/chat/tools/agent-tools.js.map +1 -0
- package/dist/services/chat/tools/context-tools.cjs +252 -0
- package/dist/services/chat/tools/context-tools.cjs.map +1 -0
- package/dist/services/chat/tools/context-tools.js +251 -0
- package/dist/services/chat/tools/context-tools.js.map +1 -0
- package/dist/services/chat/tools/flow-tools.cjs +244 -0
- package/dist/services/chat/tools/flow-tools.cjs.map +1 -0
- package/dist/services/chat/tools/flow-tools.js +243 -0
- package/dist/services/chat/tools/flow-tools.js.map +1 -0
- package/dist/services/chat/tools/index.cjs +22 -0
- package/dist/services/chat/tools/index.cjs.map +1 -0
- package/dist/services/chat/tools/index.js +22 -0
- package/dist/services/chat/tools/index.js.map +1 -0
- package/dist/services/chat/tools/node-tools.cjs +323 -0
- package/dist/services/chat/tools/node-tools.cjs.map +1 -0
- package/dist/services/chat/tools/node-tools.js +322 -0
- package/dist/services/chat/tools/node-tools.js.map +1 -0
- package/dist/services/chat/tools/plan-tools.cjs +94 -0
- package/dist/services/chat/tools/plan-tools.cjs.map +1 -0
- package/dist/services/chat/tools/plan-tools.js +93 -0
- package/dist/services/chat/tools/plan-tools.js.map +1 -0
- package/dist/services/chat/tools/run-tools.cjs +121 -0
- package/dist/services/chat/tools/run-tools.cjs.map +1 -0
- package/dist/services/chat/tools/run-tools.js +120 -0
- package/dist/services/chat/tools/run-tools.js.map +1 -0
- package/dist/services/credentials/credentials.model.cjs +313 -0
- package/dist/services/credentials/credentials.model.cjs.map +1 -0
- package/dist/services/credentials/credentials.model.d.cts +27 -0
- package/dist/services/credentials/credentials.model.d.cts.map +1 -0
- package/dist/services/credentials/credentials.model.d.ts +27 -0
- package/dist/services/credentials/credentials.model.d.ts.map +1 -0
- package/dist/services/credentials/credentials.model.js +312 -0
- package/dist/services/credentials/credentials.model.js.map +1 -0
- package/dist/services/credentials/credentials.service.cjs +358 -0
- package/dist/services/credentials/credentials.service.cjs.map +1 -0
- package/dist/services/credentials/credentials.service.d.cts +156 -0
- package/dist/services/credentials/credentials.service.d.cts.map +1 -0
- package/dist/services/credentials/credentials.service.d.ts +156 -0
- package/dist/services/credentials/credentials.service.d.ts.map +1 -0
- package/dist/services/credentials/credentials.service.js +357 -0
- package/dist/services/credentials/credentials.service.js.map +1 -0
- package/dist/services/credentials/encryption.service.cjs +121 -0
- package/dist/services/credentials/encryption.service.cjs.map +1 -0
- package/dist/services/credentials/encryption.service.d.cts +70 -0
- package/dist/services/credentials/encryption.service.d.cts.map +1 -0
- package/dist/services/credentials/encryption.service.d.ts +70 -0
- package/dist/services/credentials/encryption.service.d.ts.map +1 -0
- package/dist/services/credentials/encryption.service.js +119 -0
- package/dist/services/credentials/encryption.service.js.map +1 -0
- package/dist/services/credentials/index.d.cts +4 -0
- package/dist/services/credentials/index.d.ts +4 -0
- package/dist/services/credentials/oauth2-providers.cjs +668 -0
- package/dist/services/credentials/oauth2-providers.cjs.map +1 -0
- package/dist/services/credentials/oauth2-providers.d.cts +39 -0
- package/dist/services/credentials/oauth2-providers.d.cts.map +1 -0
- package/dist/services/credentials/oauth2-providers.d.ts +39 -0
- package/dist/services/credentials/oauth2-providers.d.ts.map +1 -0
- package/dist/services/credentials/oauth2-providers.js +667 -0
- package/dist/services/credentials/oauth2-providers.js.map +1 -0
- package/dist/services/credentials/oauth2.service.cjs +252 -0
- package/dist/services/credentials/oauth2.service.cjs.map +1 -0
- package/dist/services/credentials/oauth2.service.d.cts +132 -0
- package/dist/services/credentials/oauth2.service.d.cts.map +1 -0
- package/dist/services/credentials/oauth2.service.d.ts +132 -0
- package/dist/services/credentials/oauth2.service.d.ts.map +1 -0
- package/dist/services/credentials/oauth2.service.js +251 -0
- package/dist/services/credentials/oauth2.service.js.map +1 -0
- package/dist/services/database/database.service.cjs +469 -0
- package/dist/services/database/database.service.cjs.map +1 -0
- package/dist/services/database/database.service.d.cts +162 -0
- package/dist/services/database/database.service.d.cts.map +1 -0
- package/dist/services/database/database.service.d.ts +162 -0
- package/dist/services/database/database.service.d.ts.map +1 -0
- package/dist/services/database/database.service.js +469 -0
- package/dist/services/database/database.service.js.map +1 -0
- package/dist/services/execution-event-bus.cjs +80 -0
- package/dist/services/execution-event-bus.cjs.map +1 -0
- package/dist/services/execution-event-bus.d.cts +57 -0
- package/dist/services/execution-event-bus.d.cts.map +1 -0
- package/dist/services/execution-event-bus.d.ts +57 -0
- package/dist/services/execution-event-bus.d.ts.map +1 -0
- package/dist/services/execution-event-bus.js +77 -0
- package/dist/services/execution-event-bus.js.map +1 -0
- package/dist/services/flow-orchestration/flow-run-coordinator.cjs +499 -0
- package/dist/services/flow-orchestration/flow-run-coordinator.cjs.map +1 -0
- package/dist/services/flow-orchestration/flow-run-coordinator.js +499 -0
- package/dist/services/flow-orchestration/flow-run-coordinator.js.map +1 -0
- package/dist/services/flow-orchestration/node-execution-coordinator.cjs +657 -0
- package/dist/services/flow-orchestration/node-execution-coordinator.cjs.map +1 -0
- package/dist/services/flow-orchestration/node-execution-coordinator.js +657 -0
- package/dist/services/flow-orchestration/node-execution-coordinator.js.map +1 -0
- package/dist/services/flow-orchestration.service.cjs +493 -0
- package/dist/services/flow-orchestration.service.cjs.map +1 -0
- package/dist/services/flow-orchestration.service.d.cts +149 -0
- package/dist/services/flow-orchestration.service.d.cts.map +1 -0
- package/dist/services/flow-orchestration.service.d.ts +149 -0
- package/dist/services/flow-orchestration.service.d.ts.map +1 -0
- package/dist/services/flow-orchestration.service.js +493 -0
- package/dist/services/flow-orchestration.service.js.map +1 -0
- package/dist/services/flow-runs/flow-runs.model.cjs +403 -0
- package/dist/services/flow-runs/flow-runs.model.cjs.map +1 -0
- package/dist/services/flow-runs/flow-runs.model.d.cts +113 -0
- package/dist/services/flow-runs/flow-runs.model.d.cts.map +1 -0
- package/dist/services/flow-runs/flow-runs.model.d.ts +113 -0
- package/dist/services/flow-runs/flow-runs.model.d.ts.map +1 -0
- package/dist/services/flow-runs/flow-runs.model.js +403 -0
- package/dist/services/flow-runs/flow-runs.model.js.map +1 -0
- package/dist/services/flow-runs/flow-runs.service.cjs +273 -0
- package/dist/services/flow-runs/flow-runs.service.cjs.map +1 -0
- package/dist/services/flow-runs/flow-runs.service.d.cts +129 -0
- package/dist/services/flow-runs/flow-runs.service.d.cts.map +1 -0
- package/dist/services/flow-runs/flow-runs.service.d.ts +129 -0
- package/dist/services/flow-runs/flow-runs.service.d.ts.map +1 -0
- package/dist/services/flow-runs/flow-runs.service.js +273 -0
- package/dist/services/flow-runs/flow-runs.service.js.map +1 -0
- package/dist/services/flow-validator.cjs +149 -0
- package/dist/services/flow-validator.cjs.map +1 -0
- package/dist/services/flow-validator.js +149 -0
- package/dist/services/flow-validator.js.map +1 -0
- package/dist/services/flow-versions/flow-versions.model.cjs +231 -0
- package/dist/services/flow-versions/flow-versions.model.cjs.map +1 -0
- package/dist/services/flow-versions/flow-versions.model.d.cts +55 -0
- package/dist/services/flow-versions/flow-versions.model.d.cts.map +1 -0
- package/dist/services/flow-versions/flow-versions.model.d.ts +55 -0
- package/dist/services/flow-versions/flow-versions.model.d.ts.map +1 -0
- package/dist/services/flow-versions/flow-versions.model.js +231 -0
- package/dist/services/flow-versions/flow-versions.model.js.map +1 -0
- package/dist/services/flow-versions/flow-versions.service.cjs +72 -0
- package/dist/services/flow-versions/flow-versions.service.cjs.map +1 -0
- package/dist/services/flow-versions/flow-versions.service.d.cts +63 -0
- package/dist/services/flow-versions/flow-versions.service.d.cts.map +1 -0
- package/dist/services/flow-versions/flow-versions.service.d.ts +63 -0
- package/dist/services/flow-versions/flow-versions.service.d.ts.map +1 -0
- package/dist/services/flow-versions/flow-versions.service.js +72 -0
- package/dist/services/flow-versions/flow-versions.service.js.map +1 -0
- package/dist/services/flow-versions/schemas-fresh.cjs +90 -0
- package/dist/services/flow-versions/schemas-fresh.cjs.map +1 -0
- package/dist/services/flow-versions/schemas-fresh.d.cts +201 -0
- package/dist/services/flow-versions/schemas-fresh.d.cts.map +1 -0
- package/dist/services/flow-versions/schemas-fresh.d.ts +201 -0
- package/dist/services/flow-versions/schemas-fresh.d.ts.map +1 -0
- package/dist/services/flow-versions/schemas-fresh.js +85 -0
- package/dist/services/flow-versions/schemas-fresh.js.map +1 -0
- package/dist/services/flows/flows.model.cjs +273 -0
- package/dist/services/flows/flows.model.cjs.map +1 -0
- package/dist/services/flows/flows.model.d.cts +105 -0
- package/dist/services/flows/flows.model.d.cts.map +1 -0
- package/dist/services/flows/flows.model.d.ts +105 -0
- package/dist/services/flows/flows.model.d.ts.map +1 -0
- package/dist/services/flows/flows.model.js +273 -0
- package/dist/services/flows/flows.model.js.map +1 -0
- package/dist/services/flows/flows.service.cjs +134 -0
- package/dist/services/flows/flows.service.cjs.map +1 -0
- package/dist/services/flows/flows.service.d.cts +105 -0
- package/dist/services/flows/flows.service.d.cts.map +1 -0
- package/dist/services/flows/flows.service.d.ts +105 -0
- package/dist/services/flows/flows.service.d.ts.map +1 -0
- package/dist/services/flows/flows.service.js +134 -0
- package/dist/services/flows/flows.service.js.map +1 -0
- package/dist/services/graph.service.cjs +375 -0
- package/dist/services/graph.service.cjs.map +1 -0
- package/dist/services/graph.service.d.cts +90 -0
- package/dist/services/graph.service.d.cts.map +1 -0
- package/dist/services/graph.service.d.ts +90 -0
- package/dist/services/graph.service.d.ts.map +1 -0
- package/dist/services/graph.service.js +375 -0
- package/dist/services/graph.service.js.map +1 -0
- package/dist/services/node-data.service.cjs +232 -0
- package/dist/services/node-data.service.cjs.map +1 -0
- package/dist/services/node-data.service.d.cts +119 -0
- package/dist/services/node-data.service.d.cts.map +1 -0
- package/dist/services/node-data.service.d.ts +119 -0
- package/dist/services/node-data.service.d.ts.map +1 -0
- package/dist/services/node-data.service.js +230 -0
- package/dist/services/node-data.service.js.map +1 -0
- package/dist/services/node-executions/node-execution.service.cjs +236 -0
- package/dist/services/node-executions/node-execution.service.cjs.map +1 -0
- package/dist/services/node-executions/node-execution.service.d.cts +126 -0
- package/dist/services/node-executions/node-execution.service.d.cts.map +1 -0
- package/dist/services/node-executions/node-execution.service.d.ts +126 -0
- package/dist/services/node-executions/node-execution.service.d.ts.map +1 -0
- package/dist/services/node-executions/node-execution.service.js +236 -0
- package/dist/services/node-executions/node-execution.service.js.map +1 -0
- package/dist/services/node-executions/node-executions.model.cjs +300 -0
- package/dist/services/node-executions/node-executions.model.cjs.map +1 -0
- package/dist/services/node-executions/node-executions.model.d.cts +102 -0
- package/dist/services/node-executions/node-executions.model.d.cts.map +1 -0
- package/dist/services/node-executions/node-executions.model.d.ts +102 -0
- package/dist/services/node-executions/node-executions.model.d.ts.map +1 -0
- package/dist/services/node-executions/node-executions.model.js +300 -0
- package/dist/services/node-executions/node-executions.model.js.map +1 -0
- package/dist/services/plugin-manager.cjs +205 -0
- package/dist/services/plugin-manager.cjs.map +1 -0
- package/dist/services/plugin-manager.js +205 -0
- package/dist/services/plugin-manager.js.map +1 -0
- package/dist/services/react-flow-renderer.service.cjs +236 -0
- package/dist/services/react-flow-renderer.service.cjs.map +1 -0
- package/dist/services/react-flow-renderer.service.d.cts +149 -0
- package/dist/services/react-flow-renderer.service.d.cts.map +1 -0
- package/dist/services/react-flow-renderer.service.d.ts +149 -0
- package/dist/services/react-flow-renderer.service.d.ts.map +1 -0
- package/dist/services/react-flow-renderer.service.js +235 -0
- package/dist/services/react-flow-renderer.service.js.map +1 -0
- package/dist/services/service-factory.cjs +301 -0
- package/dist/services/service-factory.cjs.map +1 -0
- package/dist/services/service-factory.d.cts +172 -0
- package/dist/services/service-factory.d.cts.map +1 -0
- package/dist/services/service-factory.d.ts +172 -0
- package/dist/services/service-factory.d.ts.map +1 -0
- package/dist/services/service-factory.js +301 -0
- package/dist/services/service-factory.js.map +1 -0
- package/dist/services/templating/index.cjs +2 -0
- package/dist/services/templating/index.d.ts +2 -0
- package/dist/services/templating/index.js +3 -0
- package/dist/services/templating/js-expression.service.cjs +148 -0
- package/dist/services/templating/js-expression.service.cjs.map +1 -0
- package/dist/services/templating/js-expression.service.d.cts +61 -0
- package/dist/services/templating/js-expression.service.d.cts.map +1 -0
- package/dist/services/templating/js-expression.service.d.ts +60 -0
- package/dist/services/templating/js-expression.service.d.ts.map +1 -0
- package/dist/services/templating/js-expression.service.js +143 -0
- package/dist/services/templating/js-expression.service.js.map +1 -0
- package/dist/services/templating/template.service.cjs +182 -0
- package/dist/services/templating/template.service.cjs.map +1 -0
- package/dist/services/templating/template.service.d.cts +62 -0
- package/dist/services/templating/template.service.d.cts.map +1 -0
- package/dist/services/templating/template.service.d.ts +62 -0
- package/dist/services/templating/template.service.d.ts.map +1 -0
- package/dist/services/templating/template.service.js +180 -0
- package/dist/services/templating/template.service.js.map +1 -0
- package/dist/services/triggers/cron-scheduler.service.cjs +141 -0
- package/dist/services/triggers/cron-scheduler.service.cjs.map +1 -0
- package/dist/services/triggers/cron-scheduler.service.d.cts +36 -0
- package/dist/services/triggers/cron-scheduler.service.d.cts.map +1 -0
- package/dist/services/triggers/cron-scheduler.service.d.ts +36 -0
- package/dist/services/triggers/cron-scheduler.service.d.ts.map +1 -0
- package/dist/services/triggers/cron-scheduler.service.js +140 -0
- package/dist/services/triggers/cron-scheduler.service.js.map +1 -0
- package/dist/services/triggers/flow-triggers.model.cjs +241 -0
- package/dist/services/triggers/flow-triggers.model.cjs.map +1 -0
- package/dist/services/triggers/flow-triggers.model.d.cts +53 -0
- package/dist/services/triggers/flow-triggers.model.d.cts.map +1 -0
- package/dist/services/triggers/flow-triggers.model.d.ts +53 -0
- package/dist/services/triggers/flow-triggers.model.d.ts.map +1 -0
- package/dist/services/triggers/flow-triggers.model.js +241 -0
- package/dist/services/triggers/flow-triggers.model.js.map +1 -0
- package/dist/services/triggers/flow-triggers.service.cjs +218 -0
- package/dist/services/triggers/flow-triggers.service.cjs.map +1 -0
- package/dist/services/triggers/flow-triggers.service.d.cts +77 -0
- package/dist/services/triggers/flow-triggers.service.d.cts.map +1 -0
- package/dist/services/triggers/flow-triggers.service.d.ts +77 -0
- package/dist/services/triggers/flow-triggers.service.d.ts.map +1 -0
- package/dist/services/triggers/flow-triggers.service.js +217 -0
- package/dist/services/triggers/flow-triggers.service.js.map +1 -0
- package/dist/services/triggers/index.cjs +3 -0
- package/dist/services/triggers/index.d.cts +4 -0
- package/dist/services/triggers/index.d.ts +4 -0
- package/dist/services/triggers/index.js +4 -0
- package/dist/services/triggers/trigger.types.d.cts +63 -0
- package/dist/services/triggers/trigger.types.d.cts.map +1 -0
- package/dist/services/triggers/trigger.types.d.ts +63 -0
- package/dist/services/triggers/trigger.types.d.ts.map +1 -0
- package/dist/types/agent-tool.types.cjs +20 -0
- package/dist/types/agent-tool.types.cjs.map +1 -0
- package/dist/types/agent-tool.types.d.cts +211 -0
- package/dist/types/agent-tool.types.d.cts.map +1 -0
- package/dist/types/agent-tool.types.d.ts +211 -0
- package/dist/types/agent-tool.types.d.ts.map +1 -0
- package/dist/types/agent-tool.types.js +18 -0
- package/dist/types/agent-tool.types.js.map +1 -0
- package/dist/types/auth.types.cjs +76 -0
- package/dist/types/auth.types.cjs.map +1 -0
- package/dist/types/auth.types.d.cts +235 -0
- package/dist/types/auth.types.d.cts.map +1 -0
- package/dist/types/auth.types.d.ts +235 -0
- package/dist/types/auth.types.d.ts.map +1 -0
- package/dist/types/auth.types.js +75 -0
- package/dist/types/auth.types.js.map +1 -0
- package/dist/types/base.cjs +25 -0
- package/dist/types/base.cjs.map +1 -0
- package/dist/types/base.d.cts +21 -0
- package/dist/types/base.d.cts.map +1 -0
- package/dist/types/base.d.ts +21 -0
- package/dist/types/base.d.ts.map +1 -0
- package/dist/types/base.js +24 -0
- package/dist/types/base.js.map +1 -0
- package/dist/types/common/errors.types.cjs +46 -0
- package/dist/types/common/errors.types.cjs.map +1 -0
- package/dist/types/common/errors.types.js +44 -0
- package/dist/types/common/errors.types.js.map +1 -0
- package/dist/types/graph-node-types.cjs +46 -0
- package/dist/types/graph-node-types.cjs.map +1 -0
- package/dist/types/graph-node-types.d.cts +32 -0
- package/dist/types/graph-node-types.d.cts.map +1 -0
- package/dist/types/graph-node-types.d.ts +32 -0
- package/dist/types/graph-node-types.d.ts.map +1 -0
- package/dist/types/graph-node-types.js +45 -0
- package/dist/types/graph-node-types.js.map +1 -0
- package/dist/types/node-config-update.types.d.cts +33 -0
- package/dist/types/node-config-update.types.d.cts.map +1 -0
- package/dist/types/node-config-update.types.d.ts +33 -0
- package/dist/types/node-config-update.types.d.ts.map +1 -0
- package/dist/types/node-definition.types.d.cts +88 -0
- package/dist/types/node-definition.types.d.cts.map +1 -0
- package/dist/types/node-definition.types.d.ts +88 -0
- package/dist/types/node-definition.types.d.ts.map +1 -0
- package/dist/types/node-execution.types.d.cts +39 -0
- package/dist/types/node-execution.types.d.cts.map +1 -0
- package/dist/types/node-execution.types.d.ts +39 -0
- package/dist/types/node-execution.types.d.ts.map +1 -0
- package/dist/types/node-io-types.cjs +19 -0
- package/dist/types/node-io-types.cjs.map +1 -0
- package/dist/types/node-io-types.d.cts +65 -0
- package/dist/types/node-io-types.d.cts.map +1 -0
- package/dist/types/node-io-types.d.ts +65 -0
- package/dist/types/node-io-types.d.ts.map +1 -0
- package/dist/types/node-io-types.js +18 -0
- package/dist/types/node-io-types.js.map +1 -0
- package/dist/types/node-output-schemas.cjs +51 -0
- package/dist/types/node-output-schemas.cjs.map +1 -0
- package/dist/types/node-output-schemas.js +50 -0
- package/dist/types/node-output-schemas.js.map +1 -0
- package/dist/types/plugin.types.d.cts +654 -0
- package/dist/types/plugin.types.d.cts.map +1 -0
- package/dist/types/plugin.types.d.ts +654 -0
- package/dist/types/plugin.types.d.ts.map +1 -0
- package/dist/types/schemas/flow/create-flow-version.schema.cjs +1 -0
- package/dist/types/schemas/flow/create-flow-version.schema.d.ts +1 -0
- package/dist/types/schemas/flow/create-flow-version.schema.js +2 -0
- package/dist/types/schemas/flow/create-flow.schema.cjs +9 -0
- package/dist/types/schemas/flow/create-flow.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/create-flow.schema.d.cts +14 -0
- package/dist/types/schemas/flow/create-flow.schema.d.cts.map +1 -0
- package/dist/types/schemas/flow/create-flow.schema.d.ts +14 -0
- package/dist/types/schemas/flow/create-flow.schema.d.ts.map +1 -0
- package/dist/types/schemas/flow/create-flow.schema.js +10 -0
- package/dist/types/schemas/flow/create-flow.schema.js.map +1 -0
- package/dist/types/schemas/flow/delete-flow.schema.cjs +11 -0
- package/dist/types/schemas/flow/delete-flow.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/delete-flow.schema.d.ts +1 -0
- package/dist/types/schemas/flow/delete-flow.schema.js +11 -0
- package/dist/types/schemas/flow/delete-flow.schema.js.map +1 -0
- package/dist/types/schemas/flow/flow-executions.schema.cjs +36 -0
- package/dist/types/schemas/flow/flow-executions.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/flow-executions.schema.d.ts +1 -0
- package/dist/types/schemas/flow/flow-executions.schema.js +35 -0
- package/dist/types/schemas/flow/flow-executions.schema.js.map +1 -0
- package/dist/types/schemas/flow/get-flow-by-id-response.schema.cjs +7 -0
- package/dist/types/schemas/flow/get-flow-by-id-response.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/get-flow-by-id-response.schema.d.ts +1 -0
- package/dist/types/schemas/flow/get-flow-by-id-response.schema.js +7 -0
- package/dist/types/schemas/flow/get-flow-by-id-response.schema.js.map +1 -0
- package/dist/types/schemas/flow/get-flow-versions-response.schema.cjs +1 -0
- package/dist/types/schemas/flow/get-flow-versions-response.schema.d.ts +1 -0
- package/dist/types/schemas/flow/get-flow-versions-response.schema.js +2 -0
- package/dist/types/schemas/flow/get-flows-response.schema.cjs +6 -0
- package/dist/types/schemas/flow/get-flows-response.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/get-flows-response.schema.d.ts +1 -0
- package/dist/types/schemas/flow/get-flows-response.schema.js +7 -0
- package/dist/types/schemas/flow/get-flows-response.schema.js.map +1 -0
- package/dist/types/schemas/flow/index.cjs +9 -0
- package/dist/types/schemas/flow/index.d.ts +1 -0
- package/dist/types/schemas/flow/index.js +10 -0
- package/dist/types/schemas/flow/update-flow.schema.cjs +1 -0
- package/dist/types/schemas/flow/update-flow.schema.d.ts +1 -0
- package/dist/types/schemas/flow/update-flow.schema.js +2 -0
- package/dist/types/schemas/flow/validate-flow.schema.cjs +19 -0
- package/dist/types/schemas/flow/validate-flow.schema.cjs.map +1 -0
- package/dist/types/schemas/flow/validate-flow.schema.d.ts +1 -0
- package/dist/types/schemas/flow/validate-flow.schema.js +19 -0
- package/dist/types/schemas/flow/validate-flow.schema.js.map +1 -0
- package/dist/types/schemas/index.cjs +3 -0
- package/dist/types/schemas/index.d.ts +2 -0
- package/dist/types/schemas/index.js +4 -0
- package/dist/types/schemas/pagination-sort-filter.cjs +56 -0
- package/dist/types/schemas/pagination-sort-filter.cjs.map +1 -0
- package/dist/types/schemas/pagination-sort-filter.d.cts +38 -0
- package/dist/types/schemas/pagination-sort-filter.d.cts.map +1 -0
- package/dist/types/schemas/pagination-sort-filter.d.ts +38 -0
- package/dist/types/schemas/pagination-sort-filter.d.ts.map +1 -0
- package/dist/types/schemas/pagination-sort-filter.js +50 -0
- package/dist/types/schemas/pagination-sort-filter.js.map +1 -0
- package/dist/types/schemas-fresh/invect-config.cjs +181 -0
- package/dist/types/schemas-fresh/invect-config.cjs.map +1 -0
- package/dist/types/schemas-fresh/invect-config.d.cts +207 -0
- package/dist/types/schemas-fresh/invect-config.d.cts.map +1 -0
- package/dist/types/schemas-fresh/invect-config.d.ts +207 -0
- package/dist/types/schemas-fresh/invect-config.d.ts.map +1 -0
- package/dist/types/schemas-fresh/invect-config.js +174 -0
- package/dist/types/schemas-fresh/invect-config.js.map +1 -0
- package/dist/types/validation/common.schemas.cjs +41 -0
- package/dist/types/validation/common.schemas.cjs.map +1 -0
- package/dist/types/validation/common.schemas.js +39 -0
- package/dist/types/validation/common.schemas.js.map +1 -0
- package/dist/types/validation/flow.schemas.cjs +49 -0
- package/dist/types/validation/flow.schemas.cjs.map +1 -0
- package/dist/types/validation/flow.schemas.js +46 -0
- package/dist/types/validation/flow.schemas.js.map +1 -0
- package/dist/types/validation.cjs +49 -0
- package/dist/types/validation.cjs.map +1 -0
- package/dist/types/validation.d.cts +49 -0
- package/dist/types/validation.d.cts.map +1 -0
- package/dist/types/validation.d.ts +49 -0
- package/dist/types/validation.d.ts.map +1 -0
- package/dist/types/validation.js +48 -0
- package/dist/types/validation.js.map +1 -0
- package/dist/types-export.cjs +11 -0
- package/dist/types-export.d.cts +25 -0
- package/dist/types-export.d.ts +25 -0
- package/dist/types-export.js +5 -0
- package/dist/types-fresh.cjs +9 -0
- package/dist/types-fresh.cjs.map +1 -0
- package/dist/types-fresh.d.cts +129 -0
- package/dist/types-fresh.d.cts.map +1 -0
- package/dist/types-fresh.d.ts +129 -0
- package/dist/types-fresh.d.ts.map +1 -0
- package/dist/types-fresh.js +8 -0
- package/dist/types-fresh.js.map +1 -0
- package/dist/utils/id-generator.cjs +34 -0
- package/dist/utils/id-generator.cjs.map +1 -0
- package/dist/utils/id-generator.js +34 -0
- package/dist/utils/id-generator.js.map +1 -0
- package/dist/utils/logger.cjs +285 -0
- package/dist/utils/logger.cjs.map +1 -0
- package/dist/utils/logger.d.cts +161 -0
- package/dist/utils/logger.d.cts.map +1 -0
- package/dist/utils/logger.d.ts +160 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +282 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/node-slug.cjs +13 -0
- package/dist/utils/node-slug.cjs.map +1 -0
- package/dist/utils/node-slug.d.cts +8 -0
- package/dist/utils/node-slug.d.cts.map +1 -0
- package/dist/utils/node-slug.d.ts +8 -0
- package/dist/utils/node-slug.d.ts.map +1 -0
- package/dist/utils/node-slug.js +13 -0
- package/dist/utils/node-slug.js.map +1 -0
- package/dist/utils/provider-detection.cjs +72 -0
- package/dist/utils/provider-detection.cjs.map +1 -0
- package/dist/utils/provider-detection.js +72 -0
- package/dist/utils/provider-detection.js.map +1 -0
- package/dist/utils/url-safe-id.cjs +52 -0
- package/dist/utils/url-safe-id.cjs.map +1 -0
- package/dist/utils/url-safe-id.js +52 -0
- package/dist/utils/url-safe-id.js.map +1 -0
- package/package.json +121 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { defineAction } from "../define-action.js";
|
|
2
|
+
import { GITHUB_PROVIDER } from "../providers.js";
|
|
3
|
+
import { z } from "zod/v4";
|
|
4
|
+
//#region src/actions/github/create-or-update-file.ts
|
|
5
|
+
/**
|
|
6
|
+
* github.create_or_update_file — Create or update a file in a GitHub repository
|
|
7
|
+
*
|
|
8
|
+
* Creates a new file or updates an existing file in a repository.
|
|
9
|
+
* When updating, the SHA of the existing file is required.
|
|
10
|
+
* Requires a GitHub OAuth2 credential with repo scope.
|
|
11
|
+
*/
|
|
12
|
+
const GITHUB_API_BASE = "https://api.github.com";
|
|
13
|
+
const githubCreateOrUpdateFileAction = defineAction({
|
|
14
|
+
id: "github.create_or_update_file",
|
|
15
|
+
name: "Create or Update File",
|
|
16
|
+
description: "Create a new file or update an existing file in a GitHub repository with a commit message.",
|
|
17
|
+
provider: GITHUB_PROVIDER,
|
|
18
|
+
actionCategory: "write",
|
|
19
|
+
credential: {
|
|
20
|
+
required: true,
|
|
21
|
+
type: "oauth2",
|
|
22
|
+
oauth2Provider: "github",
|
|
23
|
+
description: "GitHub OAuth2 credential with repo scope"
|
|
24
|
+
},
|
|
25
|
+
params: {
|
|
26
|
+
schema: z.object({
|
|
27
|
+
credentialId: z.string().min(1, "GitHub credential is required"),
|
|
28
|
+
owner: z.string().min(1, "Repository owner is required"),
|
|
29
|
+
repo: z.string().min(1, "Repository name is required"),
|
|
30
|
+
path: z.string().min(1, "File path is required"),
|
|
31
|
+
content: z.string().min(1, "File content is required"),
|
|
32
|
+
message: z.string().min(1, "Commit message is required"),
|
|
33
|
+
branch: z.string().optional().default(""),
|
|
34
|
+
sha: z.string().optional().default(""),
|
|
35
|
+
committerName: z.string().optional().default(""),
|
|
36
|
+
committerEmail: z.string().optional().default("")
|
|
37
|
+
}),
|
|
38
|
+
fields: [
|
|
39
|
+
{
|
|
40
|
+
name: "credentialId",
|
|
41
|
+
label: "GitHub Credential",
|
|
42
|
+
type: "text",
|
|
43
|
+
required: true,
|
|
44
|
+
description: "GitHub OAuth2 credential for authentication",
|
|
45
|
+
aiProvided: false
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "owner",
|
|
49
|
+
label: "Owner",
|
|
50
|
+
type: "text",
|
|
51
|
+
required: true,
|
|
52
|
+
placeholder: "octocat",
|
|
53
|
+
description: "Repository owner (user or organisation)",
|
|
54
|
+
aiProvided: true
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "repo",
|
|
58
|
+
label: "Repository",
|
|
59
|
+
type: "text",
|
|
60
|
+
required: true,
|
|
61
|
+
placeholder: "hello-world",
|
|
62
|
+
description: "Repository name",
|
|
63
|
+
aiProvided: true
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "path",
|
|
67
|
+
label: "File Path",
|
|
68
|
+
type: "text",
|
|
69
|
+
required: true,
|
|
70
|
+
placeholder: "docs/README.md",
|
|
71
|
+
description: "Path for the file in the repository",
|
|
72
|
+
aiProvided: true
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "content",
|
|
76
|
+
label: "Content",
|
|
77
|
+
type: "textarea",
|
|
78
|
+
required: true,
|
|
79
|
+
placeholder: "# Hello World",
|
|
80
|
+
description: "File content (plain text). Supports Nunjucks templating.",
|
|
81
|
+
aiProvided: true
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "message",
|
|
85
|
+
label: "Commit Message",
|
|
86
|
+
type: "text",
|
|
87
|
+
required: true,
|
|
88
|
+
placeholder: "Add README.md",
|
|
89
|
+
description: "Commit message for this change",
|
|
90
|
+
aiProvided: true
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "branch",
|
|
94
|
+
label: "Branch",
|
|
95
|
+
type: "text",
|
|
96
|
+
placeholder: "main",
|
|
97
|
+
description: "Target branch (uses default branch if empty)",
|
|
98
|
+
aiProvided: true
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "sha",
|
|
102
|
+
label: "File SHA (for updates)",
|
|
103
|
+
type: "text",
|
|
104
|
+
placeholder: "abc123...",
|
|
105
|
+
description: "SHA of the existing file (required when updating, omit when creating new)",
|
|
106
|
+
extended: true,
|
|
107
|
+
aiProvided: true
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: "committerName",
|
|
111
|
+
label: "Committer Name",
|
|
112
|
+
type: "text",
|
|
113
|
+
placeholder: "Bot",
|
|
114
|
+
description: "Custom committer name (uses authenticated user if empty)",
|
|
115
|
+
extended: true
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "committerEmail",
|
|
119
|
+
label: "Committer Email",
|
|
120
|
+
type: "text",
|
|
121
|
+
placeholder: "bot@example.com",
|
|
122
|
+
description: "Custom committer email (uses authenticated user if empty)",
|
|
123
|
+
extended: true
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
tags: [
|
|
128
|
+
"github",
|
|
129
|
+
"file",
|
|
130
|
+
"create",
|
|
131
|
+
"update",
|
|
132
|
+
"commit",
|
|
133
|
+
"development",
|
|
134
|
+
"oauth2"
|
|
135
|
+
],
|
|
136
|
+
async execute(params, context) {
|
|
137
|
+
const { credentialId, owner, repo, path, content, message, branch, sha, committerName, committerEmail } = params;
|
|
138
|
+
let credential = context.credential;
|
|
139
|
+
if (!credential && context.functions?.getCredential) credential = await context.functions.getCredential(credentialId);
|
|
140
|
+
if (!credential) return {
|
|
141
|
+
success: false,
|
|
142
|
+
error: `Credential not found: ${credentialId}. Please create a GitHub OAuth2 credential.`
|
|
143
|
+
};
|
|
144
|
+
const accessToken = credential.config?.accessToken ?? credential.config?.token;
|
|
145
|
+
if (!accessToken) return {
|
|
146
|
+
success: false,
|
|
147
|
+
error: "No valid access token in credential. Please re-authorize the GitHub credential."
|
|
148
|
+
};
|
|
149
|
+
context.logger.debug("Creating/updating file on GitHub", {
|
|
150
|
+
owner,
|
|
151
|
+
repo,
|
|
152
|
+
path
|
|
153
|
+
});
|
|
154
|
+
try {
|
|
155
|
+
const requestBody = {
|
|
156
|
+
message,
|
|
157
|
+
content: Buffer.from(content, "utf-8").toString("base64")
|
|
158
|
+
};
|
|
159
|
+
if (branch) requestBody.branch = branch;
|
|
160
|
+
if (sha) requestBody.sha = sha;
|
|
161
|
+
if (committerName && committerEmail) requestBody.committer = {
|
|
162
|
+
name: committerName,
|
|
163
|
+
email: committerEmail
|
|
164
|
+
};
|
|
165
|
+
const response = await fetch(`${GITHUB_API_BASE}/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/contents/${path}`, {
|
|
166
|
+
method: "PUT",
|
|
167
|
+
headers: {
|
|
168
|
+
Authorization: `Bearer ${accessToken}`,
|
|
169
|
+
Accept: "application/vnd.github+json",
|
|
170
|
+
"Content-Type": "application/json",
|
|
171
|
+
"X-GitHub-Api-Version": "2022-11-28"
|
|
172
|
+
},
|
|
173
|
+
body: JSON.stringify(requestBody)
|
|
174
|
+
});
|
|
175
|
+
if (!response.ok) {
|
|
176
|
+
const errorText = await response.text();
|
|
177
|
+
return {
|
|
178
|
+
success: false,
|
|
179
|
+
error: `GitHub API error: ${response.status} ${response.statusText} - ${errorText}`
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
const result = await response.json();
|
|
183
|
+
return {
|
|
184
|
+
success: true,
|
|
185
|
+
output: {
|
|
186
|
+
path: result.content.path,
|
|
187
|
+
sha: result.content.sha,
|
|
188
|
+
size: result.content.size,
|
|
189
|
+
url: result.content.html_url,
|
|
190
|
+
commitSha: result.commit.sha,
|
|
191
|
+
commitUrl: result.commit.html_url,
|
|
192
|
+
commitMessage: result.commit.message,
|
|
193
|
+
committedAt: result.commit.author.date
|
|
194
|
+
},
|
|
195
|
+
metadata: {
|
|
196
|
+
path: result.content.path,
|
|
197
|
+
sha: result.content.sha,
|
|
198
|
+
commitSha: result.commit.sha,
|
|
199
|
+
owner,
|
|
200
|
+
repo
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
} catch (error) {
|
|
204
|
+
return {
|
|
205
|
+
success: false,
|
|
206
|
+
error: `GitHub create/update file failed: ${error instanceof Error ? error.message : String(error)}`
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
//#endregion
|
|
212
|
+
export { githubCreateOrUpdateFileAction };
|
|
213
|
+
|
|
214
|
+
//# sourceMappingURL=create-or-update-file.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-or-update-file.js","names":[],"sources":["../../../src/actions/github/create-or-update-file.ts"],"sourcesContent":["/**\n * github.create_or_update_file — Create or update a file in a GitHub repository\n *\n * Creates a new file or updates an existing file in a repository.\n * When updating, the SHA of the existing file is required.\n * Requires a GitHub OAuth2 credential with repo scope.\n */\n\nimport { defineAction } from '../define-action';\nimport { GITHUB_PROVIDER } from '../providers';\nimport { z } from 'zod/v4';\n\nconst GITHUB_API_BASE = 'https://api.github.com';\n\nconst paramsSchema = z.object({\n credentialId: z.string().min(1, 'GitHub credential is required'),\n owner: z.string().min(1, 'Repository owner is required'),\n repo: z.string().min(1, 'Repository name is required'),\n path: z.string().min(1, 'File path is required'),\n content: z.string().min(1, 'File content is required'),\n message: z.string().min(1, 'Commit message is required'),\n branch: z.string().optional().default(''),\n sha: z.string().optional().default(''),\n committerName: z.string().optional().default(''),\n committerEmail: z.string().optional().default(''),\n});\n\nexport const githubCreateOrUpdateFileAction = defineAction({\n id: 'github.create_or_update_file',\n name: 'Create or Update File',\n description:\n 'Create a new file or update an existing file in a GitHub repository with a commit message.',\n provider: GITHUB_PROVIDER,\n actionCategory: 'write',\n\n credential: {\n required: true,\n type: 'oauth2',\n oauth2Provider: 'github',\n description: 'GitHub OAuth2 credential with repo scope',\n },\n\n params: {\n schema: paramsSchema,\n fields: [\n {\n name: 'credentialId',\n label: 'GitHub Credential',\n type: 'text',\n required: true,\n description: 'GitHub OAuth2 credential for authentication',\n aiProvided: false,\n },\n {\n name: 'owner',\n label: 'Owner',\n type: 'text',\n required: true,\n placeholder: 'octocat',\n description: 'Repository owner (user or organisation)',\n aiProvided: true,\n },\n {\n name: 'repo',\n label: 'Repository',\n type: 'text',\n required: true,\n placeholder: 'hello-world',\n description: 'Repository name',\n aiProvided: true,\n },\n {\n name: 'path',\n label: 'File Path',\n type: 'text',\n required: true,\n placeholder: 'docs/README.md',\n description: 'Path for the file in the repository',\n aiProvided: true,\n },\n {\n name: 'content',\n label: 'Content',\n type: 'textarea',\n required: true,\n placeholder: '# Hello World',\n description: 'File content (plain text). Supports Nunjucks templating.',\n aiProvided: true,\n },\n {\n name: 'message',\n label: 'Commit Message',\n type: 'text',\n required: true,\n placeholder: 'Add README.md',\n description: 'Commit message for this change',\n aiProvided: true,\n },\n {\n name: 'branch',\n label: 'Branch',\n type: 'text',\n placeholder: 'main',\n description: 'Target branch (uses default branch if empty)',\n aiProvided: true,\n },\n {\n name: 'sha',\n label: 'File SHA (for updates)',\n type: 'text',\n placeholder: 'abc123...',\n description: 'SHA of the existing file (required when updating, omit when creating new)',\n extended: true,\n aiProvided: true,\n },\n {\n name: 'committerName',\n label: 'Committer Name',\n type: 'text',\n placeholder: 'Bot',\n description: 'Custom committer name (uses authenticated user if empty)',\n extended: true,\n },\n {\n name: 'committerEmail',\n label: 'Committer Email',\n type: 'text',\n placeholder: 'bot@example.com',\n description: 'Custom committer email (uses authenticated user if empty)',\n extended: true,\n },\n ],\n },\n\n tags: ['github', 'file', 'create', 'update', 'commit', 'development', 'oauth2'],\n\n async execute(params, context) {\n const {\n credentialId,\n owner,\n repo,\n path,\n content,\n message,\n branch,\n sha,\n committerName,\n committerEmail,\n } = params;\n\n let credential = context.credential;\n if (!credential && context.functions?.getCredential) {\n credential = await context.functions.getCredential(credentialId);\n }\n if (!credential) {\n return {\n success: false,\n error: `Credential not found: ${credentialId}. Please create a GitHub OAuth2 credential.`,\n };\n }\n\n const accessToken =\n (credential.config?.accessToken as string) ?? (credential.config?.token as string);\n if (!accessToken) {\n return {\n success: false,\n error: 'No valid access token in credential. Please re-authorize the GitHub credential.',\n };\n }\n\n context.logger.debug('Creating/updating file on GitHub', { owner, repo, path });\n\n try {\n // Base64 encode the content\n const encodedContent = Buffer.from(content, 'utf-8').toString('base64');\n\n const requestBody: Record<string, unknown> = {\n message,\n content: encodedContent,\n };\n if (branch) {\n requestBody.branch = branch;\n }\n if (sha) {\n requestBody.sha = sha;\n }\n if (committerName && committerEmail) {\n requestBody.committer = { name: committerName, email: committerEmail };\n }\n\n const response = await fetch(\n `${GITHUB_API_BASE}/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/contents/${path}`,\n {\n method: 'PUT',\n headers: {\n Authorization: `Bearer ${accessToken}`,\n Accept: 'application/vnd.github+json',\n 'Content-Type': 'application/json',\n 'X-GitHub-Api-Version': '2022-11-28',\n },\n body: JSON.stringify(requestBody),\n },\n );\n\n if (!response.ok) {\n const errorText = await response.text();\n return {\n success: false,\n error: `GitHub API error: ${response.status} ${response.statusText} - ${errorText}`,\n };\n }\n\n const result = (await response.json()) as {\n content: {\n name: string;\n path: string;\n sha: string;\n size: number;\n html_url: string;\n };\n commit: {\n sha: string;\n message: string;\n html_url: string;\n author: { name: string; email: string; date: string };\n };\n };\n\n return {\n success: true,\n output: {\n path: result.content.path,\n sha: result.content.sha,\n size: result.content.size,\n url: result.content.html_url,\n commitSha: result.commit.sha,\n commitUrl: result.commit.html_url,\n commitMessage: result.commit.message,\n committedAt: result.commit.author.date,\n },\n metadata: {\n path: result.content.path,\n sha: result.content.sha,\n commitSha: result.commit.sha,\n owner,\n repo,\n },\n };\n } catch (error) {\n const msg = error instanceof Error ? error.message : String(error);\n return { success: false, error: `GitHub create/update file failed: ${msg}` };\n }\n },\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_define_action = require("../define-action.cjs");
|
|
3
|
+
const require_providers = require("../providers.cjs");
|
|
4
|
+
let zod_v4 = require("zod/v4");
|
|
5
|
+
//#region src/actions/github/create-pull-request.ts
|
|
6
|
+
/**
|
|
7
|
+
* github.create_pull_request — Create a GitHub pull request
|
|
8
|
+
*
|
|
9
|
+
* Creates a new pull request in a repository. Supports title, body,
|
|
10
|
+
* head/base branches, draft mode, and maintainer edits.
|
|
11
|
+
* Requires a GitHub OAuth2 credential with repo scope.
|
|
12
|
+
*/
|
|
13
|
+
const GITHUB_API_BASE = "https://api.github.com";
|
|
14
|
+
const paramsSchema = zod_v4.z.object({
|
|
15
|
+
credentialId: zod_v4.z.string().min(1, "GitHub credential is required"),
|
|
16
|
+
owner: zod_v4.z.string().min(1, "Repository owner is required"),
|
|
17
|
+
repo: zod_v4.z.string().min(1, "Repository name is required"),
|
|
18
|
+
title: zod_v4.z.string().min(1, "PR title is required"),
|
|
19
|
+
head: zod_v4.z.string().min(1, "Head branch is required"),
|
|
20
|
+
base: zod_v4.z.string().min(1, "Base branch is required"),
|
|
21
|
+
body: zod_v4.z.string().optional().default(""),
|
|
22
|
+
draft: zod_v4.z.boolean().optional().default(false),
|
|
23
|
+
maintainerCanModify: zod_v4.z.boolean().optional().default(true)
|
|
24
|
+
});
|
|
25
|
+
const githubCreatePullRequestAction = require_define_action.defineAction({
|
|
26
|
+
id: "github.create_pull_request",
|
|
27
|
+
name: "Create Pull Request",
|
|
28
|
+
description: "Create a new pull request in a GitHub repository. Specify head and base branches, title, body, and draft status.",
|
|
29
|
+
provider: require_providers.GITHUB_PROVIDER,
|
|
30
|
+
actionCategory: "write",
|
|
31
|
+
credential: {
|
|
32
|
+
required: true,
|
|
33
|
+
type: "oauth2",
|
|
34
|
+
oauth2Provider: "github",
|
|
35
|
+
description: "GitHub OAuth2 credential with repo scope"
|
|
36
|
+
},
|
|
37
|
+
params: {
|
|
38
|
+
schema: paramsSchema,
|
|
39
|
+
fields: [
|
|
40
|
+
{
|
|
41
|
+
name: "credentialId",
|
|
42
|
+
label: "GitHub Credential",
|
|
43
|
+
type: "text",
|
|
44
|
+
required: true,
|
|
45
|
+
description: "GitHub OAuth2 credential for authentication",
|
|
46
|
+
aiProvided: false
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "owner",
|
|
50
|
+
label: "Owner",
|
|
51
|
+
type: "text",
|
|
52
|
+
required: true,
|
|
53
|
+
placeholder: "octocat",
|
|
54
|
+
description: "Repository owner (user or organisation)",
|
|
55
|
+
aiProvided: true
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "repo",
|
|
59
|
+
label: "Repository",
|
|
60
|
+
type: "text",
|
|
61
|
+
required: true,
|
|
62
|
+
placeholder: "hello-world",
|
|
63
|
+
description: "Repository name",
|
|
64
|
+
aiProvided: true
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "title",
|
|
68
|
+
label: "Title",
|
|
69
|
+
type: "text",
|
|
70
|
+
required: true,
|
|
71
|
+
placeholder: "Add new feature",
|
|
72
|
+
description: "Pull request title",
|
|
73
|
+
aiProvided: true
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "head",
|
|
77
|
+
label: "Head Branch",
|
|
78
|
+
type: "text",
|
|
79
|
+
required: true,
|
|
80
|
+
placeholder: "feature-branch",
|
|
81
|
+
description: "The branch that contains your changes",
|
|
82
|
+
aiProvided: true
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "base",
|
|
86
|
+
label: "Base Branch",
|
|
87
|
+
type: "text",
|
|
88
|
+
required: true,
|
|
89
|
+
placeholder: "main",
|
|
90
|
+
description: "The branch you want to merge into",
|
|
91
|
+
aiProvided: true
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "body",
|
|
95
|
+
label: "Body",
|
|
96
|
+
type: "textarea",
|
|
97
|
+
placeholder: "Describe the changes...",
|
|
98
|
+
description: "Pull request description (Markdown supported)",
|
|
99
|
+
aiProvided: true
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "draft",
|
|
103
|
+
label: "Draft",
|
|
104
|
+
type: "boolean",
|
|
105
|
+
defaultValue: false,
|
|
106
|
+
description: "Create as a draft pull request",
|
|
107
|
+
extended: true,
|
|
108
|
+
aiProvided: true
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "maintainerCanModify",
|
|
112
|
+
label: "Allow Maintainer Edits",
|
|
113
|
+
type: "boolean",
|
|
114
|
+
defaultValue: true,
|
|
115
|
+
description: "Allow maintainers to push to the head branch",
|
|
116
|
+
extended: true
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
tags: [
|
|
121
|
+
"github",
|
|
122
|
+
"pull-request",
|
|
123
|
+
"pr",
|
|
124
|
+
"create",
|
|
125
|
+
"development",
|
|
126
|
+
"oauth2"
|
|
127
|
+
],
|
|
128
|
+
async execute(params, context) {
|
|
129
|
+
const { credentialId, owner, repo, title, head, base, body, draft, maintainerCanModify } = params;
|
|
130
|
+
let credential = context.credential;
|
|
131
|
+
if (!credential && context.functions?.getCredential) credential = await context.functions.getCredential(credentialId);
|
|
132
|
+
if (!credential) return {
|
|
133
|
+
success: false,
|
|
134
|
+
error: `Credential not found: ${credentialId}. Please create a GitHub OAuth2 credential.`
|
|
135
|
+
};
|
|
136
|
+
const accessToken = credential.config?.accessToken ?? credential.config?.token;
|
|
137
|
+
if (!accessToken) return {
|
|
138
|
+
success: false,
|
|
139
|
+
error: "No valid access token in credential. Please re-authorize the GitHub credential."
|
|
140
|
+
};
|
|
141
|
+
context.logger.debug("Creating GitHub pull request", {
|
|
142
|
+
owner,
|
|
143
|
+
repo,
|
|
144
|
+
head,
|
|
145
|
+
base
|
|
146
|
+
});
|
|
147
|
+
try {
|
|
148
|
+
const prBody = {
|
|
149
|
+
title,
|
|
150
|
+
head,
|
|
151
|
+
base,
|
|
152
|
+
draft,
|
|
153
|
+
maintainer_can_modify: maintainerCanModify
|
|
154
|
+
};
|
|
155
|
+
if (body) prBody.body = body;
|
|
156
|
+
const response = await fetch(`${GITHUB_API_BASE}/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/pulls`, {
|
|
157
|
+
method: "POST",
|
|
158
|
+
headers: {
|
|
159
|
+
Authorization: `Bearer ${accessToken}`,
|
|
160
|
+
Accept: "application/vnd.github+json",
|
|
161
|
+
"Content-Type": "application/json",
|
|
162
|
+
"X-GitHub-Api-Version": "2022-11-28"
|
|
163
|
+
},
|
|
164
|
+
body: JSON.stringify(prBody)
|
|
165
|
+
});
|
|
166
|
+
if (!response.ok) {
|
|
167
|
+
const errorText = await response.text();
|
|
168
|
+
return {
|
|
169
|
+
success: false,
|
|
170
|
+
error: `GitHub API error: ${response.status} ${response.statusText} - ${errorText}`
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
const pr = await response.json();
|
|
174
|
+
return {
|
|
175
|
+
success: true,
|
|
176
|
+
output: {
|
|
177
|
+
prNumber: pr.number,
|
|
178
|
+
url: pr.html_url,
|
|
179
|
+
title: pr.title,
|
|
180
|
+
state: pr.state,
|
|
181
|
+
draft: pr.draft,
|
|
182
|
+
headBranch: pr.head.ref,
|
|
183
|
+
headSha: pr.head.sha,
|
|
184
|
+
baseBranch: pr.base.ref,
|
|
185
|
+
author: pr.user.login,
|
|
186
|
+
createdAt: pr.created_at
|
|
187
|
+
},
|
|
188
|
+
metadata: {
|
|
189
|
+
prNumber: pr.number,
|
|
190
|
+
url: pr.html_url,
|
|
191
|
+
owner,
|
|
192
|
+
repo
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
} catch (error) {
|
|
196
|
+
return {
|
|
197
|
+
success: false,
|
|
198
|
+
error: `GitHub create pull request failed: ${error instanceof Error ? error.message : String(error)}`
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
//#endregion
|
|
204
|
+
exports.githubCreatePullRequestAction = githubCreatePullRequestAction;
|
|
205
|
+
|
|
206
|
+
//# sourceMappingURL=create-pull-request.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-pull-request.cjs","names":["z","defineAction","GITHUB_PROVIDER"],"sources":["../../../src/actions/github/create-pull-request.ts"],"sourcesContent":["/**\n * github.create_pull_request — Create a GitHub pull request\n *\n * Creates a new pull request in a repository. Supports title, body,\n * head/base branches, draft mode, and maintainer edits.\n * Requires a GitHub OAuth2 credential with repo scope.\n */\n\nimport { defineAction } from '../define-action';\nimport { GITHUB_PROVIDER } from '../providers';\nimport { z } from 'zod/v4';\n\nconst GITHUB_API_BASE = 'https://api.github.com';\n\nconst paramsSchema = z.object({\n credentialId: z.string().min(1, 'GitHub credential is required'),\n owner: z.string().min(1, 'Repository owner is required'),\n repo: z.string().min(1, 'Repository name is required'),\n title: z.string().min(1, 'PR title is required'),\n head: z.string().min(1, 'Head branch is required'),\n base: z.string().min(1, 'Base branch is required'),\n body: z.string().optional().default(''),\n draft: z.boolean().optional().default(false),\n maintainerCanModify: z.boolean().optional().default(true),\n});\n\nexport const githubCreatePullRequestAction = defineAction({\n id: 'github.create_pull_request',\n name: 'Create Pull Request',\n description:\n 'Create a new pull request in a GitHub repository. Specify head and base branches, title, body, and draft status.',\n provider: GITHUB_PROVIDER,\n actionCategory: 'write',\n\n credential: {\n required: true,\n type: 'oauth2',\n oauth2Provider: 'github',\n description: 'GitHub OAuth2 credential with repo scope',\n },\n\n params: {\n schema: paramsSchema,\n fields: [\n {\n name: 'credentialId',\n label: 'GitHub Credential',\n type: 'text',\n required: true,\n description: 'GitHub OAuth2 credential for authentication',\n aiProvided: false,\n },\n {\n name: 'owner',\n label: 'Owner',\n type: 'text',\n required: true,\n placeholder: 'octocat',\n description: 'Repository owner (user or organisation)',\n aiProvided: true,\n },\n {\n name: 'repo',\n label: 'Repository',\n type: 'text',\n required: true,\n placeholder: 'hello-world',\n description: 'Repository name',\n aiProvided: true,\n },\n {\n name: 'title',\n label: 'Title',\n type: 'text',\n required: true,\n placeholder: 'Add new feature',\n description: 'Pull request title',\n aiProvided: true,\n },\n {\n name: 'head',\n label: 'Head Branch',\n type: 'text',\n required: true,\n placeholder: 'feature-branch',\n description: 'The branch that contains your changes',\n aiProvided: true,\n },\n {\n name: 'base',\n label: 'Base Branch',\n type: 'text',\n required: true,\n placeholder: 'main',\n description: 'The branch you want to merge into',\n aiProvided: true,\n },\n {\n name: 'body',\n label: 'Body',\n type: 'textarea',\n placeholder: 'Describe the changes...',\n description: 'Pull request description (Markdown supported)',\n aiProvided: true,\n },\n {\n name: 'draft',\n label: 'Draft',\n type: 'boolean',\n defaultValue: false,\n description: 'Create as a draft pull request',\n extended: true,\n aiProvided: true,\n },\n {\n name: 'maintainerCanModify',\n label: 'Allow Maintainer Edits',\n type: 'boolean',\n defaultValue: true,\n description: 'Allow maintainers to push to the head branch',\n extended: true,\n },\n ],\n },\n\n tags: ['github', 'pull-request', 'pr', 'create', 'development', 'oauth2'],\n\n async execute(params, context) {\n const { credentialId, owner, repo, title, head, base, body, draft, maintainerCanModify } =\n params;\n\n let credential = context.credential;\n if (!credential && context.functions?.getCredential) {\n credential = await context.functions.getCredential(credentialId);\n }\n if (!credential) {\n return {\n success: false,\n error: `Credential not found: ${credentialId}. Please create a GitHub OAuth2 credential.`,\n };\n }\n\n const accessToken =\n (credential.config?.accessToken as string) ?? (credential.config?.token as string);\n if (!accessToken) {\n return {\n success: false,\n error: 'No valid access token in credential. Please re-authorize the GitHub credential.',\n };\n }\n\n context.logger.debug('Creating GitHub pull request', { owner, repo, head, base });\n\n try {\n const prBody: Record<string, unknown> = {\n title,\n head,\n base,\n draft,\n maintainer_can_modify: maintainerCanModify,\n };\n if (body) {\n prBody.body = body;\n }\n\n const response = await fetch(\n `${GITHUB_API_BASE}/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/pulls`,\n {\n method: 'POST',\n headers: {\n Authorization: `Bearer ${accessToken}`,\n Accept: 'application/vnd.github+json',\n 'Content-Type': 'application/json',\n 'X-GitHub-Api-Version': '2022-11-28',\n },\n body: JSON.stringify(prBody),\n },\n );\n\n if (!response.ok) {\n const errorText = await response.text();\n return {\n success: false,\n error: `GitHub API error: ${response.status} ${response.statusText} - ${errorText}`,\n };\n }\n\n const pr = (await response.json()) as {\n number: number;\n html_url: string;\n title: string;\n state: string;\n draft: boolean;\n head: { ref: string; sha: string };\n base: { ref: string };\n user: { login: string };\n created_at: string;\n mergeable: boolean | null;\n additions: number;\n deletions: number;\n changed_files: number;\n };\n\n return {\n success: true,\n output: {\n prNumber: pr.number,\n url: pr.html_url,\n title: pr.title,\n state: pr.state,\n draft: pr.draft,\n headBranch: pr.head.ref,\n headSha: pr.head.sha,\n baseBranch: pr.base.ref,\n author: pr.user.login,\n createdAt: pr.created_at,\n },\n metadata: { prNumber: pr.number, url: pr.html_url, owner, repo },\n };\n } catch (error) {\n const msg = error instanceof Error ? error.message : String(error);\n return { success: false, error: `GitHub create pull request failed: ${msg}` };\n }\n },\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { defineAction } from "../define-action.js";
|
|
2
|
+
import { GITHUB_PROVIDER } from "../providers.js";
|
|
3
|
+
import { z } from "zod/v4";
|
|
4
|
+
//#region src/actions/github/create-pull-request.ts
|
|
5
|
+
/**
|
|
6
|
+
* github.create_pull_request — Create a GitHub pull request
|
|
7
|
+
*
|
|
8
|
+
* Creates a new pull request in a repository. Supports title, body,
|
|
9
|
+
* head/base branches, draft mode, and maintainer edits.
|
|
10
|
+
* Requires a GitHub OAuth2 credential with repo scope.
|
|
11
|
+
*/
|
|
12
|
+
const GITHUB_API_BASE = "https://api.github.com";
|
|
13
|
+
const githubCreatePullRequestAction = defineAction({
|
|
14
|
+
id: "github.create_pull_request",
|
|
15
|
+
name: "Create Pull Request",
|
|
16
|
+
description: "Create a new pull request in a GitHub repository. Specify head and base branches, title, body, and draft status.",
|
|
17
|
+
provider: GITHUB_PROVIDER,
|
|
18
|
+
actionCategory: "write",
|
|
19
|
+
credential: {
|
|
20
|
+
required: true,
|
|
21
|
+
type: "oauth2",
|
|
22
|
+
oauth2Provider: "github",
|
|
23
|
+
description: "GitHub OAuth2 credential with repo scope"
|
|
24
|
+
},
|
|
25
|
+
params: {
|
|
26
|
+
schema: z.object({
|
|
27
|
+
credentialId: z.string().min(1, "GitHub credential is required"),
|
|
28
|
+
owner: z.string().min(1, "Repository owner is required"),
|
|
29
|
+
repo: z.string().min(1, "Repository name is required"),
|
|
30
|
+
title: z.string().min(1, "PR title is required"),
|
|
31
|
+
head: z.string().min(1, "Head branch is required"),
|
|
32
|
+
base: z.string().min(1, "Base branch is required"),
|
|
33
|
+
body: z.string().optional().default(""),
|
|
34
|
+
draft: z.boolean().optional().default(false),
|
|
35
|
+
maintainerCanModify: z.boolean().optional().default(true)
|
|
36
|
+
}),
|
|
37
|
+
fields: [
|
|
38
|
+
{
|
|
39
|
+
name: "credentialId",
|
|
40
|
+
label: "GitHub Credential",
|
|
41
|
+
type: "text",
|
|
42
|
+
required: true,
|
|
43
|
+
description: "GitHub OAuth2 credential for authentication",
|
|
44
|
+
aiProvided: false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "owner",
|
|
48
|
+
label: "Owner",
|
|
49
|
+
type: "text",
|
|
50
|
+
required: true,
|
|
51
|
+
placeholder: "octocat",
|
|
52
|
+
description: "Repository owner (user or organisation)",
|
|
53
|
+
aiProvided: true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "repo",
|
|
57
|
+
label: "Repository",
|
|
58
|
+
type: "text",
|
|
59
|
+
required: true,
|
|
60
|
+
placeholder: "hello-world",
|
|
61
|
+
description: "Repository name",
|
|
62
|
+
aiProvided: true
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "title",
|
|
66
|
+
label: "Title",
|
|
67
|
+
type: "text",
|
|
68
|
+
required: true,
|
|
69
|
+
placeholder: "Add new feature",
|
|
70
|
+
description: "Pull request title",
|
|
71
|
+
aiProvided: true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "head",
|
|
75
|
+
label: "Head Branch",
|
|
76
|
+
type: "text",
|
|
77
|
+
required: true,
|
|
78
|
+
placeholder: "feature-branch",
|
|
79
|
+
description: "The branch that contains your changes",
|
|
80
|
+
aiProvided: true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "base",
|
|
84
|
+
label: "Base Branch",
|
|
85
|
+
type: "text",
|
|
86
|
+
required: true,
|
|
87
|
+
placeholder: "main",
|
|
88
|
+
description: "The branch you want to merge into",
|
|
89
|
+
aiProvided: true
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "body",
|
|
93
|
+
label: "Body",
|
|
94
|
+
type: "textarea",
|
|
95
|
+
placeholder: "Describe the changes...",
|
|
96
|
+
description: "Pull request description (Markdown supported)",
|
|
97
|
+
aiProvided: true
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "draft",
|
|
101
|
+
label: "Draft",
|
|
102
|
+
type: "boolean",
|
|
103
|
+
defaultValue: false,
|
|
104
|
+
description: "Create as a draft pull request",
|
|
105
|
+
extended: true,
|
|
106
|
+
aiProvided: true
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: "maintainerCanModify",
|
|
110
|
+
label: "Allow Maintainer Edits",
|
|
111
|
+
type: "boolean",
|
|
112
|
+
defaultValue: true,
|
|
113
|
+
description: "Allow maintainers to push to the head branch",
|
|
114
|
+
extended: true
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
tags: [
|
|
119
|
+
"github",
|
|
120
|
+
"pull-request",
|
|
121
|
+
"pr",
|
|
122
|
+
"create",
|
|
123
|
+
"development",
|
|
124
|
+
"oauth2"
|
|
125
|
+
],
|
|
126
|
+
async execute(params, context) {
|
|
127
|
+
const { credentialId, owner, repo, title, head, base, body, draft, maintainerCanModify } = params;
|
|
128
|
+
let credential = context.credential;
|
|
129
|
+
if (!credential && context.functions?.getCredential) credential = await context.functions.getCredential(credentialId);
|
|
130
|
+
if (!credential) return {
|
|
131
|
+
success: false,
|
|
132
|
+
error: `Credential not found: ${credentialId}. Please create a GitHub OAuth2 credential.`
|
|
133
|
+
};
|
|
134
|
+
const accessToken = credential.config?.accessToken ?? credential.config?.token;
|
|
135
|
+
if (!accessToken) return {
|
|
136
|
+
success: false,
|
|
137
|
+
error: "No valid access token in credential. Please re-authorize the GitHub credential."
|
|
138
|
+
};
|
|
139
|
+
context.logger.debug("Creating GitHub pull request", {
|
|
140
|
+
owner,
|
|
141
|
+
repo,
|
|
142
|
+
head,
|
|
143
|
+
base
|
|
144
|
+
});
|
|
145
|
+
try {
|
|
146
|
+
const prBody = {
|
|
147
|
+
title,
|
|
148
|
+
head,
|
|
149
|
+
base,
|
|
150
|
+
draft,
|
|
151
|
+
maintainer_can_modify: maintainerCanModify
|
|
152
|
+
};
|
|
153
|
+
if (body) prBody.body = body;
|
|
154
|
+
const response = await fetch(`${GITHUB_API_BASE}/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/pulls`, {
|
|
155
|
+
method: "POST",
|
|
156
|
+
headers: {
|
|
157
|
+
Authorization: `Bearer ${accessToken}`,
|
|
158
|
+
Accept: "application/vnd.github+json",
|
|
159
|
+
"Content-Type": "application/json",
|
|
160
|
+
"X-GitHub-Api-Version": "2022-11-28"
|
|
161
|
+
},
|
|
162
|
+
body: JSON.stringify(prBody)
|
|
163
|
+
});
|
|
164
|
+
if (!response.ok) {
|
|
165
|
+
const errorText = await response.text();
|
|
166
|
+
return {
|
|
167
|
+
success: false,
|
|
168
|
+
error: `GitHub API error: ${response.status} ${response.statusText} - ${errorText}`
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
const pr = await response.json();
|
|
172
|
+
return {
|
|
173
|
+
success: true,
|
|
174
|
+
output: {
|
|
175
|
+
prNumber: pr.number,
|
|
176
|
+
url: pr.html_url,
|
|
177
|
+
title: pr.title,
|
|
178
|
+
state: pr.state,
|
|
179
|
+
draft: pr.draft,
|
|
180
|
+
headBranch: pr.head.ref,
|
|
181
|
+
headSha: pr.head.sha,
|
|
182
|
+
baseBranch: pr.base.ref,
|
|
183
|
+
author: pr.user.login,
|
|
184
|
+
createdAt: pr.created_at
|
|
185
|
+
},
|
|
186
|
+
metadata: {
|
|
187
|
+
prNumber: pr.number,
|
|
188
|
+
url: pr.html_url,
|
|
189
|
+
owner,
|
|
190
|
+
repo
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
} catch (error) {
|
|
194
|
+
return {
|
|
195
|
+
success: false,
|
|
196
|
+
error: `GitHub create pull request failed: ${error instanceof Error ? error.message : String(error)}`
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
//#endregion
|
|
202
|
+
export { githubCreatePullRequestAction };
|
|
203
|
+
|
|
204
|
+
//# sourceMappingURL=create-pull-request.js.map
|