-
Notifications
You must be signed in to change notification settings - Fork 63
feat(sdk) Variable enhancement #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
szymon-t-sc
wants to merge
28
commits into
main
Choose a base branch
from
feat/WB-139-variables
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
b21ea0f
feat(sdk): variables by type and handle update with fixed imports
szymon-t-sc 00cf36a
chore(sdk): better typing for getVariableReferences
szymon-t-sc 53acf52
chore(sdk): naming, linting, restoring css variables
szymon-t-sc 3226034
feat(sdk): better variable logic by sourceHandle
szymon-t-sc 7ba3900
chore(sdk): branch sync
szymon-t-sc f716ffa
test(sdk): mock updated
szymon-t-sc 06c9a90
fix(sdk): refreshing variables on init & controls after edge creation
szymon-t-sc 11eb69e
fix(sdk): dark-mode in variable preview
szymon-t-sc f3585f6
feat(sdk): output depending on value
szymon-t-sc efcee63
chore(sdk): better type for Timestamp
szymon-t-sc 8024a46
feat(sdk): dynamic select
szymon-t-sc 9f22a8c
feat(sdk): exposing variables api
szymon-t-sc fc6c3df
fix(sdk): setDiagramModel refreshes variable suggestions B1
szymon-t-sc eac7baf
feat(sdk): variables using JSONSchema7
szymon-t-sc 481db80
feat(sdk): generating suggestions from JsonSchema7
szymon-t-sc 4d5c51e
feat(sdk): better from builder variant
szymon-t-sc 6e30e06
chore(sdk): ouput variables in additional files
szymon-t-sc 9e0e941
chore(sdk): support for deprecated
szymon-t-sc bb6316b
chore(sdk): less exports
szymon-t-sc 8e8cb99
fix(sdk): wrong match onBlur in text-variable
szymon-t-sc 3e2efe8
docs(sdk): chagngset added
szymon-t-sc 4a630c5
docs(sdk): use-variable-picker dock updated
szymon-t-sc 0f4cbea
fix(sdk): correct node label for common suggestions
szymon-t-sc b92bf14
docs(sdk): migration startegy for deprecated
szymon-t-sc 47e9a62
fix(sdk): broken string for missing
szymon-t-sc 748119a
chore(sdk): typos fixed
szymon-t-sc 0a116b9
Merge branch 'main' of https://github.com/synergycodes/workflowbuilde…
szymon-t-sc db512e6
fix(sdk): variable-select blur action fix
szymon-t-sc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| --- | ||
| '@workflowbuilder/sdk': minor | ||
| --- | ||
|
|
||
| Added a new 'VariableDynamic' control that dynamically builds a control matching the variable's type. It toggles between a regular input and a variable picker limited to variables of the matching type; only a single variable can be set. |
This file contains hidden or 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,5 @@ | ||
| --- | ||
| '@workflowbuilder/sdk': patch | ||
| --- | ||
|
|
||
| Variables now support returning different values for different source handles. Variables are now defined using a JSON schema rather than a flattened list, providing a foundation for future validation. | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,34 @@ | ||
| import type { NodeSchemaOutput } from '@workflowbuilder/sdk'; | ||
|
|
||
| export const schemaOutput: NodeSchemaOutput = { | ||
| type: 'default', | ||
| bySourceHandle: { | ||
| success: { | ||
| type: 'object', | ||
| properties: { | ||
| result: { | ||
| type: 'object', | ||
| title: 'Result', | ||
| description: 'The data returned by the action', | ||
| properties: { | ||
| status: { | ||
| type: 'string', | ||
| title: 'Status', | ||
| description: 'Execution status: success, failure, or skipped', | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| error: { | ||
| type: 'object', | ||
| properties: { | ||
| errorMessage: { | ||
| type: 'string', | ||
| title: 'Error Message', | ||
| description: 'Error details if the action failed', | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or 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 hidden or 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 hidden or 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,27 @@ | ||
| import type { NodeSchemaOutput } from '@workflowbuilder/sdk'; | ||
|
|
||
| export const schemaOutput: NodeSchemaOutput = { | ||
| type: 'default', | ||
| bySourceHandle: { | ||
| success: { | ||
| type: 'object', | ||
| properties: { | ||
| response: { | ||
| type: 'string', | ||
| title: 'Response', | ||
| description: 'The text generated by the AI model', | ||
| }, | ||
| tokensUsed: { | ||
| type: 'number', | ||
| title: 'Tokens Used', | ||
| description: 'Total number of tokens consumed', | ||
| }, | ||
| model: { | ||
| type: 'string', | ||
| title: 'Model', | ||
| description: 'The AI model that was used', | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or 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 hidden or 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,22 @@ | ||
| import type { NodeSchemaOutput } from '@workflowbuilder/sdk'; | ||
|
|
||
| export const schemaOutput: NodeSchemaOutput = { | ||
| type: 'default', | ||
| bySourceHandle: { | ||
| success: { | ||
| type: 'object', | ||
| properties: { | ||
| result: { | ||
| type: 'boolean', | ||
| title: 'Result', | ||
| description: 'Whether the condition evaluated to true or false', | ||
| }, | ||
| matchedCondition: { | ||
| type: 'string', | ||
| title: 'Matched Condition', | ||
| description: 'The condition expression that matched', | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or 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 hidden or 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,22 @@ | ||
| import type { NodeSchemaOutput } from '@workflowbuilder/sdk'; | ||
|
|
||
| export const schemaOutput: NodeSchemaOutput = { | ||
| type: 'default', | ||
| bySourceHandle: { | ||
| every: { | ||
| type: 'object', | ||
| properties: { | ||
| selectedBranch: { | ||
| type: 'string', | ||
| title: 'Selected Branch', | ||
| description: 'Label of the branch that was taken', | ||
| }, | ||
| branchIndex: { | ||
| type: 'number', | ||
| title: 'Branch Index', | ||
| description: 'Zero-based index of the selected branch', | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or 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 hidden or 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 hidden or 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,23 @@ | ||
| import type { NodeSchemaOutput } from '@workflowbuilder/sdk'; | ||
|
|
||
| export const schemaOutput: NodeSchemaOutput = { | ||
| type: 'default', | ||
| bySourceHandle: { | ||
| success: { | ||
| type: 'object', | ||
| properties: { | ||
| resumedAt: { | ||
| type: 'string', | ||
| format: 'date-time', | ||
| title: 'Resumed At', | ||
| description: 'ISO 8601 date-time when the delay ended', | ||
| }, | ||
| delayDuration: { | ||
| type: 'number', | ||
| title: 'Delay Duration', | ||
| description: 'Actual wait time in milliseconds', | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bump says
patch, content says featurePer-handle variables + JSON Schema outputs is a new capability, so this should be
minor. No practical effect on the released version (the other changesets already force a minor), but the CHANGELOG entry will land in the wrong section.