refactor(core): consolidate pty service (#30537)

This commit is contained in:
Shoubhit Dash 2026-06-03 15:17:46 +05:30 committed by GitHub
commit 932fb6c9ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 504 additions and 576 deletions

View file

@ -21,6 +21,7 @@ import { FileSystem } from "./filesystem"
import { Watcher } from "./filesystem/watcher"
import { ProjectReference } from "./project-reference"
import { RepositoryCache } from "./repository-cache"
import { Pty } from "./pty"
export class LocationServiceMap extends LayerMap.Service<LocationServiceMap>()("@opencode/example/LocationServiceMap", {
lookup: (ref: Location.Ref) => {
@ -37,6 +38,7 @@ export class LocationServiceMap extends LayerMap.Service<LocationServiceMap>()("
PermissionV2.locationLayer,
FileSystem.locationLayer,
Watcher.locationLayer,
Pty.locationLayer,
).pipe(Layer.provideMerge(location), Layer.fresh)
},
idleTimeToLive: "60 minutes",