@opencode-ai/schema 0.0.0-next-16042 → 0.0.0-next-16045
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/agent.d.ts +2 -2
- package/dist/agent.js +1 -4
- package/package.json +1 -1
package/dist/agent.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const ID: Schema.brand<Schema.String, "Agent.ID">;
|
|
|
4
4
|
export type ID = typeof ID.Type;
|
|
5
5
|
export declare const Name: Schema.brand<Schema.String, "Agent.Name">;
|
|
6
6
|
export type Name = typeof Name.Type;
|
|
7
|
-
export declare const Color: Schema.
|
|
7
|
+
export declare const Color: Schema.String;
|
|
8
8
|
export type Color = typeof Color.Type;
|
|
9
9
|
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
10
10
|
}
|
|
@@ -65,7 +65,7 @@ export declare const Info: Schema.Struct<{
|
|
|
65
65
|
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
66
66
|
readonly mode: Schema.Literals<readonly ["subagent", "primary", "all"]>;
|
|
67
67
|
readonly hidden: Schema.Boolean;
|
|
68
|
-
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
68
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
69
69
|
readonly steps: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
70
70
|
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
71
71
|
readonly action: Schema.String;
|
package/dist/agent.js
CHANGED
|
@@ -9,10 +9,7 @@ import { PositiveInt, statics } from "./schema.js";
|
|
|
9
9
|
const Updated = ephemeral({ type: "agent.updated", schema: {} });
|
|
10
10
|
export const ID = Schema.String.pipe(Schema.brand("Agent.ID"));
|
|
11
11
|
export const Name = Schema.String.pipe(Schema.brand("Agent.Name"));
|
|
12
|
-
export const Color = Schema.
|
|
13
|
-
Schema.String.check(Schema.isPattern(/^#[0-9a-fA-F]{6}$/)),
|
|
14
|
-
Schema.Literals(["primary", "secondary", "accent", "success", "warning", "error", "info"]),
|
|
15
|
-
]).annotate({ identifier: "Agent.Color" });
|
|
12
|
+
export const Color = Schema.String.annotate({ identifier: "Agent.Color" }).check(Schema.isPattern(/^#[0-9a-fA-F]{6}$/));
|
|
16
13
|
export const Info = Schema.Struct({
|
|
17
14
|
id: ID,
|
|
18
15
|
name: Name,
|