@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,211 @@
|
|
|
1
|
+
import { Logger } from "./schemas-fresh/invect-config.cjs";
|
|
2
|
+
import { NodeExecutionContext } from "../types-fresh.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/types/agent-tool.types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Tool category for organization in UI
|
|
7
|
+
*/
|
|
8
|
+
type AgentToolCategory = 'data' | 'web' | 'code' | 'utility' | 'custom';
|
|
9
|
+
/**
|
|
10
|
+
* Base tool definition that can be registered and used by agents
|
|
11
|
+
*/
|
|
12
|
+
interface AgentToolDefinition {
|
|
13
|
+
/** Unique tool identifier (snake_case recommended) */
|
|
14
|
+
id: string;
|
|
15
|
+
/** Human-readable name */
|
|
16
|
+
name: string;
|
|
17
|
+
/** Description for the LLM to understand when to use this tool */
|
|
18
|
+
description: string;
|
|
19
|
+
/** JSON Schema defining the tool's input parameters */
|
|
20
|
+
inputSchema: Record<string, unknown>;
|
|
21
|
+
/** Tool category for organization in UI */
|
|
22
|
+
category: AgentToolCategory;
|
|
23
|
+
/** Tags for filtering and organization */
|
|
24
|
+
tags?: string[];
|
|
25
|
+
/** Whether this tool is enabled by default */
|
|
26
|
+
enabledByDefault?: boolean;
|
|
27
|
+
/** Timeout in milliseconds for this tool (defaults to DEFAULT_TOOL_TIMEOUT_MS) */
|
|
28
|
+
timeoutMs?: number;
|
|
29
|
+
/**
|
|
30
|
+
* If this tool is backed by a node executor, this is the node type.
|
|
31
|
+
* Used to fetch the node definition for configuration UI.
|
|
32
|
+
*/
|
|
33
|
+
nodeType?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Provider information for grouping and branding in the UI.
|
|
36
|
+
* Populated from the action's provider when the tool is action-based.
|
|
37
|
+
*/
|
|
38
|
+
provider?: {
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
icon: string; /** Raw SVG markup for custom provider branding. Takes precedence over `icon`. */
|
|
42
|
+
svgIcon?: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A configured instance of a tool added to an agent.
|
|
47
|
+
* Multiple instances of the same tool can exist with different configurations.
|
|
48
|
+
*
|
|
49
|
+
* For example, two HTTP Request tools:
|
|
50
|
+
* - "Fetch Weather" with URL preset to weather API
|
|
51
|
+
* - "Post to Slack" with URL preset to Slack webhook
|
|
52
|
+
*/
|
|
53
|
+
interface AddedToolInstance {
|
|
54
|
+
/** Unique instance ID */
|
|
55
|
+
instanceId: string;
|
|
56
|
+
/** Reference to the base tool definition ID */
|
|
57
|
+
toolId: string;
|
|
58
|
+
/** Custom name for this instance (shown to AI) */
|
|
59
|
+
name: string;
|
|
60
|
+
/** Custom description for this instance (shown to AI) */
|
|
61
|
+
description: string;
|
|
62
|
+
/**
|
|
63
|
+
* Tool-specific parameter values.
|
|
64
|
+
* Contains both static values and `_aiChosenModes` to indicate which params the AI should fill.
|
|
65
|
+
*/
|
|
66
|
+
params: Record<string, unknown> & {
|
|
67
|
+
/**
|
|
68
|
+
* Map of param name to boolean indicating if AI should choose the value.
|
|
69
|
+
* If true (or not present), AI fills the value at runtime.
|
|
70
|
+
* If false, the value from `params[fieldName]` is used as a static value.
|
|
71
|
+
*/
|
|
72
|
+
_aiChosenModes?: Record<string, boolean>;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* A tool definition customized for a specific instance.
|
|
77
|
+
* Has filtered inputSchema (only AI-chosen params) and references the instance for static param injection.
|
|
78
|
+
*/
|
|
79
|
+
interface ConfiguredToolDefinition extends AgentToolDefinition {
|
|
80
|
+
/** The instance this configured tool is derived from */
|
|
81
|
+
instanceId: string;
|
|
82
|
+
/** Static parameter values to merge with AI-provided input */
|
|
83
|
+
staticParams: Record<string, unknown>;
|
|
84
|
+
/** Original tool ID (before instance customization) */
|
|
85
|
+
baseToolId: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Tool execution context provided to tool handlers
|
|
89
|
+
*
|
|
90
|
+
* Tools are self-contained and should import their own dependencies
|
|
91
|
+
* (e.g., json-logic-js) rather than relying on context functions.
|
|
92
|
+
* The nodeContext provides access to cross-cutting concerns like credentials.
|
|
93
|
+
*/
|
|
94
|
+
interface AgentToolExecutionContext {
|
|
95
|
+
logger: Logger;
|
|
96
|
+
/** Current agent iteration number */
|
|
97
|
+
iteration: number;
|
|
98
|
+
/** Maximum allowed iterations */
|
|
99
|
+
maxIterations: number;
|
|
100
|
+
/** Node execution context - provides access to credentials and other cross-cutting concerns */
|
|
101
|
+
nodeContext: NodeExecutionContext
|
|
102
|
+
/**
|
|
103
|
+
* Static parameters configured on the tool instance.
|
|
104
|
+
* These are set by the user when adding the tool to an agent node,
|
|
105
|
+
* not provided by the AI at runtime.
|
|
106
|
+
* Example: credentialId for OAuth2 tools like Gmail
|
|
107
|
+
*/
|
|
108
|
+
;
|
|
109
|
+
staticParams?: Record<string, unknown>;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Result from executing a tool
|
|
113
|
+
*/
|
|
114
|
+
interface AgentToolResult {
|
|
115
|
+
success: boolean;
|
|
116
|
+
output?: unknown;
|
|
117
|
+
error?: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Tool executor function type
|
|
121
|
+
*/
|
|
122
|
+
type AgentToolExecutor = (input: Record<string, unknown>, context: AgentToolExecutionContext) => Promise<AgentToolResult>;
|
|
123
|
+
/**
|
|
124
|
+
* Registered agent tool with definition and executor
|
|
125
|
+
*/
|
|
126
|
+
interface RegisteredAgentTool {
|
|
127
|
+
definition: AgentToolDefinition;
|
|
128
|
+
executor: AgentToolExecutor;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Tool call from an LLM response
|
|
132
|
+
*/
|
|
133
|
+
interface AgentToolCall {
|
|
134
|
+
id: string;
|
|
135
|
+
toolId: string;
|
|
136
|
+
input: Record<string, unknown>;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Record of a tool execution during an agent run
|
|
140
|
+
*/
|
|
141
|
+
interface ToolExecutionRecord {
|
|
142
|
+
toolId: string;
|
|
143
|
+
toolName: string;
|
|
144
|
+
input: Record<string, unknown>;
|
|
145
|
+
output?: unknown;
|
|
146
|
+
error?: string;
|
|
147
|
+
success: boolean;
|
|
148
|
+
iteration: number;
|
|
149
|
+
executionTimeMs: number;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Message in an agent conversation
|
|
153
|
+
*/
|
|
154
|
+
interface AgentMessage {
|
|
155
|
+
role: 'user' | 'assistant' | 'tool';
|
|
156
|
+
content: string;
|
|
157
|
+
toolCalls?: AgentToolCall[];
|
|
158
|
+
toolCallId?: string;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Agent stop conditions
|
|
162
|
+
*/
|
|
163
|
+
type AgentStopCondition = 'tool_result' | 'explicit_stop' | 'max_iterations';
|
|
164
|
+
/**
|
|
165
|
+
* Agent finish reason
|
|
166
|
+
*/
|
|
167
|
+
type AgentFinishReason = 'completed' | 'max_iterations' | 'tool_result' | 'error';
|
|
168
|
+
/**
|
|
169
|
+
* Result from agent prompt execution
|
|
170
|
+
*/
|
|
171
|
+
interface AgentPromptResult {
|
|
172
|
+
type: 'text' | 'tool_use';
|
|
173
|
+
content: string;
|
|
174
|
+
/** Tool calls requested by the LLM */
|
|
175
|
+
toolCalls?: AgentToolCall[];
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Request to run an agent prompt
|
|
179
|
+
*/
|
|
180
|
+
interface AgentPromptRequest {
|
|
181
|
+
model: string;
|
|
182
|
+
messages: AgentMessage[];
|
|
183
|
+
tools: AgentToolDefinition[];
|
|
184
|
+
systemPrompt?: string;
|
|
185
|
+
temperature?: number;
|
|
186
|
+
maxTokens?: number;
|
|
187
|
+
toolChoice?: 'auto' | 'none' | {
|
|
188
|
+
type: 'tool';
|
|
189
|
+
name: string;
|
|
190
|
+
};
|
|
191
|
+
/** Whether to allow parallel tool calls (defaults to true) */
|
|
192
|
+
parallelToolCalls?: boolean;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Agent execution output structure
|
|
196
|
+
*/
|
|
197
|
+
interface AgentExecutionOutput {
|
|
198
|
+
finalResponse: string;
|
|
199
|
+
toolResults: ToolExecutionRecord[];
|
|
200
|
+
iterations: number;
|
|
201
|
+
finishReason: AgentFinishReason;
|
|
202
|
+
conversationHistory: AgentMessage[];
|
|
203
|
+
/** Token usage statistics */
|
|
204
|
+
tokenUsage?: {
|
|
205
|
+
conversationTokensEstimate: number;
|
|
206
|
+
truncationOccurred: boolean;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
//#endregion
|
|
210
|
+
export { AddedToolInstance, AgentExecutionOutput, AgentFinishReason, AgentMessage, AgentPromptRequest, AgentPromptResult, AgentStopCondition, AgentToolCall, AgentToolCategory, AgentToolDefinition, AgentToolExecutionContext, AgentToolExecutor, AgentToolResult, ConfiguredToolDefinition, RegisteredAgentTool, ToolExecutionRecord };
|
|
211
|
+
//# sourceMappingURL=agent-tool.types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-tool.types.d.cts","names":[],"sources":["../../src/types/agent-tool.types.ts"],"mappings":";;;;;;AAiCA;KArBY,iBAAA;;;;UAqBK,mBAAA;EA+Bb;EA7BF,EAAA;EA6BS;EA3BT,IAAA;EAuCgC;EArChC,WAAA;EAwDyB;EAtDzB,WAAA,EAAa,MAAA;EAuCb;EArCA,QAAA,EAAU,iBAAA;EAyCV;EAvCA,IAAA;EA4CQ;EA1CR,gBAAA;EAgDmB;EA9CnB,SAAA;EA8CyB;AAQ3B;;;EAjDE,QAAA;EAiDgD;;;;EA5ChD,QAAA;IACE,EAAA;IACA,IAAA;IACA,IAAA,UAyDsC;IAvDtC,OAAA;EAAA;AAAA;;;;;;;;;UAYa,iBAAA;EAwDf;EAtDA,UAAA;EAsDqB;EApDrB,MAAA;EA0De;EAxDf,IAAA;;EAEA,WAAA;EAuDA;;;;EAlDA,MAAA,EAAQ,MAAA;IA0DE;;;;;IApDR,cAAA,GAAiB,MAAA;EAAA;AAAA;;;;;UAQJ,wBAAA,SAAiC,mBAAA;EA+C7C;EA7CH,UAAA;EA6C0B;EA3C1B,YAAA,EAAc,MAAA;EAgDC;EA9Cf,UAAA;AAAA;;;;;;;;UAUe,yBAAA;EACf,MAAA,EAAQ,MAAA;;EAER,SAAA;EA0CA;EAxCA,aAAA;EA0CA;EAxCA,WAAA,EAAa;EAwCN;;;AAMT;;;AANS;EAlCP,YAAA,GAAe,MAAA;AAAA;;;;UAMA,eAAA;EACf,OAAA;EACA,MAAA;EACA,KAAA;AAAA;;;AA6CF;KAvCY,iBAAA,IACV,KAAA,EAAO,MAAA,mBACP,OAAA,EAAS,yBAAA,KACN,OAAA,CAAQ,eAAA;;;;UAKI,mBAAA;EACf,UAAA,EAAY,mBAAA;EACZ,QAAA,EAAU,iBAAA;AAAA;;;AAuCZ;UAjCiB,aAAA;EACf,EAAA;EACA,MAAA;EACA,KAAA,EAAO,MAAA;AAAA;;;;UAMQ,mBAAA;EACf,MAAA;EACA,QAAA;EACA,KAAA,EAAO,MAAA;EACP,MAAA;EACA,KAAA;EACA,OAAA;EACA,SAAA;EACA,eAAA;AAAA;;AAoCF;;UA9BiB,YAAA;EACf,IAAA;EACA,OAAA;EACA,SAAA,GAAY,aAAA;EACZ,UAAA;AAAA;;;;KAMU,kBAAA;;;;KAKA,iBAAA;;;AA8BZ;UAzBiB,iBAAA;EACf,IAAA;EACA,OAAA;EA2Bc;EAzBd,SAAA,GAAY,aAAA;AAAA;;;;UAMG,kBAAA;EACf,KAAA;EACA,QAAA,EAAU,YAAA;EACV,KAAA,EAAO,mBAAA;EACP,YAAA;EACA,WAAA;EACA,SAAA;EACA,UAAA;IAAiC,IAAA;IAAc,IAAA;EAAA;;EAE/C,iBAAA;AAAA;;;;UAMe,oBAAA;EACf,aAAA;EACA,WAAA,EAAa,mBAAA;EACb,UAAA;EACA,YAAA,EAAc,iBAAA;EACd,mBAAA,EAAqB,YAAA;;EAErB,UAAA;IACE,0BAAA;IACA,kBAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { Logger } from "./schemas-fresh/invect-config.js";
|
|
2
|
+
import { NodeExecutionContext } from "../types-fresh.js";
|
|
3
|
+
|
|
4
|
+
//#region src/types/agent-tool.types.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Tool category for organization in UI
|
|
7
|
+
*/
|
|
8
|
+
type AgentToolCategory = 'data' | 'web' | 'code' | 'utility' | 'custom';
|
|
9
|
+
/**
|
|
10
|
+
* Base tool definition that can be registered and used by agents
|
|
11
|
+
*/
|
|
12
|
+
interface AgentToolDefinition {
|
|
13
|
+
/** Unique tool identifier (snake_case recommended) */
|
|
14
|
+
id: string;
|
|
15
|
+
/** Human-readable name */
|
|
16
|
+
name: string;
|
|
17
|
+
/** Description for the LLM to understand when to use this tool */
|
|
18
|
+
description: string;
|
|
19
|
+
/** JSON Schema defining the tool's input parameters */
|
|
20
|
+
inputSchema: Record<string, unknown>;
|
|
21
|
+
/** Tool category for organization in UI */
|
|
22
|
+
category: AgentToolCategory;
|
|
23
|
+
/** Tags for filtering and organization */
|
|
24
|
+
tags?: string[];
|
|
25
|
+
/** Whether this tool is enabled by default */
|
|
26
|
+
enabledByDefault?: boolean;
|
|
27
|
+
/** Timeout in milliseconds for this tool (defaults to DEFAULT_TOOL_TIMEOUT_MS) */
|
|
28
|
+
timeoutMs?: number;
|
|
29
|
+
/**
|
|
30
|
+
* If this tool is backed by a node executor, this is the node type.
|
|
31
|
+
* Used to fetch the node definition for configuration UI.
|
|
32
|
+
*/
|
|
33
|
+
nodeType?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Provider information for grouping and branding in the UI.
|
|
36
|
+
* Populated from the action's provider when the tool is action-based.
|
|
37
|
+
*/
|
|
38
|
+
provider?: {
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
icon: string; /** Raw SVG markup for custom provider branding. Takes precedence over `icon`. */
|
|
42
|
+
svgIcon?: string;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A configured instance of a tool added to an agent.
|
|
47
|
+
* Multiple instances of the same tool can exist with different configurations.
|
|
48
|
+
*
|
|
49
|
+
* For example, two HTTP Request tools:
|
|
50
|
+
* - "Fetch Weather" with URL preset to weather API
|
|
51
|
+
* - "Post to Slack" with URL preset to Slack webhook
|
|
52
|
+
*/
|
|
53
|
+
interface AddedToolInstance {
|
|
54
|
+
/** Unique instance ID */
|
|
55
|
+
instanceId: string;
|
|
56
|
+
/** Reference to the base tool definition ID */
|
|
57
|
+
toolId: string;
|
|
58
|
+
/** Custom name for this instance (shown to AI) */
|
|
59
|
+
name: string;
|
|
60
|
+
/** Custom description for this instance (shown to AI) */
|
|
61
|
+
description: string;
|
|
62
|
+
/**
|
|
63
|
+
* Tool-specific parameter values.
|
|
64
|
+
* Contains both static values and `_aiChosenModes` to indicate which params the AI should fill.
|
|
65
|
+
*/
|
|
66
|
+
params: Record<string, unknown> & {
|
|
67
|
+
/**
|
|
68
|
+
* Map of param name to boolean indicating if AI should choose the value.
|
|
69
|
+
* If true (or not present), AI fills the value at runtime.
|
|
70
|
+
* If false, the value from `params[fieldName]` is used as a static value.
|
|
71
|
+
*/
|
|
72
|
+
_aiChosenModes?: Record<string, boolean>;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* A tool definition customized for a specific instance.
|
|
77
|
+
* Has filtered inputSchema (only AI-chosen params) and references the instance for static param injection.
|
|
78
|
+
*/
|
|
79
|
+
interface ConfiguredToolDefinition extends AgentToolDefinition {
|
|
80
|
+
/** The instance this configured tool is derived from */
|
|
81
|
+
instanceId: string;
|
|
82
|
+
/** Static parameter values to merge with AI-provided input */
|
|
83
|
+
staticParams: Record<string, unknown>;
|
|
84
|
+
/** Original tool ID (before instance customization) */
|
|
85
|
+
baseToolId: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Tool execution context provided to tool handlers
|
|
89
|
+
*
|
|
90
|
+
* Tools are self-contained and should import their own dependencies
|
|
91
|
+
* (e.g., json-logic-js) rather than relying on context functions.
|
|
92
|
+
* The nodeContext provides access to cross-cutting concerns like credentials.
|
|
93
|
+
*/
|
|
94
|
+
interface AgentToolExecutionContext {
|
|
95
|
+
logger: Logger;
|
|
96
|
+
/** Current agent iteration number */
|
|
97
|
+
iteration: number;
|
|
98
|
+
/** Maximum allowed iterations */
|
|
99
|
+
maxIterations: number;
|
|
100
|
+
/** Node execution context - provides access to credentials and other cross-cutting concerns */
|
|
101
|
+
nodeContext: NodeExecutionContext
|
|
102
|
+
/**
|
|
103
|
+
* Static parameters configured on the tool instance.
|
|
104
|
+
* These are set by the user when adding the tool to an agent node,
|
|
105
|
+
* not provided by the AI at runtime.
|
|
106
|
+
* Example: credentialId for OAuth2 tools like Gmail
|
|
107
|
+
*/
|
|
108
|
+
;
|
|
109
|
+
staticParams?: Record<string, unknown>;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Result from executing a tool
|
|
113
|
+
*/
|
|
114
|
+
interface AgentToolResult {
|
|
115
|
+
success: boolean;
|
|
116
|
+
output?: unknown;
|
|
117
|
+
error?: string;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Tool executor function type
|
|
121
|
+
*/
|
|
122
|
+
type AgentToolExecutor = (input: Record<string, unknown>, context: AgentToolExecutionContext) => Promise<AgentToolResult>;
|
|
123
|
+
/**
|
|
124
|
+
* Registered agent tool with definition and executor
|
|
125
|
+
*/
|
|
126
|
+
interface RegisteredAgentTool {
|
|
127
|
+
definition: AgentToolDefinition;
|
|
128
|
+
executor: AgentToolExecutor;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Tool call from an LLM response
|
|
132
|
+
*/
|
|
133
|
+
interface AgentToolCall {
|
|
134
|
+
id: string;
|
|
135
|
+
toolId: string;
|
|
136
|
+
input: Record<string, unknown>;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Record of a tool execution during an agent run
|
|
140
|
+
*/
|
|
141
|
+
interface ToolExecutionRecord {
|
|
142
|
+
toolId: string;
|
|
143
|
+
toolName: string;
|
|
144
|
+
input: Record<string, unknown>;
|
|
145
|
+
output?: unknown;
|
|
146
|
+
error?: string;
|
|
147
|
+
success: boolean;
|
|
148
|
+
iteration: number;
|
|
149
|
+
executionTimeMs: number;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Message in an agent conversation
|
|
153
|
+
*/
|
|
154
|
+
interface AgentMessage {
|
|
155
|
+
role: 'user' | 'assistant' | 'tool';
|
|
156
|
+
content: string;
|
|
157
|
+
toolCalls?: AgentToolCall[];
|
|
158
|
+
toolCallId?: string;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Agent stop conditions
|
|
162
|
+
*/
|
|
163
|
+
type AgentStopCondition = 'tool_result' | 'explicit_stop' | 'max_iterations';
|
|
164
|
+
/**
|
|
165
|
+
* Agent finish reason
|
|
166
|
+
*/
|
|
167
|
+
type AgentFinishReason = 'completed' | 'max_iterations' | 'tool_result' | 'error';
|
|
168
|
+
/**
|
|
169
|
+
* Result from agent prompt execution
|
|
170
|
+
*/
|
|
171
|
+
interface AgentPromptResult {
|
|
172
|
+
type: 'text' | 'tool_use';
|
|
173
|
+
content: string;
|
|
174
|
+
/** Tool calls requested by the LLM */
|
|
175
|
+
toolCalls?: AgentToolCall[];
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Request to run an agent prompt
|
|
179
|
+
*/
|
|
180
|
+
interface AgentPromptRequest {
|
|
181
|
+
model: string;
|
|
182
|
+
messages: AgentMessage[];
|
|
183
|
+
tools: AgentToolDefinition[];
|
|
184
|
+
systemPrompt?: string;
|
|
185
|
+
temperature?: number;
|
|
186
|
+
maxTokens?: number;
|
|
187
|
+
toolChoice?: 'auto' | 'none' | {
|
|
188
|
+
type: 'tool';
|
|
189
|
+
name: string;
|
|
190
|
+
};
|
|
191
|
+
/** Whether to allow parallel tool calls (defaults to true) */
|
|
192
|
+
parallelToolCalls?: boolean;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Agent execution output structure
|
|
196
|
+
*/
|
|
197
|
+
interface AgentExecutionOutput {
|
|
198
|
+
finalResponse: string;
|
|
199
|
+
toolResults: ToolExecutionRecord[];
|
|
200
|
+
iterations: number;
|
|
201
|
+
finishReason: AgentFinishReason;
|
|
202
|
+
conversationHistory: AgentMessage[];
|
|
203
|
+
/** Token usage statistics */
|
|
204
|
+
tokenUsage?: {
|
|
205
|
+
conversationTokensEstimate: number;
|
|
206
|
+
truncationOccurred: boolean;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
//#endregion
|
|
210
|
+
export { AddedToolInstance, AgentExecutionOutput, AgentFinishReason, AgentMessage, AgentPromptRequest, AgentPromptResult, AgentStopCondition, AgentToolCall, AgentToolCategory, AgentToolDefinition, AgentToolExecutionContext, AgentToolExecutor, AgentToolResult, ConfiguredToolDefinition, RegisteredAgentTool, ToolExecutionRecord };
|
|
211
|
+
//# sourceMappingURL=agent-tool.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-tool.types.d.ts","names":[],"sources":["../../src/types/agent-tool.types.ts"],"mappings":";;;;;;;KAYY,iBAAA;;;;UAqBK,mBAAA;EA6Bb;EA3BF,EAAA;EA6BS;EA3BT,IAAA;EAuCe;EArCf,WAAA;;EAEA,WAAA,EAAa,MAAA;EAqCb;EAnCA,QAAA,EAAU,iBAAA;EAuCV;EArCA,IAAA;EA4CA;EA1CA,gBAAA;EAgDE;EA9CF,SAAA;EA8CyB;;AAQ3B;;EAjDE,QAAA;EAiDmE;;;;EA5CnE,QAAA;IACE,EAAA;IACA,IAAA;IACA,IAAA,UAyDa;IAvDb,OAAA;EAAA;AAAA;;;;;;;;;UAYa,iBAAA;EAkDF;EAhDb,UAAA;EAsDe;EApDf,MAAA;EAoDqB;EAlDrB,IAAA;EAwD8B;EAtD9B,WAAA;EAsD8B;;;;EAjD9B,MAAA,EAAQ,MAAA;IAoDH;AAMP;;;;IApDI,cAAA,GAAiB,MAAA;EAAA;AAAA;;;;;UAQJ,wBAAA,SAAiC,mBAAA;EA8ChD;EA5CA,UAAA;EA6CW;EA3CX,YAAA,EAAc,MAAA;EA2CY;EAzC1B,UAAA;AAAA;;;;;;;;UAUe,yBAAA;EACf,MAAA,EAAQ,MAAA;EA2CoB;EAzC5B,SAAA;EA4Ca;EA1Cb,aAAA;EAyCA;EAvCA,WAAA,EAAa;EAwCb;;;;AAMF;;AANE;EAlCA,YAAA,GAAe,MAAA;AAAA;;;;UAMA,eAAA;EACf,OAAA;EACA,MAAA;EACA,KAAA;AAAA;;;;KAMU,iBAAA,IACV,KAAA,EAAO,MAAA,mBACP,OAAA,EAAS,yBAAA,KACN,OAAA,CAAQ,eAAA;;;;UAKI,mBAAA;EACf,UAAA,EAAY,mBAAA;EACZ,QAAA,EAAU,iBAAA;AAAA;;;;UAMK,aAAA;EACf,EAAA;EACA,MAAA;EACA,KAAA,EAAO,MAAA;AAAA;AAmCT;;;AAAA,UA7BiB,mBAAA;EACf,MAAA;EACA,QAAA;EACA,KAAA,EAAO,MAAA;EACP,MAAA;EACA,KAAA;EACA,OAAA;EACA,SAAA;EACA,eAAA;AAAA;;;AAoCF;UA9BiB,YAAA;EACf,IAAA;EACA,OAAA;EACA,SAAA,GAAY,aAAA;EACZ,UAAA;AAAA;;;;KAMU,kBAAA;;;;KAKA,iBAAA;;;;UAKK,iBAAA;EACf,IAAA;EACA,OAAA;EAyBa;EAvBb,SAAA,GAAY,aAAA;AAAA;;;;UAMG,kBAAA;EACf,KAAA;EACA,QAAA,EAAU,YAAA;EACV,KAAA,EAAO,mBAAA;EACP,YAAA;EACA,WAAA;EACA,SAAA;EACA,UAAA;IAAiC,IAAA;IAAc,IAAA;EAAA;EAiB3B;EAfpB,iBAAA;AAAA;;;;UAMe,oBAAA;EACf,aAAA;EACA,WAAA,EAAa,mBAAA;EACb,UAAA;EACA,YAAA,EAAc,iBAAA;EACd,mBAAA,EAAqB,YAAA;;EAErB,UAAA;IACE,0BAAA;IACA,kBAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/types/agent-tool.types.ts
|
|
2
|
+
/**
|
|
3
|
+
* Default timeout for tool execution (30 seconds)
|
|
4
|
+
*/
|
|
5
|
+
const DEFAULT_TOOL_TIMEOUT_MS = 3e4;
|
|
6
|
+
/**
|
|
7
|
+
* Default max tokens for conversation history (approximate)
|
|
8
|
+
* This is used to estimate when to truncate conversation history
|
|
9
|
+
*/
|
|
10
|
+
const DEFAULT_MAX_CONVERSATION_TOKENS = 1e5;
|
|
11
|
+
/**
|
|
12
|
+
* Approximate tokens per character (for estimation)
|
|
13
|
+
*/
|
|
14
|
+
const APPROX_TOKENS_PER_CHAR = .25;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { APPROX_TOKENS_PER_CHAR, DEFAULT_MAX_CONVERSATION_TOKENS, DEFAULT_TOOL_TIMEOUT_MS };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=agent-tool.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-tool.types.js","names":[],"sources":["../../src/types/agent-tool.types.ts"],"sourcesContent":["/**\n * Agent Tool Types\n *\n * Types for defining tools that AI agents can use during execution.\n */\n\nimport { Logger } from './schemas';\nimport { NodeExecutionContext } from 'src/types-fresh';\n\n/**\n * Tool category for organization in UI\n */\nexport type AgentToolCategory = 'data' | 'web' | 'code' | 'utility' | 'custom';\n\n/**\n * Default timeout for tool execution (30 seconds)\n */\nexport const DEFAULT_TOOL_TIMEOUT_MS = 30000;\n\n/**\n * Default max tokens for conversation history (approximate)\n * This is used to estimate when to truncate conversation history\n */\nexport const DEFAULT_MAX_CONVERSATION_TOKENS = 100000;\n\n/**\n * Approximate tokens per character (for estimation)\n */\nexport const APPROX_TOKENS_PER_CHAR = 0.25;\n\n/**\n * Base tool definition that can be registered and used by agents\n */\nexport interface AgentToolDefinition {\n /** Unique tool identifier (snake_case recommended) */\n id: string;\n /** Human-readable name */\n name: string;\n /** Description for the LLM to understand when to use this tool */\n description: string;\n /** JSON Schema defining the tool's input parameters */\n inputSchema: Record<string, unknown>;\n /** Tool category for organization in UI */\n category: AgentToolCategory;\n /** Tags for filtering and organization */\n tags?: string[];\n /** Whether this tool is enabled by default */\n enabledByDefault?: boolean;\n /** Timeout in milliseconds for this tool (defaults to DEFAULT_TOOL_TIMEOUT_MS) */\n timeoutMs?: number;\n /**\n * If this tool is backed by a node executor, this is the node type.\n * Used to fetch the node definition for configuration UI.\n */\n nodeType?: string;\n /**\n * Provider information for grouping and branding in the UI.\n * Populated from the action's provider when the tool is action-based.\n */\n provider?: {\n id: string;\n name: string;\n icon: string;\n /** Raw SVG markup for custom provider branding. Takes precedence over `icon`. */\n svgIcon?: string;\n };\n}\n\n/**\n * A configured instance of a tool added to an agent.\n * Multiple instances of the same tool can exist with different configurations.\n *\n * For example, two HTTP Request tools:\n * - \"Fetch Weather\" with URL preset to weather API\n * - \"Post to Slack\" with URL preset to Slack webhook\n */\nexport interface AddedToolInstance {\n /** Unique instance ID */\n instanceId: string;\n /** Reference to the base tool definition ID */\n toolId: string;\n /** Custom name for this instance (shown to AI) */\n name: string;\n /** Custom description for this instance (shown to AI) */\n description: string;\n /**\n * Tool-specific parameter values.\n * Contains both static values and `_aiChosenModes` to indicate which params the AI should fill.\n */\n params: Record<string, unknown> & {\n /**\n * Map of param name to boolean indicating if AI should choose the value.\n * If true (or not present), AI fills the value at runtime.\n * If false, the value from `params[fieldName]` is used as a static value.\n */\n _aiChosenModes?: Record<string, boolean>;\n };\n}\n\n/**\n * A tool definition customized for a specific instance.\n * Has filtered inputSchema (only AI-chosen params) and references the instance for static param injection.\n */\nexport interface ConfiguredToolDefinition extends AgentToolDefinition {\n /** The instance this configured tool is derived from */\n instanceId: string;\n /** Static parameter values to merge with AI-provided input */\n staticParams: Record<string, unknown>;\n /** Original tool ID (before instance customization) */\n baseToolId: string;\n}\n\n/**\n * Tool execution context provided to tool handlers\n *\n * Tools are self-contained and should import their own dependencies\n * (e.g., json-logic-js) rather than relying on context functions.\n * The nodeContext provides access to cross-cutting concerns like credentials.\n */\nexport interface AgentToolExecutionContext {\n logger: Logger;\n /** Current agent iteration number */\n iteration: number;\n /** Maximum allowed iterations */\n maxIterations: number;\n /** Node execution context - provides access to credentials and other cross-cutting concerns */\n nodeContext: NodeExecutionContext /**\n * Static parameters configured on the tool instance.\n * These are set by the user when adding the tool to an agent node,\n * not provided by the AI at runtime.\n * Example: credentialId for OAuth2 tools like Gmail\n */;\n staticParams?: Record<string, unknown>;\n}\n\n/**\n * Result from executing a tool\n */\nexport interface AgentToolResult {\n success: boolean;\n output?: unknown;\n error?: string;\n}\n\n/**\n * Tool executor function type\n */\nexport type AgentToolExecutor = (\n input: Record<string, unknown>,\n context: AgentToolExecutionContext,\n) => Promise<AgentToolResult>;\n\n/**\n * Registered agent tool with definition and executor\n */\nexport interface RegisteredAgentTool {\n definition: AgentToolDefinition;\n executor: AgentToolExecutor;\n}\n\n/**\n * Tool call from an LLM response\n */\nexport interface AgentToolCall {\n id: string;\n toolId: string;\n input: Record<string, unknown>;\n}\n\n/**\n * Record of a tool execution during an agent run\n */\nexport interface ToolExecutionRecord {\n toolId: string;\n toolName: string;\n input: Record<string, unknown>;\n output?: unknown;\n error?: string;\n success: boolean;\n iteration: number;\n executionTimeMs: number;\n}\n\n/**\n * Message in an agent conversation\n */\nexport interface AgentMessage {\n role: 'user' | 'assistant' | 'tool';\n content: string;\n toolCalls?: AgentToolCall[];\n toolCallId?: string;\n}\n\n/**\n * Agent stop conditions\n */\nexport type AgentStopCondition = 'tool_result' | 'explicit_stop' | 'max_iterations';\n\n/**\n * Agent finish reason\n */\nexport type AgentFinishReason = 'completed' | 'max_iterations' | 'tool_result' | 'error';\n\n/**\n * Result from agent prompt execution\n */\nexport interface AgentPromptResult {\n type: 'text' | 'tool_use';\n content: string;\n /** Tool calls requested by the LLM */\n toolCalls?: AgentToolCall[];\n}\n\n/**\n * Request to run an agent prompt\n */\nexport interface AgentPromptRequest {\n model: string;\n messages: AgentMessage[];\n tools: AgentToolDefinition[];\n systemPrompt?: string;\n temperature?: number;\n maxTokens?: number;\n toolChoice?: 'auto' | 'none' | { type: 'tool'; name: string };\n /** Whether to allow parallel tool calls (defaults to true) */\n parallelToolCalls?: boolean;\n}\n\n/**\n * Agent execution output structure\n */\nexport interface AgentExecutionOutput {\n finalResponse: string;\n toolResults: ToolExecutionRecord[];\n iterations: number;\n finishReason: AgentFinishReason;\n conversationHistory: AgentMessage[];\n /** Token usage statistics */\n tokenUsage?: {\n conversationTokensEstimate: number;\n truncationOccurred: boolean;\n };\n}\n\n/**\n * Agent configuration for advanced settings\n */\nexport interface AgentConfig {\n /** Tool execution timeout in milliseconds (default: 30000) */\n toolTimeoutMs?: number;\n /** Maximum tokens for conversation history before truncation (default: 100000) */\n maxConversationTokens?: number;\n /** Whether to enable parallel tool execution (default: true) */\n enableParallelTools?: boolean;\n /** Maximum number of parallel tool calls per iteration (default: 5) */\n maxParallelToolCalls?: number;\n}\n"],"mappings":";;;;AAiBA,MAAa,0BAA0B;;;;;AAMvC,MAAa,kCAAkC;;;;AAK/C,MAAa,yBAAyB"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//#region src/types/auth.types.ts
|
|
2
|
+
/**
|
|
3
|
+
* Default permission sets for built-in roles.
|
|
4
|
+
*/
|
|
5
|
+
const DEFAULT_ROLE_PERMISSIONS = {
|
|
6
|
+
admin: ["admin:*"],
|
|
7
|
+
editor: [
|
|
8
|
+
"flow:create",
|
|
9
|
+
"flow:read",
|
|
10
|
+
"flow:update",
|
|
11
|
+
"flow:delete",
|
|
12
|
+
"flow:publish",
|
|
13
|
+
"flow-version:create",
|
|
14
|
+
"flow-version:read",
|
|
15
|
+
"flow-run:create",
|
|
16
|
+
"flow-run:read",
|
|
17
|
+
"flow-run:cancel",
|
|
18
|
+
"credential:create",
|
|
19
|
+
"credential:read",
|
|
20
|
+
"credential:update",
|
|
21
|
+
"credential:delete",
|
|
22
|
+
"agent-tool:read",
|
|
23
|
+
"agent-tool:configure",
|
|
24
|
+
"node:test"
|
|
25
|
+
],
|
|
26
|
+
operator: [
|
|
27
|
+
"flow:read",
|
|
28
|
+
"flow-version:read",
|
|
29
|
+
"flow-run:create",
|
|
30
|
+
"flow-run:read",
|
|
31
|
+
"flow-run:cancel",
|
|
32
|
+
"credential:read",
|
|
33
|
+
"agent-tool:read",
|
|
34
|
+
"node:test"
|
|
35
|
+
],
|
|
36
|
+
viewer: [
|
|
37
|
+
"flow:read",
|
|
38
|
+
"flow-version:read",
|
|
39
|
+
"flow-run:read",
|
|
40
|
+
"credential:read",
|
|
41
|
+
"agent-tool:read"
|
|
42
|
+
]
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Map of actions to the permission required.
|
|
46
|
+
* Used for route-level authorization.
|
|
47
|
+
*/
|
|
48
|
+
const ACTION_PERMISSION_MAP = {
|
|
49
|
+
listFlows: "flow:read",
|
|
50
|
+
getFlow: "flow:read",
|
|
51
|
+
createFlow: "flow:create",
|
|
52
|
+
updateFlow: "flow:update",
|
|
53
|
+
deleteFlow: "flow:delete",
|
|
54
|
+
publishFlow: "flow:publish",
|
|
55
|
+
listFlowVersions: "flow-version:read",
|
|
56
|
+
getFlowVersion: "flow-version:read",
|
|
57
|
+
createFlowVersion: "flow-version:create",
|
|
58
|
+
listFlowRuns: "flow-run:read",
|
|
59
|
+
getFlowRun: "flow-run:read",
|
|
60
|
+
startFlowRun: "flow-run:create",
|
|
61
|
+
cancelFlowRun: "flow-run:cancel",
|
|
62
|
+
listCredentials: "credential:read",
|
|
63
|
+
getCredential: "credential:read",
|
|
64
|
+
createCredential: "credential:create",
|
|
65
|
+
updateCredential: "credential:update",
|
|
66
|
+
deleteCredential: "credential:delete",
|
|
67
|
+
listAgentTools: "agent-tool:read",
|
|
68
|
+
getAgentTool: "agent-tool:read",
|
|
69
|
+
testSqlQuery: "node:test",
|
|
70
|
+
testModel: "node:test"
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
exports.ACTION_PERMISSION_MAP = ACTION_PERMISSION_MAP;
|
|
74
|
+
exports.DEFAULT_ROLE_PERMISSIONS = DEFAULT_ROLE_PERMISSIONS;
|
|
75
|
+
|
|
76
|
+
//# sourceMappingURL=auth.types.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.types.cjs","names":[],"sources":["../../src/types/auth.types.ts"],"sourcesContent":["/**\n * Invect Authentication & Authorization Types\n *\n * Authentication is handled by the auth plugin (better-auth).\n * Invect handles authorization based on the identity resolved by the plugin's onRequest hook.\n */\n\n// =============================================================================\n// Identity Types\n// =============================================================================\n\n/**\n * Identity resolved from the host app's authentication system.\n * Invect doesn't care HOW you authenticated - just WHO you are.\n */\nexport interface InvectIdentity {\n /** Unique user identifier from host app (e.g., user ID, email, API key ID) */\n id: string;\n\n /** Optional display name for UI and audit logs */\n name?: string;\n\n /**\n * Role within Invect (maps to permissions).\n * Host app can either:\n * 1. Provide a Invect role directly (if they store it)\n * 2. Use roleMapper in config to map their roles → Invect roles\n */\n role?: InvectRole;\n\n /**\n * Team IDs this user belongs to (from host app).\n * Used for team-level flow access when useFlowAccessTable is enabled.\n */\n teamIds?: string[];\n\n /**\n * Optional: Direct permission overrides (advanced use case).\n * These are checked IN ADDITION to role-based permissions.\n */\n permissions?: InvectPermission[];\n\n /**\n * Optional: Resource-level access control.\n * Restricts access to specific resources by ID.\n * E.g., user can only access specific flows they created.\n *\n * Use '*' to allow access to all resources of that type.\n * Omit the key entirely to use role-based access (no resource restriction).\n *\n * Note: If useFlowAccessTable is enabled, flow access is looked up from\n * the database instead of this field.\n */\n resourceAccess?: InvectResourceAccess;\n\n /** Any additional metadata from host app (for audit logs, etc.) */\n metadata?: Record<string, unknown>;\n}\n\n/**\n * Resource-level access control configuration.\n * Each property is either:\n * - An array of resource IDs the user can access\n * - '*' to allow access to all resources\n * - undefined to not restrict (use role permissions only)\n */\nexport interface InvectResourceAccess {\n /** Flow IDs the user can access */\n flows?: string[] | '*';\n /** Credential IDs the user can access */\n credentials?: string[] | '*';\n}\n\n// =============================================================================\n// Role & Permission Types\n// =============================================================================\n\n/**\n * Built-in roles with predefined permission sets.\n * Custom roles can be defined via config.customRoles.\n */\nexport type InvectBuiltInRole = 'admin' | 'editor' | 'operator' | 'viewer';\n\n/**\n * Invect role - either a built-in role or a custom role string.\n */\nexport type InvectRole = InvectBuiltInRole | string;\n\n/**\n * Granular permissions for Invect resources.\n */\nexport type InvectPermission =\n // Flow permissions\n | 'flow:create'\n | 'flow:read'\n | 'flow:update'\n | 'flow:delete'\n | 'flow:publish' // Set live version\n // Flow version permissions\n | 'flow-version:create'\n | 'flow-version:read'\n // Execution permissions\n | 'flow-run:create' // Start executions\n | 'flow-run:read'\n | 'flow-run:cancel'\n // Credential permissions\n | 'credential:create'\n | 'credential:read'\n | 'credential:update'\n | 'credential:delete'\n // Agent/tool permissions\n | 'agent-tool:read'\n | 'agent-tool:configure'\n // Node testing\n | 'node:test' // Test individual nodes (SQL, model, etc.)\n // Admin permissions\n | 'admin:*'; // Wildcard - all permissions\n\n/**\n * Resource types that can be protected by authorization.\n */\nexport type InvectResourceType =\n | 'flow'\n | 'flow-version'\n | 'flow-run'\n | 'node-execution'\n | 'credential'\n | 'agent-tool';\n\n// =============================================================================\n// Authorization Context & Results\n// =============================================================================\n\n/**\n * Context provided to authorization checks.\n */\nexport interface AuthorizationContext {\n /** The identity making the request (null if unauthenticated) */\n identity: InvectIdentity | null;\n\n /** The permission being checked */\n action: InvectPermission;\n\n /** The resource being accessed (if applicable) */\n resource?: {\n type: InvectResourceType;\n id?: string;\n };\n}\n\n/**\n * Result of an authorization check.\n */\nexport interface AuthorizationResult {\n /** Whether the action is allowed */\n allowed: boolean;\n /** Reason for denial (if not allowed) */\n reason?: string;\n}\n\n// =============================================================================\n// Auth Events (for host app audit logging)\n// =============================================================================\n\n/**\n * Base event data for all auth events.\n */\nexport interface AuthEventBase {\n /** Timestamp of the event */\n timestamp: Date;\n /** Identity that triggered the event (null if unauthenticated) */\n identity: InvectIdentity | null;\n /** The permission that was checked */\n action: InvectPermission;\n /** The resource involved (if applicable) */\n resource?: {\n type: InvectResourceType;\n id?: string;\n };\n}\n\n/**\n * Event emitted when authorization succeeds.\n */\nexport interface AuthAuthorizedEvent extends AuthEventBase {\n type: 'auth:authorized';\n allowed: true;\n}\n\n/**\n * Event emitted when authorization fails.\n */\nexport interface AuthForbiddenEvent extends AuthEventBase {\n type: 'auth:forbidden';\n allowed: false;\n reason: string;\n}\n\n/**\n * Event emitted when authentication fails (no valid identity).\n */\nexport interface AuthUnauthenticatedEvent {\n type: 'auth:unauthenticated';\n timestamp: Date;\n /** The permission that was attempted */\n action: InvectPermission;\n /** The resource involved (if applicable) */\n resource?: {\n type: InvectResourceType;\n id?: string;\n };\n}\n\n/**\n * Union of all auth events.\n */\nexport type AuthEvent = AuthAuthorizedEvent | AuthForbiddenEvent | AuthUnauthenticatedEvent;\n\n// =============================================================================\n// Configuration Types\n// =============================================================================\n\n/**\n * Callback for custom authorization logic.\n * Called after standard RBAC checks.\n *\n * @returns\n * - true: Allow the action\n * - false: Deny the action\n * - undefined: Use default RBAC result\n */\nexport type CustomAuthorizeFn = (\n context: AuthorizationContext,\n) => Promise<boolean | undefined> | boolean | undefined;\n\n/**\n * Authentication/Authorization configuration for Invect.\n */\nexport interface InvectAuthConfig {\n /**\n * Enable RBAC (Role-Based Access Control).\n * When false, all requests are allowed without authentication checks.\n * @default false\n */\n enabled?: boolean;\n\n /**\n * Map host app roles to Invect roles.\n * Useful when host app has different role names.\n *\n * @example { 'super_admin': 'admin', 'content_editor': 'editor' }\n */\n roleMapper?: Record<string, InvectRole>;\n\n /**\n * Define custom roles with specific permissions.\n * Extends built-in roles (admin, editor, operator, viewer).\n *\n * @example { 'qa_tester': ['flow:read', 'flow-run:create', 'flow-run:read'] }\n */\n customRoles?: Record<string, InvectPermission[]>;\n\n /**\n * Callback for custom authorization logic.\n * Called after standard RBAC checks.\n * Return true to allow, false to deny, undefined to use default.\n */\n customAuthorize?: CustomAuthorizeFn;\n\n /**\n * Routes that don't require authentication.\n * Matched against the request path.\n *\n * @example ['/health', '/metrics', '/webhooks/*']\n */\n publicRoutes?: string[];\n\n /**\n * Default role for authenticated users without an explicit role.\n * @default 'viewer'\n */\n defaultRole?: InvectRole;\n\n /**\n * Behavior when auth fails.\n * - 'throw': Throw an error (401/403)\n * - 'log': Log warning and continue (allow access)\n * - 'deny': Silently deny access\n * @default 'throw'\n */\n onAuthFailure?: 'throw' | 'log' | 'deny';\n\n /**\n * Use the flow_access database table to manage flow-level permissions.\n * When enabled:\n * - Invect stores flow access records in its own database\n * - Flow access is looked up from the database\n *\n * When disabled (default):\n * - Flow access is determined by resourceAccess.flows from the identity\n *\n * @default false\n */\n useFlowAccessTable?: boolean;\n}\n\n// =============================================================================\n// Default Role Permissions\n// =============================================================================\n\n/**\n * Default permission sets for built-in roles.\n */\nexport const DEFAULT_ROLE_PERMISSIONS: Record<InvectBuiltInRole, InvectPermission[]> = {\n admin: ['admin:*'],\n\n editor: [\n 'flow:create',\n 'flow:read',\n 'flow:update',\n 'flow:delete',\n 'flow:publish',\n 'flow-version:create',\n 'flow-version:read',\n 'flow-run:create',\n 'flow-run:read',\n 'flow-run:cancel',\n 'credential:create',\n 'credential:read',\n 'credential:update',\n 'credential:delete',\n 'agent-tool:read',\n 'agent-tool:configure',\n 'node:test',\n ],\n\n operator: [\n 'flow:read',\n 'flow-version:read',\n 'flow-run:create',\n 'flow-run:read',\n 'flow-run:cancel',\n 'credential:read',\n 'agent-tool:read',\n 'node:test',\n ],\n\n viewer: ['flow:read', 'flow-version:read', 'flow-run:read', 'credential:read', 'agent-tool:read'],\n};\n\n/**\n * Map of actions to the permission required.\n * Used for route-level authorization.\n */\nexport const ACTION_PERMISSION_MAP: Record<string, InvectPermission> = {\n // Flows\n listFlows: 'flow:read',\n getFlow: 'flow:read',\n createFlow: 'flow:create',\n updateFlow: 'flow:update',\n deleteFlow: 'flow:delete',\n publishFlow: 'flow:publish',\n\n // Flow versions\n listFlowVersions: 'flow-version:read',\n getFlowVersion: 'flow-version:read',\n createFlowVersion: 'flow-version:create',\n\n // Flow runs\n listFlowRuns: 'flow-run:read',\n getFlowRun: 'flow-run:read',\n startFlowRun: 'flow-run:create',\n cancelFlowRun: 'flow-run:cancel',\n\n // Credentials\n listCredentials: 'credential:read',\n getCredential: 'credential:read',\n createCredential: 'credential:create',\n updateCredential: 'credential:update',\n deleteCredential: 'credential:delete',\n\n // Agent tools\n listAgentTools: 'agent-tool:read',\n getAgentTool: 'agent-tool:read',\n\n // Node testing\n testSqlQuery: 'node:test',\n testModel: 'node:test',\n};\n"],"mappings":";;;;AAyTA,MAAa,2BAA0E;CACrF,OAAO,CAAC,UAAU;CAElB,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CAED,UAAU;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CAED,QAAQ;EAAC;EAAa;EAAqB;EAAiB;EAAmB;EAAkB;CAClG;;;;;AAMD,MAAa,wBAA0D;CAErE,WAAW;CACX,SAAS;CACT,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,aAAa;CAGb,kBAAkB;CAClB,gBAAgB;CAChB,mBAAmB;CAGnB,cAAc;CACd,YAAY;CACZ,cAAc;CACd,eAAe;CAGf,iBAAiB;CACjB,eAAe;CACf,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAGlB,gBAAgB;CAChB,cAAc;CAGd,cAAc;CACd,WAAW;CACZ"}
|