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,71 @@
|
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file agent/v1/agent_service.proto (package agent.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { AgentClientMessage, AgentServerMessage, BidiRequestId, GetAllowedModelIntentsRequest, GetAllowedModelIntentsResponse, GetDefaultModelForCliRequest, GetDefaultModelForCliResponse, GetUsableModelsRequest, GetUsableModelsResponse, NameAgentRequest, NameAgentResponse } from "./agent_pb.js";
|
|
7
|
+
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from service agent.v1.AgentService
|
|
11
|
+
*/
|
|
12
|
+
export const AgentService = {
|
|
13
|
+
typeName: "agent.v1.AgentService",
|
|
14
|
+
methods: {
|
|
15
|
+
/**
|
|
16
|
+
* @generated from rpc agent.v1.AgentService.Run
|
|
17
|
+
*/
|
|
18
|
+
run: {
|
|
19
|
+
name: "Run",
|
|
20
|
+
I: AgentClientMessage,
|
|
21
|
+
O: AgentServerMessage,
|
|
22
|
+
kind: MethodKind.BiDiStreaming,
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* @generated from rpc agent.v1.AgentService.RunSSE
|
|
26
|
+
*/
|
|
27
|
+
runSSE: {
|
|
28
|
+
name: "RunSSE",
|
|
29
|
+
I: BidiRequestId,
|
|
30
|
+
O: AgentServerMessage,
|
|
31
|
+
kind: MethodKind.ServerStreaming,
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc agent.v1.AgentService.NameAgent
|
|
35
|
+
*/
|
|
36
|
+
nameAgent: {
|
|
37
|
+
name: "NameAgent",
|
|
38
|
+
I: NameAgentRequest,
|
|
39
|
+
O: NameAgentResponse,
|
|
40
|
+
kind: MethodKind.Unary,
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* @generated from rpc agent.v1.AgentService.GetUsableModels
|
|
44
|
+
*/
|
|
45
|
+
getUsableModels: {
|
|
46
|
+
name: "GetUsableModels",
|
|
47
|
+
I: GetUsableModelsRequest,
|
|
48
|
+
O: GetUsableModelsResponse,
|
|
49
|
+
kind: MethodKind.Unary,
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* @generated from rpc agent.v1.AgentService.GetDefaultModelForCli
|
|
53
|
+
*/
|
|
54
|
+
getDefaultModelForCli: {
|
|
55
|
+
name: "GetDefaultModelForCli",
|
|
56
|
+
I: GetDefaultModelForCliRequest,
|
|
57
|
+
O: GetDefaultModelForCliResponse,
|
|
58
|
+
kind: MethodKind.Unary,
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* @generated from rpc agent.v1.AgentService.GetAllowedModelIntents
|
|
62
|
+
*/
|
|
63
|
+
getAllowedModelIntents: {
|
|
64
|
+
name: "GetAllowedModelIntents",
|
|
65
|
+
I: GetAllowedModelIntentsRequest,
|
|
66
|
+
O: GetAllowedModelIntentsResponse,
|
|
67
|
+
kind: MethodKind.Unary,
|
|
68
|
+
},
|
|
69
|
+
}
|
|
70
|
+
} as const;
|
|
71
|
+
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
|
|
2
|
+
// @generated from file agent/v1/apply_agent_diff_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 enum agent.v1.AppliedAgentChange_ChangeType
|
|
11
|
+
*/
|
|
12
|
+
export enum AppliedAgentChange_ChangeType {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from enum value: CHANGE_TYPE_UNSPECIFIED = 0;
|
|
15
|
+
*/
|
|
16
|
+
CHANGE_TYPE_UNSPECIFIED = 0,
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from enum value: CHANGE_TYPE_CREATED = 1;
|
|
20
|
+
*/
|
|
21
|
+
CHANGE_TYPE_CREATED = 1,
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: CHANGE_TYPE_MODIFIED = 2;
|
|
25
|
+
*/
|
|
26
|
+
CHANGE_TYPE_MODIFIED = 2,
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: CHANGE_TYPE_DELETED = 3;
|
|
30
|
+
*/
|
|
31
|
+
CHANGE_TYPE_DELETED = 3,
|
|
32
|
+
}
|
|
33
|
+
// Retrieve enum metadata with: proto3.getEnumType(AppliedAgentChange_ChangeType)
|
|
34
|
+
proto3.util.setEnumType(AppliedAgentChange_ChangeType, "agent.v1.AppliedAgentChange_ChangeType", [
|
|
35
|
+
{ no: 0, name: "CHANGE_TYPE_UNSPECIFIED" },
|
|
36
|
+
{ no: 1, name: "CHANGE_TYPE_CREATED" },
|
|
37
|
+
{ no: 2, name: "CHANGE_TYPE_MODIFIED" },
|
|
38
|
+
{ no: 3, name: "CHANGE_TYPE_DELETED" },
|
|
39
|
+
]);
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @generated from message agent.v1.ApplyAgentDiffToolCall
|
|
43
|
+
*/
|
|
44
|
+
export class ApplyAgentDiffToolCall extends Message<ApplyAgentDiffToolCall> {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from field: agent.v1.ApplyAgentDiffArgs args = 1;
|
|
47
|
+
*/
|
|
48
|
+
args?: ApplyAgentDiffArgs;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: agent.v1.ApplyAgentDiffResult result = 2;
|
|
52
|
+
*/
|
|
53
|
+
result?: ApplyAgentDiffResult;
|
|
54
|
+
|
|
55
|
+
constructor(data?: PartialMessage<ApplyAgentDiffToolCall>) {
|
|
56
|
+
super();
|
|
57
|
+
proto3.util.initPartial(data, this);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
61
|
+
static readonly typeName = "agent.v1.ApplyAgentDiffToolCall";
|
|
62
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
63
|
+
{ no: 1, name: "args", kind: "message", T: ApplyAgentDiffArgs },
|
|
64
|
+
{ no: 2, name: "result", kind: "message", T: ApplyAgentDiffResult },
|
|
65
|
+
]);
|
|
66
|
+
|
|
67
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApplyAgentDiffToolCall {
|
|
68
|
+
return new ApplyAgentDiffToolCall().fromBinary(bytes, options);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApplyAgentDiffToolCall {
|
|
72
|
+
return new ApplyAgentDiffToolCall().fromJson(jsonValue, options);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApplyAgentDiffToolCall {
|
|
76
|
+
return new ApplyAgentDiffToolCall().fromJsonString(jsonString, options);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
static equals(a: ApplyAgentDiffToolCall | PlainMessage<ApplyAgentDiffToolCall> | undefined, b: ApplyAgentDiffToolCall | PlainMessage<ApplyAgentDiffToolCall> | undefined): boolean {
|
|
80
|
+
return proto3.util.equals(ApplyAgentDiffToolCall, a, b);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @generated from message agent.v1.ApplyAgentDiffArgs
|
|
86
|
+
*/
|
|
87
|
+
export class ApplyAgentDiffArgs extends Message<ApplyAgentDiffArgs> {
|
|
88
|
+
/**
|
|
89
|
+
* @generated from field: string agent_id = 1;
|
|
90
|
+
*/
|
|
91
|
+
agentId = "";
|
|
92
|
+
|
|
93
|
+
constructor(data?: PartialMessage<ApplyAgentDiffArgs>) {
|
|
94
|
+
super();
|
|
95
|
+
proto3.util.initPartial(data, this);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
99
|
+
static readonly typeName = "agent.v1.ApplyAgentDiffArgs";
|
|
100
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
101
|
+
{ no: 1, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
102
|
+
]);
|
|
103
|
+
|
|
104
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApplyAgentDiffArgs {
|
|
105
|
+
return new ApplyAgentDiffArgs().fromBinary(bytes, options);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApplyAgentDiffArgs {
|
|
109
|
+
return new ApplyAgentDiffArgs().fromJson(jsonValue, options);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApplyAgentDiffArgs {
|
|
113
|
+
return new ApplyAgentDiffArgs().fromJsonString(jsonString, options);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
static equals(a: ApplyAgentDiffArgs | PlainMessage<ApplyAgentDiffArgs> | undefined, b: ApplyAgentDiffArgs | PlainMessage<ApplyAgentDiffArgs> | undefined): boolean {
|
|
117
|
+
return proto3.util.equals(ApplyAgentDiffArgs, a, b);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @generated from message agent.v1.ApplyAgentDiffResult
|
|
123
|
+
*/
|
|
124
|
+
export class ApplyAgentDiffResult extends Message<ApplyAgentDiffResult> {
|
|
125
|
+
/**
|
|
126
|
+
* @generated from oneof agent.v1.ApplyAgentDiffResult.result
|
|
127
|
+
*/
|
|
128
|
+
result: {
|
|
129
|
+
/**
|
|
130
|
+
* @generated from field: agent.v1.ApplyAgentDiffSuccess success = 1;
|
|
131
|
+
*/
|
|
132
|
+
value: ApplyAgentDiffSuccess;
|
|
133
|
+
case: "success";
|
|
134
|
+
} | {
|
|
135
|
+
/**
|
|
136
|
+
* @generated from field: agent.v1.ApplyAgentDiffError error = 2;
|
|
137
|
+
*/
|
|
138
|
+
value: ApplyAgentDiffError;
|
|
139
|
+
case: "error";
|
|
140
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
141
|
+
|
|
142
|
+
constructor(data?: PartialMessage<ApplyAgentDiffResult>) {
|
|
143
|
+
super();
|
|
144
|
+
proto3.util.initPartial(data, this);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
148
|
+
static readonly typeName = "agent.v1.ApplyAgentDiffResult";
|
|
149
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
150
|
+
{ no: 1, name: "success", kind: "message", T: ApplyAgentDiffSuccess, oneof: "result" },
|
|
151
|
+
{ no: 2, name: "error", kind: "message", T: ApplyAgentDiffError, oneof: "result" },
|
|
152
|
+
]);
|
|
153
|
+
|
|
154
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApplyAgentDiffResult {
|
|
155
|
+
return new ApplyAgentDiffResult().fromBinary(bytes, options);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApplyAgentDiffResult {
|
|
159
|
+
return new ApplyAgentDiffResult().fromJson(jsonValue, options);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApplyAgentDiffResult {
|
|
163
|
+
return new ApplyAgentDiffResult().fromJsonString(jsonString, options);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
static equals(a: ApplyAgentDiffResult | PlainMessage<ApplyAgentDiffResult> | undefined, b: ApplyAgentDiffResult | PlainMessage<ApplyAgentDiffResult> | undefined): boolean {
|
|
167
|
+
return proto3.util.equals(ApplyAgentDiffResult, a, b);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* @generated from message agent.v1.ApplyAgentDiffSuccess
|
|
173
|
+
*/
|
|
174
|
+
export class ApplyAgentDiffSuccess extends Message<ApplyAgentDiffSuccess> {
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: repeated agent.v1.AppliedAgentChange applied_changes = 1;
|
|
177
|
+
*/
|
|
178
|
+
appliedChanges: AppliedAgentChange[] = [];
|
|
179
|
+
|
|
180
|
+
constructor(data?: PartialMessage<ApplyAgentDiffSuccess>) {
|
|
181
|
+
super();
|
|
182
|
+
proto3.util.initPartial(data, this);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
186
|
+
static readonly typeName = "agent.v1.ApplyAgentDiffSuccess";
|
|
187
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
188
|
+
{ no: 1, name: "applied_changes", kind: "message", T: AppliedAgentChange, repeated: true },
|
|
189
|
+
]);
|
|
190
|
+
|
|
191
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApplyAgentDiffSuccess {
|
|
192
|
+
return new ApplyAgentDiffSuccess().fromBinary(bytes, options);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApplyAgentDiffSuccess {
|
|
196
|
+
return new ApplyAgentDiffSuccess().fromJson(jsonValue, options);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApplyAgentDiffSuccess {
|
|
200
|
+
return new ApplyAgentDiffSuccess().fromJsonString(jsonString, options);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
static equals(a: ApplyAgentDiffSuccess | PlainMessage<ApplyAgentDiffSuccess> | undefined, b: ApplyAgentDiffSuccess | PlainMessage<ApplyAgentDiffSuccess> | undefined): boolean {
|
|
204
|
+
return proto3.util.equals(ApplyAgentDiffSuccess, a, b);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @generated from message agent.v1.AppliedAgentChange
|
|
210
|
+
*/
|
|
211
|
+
export class AppliedAgentChange extends Message<AppliedAgentChange> {
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: string path = 1;
|
|
214
|
+
*/
|
|
215
|
+
path = "";
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @generated from field: agent.v1.AppliedAgentChange_ChangeType change_type = 2;
|
|
219
|
+
*/
|
|
220
|
+
changeType = AppliedAgentChange_ChangeType.CHANGE_TYPE_UNSPECIFIED;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: optional string before_content = 3;
|
|
224
|
+
*/
|
|
225
|
+
beforeContent?: string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: optional string after_content = 4;
|
|
229
|
+
*/
|
|
230
|
+
afterContent?: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @generated from field: optional string error = 5;
|
|
234
|
+
*/
|
|
235
|
+
error?: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @generated from field: optional string message_for_model = 6;
|
|
239
|
+
*/
|
|
240
|
+
messageForModel?: string;
|
|
241
|
+
|
|
242
|
+
constructor(data?: PartialMessage<AppliedAgentChange>) {
|
|
243
|
+
super();
|
|
244
|
+
proto3.util.initPartial(data, this);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
248
|
+
static readonly typeName = "agent.v1.AppliedAgentChange";
|
|
249
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
250
|
+
{ no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
251
|
+
{ no: 2, name: "change_type", kind: "enum", T: proto3.getEnumType(AppliedAgentChange_ChangeType) },
|
|
252
|
+
{ no: 3, name: "before_content", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
253
|
+
{ no: 4, name: "after_content", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
254
|
+
{ no: 5, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
255
|
+
{ no: 6, name: "message_for_model", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
256
|
+
]);
|
|
257
|
+
|
|
258
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AppliedAgentChange {
|
|
259
|
+
return new AppliedAgentChange().fromBinary(bytes, options);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AppliedAgentChange {
|
|
263
|
+
return new AppliedAgentChange().fromJson(jsonValue, options);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AppliedAgentChange {
|
|
267
|
+
return new AppliedAgentChange().fromJsonString(jsonString, options);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
static equals(a: AppliedAgentChange | PlainMessage<AppliedAgentChange> | undefined, b: AppliedAgentChange | PlainMessage<AppliedAgentChange> | undefined): boolean {
|
|
271
|
+
return proto3.util.equals(AppliedAgentChange, a, b);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* @generated from message agent.v1.ApplyAgentDiffError
|
|
277
|
+
*/
|
|
278
|
+
export class ApplyAgentDiffError extends Message<ApplyAgentDiffError> {
|
|
279
|
+
/**
|
|
280
|
+
* @generated from field: string error = 1;
|
|
281
|
+
*/
|
|
282
|
+
error = "";
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* @generated from field: repeated agent.v1.AppliedAgentChange applied_changes = 2;
|
|
286
|
+
*/
|
|
287
|
+
appliedChanges: AppliedAgentChange[] = [];
|
|
288
|
+
|
|
289
|
+
constructor(data?: PartialMessage<ApplyAgentDiffError>) {
|
|
290
|
+
super();
|
|
291
|
+
proto3.util.initPartial(data, this);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
295
|
+
static readonly typeName = "agent.v1.ApplyAgentDiffError";
|
|
296
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
297
|
+
{ no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
298
|
+
{ no: 2, name: "applied_changes", kind: "message", T: AppliedAgentChange, repeated: true },
|
|
299
|
+
]);
|
|
300
|
+
|
|
301
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ApplyAgentDiffError {
|
|
302
|
+
return new ApplyAgentDiffError().fromBinary(bytes, options);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ApplyAgentDiffError {
|
|
306
|
+
return new ApplyAgentDiffError().fromJson(jsonValue, options);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ApplyAgentDiffError {
|
|
310
|
+
return new ApplyAgentDiffError().fromJsonString(jsonString, options);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
static equals(a: ApplyAgentDiffError | PlainMessage<ApplyAgentDiffError> | undefined, b: ApplyAgentDiffError | PlainMessage<ApplyAgentDiffError> | undefined): boolean {
|
|
314
|
+
return proto3.util.equals(ApplyAgentDiffError, a, b);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|