Say what caused a value, and draw what is not a node
Moving a dashboard slider lit up an edge between two nodes that had done nothing. The canvas pulsed on the message's timestamp alone, and a message has no idea who published it — so it credited whichever node happened to be drawn as a producer. That was never only about dashboards. Two nodes producing one message pulsed both their edges whichever fired, and a message produced in another flow changed with nothing on screen to account for it at all. Values now carry their cause: a node, a dashboard widget, another flow, an agent or an API caller. An edge pulses only for the producer that actually published, and the edge inspector says where a value came from when it did not come from a node. What is not a node in this flow is now drawn as one — a label rather than a card, because a dashboard with twenty tiles would otherwise bury the logic the canvas exists to show. That covers cross-flow wiring too, which is the link in/out affordance that has been missing. They are never part of the document. They join at render, after everything that reads or writes the canvas nodes, so an autosave, an undo or a delete cannot reach them — with a Playwright test that drags a node and asserts the stored flow still holds exactly what it did. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011LF61rxW1FG5YCD2J9YqjY
This commit is contained in:
@@ -307,6 +307,53 @@ export const DashboardsPublicSchema = {
|
||||
title: 'DashboardsPublic'
|
||||
} as const;
|
||||
|
||||
export const EndpointSchema = {
|
||||
properties: {
|
||||
kind: {
|
||||
type: 'string',
|
||||
title: 'Kind'
|
||||
},
|
||||
id: {
|
||||
type: 'string',
|
||||
title: 'Id'
|
||||
},
|
||||
label: {
|
||||
type: 'string',
|
||||
title: 'Label'
|
||||
},
|
||||
detail: {
|
||||
type: 'string',
|
||||
title: 'Detail',
|
||||
default: ''
|
||||
},
|
||||
provides: {
|
||||
items: {
|
||||
type: 'string'
|
||||
},
|
||||
type: 'array',
|
||||
title: 'Provides',
|
||||
default: []
|
||||
},
|
||||
requires: {
|
||||
items: {
|
||||
type: 'string'
|
||||
},
|
||||
type: 'array',
|
||||
title: 'Requires',
|
||||
default: []
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
required: ['kind', 'id', 'label'],
|
||||
title: 'Endpoint',
|
||||
description: `Something wired into this flow that is not a node in it.
|
||||
|
||||
A dashboard control setting one of its messages, a tile showing one, or a
|
||||
node in another flow on the far side of a dotted name. The canvas draws
|
||||
these so a value never appears to come from nowhere — or worse, appears to
|
||||
come from whichever node happens to be drawn as a producer.`
|
||||
} as const;
|
||||
|
||||
export const FlowDef_InputSchema = {
|
||||
properties: {
|
||||
name: {
|
||||
@@ -416,6 +463,14 @@ export const FlowDetailSchema = {
|
||||
type: 'boolean',
|
||||
title: 'Paused',
|
||||
default: false
|
||||
},
|
||||
endpoints: {
|
||||
items: {
|
||||
'$ref': '#/components/schemas/Endpoint'
|
||||
},
|
||||
type: 'array',
|
||||
title: 'Endpoints',
|
||||
default: []
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
@@ -1950,6 +2005,26 @@ export const app__api__routes__messages__PublishRequestSchema = {
|
||||
properties: {
|
||||
value: {
|
||||
title: 'Value'
|
||||
},
|
||||
source_kind: {
|
||||
type: 'string',
|
||||
title: 'Source Kind',
|
||||
default: 'api'
|
||||
},
|
||||
source_id: {
|
||||
type: 'string',
|
||||
title: 'Source Id',
|
||||
default: ''
|
||||
},
|
||||
source_label: {
|
||||
type: 'string',
|
||||
title: 'Source Label',
|
||||
default: ''
|
||||
},
|
||||
source_detail: {
|
||||
type: 'string',
|
||||
title: 'Source Detail',
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
type: 'object',
|
||||
|
||||
Reference in New Issue
Block a user