@opencode-ai/schema 0.0.0-next-15183 → 0.0.0-next-15191

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.
@@ -6888,58 +6888,6 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
6888
6888
  };
6889
6889
  readonly sessionID: Schema.String;
6890
6890
  }>;
6891
- }, Schema.Struct<{
6892
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6893
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
6894
- };
6895
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
6896
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
6897
- readonly type: Schema.Literal<"todo.updated">;
6898
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
6899
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6900
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6901
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6902
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6903
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6904
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6905
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6906
- }>, never, never>;
6907
- }>>>, Schema.optionalKey<Schema.Struct<{
6908
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
6909
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6910
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6911
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6912
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
6913
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6914
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
6915
- }>, never, never>;
6916
- }>>, never, never>;
6917
- readonly data: Schema.Struct<{
6918
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6919
- create: () => string & import("effect/Brand").Brand<"SessionID">;
6920
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6921
- };
6922
- readonly todos: Schema.$Array<Schema.Struct<{
6923
- readonly content: Schema.String;
6924
- readonly status: Schema.String;
6925
- readonly priority: Schema.String;
6926
- }>>;
6927
- }>;
6928
- }> & {
6929
- type: "todo.updated";
6930
- durability: "ephemeral";
6931
- durable: undefined;
6932
- data: Schema.Struct<{
6933
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
6934
- create: () => string & import("effect/Brand").Brand<"SessionID">;
6935
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
6936
- };
6937
- readonly todos: Schema.$Array<Schema.Struct<{
6938
- readonly content: Schema.String;
6939
- readonly status: Schema.String;
6940
- readonly priority: Schema.String;
6941
- }>>;
6942
- }>;
6943
6891
  }, Schema.Struct<{
6944
6892
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
6945
6893
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -15048,58 +14996,6 @@ export declare const Definitions: readonly [Schema.Struct<{
15048
14996
  };
15049
14997
  readonly sessionID: Schema.String;
15050
14998
  }>;
15051
- }, Schema.Struct<{
15052
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
15053
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
15054
- };
15055
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
15056
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
15057
- readonly type: Schema.Literal<"todo.updated">;
15058
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
15059
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
15060
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
15061
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
15062
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
15063
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
15064
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
15065
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
15066
- }>, never, never>;
15067
- }>>>, Schema.optionalKey<Schema.Struct<{
15068
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
15069
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
15070
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
15071
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
15072
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
15073
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
15074
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
15075
- }>, never, never>;
15076
- }>>, never, never>;
15077
- readonly data: Schema.Struct<{
15078
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
15079
- create: () => string & import("effect/Brand").Brand<"SessionID">;
15080
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
15081
- };
15082
- readonly todos: Schema.$Array<Schema.Struct<{
15083
- readonly content: Schema.String;
15084
- readonly status: Schema.String;
15085
- readonly priority: Schema.String;
15086
- }>>;
15087
- }>;
15088
- }> & {
15089
- type: "todo.updated";
15090
- durability: "ephemeral";
15091
- durable: undefined;
15092
- data: Schema.Struct<{
15093
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
15094
- create: () => string & import("effect/Brand").Brand<"SessionID">;
15095
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
15096
- };
15097
- readonly todos: Schema.$Array<Schema.Struct<{
15098
- readonly content: Schema.String;
15099
- readonly status: Schema.String;
15100
- readonly priority: Schema.String;
15101
- }>>;
15102
- }>;
15103
14999
  }, Schema.Struct<{
15104
15000
  readonly id: Schema.brand<Schema.String, "Event.ID"> & {
15105
15001
  create: () => string & import("effect/Brand").Brand<"Event.ID">;
@@ -30,7 +30,6 @@ import { Skill } from "./skill.js";
30
30
  import { SessionCompactionEvent } from "./session-compaction-event.js";
31
31
  import { SessionEvent } from "./session-event.js";
32
32
  import { SessionStatusEvent } from "./session-status-event.js";
33
- import { SessionTodo } from "./session-todo.js";
34
33
  import { SessionV1 } from "./session-v1.js";
35
34
  import { TuiEvent } from "./tui-event.js";
36
35
  import { VcsEvent } from "./vcs-event.js";
@@ -41,7 +40,7 @@ const sessionV1LiveDefinitions = SessionV1.Event.Definitions.filter((definition)
41
40
  const coreDefinitions = Event.inventory(...sessionV1DurableDefinitions, ...SessionEvent.Definitions);
42
41
  const foundationDefinitions = Event.inventory(...ModelsDev.Event.Definitions, ...Integration.Event.Definitions, ...Catalog.Event.Definitions, ...Agent.Event.Definitions, ...coreDefinitions);
43
42
  const featureDefinitions = Event.inventory(...FileSystem.Event.Definitions, ...Reference.Event.Definitions, ...Permission.Event.Definitions, ...Plugin.Event.Definitions, ...ProjectDirectories.Event.Definitions, ...Command.Event.Definitions, ...Config.Event.Definitions, ...Skill.Event.Definitions, ...Pty.Event.Definitions, ...Shell.Event.Definitions, ...Question.Event.Definitions, ...Form.Event.Definitions);
44
- export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...featureDefinitions, ...SessionTodo.Event.Definitions,
43
+ export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...featureDefinitions,
45
44
  // Current events the TUI consumes from the public stream.
46
45
  ...SessionStatusEvent.Definitions, ...TuiEvent.Definitions, ...InstallationEvent.Definitions, ...VcsEvent.Definitions, McpEvent.StatusChanged, McpEvent.ResourcesChanged,
47
46
  // Shared transitional: V1 contracts the current TUI still consumes during
@@ -50,6 +49,6 @@ export const ServerDefinitions = Event.inventory(...foundationDefinitions, ...fe
50
49
  ...PermissionV1.Event.Definitions, ...QuestionV1.Event.Definitions, SessionV1.Error);
51
50
  export const Server = Event.latest(ServerDefinitions);
52
51
  export const isServer = (event) => Server.has(event.type);
53
- export const Definitions = Event.inventory(...foundationDefinitions, ...sessionV1LiveDefinitions, ...InstallationEvent.Definitions, ...featureDefinitions, ...SessionTodo.Event.Definitions, ...LspEvent.Definitions, ...PermissionV1.Event.Definitions, ...TuiEvent.Definitions, ...McpEvent.Definitions, ...LegacyEvent.Definitions, ...FileSystemV1.Event.Definitions, ...Project.Event.Definitions, ...SessionStatusEvent.Definitions, ...QuestionV1.Event.Definitions, ...SessionCompactionEvent.Definitions, ...VcsEvent.Definitions, ...WorkspaceEvent.Definitions, ...WorktreeEvent.Definitions, ...ServerEvent.Definitions);
52
+ export const Definitions = Event.inventory(...foundationDefinitions, ...sessionV1LiveDefinitions, ...InstallationEvent.Definitions, ...featureDefinitions, ...LspEvent.Definitions, ...PermissionV1.Event.Definitions, ...TuiEvent.Definitions, ...McpEvent.Definitions, ...LegacyEvent.Definitions, ...FileSystemV1.Event.Definitions, ...Project.Event.Definitions, ...SessionStatusEvent.Definitions, ...QuestionV1.Event.Definitions, ...SessionCompactionEvent.Definitions, ...VcsEvent.Definitions, ...WorkspaceEvent.Definitions, ...WorktreeEvent.Definitions, ...ServerEvent.Definitions);
54
53
  export const Latest = Event.latest(Definitions);
55
54
  export { Durable };
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-next-15183",
4
+ "version": "0.0.0-next-15191",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -1,117 +0,0 @@
1
- export * as SessionTodo from "./session-todo.js";
2
- import { Schema } from "effect";
3
- export declare const Info: Schema.Struct<{
4
- readonly content: Schema.String;
5
- readonly status: Schema.String;
6
- readonly priority: Schema.String;
7
- }>;
8
- export interface Info extends Schema.Schema.Type<typeof Info> {
9
- }
10
- export declare const Event: {
11
- Updated: Schema.Struct<{
12
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
13
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
14
- };
15
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
16
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
17
- readonly type: Schema.Literal<"todo.updated">;
18
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
19
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
20
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
21
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
22
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
23
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
24
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
25
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
26
- }>, never, never>;
27
- }>>>, Schema.optionalKey<Schema.Struct<{
28
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
29
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
30
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
31
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
32
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
33
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
34
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
35
- }>, never, never>;
36
- }>>, never, never>;
37
- readonly data: Schema.Struct<{
38
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
39
- create: () => string & import("effect/Brand").Brand<"SessionID">;
40
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
41
- };
42
- readonly todos: Schema.$Array<Schema.Struct<{
43
- readonly content: Schema.String;
44
- readonly status: Schema.String;
45
- readonly priority: Schema.String;
46
- }>>;
47
- }>;
48
- }> & {
49
- type: "todo.updated";
50
- durability: "ephemeral";
51
- durable: undefined;
52
- data: Schema.Struct<{
53
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
54
- create: () => string & import("effect/Brand").Brand<"SessionID">;
55
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
56
- };
57
- readonly todos: Schema.$Array<Schema.Struct<{
58
- readonly content: Schema.String;
59
- readonly status: Schema.String;
60
- readonly priority: Schema.String;
61
- }>>;
62
- }>;
63
- };
64
- Definitions: readonly [Schema.Struct<{
65
- readonly id: Schema.brand<Schema.String, "Event.ID"> & {
66
- create: () => string & import("effect/Brand").Brand<"Event.ID">;
67
- };
68
- readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
69
- readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
70
- readonly type: Schema.Literal<"todo.updated">;
71
- readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
72
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
73
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
74
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
75
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
76
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
77
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
78
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
79
- }>, never, never>;
80
- }>>>, Schema.optionalKey<Schema.Struct<{
81
- readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
82
- readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
83
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
84
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
85
- }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
86
- ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
87
- create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
88
- }>, never, never>;
89
- }>>, never, never>;
90
- readonly data: Schema.Struct<{
91
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
92
- create: () => string & import("effect/Brand").Brand<"SessionID">;
93
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
94
- };
95
- readonly todos: Schema.$Array<Schema.Struct<{
96
- readonly content: Schema.String;
97
- readonly status: Schema.String;
98
- readonly priority: Schema.String;
99
- }>>;
100
- }>;
101
- }> & {
102
- type: "todo.updated";
103
- durability: "ephemeral";
104
- durable: undefined;
105
- data: Schema.Struct<{
106
- readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
107
- create: () => string & import("effect/Brand").Brand<"SessionID">;
108
- descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
109
- };
110
- readonly todos: Schema.$Array<Schema.Struct<{
111
- readonly content: Schema.String;
112
- readonly status: Schema.String;
113
- readonly priority: Schema.String;
114
- }>>;
115
- }>;
116
- }];
117
- };
@@ -1,21 +0,0 @@
1
- export * as SessionTodo from "./session-todo.js";
2
- import { Schema } from "effect";
3
- import { ephemeral, inventory } from "./event.js";
4
- import { SessionID } from "./session-id.js";
5
- export const Info = Schema.Struct({
6
- content: Schema.String.annotate({ description: "Brief description of the task" }),
7
- status: Schema.String.annotate({
8
- description: "Current status of the task: pending, in_progress, completed, cancelled",
9
- }),
10
- priority: Schema.String.annotate({
11
- description: "Priority level of the task: high, medium, low",
12
- }),
13
- }).annotate({ identifier: "Todo" });
14
- const Updated = ephemeral({
15
- type: "todo.updated",
16
- schema: {
17
- sessionID: SessionID,
18
- todos: Schema.Array(Info),
19
- },
20
- });
21
- export const Event = { Updated, Definitions: inventory(Updated) };