feat(core): add flagged project references (#30414)

This commit is contained in:
Shoubhit Dash 2026-06-02 19:55:11 +05:30 committed by GitHub
commit 5a8ef94998
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 516 additions and 2 deletions

View file

@ -18,6 +18,8 @@ import { PermissionV2 } from "./permission"
import { PermissionSaved } from "./permission/saved"
import { SessionV2 } from "./session"
import { LocationFileSystem } from "./location-filesystem"
import { ProjectReference } from "./project-reference"
import { RepositoryCache } from "./repository-cache"
export class LocationServiceMap extends LayerMap.Service<LocationServiceMap>()("@opencode/example/LocationServiceMap", {
lookup: (ref: Location.Ref) => {
@ -26,6 +28,7 @@ export class LocationServiceMap extends LayerMap.Service<LocationServiceMap>()("
location,
Policy.locationLayer,
Config.locationLayer,
ProjectReference.locationLayer,
PluginV2.locationLayer,
Catalog.locationLayer,
AgentV2.locationLayer,
@ -46,5 +49,6 @@ export class LocationServiceMap extends LayerMap.Service<LocationServiceMap>()("
Database.defaultLayer,
SessionV2.defaultLayer,
PermissionSaved.defaultLayer,
RepositoryCache.defaultLayer,
],
}) {}