@opencode-ai/protocol 0.0.0-next-15090 → 0.0.0-next-15092

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/errors.d.ts CHANGED
@@ -55,7 +55,7 @@ declare const MessageNotFoundError_base: Schema.Class<MessageNotFoundError, Sche
55
55
  export declare class MessageNotFoundError extends MessageNotFoundError_base {
56
56
  }
57
57
  declare const SkillNotFoundError_base: Schema.Class<SkillNotFoundError, Schema.TaggedStruct<"SkillNotFoundError", {
58
- readonly skill: Schema.String;
58
+ readonly skill: Schema.brand<Schema.String, "Skill.ID">;
59
59
  readonly message: Schema.String;
60
60
  }>, import("effect/Cause").YieldableError>;
61
61
  export declare class SkillNotFoundError extends SkillNotFoundError_base {
package/dist/errors.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Schema } from "effect";
2
+ import { Skill } from "@opencode-ai/schema/skill";
2
3
  export class InvalidRequestError extends Schema.TaggedErrorClass()("InvalidRequestError", {
3
4
  message: Schema.String,
4
5
  kind: Schema.optional(Schema.String),
@@ -44,7 +45,7 @@ export class MessageNotFoundError extends Schema.TaggedErrorClass()("MessageNotF
44
45
  }, { httpApiStatus: 404 }) {
45
46
  }
46
47
  export class SkillNotFoundError extends Schema.TaggedErrorClass()("SkillNotFoundError", {
47
- skill: Schema.String,
48
+ skill: Skill.ID,
48
49
  message: Schema.String,
49
50
  }, { httpApiStatus: 404 }) {
50
51
  }
@@ -10,9 +10,10 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
10
10
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<Schema.Struct<{
11
11
  readonly location: typeof Location.Info;
12
12
  readonly data: Schema.$Array<Schema.Struct<{
13
- readonly id: Schema.brand<Schema.String, "AgentV2.ID">;
13
+ readonly id: Schema.brand<Schema.String, "Agent.ID">;
14
+ readonly name: Schema.brand<Schema.String, "Agent.Name">;
14
15
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
16
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
16
17
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
17
18
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
18
19
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -26,9 +27,9 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
26
27
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
27
28
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
28
29
  };
29
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
30
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
30
31
  }>>>, Schema.optionalKey<Schema.Struct<{
31
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
32
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
32
33
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
33
34
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
34
35
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -42,7 +43,7 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
42
43
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
43
44
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
44
45
  };
45
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
46
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
46
47
  }>>, never, never>;
47
48
  readonly request: Schema.Struct<{
48
49
  readonly settings: Schema.withConstructorDefault<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
@@ -62,7 +63,8 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
62
63
  }>>;
63
64
  }> & {
64
65
  empty: (id: Agent.ID) => {
65
- readonly id: string & import("effect/Brand").Brand<"AgentV2.ID">;
66
+ readonly id: string & import("effect/Brand").Brand<"Agent.ID">;
67
+ readonly name: string & import("effect/Brand").Brand<"Agent.Name">;
66
68
  readonly request: {
67
69
  readonly settings: {
68
70
  readonly [x: string]: Schema.Json;
@@ -82,9 +84,9 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
82
84
  readonly effect: "allow" | "deny" | "ask";
83
85
  }[];
84
86
  readonly model?: {
85
- readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
87
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
86
88
  readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
87
- readonly variant?: (string & import("effect/Brand").Brand<"VariantID">) | undefined;
89
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
88
90
  } | undefined;
89
91
  readonly system?: string | undefined;
90
92
  readonly description?: string | undefined;
@@ -12,9 +12,9 @@ export declare const CommandGroup: HttpApiGroup.HttpApiGroup<"server.command", H
12
12
  readonly name: Schema.String;
13
13
  readonly template: Schema.String;
14
14
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15
- readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
15
+ readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
16
16
  readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
17
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
17
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
18
18
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
19
19
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
20
20
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -28,9 +28,9 @@ export declare const CommandGroup: HttpApiGroup.HttpApiGroup<"server.command", H
28
28
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
29
29
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
30
30
  };
31
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
31
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
32
32
  }>>>, Schema.optionalKey<Schema.Struct<{
33
- readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
33
+ readonly id: Schema.brand<Schema.String, "Model.ID">;
34
34
  readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
35
35
  opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
36
36
  anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
@@ -44,7 +44,7 @@ export declare const CommandGroup: HttpApiGroup.HttpApiGroup<"server.command", H
44
44
  mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
45
45
  gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
46
46
  };
47
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
47
+ readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
48
48
  }>>, never, never>;
49
49
  readonly subtask: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
50
50
  }>>;