MCPcopy Create free account
hub / github.com/cloudflare/computer / import

Function import

packages/computer/src/artifacts/client.ts:159–165  ·  view source on GitHub ↗
(name, source, opts)

Source from the content-addressed store, hash-verified

157 },
158
159 async import(name, source, opts) {
160 const result = await binding.import({
161 source,
162 target: { name: scopedName(sessionId, name), opts },
163 });
164 return { ...result, name: unscopeOr(sessionId, result.name, name) };
165 },
166
167 async delete(name) {
168 return binding.delete(scopedName(sessionId, name));

Callers

nothing calls this directly

Calls 3

scopedNameFunction · 0.85
unscopeOrFunction · 0.85
importMethod · 0.65

Tested by

no test coverage detected