@opencode-ai/schema 0.0.0-next-14659

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.
Files changed (133) hide show
  1. package/dist/agent.d.ts +175 -0
  2. package/dist/agent.js +43 -0
  3. package/dist/catalog.d.ts +89 -0
  4. package/dist/catalog.js +4 -0
  5. package/dist/command.d.ts +44 -0
  6. package/dist/command.js +12 -0
  7. package/dist/connection.d.ts +28 -0
  8. package/dist/connection.js +15 -0
  9. package/dist/credential.d.ts +36 -0
  10. package/dist/credential.js +23 -0
  11. package/dist/durable-event-manifest.d.ts +10626 -0
  12. package/dist/durable-event-manifest.js +12 -0
  13. package/dist/event-manifest.d.ts +15309 -0
  14. package/dist/event-manifest.js +43 -0
  15. package/dist/event.d.ts +82 -0
  16. package/dist/event.js +73 -0
  17. package/dist/file-diff.d.ts +11 -0
  18. package/dist/file-diff.js +10 -0
  19. package/dist/filesystem-watcher.d.ts +102 -0
  20. package/dist/filesystem-watcher.js +11 -0
  21. package/dist/filesystem.d.ts +134 -0
  22. package/dist/filesystem.js +32 -0
  23. package/dist/ide-event.d.ts +96 -0
  24. package/dist/ide-event.js +10 -0
  25. package/dist/identifier.d.ts +3 -0
  26. package/dist/identifier.js +24 -0
  27. package/dist/index.d.ts +29 -0
  28. package/dist/index.js +29 -0
  29. package/dist/installation-event.d.ts +189 -0
  30. package/dist/installation-event.js +16 -0
  31. package/dist/integration-id.d.ts +5 -0
  32. package/dist/integration-id.js +3 -0
  33. package/dist/integration.d.ts +572 -0
  34. package/dist/integration.js +93 -0
  35. package/dist/legacy-event.d.ts +1 -0
  36. package/dist/legacy-event.js +1 -0
  37. package/dist/llm.d.ts +28 -0
  38. package/dist/llm.js +19 -0
  39. package/dist/location.d.ts +36 -0
  40. package/dist/location.js +21 -0
  41. package/dist/lsp-event.d.ts +87 -0
  42. package/dist/lsp-event.js +4 -0
  43. package/dist/mcp-event.d.ts +286 -0
  44. package/dist/mcp-event.js +25 -0
  45. package/dist/mcp.d.ts +39 -0
  46. package/dist/mcp.js +38 -0
  47. package/dist/model.d.ts +205 -0
  48. package/dist/model.js +86 -0
  49. package/dist/models-dev.d.ts +89 -0
  50. package/dist/models-dev.js +7 -0
  51. package/dist/permission-saved.d.ts +18 -0
  52. package/dist/permission-saved.js +12 -0
  53. package/dist/permission-v1.d.ts +1 -0
  54. package/dist/permission-v1.js +1 -0
  55. package/dist/permission.d.ts +346 -0
  56. package/dist/permission.js +45 -0
  57. package/dist/plugin.d.ts +105 -0
  58. package/dist/plugin.js +12 -0
  59. package/dist/project-copy.d.ts +29 -0
  60. package/dist/project-copy.js +21 -0
  61. package/dist/project-directories.d.ts +105 -0
  62. package/dist/project-directories.js +8 -0
  63. package/dist/project-id.d.ts +5 -0
  64. package/dist/project-id.js +3 -0
  65. package/dist/project.d.ts +278 -0
  66. package/dist/project.js +44 -0
  67. package/dist/prompt-input.d.ts +106 -0
  68. package/dist/prompt-input.js +19 -0
  69. package/dist/prompt.d.ts +177 -0
  70. package/dist/prompt.js +43 -0
  71. package/dist/provider.d.ts +111 -0
  72. package/dist/provider.js +53 -0
  73. package/dist/pty-ticket.d.ts +8 -0
  74. package/dist/pty-ticket.js +7 -0
  75. package/dist/pty.d.ts +542 -0
  76. package/dist/pty.js +43 -0
  77. package/dist/question-v1.d.ts +1 -0
  78. package/dist/question-v1.js +1 -0
  79. package/dist/question.d.ts +516 -0
  80. package/dist/question.js +64 -0
  81. package/dist/reference.d.ts +140 -0
  82. package/dist/reference.js +31 -0
  83. package/dist/revert.d.ts +34 -0
  84. package/dist/revert.js +19 -0
  85. package/dist/schema.d.ts +10 -0
  86. package/dist/schema.js +14 -0
  87. package/dist/server-event.d.ts +172 -0
  88. package/dist/server-event.js +5 -0
  89. package/dist/session-compaction-event.d.ts +107 -0
  90. package/dist/session-compaction-event.js +10 -0
  91. package/dist/session-delivery.d.ts +4 -0
  92. package/dist/session-delivery.js +3 -0
  93. package/dist/session-event.d.ts +14225 -0
  94. package/dist/session-event.js +421 -0
  95. package/dist/session-id.d.ts +6 -0
  96. package/dist/session-id.js +10 -0
  97. package/dist/session-input.d.ts +145 -0
  98. package/dist/session-input.js +18 -0
  99. package/dist/session-message.d.ts +1318 -0
  100. package/dist/session-message.js +171 -0
  101. package/dist/session-status-event.d.ts +339 -0
  102. package/dist/session-status-event.js +43 -0
  103. package/dist/session-todo.d.ts +137 -0
  104. package/dist/session-todo.js +21 -0
  105. package/dist/session-v1.d.ts +1 -0
  106. package/dist/session-v1.js +1 -0
  107. package/dist/session.d.ts +140 -0
  108. package/dist/session.js +43 -0
  109. package/dist/shell.d.ts +441 -0
  110. package/dist/shell.js +58 -0
  111. package/dist/skill.d.ts +146 -0
  112. package/dist/skill.js +45 -0
  113. package/dist/tui-event.d.ts +387 -0
  114. package/dist/tui-event.js +53 -0
  115. package/dist/v1/legacy-event.d.ts +128 -0
  116. package/dist/v1/legacy-event.js +15 -0
  117. package/dist/v1/permission.d.ts +356 -0
  118. package/dist/v1/permission.js +41 -0
  119. package/dist/v1/question.d.ts +504 -0
  120. package/dist/v1/question.js +57 -0
  121. package/dist/v1/session.d.ts +7775 -0
  122. package/dist/v1/session.js +535 -0
  123. package/dist/vcs-event.d.ts +96 -0
  124. package/dist/vcs-event.js +11 -0
  125. package/dist/workspace-event.d.ts +307 -0
  126. package/dist/workspace-event.js +25 -0
  127. package/dist/workspace-id.d.ts +6 -0
  128. package/dist/workspace-id.js +16 -0
  129. package/dist/workspace.d.ts +9 -0
  130. package/dist/workspace.js +5 -0
  131. package/dist/worktree-event.d.ts +193 -0
  132. package/dist/worktree-event.js +18 -0
  133. package/package.json +41 -0
