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

Function createDisabledArtifactsClient

packages/computer/src/workspace.ts:971–990  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

969}
970
971function createDisabledArtifactsClient(): ArtifactClient {
972 const fail = () => {
973 throw new ArtifactError("ENOCONFIG", "Workspace Artifacts binding is not configured");
974 };
975 return {
976 sessionId: "",
977 create: fail,
978 get: fail,
979 list: fail,
980 import: fail,
981 delete: fail,
982 createToken: fail,
983 listTokens: fail,
984 getToken: fail,
985 revokeToken: fail,
986 async cli(input) {
987 return runArtifactsCLI(this, input);
988 },
989 } as ArtifactClient;
990}
991
992// Selector wrapper that satisfies the WorkspaceShell surface but
993// resolves the underlying ShellRPC per call. ExecOptions and

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected