/
Alex_Ural
/
opencode
Обзор
Документация
Войти
/
Alex_Ural
/
opencode
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
packages/core/src/config/experimental.ts
18 строк
687 B
Dax
feat(core): add location-scoped config loading (#29625)
30 май 2026, 07:06
Не верифицирован
30 май 2026, 07:06
9583e08
Код
Авторство
О чём код?
export * as ConfigExperimental from "./experimental" import { Schema } from "effect" import { Catalog } from "../catalog" import { Policy as PolicyV2 } from "../policy" // Each core domain exports the policy actions it supports. Adding an action to // this union makes it valid in authored config while keeping Policy generic. export const PolicyAction = Schema.Union([Catalog.PolicyActions]) export class Policy extends Schema.Class<Policy>("ConfigV2.Experimental.Policy")({ ...PolicyV2.Info.fields, action: PolicyAction, }) {} export class Experimental extends Schema.Class<Experimental>("ConfigV2.Experimental")({ policies: Policy.pipe(Schema.Array, Schema.optional), }) {}