pi-cursor-agent 0.1.0
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/LICENSE +19 -0
- package/README.md +45 -0
- package/package.json +50 -0
- package/src/__generated__/agent/v1/agent_pb.ts +4642 -0
- package/src/__generated__/agent/v1/agent_service_connect.ts +71 -0
- package/src/__generated__/agent/v1/apply_agent_diff_tool_pb.ts +317 -0
- package/src/__generated__/agent/v1/ask_question_tool_pb.ts +588 -0
- package/src/__generated__/agent/v1/background_shell_exec_pb.ts +245 -0
- package/src/__generated__/agent/v1/computer_use_tool_pb.ts +959 -0
- package/src/__generated__/agent/v1/control_service_connect.ts +144 -0
- package/src/__generated__/agent/v1/control_service_pb.ts +1308 -0
- package/src/__generated__/agent/v1/create_plan_tool_pb.ts +366 -0
- package/src/__generated__/agent/v1/cursor_packages_pb.ts +278 -0
- package/src/__generated__/agent/v1/cursor_rules_pb.ts +301 -0
- package/src/__generated__/agent/v1/delete_exec_pb.ts +443 -0
- package/src/__generated__/agent/v1/delete_tool_pb.ts +52 -0
- package/src/__generated__/agent/v1/diagnostics_exec_pb.ts +399 -0
- package/src/__generated__/agent/v1/edit_tool_pb.ts +497 -0
- package/src/__generated__/agent/v1/exa_fetch_tool_pb.ts +472 -0
- package/src/__generated__/agent/v1/exa_search_tool_pb.ts +484 -0
- package/src/__generated__/agent/v1/exec_pb.ts +1271 -0
- package/src/__generated__/agent/v1/exec_service_connect.ts +14 -0
- package/src/__generated__/agent/v1/fetch_tool_pb.ts +242 -0
- package/src/__generated__/agent/v1/generate_image_tool_pb.ts +230 -0
- package/src/__generated__/agent/v1/glob_tool_pb.ts +248 -0
- package/src/__generated__/agent/v1/grep_exec_pb.ts +690 -0
- package/src/__generated__/agent/v1/grep_tool_pb.ts +52 -0
- package/src/__generated__/agent/v1/kv_pb.ts +281 -0
- package/src/__generated__/agent/v1/ls_exec_pb.ts +295 -0
- package/src/__generated__/agent/v1/ls_tool_pb.ts +52 -0
- package/src/__generated__/agent/v1/mcp_pb.ts +302 -0
- package/src/__generated__/agent/v1/mcp_resource_tool_pb.ts +688 -0
- package/src/__generated__/agent/v1/mcp_tool_pb.ts +630 -0
- package/src/__generated__/agent/v1/private_worker_bridge_external_connect.ts +26 -0
- package/src/__generated__/agent/v1/read_exec_pb.ts +412 -0
- package/src/__generated__/agent/v1/read_lints_tool_pb.ts +384 -0
- package/src/__generated__/agent/v1/read_tool_pb.ts +342 -0
- package/src/__generated__/agent/v1/record_screen_tool_pb.ts +376 -0
- package/src/__generated__/agent/v1/reflect_tool_pb.ts +236 -0
- package/src/__generated__/agent/v1/repo_pb.ts +154 -0
- package/src/__generated__/agent/v1/report_bugfix_results_tool_pb.ts +305 -0
- package/src/__generated__/agent/v1/request_context_exec_pb.ts +528 -0
- package/src/__generated__/agent/v1/sandbox_pb.ts +125 -0
- package/src/__generated__/agent/v1/selected_context_pb.ts +2272 -0
- package/src/__generated__/agent/v1/semsearch_tool_pb.ts +230 -0
- package/src/__generated__/agent/v1/setup_vm_environment_tool_pb.ts +168 -0
- package/src/__generated__/agent/v1/shell_exec_pb.ts +1195 -0
- package/src/__generated__/agent/v1/shell_tool_pb.ts +176 -0
- package/src/__generated__/agent/v1/start_grind_execution_tool_pb.ts +212 -0
- package/src/__generated__/agent/v1/start_grind_planning_tool_pb.ts +212 -0
- package/src/__generated__/agent/v1/subagents_pb.ts +1106 -0
- package/src/__generated__/agent/v1/switch_mode_tool_pb.ts +429 -0
- package/src/__generated__/agent/v1/todo_tool_pb.ts +551 -0
- package/src/__generated__/agent/v1/utils_pb.ts +348 -0
- package/src/__generated__/agent/v1/web_fetch_tool_pb.ts +429 -0
- package/src/__generated__/agent/v1/web_search_tool_pb.ts +466 -0
- package/src/__generated__/agent/v1/write_exec_pb.ts +379 -0
- package/src/__generated__/agent/v1/write_shell_stdin_tool_pb.ts +224 -0
- package/src/__generated__/aiserver/v1/aiserver_service_connect.ts +40 -0
- package/src/api/agent-service.ts +55 -0
- package/src/api/ai-service.ts +42 -0
- package/src/api/auth.ts +74 -0
- package/src/index.ts +101 -0
- package/src/lib/agent-store/disk.ts +139 -0
- package/src/lib/agent-store/index.ts +72 -0
- package/src/lib/agent-store/json-blob-store.ts +47 -0
- package/src/lib/auth.ts +135 -0
- package/src/lib/backoff.ts +32 -0
- package/src/lib/env.ts +3 -0
- package/src/lib/heartbeat.ts +21 -0
- package/src/pi/agent-store.ts +102 -0
- package/src/pi/env.ts +11 -0
- package/src/pi/executors/delete.ts +129 -0
- package/src/pi/executors/grep.ts +238 -0
- package/src/pi/executors/hook.ts +64 -0
- package/src/pi/executors/ls.ts +107 -0
- package/src/pi/executors/read.ts +73 -0
- package/src/pi/executors/request-context.ts +120 -0
- package/src/pi/executors/shell-stream.ts +136 -0
- package/src/pi/executors/shell.ts +157 -0
- package/src/pi/executors/stubs.ts +173 -0
- package/src/pi/executors/write.ts +189 -0
- package/src/pi/local-resource-provider/index.ts +10 -0
- package/src/pi/local-resource-provider/provider.ts +98 -0
- package/src/pi/local-resource-provider/types.ts +110 -0
- package/src/pi/model-mapping.ts +115 -0
- package/src/pi/model-override.ts +110 -0
- package/src/pi/model.ts +61 -0
- package/src/pi/request-builder.ts +279 -0
- package/src/pi/utils/tool-result.ts +35 -0
- package/src/stream.ts +386 -0
- package/src/tool-host.ts +44 -0
- package/src/vendor/agent-client/checkpoint-controller.ts +34 -0
- package/src/vendor/agent-client/connect.ts +348 -0
- package/src/vendor/agent-client/exec-controller.ts +102 -0
- package/src/vendor/agent-client/index.ts +25 -0
- package/src/vendor/agent-client/interaction-controller.ts +96 -0
- package/src/vendor/agent-client/split-stream.ts +143 -0
- package/src/vendor/agent-core/index.ts +9 -0
- package/src/vendor/agent-core/interaction-conversion.ts +558 -0
- package/src/vendor/agent-exec/controlled.ts +104 -0
- package/src/vendor/agent-exec/index.ts +45 -0
- package/src/vendor/agent-exec/registry-resource-accessor.ts +39 -0
- package/src/vendor/agent-exec/resources.ts +121 -0
- package/src/vendor/agent-exec/serialization.ts +22 -0
- package/src/vendor/agent-exec/simple-controlled-exec-manager.ts +161 -0
- package/src/vendor/agent-kv/agent-store.ts +115 -0
- package/src/vendor/agent-kv/blob-store.ts +36 -0
- package/src/vendor/agent-kv/controlled.ts +117 -0
- package/src/vendor/agent-kv/index.ts +15 -0
- package/src/vendor/agent-kv/serde.ts +44 -0
- package/src/vendor/local-exec/common.ts +19 -0
- package/src/vendor/local-exec/git-executor.ts +37 -0
- package/src/vendor/local-exec/git-helpers.ts +79 -0
- package/src/vendor/local-exec/index.ts +8 -0
- package/src/vendor/utils/index.ts +5 -0
- package/src/vendor/utils/map-writable.ts +34 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file agent/v1/read_tool.proto (package agent.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message agent.v1.ReadToolCall
|
|
11
|
+
*/
|
|
12
|
+
export class ReadToolCall extends Message<ReadToolCall> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: agent.v1.ReadToolArgs args = 1;
|
|
15
|
+
*/
|
|
16
|
+
args?: ReadToolArgs;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: agent.v1.ReadToolResult result = 2;
|
|
20
|
+
*/
|
|
21
|
+
result?: ReadToolResult;
|
|
22
|
+
|
|
23
|
+
constructor(data?: PartialMessage<ReadToolCall>) {
|
|
24
|
+
super();
|
|
25
|
+
proto3.util.initPartial(data, this);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
29
|
+
static readonly typeName = "agent.v1.ReadToolCall";
|
|
30
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
31
|
+
{ no: 1, name: "args", kind: "message", T: ReadToolArgs },
|
|
32
|
+
{ no: 2, name: "result", kind: "message", T: ReadToolResult },
|
|
33
|
+
]);
|
|
34
|
+
|
|
35
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReadToolCall {
|
|
36
|
+
return new ReadToolCall().fromBinary(bytes, options);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReadToolCall {
|
|
40
|
+
return new ReadToolCall().fromJson(jsonValue, options);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReadToolCall {
|
|
44
|
+
return new ReadToolCall().fromJsonString(jsonString, options);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static equals(a: ReadToolCall | PlainMessage<ReadToolCall> | undefined, b: ReadToolCall | PlainMessage<ReadToolCall> | undefined): boolean {
|
|
48
|
+
return proto3.util.equals(ReadToolCall, a, b);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @generated from message agent.v1.ReadToolArgs
|
|
54
|
+
*/
|
|
55
|
+
export class ReadToolArgs extends Message<ReadToolArgs> {
|
|
56
|
+
/**
|
|
57
|
+
* @generated from field: string path = 1;
|
|
58
|
+
*/
|
|
59
|
+
path = "";
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @generated from field: optional int32 offset = 2;
|
|
63
|
+
*/
|
|
64
|
+
offset?: number;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: optional int32 limit = 3;
|
|
68
|
+
*/
|
|
69
|
+
limit?: number;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: optional bool include_line_numbers = 5;
|
|
73
|
+
*/
|
|
74
|
+
includeLineNumbers?: boolean;
|
|
75
|
+
|
|
76
|
+
constructor(data?: PartialMessage<ReadToolArgs>) {
|
|
77
|
+
super();
|
|
78
|
+
proto3.util.initPartial(data, this);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
82
|
+
static readonly typeName = "agent.v1.ReadToolArgs";
|
|
83
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
84
|
+
{ no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
85
|
+
{ no: 2, name: "offset", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
86
|
+
{ no: 3, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
87
|
+
{ no: 5, name: "include_line_numbers", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
88
|
+
]);
|
|
89
|
+
|
|
90
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReadToolArgs {
|
|
91
|
+
return new ReadToolArgs().fromBinary(bytes, options);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReadToolArgs {
|
|
95
|
+
return new ReadToolArgs().fromJson(jsonValue, options);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReadToolArgs {
|
|
99
|
+
return new ReadToolArgs().fromJsonString(jsonString, options);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
static equals(a: ReadToolArgs | PlainMessage<ReadToolArgs> | undefined, b: ReadToolArgs | PlainMessage<ReadToolArgs> | undefined): boolean {
|
|
103
|
+
return proto3.util.equals(ReadToolArgs, a, b);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @generated from message agent.v1.ReadToolResult
|
|
109
|
+
*/
|
|
110
|
+
export class ReadToolResult extends Message<ReadToolResult> {
|
|
111
|
+
/**
|
|
112
|
+
* @generated from oneof agent.v1.ReadToolResult.result
|
|
113
|
+
*/
|
|
114
|
+
result: {
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: agent.v1.ReadToolSuccess success = 1;
|
|
117
|
+
*/
|
|
118
|
+
value: ReadToolSuccess;
|
|
119
|
+
case: "success";
|
|
120
|
+
} | {
|
|
121
|
+
/**
|
|
122
|
+
* @generated from field: agent.v1.ReadToolError error = 2;
|
|
123
|
+
*/
|
|
124
|
+
value: ReadToolError;
|
|
125
|
+
case: "error";
|
|
126
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
127
|
+
|
|
128
|
+
constructor(data?: PartialMessage<ReadToolResult>) {
|
|
129
|
+
super();
|
|
130
|
+
proto3.util.initPartial(data, this);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
134
|
+
static readonly typeName = "agent.v1.ReadToolResult";
|
|
135
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
136
|
+
{ no: 1, name: "success", kind: "message", T: ReadToolSuccess, oneof: "result" },
|
|
137
|
+
{ no: 2, name: "error", kind: "message", T: ReadToolError, oneof: "result" },
|
|
138
|
+
]);
|
|
139
|
+
|
|
140
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReadToolResult {
|
|
141
|
+
return new ReadToolResult().fromBinary(bytes, options);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReadToolResult {
|
|
145
|
+
return new ReadToolResult().fromJson(jsonValue, options);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReadToolResult {
|
|
149
|
+
return new ReadToolResult().fromJsonString(jsonString, options);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
static equals(a: ReadToolResult | PlainMessage<ReadToolResult> | undefined, b: ReadToolResult | PlainMessage<ReadToolResult> | undefined): boolean {
|
|
153
|
+
return proto3.util.equals(ReadToolResult, a, b);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @generated from message agent.v1.ReadRange
|
|
159
|
+
*/
|
|
160
|
+
export class ReadRange extends Message<ReadRange> {
|
|
161
|
+
/**
|
|
162
|
+
* @generated from field: uint32 start_line = 1;
|
|
163
|
+
*/
|
|
164
|
+
startLine = 0;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* @generated from field: uint32 end_line = 2;
|
|
168
|
+
*/
|
|
169
|
+
endLine = 0;
|
|
170
|
+
|
|
171
|
+
constructor(data?: PartialMessage<ReadRange>) {
|
|
172
|
+
super();
|
|
173
|
+
proto3.util.initPartial(data, this);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
177
|
+
static readonly typeName = "agent.v1.ReadRange";
|
|
178
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
179
|
+
{ no: 1, name: "start_line", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
180
|
+
{ no: 2, name: "end_line", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
181
|
+
]);
|
|
182
|
+
|
|
183
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReadRange {
|
|
184
|
+
return new ReadRange().fromBinary(bytes, options);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReadRange {
|
|
188
|
+
return new ReadRange().fromJson(jsonValue, options);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReadRange {
|
|
192
|
+
return new ReadRange().fromJsonString(jsonString, options);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
static equals(a: ReadRange | PlainMessage<ReadRange> | undefined, b: ReadRange | PlainMessage<ReadRange> | undefined): boolean {
|
|
196
|
+
return proto3.util.equals(ReadRange, a, b);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @generated from message agent.v1.ReadToolSuccess
|
|
202
|
+
*/
|
|
203
|
+
export class ReadToolSuccess extends Message<ReadToolSuccess> {
|
|
204
|
+
/**
|
|
205
|
+
* @generated from field: bool is_empty = 2;
|
|
206
|
+
*/
|
|
207
|
+
isEmpty = false;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* @generated from field: bool exceeded_limit = 3;
|
|
211
|
+
*/
|
|
212
|
+
exceededLimit = false;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @generated from field: uint32 total_lines = 4;
|
|
216
|
+
*/
|
|
217
|
+
totalLines = 0;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @generated from field: uint32 file_size = 5;
|
|
221
|
+
*/
|
|
222
|
+
fileSize = 0;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @generated from field: string path = 7;
|
|
226
|
+
*/
|
|
227
|
+
path = "";
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @generated from field: optional agent.v1.ReadRange read_range = 8;
|
|
231
|
+
*/
|
|
232
|
+
readRange?: ReadRange;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @generated from oneof agent.v1.ReadToolSuccess.output
|
|
236
|
+
*/
|
|
237
|
+
output: {
|
|
238
|
+
/**
|
|
239
|
+
* @generated from field: string content = 1;
|
|
240
|
+
*/
|
|
241
|
+
value: string;
|
|
242
|
+
case: "content";
|
|
243
|
+
} | {
|
|
244
|
+
/**
|
|
245
|
+
* @generated from field: bytes data = 6;
|
|
246
|
+
*/
|
|
247
|
+
value: Uint8Array;
|
|
248
|
+
case: "data";
|
|
249
|
+
} | {
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: bytes data_blob_id = 9;
|
|
252
|
+
*/
|
|
253
|
+
value: Uint8Array;
|
|
254
|
+
case: "dataBlobId";
|
|
255
|
+
} | {
|
|
256
|
+
/**
|
|
257
|
+
* @generated from field: bytes content_blob_id = 10;
|
|
258
|
+
*/
|
|
259
|
+
value: Uint8Array;
|
|
260
|
+
case: "contentBlobId";
|
|
261
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @generated from field: optional bool include_line_numbers = 11;
|
|
265
|
+
*/
|
|
266
|
+
includeLineNumbers?: boolean;
|
|
267
|
+
|
|
268
|
+
constructor(data?: PartialMessage<ReadToolSuccess>) {
|
|
269
|
+
super();
|
|
270
|
+
proto3.util.initPartial(data, this);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
274
|
+
static readonly typeName = "agent.v1.ReadToolSuccess";
|
|
275
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
276
|
+
{ no: 2, name: "is_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
277
|
+
{ no: 3, name: "exceeded_limit", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
278
|
+
{ no: 4, name: "total_lines", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
279
|
+
{ no: 5, name: "file_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
280
|
+
{ no: 7, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
281
|
+
{ no: 8, name: "read_range", kind: "message", T: ReadRange, opt: true },
|
|
282
|
+
{ no: 1, name: "content", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "output" },
|
|
283
|
+
{ no: 6, name: "data", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "output" },
|
|
284
|
+
{ no: 9, name: "data_blob_id", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "output" },
|
|
285
|
+
{ no: 10, name: "content_blob_id", kind: "scalar", T: 12 /* ScalarType.BYTES */, oneof: "output" },
|
|
286
|
+
{ no: 11, name: "include_line_numbers", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
287
|
+
]);
|
|
288
|
+
|
|
289
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReadToolSuccess {
|
|
290
|
+
return new ReadToolSuccess().fromBinary(bytes, options);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReadToolSuccess {
|
|
294
|
+
return new ReadToolSuccess().fromJson(jsonValue, options);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReadToolSuccess {
|
|
298
|
+
return new ReadToolSuccess().fromJsonString(jsonString, options);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
static equals(a: ReadToolSuccess | PlainMessage<ReadToolSuccess> | undefined, b: ReadToolSuccess | PlainMessage<ReadToolSuccess> | undefined): boolean {
|
|
302
|
+
return proto3.util.equals(ReadToolSuccess, a, b);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @generated from message agent.v1.ReadToolError
|
|
308
|
+
*/
|
|
309
|
+
export class ReadToolError extends Message<ReadToolError> {
|
|
310
|
+
/**
|
|
311
|
+
* @generated from field: string error_message = 1;
|
|
312
|
+
*/
|
|
313
|
+
errorMessage = "";
|
|
314
|
+
|
|
315
|
+
constructor(data?: PartialMessage<ReadToolError>) {
|
|
316
|
+
super();
|
|
317
|
+
proto3.util.initPartial(data, this);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
321
|
+
static readonly typeName = "agent.v1.ReadToolError";
|
|
322
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
323
|
+
{ no: 1, name: "error_message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
324
|
+
]);
|
|
325
|
+
|
|
326
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReadToolError {
|
|
327
|
+
return new ReadToolError().fromBinary(bytes, options);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReadToolError {
|
|
331
|
+
return new ReadToolError().fromJson(jsonValue, options);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReadToolError {
|
|
335
|
+
return new ReadToolError().fromJsonString(jsonString, options);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
static equals(a: ReadToolError | PlainMessage<ReadToolError> | undefined, b: ReadToolError | PlainMessage<ReadToolError> | undefined): boolean {
|
|
339
|
+
return proto3.util.equals(ReadToolError, a, b);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|