| 969 | } |
| 970 | |
| 971 | function 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 |