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