MCPcopy Index your code
hub / github.com/github/copilot-sdk / toWireLargeOutput

Function toWireLargeOutput

nodejs/src/client.ts:254–264  ·  view source on GitHub ↗

* Convert a LargeToolOutputConfig from the public API shape * (`outputDirectory`) to the wire shape (`outputDir`).

(
    config: LargeToolOutputConfig | undefined
)

Source from the content-addressed store, hash-verified

252 * (`outputDirectory`) to the wire shape (`outputDir`).
253 */
254function toWireLargeOutput(
255 config: LargeToolOutputConfig | undefined
256): Record<string, unknown> | undefined {
257 if (!config) return undefined;
258 const { outputDirectory, ...rest } = config;
259 const wire: Record<string, unknown> = { ...rest };
260 if (outputDirectory !== undefined) {
261 wire.outputDir = outputDirectory;
262 }
263 return wire;
264}
265
266function toolFilterListToArray(value: string[] | ToolSet | undefined): string[] | undefined {
267 if (value === undefined) {

Callers 2

createSessionMethod · 0.85
resumeSessionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…