Download packages/core/src/config/experimental.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 687 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/experimental.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/core/src/config/experimental.ts
-
curl -L -o experimental.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/core/src/config/experimental.ts
687 Bytes
| 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), | |
| }) {} | |