-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 ai-assistant-node-data-improvements
* master: refactor(core): Set up worker server (#10814) fix(Google Vertex Chat Model Node): Clean service account private key (#10770) test(core): Mock filesystem in tests (#10823) test(core): Fix license mock in worker test (#10824) ci: Ignore certain paths for e2e tests for PRs (no-changelog) (#10533) fix(editor): Render image binary-data using img tags (#10829) refactor(core): Move `instanceType` to `InstanceSettings` (no-changelog) (#10640) ci(benchmark): Always perform az login before teardown (#10827) fix: Prevent copying workflow when copying outside of canvas (#10813) fix: Fix telemetry causing console error (#10828) refactor: Remove unused disable directives from `nodes-base` (#10825) refactor(core): Remove unused disable directives from backend packages (#10826) chore: Upgrade to TypeScript 5.6 (#10822) fix(editor): Prevent clipboard XSS injection (#10805) refactor(core): Simplify createDeferredPromise, and add tests (no-changelog) (#10811) fix(HTTP Request Tool Node): Fix subsequent tool calls reusung the same options (#10808) fix(editor): Make expression edit modal read-only in executions view (#10806) refactor(core): Move push message types to a new shared package (no-changelog) (#10742) fix(editor): Make schema view search copy more clear (#10807)
- Loading branch information
Showing
150 changed files
with
2,089 additions
and
1,454 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"sessionId": "f1d19ed5-0d55-4bad-b49a-f0c56bd6f76f-705b5dbf-12d4-4805-87a3-1e5b3c716d29-W1JgVNrpfitpSNF9rAjB4", | ||
"messages": [ | ||
{ | ||
"role": "assistant", | ||
"type": "message", | ||
"text": "To use expressions in n8n, follow these steps:\n\n1. Hover over the parameter where you want to use an expression.\n2. Select **Expressions** in the **Fixed/Expression** toggle.\n3. Write your expression in the parameter, or select **Open expression editor** to open the expressions editor. You can browse the available data in the **Variable selector**. All expressions have the format `{{ your expression here }}`.\n\n### Example: Get data from webhook body\n\nIf your webhook data looks like this:\n\n```json\n[\n {\n \"headers\": {\n \"host\": \"n8n.instance.address\",\n ...\n },\n \"params\": {},\n \"query\": {},\n \"body\": {\n \"name\": \"Jim\",\n \"age\": 30,\n \"city\": \"New York\"\n }\n }\n]\n```\n\nYou can use the following expression to get the value of `city`:\n\n```js\n{{$json.body.city}}\n```\n\nThis expression accesses the incoming JSON-formatted data using n8n's custom `$json` variable and finds the value of `city` (in this example, \"New York\").", | ||
"codeSnippet": "{{$json.body.city}}" | ||
}, | ||
{ | ||
"role": "assistant", | ||
"type": "message", | ||
"text": "Did this answer solve your question?", | ||
"quickReplies": [ | ||
{ | ||
"text": "Yes, thanks", | ||
"type": "all-good", | ||
"isFeedback": true | ||
}, | ||
{ | ||
"text": "No, I am still stuck", | ||
"type": "still-stuck", | ||
"isFeedback": true | ||
} | ||
] | ||
} | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const sharedOptions = require('@n8n_io/eslint-config/shared'); | ||
|
||
/** @type {import('@types/eslint').ESLint.ConfigData} */ | ||
module.exports = { | ||
extends: ['@n8n_io/eslint-config/base'], | ||
...sharedOptions(__dirname), | ||
}; |
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,3 @@ | ||
## @n8n/api-types | ||
|
||
This package contains types and schema definitions for the n8n internal API, so that these can be shared between the backend and the frontend code. |
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,2 @@ | ||
/** @type {import('jest').Config} */ | ||
module.exports = require('../../../jest.config'); |
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,24 @@ | ||
{ | ||
"name": "@n8n/api-types", | ||
"version": "0.1.0", | ||
"scripts": { | ||
"clean": "rimraf dist .turbo", | ||
"dev": "pnpm watch", | ||
"typecheck": "tsc --noEmit", | ||
"build": "tsc -p tsconfig.build.json", | ||
"format": "prettier --write . --ignore-path ../../../.prettierignore", | ||
"lint": "eslint .", | ||
"lintfix": "eslint . --fix", | ||
"watch": "tsc -p tsconfig.build.json --watch", | ||
"test": "echo \"No tests yet\" && exit 0" | ||
}, | ||
"main": "dist/index.js", | ||
"module": "src/index.ts", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist/**/*" | ||
], | ||
"devDependencies": { | ||
"n8n-workflow": "workspace:*" | ||
} | ||
} |
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,2 @@ | ||
/** Date time in the ISO 8601 format, e.g. 2024-10-31T00:00:00.123Z */ | ||
export type Iso8601DateTimeString = string; |
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,7 @@ | ||
export type * from './push'; | ||
export type * from './scaling'; | ||
export type * from './datetime'; | ||
export type * from './user'; | ||
|
||
export type { Collaborator } from './push/collaboration'; | ||
export type { SendWorkerStatusMessage } from './push/worker'; |
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,17 @@ | ||
import type { Iso8601DateTimeString } from '../datetime'; | ||
import type { MinimalUser } from '../user'; | ||
|
||
export type Collaborator = { | ||
user: MinimalUser; | ||
lastSeen: Iso8601DateTimeString; | ||
}; | ||
|
||
type CollaboratorsChanged = { | ||
type: 'collaboratorsChanged'; | ||
data: { | ||
workflowId: string; | ||
collaborators: Collaborator[]; | ||
}; | ||
}; | ||
|
||
export type CollaborationPushMessage = CollaboratorsChanged; |
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,9 @@ | ||
type SendConsoleMessage = { | ||
type: 'sendConsoleMessage'; | ||
data: { | ||
source: string; | ||
messages: unknown[]; | ||
}; | ||
}; | ||
|
||
export type DebugPushMessage = SendConsoleMessage; |
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,53 @@ | ||
import type { IRun, ITaskData, WorkflowExecuteMode } from 'n8n-workflow'; | ||
|
||
type ExecutionStarted = { | ||
type: 'executionStarted'; | ||
data: { | ||
executionId: string; | ||
mode: WorkflowExecuteMode; | ||
startedAt: Date; | ||
workflowId: string; | ||
workflowName?: string; | ||
retryOf?: string; | ||
}; | ||
}; | ||
|
||
type ExecutionFinished = { | ||
type: 'executionFinished'; | ||
data: { | ||
executionId: string; | ||
data: IRun; | ||
retryOf?: string; | ||
}; | ||
}; | ||
|
||
type ExecutionRecovered = { | ||
type: 'executionRecovered'; | ||
data: { | ||
executionId: string; | ||
}; | ||
}; | ||
|
||
type NodeExecuteBefore = { | ||
type: 'nodeExecuteBefore'; | ||
data: { | ||
executionId: string; | ||
nodeName: string; | ||
}; | ||
}; | ||
|
||
type NodeExecuteAfter = { | ||
type: 'nodeExecuteAfter'; | ||
data: { | ||
executionId: string; | ||
nodeName: string; | ||
data: ITaskData; | ||
}; | ||
}; | ||
|
||
export type ExecutionPushMessage = | ||
| ExecutionStarted | ||
| ExecutionFinished | ||
| ExecutionRecovered | ||
| NodeExecuteBefore | ||
| NodeExecuteAfter; |
Oops, something went wrong.