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

Function createUnsupportedArtifactAdapter

src/daemon/runtime-artifacts.ts:4–20  ·  view source on GitHub ↗
(
  label: string,
  options: { plural?: boolean } = {},
)

Source from the content-addressed store, hash-verified

2import { AppError } from '../kernel/errors.ts';
3
4export function createUnsupportedArtifactAdapter(
5 label: string,
6 options: { plural?: boolean } = {},
7): ArtifactAdapter {
8 const verb = options.plural === true ? 'do' : 'does';
9 return {
10 resolveInput: async () => {
11 throw new AppError('UNSUPPORTED_OPERATION', `${label} ${verb} not resolve input artifacts`);
12 },
13 reserveOutput: async () => {
14 throw new AppError('UNSUPPORTED_OPERATION', `${label} ${verb} not reserve output artifacts`);
15 },
16 createTempFile: async () => {
17 throw new AppError('UNSUPPORTED_OPERATION', `${label} ${verb} not create temporary files`);
18 },
19 };
20}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…