snow-flow 10.0.1-dev.482 → 10.0.1-dev.483

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "10.0.1-dev.482",
3
+ "version": "10.0.1-dev.483",
4
4
  "name": "snow-flow",
5
5
  "description": "Snow-Flow - ServiceNow Multi-Agent Development Framework powered by AI",
6
6
  "license": "Elastic-2.0",
@@ -1169,10 +1169,9 @@ async function addActionViaGraphQL(
1169
1169
  var inp = recordActionResult.inputs[ri];
1170
1170
  var val = inp.value?.value || '';
1171
1171
  if (inp.name === 'record' && val.startsWith('{{')) {
1172
- // Both value and displayValue must be set (matching processflow XML format)
1172
+ // UI only sends `value` for the record pill (no displayValue)
1173
1173
  updateInputs.push({
1174
1174
  name: 'record',
1175
- displayValue: { schemaless: false, schemalessValue: '', value: val },
1176
1175
  value: { schemaless: false, schemalessValue: '', value: val }
1177
1176
  });
1178
1177
  } else if (inp.name === 'table_name') {
@@ -1702,15 +1701,15 @@ async function transformActionInputsForRecordAction(
1702
1701
 
1703
1702
  if (isShorthand || !recordVal) {
1704
1703
  // Auto-fill with trigger's current record data pill
1705
- // The processflow XML shows both value AND displayValue must be set to the pill reference
1704
+ // UI only sends the pill in `value`; displayValue stays empty
1706
1705
  var pillRef = '{{' + dataPillBase + '}}';
1707
1706
  recordInput.value = { schemaless: false, schemalessValue: '', value: pillRef };
1708
- recordInput.displayValue = { schemaless: false, schemalessValue: '', value: pillRef };
1707
+ recordInput.displayValue = { value: '' };
1709
1708
  usedInstances.push({ uiUniqueIdentifier: uuid, inputName: 'record' });
1710
1709
  steps.record_transform = { original: recordVal, pill: pillRef };
1711
1710
  } else if (isAlreadyPill) {
1712
- // Also ensure displayValue is set for existing pill references
1713
- recordInput.displayValue = { schemaless: false, schemalessValue: '', value: recordVal };
1711
+ // UI keeps displayValue empty for pill references
1712
+ recordInput.displayValue = { value: '' };
1714
1713
  usedInstances.push({ uiUniqueIdentifier: uuid, inputName: 'record' });
1715
1714
  }
1716
1715
  }
@@ -1816,7 +1815,8 @@ async function transformActionInputsForRecordAction(
1816
1815
  reference_display: tblLabel,
1817
1816
  type: 'reference',
1818
1817
  base_type: 'reference',
1819
- attributes: {},
1818
+ attributes: '',
1819
+ choices: {},
1820
1820
  usedInstances: usedInstances
1821
1821
  });
1822
1822
 
@@ -1866,7 +1866,7 @@ async function transformActionInputsForRecordAction(
1866
1866
  base_type: fMeta.type,
1867
1867
  parent_table_name: tableRef,
1868
1868
  column_name: fieldCol,
1869
- attributes: {},
1869
+ attributes: '',
1870
1870
  usedInstances: [{ uiUniqueIdentifier: uuid, inputName: fieldCol }]
1871
1871
  });
1872
1872
  }
@@ -2174,7 +2174,7 @@ async function addFlowLogicViaGraphQL(
2174
2174
  inputs: [
2175
2175
  {
2176
2176
  name: 'condition_name',
2177
- value: { schemaless: false, schemalessValue: '', value: 'label' }
2177
+ value: { schemaless: false, schemalessValue: '', value: inputResult.resolvedInputs['condition_name'] || '' }
2178
2178
  },
2179
2179
  {
2180
2180
  name: 'condition',