Header of process and node ports follow each other both ways: a panel edit rewrites only the def line of edited code, a code save reads the header back into input ports and settings (draft and response); Space types in the node editor again

This commit is contained in:
2026-10-15 18:19:19 +02:00
parent 87ee7e3429
commit abfb03c441
15 changed files with 645 additions and 48 deletions
+86
View File
@@ -2543,6 +2543,92 @@ export const NodeSourceSchema = {
description: 'The Python source of a node.'
} as const;
export const NodeSourceSavedSchema = {
properties: {
id: {
type: 'string',
title: 'Id'
},
status: {
type: 'string',
title: 'Status',
default: 'active'
},
error: {
anyOf: [
{
type: 'string'
},
{
type: 'null'
}
],
title: 'Error'
},
health: {
type: 'string',
enum: ['ok', 'degraded', 'down'],
title: 'Health',
default: 'ok'
},
health_detail: {
anyOf: [
{
type: 'string'
},
{
type: 'null'
}
],
title: 'Health Detail'
},
last_error: {
type: 'string',
title: 'Last Error',
default: ''
},
last_error_ts: {
anyOf: [
{
type: 'number'
},
{
type: 'null'
}
],
title: 'Last Error Ts'
},
node: {
anyOf: [
{
'$ref': '#/components/schemas/NodeDef-Output'
},
{
type: 'null'
}
]
},
version: {
anyOf: [
{
type: 'integer'
},
{
type: 'null'
}
],
title: 'Version'
}
},
type: 'object',
required: ['id'],
title: 'NodeSourceSaved',
description: `Whether saved code loads, and what its header changed.
\`node\` is set when the parameters of \`\`process\`\` added, dropped or renamed
an input port or setting. The draft moved on to \`version\` with it.`
} as const;
export const NodeStatusPublicSchema = {
properties: {
id: {