@opencode-ai/schema 0.0.0-dev-18109 → 0.0.0-dev-18111

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/command.d.ts CHANGED
@@ -4,55 +4,7 @@ export interface Info extends Schema.Schema.Type<typeof Info> {
4
4
  }
5
5
  export declare const Info: Schema.Struct<{
6
6
  readonly name: Schema.String;
7
- readonly template: Schema.String;
8
7
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
9
- readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
10
- readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
11
- readonly id: Schema.brand<Schema.String, "Model.ID">;
12
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
13
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
14
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
15
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
16
- google: string & import("effect/Brand").Brand<"Provider.ID">;
17
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
18
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
19
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
20
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
21
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
22
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
23
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
24
- };
25
- readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
26
- }> & {
27
- parse: (input: string) => {
28
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
29
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
30
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
31
- };
32
- }>>, Schema.optionalKey<Schema.Struct<{
33
- readonly id: Schema.brand<Schema.String, "Model.ID">;
34
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
35
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
36
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
37
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
38
- google: string & import("effect/Brand").Brand<"Provider.ID">;
39
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
40
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
41
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
42
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
43
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
44
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
45
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
46
- };
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
- }> & {
49
- parse: (input: string) => {
50
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
51
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
52
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
53
- };
54
- }>, never, never>;
55
- readonly subtask: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
56
8
  }>;
57
9
  export declare const Event: {
58
10
  Updated: Schema.Struct<{
package/dist/command.js CHANGED
@@ -2,16 +2,10 @@ export * as Command from "./command.js";
2
2
  import { Schema } from "effect";
3
3
  import { ephemeral, inventory } from "./event.js";
4
4
  import { optional } from "./schema.js";
5
- import { Model } from "./model.js";
6
- import { Agent } from "./agent.js";
7
5
  const Updated = ephemeral({ type: "command.updated", schema: {} });
8
6
  export const Info = Schema.Struct({
9
7
  name: Schema.String,
10
- template: Schema.String,
11
8
  description: Schema.String.pipe(optional),
12
- agent: Agent.ID.pipe(optional),
13
- model: Model.Ref.pipe(optional),
14
- subtask: Schema.Boolean.pipe(optional),
15
9
  }).annotate({ identifier: "Command.Info" });
16
10
  export const Event = {
17
11
  Updated,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/schema",
4
- "version": "0.0.0-dev-18109",
4
+ "version": "0.0.0-dev-18111",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {