@opencode/schema 2.0.28 → 2.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/experimental.js +1 -1
- package/dist/config.d.ts +9 -0
- package/dist/config.js +4 -0
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ export class Info extends Schema.Class("ConfigExperimental.Info")({
|
|
|
10
10
|
description: "Maximum subagent nesting depth. Defaults to 1.",
|
|
11
11
|
}),
|
|
12
12
|
policies: ConfigPolicy.Info.pipe(Schema.Array, optional).annotate({
|
|
13
|
-
description: "Ordered policies controlling access to configured resources",
|
|
13
|
+
description: "Deprecated: use top-level policies. Ordered policies controlling access to configured resources",
|
|
14
14
|
}),
|
|
15
15
|
}) {
|
|
16
16
|
}
|
package/dist/config.d.ts
CHANGED
|
@@ -53,6 +53,15 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
53
53
|
readonly resource: Schema.String;
|
|
54
54
|
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
55
55
|
}>>>, never, never>;
|
|
56
|
+
readonly policies: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
57
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.use"]>;
|
|
58
|
+
readonly resource: Schema.String;
|
|
59
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
60
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
61
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.use"]>;
|
|
62
|
+
readonly resource: Schema.String;
|
|
63
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
64
|
+
}>>>, never, never>;
|
|
56
65
|
readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, typeof ConfigAgent.Info>>>, Schema.optionalKey<Schema.$Record<Schema.String, typeof ConfigAgent.Info>>, never, never>;
|
|
57
66
|
readonly snapshots: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
58
67
|
readonly watcher: Schema.decodeTo<Schema.optional<Schema.toType<typeof ConfigWatcher.Info>>, Schema.optionalKey<typeof ConfigWatcher.Info>, never, never>;
|
package/dist/config.js
CHANGED
|
@@ -13,6 +13,7 @@ import { ConfigLSP } from "./config/lsp.js";
|
|
|
13
13
|
import { ConfigMCP } from "./config/mcp.js";
|
|
14
14
|
import { ConfigModel } from "./config/model.js";
|
|
15
15
|
import { ConfigPlugin } from "./config/plugin.js";
|
|
16
|
+
import { ConfigPolicy } from "./config/policy.js";
|
|
16
17
|
import { ConfigProvider } from "./config/provider.js";
|
|
17
18
|
import { ConfigReference } from "./config/reference.js";
|
|
18
19
|
import { ConfigWebSearch } from "./config/websearch.js";
|
|
@@ -52,6 +53,9 @@ export class Info extends Schema.Class("Config.Info")({
|
|
|
52
53
|
permissions: Permission.Ruleset.pipe(optional).annotate({
|
|
53
54
|
description: "Ordered tool permission rules applied to agent tool use",
|
|
54
55
|
}),
|
|
56
|
+
policies: ConfigPolicy.Info.pipe(Schema.Array, optional).annotate({
|
|
57
|
+
description: "Ordered policies controlling access to providers, tools, and integrations",
|
|
58
|
+
}),
|
|
55
59
|
agents: Schema.Record(Schema.String, ConfigAgent.Info).pipe(optional).annotate({
|
|
56
60
|
description: "Named built-in agent overrides and custom agent definitions",
|
|
57
61
|
}),
|