GHHG10's picture
download
raw
707 Bytes
import { EOL } from "os"
import * as Effect from "effect/Effect"
import { Commands } from "../../commands"
import { Runtime } from "../../../framework/runtime"
import { Daemon } from "../../../services/daemon"
export default Runtime.handler(
Commands.commands.debug.commands.agents,
Effect.fn("cli.debug.agents")(function* () {
const daemon = yield* Daemon.Service
const client = yield* daemon.client()
const response = yield* Effect.promise(() => client.v2.agent.list({ location: { directory: process.cwd() } }))
process.stdout.write(
JSON.stringify(
response.data?.data.toSorted((a, b) => a.id.localeCompare(b.id)),
null,
2,
) + EOL,
)
}),
)

Xet Storage Details

Size:
707 Bytes
·
Xet hash:
d2cc52c171cd4d0a1f510a664f233856d32f6d92b1ecb136911c199976c8c782

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.