-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ADO-2659-context-to-support-chat
* master: feat(editor): Overhaul document title management (#10999) refactor(core): Organize all event maps (#10997) fix(AI Agent Node): Fix output parsing and empty tool input handling in AI Agent node (#10970)
- Loading branch information
Showing
51 changed files
with
381 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
import type { WorkerStatus, PushType } from '@n8n/api-types'; | ||
|
||
import type { IWorkflowDb } from '@/interfaces'; | ||
|
||
export type PubSubEventMap = PubSubCommandMap & PubSubWorkerResponseMap; | ||
|
||
export type PubSubCommandMap = { | ||
// #region Lifecycle | ||
|
||
'reload-license': never; | ||
|
||
'restart-event-bus': never; | ||
|
||
'reload-external-secrets-providers': never; | ||
|
||
// #endregion | ||
|
||
// #region Community packages | ||
|
||
'community-package-install': { | ||
packageName: string; | ||
packageVersion: string; | ||
}; | ||
|
||
'community-package-update': { | ||
packageName: string; | ||
packageVersion: string; | ||
}; | ||
|
||
'community-package-uninstall': { | ||
packageName: string; | ||
}; | ||
|
||
// #endregion | ||
|
||
// #region Worker view | ||
|
||
'get-worker-id': never; | ||
|
||
'get-worker-status': never; | ||
|
||
// #endregion | ||
|
||
// #region Multi-main setup | ||
|
||
'add-webhooks-triggers-and-pollers': { | ||
workflowId: string; | ||
}; | ||
|
||
'remove-triggers-and-pollers': { | ||
workflowId: string; | ||
}; | ||
|
||
'display-workflow-activation': { | ||
workflowId: string; | ||
}; | ||
|
||
'display-workflow-deactivation': { | ||
workflowId: string; | ||
}; | ||
|
||
'display-workflow-activation-error': { | ||
workflowId: string; | ||
errorMessage: string; | ||
}; | ||
|
||
'relay-execution-lifecycle-event': { | ||
type: PushType; | ||
args: Record<string, unknown>; | ||
pushRef: string; | ||
}; | ||
|
||
'clear-test-webhooks': { | ||
webhookKey: string; | ||
workflowEntity: IWorkflowDb; | ||
pushRef: string; | ||
}; | ||
|
||
// #endregion | ||
}; | ||
|
||
export type PubSubWorkerResponseMap = { | ||
// #region Lifecycle | ||
|
||
'restart-event-bus': { | ||
result: 'success' | 'error'; | ||
error?: string; | ||
}; | ||
|
||
'reload-external-secrets-providers': { | ||
result: 'success' | 'error'; | ||
error?: string; | ||
}; | ||
|
||
// #endregion | ||
|
||
// #region Worker view | ||
|
||
'get-worker-id': never; | ||
|
||
'get-worker-status': WorkerStatus; | ||
|
||
// #endregion | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
packages/cli/src/events/event-relay.ts → ...ages/cli/src/events/relays/event-relay.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.