@opencode-ai/protocol 0.0.0-next-14993 → 0.0.0-next-14997

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.
@@ -90,11 +90,17 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
90
90
  }>, Schema.Struct<{
91
91
  readonly text: Schema.String;
92
92
  readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
93
- readonly uri: Schema.String;
93
+ readonly data: Schema.String;
94
94
  readonly mime: Schema.String;
95
+ readonly source: Schema.Union<readonly [Schema.Struct<{
96
+ readonly type: Schema.Literal<"inline">;
97
+ }>, Schema.Struct<{
98
+ readonly type: Schema.Literal<"uri">;
99
+ readonly uri: Schema.String;
100
+ }>]>;
95
101
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
96
102
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
97
- readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
103
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
98
104
  readonly start: Schema.Finite;
99
105
  readonly end: Schema.Finite;
100
106
  readonly text: Schema.String;
@@ -105,22 +111,34 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
105
111
  }>>, never, never>;
106
112
  }> & {
107
113
  create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
108
- readonly uri: string;
114
+ readonly data: string;
109
115
  readonly mime: string;
116
+ readonly source: {
117
+ readonly type: "inline";
118
+ } | {
119
+ readonly type: "uri";
120
+ readonly uri: string;
121
+ };
110
122
  readonly name?: string | undefined;
111
123
  readonly description?: string | undefined;
112
- readonly source?: {
124
+ readonly mention?: {
113
125
  readonly start: number;
114
126
  readonly end: number;
115
127
  readonly text: string;
116
128
  } | undefined;
117
129
  };
118
130
  }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
119
- readonly uri: Schema.String;
131
+ readonly data: Schema.String;
120
132
  readonly mime: Schema.String;
133
+ readonly source: Schema.Union<readonly [Schema.Struct<{
134
+ readonly type: Schema.Literal<"inline">;
135
+ }>, Schema.Struct<{
136
+ readonly type: Schema.Literal<"uri">;
137
+ readonly uri: Schema.String;
138
+ }>]>;
121
139
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
122
140
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
123
- readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
141
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
124
142
  readonly start: Schema.Finite;
125
143
  readonly end: Schema.Finite;
126
144
  readonly text: Schema.String;
@@ -131,11 +149,17 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
131
149
  }>>, never, never>;
132
150
  }> & {
133
151
  create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
134
- readonly uri: string;
152
+ readonly data: string;
135
153
  readonly mime: string;
154
+ readonly source: {
155
+ readonly type: "inline";
156
+ } | {
157
+ readonly type: "uri";
158
+ readonly uri: string;
159
+ };
136
160
  readonly name?: string | undefined;
137
161
  readonly description?: string | undefined;
138
- readonly source?: {
162
+ readonly mention?: {
139
163
  readonly start: number;
140
164
  readonly end: number;
141
165
  readonly text: string;
@@ -144,7 +168,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
144
168
  }>>, never, never>;
145
169
  readonly agents: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
146
170
  readonly name: Schema.String;
147
- readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
171
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
148
172
  readonly start: Schema.Finite;
149
173
  readonly end: Schema.Finite;
150
174
  readonly text: Schema.String;
@@ -155,7 +179,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
155
179
  }>>, never, never>;
156
180
  }>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
157
181
  readonly name: Schema.String;
158
- readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
182
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
159
183
  readonly start: Schema.Finite;
160
184
  readonly end: Schema.Finite;
161
185
  readonly text: Schema.String;
@@ -322,11 +346,17 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
322
346
  readonly status: Schema.Literal<"completed">;
323
347
  readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
324
348
  readonly attachments: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
325
- readonly uri: Schema.String;
349
+ readonly data: Schema.String;
326
350
  readonly mime: Schema.String;
351
+ readonly source: Schema.Union<readonly [Schema.Struct<{
352
+ readonly type: Schema.Literal<"inline">;
353
+ }>, Schema.Struct<{
354
+ readonly type: Schema.Literal<"uri">;
355
+ readonly uri: Schema.String;
356
+ }>]>;
327
357
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
328
358
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
329
- readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
359
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
330
360
  readonly start: Schema.Finite;
331
361
  readonly end: Schema.Finite;
332
362
  readonly text: Schema.String;
@@ -337,22 +367,34 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
337
367
  }>>, never, never>;
338
368
  }> & {
339
369
  create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
340
- readonly uri: string;
370
+ readonly data: string;
341
371
  readonly mime: string;
372
+ readonly source: {
373
+ readonly type: "inline";
374
+ } | {
375
+ readonly type: "uri";
376
+ readonly uri: string;
377
+ };
342
378
  readonly name?: string | undefined;
343
379
  readonly description?: string | undefined;
344
- readonly source?: {
380
+ readonly mention?: {
345
381
  readonly start: number;
346
382
  readonly end: number;
347
383
  readonly text: string;
348
384
  } | undefined;
349
385
  };
350
386
  }>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
351
- readonly uri: Schema.String;
387
+ readonly data: Schema.String;
352
388
  readonly mime: Schema.String;
389
+ readonly source: Schema.Union<readonly [Schema.Struct<{
390
+ readonly type: Schema.Literal<"inline">;
391
+ }>, Schema.Struct<{
392
+ readonly type: Schema.Literal<"uri">;
393
+ readonly uri: Schema.String;
394
+ }>]>;
353
395
  readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
354
396
  readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
355
- readonly source: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
397
+ readonly mention: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
356
398
  readonly start: Schema.Finite;
357
399
  readonly end: Schema.Finite;
358
400
  readonly text: Schema.String;
@@ -363,11 +405,17 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
363
405
  }>>, never, never>;
364
406
  }> & {
365
407
  create: (input: import("@opencode-ai/schema/prompt").FileAttachment) => {
366
- readonly uri: string;
408
+ readonly data: string;
367
409
  readonly mime: string;
410
+ readonly source: {
411
+ readonly type: "inline";
412
+ } | {
413
+ readonly type: "uri";
414
+ readonly uri: string;
415
+ };
368
416
  readonly name?: string | undefined;
369
417
  readonly description?: string | undefined;
370
- readonly source?: {
418
+ readonly mention?: {
371
419
  readonly start: number;
372
420
  readonly end: number;
373
421
  readonly text: string;