MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / value

Function value

libatomic/src/review/viewer.js:135–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 const samples = nodes.map(node => {
134 const item = node.properties, sample = item.observation;
135 const value = side => describeValue(sample[side]) + (sample[side].reason ? ' — ' + sample[side].reason : '');
136 const location = side => item[side + '_location'] ? `${item[side + '_location'].start_line}–${item[side + '_location'].end_line}` : 'no recorded range';
137 return viewSnapshot ? `${viewSnapshot.view} @ ${viewSnapshot.state} · ${item.path}\n${sample.subject}\nSnapshot (${location('after')}): ${value('after')}` : `${item.change} · ${item.path}\n${sample.subject}\nBefore (${location('before')}): ${value('before')}\nAfter (${location('after')}): ${value('after')}\n${changeText(node)}`;
138 });

Callers 1

showCardFunction · 0.70

Calls 1

describeValueFunction · 0.85

Tested by

no test coverage detected