MCPcopy Index your code
hub / github.com/coder/mux / isAvailable

Method isAvailable

src/node/services/onePasswordService.ts:114–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 }
113
114 async isAvailable(): Promise<boolean> {
115 if (this.available === true) {
116 return true;
117 }
118
119 try {
120 await this.getClient();
121 this.available = true;
122 return true;
123 } catch {
124 this.invalidateAvailabilityCache();
125 return false;
126 }
127 }
128
129 async resolve(ref: string): Promise<string | undefined> {
130 if (!ref.startsWith(OP_REF_PREFIX)) {

Callers 4

SecretsSectionFunction · 0.80
ProvidersSectionFunction · 0.80
routerFunction · 0.80

Calls 2

getClientMethod · 0.95

Tested by

no test coverage detected