@opencode/schema 2.1.2 → 2.1.4
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/agent.d.ts +1 -1
- package/dist/config/agent.js +3 -2
- package/dist/config/experimental.d.ts +1 -0
- package/dist/config/experimental.js +3 -0
- package/dist/event-manifest.d.ts +120 -366
- package/dist/permission.d.ts +0 -9
- package/dist/persistent-pty.d.ts +0 -20
- package/dist/prompt-input.d.ts +3 -36
- package/dist/prompt-input.js +2 -6
- package/dist/session-event.d.ts +302 -854
- package/dist/session-event.js +2 -9
- package/dist/session-fork.d.ts +2 -2
- package/dist/session-id.d.ts +0 -1
- package/dist/session-id.js +3 -7
- package/dist/session-inbox.d.ts +8 -16
- package/dist/session-message.d.ts +30 -31
- package/dist/session-message.js +0 -1
- package/dist/session-revert.d.ts +27 -27
- package/dist/session-status-event.d.ts +0 -8
- package/dist/session-transfer.d.ts +19 -24
- package/dist/session.d.ts +8 -22
- package/dist/v1/legacy-event.d.ts +0 -4
- package/dist/v1/permission.d.ts +0 -10
- package/dist/v1/session.d.ts +0 -177
- package/dist/workspace-id.js +0 -2
- package/package.json +5 -4
package/dist/config/agent.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
25
25
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
26
26
|
readonly mode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["subagent", "primary", "all"]>>>, Schema.optionalKey<Schema.Literals<readonly ["subagent", "primary", "all"]>>, never, never>;
|
|
27
27
|
readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
28
|
-
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String
|
|
28
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.middlewareDecoding<Schema.String, never>>>, Schema.optionalKey<Schema.middlewareDecoding<Schema.String, never>>, never, never>;
|
|
29
29
|
readonly steps: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
30
30
|
readonly disabled: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
31
31
|
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
package/dist/config/agent.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as ConfigAgent from "./agent.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
2
|
+
import { Effect, Schema } from "effect";
|
|
3
3
|
import { Permission } from "../permission.js";
|
|
4
4
|
import { optional, PositiveInt } from "../schema.js";
|
|
5
5
|
import { ConfigModel } from "./model.js";
|
|
@@ -12,7 +12,8 @@ export class Info extends Schema.Class("Config.Agent")({
|
|
|
12
12
|
description: Schema.String.pipe(optional),
|
|
13
13
|
mode: Schema.Literals(["subagent", "primary", "all"]).pipe(optional),
|
|
14
14
|
hidden: Schema.Boolean.pipe(optional),
|
|
15
|
-
color
|
|
15
|
+
// An unsupported color, such as a V1 theme name, should not drop the whole agent.
|
|
16
|
+
color: Color.pipe(Schema.catchDecoding(() => Effect.succeedNone), optional),
|
|
16
17
|
steps: PositiveInt.pipe(optional),
|
|
17
18
|
disabled: Schema.Boolean.pipe(optional),
|
|
18
19
|
permissions: Permission.Ruleset.pipe(optional),
|
|
@@ -3,6 +3,7 @@ import { Schema } from "effect";
|
|
|
3
3
|
declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
4
4
|
readonly portable_shell_scanner: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
5
5
|
readonly todo: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
6
|
+
readonly background_compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
6
7
|
readonly subagent_depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
7
8
|
readonly location_idle_timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.DurationFromString, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.DurationFromString, Schema.Literal<false>]>>, never, never>;
|
|
8
9
|
readonly policies: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
@@ -9,6 +9,9 @@ export class Info extends Schema.Class("ConfigExperimental.Info")({
|
|
|
9
9
|
todo: Schema.Boolean.pipe(optional).annotate({
|
|
10
10
|
description: "Enable the experimental todowrite tool. Defaults to false.",
|
|
11
11
|
}),
|
|
12
|
+
background_compaction: Schema.Boolean.pipe(optional).annotate({
|
|
13
|
+
description: "Enable experimental background compaction: summarize the conversation in the background as it nears the compaction threshold, so automatic compaction does not wait for the summary. Background summaries that are never used still cost tokens. Defaults to false.",
|
|
14
|
+
}),
|
|
12
15
|
subagent_depth: NonNegativeInt.pipe(optional).annotate({
|
|
13
16
|
description: "Maximum subagent nesting depth. Defaults to 1.",
|
|
14
17
|
}),
|