@@ -0,0 +1,29 @@
1
+ export { Agent } from "./agent.js";
2
+ export { Command } from "./command.js";
3
+ export { Connection } from "./connection.js";
4
+ export { Credential } from "./credential.js";
5
+ export { Event } from "./event.js";
6
+ export { FileSystem } from "./filesystem.js";
7
+ export { Integration } from "./integration.js";
8
+ export { LLM } from "./llm.js";
9
+ export { Location } from "./location.js";
10
+ export { Model } from "./model.js";
11
+ export { Permission } from "./permission.js";
12
+ export { PermissionSaved } from "./permission-saved.js";
13
+ export { Project } from "./project.js";
14
+ export { ProjectCopy } from "./project-copy.js";
15
+ export { Provider } from "./provider.js";
16
+ export { Reference } from "./reference.js";
17
+ export { Revert } from "./revert.js";
18
+ export { Session } from "./session.js";
19
+ export { SessionInput } from "./session-input.js";
20
+ export { SessionMessage } from "./session-message.js";
21
+ export { Shell } from "./shell.js";
22
+ export { Skill } from "./skill.js";
23
+ export { Pty } from "./pty.js";
24
+ export { PtyTicket } from "./pty-ticket.js";
25
+ export { Question } from "./question.js";
26
+ export { Workspace } from "./workspace.js";
27
+ export { Prompt, Source, FileAttachment, AgentAttachment } from "./prompt.js";
28
+ export { PromptInput } from "./prompt-input.js";
29
+ export * from "./schema.js";
package/dist/index.js ADDED
@@ -0,0 +1,29 @@
1
+ export { Agent } from "./agent.js";
2
+ export { Command } from "./command.js";
3
+ export { Connection } from "./connection.js";
4
+ export { Credential } from "./credential.js";
5
+ export { Event } from "./event.js";
6
+ export { FileSystem } from "./filesystem.js";
7
+ export { Integration } from "./integration.js";
8
+ export { LLM } from "./llm.js";
9
+ export { Location } from "./location.js";
10
+ export { Model } from "./model.js";
11
+ export { Permission } from "./permission.js";
12
+ export { PermissionSaved } from "./permission-saved.js";
13
+ export { Project } from "./project.js";
14
+ export { ProjectCopy } from "./project-copy.js";
15
+ export { Provider } from "./provider.js";
16
+ export { Reference } from "./reference.js";
17
+ export { Revert } from "./revert.js";
18
+ export { Session } from "./session.js";
19
+ export { SessionInput } from "./session-input.js";
20
+ export { SessionMessage } from "./session-message.js";
21
+ export { Shell } from "./shell.js";
22
+ export { Skill } from "./skill.js";
23
+ export { Pty } from "./pty.js";
24
+ export { PtyTicket } from "./pty-ticket.js";
25
+ export { Question } from "./question.js";
26
+ export { Workspace } from "./workspace.js";
27
+ export { Prompt, Source, FileAttachment, AgentAttachment } from "./prompt.js";
28
+ export { PromptInput } from "./prompt-input.js";
29
+ export * from "./schema.js";
@@ -0,0 +1,189 @@
1
+ export * as InstallationEvent from "./installation-event.js";
2
+ import { Schema } from "effect";
3
+ export declare const Updated: Schema.Struct<{
4
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
5
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
6
+ };
7
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
8
+ readonly type: Schema.Literal<"installation.updated">;
9
+ readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
10
+ readonly aggregateID: Schema.String;
11
+ readonly seq: Schema.Int;
12
+ readonly version: Schema.Int;
13
+ }>>>, Schema.optionalKey<Schema.Struct<{
14
+ readonly aggregateID: Schema.String;
15
+ readonly seq: Schema.Int;
16
+ readonly version: Schema.Int;
17
+ }>>, never, never>;
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 version: Schema.String;
39
+ }>;
40
+ }> & {
41
+ data: Schema.Struct<{
42
+ readonly version: Schema.String;
43
+ }>;
44
+ durable?: {
45
+ readonly version: number;
46
+ readonly aggregate: string;
47
+ } | undefined;
48
+ type: "installation.updated";
49
+ };
50
+ export declare const UpdateAvailable: Schema.Struct<{
51
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
52
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
53
+ };
54
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
55
+ readonly type: Schema.Literal<"installation.update-available">;
56
+ readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
57
+ readonly aggregateID: Schema.String;
58
+ readonly seq: Schema.Int;
59
+ readonly version: Schema.Int;
60
+ }>>>, Schema.optionalKey<Schema.Struct<{
61
+ readonly aggregateID: Schema.String;
62
+ readonly seq: Schema.Int;
63
+ readonly version: Schema.Int;
64
+ }>>, never, never>;
65
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
66
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
67
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
68
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
69
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
70
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
71
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
72
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
73
+ }>, never, never>;
74
+ }>>>, Schema.optionalKey<Schema.Struct<{
75
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
76
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<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
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
80
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
81
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
82
+ }>, never, never>;
83
+ }>>, never, never>;
84
+ readonly data: Schema.Struct<{
85
+ readonly version: Schema.String;
86
+ }>;
87
+ }> & {
88
+ data: Schema.Struct<{
89
+ readonly version: Schema.String;
90
+ }>;
91
+ durable?: {
92
+ readonly version: number;
93
+ readonly aggregate: string;
94
+ } | undefined;
95
+ type: "installation.update-available";
96
+ };
97
+ export declare const Definitions: readonly [Schema.Struct<{
98
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
99
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
100
+ };
101
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
102
+ readonly type: Schema.Literal<"installation.updated">;
103
+ readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
104
+ readonly aggregateID: Schema.String;
105
+ readonly seq: Schema.Int;
106
+ readonly version: Schema.Int;
107
+ }>>>, Schema.optionalKey<Schema.Struct<{
108
+ readonly aggregateID: Schema.String;
109
+ readonly seq: Schema.Int;
110
+ readonly version: Schema.Int;
111
+ }>>, never, never>;
112
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
113
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
114
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
115
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
116
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
117
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
118
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
119
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
120
+ }>, never, never>;
121
+ }>>>, Schema.optionalKey<Schema.Struct<{
122
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
123
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
124
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
125
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
126
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
127
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
128
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
129
+ }>, never, never>;
130
+ }>>, never, never>;
131
+ readonly data: Schema.Struct<{
132
+ readonly version: Schema.String;
133
+ }>;
134
+ }> & {
135
+ data: Schema.Struct<{
136
+ readonly version: Schema.String;
137
+ }>;
138
+ durable?: {
139
+ readonly version: number;
140
+ readonly aggregate: string;
141
+ } | undefined;
142
+ type: "installation.updated";
143
+ }, Schema.Struct<{
144
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
145
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
146
+ };
147
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
148
+ readonly type: Schema.Literal<"installation.update-available">;
149
+ readonly durable: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
150
+ readonly aggregateID: Schema.String;
151
+ readonly seq: Schema.Int;
152
+ readonly version: Schema.Int;
153
+ }>>>, Schema.optionalKey<Schema.Struct<{
154
+ readonly aggregateID: Schema.String;
155
+ readonly seq: Schema.Int;
156
+ readonly version: Schema.Int;
157
+ }>>, never, never>;
158
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
159
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
160
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
161
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
162
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
163
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
164
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
165
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
166
+ }>, never, never>;
167
+ }>>>, Schema.optionalKey<Schema.Struct<{
168
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
169
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
170
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
171
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
172
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
173
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
174
+ create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
175
+ }>, never, never>;
176
+ }>>, never, never>;
177
+ readonly data: Schema.Struct<{
178
+ readonly version: Schema.String;
179
+ }>;
180
+ }> & {
181
+ data: Schema.Struct<{
182
+ readonly version: Schema.String;
183
+ }>;
184
+ durable?: {
185
+ readonly version: number;
186
+ readonly aggregate: string;
187
+ } | undefined;
188
+ type: "installation.update-available";
189
+ }];
@@ -0,0 +1,16 @@
1
+ export * as InstallationEvent from "./installation-event.js";
2
+ import { Schema } from "effect";
3
+ import { Event } from "./event.js";
4
+ export const Updated = Event.define({
5
+ type: "installation.updated",
6
+ schema: {
7
+ version: Schema.String,
8
+ },
9
+ });
10
+ export const UpdateAvailable = Event.define({
11
+ type: "installation.update-available",
12
+ schema: {
13
+ version: Schema.String,
14
+ },
15
+ });
16
+ export const Definitions = Event.inventory(Updated, UpdateAvailable);
@@ -0,0 +1,5 @@
1
+ import { Schema } from "effect";
2
+ export declare const IntegrationID: Schema.brand<Schema.String, "Integration.ID">;
3
+ export type IntegrationID = typeof IntegrationID.Type;
4
+ export declare const IntegrationMethodID: Schema.brand<Schema.String, "Integration.MethodID">;
5
+ export type IntegrationMethodID = typeof IntegrationMethodID.Type;
@@ -0,0 +1,3 @@
1
+ import { Schema } from "effect";
2
+ export const IntegrationID = Schema.String.pipe(Schema.brand("Integration.ID"));
3
+ export const IntegrationMethodID = Schema.String.pipe(Schema.brand("Integration.MethodID"));