@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,236 @@
|
|
|
1
|
+
const require_errors_types = require("../../types/common/errors.types.cjs");
|
|
2
|
+
//#region src/services/node-executions/node-execution.service.ts
|
|
3
|
+
/**
|
|
4
|
+
* Core Execution Trace Service implementation using database models
|
|
5
|
+
*/
|
|
6
|
+
var NodeExecutionService = class {
|
|
7
|
+
initialized = false;
|
|
8
|
+
eventBus = null;
|
|
9
|
+
constructor(logger, databaseService) {
|
|
10
|
+
this.logger = logger;
|
|
11
|
+
this.databaseService = databaseService;
|
|
12
|
+
}
|
|
13
|
+
/** Attach the event bus so state changes are broadcast to SSE subscribers. */
|
|
14
|
+
setEventBus(bus) {
|
|
15
|
+
this.eventBus = bus;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Initialize the service
|
|
19
|
+
*/
|
|
20
|
+
async initialize() {
|
|
21
|
+
if (this.initialized) {
|
|
22
|
+
this.logger.debug("Execution trace service already initialized");
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
try {
|
|
26
|
+
await this.databaseService.initialize();
|
|
27
|
+
this.initialized = true;
|
|
28
|
+
this.logger.info("Execution trace service initialized successfully");
|
|
29
|
+
} catch (error) {
|
|
30
|
+
this.logger.error("Failed to initialize execution trace service", { error });
|
|
31
|
+
throw new require_errors_types.DatabaseError("Failed to initialize execution trace service", { error });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Create a new execution trace
|
|
36
|
+
*/
|
|
37
|
+
async createNodeExecution(executionId, nodeId, nodeType, inputs) {
|
|
38
|
+
this.logger.debug("Creating execution trace", {
|
|
39
|
+
executionId,
|
|
40
|
+
nodeId,
|
|
41
|
+
nodeType
|
|
42
|
+
});
|
|
43
|
+
try {
|
|
44
|
+
const trace = await this.databaseService.nodeExecutions.create({
|
|
45
|
+
flowRunId: executionId,
|
|
46
|
+
nodeId,
|
|
47
|
+
nodeType,
|
|
48
|
+
inputs
|
|
49
|
+
});
|
|
50
|
+
this.logger.debug("Execution trace created successfully", {
|
|
51
|
+
traceId: trace.id,
|
|
52
|
+
executionId,
|
|
53
|
+
nodeId
|
|
54
|
+
});
|
|
55
|
+
this.eventBus?.emitNodeExecutionCreate(trace);
|
|
56
|
+
return trace;
|
|
57
|
+
} catch (error) {
|
|
58
|
+
this.logger.error("Failed to create execution trace", {
|
|
59
|
+
executionId,
|
|
60
|
+
nodeId,
|
|
61
|
+
nodeType,
|
|
62
|
+
error
|
|
63
|
+
});
|
|
64
|
+
throw error;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Update execution trace
|
|
69
|
+
*/
|
|
70
|
+
async updateNodeExecution(nodeExecutionId, updates) {
|
|
71
|
+
this.logger.debug("Updating execution trace", {
|
|
72
|
+
nodeExecutionId,
|
|
73
|
+
updates
|
|
74
|
+
});
|
|
75
|
+
try {
|
|
76
|
+
const updateInput = {
|
|
77
|
+
status: updates.status,
|
|
78
|
+
outputs: updates.outputs,
|
|
79
|
+
error: updates.error,
|
|
80
|
+
completedAt: updates.completedAt,
|
|
81
|
+
duration: updates.duration,
|
|
82
|
+
retryCount: updates.retryCount
|
|
83
|
+
};
|
|
84
|
+
const updatedTrace = await this.databaseService.nodeExecutions.update(nodeExecutionId, updateInput);
|
|
85
|
+
this.logger.debug("Execution trace updated successfully", {
|
|
86
|
+
nodeExecutionId,
|
|
87
|
+
status: updatedTrace.status
|
|
88
|
+
});
|
|
89
|
+
this.eventBus?.emitNodeExecutionUpdate(updatedTrace);
|
|
90
|
+
return updatedTrace;
|
|
91
|
+
} catch (error) {
|
|
92
|
+
this.logger.error("Failed to update execution trace", {
|
|
93
|
+
nodeExecutionId,
|
|
94
|
+
error
|
|
95
|
+
});
|
|
96
|
+
throw error;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Get execution trace by ID
|
|
101
|
+
*/
|
|
102
|
+
async getNodeExecutionById(nodeExecutionId) {
|
|
103
|
+
this.logger.debug("Retrieving execution trace by ID", { nodeExecutionId });
|
|
104
|
+
try {
|
|
105
|
+
const trace = await this.databaseService.nodeExecutions.findById(nodeExecutionId);
|
|
106
|
+
if (!trace) throw new require_errors_types.DatabaseError("Execution trace not found", { nodeExecutionId });
|
|
107
|
+
this.logger.debug("Execution trace retrieved successfully", { nodeExecutionId });
|
|
108
|
+
return trace;
|
|
109
|
+
} catch (error) {
|
|
110
|
+
this.logger.error("Failed to retrieve execution trace", {
|
|
111
|
+
nodeExecutionId,
|
|
112
|
+
error
|
|
113
|
+
});
|
|
114
|
+
throw error;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Get all traces for an execution
|
|
119
|
+
*/
|
|
120
|
+
async listNodeExecutionsByFlowRunId(flowRunId) {
|
|
121
|
+
this.logger.debug("Retrieving execution traces", { flowRunId });
|
|
122
|
+
try {
|
|
123
|
+
const traces = await this.databaseService.nodeExecutions.findByFlowRunId(flowRunId);
|
|
124
|
+
this.logger.debug("Execution traces retrieved successfully", {
|
|
125
|
+
flowRunId,
|
|
126
|
+
count: traces.length
|
|
127
|
+
});
|
|
128
|
+
return traces;
|
|
129
|
+
} catch (error) {
|
|
130
|
+
this.logger.error("Failed to retrieve execution traces", {
|
|
131
|
+
flowRunId,
|
|
132
|
+
error
|
|
133
|
+
});
|
|
134
|
+
throw error;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Update trace status with optional additional data
|
|
139
|
+
*/
|
|
140
|
+
async updateNodeExecutionStatus(traceId, status, data) {
|
|
141
|
+
this.logger.debug("Updating node execution status", JSON.stringify({
|
|
142
|
+
traceId,
|
|
143
|
+
status,
|
|
144
|
+
data
|
|
145
|
+
}));
|
|
146
|
+
try {
|
|
147
|
+
const updated = await this.databaseService.nodeExecutions.updateTraceStatus(traceId, status, data);
|
|
148
|
+
this.eventBus?.emitNodeExecutionUpdate(updated);
|
|
149
|
+
return updated;
|
|
150
|
+
} catch (error) {
|
|
151
|
+
this.logger.error("Failed to update trace status", {
|
|
152
|
+
traceId,
|
|
153
|
+
status,
|
|
154
|
+
error
|
|
155
|
+
});
|
|
156
|
+
throw new require_errors_types.DatabaseError("Failed to update trace status", { error });
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Increment retry count
|
|
161
|
+
*/
|
|
162
|
+
async incrementRetryCount(traceId) {
|
|
163
|
+
return this.databaseService.nodeExecutions.incrementRetryCount(traceId);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Get all executions across all flows with optional filtering, pagination, and sorting
|
|
167
|
+
*/
|
|
168
|
+
async listNodeExecutions(options) {
|
|
169
|
+
try {
|
|
170
|
+
this.logger.debug("Getting all node executions", { options });
|
|
171
|
+
const result = await this.databaseService.nodeExecutions.list(options);
|
|
172
|
+
this.logger.debug("Node executions retrieved successfully", {
|
|
173
|
+
count: result.data.length,
|
|
174
|
+
pagination: result.pagination
|
|
175
|
+
});
|
|
176
|
+
return result;
|
|
177
|
+
} catch (error) {
|
|
178
|
+
this.logger.error("Failed to get all node executions", {
|
|
179
|
+
options,
|
|
180
|
+
error
|
|
181
|
+
});
|
|
182
|
+
throw new require_errors_types.DatabaseError("Failed to get all node executions", { error });
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Get execution with flow data (enhanced single execution retrieval)
|
|
187
|
+
*/
|
|
188
|
+
async getExecutionWithFlowData(executionId) {
|
|
189
|
+
try {
|
|
190
|
+
this.logger.debug("Getting execution with flow data", { executionId });
|
|
191
|
+
const execution = await this.databaseService.flowRuns.findById(executionId);
|
|
192
|
+
if (!execution) return null;
|
|
193
|
+
const flow = await this.databaseService.flows.findById(execution.flowId);
|
|
194
|
+
if (!flow) {
|
|
195
|
+
this.logger.warn("Flow not found for execution", {
|
|
196
|
+
executionId,
|
|
197
|
+
flowId: execution.flowId
|
|
198
|
+
});
|
|
199
|
+
return execution;
|
|
200
|
+
}
|
|
201
|
+
const flowVersion = await this.databaseService.flowVersions.findByKey(execution.flowId, execution.flowVersion);
|
|
202
|
+
if (!flowVersion) {
|
|
203
|
+
this.logger.warn("Flow version not found for execution", {
|
|
204
|
+
executionId,
|
|
205
|
+
flowId: execution.flowId,
|
|
206
|
+
flowVersion: execution.flowVersion
|
|
207
|
+
});
|
|
208
|
+
return execution;
|
|
209
|
+
}
|
|
210
|
+
const traces = await this.databaseService.nodeExecutions.findByFlowRunId(executionId);
|
|
211
|
+
return {
|
|
212
|
+
...execution,
|
|
213
|
+
flowData: flow,
|
|
214
|
+
flowVersionData: flowVersion,
|
|
215
|
+
traces
|
|
216
|
+
};
|
|
217
|
+
} catch (error) {
|
|
218
|
+
this.logger.error("Failed to get execution with flow data", {
|
|
219
|
+
executionId,
|
|
220
|
+
error
|
|
221
|
+
});
|
|
222
|
+
throw new require_errors_types.DatabaseError("Failed to get execution with flow data", { error });
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Close the service
|
|
227
|
+
*/
|
|
228
|
+
async close() {
|
|
229
|
+
this.logger.debug("Closing execution trace service");
|
|
230
|
+
this.initialized = false;
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
//#endregion
|
|
234
|
+
exports.NodeExecutionService = NodeExecutionService;
|
|
235
|
+
|
|
236
|
+
//# sourceMappingURL=node-execution.service.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-execution.service.cjs","names":["DatabaseError"],"sources":["../../../src/services/node-executions/node-execution.service.ts"],"sourcesContent":["import type { DatabaseService } from '../database/database.service';\nimport { Logger } from 'src/types/schemas';\nimport { DatabaseError } from 'src/types/common/errors.types';\nimport { NodeExecutionStatus } from 'src/types/base';\nimport { PaginatedResponse, QueryOptions } from 'src/types/schemas/pagination-sort-filter';\nimport { NodeExecution } from './node-executions.model';\nimport type { NodeOutput } from 'src/types/node-io-types';\nimport type { ExecutionEventBus } from '../execution-event-bus';\n\n/**\n * Core Execution Trace Service implementation using database models\n */\nexport class NodeExecutionService {\n private initialized: boolean = false;\n private eventBus: ExecutionEventBus | null = null;\n\n constructor(\n private readonly logger: Logger,\n private readonly databaseService: DatabaseService,\n ) {}\n\n /** Attach the event bus so state changes are broadcast to SSE subscribers. */\n setEventBus(bus: ExecutionEventBus): void {\n this.eventBus = bus;\n }\n\n /**\n * Initialize the service\n */\n async initialize(): Promise<void> {\n if (this.initialized) {\n this.logger.debug('Execution trace service already initialized');\n return;\n }\n\n try {\n // Ensure database service is initialized\n await this.databaseService.initialize();\n this.initialized = true;\n this.logger.info('Execution trace service initialized successfully');\n } catch (error) {\n this.logger.error('Failed to initialize execution trace service', { error });\n throw new DatabaseError('Failed to initialize execution trace service', { error });\n }\n }\n\n /**\n * Create a new execution trace\n */\n async createNodeExecution(\n executionId: string,\n nodeId: string,\n nodeType: string,\n inputs: Record<string, unknown>,\n ) {\n this.logger.debug('Creating execution trace', { executionId, nodeId, nodeType });\n\n try {\n const trace = await this.databaseService.nodeExecutions.create({\n flowRunId: executionId,\n nodeId,\n nodeType,\n inputs,\n });\n\n this.logger.debug('Execution trace created successfully', {\n traceId: trace.id,\n executionId,\n nodeId,\n });\n this.eventBus?.emitNodeExecutionCreate(trace);\n return trace;\n } catch (error) {\n this.logger.error('Failed to create execution trace', {\n executionId,\n nodeId,\n nodeType,\n error,\n });\n throw error;\n }\n }\n\n /**\n * Update execution trace\n */\n async updateNodeExecution(nodeExecutionId: string, updates: Partial<NodeExecution>) {\n this.logger.debug('Updating execution trace', { nodeExecutionId, updates });\n\n try {\n // Map the updates to the model's update input type\n const updateInput = {\n status: updates.status,\n outputs: updates.outputs,\n error: updates.error,\n completedAt: updates.completedAt,\n duration: updates.duration,\n retryCount: updates.retryCount,\n };\n\n const updatedTrace = await this.databaseService.nodeExecutions.update(\n nodeExecutionId,\n updateInput,\n );\n\n this.logger.debug('Execution trace updated successfully', {\n nodeExecutionId,\n status: updatedTrace.status,\n });\n this.eventBus?.emitNodeExecutionUpdate(updatedTrace);\n return updatedTrace;\n } catch (error) {\n this.logger.error('Failed to update execution trace', { nodeExecutionId, error });\n throw error;\n }\n }\n\n /**\n * Get execution trace by ID\n */\n async getNodeExecutionById(nodeExecutionId: string) {\n this.logger.debug('Retrieving execution trace by ID', { nodeExecutionId });\n\n try {\n const trace = await this.databaseService.nodeExecutions.findById(nodeExecutionId);\n\n if (!trace) {\n throw new DatabaseError('Execution trace not found', { nodeExecutionId });\n }\n\n this.logger.debug('Execution trace retrieved successfully', { nodeExecutionId });\n return trace;\n } catch (error) {\n this.logger.error('Failed to retrieve execution trace', { nodeExecutionId, error });\n throw error;\n }\n }\n\n /**\n * Get all traces for an execution\n */\n async listNodeExecutionsByFlowRunId(flowRunId: string) {\n this.logger.debug('Retrieving execution traces', { flowRunId: flowRunId });\n\n try {\n const traces = await this.databaseService.nodeExecutions.findByFlowRunId(flowRunId);\n\n this.logger.debug('Execution traces retrieved successfully', {\n flowRunId: flowRunId,\n count: traces.length,\n });\n return traces;\n } catch (error) {\n this.logger.error('Failed to retrieve execution traces', { flowRunId: flowRunId, error });\n throw error;\n }\n }\n\n /**\n * Update trace status with optional additional data\n */\n async updateNodeExecutionStatus(\n traceId: string,\n status: NodeExecutionStatus,\n data?: {\n outputs?: NodeOutput;\n error?: string;\n reason?: string;\n },\n ): Promise<NodeExecution> {\n this.logger.debug('Updating node execution status', JSON.stringify({ traceId, status, data }));\n\n try {\n const updated = await this.databaseService.nodeExecutions.updateTraceStatus(\n traceId,\n status,\n data,\n );\n this.eventBus?.emitNodeExecutionUpdate(updated);\n return updated;\n } catch (error) {\n this.logger.error('Failed to update trace status', { traceId, status, error });\n throw new DatabaseError('Failed to update trace status', { error });\n }\n }\n\n /**\n * Increment retry count\n */\n async incrementRetryCount(traceId: string) {\n return this.databaseService.nodeExecutions.incrementRetryCount(traceId);\n }\n\n /**\n * Get all executions across all flows with optional filtering, pagination, and sorting\n */\n async listNodeExecutions(\n options?: QueryOptions<NodeExecution>,\n ): Promise<PaginatedResponse<NodeExecution>> {\n try {\n this.logger.debug('Getting all node executions', { options });\n\n // Call the model's list method which now handles pagination, sorting, and filtering\n const result = await this.databaseService.nodeExecutions.list(options);\n\n this.logger.debug('Node executions retrieved successfully', {\n count: result.data.length,\n pagination: result.pagination,\n });\n\n return result;\n } catch (error) {\n this.logger.error('Failed to get all node executions', { options, error });\n throw new DatabaseError('Failed to get all node executions', { error });\n }\n }\n\n /**\n * Get execution with flow data (enhanced single execution retrieval)\n */\n async getExecutionWithFlowData(executionId: string) {\n try {\n this.logger.debug('Getting execution with flow data', { executionId });\n\n // Get the execution\n const execution = await this.databaseService.flowRuns.findById(executionId);\n if (!execution) {\n return null;\n }\n\n // Get the flow data\n const flow = await this.databaseService.flows.findById(execution.flowId);\n if (!flow) {\n this.logger.warn('Flow not found for execution', {\n executionId,\n flowId: execution.flowId,\n });\n return execution;\n }\n\n // Get the flow version data\n const flowVersion = await this.databaseService.flowVersions.findByKey(\n execution.flowId,\n execution.flowVersion,\n );\n if (!flowVersion) {\n this.logger.warn('Flow version not found for execution', {\n executionId,\n flowId: execution.flowId,\n flowVersion: execution.flowVersion,\n });\n return execution;\n }\n\n // Get execution traces\n const traces = await this.databaseService.nodeExecutions.findByFlowRunId(executionId);\n\n return {\n ...execution,\n flowData: flow,\n flowVersionData: flowVersion,\n traces,\n };\n } catch (error) {\n this.logger.error('Failed to get execution with flow data', { executionId, error });\n throw new DatabaseError('Failed to get execution with flow data', { error });\n }\n }\n\n /**\n * Close the service\n */\n async close(): Promise<void> {\n this.logger.debug('Closing execution trace service');\n this.initialized = false;\n // Database connection lifecycle is managed externally\n }\n}\n"],"mappings":";;;;;AAYA,IAAa,uBAAb,MAAkC;CAChC,cAA+B;CAC/B,WAA6C;CAE7C,YACE,QACA,iBACA;AAFiB,OAAA,SAAA;AACA,OAAA,kBAAA;;;CAInB,YAAY,KAA8B;AACxC,OAAK,WAAW;;;;;CAMlB,MAAM,aAA4B;AAChC,MAAI,KAAK,aAAa;AACpB,QAAK,OAAO,MAAM,8CAA8C;AAChE;;AAGF,MAAI;AAEF,SAAM,KAAK,gBAAgB,YAAY;AACvC,QAAK,cAAc;AACnB,QAAK,OAAO,KAAK,mDAAmD;WAC7D,OAAO;AACd,QAAK,OAAO,MAAM,gDAAgD,EAAE,OAAO,CAAC;AAC5E,SAAM,IAAIA,qBAAAA,cAAc,gDAAgD,EAAE,OAAO,CAAC;;;;;;CAOtF,MAAM,oBACJ,aACA,QACA,UACA,QACA;AACA,OAAK,OAAO,MAAM,4BAA4B;GAAE;GAAa;GAAQ;GAAU,CAAC;AAEhF,MAAI;GACF,MAAM,QAAQ,MAAM,KAAK,gBAAgB,eAAe,OAAO;IAC7D,WAAW;IACX;IACA;IACA;IACD,CAAC;AAEF,QAAK,OAAO,MAAM,wCAAwC;IACxD,SAAS,MAAM;IACf;IACA;IACD,CAAC;AACF,QAAK,UAAU,wBAAwB,MAAM;AAC7C,UAAO;WACA,OAAO;AACd,QAAK,OAAO,MAAM,oCAAoC;IACpD;IACA;IACA;IACA;IACD,CAAC;AACF,SAAM;;;;;;CAOV,MAAM,oBAAoB,iBAAyB,SAAiC;AAClF,OAAK,OAAO,MAAM,4BAA4B;GAAE;GAAiB;GAAS,CAAC;AAE3E,MAAI;GAEF,MAAM,cAAc;IAClB,QAAQ,QAAQ;IAChB,SAAS,QAAQ;IACjB,OAAO,QAAQ;IACf,aAAa,QAAQ;IACrB,UAAU,QAAQ;IAClB,YAAY,QAAQ;IACrB;GAED,MAAM,eAAe,MAAM,KAAK,gBAAgB,eAAe,OAC7D,iBACA,YACD;AAED,QAAK,OAAO,MAAM,wCAAwC;IACxD;IACA,QAAQ,aAAa;IACtB,CAAC;AACF,QAAK,UAAU,wBAAwB,aAAa;AACpD,UAAO;WACA,OAAO;AACd,QAAK,OAAO,MAAM,oCAAoC;IAAE;IAAiB;IAAO,CAAC;AACjF,SAAM;;;;;;CAOV,MAAM,qBAAqB,iBAAyB;AAClD,OAAK,OAAO,MAAM,oCAAoC,EAAE,iBAAiB,CAAC;AAE1E,MAAI;GACF,MAAM,QAAQ,MAAM,KAAK,gBAAgB,eAAe,SAAS,gBAAgB;AAEjF,OAAI,CAAC,MACH,OAAM,IAAIA,qBAAAA,cAAc,6BAA6B,EAAE,iBAAiB,CAAC;AAG3E,QAAK,OAAO,MAAM,0CAA0C,EAAE,iBAAiB,CAAC;AAChF,UAAO;WACA,OAAO;AACd,QAAK,OAAO,MAAM,sCAAsC;IAAE;IAAiB;IAAO,CAAC;AACnF,SAAM;;;;;;CAOV,MAAM,8BAA8B,WAAmB;AACrD,OAAK,OAAO,MAAM,+BAA+B,EAAa,WAAW,CAAC;AAE1E,MAAI;GACF,MAAM,SAAS,MAAM,KAAK,gBAAgB,eAAe,gBAAgB,UAAU;AAEnF,QAAK,OAAO,MAAM,2CAA2C;IAChD;IACX,OAAO,OAAO;IACf,CAAC;AACF,UAAO;WACA,OAAO;AACd,QAAK,OAAO,MAAM,uCAAuC;IAAa;IAAW;IAAO,CAAC;AACzF,SAAM;;;;;;CAOV,MAAM,0BACJ,SACA,QACA,MAKwB;AACxB,OAAK,OAAO,MAAM,kCAAkC,KAAK,UAAU;GAAE;GAAS;GAAQ;GAAM,CAAC,CAAC;AAE9F,MAAI;GACF,MAAM,UAAU,MAAM,KAAK,gBAAgB,eAAe,kBACxD,SACA,QACA,KACD;AACD,QAAK,UAAU,wBAAwB,QAAQ;AAC/C,UAAO;WACA,OAAO;AACd,QAAK,OAAO,MAAM,iCAAiC;IAAE;IAAS;IAAQ;IAAO,CAAC;AAC9E,SAAM,IAAIA,qBAAAA,cAAc,iCAAiC,EAAE,OAAO,CAAC;;;;;;CAOvE,MAAM,oBAAoB,SAAiB;AACzC,SAAO,KAAK,gBAAgB,eAAe,oBAAoB,QAAQ;;;;;CAMzE,MAAM,mBACJ,SAC2C;AAC3C,MAAI;AACF,QAAK,OAAO,MAAM,+BAA+B,EAAE,SAAS,CAAC;GAG7D,MAAM,SAAS,MAAM,KAAK,gBAAgB,eAAe,KAAK,QAAQ;AAEtE,QAAK,OAAO,MAAM,0CAA0C;IAC1D,OAAO,OAAO,KAAK;IACnB,YAAY,OAAO;IACpB,CAAC;AAEF,UAAO;WACA,OAAO;AACd,QAAK,OAAO,MAAM,qCAAqC;IAAE;IAAS;IAAO,CAAC;AAC1E,SAAM,IAAIA,qBAAAA,cAAc,qCAAqC,EAAE,OAAO,CAAC;;;;;;CAO3E,MAAM,yBAAyB,aAAqB;AAClD,MAAI;AACF,QAAK,OAAO,MAAM,oCAAoC,EAAE,aAAa,CAAC;GAGtE,MAAM,YAAY,MAAM,KAAK,gBAAgB,SAAS,SAAS,YAAY;AAC3E,OAAI,CAAC,UACH,QAAO;GAIT,MAAM,OAAO,MAAM,KAAK,gBAAgB,MAAM,SAAS,UAAU,OAAO;AACxE,OAAI,CAAC,MAAM;AACT,SAAK,OAAO,KAAK,gCAAgC;KAC/C;KACA,QAAQ,UAAU;KACnB,CAAC;AACF,WAAO;;GAIT,MAAM,cAAc,MAAM,KAAK,gBAAgB,aAAa,UAC1D,UAAU,QACV,UAAU,YACX;AACD,OAAI,CAAC,aAAa;AAChB,SAAK,OAAO,KAAK,wCAAwC;KACvD;KACA,QAAQ,UAAU;KAClB,aAAa,UAAU;KACxB,CAAC;AACF,WAAO;;GAIT,MAAM,SAAS,MAAM,KAAK,gBAAgB,eAAe,gBAAgB,YAAY;AAErF,UAAO;IACL,GAAG;IACH,UAAU;IACV,iBAAiB;IACjB;IACD;WACM,OAAO;AACd,QAAK,OAAO,MAAM,0CAA0C;IAAE;IAAa;IAAO,CAAC;AACnF,SAAM,IAAIA,qBAAAA,cAAc,0CAA0C,EAAE,OAAO,CAAC;;;;;;CAOhF,MAAM,QAAuB;AAC3B,OAAK,OAAO,MAAM,kCAAkC;AACpD,OAAK,cAAc"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { FlowRunStatus, NodeExecutionStatus } from "../../types/base.cjs";
|
|
2
|
+
import { PaginatedResponse, QueryOptions } from "../../types/schemas/pagination-sort-filter.cjs";
|
|
3
|
+
import { Logger } from "../../types/schemas-fresh/invect-config.cjs";
|
|
4
|
+
import { NodeOutput } from "../../types/node-io-types.cjs";
|
|
5
|
+
import { FlowRun } from "../flow-runs/flow-runs.model.cjs";
|
|
6
|
+
import { Flow } from "../flows/flows.model.cjs";
|
|
7
|
+
import { NodeExecution } from "./node-executions.model.cjs";
|
|
8
|
+
import { DatabaseService } from "../database/database.service.cjs";
|
|
9
|
+
import { ExecutionEventBus } from "../execution-event-bus.cjs";
|
|
10
|
+
//#region src/services/node-executions/node-execution.service.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* Core Execution Trace Service implementation using database models
|
|
13
|
+
*/
|
|
14
|
+
declare class NodeExecutionService {
|
|
15
|
+
private readonly logger;
|
|
16
|
+
private readonly databaseService;
|
|
17
|
+
private initialized;
|
|
18
|
+
private eventBus;
|
|
19
|
+
constructor(logger: Logger, databaseService: DatabaseService);
|
|
20
|
+
/** Attach the event bus so state changes are broadcast to SSE subscribers. */
|
|
21
|
+
setEventBus(bus: ExecutionEventBus): void;
|
|
22
|
+
/**
|
|
23
|
+
* Initialize the service
|
|
24
|
+
*/
|
|
25
|
+
initialize(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a new execution trace
|
|
28
|
+
*/
|
|
29
|
+
createNodeExecution(executionId: string, nodeId: string, nodeType: string, inputs: Record<string, unknown>): Promise<NodeExecution>;
|
|
30
|
+
/**
|
|
31
|
+
* Update execution trace
|
|
32
|
+
*/
|
|
33
|
+
updateNodeExecution(nodeExecutionId: string, updates: Partial<NodeExecution>): Promise<NodeExecution>;
|
|
34
|
+
/**
|
|
35
|
+
* Get execution trace by ID
|
|
36
|
+
*/
|
|
37
|
+
getNodeExecutionById(nodeExecutionId: string): Promise<NodeExecution>;
|
|
38
|
+
/**
|
|
39
|
+
* Get all traces for an execution
|
|
40
|
+
*/
|
|
41
|
+
listNodeExecutionsByFlowRunId(flowRunId: string): Promise<NodeExecution[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Update trace status with optional additional data
|
|
44
|
+
*/
|
|
45
|
+
updateNodeExecutionStatus(traceId: string, status: NodeExecutionStatus, data?: {
|
|
46
|
+
outputs?: NodeOutput;
|
|
47
|
+
error?: string;
|
|
48
|
+
reason?: string;
|
|
49
|
+
}): Promise<NodeExecution>;
|
|
50
|
+
/**
|
|
51
|
+
* Increment retry count
|
|
52
|
+
*/
|
|
53
|
+
incrementRetryCount(traceId: string): Promise<NodeExecution>;
|
|
54
|
+
/**
|
|
55
|
+
* Get all executions across all flows with optional filtering, pagination, and sorting
|
|
56
|
+
*/
|
|
57
|
+
listNodeExecutions(options?: QueryOptions<NodeExecution>): Promise<PaginatedResponse<NodeExecution>>;
|
|
58
|
+
/**
|
|
59
|
+
* Get execution with flow data (enhanced single execution retrieval)
|
|
60
|
+
*/
|
|
61
|
+
getExecutionWithFlowData(executionId: string): Promise<FlowRun | {
|
|
62
|
+
flowData: Flow;
|
|
63
|
+
flowVersionData: {
|
|
64
|
+
createdAt: string;
|
|
65
|
+
flowId: string;
|
|
66
|
+
version: number;
|
|
67
|
+
invectDefinition: {
|
|
68
|
+
nodes: {
|
|
69
|
+
id: string;
|
|
70
|
+
type: string;
|
|
71
|
+
params: Record<string, unknown>;
|
|
72
|
+
position?: {
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
} | undefined;
|
|
76
|
+
label?: string | undefined;
|
|
77
|
+
referenceId?: string | undefined;
|
|
78
|
+
_loop?: unknown;
|
|
79
|
+
mapper?: {
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
expression: string;
|
|
82
|
+
mode: "auto" | "iterate" | "reshape";
|
|
83
|
+
outputMode: "object" | "array" | "concat" | "first" | "last";
|
|
84
|
+
concurrency: number;
|
|
85
|
+
onEmpty: "error" | "skip";
|
|
86
|
+
keyField?: string | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
}[];
|
|
89
|
+
edges: {
|
|
90
|
+
id: string;
|
|
91
|
+
source: string;
|
|
92
|
+
target: string;
|
|
93
|
+
sourceHandle?: string | undefined;
|
|
94
|
+
targetHandle?: string | undefined;
|
|
95
|
+
metadata?: Record<string, unknown> | undefined;
|
|
96
|
+
}[];
|
|
97
|
+
metadata?: Record<string, unknown> | undefined;
|
|
98
|
+
};
|
|
99
|
+
createdBy: string | null;
|
|
100
|
+
};
|
|
101
|
+
traces: NodeExecution[];
|
|
102
|
+
id: string;
|
|
103
|
+
flowId: string;
|
|
104
|
+
flowVersion: number;
|
|
105
|
+
status: FlowRunStatus;
|
|
106
|
+
inputs: Record<string, unknown>;
|
|
107
|
+
outputs?: Record<string, unknown>;
|
|
108
|
+
error?: string;
|
|
109
|
+
startedAt: Date | string;
|
|
110
|
+
completedAt?: Date | string;
|
|
111
|
+
duration?: number;
|
|
112
|
+
createdBy?: string;
|
|
113
|
+
triggerType?: string | null;
|
|
114
|
+
triggerId?: string | null;
|
|
115
|
+
triggerNodeId?: string | null;
|
|
116
|
+
triggerData?: Record<string, unknown> | null;
|
|
117
|
+
lastHeartbeatAt?: Date | string | null;
|
|
118
|
+
} | null>;
|
|
119
|
+
/**
|
|
120
|
+
* Close the service
|
|
121
|
+
*/
|
|
122
|
+
close(): Promise<void>;
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
export { NodeExecutionService };
|
|
126
|
+
//# sourceMappingURL=node-execution.service.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-execution.service.d.cts","names":[],"sources":["../../../src/services/node-executions/node-execution.service.ts"],"mappings":";;;;;;;;;;;;;cAYa,oBAAA;EAAA,iBAKQ,MAAA;EAAA,iBACA,eAAA;EAAA,QALX,WAAA;EAAA,QACA,QAAA;cAGW,MAAA,EAAQ,MAAA,EACR,eAAA,EAAiB,eAAA;EAAA;EAIpC,WAAA,CAAY,GAAA,EAAK,iBAAA;EAOG;;;EAAd,UAAA,CAAA,GAAc,OAAA;EAyDgD;;;EArC9D,mBAAA,CACJ,WAAA,UACA,MAAA,UACA,QAAA,UACA,MAAA,EAAQ,MAAA,oBAAuB,OAAA,CAAA,aAAA;EAmEiB;;;EAlC5C,mBAAA,CAAoB,eAAA,UAAyB,OAAA,EAAS,OAAA,CAAQ,aAAA,IAAc,OAAA,CAAA,aAAA;EA6ExE;;;EA3CJ,oBAAA,CAAqB,eAAA,WAAuB,OAAA,CAAA,aAAA;EAqET;;;EAhDnC,6BAAA,CAA8B,SAAA,WAAiB,OAAA,CAAA,aAAA;EAyDxB;;;EArCvB,yBAAA,CACJ,OAAA,UACA,MAAA,EAAQ,mBAAA,EACR,IAAA;IACE,OAAA,GAAU,UAAA;IACV,KAAA;IACA,MAAA;EAAA,IAED,OAAA,CAAQ,aAAA;;;;EAoBL,mBAAA,CAAoB,OAAA,WAAe,OAAA,CAAA,aAAA;;;;EAOnC,kBAAA,CACJ,OAAA,GAAU,YAAA,CAAa,aAAA,IACtB,OAAA,CAAQ,iBAAA,CAAkB,aAAA;EAsBqB;;;EAA5C,wBAAA,CAAyB,WAAA,WAAmB,OAAA,CAtBxC,OAAA;cAsBwC,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAtBvC;;;EA0EL,KAAA,CAAA,GAAS,OAAA;AAAA"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { FlowRunStatus, NodeExecutionStatus } from "../../types/base.js";
|
|
2
|
+
import { PaginatedResponse, QueryOptions } from "../../types/schemas/pagination-sort-filter.js";
|
|
3
|
+
import { Logger } from "../../types/schemas-fresh/invect-config.js";
|
|
4
|
+
import { NodeOutput } from "../../types/node-io-types.js";
|
|
5
|
+
import { FlowRun } from "../flow-runs/flow-runs.model.js";
|
|
6
|
+
import { Flow } from "../flows/flows.model.js";
|
|
7
|
+
import { NodeExecution } from "./node-executions.model.js";
|
|
8
|
+
import { DatabaseService } from "../database/database.service.js";
|
|
9
|
+
import { ExecutionEventBus } from "../execution-event-bus.js";
|
|
10
|
+
//#region src/services/node-executions/node-execution.service.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* Core Execution Trace Service implementation using database models
|
|
13
|
+
*/
|
|
14
|
+
declare class NodeExecutionService {
|
|
15
|
+
private readonly logger;
|
|
16
|
+
private readonly databaseService;
|
|
17
|
+
private initialized;
|
|
18
|
+
private eventBus;
|
|
19
|
+
constructor(logger: Logger, databaseService: DatabaseService);
|
|
20
|
+
/** Attach the event bus so state changes are broadcast to SSE subscribers. */
|
|
21
|
+
setEventBus(bus: ExecutionEventBus): void;
|
|
22
|
+
/**
|
|
23
|
+
* Initialize the service
|
|
24
|
+
*/
|
|
25
|
+
initialize(): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Create a new execution trace
|
|
28
|
+
*/
|
|
29
|
+
createNodeExecution(executionId: string, nodeId: string, nodeType: string, inputs: Record<string, unknown>): Promise<NodeExecution>;
|
|
30
|
+
/**
|
|
31
|
+
* Update execution trace
|
|
32
|
+
*/
|
|
33
|
+
updateNodeExecution(nodeExecutionId: string, updates: Partial<NodeExecution>): Promise<NodeExecution>;
|
|
34
|
+
/**
|
|
35
|
+
* Get execution trace by ID
|
|
36
|
+
*/
|
|
37
|
+
getNodeExecutionById(nodeExecutionId: string): Promise<NodeExecution>;
|
|
38
|
+
/**
|
|
39
|
+
* Get all traces for an execution
|
|
40
|
+
*/
|
|
41
|
+
listNodeExecutionsByFlowRunId(flowRunId: string): Promise<NodeExecution[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Update trace status with optional additional data
|
|
44
|
+
*/
|
|
45
|
+
updateNodeExecutionStatus(traceId: string, status: NodeExecutionStatus, data?: {
|
|
46
|
+
outputs?: NodeOutput;
|
|
47
|
+
error?: string;
|
|
48
|
+
reason?: string;
|
|
49
|
+
}): Promise<NodeExecution>;
|
|
50
|
+
/**
|
|
51
|
+
* Increment retry count
|
|
52
|
+
*/
|
|
53
|
+
incrementRetryCount(traceId: string): Promise<NodeExecution>;
|
|
54
|
+
/**
|
|
55
|
+
* Get all executions across all flows with optional filtering, pagination, and sorting
|
|
56
|
+
*/
|
|
57
|
+
listNodeExecutions(options?: QueryOptions<NodeExecution>): Promise<PaginatedResponse<NodeExecution>>;
|
|
58
|
+
/**
|
|
59
|
+
* Get execution with flow data (enhanced single execution retrieval)
|
|
60
|
+
*/
|
|
61
|
+
getExecutionWithFlowData(executionId: string): Promise<FlowRun | {
|
|
62
|
+
flowData: Flow;
|
|
63
|
+
flowVersionData: {
|
|
64
|
+
createdAt: string;
|
|
65
|
+
flowId: string;
|
|
66
|
+
version: number;
|
|
67
|
+
invectDefinition: {
|
|
68
|
+
nodes: {
|
|
69
|
+
id: string;
|
|
70
|
+
type: string;
|
|
71
|
+
params: Record<string, unknown>;
|
|
72
|
+
position?: {
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
} | undefined;
|
|
76
|
+
label?: string | undefined;
|
|
77
|
+
referenceId?: string | undefined;
|
|
78
|
+
_loop?: unknown;
|
|
79
|
+
mapper?: {
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
expression: string;
|
|
82
|
+
mode: "auto" | "iterate" | "reshape";
|
|
83
|
+
outputMode: "object" | "array" | "concat" | "first" | "last";
|
|
84
|
+
concurrency: number;
|
|
85
|
+
onEmpty: "error" | "skip";
|
|
86
|
+
keyField?: string | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
}[];
|
|
89
|
+
edges: {
|
|
90
|
+
id: string;
|
|
91
|
+
source: string;
|
|
92
|
+
target: string;
|
|
93
|
+
sourceHandle?: string | undefined;
|
|
94
|
+
targetHandle?: string | undefined;
|
|
95
|
+
metadata?: Record<string, unknown> | undefined;
|
|
96
|
+
}[];
|
|
97
|
+
metadata?: Record<string, unknown> | undefined;
|
|
98
|
+
};
|
|
99
|
+
createdBy: string | null;
|
|
100
|
+
};
|
|
101
|
+
traces: NodeExecution[];
|
|
102
|
+
id: string;
|
|
103
|
+
flowId: string;
|
|
104
|
+
flowVersion: number;
|
|
105
|
+
status: FlowRunStatus;
|
|
106
|
+
inputs: Record<string, unknown>;
|
|
107
|
+
outputs?: Record<string, unknown>;
|
|
108
|
+
error?: string;
|
|
109
|
+
startedAt: Date | string;
|
|
110
|
+
completedAt?: Date | string;
|
|
111
|
+
duration?: number;
|
|
112
|
+
createdBy?: string;
|
|
113
|
+
triggerType?: string | null;
|
|
114
|
+
triggerId?: string | null;
|
|
115
|
+
triggerNodeId?: string | null;
|
|
116
|
+
triggerData?: Record<string, unknown> | null;
|
|
117
|
+
lastHeartbeatAt?: Date | string | null;
|
|
118
|
+
} | null>;
|
|
119
|
+
/**
|
|
120
|
+
* Close the service
|
|
121
|
+
*/
|
|
122
|
+
close(): Promise<void>;
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
export { NodeExecutionService };
|
|
126
|
+
//# sourceMappingURL=node-execution.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-execution.service.d.ts","names":[],"sources":["../../../src/services/node-executions/node-execution.service.ts"],"mappings":";;;;;;;;;;;;;cAYa,oBAAA;EAAA,iBAKQ,MAAA;EAAA,iBACA,eAAA;EAAA,QALX,WAAA;EAAA,QACA,QAAA;cAGW,MAAA,EAAQ,MAAA,EACR,eAAA,EAAiB,eAAA;EADT;EAK3B,WAAA,CAAY,GAAA,EAAK,iBAAA;EAAA;;;EAOX,UAAA,CAAA,GAAc,OAAA;EAwBa;;;EAJ3B,mBAAA,CACJ,WAAA,UACA,MAAA,UACA,QAAA,UACA,MAAA,EAAQ,MAAA,oBAAuB,OAAA,CAAA,aAAA;EAiCiD;;;EAA5E,mBAAA,CAAoB,eAAA,UAAyB,OAAA,EAAS,OAAA,CAAQ,aAAA,IAAc,OAAA,CAAA,aAAA;EAuD7B;;;EArB/C,oBAAA,CAAqB,eAAA,WAAuB,OAAA,CAAA,aAAA;EAiD/C;;;EA5BG,6BAAA,CAA8B,SAAA,WAAiB,OAAA,CAAA,aAAA;EAwDzC;;;EApCN,yBAAA,CACJ,OAAA,UACA,MAAA,EAAQ,mBAAA,EACR,IAAA;IACE,OAAA,GAAU,UAAA;IACV,KAAA;IACA,MAAA;EAAA,IAED,OAAA,CAAQ,aAAA;;;;EAoBL,mBAAA,CAAoB,OAAA,WAAe,OAAA,CAAA,aAAA;;;;EAOnC,kBAAA,CACJ,OAAA,GAAU,YAAA,CAAa,aAAA,IACtB,OAAA,CAAQ,iBAAA,CAAkB,aAAA;;;;EAsBvB,wBAAA,CAAyB,WAAA,WAAmB,OAAA,CAtBxC,OAAA;cAsBwC,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAtB/C;;;EA0EG,KAAA,CAAA,GAAS,OAAA;AAAA"}
|