@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 @@
|
|
|
1
|
+
{"version":3,"file":"validation.js","names":[],"sources":["../../src/types/validation.ts"],"sourcesContent":["// Flow validation types shared between frontend and backend\nimport type {\n FlowNodeDefinitions,\n InvectDefinition,\n FlowEdge,\n} from '../services/flow-versions/schemas-fresh';\n\ninterface ValidationOutput {\n message: string;\n\n // Optional fields for frontend highlighting\n nodeId?: string;\n edgeId?: string;\n sourceNodeId?: string;\n targetNodeId?: string;\n sourceNodeType?: string;\n targetNodeType?: string;\n additionalContext?: Record<string, unknown>;\n}\n\n// Internal validation types for the validation engine\nexport interface ValidationIssue extends ValidationOutput {\n severity: 'error' | 'warning';\n type: string;\n}\n\nexport interface GraphAnalysis {\n nodeMap: Map<string, FlowNodeDefinitions>;\n edgeMap: Map<string, FlowEdge>;\n incomingEdges: Map<string, FlowEdge[]>;\n outgoingEdges: Map<string, FlowEdge[]>;\n}\n\nexport interface FlowValidationError extends ValidationOutput {\n severity: 'error';\n type: keyof (typeof FLOW_VALIDATION_ERROR_TYPES)['ERROR'];\n}\n\nexport interface FlowValidationWarning extends ValidationOutput {\n severity: 'warning';\n type: keyof (typeof FLOW_VALIDATION_ERROR_TYPES)['WARNING'];\n}\n\nexport type FlowValidationResult =\n | {\n isValid: false;\n errors: FlowValidationError[];\n warnings: FlowValidationWarning[];\n }\n | {\n isValid: true;\n warnings?: FlowValidationWarning[];\n };\n\nexport interface FlowValidationErrorResponse {\n message: string;\n validation: FlowValidationResult;\n}\n\n// ─── Error / Warning type constants ──────────────────────────────────────────\n//\n// Errors = will cause execution to crash or throw (the flow cannot run).\n// Warnings = probably unintended but the flow will still execute.\n\nexport const FLOW_VALIDATION_ERROR_TYPES = {\n ERROR: {\n INVALID_EDGE_REFERENCE: 'INVALID_EDGE_REFERENCE',\n SELF_REFERENCING_EDGE: 'SELF_REFERENCING_EDGE',\n CIRCULAR_DEPENDENCY: 'CIRCULAR_DEPENDENCY',\n MULTIPLE_MANUAL_TRIGGERS: 'MULTIPLE_MANUAL_TRIGGERS',\n VALIDATION_SYSTEM_ERROR: 'VALIDATION_SYSTEM_ERROR',\n },\n WARNING: {\n EMPTY_FLOW: 'EMPTY_FLOW',\n ENTRY_NODE_HAS_INCOMING_EDGES: 'ENTRY_NODE_HAS_INCOMING_EDGES',\n DISCONNECTED_NODE: 'DISCONNECTED_NODE',\n DUPLICATE_EDGE: 'DUPLICATE_EDGE',\n },\n} as const;\n\n// ─── Validation context ──────────────────────────────────────────────────────\n\nexport class ValidationContext {\n public readonly definition: InvectDefinition;\n public readonly analysis: GraphAnalysis;\n public readonly issues: ValidationIssue[] = [];\n\n constructor(definition: InvectDefinition, analysis: GraphAnalysis) {\n this.definition = definition;\n this.analysis = analysis;\n }\n\n addError(type: string, message: string, context?: Partial<ValidationIssue>): void {\n this.issues.push({ severity: 'error', type, message, ...context });\n }\n\n addWarning(type: string, message: string, context?: Partial<ValidationIssue>): void {\n this.issues.push({ severity: 'warning', type, message, ...context });\n }\n\n hasErrors(): boolean {\n return this.issues.some((issue) => issue.severity === 'error');\n }\n}\n"],"mappings":";AAgEA,MAAa,8BAA8B;CACzC,OAAO;EACL,wBAAwB;EACxB,uBAAuB;EACvB,qBAAqB;EACrB,0BAA0B;EAC1B,yBAAyB;EAC1B;CACD,SAAS;EACP,YAAY;EACZ,+BAA+B;EAC/B,mBAAmB;EACnB,gBAAgB;EACjB;CACF;AAID,IAAa,oBAAb,MAA+B;CAC7B;CACA;CACA,SAA4C,EAAE;CAE9C,YAAY,YAA8B,UAAyB;AACjE,OAAK,aAAa;AAClB,OAAK,WAAW;;CAGlB,SAAS,MAAc,SAAiB,SAA0C;AAChF,OAAK,OAAO,KAAK;GAAE,UAAU;GAAS;GAAM;GAAS,GAAG;GAAS,CAAC;;CAGpE,WAAW,MAAc,SAAiB,SAA0C;AAClF,OAAK,OAAO,KAAK;GAAE,UAAU;GAAW;GAAM;GAAS,GAAG;GAAS,CAAC;;CAGtE,YAAqB;AACnB,SAAO,KAAK,OAAO,MAAM,UAAU,MAAM,aAAa,QAAQ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_base = require("./types/base.cjs");
|
|
3
|
+
const require_ai_types = require("./services/ai/ai-types.cjs");
|
|
4
|
+
const require_graph_node_types = require("./types/graph-node-types.cjs");
|
|
5
|
+
const require_validation = require("./types/validation.cjs");
|
|
6
|
+
exports.BatchProvider = require_ai_types.BatchProvider;
|
|
7
|
+
exports.FLOW_VALIDATION_ERROR_TYPES = require_validation.FLOW_VALIDATION_ERROR_TYPES;
|
|
8
|
+
exports.FlowRunStatus = require_base.FlowRunStatus;
|
|
9
|
+
exports.GRAPH_NODE_TYPE_NAMES = require_graph_node_types.GRAPH_NODE_TYPE_NAMES;
|
|
10
|
+
exports.GraphNodeType = require_graph_node_types.GraphNodeType;
|
|
11
|
+
exports.NodeExecutionStatus = require_base.NodeExecutionStatus;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FlowRunStatus, NodeExecutionStatus } from "./types/base.cjs";
|
|
2
|
+
import { PaginatedResponse, QueryOptions } from "./types/schemas/pagination-sort-filter.cjs";
|
|
3
|
+
import { ExecutionConfig, InvectConfig, InvectDatabaseConfig, Logger, LoggingConfig, queryDatabasesConfigSchema } from "./types/schemas-fresh/invect-config.cjs";
|
|
4
|
+
import { InputMappingConfig, NodeIncomingDataObject, NodeInputData, NodeOutput, NodeOutputs, OutputVariable, OutputVariables, StructuredOutput } from "./types/node-io-types.cjs";
|
|
5
|
+
import { NodeExecutionResult } from "./types/node-execution.types.cjs";
|
|
6
|
+
import { CreateFlowVersionRequest, FlowEdge, FlowNodeDefinitions, InvectDefinition, MapperConfig } from "./services/flow-versions/schemas-fresh.cjs";
|
|
7
|
+
import { AddedToolInstance, AgentExecutionOutput, AgentFinishReason, AgentMessage, AgentStopCondition, AgentToolCall, AgentToolCategory, AgentToolDefinition, AgentToolResult, ConfiguredToolDefinition, ToolExecutionRecord } from "./types/agent-tool.types.cjs";
|
|
8
|
+
import { DatabaseConnectionConfig, SQLQueryResult, SubmitPromptRequest, SubmitSQLQueryRequest } from "./services/node-data.service.cjs";
|
|
9
|
+
import { GRAPH_NODE_TYPE_NAMES, GraphNodeType } from "./types/graph-node-types.cjs";
|
|
10
|
+
import { FlowRunContext } from "./types-fresh.cjs";
|
|
11
|
+
import { FlowRunHookContext, InvectPlugin, InvectPluginContext, InvectPluginEndpoint, InvectPluginHooks, InvectPluginInitResult, InvectPluginSchema, NodeExecutionHookContext, NodeExecutionHookResult, PluginDatabaseApi, PluginEndpointContext, PluginEndpointResponse, PluginFieldAttribute, PluginFieldType, PluginHookRunner, PluginTableDefinition } from "./types/plugin.types.cjs";
|
|
12
|
+
import { CreateFlowRunInput, FlowRun, UpdateFlowRunInput } from "./services/flow-runs/flow-runs.model.cjs";
|
|
13
|
+
import { CreateFlowInput, Flow, UpdateFlowInput } from "./services/flows/flows.model.cjs";
|
|
14
|
+
import { CreateNodeExecutionInput, NodeExecution, UpdateNodeExecutionInput } from "./services/node-executions/node-executions.model.cjs";
|
|
15
|
+
import { CreateTriggerInput, FlowTriggerRegistration, TriggerExecutionOptions, TriggerType, UpdateTriggerInput } from "./services/triggers/trigger.types.cjs";
|
|
16
|
+
import { BatchProvider, Model } from "./services/ai/ai-types.cjs";
|
|
17
|
+
import { FlowVersion } from "./database/schema-sqlite.cjs";
|
|
18
|
+
import { EndEvent, ExecutionSnapshotEvent, ExecutionStreamEvent, FlowRunUpdatedEvent, HeartbeatEvent, NodeExecutionCreatedEvent, NodeExecutionUpdatedEvent } from "./services/execution-event-bus.cjs";
|
|
19
|
+
import { ExecuteFlowOptions, FlowInputs, FlowRunResult } from "./services/flow-runs/flow-runs.service.cjs";
|
|
20
|
+
import { NodeConfigUpdateContext, NodeConfigUpdateEvent, NodeConfigUpdateResponse } from "./types/node-config-update.types.cjs";
|
|
21
|
+
import { NodeExecutionStatusInfo, NodeVisualStatus, Position, ReactFlowData, ReactFlowEdge, ReactFlowNode, ReactFlowNodeData, TypedReactFlowData } from "./services/react-flow-renderer.service.cjs";
|
|
22
|
+
import { FLOW_VALIDATION_ERROR_TYPES, FlowValidationError, FlowValidationResult, FlowValidationWarning, ValidationIssue } from "./types/validation.cjs";
|
|
23
|
+
import { LogLevel, LogScopeName, ScopedLoggingConfig } from "./utils/logger.cjs";
|
|
24
|
+
import { DashboardStats } from "./invect-core.cjs";
|
|
25
|
+
export { type AddedToolInstance, type AgentExecutionOutput, type AgentFinishReason, type AgentMessage, type AgentStopCondition, type AgentToolCall, type AgentToolCategory, type AgentToolDefinition, type AgentToolResult, BatchProvider, type ConfiguredToolDefinition, type CreateFlowInput as CreateFlowDto, type CreateFlowInput as CreateFlowRequest, type CreateFlowRunInput, type CreateFlowVersionRequest as CreateFlowVersionDto, type CreateFlowVersionRequest, type CreateNodeExecutionInput, type CreateTriggerInput, type DashboardStats, type queryDatabasesConfigSchema as DatabaseConfig, type DatabaseConnectionConfig, type EndEvent, type ExecuteFlowOptions, type ExecutionConfig, type NodeExecutionResult as ExecutionResult, type ExecutionSnapshotEvent, type ExecutionStreamEvent, FLOW_VALIDATION_ERROR_TYPES, type Flow, type FlowEdge, type FlowInputs, type FlowNodeDefinitions as FlowNode, type FlowRun, type FlowRunContext, type FlowRunHookContext, type FlowRunResult, FlowRunStatus, type FlowRunUpdatedEvent, type FlowTriggerRegistration, type FlowValidationError, type FlowValidationResult, type FlowValidationWarning, type FlowVersion, GRAPH_NODE_TYPE_NAMES, GraphNodeType, type HeartbeatEvent, type InputMappingConfig, type InvectConfig, type InvectDatabaseConfig, type InvectDefinition, type InvectPlugin, type InvectPluginContext, type InvectPluginEndpoint, type InvectPluginHooks, type InvectPluginInitResult, type InvectPluginSchema, type LogLevel, type LogScopeName, type Logger, type LoggingConfig, type MapperConfig, type Model, type NodeConfigUpdateContext, type NodeConfigUpdateEvent, type NodeConfigUpdateResponse, type NodeExecution, type NodeExecutionCreatedEvent, type NodeExecutionHookContext, type NodeExecutionHookResult, NodeExecutionStatus, type NodeExecutionStatusInfo, type NodeExecutionUpdatedEvent, type NodeIncomingDataObject, type NodeInputData, type NodeOutput, type NodeOutputs, type NodeVisualStatus, type OutputVariable, type OutputVariables, type PaginatedResponse, type PluginDatabaseApi, type PluginEndpointContext, type PluginEndpointResponse, type PluginFieldAttribute, type PluginFieldType, type PluginHookRunner, type PluginTableDefinition, type Position, type QueryOptions, type ReactFlowData, type ReactFlowEdge, type ReactFlowNode, type ReactFlowNodeData, type SQLQueryResult, type ScopedLoggingConfig, type StructuredOutput, type SubmitPromptRequest, type SubmitSQLQueryRequest, type ToolExecutionRecord, type TriggerExecutionOptions, type TriggerType, type TypedReactFlowData, type UpdateFlowInput, type UpdateFlowRunInput, type UpdateNodeExecutionInput, type UpdateTriggerInput, type ValidationIssue };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FlowRunStatus, NodeExecutionStatus } from "./types/base.js";
|
|
2
|
+
import { PaginatedResponse, QueryOptions } from "./types/schemas/pagination-sort-filter.js";
|
|
3
|
+
import { ExecutionConfig, InvectConfig, InvectDatabaseConfig, Logger, LoggingConfig, queryDatabasesConfigSchema } from "./types/schemas-fresh/invect-config.js";
|
|
4
|
+
import { InputMappingConfig, NodeIncomingDataObject, NodeInputData, NodeOutput, NodeOutputs, OutputVariable, OutputVariables, StructuredOutput } from "./types/node-io-types.js";
|
|
5
|
+
import { NodeExecutionResult } from "./types/node-execution.types.js";
|
|
6
|
+
import { CreateFlowVersionRequest, FlowEdge, FlowNodeDefinitions, InvectDefinition, MapperConfig } from "./services/flow-versions/schemas-fresh.js";
|
|
7
|
+
import { AddedToolInstance, AgentExecutionOutput, AgentFinishReason, AgentMessage, AgentStopCondition, AgentToolCall, AgentToolCategory, AgentToolDefinition, AgentToolResult, ConfiguredToolDefinition, ToolExecutionRecord } from "./types/agent-tool.types.js";
|
|
8
|
+
import { DatabaseConnectionConfig, SQLQueryResult, SubmitPromptRequest, SubmitSQLQueryRequest } from "./services/node-data.service.js";
|
|
9
|
+
import { GRAPH_NODE_TYPE_NAMES, GraphNodeType } from "./types/graph-node-types.js";
|
|
10
|
+
import { FlowRunContext } from "./types-fresh.js";
|
|
11
|
+
import { FlowRunHookContext, InvectPlugin, InvectPluginContext, InvectPluginEndpoint, InvectPluginHooks, InvectPluginInitResult, InvectPluginSchema, NodeExecutionHookContext, NodeExecutionHookResult, PluginDatabaseApi, PluginEndpointContext, PluginEndpointResponse, PluginFieldAttribute, PluginFieldType, PluginHookRunner, PluginTableDefinition } from "./types/plugin.types.js";
|
|
12
|
+
import { CreateFlowRunInput, FlowRun, UpdateFlowRunInput } from "./services/flow-runs/flow-runs.model.js";
|
|
13
|
+
import { CreateFlowInput, Flow, UpdateFlowInput } from "./services/flows/flows.model.js";
|
|
14
|
+
import { CreateNodeExecutionInput, NodeExecution, UpdateNodeExecutionInput } from "./services/node-executions/node-executions.model.js";
|
|
15
|
+
import { CreateTriggerInput, FlowTriggerRegistration, TriggerExecutionOptions, TriggerType, UpdateTriggerInput } from "./services/triggers/trigger.types.js";
|
|
16
|
+
import { BatchProvider, Model } from "./services/ai/ai-types.js";
|
|
17
|
+
import { FlowVersion } from "./database/schema-sqlite.js";
|
|
18
|
+
import { EndEvent, ExecutionSnapshotEvent, ExecutionStreamEvent, FlowRunUpdatedEvent, HeartbeatEvent, NodeExecutionCreatedEvent, NodeExecutionUpdatedEvent } from "./services/execution-event-bus.js";
|
|
19
|
+
import { ExecuteFlowOptions, FlowInputs, FlowRunResult } from "./services/flow-runs/flow-runs.service.js";
|
|
20
|
+
import { NodeConfigUpdateContext, NodeConfigUpdateEvent, NodeConfigUpdateResponse } from "./types/node-config-update.types.js";
|
|
21
|
+
import { NodeExecutionStatusInfo, NodeVisualStatus, Position, ReactFlowData, ReactFlowEdge, ReactFlowNode, ReactFlowNodeData, TypedReactFlowData } from "./services/react-flow-renderer.service.js";
|
|
22
|
+
import { FLOW_VALIDATION_ERROR_TYPES, FlowValidationError, FlowValidationResult, FlowValidationWarning, ValidationIssue } from "./types/validation.js";
|
|
23
|
+
import { LogLevel, LogScopeName, ScopedLoggingConfig } from "./utils/logger.js";
|
|
24
|
+
import { DashboardStats } from "./invect-core.js";
|
|
25
|
+
export { type AddedToolInstance, type AgentExecutionOutput, type AgentFinishReason, type AgentMessage, type AgentStopCondition, type AgentToolCall, type AgentToolCategory, type AgentToolDefinition, type AgentToolResult, BatchProvider, type ConfiguredToolDefinition, type CreateFlowInput as CreateFlowDto, type CreateFlowInput as CreateFlowRequest, type CreateFlowRunInput, type CreateFlowVersionRequest as CreateFlowVersionDto, type CreateFlowVersionRequest, type CreateNodeExecutionInput, type CreateTriggerInput, type DashboardStats, type queryDatabasesConfigSchema as DatabaseConfig, type DatabaseConnectionConfig, type EndEvent, type ExecuteFlowOptions, type ExecutionConfig, type NodeExecutionResult as ExecutionResult, type ExecutionSnapshotEvent, type ExecutionStreamEvent, FLOW_VALIDATION_ERROR_TYPES, type Flow, type FlowEdge, type FlowInputs, type FlowNodeDefinitions as FlowNode, type FlowRun, type FlowRunContext, type FlowRunHookContext, type FlowRunResult, FlowRunStatus, type FlowRunUpdatedEvent, type FlowTriggerRegistration, type FlowValidationError, type FlowValidationResult, type FlowValidationWarning, type FlowVersion, GRAPH_NODE_TYPE_NAMES, GraphNodeType, type HeartbeatEvent, type InputMappingConfig, type InvectConfig, type InvectDatabaseConfig, type InvectDefinition, type InvectPlugin, type InvectPluginContext, type InvectPluginEndpoint, type InvectPluginHooks, type InvectPluginInitResult, type InvectPluginSchema, type LogLevel, type LogScopeName, type Logger, type LoggingConfig, type MapperConfig, type Model, type NodeConfigUpdateContext, type NodeConfigUpdateEvent, type NodeConfigUpdateResponse, type NodeExecution, type NodeExecutionCreatedEvent, type NodeExecutionHookContext, type NodeExecutionHookResult, NodeExecutionStatus, type NodeExecutionStatusInfo, type NodeExecutionUpdatedEvent, type NodeIncomingDataObject, type NodeInputData, type NodeOutput, type NodeOutputs, type NodeVisualStatus, type OutputVariable, type OutputVariables, type PaginatedResponse, type PluginDatabaseApi, type PluginEndpointContext, type PluginEndpointResponse, type PluginFieldAttribute, type PluginFieldType, type PluginHookRunner, type PluginTableDefinition, type Position, type QueryOptions, type ReactFlowData, type ReactFlowEdge, type ReactFlowNode, type ReactFlowNodeData, type SQLQueryResult, type ScopedLoggingConfig, type StructuredOutput, type SubmitPromptRequest, type SubmitSQLQueryRequest, type ToolExecutionRecord, type TriggerExecutionOptions, type TriggerType, type TypedReactFlowData, type UpdateFlowInput, type UpdateFlowRunInput, type UpdateNodeExecutionInput, type UpdateTriggerInput, type ValidationIssue };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FlowRunStatus, NodeExecutionStatus } from "./types/base.js";
|
|
2
|
+
import { BatchProvider } from "./services/ai/ai-types.js";
|
|
3
|
+
import { GRAPH_NODE_TYPE_NAMES, GraphNodeType } from "./types/graph-node-types.js";
|
|
4
|
+
import { FLOW_VALIDATION_ERROR_TYPES } from "./types/validation.js";
|
|
5
|
+
export { BatchProvider, FLOW_VALIDATION_ERROR_TYPES, FlowRunStatus, GRAPH_NODE_TYPE_NAMES, GraphNodeType, NodeExecutionStatus };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
require("./_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
require("./types/graph-node-types.cjs");
|
|
3
|
+
let zod_v4 = require("zod/v4");
|
|
4
|
+
//#region src/types-fresh.ts
|
|
5
|
+
const metadataSchema = zod_v4.z.record(zod_v4.z.string(), zod_v4.z.unknown()).optional();
|
|
6
|
+
//#endregion
|
|
7
|
+
exports.metadataSchema = metadataSchema;
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=types-fresh.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-fresh.cjs","names":["z"],"sources":["../src/types-fresh.ts"],"sourcesContent":["import { z } from 'zod/v4';\nimport type { NodeExecutionResult } from './types/node-execution.types';\nimport type { NodeOutput } from './types/node-io-types';\nimport type { Logger } from './types/schemas-fresh/invect-config';\nimport type { FlowEdge, FlowNodeDefinitions } from './services/flow-versions/schemas-fresh';\nimport type { BatchProvider, PromptResult } from './services/ai/base-client';\nimport type {\n AgentToolDefinition,\n AgentMessage,\n AgentPromptResult,\n} from './types/agent-tool.types';\nimport type { SubmitPromptRequest } from './services/node-data.service';\nexport type { SubmitPromptRequest };\n\n/**\n * Request to run an agent prompt with tools\n */\nexport interface SubmitAgentPromptRequest {\n model: string;\n messages: AgentMessage[];\n tools: AgentToolDefinition[];\n systemPrompt?: string;\n temperature?: number;\n maxTokens?: number;\n provider: BatchProvider;\n credentialId: string;\n toolChoice?: 'auto' | 'none' | { type: 'tool'; name: string };\n /** Whether to allow parallel tool calls (defaults to true) */\n parallelToolCalls?: boolean;\n /** When true, the first LLM call is submitted via the Batch API. */\n useBatchProcessing?: boolean;\n /** Node ID (required when useBatchProcessing is true). */\n nodeId?: string;\n /** Flow run ID (required when useBatchProcessing is true). */\n flowRunId?: string;\n}\n\n/**\n * Result of a submitPrompt call — either a synchronous prompt result\n * or a batch submission acknowledgement.\n */\nexport type SubmitPromptResult =\n | PromptResult\n | {\n type: 'batch_submitted';\n batchJobId: string;\n nodeId: string;\n flowRunId: string;\n };\n\n/**\n * Input shape for recording a tool execution (agent nodes).\n */\nexport interface RecordToolExecutionInput {\n nodeExecutionId: string;\n flowRunId: string;\n toolId: string;\n toolName: string;\n iteration: number;\n input: Record<string, unknown>;\n output?: unknown;\n error?: string;\n success: boolean;\n startedAt: string;\n completedAt?: string;\n duration?: number;\n}\n\n/**\n * Context of an individual run of a flow\n */\nexport interface FlowRunContext {\n flowId: string;\n flowVersion: number;\n flowRunId: string;\n\n globalConfig: Record<string, string | number | boolean | null>;\n // Optional overrides from the default global Invect config for this specific flow\n flowParams: Record<string, unknown>; // TODO: useBatchProcessing: boolean; should existi\n\n // inputs values provided to this flow (includes trigger data when triggered by webhook/cron)\n flowInputs: Record<string, unknown>;\n\n /**\n * Incoming data from upstream nodes, keyed by reference ID.\n * Used by nodes that do their own template processing (e.g., Template String).\n * Structure: { ref_id: { output: value, ... }, ... }\n */\n incomingData?: Record<string, unknown>;\n\n /** All edges in the flow graph */\n edges: readonly FlowEdge[];\n /** All nodes in the flow graph */\n nodes: readonly FlowNodeDefinitions[];\n\n nodeExecutionResults: Map<string, NodeExecutionResult>;\n\n /** All collected outputs by nodeId */\n allNodeOutputs: Map<string, NodeOutput>;\n\n /** All collected inputs by nodeId */\n allNodeInputs: Map<string, unknown>;\n\n /** Skipped node tracking */\n skippedNodeIds: Set<string>;\n\n logger: Logger;\n\n error?: string;\n startedAt: Date | string;\n completedAt?: Date | string;\n durationMs?: number;\n initiatedBy?: string;\n\n functions: {\n // Template rendering ({{ expression }} syntax)\n runTemplateReplacement: (\n template: string,\n variables: {\n [key: string]: unknown;\n },\n ) => Promise<string>;\n\n // Flow control - mark downstream nodes as skipped\n markDownstreamNodesAsSkipped?: (\n nodeId: string,\n edges: readonly FlowEdge[],\n skippedNodes: Set<string>,\n isFromIfElse?: boolean,\n ) => void;\n\n // Credential retrieval for node authentication\n getCredential?: (credentialId: string) => Promise<{\n id: string;\n name: string;\n type: string;\n authType: string;\n config: Record<string, unknown>;\n } | null>;\n\n // Model prompt submission - has flow implications (batch processing)\n submitPrompt?: (request: SubmitPromptRequest) => Promise<SubmitPromptResult>;\n\n // Agent prompt submission - supports batch processing on first iteration\n submitAgentPrompt?: (\n request: SubmitAgentPromptRequest,\n ) => Promise<\n | AgentPromptResult\n | { type: 'batch_submitted'; batchJobId: string; nodeId: string; flowRunId: string }\n >;\n\n // Record tool execution for agent nodes\n recordToolExecution?: (input: RecordToolExecutionInput) => Promise<{ id: string } | null>;\n };\n}\n\n// Node and execution types (expanded stubs)\nexport interface NodeExecutionContext extends FlowRunContext {\n nodeId: string;\n traceId?: string;\n}\n\nexport const metadataSchema = z.record(z.string(), z.unknown()).optional();\n\nexport type MetaData = z.infer<typeof metadataSchema>;\n\n// Re-export GraphNodeType and GRAPH_NODE_TYPE_NAMES from the pure types file\n// This separation is critical - they must not be in a file with Zod schemas\n// because the frontend imports them at runtime\nexport { GraphNodeType, GRAPH_NODE_TYPE_NAMES } from './types/graph-node-types';\n"],"mappings":";;;;AAkKA,MAAa,iBAAiBA,OAAAA,EAAE,OAAOA,OAAAA,EAAE,QAAQ,EAAEA,OAAAA,EAAE,SAAS,CAAC,CAAC,UAAU"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Logger } from "./types/schemas-fresh/invect-config.cjs";
|
|
2
|
+
import { NodeOutput } from "./types/node-io-types.cjs";
|
|
3
|
+
import { NodeExecutionResult } from "./types/node-execution.types.cjs";
|
|
4
|
+
import { FlowEdge, FlowNodeDefinitions } from "./services/flow-versions/schemas-fresh.cjs";
|
|
5
|
+
import { AgentMessage, AgentPromptResult, AgentToolDefinition } from "./types/agent-tool.types.cjs";
|
|
6
|
+
import { SubmitPromptRequest } from "./services/node-data.service.cjs";
|
|
7
|
+
import { GRAPH_NODE_TYPE_NAMES, GraphNodeType } from "./types/graph-node-types.cjs";
|
|
8
|
+
import { BatchProvider, PromptResult } from "./services/ai/ai-types.cjs";
|
|
9
|
+
import { z } from "zod/v4";
|
|
10
|
+
|
|
11
|
+
//#region src/types-fresh.d.ts
|
|
12
|
+
/**
|
|
13
|
+
* Request to run an agent prompt with tools
|
|
14
|
+
*/
|
|
15
|
+
interface SubmitAgentPromptRequest {
|
|
16
|
+
model: string;
|
|
17
|
+
messages: AgentMessage[];
|
|
18
|
+
tools: AgentToolDefinition[];
|
|
19
|
+
systemPrompt?: string;
|
|
20
|
+
temperature?: number;
|
|
21
|
+
maxTokens?: number;
|
|
22
|
+
provider: BatchProvider;
|
|
23
|
+
credentialId: string;
|
|
24
|
+
toolChoice?: 'auto' | 'none' | {
|
|
25
|
+
type: 'tool';
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
/** Whether to allow parallel tool calls (defaults to true) */
|
|
29
|
+
parallelToolCalls?: boolean;
|
|
30
|
+
/** When true, the first LLM call is submitted via the Batch API. */
|
|
31
|
+
useBatchProcessing?: boolean;
|
|
32
|
+
/** Node ID (required when useBatchProcessing is true). */
|
|
33
|
+
nodeId?: string;
|
|
34
|
+
/** Flow run ID (required when useBatchProcessing is true). */
|
|
35
|
+
flowRunId?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Result of a submitPrompt call — either a synchronous prompt result
|
|
39
|
+
* or a batch submission acknowledgement.
|
|
40
|
+
*/
|
|
41
|
+
type SubmitPromptResult = PromptResult | {
|
|
42
|
+
type: 'batch_submitted';
|
|
43
|
+
batchJobId: string;
|
|
44
|
+
nodeId: string;
|
|
45
|
+
flowRunId: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Input shape for recording a tool execution (agent nodes).
|
|
49
|
+
*/
|
|
50
|
+
interface RecordToolExecutionInput {
|
|
51
|
+
nodeExecutionId: string;
|
|
52
|
+
flowRunId: string;
|
|
53
|
+
toolId: string;
|
|
54
|
+
toolName: string;
|
|
55
|
+
iteration: number;
|
|
56
|
+
input: Record<string, unknown>;
|
|
57
|
+
output?: unknown;
|
|
58
|
+
error?: string;
|
|
59
|
+
success: boolean;
|
|
60
|
+
startedAt: string;
|
|
61
|
+
completedAt?: string;
|
|
62
|
+
duration?: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Context of an individual run of a flow
|
|
66
|
+
*/
|
|
67
|
+
interface FlowRunContext {
|
|
68
|
+
flowId: string;
|
|
69
|
+
flowVersion: number;
|
|
70
|
+
flowRunId: string;
|
|
71
|
+
globalConfig: Record<string, string | number | boolean | null>;
|
|
72
|
+
flowParams: Record<string, unknown>;
|
|
73
|
+
flowInputs: Record<string, unknown>;
|
|
74
|
+
/**
|
|
75
|
+
* Incoming data from upstream nodes, keyed by reference ID.
|
|
76
|
+
* Used by nodes that do their own template processing (e.g., Template String).
|
|
77
|
+
* Structure: { ref_id: { output: value, ... }, ... }
|
|
78
|
+
*/
|
|
79
|
+
incomingData?: Record<string, unknown>;
|
|
80
|
+
/** All edges in the flow graph */
|
|
81
|
+
edges: readonly FlowEdge[];
|
|
82
|
+
/** All nodes in the flow graph */
|
|
83
|
+
nodes: readonly FlowNodeDefinitions[];
|
|
84
|
+
nodeExecutionResults: Map<string, NodeExecutionResult>;
|
|
85
|
+
/** All collected outputs by nodeId */
|
|
86
|
+
allNodeOutputs: Map<string, NodeOutput>;
|
|
87
|
+
/** All collected inputs by nodeId */
|
|
88
|
+
allNodeInputs: Map<string, unknown>;
|
|
89
|
+
/** Skipped node tracking */
|
|
90
|
+
skippedNodeIds: Set<string>;
|
|
91
|
+
logger: Logger;
|
|
92
|
+
error?: string;
|
|
93
|
+
startedAt: Date | string;
|
|
94
|
+
completedAt?: Date | string;
|
|
95
|
+
durationMs?: number;
|
|
96
|
+
initiatedBy?: string;
|
|
97
|
+
functions: {
|
|
98
|
+
runTemplateReplacement: (template: string, variables: {
|
|
99
|
+
[key: string]: unknown;
|
|
100
|
+
}) => Promise<string>;
|
|
101
|
+
markDownstreamNodesAsSkipped?: (nodeId: string, edges: readonly FlowEdge[], skippedNodes: Set<string>, isFromIfElse?: boolean) => void;
|
|
102
|
+
getCredential?: (credentialId: string) => Promise<{
|
|
103
|
+
id: string;
|
|
104
|
+
name: string;
|
|
105
|
+
type: string;
|
|
106
|
+
authType: string;
|
|
107
|
+
config: Record<string, unknown>;
|
|
108
|
+
} | null>;
|
|
109
|
+
submitPrompt?: (request: SubmitPromptRequest) => Promise<SubmitPromptResult>;
|
|
110
|
+
submitAgentPrompt?: (request: SubmitAgentPromptRequest) => Promise<AgentPromptResult | {
|
|
111
|
+
type: 'batch_submitted';
|
|
112
|
+
batchJobId: string;
|
|
113
|
+
nodeId: string;
|
|
114
|
+
flowRunId: string;
|
|
115
|
+
}>;
|
|
116
|
+
recordToolExecution?: (input: RecordToolExecutionInput) => Promise<{
|
|
117
|
+
id: string;
|
|
118
|
+
} | null>;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
interface NodeExecutionContext extends FlowRunContext {
|
|
122
|
+
nodeId: string;
|
|
123
|
+
traceId?: string;
|
|
124
|
+
}
|
|
125
|
+
declare const metadataSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
126
|
+
type MetaData = z.infer<typeof metadataSchema>;
|
|
127
|
+
//#endregion
|
|
128
|
+
export { FlowRunContext, MetaData, NodeExecutionContext, RecordToolExecutionInput, SubmitAgentPromptRequest, SubmitPromptResult, metadataSchema };
|
|
129
|
+
//# sourceMappingURL=types-fresh.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-fresh.d.cts","names":[],"sources":["../src/types-fresh.ts"],"mappings":";;;;;;;;;;;;;;UAiBiB,wBAAA;EACf,KAAA;EACA,QAAA,EAAU,YAAA;EACV,KAAA,EAAO,mBAAA;EACP,YAAA;EACA,WAAA;EACA,SAAA;EACA,QAAA,EAAU,aAAA;EACV,YAAA;EACA,UAAA;IAAiC,IAAA;IAAc,IAAA;EAAA;EAL/C;EAOA,iBAAA;EALA;EAOA,kBAAA;EANU;EAQV,MAAA;EANA;EAQA,SAAA;AAAA;;;;;KAOU,kBAAA,GACR,YAAA;EAEE,IAAA;EACA,UAAA;EACA,MAAA;EACA,SAAA;AAAA;;;;UAMW,wBAAA;EACf,eAAA;EACA,SAAA;EACA,MAAA;EACA,QAAA;EACA,SAAA;EACA,KAAA,EAAO,MAAA;EACP,MAAA;EACA,KAAA;EACA,OAAA;EACA,SAAA;EACA,WAAA;EACA,QAAA;AAAA;;;;UAMe,cAAA;EACf,MAAA;EACA,WAAA;EACA,SAAA;EAEA,YAAA,EAAc,MAAA;EAEd,UAAA,EAAY,MAAA;EAGZ,UAAA,EAAY,MAAA;EAViB;;;;;EAiB7B,YAAA,GAAe,MAAA;EAGC;EAAhB,KAAA,WAAgB,QAAA;EAIkB;EAFlC,KAAA,WAAgB,mBAAA;EAEhB,oBAAA,EAAsB,GAAA,SAAY,mBAAA;EAGlB;EAAhB,cAAA,EAAgB,GAAA,SAAY,UAAA;EAMZ;EAHhB,aAAA,EAAe,GAAA;EAQJ;EALX,cAAA,EAAgB,GAAA;EAEhB,MAAA,EAAQ,MAAA;EAER,KAAA;EACA,SAAA,EAAW,IAAA;EACX,WAAA,GAAc,IAAA;EACd,UAAA;EACA,WAAA;EAEA,SAAA;IAEE,sBAAA,GACE,QAAA,UACA,SAAA;MAAA,CACG,GAAA;IAAA,MAEA,OAAA;IAGL,4BAAA,IACE,MAAA,UACA,KAAA,WAAgB,QAAA,IAChB,YAAA,EAAc,GAAA,UACd,YAAA;IAIF,aAAA,IAAiB,YAAA,aAAyB,OAAA;MACxC,EAAA;MACA,IAAA;MACA,IAAA;MACA,QAAA;MACA,MAAA,EAAQ,MAAA;IAAA;IAIV,YAAA,IAAgB,OAAA,EAAS,mBAAA,KAAwB,OAAA,CAAQ,kBAAA;IAGzD,iBAAA,IACE,OAAA,EAAS,wBAAA,KACN,OAAA,CACD,iBAAA;MACE,IAAA;MAAyB,UAAA;MAAoB,MAAA;MAAgB,SAAA;IAAA;IAInE,mBAAA,IAAuB,KAAA,EAAO,wBAAA,KAA6B,OAAA;MAAU,EAAA;IAAA;EAAA;AAAA;AAAA,UAKxD,oBAAA,SAA6B,cAAA;EAC5C,MAAA;EACA,OAAA;AAAA;AAAA,cAGW,cAAA,EAAc,CAAA,CAAA,WAAA,CAAA,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,KAEf,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { Logger } from "./types/schemas-fresh/invect-config.js";
|
|
2
|
+
import { NodeOutput } from "./types/node-io-types.js";
|
|
3
|
+
import { NodeExecutionResult } from "./types/node-execution.types.js";
|
|
4
|
+
import { FlowEdge, FlowNodeDefinitions } from "./services/flow-versions/schemas-fresh.js";
|
|
5
|
+
import { AgentMessage, AgentPromptResult, AgentToolDefinition } from "./types/agent-tool.types.js";
|
|
6
|
+
import { SubmitPromptRequest } from "./services/node-data.service.js";
|
|
7
|
+
import { GRAPH_NODE_TYPE_NAMES, GraphNodeType } from "./types/graph-node-types.js";
|
|
8
|
+
import { BatchProvider, PromptResult } from "./services/ai/ai-types.js";
|
|
9
|
+
import { z } from "zod/v4";
|
|
10
|
+
|
|
11
|
+
//#region src/types-fresh.d.ts
|
|
12
|
+
/**
|
|
13
|
+
* Request to run an agent prompt with tools
|
|
14
|
+
*/
|
|
15
|
+
interface SubmitAgentPromptRequest {
|
|
16
|
+
model: string;
|
|
17
|
+
messages: AgentMessage[];
|
|
18
|
+
tools: AgentToolDefinition[];
|
|
19
|
+
systemPrompt?: string;
|
|
20
|
+
temperature?: number;
|
|
21
|
+
maxTokens?: number;
|
|
22
|
+
provider: BatchProvider;
|
|
23
|
+
credentialId: string;
|
|
24
|
+
toolChoice?: 'auto' | 'none' | {
|
|
25
|
+
type: 'tool';
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
/** Whether to allow parallel tool calls (defaults to true) */
|
|
29
|
+
parallelToolCalls?: boolean;
|
|
30
|
+
/** When true, the first LLM call is submitted via the Batch API. */
|
|
31
|
+
useBatchProcessing?: boolean;
|
|
32
|
+
/** Node ID (required when useBatchProcessing is true). */
|
|
33
|
+
nodeId?: string;
|
|
34
|
+
/** Flow run ID (required when useBatchProcessing is true). */
|
|
35
|
+
flowRunId?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Result of a submitPrompt call — either a synchronous prompt result
|
|
39
|
+
* or a batch submission acknowledgement.
|
|
40
|
+
*/
|
|
41
|
+
type SubmitPromptResult = PromptResult | {
|
|
42
|
+
type: 'batch_submitted';
|
|
43
|
+
batchJobId: string;
|
|
44
|
+
nodeId: string;
|
|
45
|
+
flowRunId: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Input shape for recording a tool execution (agent nodes).
|
|
49
|
+
*/
|
|
50
|
+
interface RecordToolExecutionInput {
|
|
51
|
+
nodeExecutionId: string;
|
|
52
|
+
flowRunId: string;
|
|
53
|
+
toolId: string;
|
|
54
|
+
toolName: string;
|
|
55
|
+
iteration: number;
|
|
56
|
+
input: Record<string, unknown>;
|
|
57
|
+
output?: unknown;
|
|
58
|
+
error?: string;
|
|
59
|
+
success: boolean;
|
|
60
|
+
startedAt: string;
|
|
61
|
+
completedAt?: string;
|
|
62
|
+
duration?: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Context of an individual run of a flow
|
|
66
|
+
*/
|
|
67
|
+
interface FlowRunContext {
|
|
68
|
+
flowId: string;
|
|
69
|
+
flowVersion: number;
|
|
70
|
+
flowRunId: string;
|
|
71
|
+
globalConfig: Record<string, string | number | boolean | null>;
|
|
72
|
+
flowParams: Record<string, unknown>;
|
|
73
|
+
flowInputs: Record<string, unknown>;
|
|
74
|
+
/**
|
|
75
|
+
* Incoming data from upstream nodes, keyed by reference ID.
|
|
76
|
+
* Used by nodes that do their own template processing (e.g., Template String).
|
|
77
|
+
* Structure: { ref_id: { output: value, ... }, ... }
|
|
78
|
+
*/
|
|
79
|
+
incomingData?: Record<string, unknown>;
|
|
80
|
+
/** All edges in the flow graph */
|
|
81
|
+
edges: readonly FlowEdge[];
|
|
82
|
+
/** All nodes in the flow graph */
|
|
83
|
+
nodes: readonly FlowNodeDefinitions[];
|
|
84
|
+
nodeExecutionResults: Map<string, NodeExecutionResult>;
|
|
85
|
+
/** All collected outputs by nodeId */
|
|
86
|
+
allNodeOutputs: Map<string, NodeOutput>;
|
|
87
|
+
/** All collected inputs by nodeId */
|
|
88
|
+
allNodeInputs: Map<string, unknown>;
|
|
89
|
+
/** Skipped node tracking */
|
|
90
|
+
skippedNodeIds: Set<string>;
|
|
91
|
+
logger: Logger;
|
|
92
|
+
error?: string;
|
|
93
|
+
startedAt: Date | string;
|
|
94
|
+
completedAt?: Date | string;
|
|
95
|
+
durationMs?: number;
|
|
96
|
+
initiatedBy?: string;
|
|
97
|
+
functions: {
|
|
98
|
+
runTemplateReplacement: (template: string, variables: {
|
|
99
|
+
[key: string]: unknown;
|
|
100
|
+
}) => Promise<string>;
|
|
101
|
+
markDownstreamNodesAsSkipped?: (nodeId: string, edges: readonly FlowEdge[], skippedNodes: Set<string>, isFromIfElse?: boolean) => void;
|
|
102
|
+
getCredential?: (credentialId: string) => Promise<{
|
|
103
|
+
id: string;
|
|
104
|
+
name: string;
|
|
105
|
+
type: string;
|
|
106
|
+
authType: string;
|
|
107
|
+
config: Record<string, unknown>;
|
|
108
|
+
} | null>;
|
|
109
|
+
submitPrompt?: (request: SubmitPromptRequest) => Promise<SubmitPromptResult>;
|
|
110
|
+
submitAgentPrompt?: (request: SubmitAgentPromptRequest) => Promise<AgentPromptResult | {
|
|
111
|
+
type: 'batch_submitted';
|
|
112
|
+
batchJobId: string;
|
|
113
|
+
nodeId: string;
|
|
114
|
+
flowRunId: string;
|
|
115
|
+
}>;
|
|
116
|
+
recordToolExecution?: (input: RecordToolExecutionInput) => Promise<{
|
|
117
|
+
id: string;
|
|
118
|
+
} | null>;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
interface NodeExecutionContext extends FlowRunContext {
|
|
122
|
+
nodeId: string;
|
|
123
|
+
traceId?: string;
|
|
124
|
+
}
|
|
125
|
+
declare const metadataSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
126
|
+
type MetaData = z.infer<typeof metadataSchema>;
|
|
127
|
+
//#endregion
|
|
128
|
+
export { FlowRunContext, MetaData, NodeExecutionContext, RecordToolExecutionInput, SubmitAgentPromptRequest, SubmitPromptResult, metadataSchema };
|
|
129
|
+
//# sourceMappingURL=types-fresh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-fresh.d.ts","names":[],"sources":["../src/types-fresh.ts"],"mappings":";;;;;;;;;;;;;;UAiBiB,wBAAA;EACf,KAAA;EACA,QAAA,EAAU,YAAA;EACV,KAAA,EAAO,mBAAA;EACP,YAAA;EACA,WAAA;EACA,SAAA;EACA,QAAA,EAAU,aAAA;EACV,YAAA;EACA,UAAA;IAAiC,IAAA;IAAc,IAAA;EAAA;EAL/C;EAOA,iBAAA;EALA;EAOA,kBAAA;EANU;EAQV,MAAA;EANA;EAQA,SAAA;AAAA;;;;;KAOU,kBAAA,GACR,YAAA;EAEE,IAAA;EACA,UAAA;EACA,MAAA;EACA,SAAA;AAAA;;;;UAMW,wBAAA;EACf,eAAA;EACA,SAAA;EACA,MAAA;EACA,QAAA;EACA,SAAA;EACA,KAAA,EAAO,MAAA;EACP,MAAA;EACA,KAAA;EACA,OAAA;EACA,SAAA;EACA,WAAA;EACA,QAAA;AAAA;;;;UAMe,cAAA;EACf,MAAA;EACA,WAAA;EACA,SAAA;EAEA,YAAA,EAAc,MAAA;EAEd,UAAA,EAAY,MAAA;EAGZ,UAAA,EAAY,MAAA;EAViB;;;;;EAiB7B,YAAA,GAAe,MAAA;EAGC;EAAhB,KAAA,WAAgB,QAAA;EAIkB;EAFlC,KAAA,WAAgB,mBAAA;EAEhB,oBAAA,EAAsB,GAAA,SAAY,mBAAA;EAGlB;EAAhB,cAAA,EAAgB,GAAA,SAAY,UAAA;EAMZ;EAHhB,aAAA,EAAe,GAAA;EAQJ;EALX,cAAA,EAAgB,GAAA;EAEhB,MAAA,EAAQ,MAAA;EAER,KAAA;EACA,SAAA,EAAW,IAAA;EACX,WAAA,GAAc,IAAA;EACd,UAAA;EACA,WAAA;EAEA,SAAA;IAEE,sBAAA,GACE,QAAA,UACA,SAAA;MAAA,CACG,GAAA;IAAA,MAEA,OAAA;IAGL,4BAAA,IACE,MAAA,UACA,KAAA,WAAgB,QAAA,IAChB,YAAA,EAAc,GAAA,UACd,YAAA;IAIF,aAAA,IAAiB,YAAA,aAAyB,OAAA;MACxC,EAAA;MACA,IAAA;MACA,IAAA;MACA,QAAA;MACA,MAAA,EAAQ,MAAA;IAAA;IAIV,YAAA,IAAgB,OAAA,EAAS,mBAAA,KAAwB,OAAA,CAAQ,kBAAA;IAGzD,iBAAA,IACE,OAAA,EAAS,wBAAA,KACN,OAAA,CACD,iBAAA;MACE,IAAA;MAAyB,UAAA;MAAoB,MAAA;MAAgB,SAAA;IAAA;IAInE,mBAAA,IAAuB,KAAA,EAAO,wBAAA,KAA6B,OAAA;MAAU,EAAA;IAAA;EAAA;AAAA;AAAA,UAKxD,oBAAA,SAA6B,cAAA;EAC5C,MAAA;EACA,OAAA;AAAA;AAAA,cAGW,cAAA,EAAc,CAAA,CAAA,WAAA,CAAA,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,KAEf,QAAA,GAAW,CAAA,CAAE,KAAA,QAAa,cAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-fresh.js","names":[],"sources":["../src/types-fresh.ts"],"sourcesContent":["import { z } from 'zod/v4';\nimport type { NodeExecutionResult } from './types/node-execution.types';\nimport type { NodeOutput } from './types/node-io-types';\nimport type { Logger } from './types/schemas-fresh/invect-config';\nimport type { FlowEdge, FlowNodeDefinitions } from './services/flow-versions/schemas-fresh';\nimport type { BatchProvider, PromptResult } from './services/ai/base-client';\nimport type {\n AgentToolDefinition,\n AgentMessage,\n AgentPromptResult,\n} from './types/agent-tool.types';\nimport type { SubmitPromptRequest } from './services/node-data.service';\nexport type { SubmitPromptRequest };\n\n/**\n * Request to run an agent prompt with tools\n */\nexport interface SubmitAgentPromptRequest {\n model: string;\n messages: AgentMessage[];\n tools: AgentToolDefinition[];\n systemPrompt?: string;\n temperature?: number;\n maxTokens?: number;\n provider: BatchProvider;\n credentialId: string;\n toolChoice?: 'auto' | 'none' | { type: 'tool'; name: string };\n /** Whether to allow parallel tool calls (defaults to true) */\n parallelToolCalls?: boolean;\n /** When true, the first LLM call is submitted via the Batch API. */\n useBatchProcessing?: boolean;\n /** Node ID (required when useBatchProcessing is true). */\n nodeId?: string;\n /** Flow run ID (required when useBatchProcessing is true). */\n flowRunId?: string;\n}\n\n/**\n * Result of a submitPrompt call — either a synchronous prompt result\n * or a batch submission acknowledgement.\n */\nexport type SubmitPromptResult =\n | PromptResult\n | {\n type: 'batch_submitted';\n batchJobId: string;\n nodeId: string;\n flowRunId: string;\n };\n\n/**\n * Input shape for recording a tool execution (agent nodes).\n */\nexport interface RecordToolExecutionInput {\n nodeExecutionId: string;\n flowRunId: string;\n toolId: string;\n toolName: string;\n iteration: number;\n input: Record<string, unknown>;\n output?: unknown;\n error?: string;\n success: boolean;\n startedAt: string;\n completedAt?: string;\n duration?: number;\n}\n\n/**\n * Context of an individual run of a flow\n */\nexport interface FlowRunContext {\n flowId: string;\n flowVersion: number;\n flowRunId: string;\n\n globalConfig: Record<string, string | number | boolean | null>;\n // Optional overrides from the default global Invect config for this specific flow\n flowParams: Record<string, unknown>; // TODO: useBatchProcessing: boolean; should existi\n\n // inputs values provided to this flow (includes trigger data when triggered by webhook/cron)\n flowInputs: Record<string, unknown>;\n\n /**\n * Incoming data from upstream nodes, keyed by reference ID.\n * Used by nodes that do their own template processing (e.g., Template String).\n * Structure: { ref_id: { output: value, ... }, ... }\n */\n incomingData?: Record<string, unknown>;\n\n /** All edges in the flow graph */\n edges: readonly FlowEdge[];\n /** All nodes in the flow graph */\n nodes: readonly FlowNodeDefinitions[];\n\n nodeExecutionResults: Map<string, NodeExecutionResult>;\n\n /** All collected outputs by nodeId */\n allNodeOutputs: Map<string, NodeOutput>;\n\n /** All collected inputs by nodeId */\n allNodeInputs: Map<string, unknown>;\n\n /** Skipped node tracking */\n skippedNodeIds: Set<string>;\n\n logger: Logger;\n\n error?: string;\n startedAt: Date | string;\n completedAt?: Date | string;\n durationMs?: number;\n initiatedBy?: string;\n\n functions: {\n // Template rendering ({{ expression }} syntax)\n runTemplateReplacement: (\n template: string,\n variables: {\n [key: string]: unknown;\n },\n ) => Promise<string>;\n\n // Flow control - mark downstream nodes as skipped\n markDownstreamNodesAsSkipped?: (\n nodeId: string,\n edges: readonly FlowEdge[],\n skippedNodes: Set<string>,\n isFromIfElse?: boolean,\n ) => void;\n\n // Credential retrieval for node authentication\n getCredential?: (credentialId: string) => Promise<{\n id: string;\n name: string;\n type: string;\n authType: string;\n config: Record<string, unknown>;\n } | null>;\n\n // Model prompt submission - has flow implications (batch processing)\n submitPrompt?: (request: SubmitPromptRequest) => Promise<SubmitPromptResult>;\n\n // Agent prompt submission - supports batch processing on first iteration\n submitAgentPrompt?: (\n request: SubmitAgentPromptRequest,\n ) => Promise<\n | AgentPromptResult\n | { type: 'batch_submitted'; batchJobId: string; nodeId: string; flowRunId: string }\n >;\n\n // Record tool execution for agent nodes\n recordToolExecution?: (input: RecordToolExecutionInput) => Promise<{ id: string } | null>;\n };\n}\n\n// Node and execution types (expanded stubs)\nexport interface NodeExecutionContext extends FlowRunContext {\n nodeId: string;\n traceId?: string;\n}\n\nexport const metadataSchema = z.record(z.string(), z.unknown()).optional();\n\nexport type MetaData = z.infer<typeof metadataSchema>;\n\n// Re-export GraphNodeType and GRAPH_NODE_TYPE_NAMES from the pure types file\n// This separation is critical - they must not be in a file with Zod schemas\n// because the frontend imports them at runtime\nexport { GraphNodeType, GRAPH_NODE_TYPE_NAMES } from './types/graph-node-types';\n"],"mappings":";;;AAkKA,MAAa,iBAAiB,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,SAAS,CAAC,CAAC,UAAU"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_url_safe_id = require("./url-safe-id.cjs");
|
|
2
|
+
//#region src/utils/id-generator.ts
|
|
3
|
+
/**
|
|
4
|
+
* ID generation utilities
|
|
5
|
+
*/
|
|
6
|
+
var IdGenerator = class IdGenerator {
|
|
7
|
+
static RANDOM_ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
8
|
+
static nanoid4 = require_url_safe_id.createUrlSafeIdGenerator({
|
|
9
|
+
alphabet: IdGenerator.RANDOM_ALPHABET,
|
|
10
|
+
size: 4
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* Generate a flow ID from flow name
|
|
14
|
+
* Format: first 0-20 characters of flow name (lowercased and hyphenated) + 4 random chars
|
|
15
|
+
* Example: "Onboarding Process For Payments" -> "onboarding-process-fo-k2Rn"
|
|
16
|
+
*/
|
|
17
|
+
static generateFlowId(flowName) {
|
|
18
|
+
if (!flowName || typeof flowName !== "string") throw new Error("Flow name is required and must be a string");
|
|
19
|
+
const cleanName = flowName.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/-+/g, "-");
|
|
20
|
+
if (!cleanName) throw new Error("Flow name must contain at least one alphanumeric character");
|
|
21
|
+
return `${cleanName.substring(0, 20)}-${IdGenerator.nanoid4()}`;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Validate flow ID format
|
|
25
|
+
*/
|
|
26
|
+
static isValidFlowId(flowId) {
|
|
27
|
+
if (!flowId || typeof flowId !== "string") return false;
|
|
28
|
+
return /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?-[a-zA-Z0-9]{4}$/.test(flowId) && flowId.length >= 6 && flowId.length <= 25;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.IdGenerator = IdGenerator;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=id-generator.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id-generator.cjs","names":["createUrlSafeIdGenerator"],"sources":["../../src/utils/id-generator.ts"],"sourcesContent":["// Framework-agnostic ID generation utilities for Invect core\nimport { createUrlSafeIdGenerator } from './url-safe-id';\n\n/**\n * ID generation utilities\n */\nexport class IdGenerator {\n // Alphabet for random suffixes (alphanumeric, case-sensitive, URL-safe)\n private static readonly RANDOM_ALPHABET =\n '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\n\n // Create nanoid function for random suffixes\n private static readonly nanoid4 = createUrlSafeIdGenerator({\n alphabet: IdGenerator.RANDOM_ALPHABET,\n size: 4,\n });\n\n /**\n * Generate a flow ID from flow name\n * Format: first 0-20 characters of flow name (lowercased and hyphenated) + 4 random chars\n * Example: \"Onboarding Process For Payments\" -> \"onboarding-process-fo-k2Rn\"\n */\n static generateFlowId(flowName: string): string {\n if (!flowName || typeof flowName !== 'string') {\n throw new Error('Flow name is required and must be a string');\n }\n\n // Clean and process the name\n const cleanName = flowName\n .trim()\n .toLowerCase()\n // Replace spaces and non-alphanumeric characters with hyphens\n .replace(/[^a-z0-9]+/g, '-')\n // Remove leading/trailing hyphens\n .replace(/^-+|-+$/g, '')\n // Collapse multiple hyphens\n .replace(/-+/g, '-');\n\n if (!cleanName) {\n throw new Error('Flow name must contain at least one alphanumeric character');\n }\n\n // Take first 20 characters (or less if shorter)\n const prefix = cleanName.substring(0, 20);\n\n // Generate 4 random characters\n const suffix = IdGenerator.nanoid4();\n\n return `${prefix}-${suffix}`;\n }\n\n /**\n * Validate flow ID format\n */\n static isValidFlowId(flowId: string): boolean {\n if (!flowId || typeof flowId !== 'string') {\n return false;\n }\n\n // Flow ID should be: 1-20 lowercase chars/hyphens + dash + 4 random chars\n const flowIdPattern = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?-[a-zA-Z0-9]{4}$/;\n return flowIdPattern.test(flowId) && flowId.length >= 6 && flowId.length <= 25;\n }\n}\n"],"mappings":";;;;;AAMA,IAAa,cAAb,MAAa,YAAY;CAEvB,OAAwB,kBACtB;CAGF,OAAwB,UAAUA,oBAAAA,yBAAyB;EACzD,UAAU,YAAY;EACtB,MAAM;EACP,CAAC;;;;;;CAOF,OAAO,eAAe,UAA0B;AAC9C,MAAI,CAAC,YAAY,OAAO,aAAa,SACnC,OAAM,IAAI,MAAM,6CAA6C;EAI/D,MAAM,YAAY,SACf,MAAM,CACN,aAAa,CAEb,QAAQ,eAAe,IAAI,CAE3B,QAAQ,YAAY,GAAG,CAEvB,QAAQ,OAAO,IAAI;AAEtB,MAAI,CAAC,UACH,OAAM,IAAI,MAAM,6DAA6D;AAS/E,SAAO,GALQ,UAAU,UAAU,GAAG,GAAG,CAKxB,GAFF,YAAY,SAAS;;;;;CAQtC,OAAO,cAAc,QAAyB;AAC5C,MAAI,CAAC,UAAU,OAAO,WAAW,SAC/B,QAAO;AAKT,SADsB,mDACD,KAAK,OAAO,IAAI,OAAO,UAAU,KAAK,OAAO,UAAU"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createUrlSafeIdGenerator } from "./url-safe-id.js";
|
|
2
|
+
//#region src/utils/id-generator.ts
|
|
3
|
+
/**
|
|
4
|
+
* ID generation utilities
|
|
5
|
+
*/
|
|
6
|
+
var IdGenerator = class IdGenerator {
|
|
7
|
+
static RANDOM_ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
8
|
+
static nanoid4 = createUrlSafeIdGenerator({
|
|
9
|
+
alphabet: IdGenerator.RANDOM_ALPHABET,
|
|
10
|
+
size: 4
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* Generate a flow ID from flow name
|
|
14
|
+
* Format: first 0-20 characters of flow name (lowercased and hyphenated) + 4 random chars
|
|
15
|
+
* Example: "Onboarding Process For Payments" -> "onboarding-process-fo-k2Rn"
|
|
16
|
+
*/
|
|
17
|
+
static generateFlowId(flowName) {
|
|
18
|
+
if (!flowName || typeof flowName !== "string") throw new Error("Flow name is required and must be a string");
|
|
19
|
+
const cleanName = flowName.trim().toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/-+/g, "-");
|
|
20
|
+
if (!cleanName) throw new Error("Flow name must contain at least one alphanumeric character");
|
|
21
|
+
return `${cleanName.substring(0, 20)}-${IdGenerator.nanoid4()}`;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Validate flow ID format
|
|
25
|
+
*/
|
|
26
|
+
static isValidFlowId(flowId) {
|
|
27
|
+
if (!flowId || typeof flowId !== "string") return false;
|
|
28
|
+
return /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?-[a-zA-Z0-9]{4}$/.test(flowId) && flowId.length >= 6 && flowId.length <= 25;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { IdGenerator };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=id-generator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"id-generator.js","names":[],"sources":["../../src/utils/id-generator.ts"],"sourcesContent":["// Framework-agnostic ID generation utilities for Invect core\nimport { createUrlSafeIdGenerator } from './url-safe-id';\n\n/**\n * ID generation utilities\n */\nexport class IdGenerator {\n // Alphabet for random suffixes (alphanumeric, case-sensitive, URL-safe)\n private static readonly RANDOM_ALPHABET =\n '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\n\n // Create nanoid function for random suffixes\n private static readonly nanoid4 = createUrlSafeIdGenerator({\n alphabet: IdGenerator.RANDOM_ALPHABET,\n size: 4,\n });\n\n /**\n * Generate a flow ID from flow name\n * Format: first 0-20 characters of flow name (lowercased and hyphenated) + 4 random chars\n * Example: \"Onboarding Process For Payments\" -> \"onboarding-process-fo-k2Rn\"\n */\n static generateFlowId(flowName: string): string {\n if (!flowName || typeof flowName !== 'string') {\n throw new Error('Flow name is required and must be a string');\n }\n\n // Clean and process the name\n const cleanName = flowName\n .trim()\n .toLowerCase()\n // Replace spaces and non-alphanumeric characters with hyphens\n .replace(/[^a-z0-9]+/g, '-')\n // Remove leading/trailing hyphens\n .replace(/^-+|-+$/g, '')\n // Collapse multiple hyphens\n .replace(/-+/g, '-');\n\n if (!cleanName) {\n throw new Error('Flow name must contain at least one alphanumeric character');\n }\n\n // Take first 20 characters (or less if shorter)\n const prefix = cleanName.substring(0, 20);\n\n // Generate 4 random characters\n const suffix = IdGenerator.nanoid4();\n\n return `${prefix}-${suffix}`;\n }\n\n /**\n * Validate flow ID format\n */\n static isValidFlowId(flowId: string): boolean {\n if (!flowId || typeof flowId !== 'string') {\n return false;\n }\n\n // Flow ID should be: 1-20 lowercase chars/hyphens + dash + 4 random chars\n const flowIdPattern = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?-[a-zA-Z0-9]{4}$/;\n return flowIdPattern.test(flowId) && flowId.length >= 6 && flowId.length <= 25;\n }\n}\n"],"mappings":";;;;;AAMA,IAAa,cAAb,MAAa,YAAY;CAEvB,OAAwB,kBACtB;CAGF,OAAwB,UAAU,yBAAyB;EACzD,UAAU,YAAY;EACtB,MAAM;EACP,CAAC;;;;;;CAOF,OAAO,eAAe,UAA0B;AAC9C,MAAI,CAAC,YAAY,OAAO,aAAa,SACnC,OAAM,IAAI,MAAM,6CAA6C;EAI/D,MAAM,YAAY,SACf,MAAM,CACN,aAAa,CAEb,QAAQ,eAAe,IAAI,CAE3B,QAAQ,YAAY,GAAG,CAEvB,QAAQ,OAAO,IAAI;AAEtB,MAAI,CAAC,UACH,OAAM,IAAI,MAAM,6DAA6D;AAS/E,SAAO,GALQ,UAAU,UAAU,GAAG,GAAG,CAKxB,GAFF,YAAY,SAAS;;;;;CAQtC,OAAO,cAAc,QAAyB;AAC5C,MAAI,CAAC,UAAU,OAAO,WAAW,SAC/B,QAAO;AAKT,SADsB,mDACD,KAAK,OAAO,IAAI,OAAO,UAAU,KAAK,OAAO,UAAU"}
|