MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / Client

Class Client

node/src/client.ts:24–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 static fromEnv(): Client {
23 return new Client();
24 }
25
26 get baseUrl(): string | undefined {
27 return this.config.baseUrl;
28 }
29
30 #system?: SystemResource;
31 get system(): SystemResource {
32 return (this.#system ??= new SystemResource(this));
33 }
34
35 #machines?: MachinesResource;
36 get machines(): MachinesResource {
37 return (this.#machines ??= new MachinesResource(this));
38 }
39
40 async close(): Promise<void> {
41 await this._t.close();
42 }
43
44 async [Symbol.asyncDispose](): Promise<void> {
45 await this.close();
46 }
47}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected