MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / version

Method version

sdk/js/src/index.ts:309–315  ·  view source on GitHub ↗

* Query the guest-agent version. * * Returns the version on OS >= 0.5.7. * Throws on older OS versions that lack the Version RPC.

()

Source from the content-addressed store, hash-verified

307 * Throws on older OS versions that lack the Version RPC.
308 */
309 async version(): Promise<VersionResponse> {
310 const result = await send_rpc_request<{ version: string, rev: string }>(this.endpoint, '/Version', '{}')
311 return Object.freeze({
312 ...result,
313 __name__: 'VersionResponse',
314 })
315 }
316
317 async isReachable(): Promise<boolean> {
318 try {

Callers 2

index.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected