@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,252 @@
|
|
|
1
|
+
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
let zod_v4 = require("zod/v4");
|
|
3
|
+
const contextTools = [
|
|
4
|
+
{
|
|
5
|
+
id: "get_current_flow_context",
|
|
6
|
+
name: "Get Current Flow Context",
|
|
7
|
+
description: "Get the full flow definition including all nodes, edges, and their configurations. Use this when you need detailed information about specific nodes or the complete flow structure. Optionally filter to a specific node by ID.",
|
|
8
|
+
parameters: zod_v4.z.object({ nodeId: zod_v4.z.string().optional().describe("Optional: get details for a specific node only") }),
|
|
9
|
+
async execute(params, ctx) {
|
|
10
|
+
const { nodeId } = params;
|
|
11
|
+
const invect = ctx.invect;
|
|
12
|
+
const flowId = ctx.chatContext.flowId;
|
|
13
|
+
if (!flowId) return {
|
|
14
|
+
success: false,
|
|
15
|
+
error: "No flow is currently open"
|
|
16
|
+
};
|
|
17
|
+
try {
|
|
18
|
+
const version = await invect.getFlowVersion(flowId, "latest");
|
|
19
|
+
if (!version) return {
|
|
20
|
+
success: false,
|
|
21
|
+
error: "No flow version found"
|
|
22
|
+
};
|
|
23
|
+
const definition = version.invectDefinition;
|
|
24
|
+
if (nodeId) {
|
|
25
|
+
const node = definition.nodes.find((n) => n.id === nodeId);
|
|
26
|
+
if (!node) return {
|
|
27
|
+
success: false,
|
|
28
|
+
error: `Node "${nodeId}" not found in flow`
|
|
29
|
+
};
|
|
30
|
+
return {
|
|
31
|
+
success: true,
|
|
32
|
+
data: { node }
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
success: true,
|
|
37
|
+
data: {
|
|
38
|
+
nodes: definition.nodes.map((n) => ({
|
|
39
|
+
id: n.id,
|
|
40
|
+
type: n.type,
|
|
41
|
+
label: n.label,
|
|
42
|
+
referenceId: n.referenceId,
|
|
43
|
+
params: n.params
|
|
44
|
+
})),
|
|
45
|
+
edges: definition.edges.map((e) => ({
|
|
46
|
+
id: e.id,
|
|
47
|
+
source: e.source,
|
|
48
|
+
target: e.target,
|
|
49
|
+
sourceHandle: e.sourceHandle,
|
|
50
|
+
targetHandle: e.targetHandle
|
|
51
|
+
}))
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
} catch (error) {
|
|
55
|
+
return {
|
|
56
|
+
success: false,
|
|
57
|
+
error: `Failed to get flow context: ${error.message}`
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "search_actions",
|
|
64
|
+
name: "Search Actions",
|
|
65
|
+
description: "Search for available node types (actions) that can be added to a flow. Search by keyword to find integrations like Gmail, Slack, HTTP, etc. Returns action IDs, names, descriptions, and parameter schemas.",
|
|
66
|
+
parameters: zod_v4.z.object({
|
|
67
|
+
query: zod_v4.z.string().describe("Search keyword (e.g. \"gmail\", \"http\", \"slack\", \"jq\", \"model\")"),
|
|
68
|
+
limit: zod_v4.z.number().optional().default(10).describe("Max results to return (default 10)")
|
|
69
|
+
}),
|
|
70
|
+
async execute(params, ctx) {
|
|
71
|
+
const { query, limit } = params;
|
|
72
|
+
const invect = ctx.invect;
|
|
73
|
+
try {
|
|
74
|
+
const allNodes = invect.getAvailableNodes();
|
|
75
|
+
const terms = query.toLowerCase().split(/\s+/).filter(Boolean);
|
|
76
|
+
const maxResults = limit ?? 10;
|
|
77
|
+
const matches = allNodes.map((n) => {
|
|
78
|
+
const typeLower = n.type.toLowerCase();
|
|
79
|
+
const labelLower = n.label.toLowerCase();
|
|
80
|
+
const providerLower = (n.provider?.name ?? "").toLowerCase();
|
|
81
|
+
const descLower = (n.description ?? "").toLowerCase();
|
|
82
|
+
const tagsLower = (n.searchTerms ?? []).join(" ").toLowerCase();
|
|
83
|
+
let score = 0;
|
|
84
|
+
for (const term of terms) if (typeLower.includes(term) || labelLower.includes(term) || providerLower.includes(term)) score += 2;
|
|
85
|
+
else if (descLower.includes(term) || tagsLower.includes(term)) score += 1;
|
|
86
|
+
return {
|
|
87
|
+
node: n,
|
|
88
|
+
score
|
|
89
|
+
};
|
|
90
|
+
}).filter((s) => s.score > 0).sort((a, b) => b.score - a.score).slice(0, maxResults).map(({ node: n }) => ({
|
|
91
|
+
actionId: n.type,
|
|
92
|
+
name: n.label,
|
|
93
|
+
description: n.description,
|
|
94
|
+
provider: n.provider?.name,
|
|
95
|
+
params: n.paramFields?.map((f) => ({
|
|
96
|
+
name: f.name,
|
|
97
|
+
label: f.label,
|
|
98
|
+
type: f.type,
|
|
99
|
+
required: f.required
|
|
100
|
+
}))
|
|
101
|
+
}));
|
|
102
|
+
return {
|
|
103
|
+
success: true,
|
|
104
|
+
data: {
|
|
105
|
+
total: matches.length,
|
|
106
|
+
results: matches,
|
|
107
|
+
hint: matches.length === 0 ? `No actions found for "${query}". Try broader terms like "email", "api", "data".` : void 0
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
} catch (error) {
|
|
111
|
+
return {
|
|
112
|
+
success: false,
|
|
113
|
+
error: `Search failed: ${error.message}`
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: "list_credentials",
|
|
120
|
+
name: "List Credentials",
|
|
121
|
+
description: "List all configured credentials (without sensitive data). Use this to find credential IDs for nodes that need authentication.",
|
|
122
|
+
parameters: zod_v4.z.object({}),
|
|
123
|
+
async execute(_params, ctx) {
|
|
124
|
+
const invect = ctx.invect;
|
|
125
|
+
try {
|
|
126
|
+
return {
|
|
127
|
+
success: true,
|
|
128
|
+
data: (await invect.listCredentials()).map((c) => ({
|
|
129
|
+
id: c.id,
|
|
130
|
+
name: c.name,
|
|
131
|
+
type: c.type,
|
|
132
|
+
authType: c.authType,
|
|
133
|
+
description: c.description
|
|
134
|
+
}))
|
|
135
|
+
};
|
|
136
|
+
} catch (error) {
|
|
137
|
+
return {
|
|
138
|
+
success: false,
|
|
139
|
+
error: `Failed to list credentials: ${error.message}`
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: "suggest_credential_setup",
|
|
146
|
+
name: "Suggest Credential Setup",
|
|
147
|
+
description: "Guide the user to set up a credential through the secure credential UI. NEVER ask users to paste API keys in chat — always use this tool instead.",
|
|
148
|
+
parameters: zod_v4.z.object({
|
|
149
|
+
providerName: zod_v4.z.string().describe("The service name (e.g. \"Gmail\", \"OpenAI\", \"Slack\")"),
|
|
150
|
+
reason: zod_v4.z.string().describe("Why this credential is needed")
|
|
151
|
+
}),
|
|
152
|
+
async execute(params, _ctx) {
|
|
153
|
+
const { providerName, reason } = params;
|
|
154
|
+
return {
|
|
155
|
+
success: true,
|
|
156
|
+
data: {
|
|
157
|
+
message: `To connect ${providerName}: ${reason}`,
|
|
158
|
+
instructions: "Click the link below to open the credential setup page."
|
|
159
|
+
},
|
|
160
|
+
uiAction: {
|
|
161
|
+
action: "open_credential_setup",
|
|
162
|
+
data: { providerName }
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: "get_action_details",
|
|
169
|
+
name: "Get Action Details",
|
|
170
|
+
description: "Get the full definition of a specific action by its ID. Returns the complete parameter schema, field definitions, provider info, and description. Use this when you need to know exactly what parameters a node type expects before adding or configuring it.",
|
|
171
|
+
parameters: zod_v4.z.object({ actionId: zod_v4.z.string().describe("The action ID (e.g. \"core.model\", \"gmail.send_message\", \"http.request\")") }),
|
|
172
|
+
async execute(params, ctx) {
|
|
173
|
+
const { actionId } = params;
|
|
174
|
+
const invect = ctx.invect;
|
|
175
|
+
try {
|
|
176
|
+
const allNodes = invect.getAvailableNodes();
|
|
177
|
+
const node = allNodes.find((n) => n.type === actionId);
|
|
178
|
+
if (!node) {
|
|
179
|
+
const searchLower = actionId.toLowerCase();
|
|
180
|
+
const similar = allNodes.filter((n) => n.type.toLowerCase().includes(searchLower.split(".").pop() ?? "")).slice(0, 5).map((n) => n.type);
|
|
181
|
+
return {
|
|
182
|
+
success: false,
|
|
183
|
+
error: `Action "${actionId}" not found`,
|
|
184
|
+
suggestion: similar.length > 0 ? `Did you mean one of: ${similar.join(", ")}?` : "Use search_actions to find available actions."
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
return {
|
|
188
|
+
success: true,
|
|
189
|
+
data: {
|
|
190
|
+
actionId: node.type,
|
|
191
|
+
name: node.label,
|
|
192
|
+
description: node.description,
|
|
193
|
+
provider: node.provider,
|
|
194
|
+
paramFields: node.paramFields?.map((f) => ({
|
|
195
|
+
name: f.name,
|
|
196
|
+
label: f.label,
|
|
197
|
+
type: f.type,
|
|
198
|
+
required: f.required,
|
|
199
|
+
description: f.description,
|
|
200
|
+
defaultValue: f.defaultValue,
|
|
201
|
+
options: f.options
|
|
202
|
+
})),
|
|
203
|
+
outputs: node.outputs
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
} catch (error) {
|
|
207
|
+
return {
|
|
208
|
+
success: false,
|
|
209
|
+
error: `Failed to get action details: ${error.message}`
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
id: "list_providers",
|
|
216
|
+
name: "List Providers",
|
|
217
|
+
description: "List all available integration providers and how many actions each has. Use this to answer \"what integrations do you support?\" or to discover available services. Follow up with search_actions to find specific actions within a provider.",
|
|
218
|
+
parameters: zod_v4.z.object({}),
|
|
219
|
+
async execute(_params, ctx) {
|
|
220
|
+
const invect = ctx.invect;
|
|
221
|
+
try {
|
|
222
|
+
const providers = invect.getProviders();
|
|
223
|
+
return {
|
|
224
|
+
success: true,
|
|
225
|
+
data: {
|
|
226
|
+
total: providers.length,
|
|
227
|
+
providers: providers.map((p) => {
|
|
228
|
+
const actions = invect.getActionsForProvider(p.id);
|
|
229
|
+
return {
|
|
230
|
+
id: p.id,
|
|
231
|
+
name: p.name,
|
|
232
|
+
description: p.description,
|
|
233
|
+
icon: p.icon,
|
|
234
|
+
actionCount: actions.length,
|
|
235
|
+
actions: actions.map((a) => a.id)
|
|
236
|
+
};
|
|
237
|
+
})
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
} catch (error) {
|
|
241
|
+
return {
|
|
242
|
+
success: false,
|
|
243
|
+
error: `Failed to list providers: ${error.message}`
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
];
|
|
249
|
+
//#endregion
|
|
250
|
+
exports.contextTools = contextTools;
|
|
251
|
+
|
|
252
|
+
//# sourceMappingURL=context-tools.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-tools.cjs","names":["z"],"sources":["../../../../src/services/chat/tools/context-tools.ts"],"sourcesContent":["/**\n * Chat Tools — Flow Context & Search\n *\n * Tools for reading flow state and searching available actions.\n * These are read-only tools that help the LLM understand the current context.\n */\n\nimport { z } from 'zod/v4';\nimport type { ChatToolDefinition, ChatToolContext, ChatToolResult } from '../chat-types';\nimport type { Invect } from 'src/invect-core';\n\n// =====================================\n// get_current_flow_context\n// =====================================\n\nexport const getCurrentFlowContextTool: ChatToolDefinition = {\n id: 'get_current_flow_context',\n name: 'Get Current Flow Context',\n description:\n 'Get the full flow definition including all nodes, edges, and their configurations. ' +\n 'Use this when you need detailed information about specific nodes or the complete flow structure. ' +\n 'Optionally filter to a specific node by ID.',\n parameters: z.object({\n nodeId: z.string().optional().describe('Optional: get details for a specific node only'),\n }),\n async execute(params: unknown, ctx: ChatToolContext): Promise<ChatToolResult> {\n const { nodeId } = params as { nodeId?: string };\n const invect = ctx.invect as Invect;\n const flowId = ctx.chatContext.flowId;\n\n if (!flowId) {\n return { success: false, error: 'No flow is currently open' };\n }\n\n try {\n const version = await invect.getFlowVersion(flowId, 'latest');\n if (!version) {\n return { success: false, error: 'No flow version found' };\n }\n\n const definition = version.invectDefinition;\n\n if (nodeId) {\n const node = definition.nodes.find((n) => n.id === nodeId);\n if (!node) {\n return { success: false, error: `Node \"${nodeId}\" not found in flow` };\n }\n return { success: true, data: { node } };\n }\n\n return {\n success: true,\n data: {\n nodes: definition.nodes.map((n) => ({\n id: n.id,\n type: n.type,\n label: n.label,\n referenceId: n.referenceId,\n params: n.params,\n })),\n edges: definition.edges.map((e) => ({\n id: e.id,\n source: e.source,\n target: e.target,\n sourceHandle: e.sourceHandle,\n targetHandle: e.targetHandle,\n })),\n },\n };\n } catch (error: unknown) {\n return { success: false, error: `Failed to get flow context: ${(error as Error).message}` };\n }\n },\n};\n\n// =====================================\n// search_actions\n// =====================================\n\nexport const searchActionsTool: ChatToolDefinition = {\n id: 'search_actions',\n name: 'Search Actions',\n description:\n 'Search for available node types (actions) that can be added to a flow. ' +\n 'Search by keyword to find integrations like Gmail, Slack, HTTP, etc. ' +\n 'Returns action IDs, names, descriptions, and parameter schemas.',\n parameters: z.object({\n query: z.string().describe('Search keyword (e.g. \"gmail\", \"http\", \"slack\", \"jq\", \"model\")'),\n limit: z.number().optional().default(10).describe('Max results to return (default 10)'),\n }),\n async execute(params: unknown, ctx: ChatToolContext): Promise<ChatToolResult> {\n const { query, limit } = params as { query: string; limit?: number };\n const invect = ctx.invect as Invect;\n\n try {\n // Use getAvailableNodes() which returns NodeDefinition[] from both actions and legacy executors\n const allNodes = invect.getAvailableNodes();\n // Split query into individual terms for relevance scoring\n const terms = query.toLowerCase().split(/\\s+/).filter(Boolean);\n const maxResults = limit ?? 10;\n\n // Score each node: +2 for type/label/provider match, +1 for description/tag match\n const scored = allNodes\n .map((n) => {\n const typeLower = n.type.toLowerCase();\n const labelLower = n.label.toLowerCase();\n const providerLower = (n.provider?.name ?? '').toLowerCase();\n const descLower = (n.description ?? '').toLowerCase();\n const tagsLower = (n.searchTerms ?? []).join(' ').toLowerCase();\n\n let score = 0;\n for (const term of terms) {\n if (\n typeLower.includes(term) ||\n labelLower.includes(term) ||\n providerLower.includes(term)\n ) {\n score += 2; // Strong match: type, name, or provider\n } else if (descLower.includes(term) || tagsLower.includes(term)) {\n score += 1; // Weaker match: description or tags\n }\n }\n return { node: n, score };\n })\n .filter((s) => s.score > 0)\n .sort((a, b) => b.score - a.score)\n .slice(0, maxResults);\n\n const matches = scored.map(({ node: n }) => ({\n actionId: n.type,\n name: n.label,\n description: n.description,\n provider: n.provider?.name,\n params: n.paramFields?.map((f) => ({\n name: f.name,\n label: f.label,\n type: f.type,\n required: f.required,\n })),\n }));\n\n return {\n success: true,\n data: {\n total: matches.length,\n results: matches,\n hint:\n matches.length === 0\n ? `No actions found for \"${query}\". Try broader terms like \"email\", \"api\", \"data\".`\n : undefined,\n },\n };\n } catch (error: unknown) {\n return { success: false, error: `Search failed: ${(error as Error).message}` };\n }\n },\n};\n\n// =====================================\n// list_credentials\n// =====================================\n\nexport const listCredentialsTool: ChatToolDefinition = {\n id: 'list_credentials',\n name: 'List Credentials',\n description:\n 'List all configured credentials (without sensitive data). ' +\n 'Use this to find credential IDs for nodes that need authentication.',\n parameters: z.object({}),\n async execute(_params: unknown, ctx: ChatToolContext): Promise<ChatToolResult> {\n const invect = ctx.invect as Invect;\n\n try {\n const credentials = await invect.listCredentials();\n return {\n success: true,\n data: credentials.map((c) => ({\n id: c.id,\n name: c.name,\n type: c.type,\n authType: c.authType,\n description: c.description,\n })),\n };\n } catch (error: unknown) {\n return { success: false, error: `Failed to list credentials: ${(error as Error).message}` };\n }\n },\n};\n\n// =====================================\n// suggest_credential_setup\n// =====================================\n\nexport const suggestCredentialSetupTool: ChatToolDefinition = {\n id: 'suggest_credential_setup',\n name: 'Suggest Credential Setup',\n description:\n 'Guide the user to set up a credential through the secure credential UI. ' +\n 'NEVER ask users to paste API keys in chat — always use this tool instead.',\n parameters: z.object({\n providerName: z.string().describe('The service name (e.g. \"Gmail\", \"OpenAI\", \"Slack\")'),\n reason: z.string().describe('Why this credential is needed'),\n }),\n async execute(params: unknown, _ctx: ChatToolContext): Promise<ChatToolResult> {\n const { providerName, reason } = params as { providerName: string; reason: string };\n\n return {\n success: true,\n data: {\n message: `To connect ${providerName}: ${reason}`,\n instructions: 'Click the link below to open the credential setup page.',\n },\n uiAction: {\n action: 'open_credential_setup',\n data: { providerName },\n },\n };\n },\n};\n\n// =====================================\n// get_action_details\n// =====================================\n\nexport const getActionDetailsTool: ChatToolDefinition = {\n id: 'get_action_details',\n name: 'Get Action Details',\n description:\n 'Get the full definition of a specific action by its ID. ' +\n 'Returns the complete parameter schema, field definitions, provider info, and description. ' +\n 'Use this when you need to know exactly what parameters a node type expects before adding or configuring it.',\n parameters: z.object({\n actionId: z\n .string()\n .describe('The action ID (e.g. \"core.model\", \"gmail.send_message\", \"http.request\")'),\n }),\n async execute(params: unknown, ctx: ChatToolContext): Promise<ChatToolResult> {\n const { actionId } = params as { actionId: string };\n const invect = ctx.invect as Invect;\n\n try {\n const allNodes = invect.getAvailableNodes();\n const node = allNodes.find((n) => n.type === actionId);\n\n if (!node) {\n // Suggest close matches\n const searchLower = actionId.toLowerCase();\n const similar = allNodes\n .filter((n) => n.type.toLowerCase().includes(searchLower.split('.').pop() ?? ''))\n .slice(0, 5)\n .map((n) => n.type);\n\n return {\n success: false,\n error: `Action \"${actionId}\" not found`,\n suggestion:\n similar.length > 0\n ? `Did you mean one of: ${similar.join(', ')}?`\n : 'Use search_actions to find available actions.',\n };\n }\n\n return {\n success: true,\n data: {\n actionId: node.type,\n name: node.label,\n description: node.description,\n provider: node.provider,\n paramFields: node.paramFields?.map((f) => ({\n name: f.name,\n label: f.label,\n type: f.type,\n required: f.required,\n description: f.description,\n defaultValue: f.defaultValue,\n options: f.options,\n })),\n outputs: node.outputs,\n },\n };\n } catch (error: unknown) {\n return { success: false, error: `Failed to get action details: ${(error as Error).message}` };\n }\n },\n};\n\n// =====================================\n// list_providers\n// =====================================\n\nexport const listProvidersTool: ChatToolDefinition = {\n id: 'list_providers',\n name: 'List Providers',\n description:\n 'List all available integration providers and how many actions each has. ' +\n 'Use this to answer \"what integrations do you support?\" or to discover available services. ' +\n 'Follow up with search_actions to find specific actions within a provider.',\n parameters: z.object({}),\n async execute(_params: unknown, ctx: ChatToolContext): Promise<ChatToolResult> {\n const invect = ctx.invect as Invect;\n\n try {\n const providers = invect.getProviders();\n\n return {\n success: true,\n data: {\n total: providers.length,\n providers: providers.map((p) => {\n const actions = invect.getActionsForProvider(p.id);\n return {\n id: p.id,\n name: p.name,\n description: p.description,\n icon: p.icon,\n actionCount: actions.length,\n actions: actions.map((a) => a.id),\n };\n }),\n },\n };\n } catch (error: unknown) {\n return { success: false, error: `Failed to list providers: ${(error as Error).message}` };\n }\n },\n};\n\n// =====================================\n// Export all context tools\n// =====================================\n\nexport const contextTools: ChatToolDefinition[] = [\n getCurrentFlowContextTool,\n searchActionsTool,\n listCredentialsTool,\n suggestCredentialSetupTool,\n getActionDetailsTool,\n listProvidersTool,\n];\n"],"mappings":";;AA6UA,MAAa,eAAqC;CA9TW;EAC3D,IAAI;EACJ,MAAM;EACN,aACE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AE,SAAS;KAAO,OAAO,6BAA8B,MAAgB;KAAW;;;EAG9F;CAaA"}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
const contextTools = [
|
|
3
|
+
{
|
|
4
|
+
id: "get_current_flow_context",
|
|
5
|
+
name: "Get Current Flow Context",
|
|
6
|
+
description: "Get the full flow definition including all nodes, edges, and their configurations. Use this when you need detailed information about specific nodes or the complete flow structure. Optionally filter to a specific node by ID.",
|
|
7
|
+
parameters: z.object({ nodeId: z.string().optional().describe("Optional: get details for a specific node only") }),
|
|
8
|
+
async execute(params, ctx) {
|
|
9
|
+
const { nodeId } = params;
|
|
10
|
+
const invect = ctx.invect;
|
|
11
|
+
const flowId = ctx.chatContext.flowId;
|
|
12
|
+
if (!flowId) return {
|
|
13
|
+
success: false,
|
|
14
|
+
error: "No flow is currently open"
|
|
15
|
+
};
|
|
16
|
+
try {
|
|
17
|
+
const version = await invect.getFlowVersion(flowId, "latest");
|
|
18
|
+
if (!version) return {
|
|
19
|
+
success: false,
|
|
20
|
+
error: "No flow version found"
|
|
21
|
+
};
|
|
22
|
+
const definition = version.invectDefinition;
|
|
23
|
+
if (nodeId) {
|
|
24
|
+
const node = definition.nodes.find((n) => n.id === nodeId);
|
|
25
|
+
if (!node) return {
|
|
26
|
+
success: false,
|
|
27
|
+
error: `Node "${nodeId}" not found in flow`
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
success: true,
|
|
31
|
+
data: { node }
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
success: true,
|
|
36
|
+
data: {
|
|
37
|
+
nodes: definition.nodes.map((n) => ({
|
|
38
|
+
id: n.id,
|
|
39
|
+
type: n.type,
|
|
40
|
+
label: n.label,
|
|
41
|
+
referenceId: n.referenceId,
|
|
42
|
+
params: n.params
|
|
43
|
+
})),
|
|
44
|
+
edges: definition.edges.map((e) => ({
|
|
45
|
+
id: e.id,
|
|
46
|
+
source: e.source,
|
|
47
|
+
target: e.target,
|
|
48
|
+
sourceHandle: e.sourceHandle,
|
|
49
|
+
targetHandle: e.targetHandle
|
|
50
|
+
}))
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
} catch (error) {
|
|
54
|
+
return {
|
|
55
|
+
success: false,
|
|
56
|
+
error: `Failed to get flow context: ${error.message}`
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: "search_actions",
|
|
63
|
+
name: "Search Actions",
|
|
64
|
+
description: "Search for available node types (actions) that can be added to a flow. Search by keyword to find integrations like Gmail, Slack, HTTP, etc. Returns action IDs, names, descriptions, and parameter schemas.",
|
|
65
|
+
parameters: z.object({
|
|
66
|
+
query: z.string().describe("Search keyword (e.g. \"gmail\", \"http\", \"slack\", \"jq\", \"model\")"),
|
|
67
|
+
limit: z.number().optional().default(10).describe("Max results to return (default 10)")
|
|
68
|
+
}),
|
|
69
|
+
async execute(params, ctx) {
|
|
70
|
+
const { query, limit } = params;
|
|
71
|
+
const invect = ctx.invect;
|
|
72
|
+
try {
|
|
73
|
+
const allNodes = invect.getAvailableNodes();
|
|
74
|
+
const terms = query.toLowerCase().split(/\s+/).filter(Boolean);
|
|
75
|
+
const maxResults = limit ?? 10;
|
|
76
|
+
const matches = allNodes.map((n) => {
|
|
77
|
+
const typeLower = n.type.toLowerCase();
|
|
78
|
+
const labelLower = n.label.toLowerCase();
|
|
79
|
+
const providerLower = (n.provider?.name ?? "").toLowerCase();
|
|
80
|
+
const descLower = (n.description ?? "").toLowerCase();
|
|
81
|
+
const tagsLower = (n.searchTerms ?? []).join(" ").toLowerCase();
|
|
82
|
+
let score = 0;
|
|
83
|
+
for (const term of terms) if (typeLower.includes(term) || labelLower.includes(term) || providerLower.includes(term)) score += 2;
|
|
84
|
+
else if (descLower.includes(term) || tagsLower.includes(term)) score += 1;
|
|
85
|
+
return {
|
|
86
|
+
node: n,
|
|
87
|
+
score
|
|
88
|
+
};
|
|
89
|
+
}).filter((s) => s.score > 0).sort((a, b) => b.score - a.score).slice(0, maxResults).map(({ node: n }) => ({
|
|
90
|
+
actionId: n.type,
|
|
91
|
+
name: n.label,
|
|
92
|
+
description: n.description,
|
|
93
|
+
provider: n.provider?.name,
|
|
94
|
+
params: n.paramFields?.map((f) => ({
|
|
95
|
+
name: f.name,
|
|
96
|
+
label: f.label,
|
|
97
|
+
type: f.type,
|
|
98
|
+
required: f.required
|
|
99
|
+
}))
|
|
100
|
+
}));
|
|
101
|
+
return {
|
|
102
|
+
success: true,
|
|
103
|
+
data: {
|
|
104
|
+
total: matches.length,
|
|
105
|
+
results: matches,
|
|
106
|
+
hint: matches.length === 0 ? `No actions found for "${query}". Try broader terms like "email", "api", "data".` : void 0
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
} catch (error) {
|
|
110
|
+
return {
|
|
111
|
+
success: false,
|
|
112
|
+
error: `Search failed: ${error.message}`
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: "list_credentials",
|
|
119
|
+
name: "List Credentials",
|
|
120
|
+
description: "List all configured credentials (without sensitive data). Use this to find credential IDs for nodes that need authentication.",
|
|
121
|
+
parameters: z.object({}),
|
|
122
|
+
async execute(_params, ctx) {
|
|
123
|
+
const invect = ctx.invect;
|
|
124
|
+
try {
|
|
125
|
+
return {
|
|
126
|
+
success: true,
|
|
127
|
+
data: (await invect.listCredentials()).map((c) => ({
|
|
128
|
+
id: c.id,
|
|
129
|
+
name: c.name,
|
|
130
|
+
type: c.type,
|
|
131
|
+
authType: c.authType,
|
|
132
|
+
description: c.description
|
|
133
|
+
}))
|
|
134
|
+
};
|
|
135
|
+
} catch (error) {
|
|
136
|
+
return {
|
|
137
|
+
success: false,
|
|
138
|
+
error: `Failed to list credentials: ${error.message}`
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: "suggest_credential_setup",
|
|
145
|
+
name: "Suggest Credential Setup",
|
|
146
|
+
description: "Guide the user to set up a credential through the secure credential UI. NEVER ask users to paste API keys in chat — always use this tool instead.",
|
|
147
|
+
parameters: z.object({
|
|
148
|
+
providerName: z.string().describe("The service name (e.g. \"Gmail\", \"OpenAI\", \"Slack\")"),
|
|
149
|
+
reason: z.string().describe("Why this credential is needed")
|
|
150
|
+
}),
|
|
151
|
+
async execute(params, _ctx) {
|
|
152
|
+
const { providerName, reason } = params;
|
|
153
|
+
return {
|
|
154
|
+
success: true,
|
|
155
|
+
data: {
|
|
156
|
+
message: `To connect ${providerName}: ${reason}`,
|
|
157
|
+
instructions: "Click the link below to open the credential setup page."
|
|
158
|
+
},
|
|
159
|
+
uiAction: {
|
|
160
|
+
action: "open_credential_setup",
|
|
161
|
+
data: { providerName }
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
id: "get_action_details",
|
|
168
|
+
name: "Get Action Details",
|
|
169
|
+
description: "Get the full definition of a specific action by its ID. Returns the complete parameter schema, field definitions, provider info, and description. Use this when you need to know exactly what parameters a node type expects before adding or configuring it.",
|
|
170
|
+
parameters: z.object({ actionId: z.string().describe("The action ID (e.g. \"core.model\", \"gmail.send_message\", \"http.request\")") }),
|
|
171
|
+
async execute(params, ctx) {
|
|
172
|
+
const { actionId } = params;
|
|
173
|
+
const invect = ctx.invect;
|
|
174
|
+
try {
|
|
175
|
+
const allNodes = invect.getAvailableNodes();
|
|
176
|
+
const node = allNodes.find((n) => n.type === actionId);
|
|
177
|
+
if (!node) {
|
|
178
|
+
const searchLower = actionId.toLowerCase();
|
|
179
|
+
const similar = allNodes.filter((n) => n.type.toLowerCase().includes(searchLower.split(".").pop() ?? "")).slice(0, 5).map((n) => n.type);
|
|
180
|
+
return {
|
|
181
|
+
success: false,
|
|
182
|
+
error: `Action "${actionId}" not found`,
|
|
183
|
+
suggestion: similar.length > 0 ? `Did you mean one of: ${similar.join(", ")}?` : "Use search_actions to find available actions."
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
return {
|
|
187
|
+
success: true,
|
|
188
|
+
data: {
|
|
189
|
+
actionId: node.type,
|
|
190
|
+
name: node.label,
|
|
191
|
+
description: node.description,
|
|
192
|
+
provider: node.provider,
|
|
193
|
+
paramFields: node.paramFields?.map((f) => ({
|
|
194
|
+
name: f.name,
|
|
195
|
+
label: f.label,
|
|
196
|
+
type: f.type,
|
|
197
|
+
required: f.required,
|
|
198
|
+
description: f.description,
|
|
199
|
+
defaultValue: f.defaultValue,
|
|
200
|
+
options: f.options
|
|
201
|
+
})),
|
|
202
|
+
outputs: node.outputs
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
} catch (error) {
|
|
206
|
+
return {
|
|
207
|
+
success: false,
|
|
208
|
+
error: `Failed to get action details: ${error.message}`
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
id: "list_providers",
|
|
215
|
+
name: "List Providers",
|
|
216
|
+
description: "List all available integration providers and how many actions each has. Use this to answer \"what integrations do you support?\" or to discover available services. Follow up with search_actions to find specific actions within a provider.",
|
|
217
|
+
parameters: z.object({}),
|
|
218
|
+
async execute(_params, ctx) {
|
|
219
|
+
const invect = ctx.invect;
|
|
220
|
+
try {
|
|
221
|
+
const providers = invect.getProviders();
|
|
222
|
+
return {
|
|
223
|
+
success: true,
|
|
224
|
+
data: {
|
|
225
|
+
total: providers.length,
|
|
226
|
+
providers: providers.map((p) => {
|
|
227
|
+
const actions = invect.getActionsForProvider(p.id);
|
|
228
|
+
return {
|
|
229
|
+
id: p.id,
|
|
230
|
+
name: p.name,
|
|
231
|
+
description: p.description,
|
|
232
|
+
icon: p.icon,
|
|
233
|
+
actionCount: actions.length,
|
|
234
|
+
actions: actions.map((a) => a.id)
|
|
235
|
+
};
|
|
236
|
+
})
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
} catch (error) {
|
|
240
|
+
return {
|
|
241
|
+
success: false,
|
|
242
|
+
error: `Failed to list providers: ${error.message}`
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
];
|
|
248
|
+
//#endregion
|
|
249
|
+
export { contextTools };
|
|
250
|
+
|
|
251
|
+
//# sourceMappingURL=context-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-tools.js","names":[],"sources":["../../../../src/services/chat/tools/context-tools.ts"],"sourcesContent":["/**\n * Chat Tools — Flow Context & Search\n *\n * Tools for reading flow state and searching available actions.\n * These are read-only tools that help the LLM understand the current context.\n */\n\nimport { z } from 'zod/v4';\nimport type { ChatToolDefinition, ChatToolContext, ChatToolResult } from '../chat-types';\nimport type { Invect } from 'src/invect-core';\n\n// =====================================\n// get_current_flow_context\n// =====================================\n\nexport const getCurrentFlowContextTool: ChatToolDefinition = {\n id: 'get_current_flow_context',\n name: 'Get Current Flow Context',\n description:\n 'Get the full flow definition including all nodes, edges, and their configurations. ' +\n 'Use this when you need detailed information about specific nodes or the complete flow structure. ' +\n 'Optionally filter to a specific node by ID.',\n parameters: z.object({\n nodeId: z.string().optional().describe('Optional: get details for a specific node only'),\n }),\n async execute(params: unknown, ctx: ChatToolContext): Promise<ChatToolResult> {\n const { nodeId } = params as { nodeId?: string };\n const invect = ctx.invect as Invect;\n const flowId = ctx.chatContext.flowId;\n\n if (!flowId) {\n return { success: false, error: 'No flow is currently open' };\n }\n\n try {\n const version = await invect.getFlowVersion(flowId, 'latest');\n if (!version) {\n return { success: false, error: 'No flow version found' };\n }\n\n const definition = version.invectDefinition;\n\n if (nodeId) {\n const node = definition.nodes.find((n) => n.id === nodeId);\n if (!node) {\n return { success: false, error: `Node \"${nodeId}\" not found in flow` };\n }\n return { success: true, data: { node } };\n }\n\n return {\n success: true,\n data: {\n nodes: definition.nodes.map((n) => ({\n id: n.id,\n type: n.type,\n label: n.label,\n referenceId: n.referenceId,\n params: n.params,\n })),\n edges: definition.edges.map((e) => ({\n id: e.id,\n source: e.source,\n target: e.target,\n sourceHandle: e.sourceHandle,\n targetHandle: e.targetHandle,\n })),\n },\n };\n } catch (error: unknown) {\n return { success: false, error: `Failed to get flow context: ${(error as Error).message}` };\n }\n },\n};\n\n// =====================================\n// search_actions\n// =====================================\n\nexport const searchActionsTool: ChatToolDefinition = {\n id: 'search_actions',\n name: 'Search Actions',\n description:\n 'Search for available node types (actions) that can be added to a flow. ' +\n 'Search by keyword to find integrations like Gmail, Slack, HTTP, etc. ' +\n 'Returns action IDs, names, descriptions, and parameter schemas.',\n parameters: z.object({\n query: z.string().describe('Search keyword (e.g. \"gmail\", \"http\", \"slack\", \"jq\", \"model\")'),\n limit: z.number().optional().default(10).describe('Max results to return (default 10)'),\n }),\n async execute(params: unknown, ctx: ChatToolContext): Promise<ChatToolResult> {\n const { query, limit } = params as { query: string; limit?: number };\n const invect = ctx.invect as Invect;\n\n try {\n // Use getAvailableNodes() which returns NodeDefinition[] from both actions and legacy executors\n const allNodes = invect.getAvailableNodes();\n // Split query into individual terms for relevance scoring\n const terms = query.toLowerCase().split(/\\s+/).filter(Boolean);\n const maxResults = limit ?? 10;\n\n // Score each node: +2 for type/label/provider match, +1 for description/tag match\n const scored = allNodes\n .map((n) => {\n const typeLower = n.type.toLowerCase();\n const labelLower = n.label.toLowerCase();\n const providerLower = (n.provider?.name ?? '').toLowerCase();\n const descLower = (n.description ?? '').toLowerCase();\n const tagsLower = (n.searchTerms ?? []).join(' ').toLowerCase();\n\n let score = 0;\n for (const term of terms) {\n if (\n typeLower.includes(term) ||\n labelLower.includes(term) ||\n providerLower.includes(term)\n ) {\n score += 2; // Strong match: type, name, or provider\n } else if (descLower.includes(term) || tagsLower.includes(term)) {\n score += 1; // Weaker match: description or tags\n }\n }\n return { node: n, score };\n })\n .filter((s) => s.score > 0)\n .sort((a, b) => b.score - a.score)\n .slice(0, maxResults);\n\n const matches = scored.map(({ node: n }) => ({\n actionId: n.type,\n name: n.label,\n description: n.description,\n provider: n.provider?.name,\n params: n.paramFields?.map((f) => ({\n name: f.name,\n label: f.label,\n type: f.type,\n required: f.required,\n })),\n }));\n\n return {\n success: true,\n data: {\n total: matches.length,\n results: matches,\n hint:\n matches.length === 0\n ? `No actions found for \"${query}\". Try broader terms like \"email\", \"api\", \"data\".`\n : undefined,\n },\n };\n } catch (error: unknown) {\n return { success: false, error: `Search failed: ${(error as Error).message}` };\n }\n },\n};\n\n// =====================================\n// list_credentials\n// =====================================\n\nexport const listCredentialsTool: ChatToolDefinition = {\n id: 'list_credentials',\n name: 'List Credentials',\n description:\n 'List all configured credentials (without sensitive data). ' +\n 'Use this to find credential IDs for nodes that need authentication.',\n parameters: z.object({}),\n async execute(_params: unknown, ctx: ChatToolContext): Promise<ChatToolResult> {\n const invect = ctx.invect as Invect;\n\n try {\n const credentials = await invect.listCredentials();\n return {\n success: true,\n data: credentials.map((c) => ({\n id: c.id,\n name: c.name,\n type: c.type,\n authType: c.authType,\n description: c.description,\n })),\n };\n } catch (error: unknown) {\n return { success: false, error: `Failed to list credentials: ${(error as Error).message}` };\n }\n },\n};\n\n// =====================================\n// suggest_credential_setup\n// =====================================\n\nexport const suggestCredentialSetupTool: ChatToolDefinition = {\n id: 'suggest_credential_setup',\n name: 'Suggest Credential Setup',\n description:\n 'Guide the user to set up a credential through the secure credential UI. ' +\n 'NEVER ask users to paste API keys in chat — always use this tool instead.',\n parameters: z.object({\n providerName: z.string().describe('The service name (e.g. \"Gmail\", \"OpenAI\", \"Slack\")'),\n reason: z.string().describe('Why this credential is needed'),\n }),\n async execute(params: unknown, _ctx: ChatToolContext): Promise<ChatToolResult> {\n const { providerName, reason } = params as { providerName: string; reason: string };\n\n return {\n success: true,\n data: {\n message: `To connect ${providerName}: ${reason}`,\n instructions: 'Click the link below to open the credential setup page.',\n },\n uiAction: {\n action: 'open_credential_setup',\n data: { providerName },\n },\n };\n },\n};\n\n// =====================================\n// get_action_details\n// =====================================\n\nexport const getActionDetailsTool: ChatToolDefinition = {\n id: 'get_action_details',\n name: 'Get Action Details',\n description:\n 'Get the full definition of a specific action by its ID. ' +\n 'Returns the complete parameter schema, field definitions, provider info, and description. ' +\n 'Use this when you need to know exactly what parameters a node type expects before adding or configuring it.',\n parameters: z.object({\n actionId: z\n .string()\n .describe('The action ID (e.g. \"core.model\", \"gmail.send_message\", \"http.request\")'),\n }),\n async execute(params: unknown, ctx: ChatToolContext): Promise<ChatToolResult> {\n const { actionId } = params as { actionId: string };\n const invect = ctx.invect as Invect;\n\n try {\n const allNodes = invect.getAvailableNodes();\n const node = allNodes.find((n) => n.type === actionId);\n\n if (!node) {\n // Suggest close matches\n const searchLower = actionId.toLowerCase();\n const similar = allNodes\n .filter((n) => n.type.toLowerCase().includes(searchLower.split('.').pop() ?? ''))\n .slice(0, 5)\n .map((n) => n.type);\n\n return {\n success: false,\n error: `Action \"${actionId}\" not found`,\n suggestion:\n similar.length > 0\n ? `Did you mean one of: ${similar.join(', ')}?`\n : 'Use search_actions to find available actions.',\n };\n }\n\n return {\n success: true,\n data: {\n actionId: node.type,\n name: node.label,\n description: node.description,\n provider: node.provider,\n paramFields: node.paramFields?.map((f) => ({\n name: f.name,\n label: f.label,\n type: f.type,\n required: f.required,\n description: f.description,\n defaultValue: f.defaultValue,\n options: f.options,\n })),\n outputs: node.outputs,\n },\n };\n } catch (error: unknown) {\n return { success: false, error: `Failed to get action details: ${(error as Error).message}` };\n }\n },\n};\n\n// =====================================\n// list_providers\n// =====================================\n\nexport const listProvidersTool: ChatToolDefinition = {\n id: 'list_providers',\n name: 'List Providers',\n description:\n 'List all available integration providers and how many actions each has. ' +\n 'Use this to answer \"what integrations do you support?\" or to discover available services. ' +\n 'Follow up with search_actions to find specific actions within a provider.',\n parameters: z.object({}),\n async execute(_params: unknown, ctx: ChatToolContext): Promise<ChatToolResult> {\n const invect = ctx.invect as Invect;\n\n try {\n const providers = invect.getProviders();\n\n return {\n success: true,\n data: {\n total: providers.length,\n providers: providers.map((p) => {\n const actions = invect.getActionsForProvider(p.id);\n return {\n id: p.id,\n name: p.name,\n description: p.description,\n icon: p.icon,\n actionCount: actions.length,\n actions: actions.map((a) => a.id),\n };\n }),\n },\n };\n } catch (error: unknown) {\n return { success: false, error: `Failed to list providers: ${(error as Error).message}` };\n }\n },\n};\n\n// =====================================\n// Export all context tools\n// =====================================\n\nexport const contextTools: ChatToolDefinition[] = [\n getCurrentFlowContextTool,\n searchActionsTool,\n listCredentialsTool,\n suggestCredentialSetupTool,\n getActionDetailsTool,\n listProvidersTool,\n];\n"],"mappings":";AA6UA,MAAa,eAAqC;CA9TW;EAC3D,IAAI;EACJ,MAAM;EACN,aACE;EAGF,YAAY,EAAE,OAAO,EACnB,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,SAAS,iDAAiD,EACzF,CAAC;EACF,MAAM,QAAQ,QAAiB,KAA+C;GAC5E,MAAM,EAAE,WAAW;GACnB,MAAM,SAAS,IAAI;GACnB,MAAM,SAAS,IAAI,YAAY;AAE/B,OAAI,CAAC,OACH,QAAO;IAAE,SAAS;IAAO,OAAO;IAA6B;AAG/D,OAAI;IACF,MAAM,UAAU,MAAM,OAAO,eAAe,QAAQ,SAAS;AAC7D,QAAI,CAAC,QACH,QAAO;KAAE,SAAS;KAAO,OAAO;KAAyB;IAG3D,MAAM,aAAa,QAAQ;AAE3B,QAAI,QAAQ;KACV,MAAM,OAAO,WAAW,MAAM,MAAM,MAAM,EAAE,OAAO,OAAO;AAC1D,SAAI,CAAC,KACH,QAAO;MAAE,SAAS;MAAO,OAAO,SAAS,OAAO;MAAsB;AAExE,YAAO;MAAE,SAAS;MAAM,MAAM,EAAE,MAAM;MAAE;;AAG1C,WAAO;KACL,SAAS;KACT,MAAM;MACJ,OAAO,WAAW,MAAM,KAAK,OAAO;OAClC,IAAI,EAAE;OACN,MAAM,EAAE;OACR,OA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