MCPcopy Index your code
hub / github.com/callstack/agent-device / createCommandTempFile

Function createCommandTempFile

src/commands/io-policy.ts:54–63  ·  view source on GitHub ↗
(
  runtime: AgentDeviceRuntime,
  options: CreateTempFileOptions,
)

Source from the content-addressed store, hash-verified

52}
53
54export async function createCommandTempFile(
55 runtime: AgentDeviceRuntime,
56 options: CreateTempFileOptions,
57): Promise<TemporaryFile> {
58 try {
59 return await runtime.artifacts.createTempFile(options);
60 } catch (error) {
61 throw asAppError(error);
62 }
63}

Callers 1

Calls 1

asAppErrorFunction · 0.90

Tested by

no test coverage detected