MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / viewFileWrapperStep

Function viewFileWrapperStep

test/native-read-wrapper.test.js:55–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55function viewFileWrapperStep() {
56 const wrapper = Buffer.concat([
57 writeStringField(2, 'file:///home/user/projects/workspace-abc123/README.md'),
58 writeMessageField(3, writeStringField(1, 'nested request')),
59 writeStringField(4, 'observed content'),
60 ]);
61 return Buffer.concat([
62 writeVarintField(1, 14),
63 writeVarintField(4, 3),
64 writeMessageField(19, wrapper),
65 ]);
66}
67
68function errorStep(message) {
69 const details = writeStringField(1, message);

Callers 1

Calls 3

writeStringFieldFunction · 0.90
writeMessageFieldFunction · 0.90
writeVarintFieldFunction · 0.90

Tested by

no test coverage detected