@opencode/schema 0.0.0-dev-21528 → 0.0.0-dev-21530
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/package.json +1 -1
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),
|