@opencode/schema 2.0.28 → 2.0.30
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/dist/event-manifest.d.ts +4 -4
- package/dist/tui-event.d.ts +4 -4
- package/dist/tui-event.js +0 -1
- 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
|
}),
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -6067,14 +6067,14 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
6067
6067
|
}>, never, never>;
|
|
6068
6068
|
}>>, never, never>;
|
|
6069
6069
|
readonly data: Schema.Struct<{
|
|
6070
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.
|
|
6070
|
+
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
6071
6071
|
}>;
|
|
6072
6072
|
}> & {
|
|
6073
6073
|
type: "tui.command.execute";
|
|
6074
6074
|
durability: "ephemeral";
|
|
6075
6075
|
durable: undefined;
|
|
6076
6076
|
data: Schema.Struct<{
|
|
6077
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.
|
|
6077
|
+
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
6078
6078
|
}>;
|
|
6079
6079
|
}, Schema.Struct<{
|
|
6080
6080
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -12375,14 +12375,14 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
12375
12375
|
}>, never, never>;
|
|
12376
12376
|
}>>, never, never>;
|
|
12377
12377
|
readonly data: Schema.Struct<{
|
|
12378
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.
|
|
12378
|
+
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
12379
12379
|
}>;
|
|
12380
12380
|
}> & {
|
|
12381
12381
|
type: "tui.command.execute";
|
|
12382
12382
|
durability: "ephemeral";
|
|
12383
12383
|
durable: undefined;
|
|
12384
12384
|
data: Schema.Struct<{
|
|
12385
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.
|
|
12385
|
+
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
12386
12386
|
}>;
|
|
12387
12387
|
}, Schema.Struct<{
|
|
12388
12388
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
package/dist/tui-event.d.ts
CHANGED
|
@@ -64,14 +64,14 @@ export declare const CommandExecute: Schema.Struct<{
|
|
|
64
64
|
}>, never, never>;
|
|
65
65
|
}>>, never, never>;
|
|
66
66
|
readonly data: Schema.Struct<{
|
|
67
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.
|
|
67
|
+
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
68
68
|
}>;
|
|
69
69
|
}> & {
|
|
70
70
|
type: "tui.command.execute";
|
|
71
71
|
durability: "ephemeral";
|
|
72
72
|
durable: undefined;
|
|
73
73
|
data: Schema.Struct<{
|
|
74
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.
|
|
74
|
+
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
75
75
|
}>;
|
|
76
76
|
};
|
|
77
77
|
export declare const ToastShow: Schema.Struct<{
|
|
@@ -217,14 +217,14 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
217
217
|
}>, never, never>;
|
|
218
218
|
}>>, never, never>;
|
|
219
219
|
readonly data: Schema.Struct<{
|
|
220
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.
|
|
220
|
+
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
221
221
|
}>;
|
|
222
222
|
}> & {
|
|
223
223
|
type: "tui.command.execute";
|
|
224
224
|
durability: "ephemeral";
|
|
225
225
|
durable: undefined;
|
|
226
226
|
data: Schema.Struct<{
|
|
227
|
-
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.
|
|
227
|
+
readonly command: Schema.Union<readonly [Schema.Literals<readonly ["session.list", "session.new", "session.interrupt", "session.background", "session.compact", "session.page.up", "session.page.down", "session.line.up", "session.line.down", "session.half.page.up", "session.half.page.down", "session.first", "session.last", "prompt.clear", "prompt.submit", "agent.cycle"]>, Schema.String]>;
|
|
228
228
|
}>;
|
|
229
229
|
}, Schema.Struct<{
|
|
230
230
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
package/dist/tui-event.js
CHANGED