(ref: Location.Ref, input: { projectDirectory?: AbsolutePath; vcs?: Project.Vcs } = {})
| 5 | import { tmpdir } from "./tmpdir" |
| 6 | |
| 7 | export function location(ref: Location.Ref, input: { projectDirectory?: AbsolutePath; vcs?: Project.Vcs } = {}) { |
| 8 | return { |
| 9 | directory: ref.directory, |
| 10 | workspaceID: ref.workspaceID, |
| 11 | project: { id: Project.ID.global, directory: input.projectDirectory ?? ref.directory }, |
| 12 | vcs: input.vcs, |
| 13 | } satisfies Location.Interface |
| 14 | } |
| 15 | |
| 16 | export const tempLocationLayer = Layer.unwrap( |
| 17 | Effect.acquireRelease( |
no outgoing calls