Download packages/app/src/components/directory-picker-policy.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/app/src/components/directory-picker-policy.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/app/src/components/directory-picker-policy.ts
-
curl -L -o directory-picker-policy.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/app/src/components/directory-picker-policy.ts
322 Bytes
| import { ServerConnection } from "@/context/server" | |
| import type { Platform } from "@/context/platform" | |
| export function directoryPickerKind(platform: Platform["platform"], server: ServerConnection.Any) { | |
| if (platform === "desktop" && ServerConnection.local(server)) return "native" as const | |
| return "server" as const | |
| } | |