@opencode/schema 0.0.0-dev-21528 → 0.0.0-dev-21541
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
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),
|
package/dist/session-event.d.ts
CHANGED
|
@@ -13312,7 +13312,7 @@ export declare const EphemeralDefinitions: readonly ((Schema.Struct<{
|
|
|
13312
13312
|
}>;
|
|
13313
13313
|
}>;
|
|
13314
13314
|
}))[];
|
|
13315
|
-
export declare const Durable: Schema.
|
|
13315
|
+
export declare const Durable: Schema.toTaggedUnion<"type", readonly [...((Schema.Struct<{
|
|
13316
13316
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
13317
13317
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
13318
13318
|
};
|
|
@@ -17476,7 +17476,7 @@ export declare const Durable: Schema.Union<readonly [...((Schema.Struct<{
|
|
|
17476
17476
|
}>;
|
|
17477
17477
|
}]>;
|
|
17478
17478
|
export type DurableEvent = typeof Durable.Type;
|
|
17479
|
-
export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.
|
|
17479
|
+
export declare const All: Schema.toTaggedUnion<"type", readonly [Schema.toTaggedUnion<"type", readonly [...((Schema.Struct<{
|
|
17480
17480
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
17481
17481
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
17482
17482
|
};
|
package/dist/session-event.js
CHANGED
|
@@ -567,6 +567,6 @@ export const Definitions = Event.inventory(Created, AgentSelected, ModelSelected
|
|
|
567
567
|
export const DurableDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "durable"), UsageRecorded, MessageContentUpdated);
|
|
568
568
|
export const EphemeralDefinitions = Event.inventory(...Definitions.filter((definition) => definition.durability === "ephemeral"));
|
|
569
569
|
export const Durable = Schema.Union(DurableDefinitions, { mode: "oneOf" })
|
|
570
|
-
.
|
|
571
|
-
.
|
|
570
|
+
.annotate({ identifier: "Session.Event.Durable" })
|
|
571
|
+
.pipe(Schema.toTaggedUnion("type"));
|
|
572
572
|
export const All = Schema.Union([Durable, ...EphemeralDefinitions], { mode: "oneOf" }).pipe(Schema.toTaggedUnion("type"));
|