cline 1.0.0-nightly.14 → 1.0.0-nightly.16
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/bin/cline +0 -0
- package/bin/cline-darwin-amd64 +0 -0
- package/bin/cline-darwin-arm64 +0 -0
- package/bin/cline-host +0 -0
- package/bin/cline-host-darwin-amd64 +0 -0
- package/bin/cline-host-darwin-arm64 +0 -0
- package/bin/cline-host-linux-amd64 +0 -0
- package/bin/cline-host-linux-arm64 +0 -0
- package/bin/cline-linux-amd64 +0 -0
- package/bin/cline-linux-arm64 +0 -0
- package/cline-core.js +1917 -7
- package/extension/package.json +2 -1
- package/package.json +1 -1
- package/proto/cline/hooks.proto +40 -7
- package/proto/descriptor_set.pb +0 -0
package/cline-core.js
CHANGED
|
@@ -41658,7 +41658,13 @@ function createBaseHookInput() {
|
|
|
41658
41658
|
workspaceRoots: [],
|
|
41659
41659
|
userId: "",
|
|
41660
41660
|
preToolUse: void 0,
|
|
41661
|
-
postToolUse: void 0
|
|
41661
|
+
postToolUse: void 0,
|
|
41662
|
+
userPromptSubmit: void 0,
|
|
41663
|
+
taskStart: void 0,
|
|
41664
|
+
taskResume: void 0,
|
|
41665
|
+
taskCancel: void 0,
|
|
41666
|
+
taskComplete: void 0,
|
|
41667
|
+
preCompact: void 0
|
|
41662
41668
|
};
|
|
41663
41669
|
}
|
|
41664
41670
|
function createBaseHookOutput() {
|
|
@@ -41676,6 +41682,39 @@ function createBasePostToolUseData() {
|
|
|
41676
41682
|
function createBasePostToolUseData_ParametersEntry() {
|
|
41677
41683
|
return { key: "", value: "" };
|
|
41678
41684
|
}
|
|
41685
|
+
function createBaseUserPromptSubmitData() {
|
|
41686
|
+
return { prompt: "", attachments: [] };
|
|
41687
|
+
}
|
|
41688
|
+
function createBaseTaskStartData() {
|
|
41689
|
+
return { taskMetadata: {} };
|
|
41690
|
+
}
|
|
41691
|
+
function createBaseTaskStartData_TaskMetadataEntry() {
|
|
41692
|
+
return { key: "", value: "" };
|
|
41693
|
+
}
|
|
41694
|
+
function createBaseTaskResumeData() {
|
|
41695
|
+
return { taskMetadata: {}, previousState: {} };
|
|
41696
|
+
}
|
|
41697
|
+
function createBaseTaskResumeData_TaskMetadataEntry() {
|
|
41698
|
+
return { key: "", value: "" };
|
|
41699
|
+
}
|
|
41700
|
+
function createBaseTaskResumeData_PreviousStateEntry() {
|
|
41701
|
+
return { key: "", value: "" };
|
|
41702
|
+
}
|
|
41703
|
+
function createBaseTaskCancelData() {
|
|
41704
|
+
return { taskMetadata: {} };
|
|
41705
|
+
}
|
|
41706
|
+
function createBaseTaskCancelData_TaskMetadataEntry() {
|
|
41707
|
+
return { key: "", value: "" };
|
|
41708
|
+
}
|
|
41709
|
+
function createBaseTaskCompleteData() {
|
|
41710
|
+
return { taskMetadata: {} };
|
|
41711
|
+
}
|
|
41712
|
+
function createBaseTaskCompleteData_TaskMetadataEntry() {
|
|
41713
|
+
return { key: "", value: "" };
|
|
41714
|
+
}
|
|
41715
|
+
function createBasePreCompactData() {
|
|
41716
|
+
return { contextSize: 0, messagesToCompact: 0, compactionStrategy: "" };
|
|
41717
|
+
}
|
|
41679
41718
|
function longToNumber4(int64) {
|
|
41680
41719
|
const num = globalThis.Number(int64.toString());
|
|
41681
41720
|
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
@@ -41692,7 +41731,7 @@ function isObject5(value) {
|
|
|
41692
41731
|
function isSet9(value) {
|
|
41693
41732
|
return value !== null && value !== void 0;
|
|
41694
41733
|
}
|
|
41695
|
-
var HookInput, HookOutput, PreToolUseData, PreToolUseData_ParametersEntry, PostToolUseData, PostToolUseData_ParametersEntry;
|
|
41734
|
+
var HookInput, HookOutput, PreToolUseData, PreToolUseData_ParametersEntry, PostToolUseData, PostToolUseData_ParametersEntry, UserPromptSubmitData, TaskStartData, TaskStartData_TaskMetadataEntry, TaskResumeData, TaskResumeData_TaskMetadataEntry, TaskResumeData_PreviousStateEntry, TaskCancelData, TaskCancelData_TaskMetadataEntry, TaskCompleteData, TaskCompleteData_TaskMetadataEntry, PreCompactData;
|
|
41696
41735
|
var init_hooks = __esm({
|
|
41697
41736
|
"src/shared/proto/cline/hooks.ts"() {
|
|
41698
41737
|
"use strict";
|
|
@@ -41723,6 +41762,24 @@ var init_hooks = __esm({
|
|
|
41723
41762
|
if (message.postToolUse !== void 0) {
|
|
41724
41763
|
PostToolUseData.encode(message.postToolUse, writer.uint32(90).fork()).join();
|
|
41725
41764
|
}
|
|
41765
|
+
if (message.userPromptSubmit !== void 0) {
|
|
41766
|
+
UserPromptSubmitData.encode(message.userPromptSubmit, writer.uint32(98).fork()).join();
|
|
41767
|
+
}
|
|
41768
|
+
if (message.taskStart !== void 0) {
|
|
41769
|
+
TaskStartData.encode(message.taskStart, writer.uint32(106).fork()).join();
|
|
41770
|
+
}
|
|
41771
|
+
if (message.taskResume !== void 0) {
|
|
41772
|
+
TaskResumeData.encode(message.taskResume, writer.uint32(114).fork()).join();
|
|
41773
|
+
}
|
|
41774
|
+
if (message.taskCancel !== void 0) {
|
|
41775
|
+
TaskCancelData.encode(message.taskCancel, writer.uint32(122).fork()).join();
|
|
41776
|
+
}
|
|
41777
|
+
if (message.taskComplete !== void 0) {
|
|
41778
|
+
TaskCompleteData.encode(message.taskComplete, writer.uint32(130).fork()).join();
|
|
41779
|
+
}
|
|
41780
|
+
if (message.preCompact !== void 0) {
|
|
41781
|
+
PreCompactData.encode(message.preCompact, writer.uint32(138).fork()).join();
|
|
41782
|
+
}
|
|
41726
41783
|
return writer;
|
|
41727
41784
|
},
|
|
41728
41785
|
decode(input, length) {
|
|
@@ -41788,6 +41845,48 @@ var init_hooks = __esm({
|
|
|
41788
41845
|
message.postToolUse = PostToolUseData.decode(reader, reader.uint32());
|
|
41789
41846
|
continue;
|
|
41790
41847
|
}
|
|
41848
|
+
case 12: {
|
|
41849
|
+
if (tag !== 98) {
|
|
41850
|
+
break;
|
|
41851
|
+
}
|
|
41852
|
+
message.userPromptSubmit = UserPromptSubmitData.decode(reader, reader.uint32());
|
|
41853
|
+
continue;
|
|
41854
|
+
}
|
|
41855
|
+
case 13: {
|
|
41856
|
+
if (tag !== 106) {
|
|
41857
|
+
break;
|
|
41858
|
+
}
|
|
41859
|
+
message.taskStart = TaskStartData.decode(reader, reader.uint32());
|
|
41860
|
+
continue;
|
|
41861
|
+
}
|
|
41862
|
+
case 14: {
|
|
41863
|
+
if (tag !== 114) {
|
|
41864
|
+
break;
|
|
41865
|
+
}
|
|
41866
|
+
message.taskResume = TaskResumeData.decode(reader, reader.uint32());
|
|
41867
|
+
continue;
|
|
41868
|
+
}
|
|
41869
|
+
case 15: {
|
|
41870
|
+
if (tag !== 122) {
|
|
41871
|
+
break;
|
|
41872
|
+
}
|
|
41873
|
+
message.taskCancel = TaskCancelData.decode(reader, reader.uint32());
|
|
41874
|
+
continue;
|
|
41875
|
+
}
|
|
41876
|
+
case 16: {
|
|
41877
|
+
if (tag !== 130) {
|
|
41878
|
+
break;
|
|
41879
|
+
}
|
|
41880
|
+
message.taskComplete = TaskCompleteData.decode(reader, reader.uint32());
|
|
41881
|
+
continue;
|
|
41882
|
+
}
|
|
41883
|
+
case 17: {
|
|
41884
|
+
if (tag !== 138) {
|
|
41885
|
+
break;
|
|
41886
|
+
}
|
|
41887
|
+
message.preCompact = PreCompactData.decode(reader, reader.uint32());
|
|
41888
|
+
continue;
|
|
41889
|
+
}
|
|
41791
41890
|
}
|
|
41792
41891
|
if ((tag & 7) === 4 || tag === 0) {
|
|
41793
41892
|
break;
|
|
@@ -41805,7 +41904,13 @@ var init_hooks = __esm({
|
|
|
41805
41904
|
workspaceRoots: globalThis.Array.isArray(object2?.workspaceRoots) ? object2.workspaceRoots.map((e4) => globalThis.String(e4)) : [],
|
|
41806
41905
|
userId: isSet9(object2.userId) ? globalThis.String(object2.userId) : "",
|
|
41807
41906
|
preToolUse: isSet9(object2.preToolUse) ? PreToolUseData.fromJSON(object2.preToolUse) : void 0,
|
|
41808
|
-
postToolUse: isSet9(object2.postToolUse) ? PostToolUseData.fromJSON(object2.postToolUse) : void 0
|
|
41907
|
+
postToolUse: isSet9(object2.postToolUse) ? PostToolUseData.fromJSON(object2.postToolUse) : void 0,
|
|
41908
|
+
userPromptSubmit: isSet9(object2.userPromptSubmit) ? UserPromptSubmitData.fromJSON(object2.userPromptSubmit) : void 0,
|
|
41909
|
+
taskStart: isSet9(object2.taskStart) ? TaskStartData.fromJSON(object2.taskStart) : void 0,
|
|
41910
|
+
taskResume: isSet9(object2.taskResume) ? TaskResumeData.fromJSON(object2.taskResume) : void 0,
|
|
41911
|
+
taskCancel: isSet9(object2.taskCancel) ? TaskCancelData.fromJSON(object2.taskCancel) : void 0,
|
|
41912
|
+
taskComplete: isSet9(object2.taskComplete) ? TaskCompleteData.fromJSON(object2.taskComplete) : void 0,
|
|
41913
|
+
preCompact: isSet9(object2.preCompact) ? PreCompactData.fromJSON(object2.preCompact) : void 0
|
|
41809
41914
|
};
|
|
41810
41915
|
},
|
|
41811
41916
|
toJSON(message) {
|
|
@@ -41834,6 +41939,24 @@ var init_hooks = __esm({
|
|
|
41834
41939
|
if (message.postToolUse !== void 0) {
|
|
41835
41940
|
obj2.postToolUse = PostToolUseData.toJSON(message.postToolUse);
|
|
41836
41941
|
}
|
|
41942
|
+
if (message.userPromptSubmit !== void 0) {
|
|
41943
|
+
obj2.userPromptSubmit = UserPromptSubmitData.toJSON(message.userPromptSubmit);
|
|
41944
|
+
}
|
|
41945
|
+
if (message.taskStart !== void 0) {
|
|
41946
|
+
obj2.taskStart = TaskStartData.toJSON(message.taskStart);
|
|
41947
|
+
}
|
|
41948
|
+
if (message.taskResume !== void 0) {
|
|
41949
|
+
obj2.taskResume = TaskResumeData.toJSON(message.taskResume);
|
|
41950
|
+
}
|
|
41951
|
+
if (message.taskCancel !== void 0) {
|
|
41952
|
+
obj2.taskCancel = TaskCancelData.toJSON(message.taskCancel);
|
|
41953
|
+
}
|
|
41954
|
+
if (message.taskComplete !== void 0) {
|
|
41955
|
+
obj2.taskComplete = TaskCompleteData.toJSON(message.taskComplete);
|
|
41956
|
+
}
|
|
41957
|
+
if (message.preCompact !== void 0) {
|
|
41958
|
+
obj2.preCompact = PreCompactData.toJSON(message.preCompact);
|
|
41959
|
+
}
|
|
41837
41960
|
return obj2;
|
|
41838
41961
|
},
|
|
41839
41962
|
create(base) {
|
|
@@ -41849,6 +41972,12 @@ var init_hooks = __esm({
|
|
|
41849
41972
|
message.userId = object2.userId ?? "";
|
|
41850
41973
|
message.preToolUse = object2.preToolUse !== void 0 && object2.preToolUse !== null ? PreToolUseData.fromPartial(object2.preToolUse) : void 0;
|
|
41851
41974
|
message.postToolUse = object2.postToolUse !== void 0 && object2.postToolUse !== null ? PostToolUseData.fromPartial(object2.postToolUse) : void 0;
|
|
41975
|
+
message.userPromptSubmit = object2.userPromptSubmit !== void 0 && object2.userPromptSubmit !== null ? UserPromptSubmitData.fromPartial(object2.userPromptSubmit) : void 0;
|
|
41976
|
+
message.taskStart = object2.taskStart !== void 0 && object2.taskStart !== null ? TaskStartData.fromPartial(object2.taskStart) : void 0;
|
|
41977
|
+
message.taskResume = object2.taskResume !== void 0 && object2.taskResume !== null ? TaskResumeData.fromPartial(object2.taskResume) : void 0;
|
|
41978
|
+
message.taskCancel = object2.taskCancel !== void 0 && object2.taskCancel !== null ? TaskCancelData.fromPartial(object2.taskCancel) : void 0;
|
|
41979
|
+
message.taskComplete = object2.taskComplete !== void 0 && object2.taskComplete !== null ? TaskCompleteData.fromPartial(object2.taskComplete) : void 0;
|
|
41980
|
+
message.preCompact = object2.preCompact !== void 0 && object2.preCompact !== null ? PreCompactData.fromPartial(object2.preCompact) : void 0;
|
|
41852
41981
|
return message;
|
|
41853
41982
|
}
|
|
41854
41983
|
};
|
|
@@ -42277,6 +42406,791 @@ var init_hooks = __esm({
|
|
|
42277
42406
|
return message;
|
|
42278
42407
|
}
|
|
42279
42408
|
};
|
|
42409
|
+
UserPromptSubmitData = {
|
|
42410
|
+
encode(message, writer = new BinaryWriter()) {
|
|
42411
|
+
if (message.prompt !== "") {
|
|
42412
|
+
writer.uint32(10).string(message.prompt);
|
|
42413
|
+
}
|
|
42414
|
+
for (const v7 of message.attachments) {
|
|
42415
|
+
writer.uint32(18).string(v7);
|
|
42416
|
+
}
|
|
42417
|
+
return writer;
|
|
42418
|
+
},
|
|
42419
|
+
decode(input, length) {
|
|
42420
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
42421
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
42422
|
+
const message = createBaseUserPromptSubmitData();
|
|
42423
|
+
while (reader.pos < end2) {
|
|
42424
|
+
const tag = reader.uint32();
|
|
42425
|
+
switch (tag >>> 3) {
|
|
42426
|
+
case 1: {
|
|
42427
|
+
if (tag !== 10) {
|
|
42428
|
+
break;
|
|
42429
|
+
}
|
|
42430
|
+
message.prompt = reader.string();
|
|
42431
|
+
continue;
|
|
42432
|
+
}
|
|
42433
|
+
case 2: {
|
|
42434
|
+
if (tag !== 18) {
|
|
42435
|
+
break;
|
|
42436
|
+
}
|
|
42437
|
+
message.attachments.push(reader.string());
|
|
42438
|
+
continue;
|
|
42439
|
+
}
|
|
42440
|
+
}
|
|
42441
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
42442
|
+
break;
|
|
42443
|
+
}
|
|
42444
|
+
reader.skip(tag & 7);
|
|
42445
|
+
}
|
|
42446
|
+
return message;
|
|
42447
|
+
},
|
|
42448
|
+
fromJSON(object2) {
|
|
42449
|
+
return {
|
|
42450
|
+
prompt: isSet9(object2.prompt) ? globalThis.String(object2.prompt) : "",
|
|
42451
|
+
attachments: globalThis.Array.isArray(object2?.attachments) ? object2.attachments.map((e4) => globalThis.String(e4)) : []
|
|
42452
|
+
};
|
|
42453
|
+
},
|
|
42454
|
+
toJSON(message) {
|
|
42455
|
+
const obj2 = {};
|
|
42456
|
+
if (message.prompt !== "") {
|
|
42457
|
+
obj2.prompt = message.prompt;
|
|
42458
|
+
}
|
|
42459
|
+
if (message.attachments?.length) {
|
|
42460
|
+
obj2.attachments = message.attachments;
|
|
42461
|
+
}
|
|
42462
|
+
return obj2;
|
|
42463
|
+
},
|
|
42464
|
+
create(base) {
|
|
42465
|
+
return UserPromptSubmitData.fromPartial(base ?? {});
|
|
42466
|
+
},
|
|
42467
|
+
fromPartial(object2) {
|
|
42468
|
+
const message = createBaseUserPromptSubmitData();
|
|
42469
|
+
message.prompt = object2.prompt ?? "";
|
|
42470
|
+
message.attachments = object2.attachments?.map((e4) => e4) || [];
|
|
42471
|
+
return message;
|
|
42472
|
+
}
|
|
42473
|
+
};
|
|
42474
|
+
TaskStartData = {
|
|
42475
|
+
encode(message, writer = new BinaryWriter()) {
|
|
42476
|
+
Object.entries(message.taskMetadata).forEach(([key, value]) => {
|
|
42477
|
+
TaskStartData_TaskMetadataEntry.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
42478
|
+
});
|
|
42479
|
+
return writer;
|
|
42480
|
+
},
|
|
42481
|
+
decode(input, length) {
|
|
42482
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
42483
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
42484
|
+
const message = createBaseTaskStartData();
|
|
42485
|
+
while (reader.pos < end2) {
|
|
42486
|
+
const tag = reader.uint32();
|
|
42487
|
+
switch (tag >>> 3) {
|
|
42488
|
+
case 1: {
|
|
42489
|
+
if (tag !== 10) {
|
|
42490
|
+
break;
|
|
42491
|
+
}
|
|
42492
|
+
const entry1 = TaskStartData_TaskMetadataEntry.decode(reader, reader.uint32());
|
|
42493
|
+
if (entry1.value !== void 0) {
|
|
42494
|
+
message.taskMetadata[entry1.key] = entry1.value;
|
|
42495
|
+
}
|
|
42496
|
+
continue;
|
|
42497
|
+
}
|
|
42498
|
+
}
|
|
42499
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
42500
|
+
break;
|
|
42501
|
+
}
|
|
42502
|
+
reader.skip(tag & 7);
|
|
42503
|
+
}
|
|
42504
|
+
return message;
|
|
42505
|
+
},
|
|
42506
|
+
fromJSON(object2) {
|
|
42507
|
+
return {
|
|
42508
|
+
taskMetadata: isObject5(object2.taskMetadata) ? Object.entries(object2.taskMetadata).reduce((acc, [key, value]) => {
|
|
42509
|
+
acc[key] = String(value);
|
|
42510
|
+
return acc;
|
|
42511
|
+
}, {}) : {}
|
|
42512
|
+
};
|
|
42513
|
+
},
|
|
42514
|
+
toJSON(message) {
|
|
42515
|
+
const obj2 = {};
|
|
42516
|
+
if (message.taskMetadata) {
|
|
42517
|
+
const entries = Object.entries(message.taskMetadata);
|
|
42518
|
+
if (entries.length > 0) {
|
|
42519
|
+
obj2.taskMetadata = {};
|
|
42520
|
+
entries.forEach(([k4, v7]) => {
|
|
42521
|
+
obj2.taskMetadata[k4] = v7;
|
|
42522
|
+
});
|
|
42523
|
+
}
|
|
42524
|
+
}
|
|
42525
|
+
return obj2;
|
|
42526
|
+
},
|
|
42527
|
+
create(base) {
|
|
42528
|
+
return TaskStartData.fromPartial(base ?? {});
|
|
42529
|
+
},
|
|
42530
|
+
fromPartial(object2) {
|
|
42531
|
+
const message = createBaseTaskStartData();
|
|
42532
|
+
message.taskMetadata = Object.entries(object2.taskMetadata ?? {}).reduce(
|
|
42533
|
+
(acc, [key, value]) => {
|
|
42534
|
+
if (value !== void 0) {
|
|
42535
|
+
acc[key] = globalThis.String(value);
|
|
42536
|
+
}
|
|
42537
|
+
return acc;
|
|
42538
|
+
},
|
|
42539
|
+
{}
|
|
42540
|
+
);
|
|
42541
|
+
return message;
|
|
42542
|
+
}
|
|
42543
|
+
};
|
|
42544
|
+
TaskStartData_TaskMetadataEntry = {
|
|
42545
|
+
encode(message, writer = new BinaryWriter()) {
|
|
42546
|
+
if (message.key !== "") {
|
|
42547
|
+
writer.uint32(10).string(message.key);
|
|
42548
|
+
}
|
|
42549
|
+
if (message.value !== "") {
|
|
42550
|
+
writer.uint32(18).string(message.value);
|
|
42551
|
+
}
|
|
42552
|
+
return writer;
|
|
42553
|
+
},
|
|
42554
|
+
decode(input, length) {
|
|
42555
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
42556
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
42557
|
+
const message = createBaseTaskStartData_TaskMetadataEntry();
|
|
42558
|
+
while (reader.pos < end2) {
|
|
42559
|
+
const tag = reader.uint32();
|
|
42560
|
+
switch (tag >>> 3) {
|
|
42561
|
+
case 1: {
|
|
42562
|
+
if (tag !== 10) {
|
|
42563
|
+
break;
|
|
42564
|
+
}
|
|
42565
|
+
message.key = reader.string();
|
|
42566
|
+
continue;
|
|
42567
|
+
}
|
|
42568
|
+
case 2: {
|
|
42569
|
+
if (tag !== 18) {
|
|
42570
|
+
break;
|
|
42571
|
+
}
|
|
42572
|
+
message.value = reader.string();
|
|
42573
|
+
continue;
|
|
42574
|
+
}
|
|
42575
|
+
}
|
|
42576
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
42577
|
+
break;
|
|
42578
|
+
}
|
|
42579
|
+
reader.skip(tag & 7);
|
|
42580
|
+
}
|
|
42581
|
+
return message;
|
|
42582
|
+
},
|
|
42583
|
+
fromJSON(object2) {
|
|
42584
|
+
return {
|
|
42585
|
+
key: isSet9(object2.key) ? globalThis.String(object2.key) : "",
|
|
42586
|
+
value: isSet9(object2.value) ? globalThis.String(object2.value) : ""
|
|
42587
|
+
};
|
|
42588
|
+
},
|
|
42589
|
+
toJSON(message) {
|
|
42590
|
+
const obj2 = {};
|
|
42591
|
+
if (message.key !== "") {
|
|
42592
|
+
obj2.key = message.key;
|
|
42593
|
+
}
|
|
42594
|
+
if (message.value !== "") {
|
|
42595
|
+
obj2.value = message.value;
|
|
42596
|
+
}
|
|
42597
|
+
return obj2;
|
|
42598
|
+
},
|
|
42599
|
+
create(base) {
|
|
42600
|
+
return TaskStartData_TaskMetadataEntry.fromPartial(base ?? {});
|
|
42601
|
+
},
|
|
42602
|
+
fromPartial(object2) {
|
|
42603
|
+
const message = createBaseTaskStartData_TaskMetadataEntry();
|
|
42604
|
+
message.key = object2.key ?? "";
|
|
42605
|
+
message.value = object2.value ?? "";
|
|
42606
|
+
return message;
|
|
42607
|
+
}
|
|
42608
|
+
};
|
|
42609
|
+
TaskResumeData = {
|
|
42610
|
+
encode(message, writer = new BinaryWriter()) {
|
|
42611
|
+
Object.entries(message.taskMetadata).forEach(([key, value]) => {
|
|
42612
|
+
TaskResumeData_TaskMetadataEntry.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
42613
|
+
});
|
|
42614
|
+
Object.entries(message.previousState).forEach(([key, value]) => {
|
|
42615
|
+
TaskResumeData_PreviousStateEntry.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
42616
|
+
});
|
|
42617
|
+
return writer;
|
|
42618
|
+
},
|
|
42619
|
+
decode(input, length) {
|
|
42620
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
42621
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
42622
|
+
const message = createBaseTaskResumeData();
|
|
42623
|
+
while (reader.pos < end2) {
|
|
42624
|
+
const tag = reader.uint32();
|
|
42625
|
+
switch (tag >>> 3) {
|
|
42626
|
+
case 1: {
|
|
42627
|
+
if (tag !== 10) {
|
|
42628
|
+
break;
|
|
42629
|
+
}
|
|
42630
|
+
const entry1 = TaskResumeData_TaskMetadataEntry.decode(reader, reader.uint32());
|
|
42631
|
+
if (entry1.value !== void 0) {
|
|
42632
|
+
message.taskMetadata[entry1.key] = entry1.value;
|
|
42633
|
+
}
|
|
42634
|
+
continue;
|
|
42635
|
+
}
|
|
42636
|
+
case 2: {
|
|
42637
|
+
if (tag !== 18) {
|
|
42638
|
+
break;
|
|
42639
|
+
}
|
|
42640
|
+
const entry2 = TaskResumeData_PreviousStateEntry.decode(reader, reader.uint32());
|
|
42641
|
+
if (entry2.value !== void 0) {
|
|
42642
|
+
message.previousState[entry2.key] = entry2.value;
|
|
42643
|
+
}
|
|
42644
|
+
continue;
|
|
42645
|
+
}
|
|
42646
|
+
}
|
|
42647
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
42648
|
+
break;
|
|
42649
|
+
}
|
|
42650
|
+
reader.skip(tag & 7);
|
|
42651
|
+
}
|
|
42652
|
+
return message;
|
|
42653
|
+
},
|
|
42654
|
+
fromJSON(object2) {
|
|
42655
|
+
return {
|
|
42656
|
+
taskMetadata: isObject5(object2.taskMetadata) ? Object.entries(object2.taskMetadata).reduce((acc, [key, value]) => {
|
|
42657
|
+
acc[key] = String(value);
|
|
42658
|
+
return acc;
|
|
42659
|
+
}, {}) : {},
|
|
42660
|
+
previousState: isObject5(object2.previousState) ? Object.entries(object2.previousState).reduce((acc, [key, value]) => {
|
|
42661
|
+
acc[key] = String(value);
|
|
42662
|
+
return acc;
|
|
42663
|
+
}, {}) : {}
|
|
42664
|
+
};
|
|
42665
|
+
},
|
|
42666
|
+
toJSON(message) {
|
|
42667
|
+
const obj2 = {};
|
|
42668
|
+
if (message.taskMetadata) {
|
|
42669
|
+
const entries = Object.entries(message.taskMetadata);
|
|
42670
|
+
if (entries.length > 0) {
|
|
42671
|
+
obj2.taskMetadata = {};
|
|
42672
|
+
entries.forEach(([k4, v7]) => {
|
|
42673
|
+
obj2.taskMetadata[k4] = v7;
|
|
42674
|
+
});
|
|
42675
|
+
}
|
|
42676
|
+
}
|
|
42677
|
+
if (message.previousState) {
|
|
42678
|
+
const entries = Object.entries(message.previousState);
|
|
42679
|
+
if (entries.length > 0) {
|
|
42680
|
+
obj2.previousState = {};
|
|
42681
|
+
entries.forEach(([k4, v7]) => {
|
|
42682
|
+
obj2.previousState[k4] = v7;
|
|
42683
|
+
});
|
|
42684
|
+
}
|
|
42685
|
+
}
|
|
42686
|
+
return obj2;
|
|
42687
|
+
},
|
|
42688
|
+
create(base) {
|
|
42689
|
+
return TaskResumeData.fromPartial(base ?? {});
|
|
42690
|
+
},
|
|
42691
|
+
fromPartial(object2) {
|
|
42692
|
+
const message = createBaseTaskResumeData();
|
|
42693
|
+
message.taskMetadata = Object.entries(object2.taskMetadata ?? {}).reduce(
|
|
42694
|
+
(acc, [key, value]) => {
|
|
42695
|
+
if (value !== void 0) {
|
|
42696
|
+
acc[key] = globalThis.String(value);
|
|
42697
|
+
}
|
|
42698
|
+
return acc;
|
|
42699
|
+
},
|
|
42700
|
+
{}
|
|
42701
|
+
);
|
|
42702
|
+
message.previousState = Object.entries(object2.previousState ?? {}).reduce(
|
|
42703
|
+
(acc, [key, value]) => {
|
|
42704
|
+
if (value !== void 0) {
|
|
42705
|
+
acc[key] = globalThis.String(value);
|
|
42706
|
+
}
|
|
42707
|
+
return acc;
|
|
42708
|
+
},
|
|
42709
|
+
{}
|
|
42710
|
+
);
|
|
42711
|
+
return message;
|
|
42712
|
+
}
|
|
42713
|
+
};
|
|
42714
|
+
TaskResumeData_TaskMetadataEntry = {
|
|
42715
|
+
encode(message, writer = new BinaryWriter()) {
|
|
42716
|
+
if (message.key !== "") {
|
|
42717
|
+
writer.uint32(10).string(message.key);
|
|
42718
|
+
}
|
|
42719
|
+
if (message.value !== "") {
|
|
42720
|
+
writer.uint32(18).string(message.value);
|
|
42721
|
+
}
|
|
42722
|
+
return writer;
|
|
42723
|
+
},
|
|
42724
|
+
decode(input, length) {
|
|
42725
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
42726
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
42727
|
+
const message = createBaseTaskResumeData_TaskMetadataEntry();
|
|
42728
|
+
while (reader.pos < end2) {
|
|
42729
|
+
const tag = reader.uint32();
|
|
42730
|
+
switch (tag >>> 3) {
|
|
42731
|
+
case 1: {
|
|
42732
|
+
if (tag !== 10) {
|
|
42733
|
+
break;
|
|
42734
|
+
}
|
|
42735
|
+
message.key = reader.string();
|
|
42736
|
+
continue;
|
|
42737
|
+
}
|
|
42738
|
+
case 2: {
|
|
42739
|
+
if (tag !== 18) {
|
|
42740
|
+
break;
|
|
42741
|
+
}
|
|
42742
|
+
message.value = reader.string();
|
|
42743
|
+
continue;
|
|
42744
|
+
}
|
|
42745
|
+
}
|
|
42746
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
42747
|
+
break;
|
|
42748
|
+
}
|
|
42749
|
+
reader.skip(tag & 7);
|
|
42750
|
+
}
|
|
42751
|
+
return message;
|
|
42752
|
+
},
|
|
42753
|
+
fromJSON(object2) {
|
|
42754
|
+
return {
|
|
42755
|
+
key: isSet9(object2.key) ? globalThis.String(object2.key) : "",
|
|
42756
|
+
value: isSet9(object2.value) ? globalThis.String(object2.value) : ""
|
|
42757
|
+
};
|
|
42758
|
+
},
|
|
42759
|
+
toJSON(message) {
|
|
42760
|
+
const obj2 = {};
|
|
42761
|
+
if (message.key !== "") {
|
|
42762
|
+
obj2.key = message.key;
|
|
42763
|
+
}
|
|
42764
|
+
if (message.value !== "") {
|
|
42765
|
+
obj2.value = message.value;
|
|
42766
|
+
}
|
|
42767
|
+
return obj2;
|
|
42768
|
+
},
|
|
42769
|
+
create(base) {
|
|
42770
|
+
return TaskResumeData_TaskMetadataEntry.fromPartial(base ?? {});
|
|
42771
|
+
},
|
|
42772
|
+
fromPartial(object2) {
|
|
42773
|
+
const message = createBaseTaskResumeData_TaskMetadataEntry();
|
|
42774
|
+
message.key = object2.key ?? "";
|
|
42775
|
+
message.value = object2.value ?? "";
|
|
42776
|
+
return message;
|
|
42777
|
+
}
|
|
42778
|
+
};
|
|
42779
|
+
TaskResumeData_PreviousStateEntry = {
|
|
42780
|
+
encode(message, writer = new BinaryWriter()) {
|
|
42781
|
+
if (message.key !== "") {
|
|
42782
|
+
writer.uint32(10).string(message.key);
|
|
42783
|
+
}
|
|
42784
|
+
if (message.value !== "") {
|
|
42785
|
+
writer.uint32(18).string(message.value);
|
|
42786
|
+
}
|
|
42787
|
+
return writer;
|
|
42788
|
+
},
|
|
42789
|
+
decode(input, length) {
|
|
42790
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
42791
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
42792
|
+
const message = createBaseTaskResumeData_PreviousStateEntry();
|
|
42793
|
+
while (reader.pos < end2) {
|
|
42794
|
+
const tag = reader.uint32();
|
|
42795
|
+
switch (tag >>> 3) {
|
|
42796
|
+
case 1: {
|
|
42797
|
+
if (tag !== 10) {
|
|
42798
|
+
break;
|
|
42799
|
+
}
|
|
42800
|
+
message.key = reader.string();
|
|
42801
|
+
continue;
|
|
42802
|
+
}
|
|
42803
|
+
case 2: {
|
|
42804
|
+
if (tag !== 18) {
|
|
42805
|
+
break;
|
|
42806
|
+
}
|
|
42807
|
+
message.value = reader.string();
|
|
42808
|
+
continue;
|
|
42809
|
+
}
|
|
42810
|
+
}
|
|
42811
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
42812
|
+
break;
|
|
42813
|
+
}
|
|
42814
|
+
reader.skip(tag & 7);
|
|
42815
|
+
}
|
|
42816
|
+
return message;
|
|
42817
|
+
},
|
|
42818
|
+
fromJSON(object2) {
|
|
42819
|
+
return {
|
|
42820
|
+
key: isSet9(object2.key) ? globalThis.String(object2.key) : "",
|
|
42821
|
+
value: isSet9(object2.value) ? globalThis.String(object2.value) : ""
|
|
42822
|
+
};
|
|
42823
|
+
},
|
|
42824
|
+
toJSON(message) {
|
|
42825
|
+
const obj2 = {};
|
|
42826
|
+
if (message.key !== "") {
|
|
42827
|
+
obj2.key = message.key;
|
|
42828
|
+
}
|
|
42829
|
+
if (message.value !== "") {
|
|
42830
|
+
obj2.value = message.value;
|
|
42831
|
+
}
|
|
42832
|
+
return obj2;
|
|
42833
|
+
},
|
|
42834
|
+
create(base) {
|
|
42835
|
+
return TaskResumeData_PreviousStateEntry.fromPartial(base ?? {});
|
|
42836
|
+
},
|
|
42837
|
+
fromPartial(object2) {
|
|
42838
|
+
const message = createBaseTaskResumeData_PreviousStateEntry();
|
|
42839
|
+
message.key = object2.key ?? "";
|
|
42840
|
+
message.value = object2.value ?? "";
|
|
42841
|
+
return message;
|
|
42842
|
+
}
|
|
42843
|
+
};
|
|
42844
|
+
TaskCancelData = {
|
|
42845
|
+
encode(message, writer = new BinaryWriter()) {
|
|
42846
|
+
Object.entries(message.taskMetadata).forEach(([key, value]) => {
|
|
42847
|
+
TaskCancelData_TaskMetadataEntry.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
42848
|
+
});
|
|
42849
|
+
return writer;
|
|
42850
|
+
},
|
|
42851
|
+
decode(input, length) {
|
|
42852
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
42853
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
42854
|
+
const message = createBaseTaskCancelData();
|
|
42855
|
+
while (reader.pos < end2) {
|
|
42856
|
+
const tag = reader.uint32();
|
|
42857
|
+
switch (tag >>> 3) {
|
|
42858
|
+
case 1: {
|
|
42859
|
+
if (tag !== 10) {
|
|
42860
|
+
break;
|
|
42861
|
+
}
|
|
42862
|
+
const entry1 = TaskCancelData_TaskMetadataEntry.decode(reader, reader.uint32());
|
|
42863
|
+
if (entry1.value !== void 0) {
|
|
42864
|
+
message.taskMetadata[entry1.key] = entry1.value;
|
|
42865
|
+
}
|
|
42866
|
+
continue;
|
|
42867
|
+
}
|
|
42868
|
+
}
|
|
42869
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
42870
|
+
break;
|
|
42871
|
+
}
|
|
42872
|
+
reader.skip(tag & 7);
|
|
42873
|
+
}
|
|
42874
|
+
return message;
|
|
42875
|
+
},
|
|
42876
|
+
fromJSON(object2) {
|
|
42877
|
+
return {
|
|
42878
|
+
taskMetadata: isObject5(object2.taskMetadata) ? Object.entries(object2.taskMetadata).reduce((acc, [key, value]) => {
|
|
42879
|
+
acc[key] = String(value);
|
|
42880
|
+
return acc;
|
|
42881
|
+
}, {}) : {}
|
|
42882
|
+
};
|
|
42883
|
+
},
|
|
42884
|
+
toJSON(message) {
|
|
42885
|
+
const obj2 = {};
|
|
42886
|
+
if (message.taskMetadata) {
|
|
42887
|
+
const entries = Object.entries(message.taskMetadata);
|
|
42888
|
+
if (entries.length > 0) {
|
|
42889
|
+
obj2.taskMetadata = {};
|
|
42890
|
+
entries.forEach(([k4, v7]) => {
|
|
42891
|
+
obj2.taskMetadata[k4] = v7;
|
|
42892
|
+
});
|
|
42893
|
+
}
|
|
42894
|
+
}
|
|
42895
|
+
return obj2;
|
|
42896
|
+
},
|
|
42897
|
+
create(base) {
|
|
42898
|
+
return TaskCancelData.fromPartial(base ?? {});
|
|
42899
|
+
},
|
|
42900
|
+
fromPartial(object2) {
|
|
42901
|
+
const message = createBaseTaskCancelData();
|
|
42902
|
+
message.taskMetadata = Object.entries(object2.taskMetadata ?? {}).reduce(
|
|
42903
|
+
(acc, [key, value]) => {
|
|
42904
|
+
if (value !== void 0) {
|
|
42905
|
+
acc[key] = globalThis.String(value);
|
|
42906
|
+
}
|
|
42907
|
+
return acc;
|
|
42908
|
+
},
|
|
42909
|
+
{}
|
|
42910
|
+
);
|
|
42911
|
+
return message;
|
|
42912
|
+
}
|
|
42913
|
+
};
|
|
42914
|
+
TaskCancelData_TaskMetadataEntry = {
|
|
42915
|
+
encode(message, writer = new BinaryWriter()) {
|
|
42916
|
+
if (message.key !== "") {
|
|
42917
|
+
writer.uint32(10).string(message.key);
|
|
42918
|
+
}
|
|
42919
|
+
if (message.value !== "") {
|
|
42920
|
+
writer.uint32(18).string(message.value);
|
|
42921
|
+
}
|
|
42922
|
+
return writer;
|
|
42923
|
+
},
|
|
42924
|
+
decode(input, length) {
|
|
42925
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
42926
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
42927
|
+
const message = createBaseTaskCancelData_TaskMetadataEntry();
|
|
42928
|
+
while (reader.pos < end2) {
|
|
42929
|
+
const tag = reader.uint32();
|
|
42930
|
+
switch (tag >>> 3) {
|
|
42931
|
+
case 1: {
|
|
42932
|
+
if (tag !== 10) {
|
|
42933
|
+
break;
|
|
42934
|
+
}
|
|
42935
|
+
message.key = reader.string();
|
|
42936
|
+
continue;
|
|
42937
|
+
}
|
|
42938
|
+
case 2: {
|
|
42939
|
+
if (tag !== 18) {
|
|
42940
|
+
break;
|
|
42941
|
+
}
|
|
42942
|
+
message.value = reader.string();
|
|
42943
|
+
continue;
|
|
42944
|
+
}
|
|
42945
|
+
}
|
|
42946
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
42947
|
+
break;
|
|
42948
|
+
}
|
|
42949
|
+
reader.skip(tag & 7);
|
|
42950
|
+
}
|
|
42951
|
+
return message;
|
|
42952
|
+
},
|
|
42953
|
+
fromJSON(object2) {
|
|
42954
|
+
return {
|
|
42955
|
+
key: isSet9(object2.key) ? globalThis.String(object2.key) : "",
|
|
42956
|
+
value: isSet9(object2.value) ? globalThis.String(object2.value) : ""
|
|
42957
|
+
};
|
|
42958
|
+
},
|
|
42959
|
+
toJSON(message) {
|
|
42960
|
+
const obj2 = {};
|
|
42961
|
+
if (message.key !== "") {
|
|
42962
|
+
obj2.key = message.key;
|
|
42963
|
+
}
|
|
42964
|
+
if (message.value !== "") {
|
|
42965
|
+
obj2.value = message.value;
|
|
42966
|
+
}
|
|
42967
|
+
return obj2;
|
|
42968
|
+
},
|
|
42969
|
+
create(base) {
|
|
42970
|
+
return TaskCancelData_TaskMetadataEntry.fromPartial(base ?? {});
|
|
42971
|
+
},
|
|
42972
|
+
fromPartial(object2) {
|
|
42973
|
+
const message = createBaseTaskCancelData_TaskMetadataEntry();
|
|
42974
|
+
message.key = object2.key ?? "";
|
|
42975
|
+
message.value = object2.value ?? "";
|
|
42976
|
+
return message;
|
|
42977
|
+
}
|
|
42978
|
+
};
|
|
42979
|
+
TaskCompleteData = {
|
|
42980
|
+
encode(message, writer = new BinaryWriter()) {
|
|
42981
|
+
Object.entries(message.taskMetadata).forEach(([key, value]) => {
|
|
42982
|
+
TaskCompleteData_TaskMetadataEntry.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
42983
|
+
});
|
|
42984
|
+
return writer;
|
|
42985
|
+
},
|
|
42986
|
+
decode(input, length) {
|
|
42987
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
42988
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
42989
|
+
const message = createBaseTaskCompleteData();
|
|
42990
|
+
while (reader.pos < end2) {
|
|
42991
|
+
const tag = reader.uint32();
|
|
42992
|
+
switch (tag >>> 3) {
|
|
42993
|
+
case 1: {
|
|
42994
|
+
if (tag !== 10) {
|
|
42995
|
+
break;
|
|
42996
|
+
}
|
|
42997
|
+
const entry1 = TaskCompleteData_TaskMetadataEntry.decode(reader, reader.uint32());
|
|
42998
|
+
if (entry1.value !== void 0) {
|
|
42999
|
+
message.taskMetadata[entry1.key] = entry1.value;
|
|
43000
|
+
}
|
|
43001
|
+
continue;
|
|
43002
|
+
}
|
|
43003
|
+
}
|
|
43004
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
43005
|
+
break;
|
|
43006
|
+
}
|
|
43007
|
+
reader.skip(tag & 7);
|
|
43008
|
+
}
|
|
43009
|
+
return message;
|
|
43010
|
+
},
|
|
43011
|
+
fromJSON(object2) {
|
|
43012
|
+
return {
|
|
43013
|
+
taskMetadata: isObject5(object2.taskMetadata) ? Object.entries(object2.taskMetadata).reduce((acc, [key, value]) => {
|
|
43014
|
+
acc[key] = String(value);
|
|
43015
|
+
return acc;
|
|
43016
|
+
}, {}) : {}
|
|
43017
|
+
};
|
|
43018
|
+
},
|
|
43019
|
+
toJSON(message) {
|
|
43020
|
+
const obj2 = {};
|
|
43021
|
+
if (message.taskMetadata) {
|
|
43022
|
+
const entries = Object.entries(message.taskMetadata);
|
|
43023
|
+
if (entries.length > 0) {
|
|
43024
|
+
obj2.taskMetadata = {};
|
|
43025
|
+
entries.forEach(([k4, v7]) => {
|
|
43026
|
+
obj2.taskMetadata[k4] = v7;
|
|
43027
|
+
});
|
|
43028
|
+
}
|
|
43029
|
+
}
|
|
43030
|
+
return obj2;
|
|
43031
|
+
},
|
|
43032
|
+
create(base) {
|
|
43033
|
+
return TaskCompleteData.fromPartial(base ?? {});
|
|
43034
|
+
},
|
|
43035
|
+
fromPartial(object2) {
|
|
43036
|
+
const message = createBaseTaskCompleteData();
|
|
43037
|
+
message.taskMetadata = Object.entries(object2.taskMetadata ?? {}).reduce(
|
|
43038
|
+
(acc, [key, value]) => {
|
|
43039
|
+
if (value !== void 0) {
|
|
43040
|
+
acc[key] = globalThis.String(value);
|
|
43041
|
+
}
|
|
43042
|
+
return acc;
|
|
43043
|
+
},
|
|
43044
|
+
{}
|
|
43045
|
+
);
|
|
43046
|
+
return message;
|
|
43047
|
+
}
|
|
43048
|
+
};
|
|
43049
|
+
TaskCompleteData_TaskMetadataEntry = {
|
|
43050
|
+
encode(message, writer = new BinaryWriter()) {
|
|
43051
|
+
if (message.key !== "") {
|
|
43052
|
+
writer.uint32(10).string(message.key);
|
|
43053
|
+
}
|
|
43054
|
+
if (message.value !== "") {
|
|
43055
|
+
writer.uint32(18).string(message.value);
|
|
43056
|
+
}
|
|
43057
|
+
return writer;
|
|
43058
|
+
},
|
|
43059
|
+
decode(input, length) {
|
|
43060
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
43061
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
43062
|
+
const message = createBaseTaskCompleteData_TaskMetadataEntry();
|
|
43063
|
+
while (reader.pos < end2) {
|
|
43064
|
+
const tag = reader.uint32();
|
|
43065
|
+
switch (tag >>> 3) {
|
|
43066
|
+
case 1: {
|
|
43067
|
+
if (tag !== 10) {
|
|
43068
|
+
break;
|
|
43069
|
+
}
|
|
43070
|
+
message.key = reader.string();
|
|
43071
|
+
continue;
|
|
43072
|
+
}
|
|
43073
|
+
case 2: {
|
|
43074
|
+
if (tag !== 18) {
|
|
43075
|
+
break;
|
|
43076
|
+
}
|
|
43077
|
+
message.value = reader.string();
|
|
43078
|
+
continue;
|
|
43079
|
+
}
|
|
43080
|
+
}
|
|
43081
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
43082
|
+
break;
|
|
43083
|
+
}
|
|
43084
|
+
reader.skip(tag & 7);
|
|
43085
|
+
}
|
|
43086
|
+
return message;
|
|
43087
|
+
},
|
|
43088
|
+
fromJSON(object2) {
|
|
43089
|
+
return {
|
|
43090
|
+
key: isSet9(object2.key) ? globalThis.String(object2.key) : "",
|
|
43091
|
+
value: isSet9(object2.value) ? globalThis.String(object2.value) : ""
|
|
43092
|
+
};
|
|
43093
|
+
},
|
|
43094
|
+
toJSON(message) {
|
|
43095
|
+
const obj2 = {};
|
|
43096
|
+
if (message.key !== "") {
|
|
43097
|
+
obj2.key = message.key;
|
|
43098
|
+
}
|
|
43099
|
+
if (message.value !== "") {
|
|
43100
|
+
obj2.value = message.value;
|
|
43101
|
+
}
|
|
43102
|
+
return obj2;
|
|
43103
|
+
},
|
|
43104
|
+
create(base) {
|
|
43105
|
+
return TaskCompleteData_TaskMetadataEntry.fromPartial(base ?? {});
|
|
43106
|
+
},
|
|
43107
|
+
fromPartial(object2) {
|
|
43108
|
+
const message = createBaseTaskCompleteData_TaskMetadataEntry();
|
|
43109
|
+
message.key = object2.key ?? "";
|
|
43110
|
+
message.value = object2.value ?? "";
|
|
43111
|
+
return message;
|
|
43112
|
+
}
|
|
43113
|
+
};
|
|
43114
|
+
PreCompactData = {
|
|
43115
|
+
encode(message, writer = new BinaryWriter()) {
|
|
43116
|
+
if (message.contextSize !== 0) {
|
|
43117
|
+
writer.uint32(8).int64(message.contextSize);
|
|
43118
|
+
}
|
|
43119
|
+
if (message.messagesToCompact !== 0) {
|
|
43120
|
+
writer.uint32(16).int32(message.messagesToCompact);
|
|
43121
|
+
}
|
|
43122
|
+
if (message.compactionStrategy !== "") {
|
|
43123
|
+
writer.uint32(26).string(message.compactionStrategy);
|
|
43124
|
+
}
|
|
43125
|
+
return writer;
|
|
43126
|
+
},
|
|
43127
|
+
decode(input, length) {
|
|
43128
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
43129
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
43130
|
+
const message = createBasePreCompactData();
|
|
43131
|
+
while (reader.pos < end2) {
|
|
43132
|
+
const tag = reader.uint32();
|
|
43133
|
+
switch (tag >>> 3) {
|
|
43134
|
+
case 1: {
|
|
43135
|
+
if (tag !== 8) {
|
|
43136
|
+
break;
|
|
43137
|
+
}
|
|
43138
|
+
message.contextSize = longToNumber4(reader.int64());
|
|
43139
|
+
continue;
|
|
43140
|
+
}
|
|
43141
|
+
case 2: {
|
|
43142
|
+
if (tag !== 16) {
|
|
43143
|
+
break;
|
|
43144
|
+
}
|
|
43145
|
+
message.messagesToCompact = reader.int32();
|
|
43146
|
+
continue;
|
|
43147
|
+
}
|
|
43148
|
+
case 3: {
|
|
43149
|
+
if (tag !== 26) {
|
|
43150
|
+
break;
|
|
43151
|
+
}
|
|
43152
|
+
message.compactionStrategy = reader.string();
|
|
43153
|
+
continue;
|
|
43154
|
+
}
|
|
43155
|
+
}
|
|
43156
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
43157
|
+
break;
|
|
43158
|
+
}
|
|
43159
|
+
reader.skip(tag & 7);
|
|
43160
|
+
}
|
|
43161
|
+
return message;
|
|
43162
|
+
},
|
|
43163
|
+
fromJSON(object2) {
|
|
43164
|
+
return {
|
|
43165
|
+
contextSize: isSet9(object2.contextSize) ? globalThis.Number(object2.contextSize) : 0,
|
|
43166
|
+
messagesToCompact: isSet9(object2.messagesToCompact) ? globalThis.Number(object2.messagesToCompact) : 0,
|
|
43167
|
+
compactionStrategy: isSet9(object2.compactionStrategy) ? globalThis.String(object2.compactionStrategy) : ""
|
|
43168
|
+
};
|
|
43169
|
+
},
|
|
43170
|
+
toJSON(message) {
|
|
43171
|
+
const obj2 = {};
|
|
43172
|
+
if (message.contextSize !== 0) {
|
|
43173
|
+
obj2.contextSize = Math.round(message.contextSize);
|
|
43174
|
+
}
|
|
43175
|
+
if (message.messagesToCompact !== 0) {
|
|
43176
|
+
obj2.messagesToCompact = Math.round(message.messagesToCompact);
|
|
43177
|
+
}
|
|
43178
|
+
if (message.compactionStrategy !== "") {
|
|
43179
|
+
obj2.compactionStrategy = message.compactionStrategy;
|
|
43180
|
+
}
|
|
43181
|
+
return obj2;
|
|
43182
|
+
},
|
|
43183
|
+
create(base) {
|
|
43184
|
+
return PreCompactData.fromPartial(base ?? {});
|
|
43185
|
+
},
|
|
43186
|
+
fromPartial(object2) {
|
|
43187
|
+
const message = createBasePreCompactData();
|
|
43188
|
+
message.contextSize = object2.contextSize ?? 0;
|
|
43189
|
+
message.messagesToCompact = object2.messagesToCompact ?? 0;
|
|
43190
|
+
message.compactionStrategy = object2.compactionStrategy ?? "";
|
|
43191
|
+
return message;
|
|
43192
|
+
}
|
|
43193
|
+
};
|
|
42280
43194
|
}
|
|
42281
43195
|
});
|
|
42282
43196
|
|
|
@@ -60282,6 +61196,7 @@ __export(index_cline_exports, {
|
|
|
60282
61196
|
PlanActMode: () => PlanActMode,
|
|
60283
61197
|
PostToolUseData: () => PostToolUseData,
|
|
60284
61198
|
PostToolUseData_ParametersEntry: () => PostToolUseData_ParametersEntry,
|
|
61199
|
+
PreCompactData: () => PreCompactData,
|
|
60285
61200
|
PreToolUseData: () => PreToolUseData,
|
|
60286
61201
|
PreToolUseData_ParametersEntry: () => PreToolUseData_ParametersEntry,
|
|
60287
61202
|
PriceTier: () => PriceTier,
|
|
@@ -60308,11 +61223,20 @@ __export(index_cline_exports, {
|
|
|
60308
61223
|
StringArrayRequest: () => StringArrayRequest,
|
|
60309
61224
|
StringArrays: () => StringArrays,
|
|
60310
61225
|
StringRequest: () => StringRequest,
|
|
61226
|
+
TaskCancelData: () => TaskCancelData,
|
|
61227
|
+
TaskCancelData_TaskMetadataEntry: () => TaskCancelData_TaskMetadataEntry,
|
|
61228
|
+
TaskCompleteData: () => TaskCompleteData,
|
|
61229
|
+
TaskCompleteData_TaskMetadataEntry: () => TaskCompleteData_TaskMetadataEntry,
|
|
60311
61230
|
TaskFavoriteRequest: () => TaskFavoriteRequest,
|
|
60312
61231
|
TaskHistoryArray: () => TaskHistoryArray,
|
|
60313
61232
|
TaskItem: () => TaskItem,
|
|
60314
61233
|
TaskResponse: () => TaskResponse,
|
|
61234
|
+
TaskResumeData: () => TaskResumeData,
|
|
61235
|
+
TaskResumeData_PreviousStateEntry: () => TaskResumeData_PreviousStateEntry,
|
|
61236
|
+
TaskResumeData_TaskMetadataEntry: () => TaskResumeData_TaskMetadataEntry,
|
|
60315
61237
|
TaskServiceDefinition: () => TaskServiceDefinition,
|
|
61238
|
+
TaskStartData: () => TaskStartData,
|
|
61239
|
+
TaskStartData_TaskMetadataEntry: () => TaskStartData_TaskMetadataEntry,
|
|
60316
61240
|
TelemetrySettingEnum: () => TelemetrySettingEnum,
|
|
60317
61241
|
TelemetrySettingRequest: () => TelemetrySettingRequest,
|
|
60318
61242
|
TerminalProfile: () => TerminalProfile,
|
|
@@ -60346,6 +61270,7 @@ __export(index_cline_exports, {
|
|
|
60346
61270
|
UserOrganization: () => UserOrganization,
|
|
60347
61271
|
UserOrganizationUpdateRequest: () => UserOrganizationUpdateRequest,
|
|
60348
61272
|
UserOrganizationsResponse: () => UserOrganizationsResponse,
|
|
61273
|
+
UserPromptSubmitData: () => UserPromptSubmitData,
|
|
60349
61274
|
Viewport: () => Viewport,
|
|
60350
61275
|
VsCodeLmModelsArray: () => VsCodeLmModelsArray,
|
|
60351
61276
|
WebServiceDefinition: () => WebServiceDefinition,
|
|
@@ -624046,8 +624971,8 @@ var init_posthog_config = __esm({
|
|
|
624046
624971
|
"use strict";
|
|
624047
624972
|
useDevEnv = process.env.IS_DEV === "true" || process.env.CLINE_ENVIRONMENT === "local";
|
|
624048
624973
|
posthogConfig = {
|
|
624049
|
-
apiKey:
|
|
624050
|
-
errorTrackingApiKey:
|
|
624974
|
+
apiKey: "phc_TpRIySHEzOdf1lj5JkzF5xN8FZODg0vMIyJKSaEzsTE",
|
|
624975
|
+
errorTrackingApiKey: "phc_TpRIySHEzOdf1lj5JkzF5xN8FZODg0vMIyJKSaEzsTE",
|
|
624051
624976
|
host: "https://data.cline.bot",
|
|
624052
624977
|
uiHost: useDevEnv ? "https://us.i.posthog.com" : "https://us.posthog.com"
|
|
624053
624978
|
};
|
|
@@ -885618,6 +886543,7 @@ var init_vertex = __esm({
|
|
|
885618
886543
|
let stream5;
|
|
885619
886544
|
switch (modelId) {
|
|
885620
886545
|
case "claude-haiku-4-5@20251001":
|
|
886546
|
+
case "claude-sonnet-4-5@20250929":
|
|
885621
886547
|
case "claude-sonnet-4@20250514":
|
|
885622
886548
|
case "claude-opus-4-1@20250805":
|
|
885623
886549
|
case "claude-opus-4@20250514":
|
|
@@ -944913,6 +945839,11 @@ var init_TaskState = __esm({
|
|
|
944913
945839
|
});
|
|
944914
945840
|
|
|
944915
945841
|
// src/core/hooks/hook-factory.ts
|
|
945842
|
+
var hook_factory_exports = {};
|
|
945843
|
+
__export(hook_factory_exports, {
|
|
945844
|
+
HookFactory: () => HookFactory,
|
|
945845
|
+
HookRunner: () => HookRunner
|
|
945846
|
+
});
|
|
944916
945847
|
function isExpectedHookError(error) {
|
|
944917
945848
|
if (!(error instanceof Error)) {
|
|
944918
945849
|
return false;
|
|
@@ -951597,6 +952528,7 @@ var init_task3 = __esm({
|
|
|
951597
952528
|
init_TerminalManager();
|
|
951598
952529
|
init_BrowserSession();
|
|
951599
952530
|
init_UrlContentFetcher();
|
|
952531
|
+
init_feature_flags2();
|
|
951600
952532
|
init_list_files2();
|
|
951601
952533
|
init_Logger();
|
|
951602
952534
|
init_array4();
|
|
@@ -952112,6 +953044,42 @@ var init_task3 = __esm({
|
|
|
952112
953044
|
async switchToActModeCallback() {
|
|
952113
953045
|
return await this.controller.toggleActModeForYoloMode();
|
|
952114
953046
|
}
|
|
953047
|
+
async runUserPromptSubmitHook(userContent, context3) {
|
|
953048
|
+
const hooksEnabled = featureFlagsService.getHooksEnabled() && this.stateManager.getGlobalSettingsKey("hooksEnabled");
|
|
953049
|
+
if (!hooksEnabled) {
|
|
953050
|
+
return { shouldContinue: true };
|
|
953051
|
+
}
|
|
953052
|
+
try {
|
|
953053
|
+
const { HookFactory: HookFactory2 } = await Promise.resolve().then(() => (init_hook_factory(), hook_factory_exports));
|
|
953054
|
+
const hookFactory = new HookFactory2();
|
|
953055
|
+
const hook = await hookFactory.create("UserPromptSubmit");
|
|
953056
|
+
const promptText = userContent.map((block) => {
|
|
953057
|
+
if (block.type === "text") {
|
|
953058
|
+
return block.text;
|
|
953059
|
+
}
|
|
953060
|
+
if (block.type === "image") {
|
|
953061
|
+
return "[IMAGE]";
|
|
953062
|
+
}
|
|
953063
|
+
return "";
|
|
953064
|
+
}).join("\n\n");
|
|
953065
|
+
const result2 = await hook.run({
|
|
953066
|
+
taskId: this.taskId,
|
|
953067
|
+
userPromptSubmit: {
|
|
953068
|
+
prompt: promptText,
|
|
953069
|
+
attachments: []
|
|
953070
|
+
// Images are inline in UserContent
|
|
953071
|
+
}
|
|
953072
|
+
});
|
|
953073
|
+
return {
|
|
953074
|
+
shouldContinue: result2.shouldContinue,
|
|
953075
|
+
contextModification: result2.contextModification,
|
|
953076
|
+
errorMessage: result2.errorMessage
|
|
953077
|
+
};
|
|
953078
|
+
} catch (error) {
|
|
953079
|
+
console.error("UserPromptSubmit hook failed:", error);
|
|
953080
|
+
return { shouldContinue: true };
|
|
953081
|
+
}
|
|
953082
|
+
}
|
|
952115
953083
|
// Task lifecycle
|
|
952116
953084
|
async startTask(task, images, files) {
|
|
952117
953085
|
try {
|
|
@@ -953183,6 +954151,23 @@ Speak in ${preferredLanguage}.` : "";
|
|
|
953183
954151
|
userContent = parsedUserContent;
|
|
953184
954152
|
userContent.push({ type: "text", text: environmentDetails });
|
|
953185
954153
|
}
|
|
954154
|
+
const hookResult = await this.runUserPromptSubmitHook(
|
|
954155
|
+
userContent,
|
|
954156
|
+
this.taskState.apiRequestCount === 1 ? "initial_task" : "feedback"
|
|
954157
|
+
);
|
|
954158
|
+
if (!hookResult.shouldContinue) {
|
|
954159
|
+
const errorMessage = hookResult.errorMessage || "UserPromptSubmit hook prevented this request";
|
|
954160
|
+
await this.say("error", errorMessage);
|
|
954161
|
+
return true;
|
|
954162
|
+
}
|
|
954163
|
+
if (hookResult.contextModification) {
|
|
954164
|
+
userContent.push({
|
|
954165
|
+
type: "text",
|
|
954166
|
+
text: `<hook_context source="UserPromptSubmit">
|
|
954167
|
+
${hookResult.contextModification}
|
|
954168
|
+
</hook_context>`
|
|
954169
|
+
});
|
|
954170
|
+
}
|
|
953186
954171
|
await this.messageStateHandler.addToApiConversationHistory({
|
|
953187
954172
|
role: "user",
|
|
953188
954173
|
content: userContent
|
|
@@ -976508,6 +977493,7 @@ __export(index_cline_exports3, {
|
|
|
976508
977493
|
PlanActMode: () => PlanActMode2,
|
|
976509
977494
|
PostToolUseData: () => PostToolUseData3,
|
|
976510
977495
|
PostToolUseData_ParametersEntry: () => PostToolUseData_ParametersEntry2,
|
|
977496
|
+
PreCompactData: () => PreCompactData3,
|
|
976511
977497
|
PreToolUseData: () => PreToolUseData3,
|
|
976512
977498
|
PreToolUseData_ParametersEntry: () => PreToolUseData_ParametersEntry2,
|
|
976513
977499
|
PriceTier: () => PriceTier2,
|
|
@@ -976538,13 +977524,22 @@ __export(index_cline_exports3, {
|
|
|
976538
977524
|
StringArrayRequest: () => StringArrayRequest4,
|
|
976539
977525
|
StringArrays: () => StringArrays3,
|
|
976540
977526
|
StringRequest: () => StringRequest19,
|
|
977527
|
+
TaskCancelData: () => TaskCancelData3,
|
|
977528
|
+
TaskCancelData_TaskMetadataEntry: () => TaskCancelData_TaskMetadataEntry2,
|
|
977529
|
+
TaskCompleteData: () => TaskCompleteData3,
|
|
977530
|
+
TaskCompleteData_TaskMetadataEntry: () => TaskCompleteData_TaskMetadataEntry2,
|
|
976541
977531
|
TaskFavoriteRequest: () => TaskFavoriteRequest2,
|
|
976542
977532
|
TaskHistoryArray: () => TaskHistoryArray2,
|
|
976543
977533
|
TaskItem: () => TaskItem2,
|
|
976544
977534
|
TaskResponse: () => TaskResponse2,
|
|
977535
|
+
TaskResumeData: () => TaskResumeData3,
|
|
977536
|
+
TaskResumeData_PreviousStateEntry: () => TaskResumeData_PreviousStateEntry2,
|
|
977537
|
+
TaskResumeData_TaskMetadataEntry: () => TaskResumeData_TaskMetadataEntry2,
|
|
976545
977538
|
TaskServiceClient: () => TaskServiceClient,
|
|
976546
977539
|
TaskServiceDefinition: () => TaskServiceDefinition2,
|
|
976547
977540
|
TaskServiceService: () => TaskServiceService,
|
|
977541
|
+
TaskStartData: () => TaskStartData3,
|
|
977542
|
+
TaskStartData_TaskMetadataEntry: () => TaskStartData_TaskMetadataEntry2,
|
|
976548
977543
|
TelemetrySettingEnum: () => TelemetrySettingEnum2,
|
|
976549
977544
|
TelemetrySettingRequest: () => TelemetrySettingRequest2,
|
|
976550
977545
|
TerminalProfile: () => TerminalProfile2,
|
|
@@ -976580,6 +977575,7 @@ __export(index_cline_exports3, {
|
|
|
976580
977575
|
UserOrganization: () => UserOrganization2,
|
|
976581
977576
|
UserOrganizationUpdateRequest: () => UserOrganizationUpdateRequest2,
|
|
976582
977577
|
UserOrganizationsResponse: () => UserOrganizationsResponse2,
|
|
977578
|
+
UserPromptSubmitData: () => UserPromptSubmitData3,
|
|
976583
977579
|
Viewport: () => Viewport3,
|
|
976584
977580
|
VsCodeLmModelsArray: () => VsCodeLmModelsArray2,
|
|
976585
977581
|
WebServiceClient: () => WebServiceClient,
|
|
@@ -983223,7 +984219,13 @@ function createBaseHookInput2() {
|
|
|
983223
984219
|
workspaceRoots: [],
|
|
983224
984220
|
userId: "",
|
|
983225
984221
|
preToolUse: void 0,
|
|
983226
|
-
postToolUse: void 0
|
|
984222
|
+
postToolUse: void 0,
|
|
984223
|
+
userPromptSubmit: void 0,
|
|
984224
|
+
taskStart: void 0,
|
|
984225
|
+
taskResume: void 0,
|
|
984226
|
+
taskCancel: void 0,
|
|
984227
|
+
taskComplete: void 0,
|
|
984228
|
+
preCompact: void 0
|
|
983227
984229
|
};
|
|
983228
984230
|
}
|
|
983229
984231
|
var HookInput2 = {
|
|
@@ -983252,6 +984254,24 @@ var HookInput2 = {
|
|
|
983252
984254
|
if (message.postToolUse !== void 0) {
|
|
983253
984255
|
PostToolUseData3.encode(message.postToolUse, writer.uint32(90).fork()).join();
|
|
983254
984256
|
}
|
|
984257
|
+
if (message.userPromptSubmit !== void 0) {
|
|
984258
|
+
UserPromptSubmitData3.encode(message.userPromptSubmit, writer.uint32(98).fork()).join();
|
|
984259
|
+
}
|
|
984260
|
+
if (message.taskStart !== void 0) {
|
|
984261
|
+
TaskStartData3.encode(message.taskStart, writer.uint32(106).fork()).join();
|
|
984262
|
+
}
|
|
984263
|
+
if (message.taskResume !== void 0) {
|
|
984264
|
+
TaskResumeData3.encode(message.taskResume, writer.uint32(114).fork()).join();
|
|
984265
|
+
}
|
|
984266
|
+
if (message.taskCancel !== void 0) {
|
|
984267
|
+
TaskCancelData3.encode(message.taskCancel, writer.uint32(122).fork()).join();
|
|
984268
|
+
}
|
|
984269
|
+
if (message.taskComplete !== void 0) {
|
|
984270
|
+
TaskCompleteData3.encode(message.taskComplete, writer.uint32(130).fork()).join();
|
|
984271
|
+
}
|
|
984272
|
+
if (message.preCompact !== void 0) {
|
|
984273
|
+
PreCompactData3.encode(message.preCompact, writer.uint32(138).fork()).join();
|
|
984274
|
+
}
|
|
983255
984275
|
return writer;
|
|
983256
984276
|
},
|
|
983257
984277
|
decode(input, length) {
|
|
@@ -983317,6 +984337,48 @@ var HookInput2 = {
|
|
|
983317
984337
|
message.postToolUse = PostToolUseData3.decode(reader, reader.uint32());
|
|
983318
984338
|
continue;
|
|
983319
984339
|
}
|
|
984340
|
+
case 12: {
|
|
984341
|
+
if (tag !== 98) {
|
|
984342
|
+
break;
|
|
984343
|
+
}
|
|
984344
|
+
message.userPromptSubmit = UserPromptSubmitData3.decode(reader, reader.uint32());
|
|
984345
|
+
continue;
|
|
984346
|
+
}
|
|
984347
|
+
case 13: {
|
|
984348
|
+
if (tag !== 106) {
|
|
984349
|
+
break;
|
|
984350
|
+
}
|
|
984351
|
+
message.taskStart = TaskStartData3.decode(reader, reader.uint32());
|
|
984352
|
+
continue;
|
|
984353
|
+
}
|
|
984354
|
+
case 14: {
|
|
984355
|
+
if (tag !== 114) {
|
|
984356
|
+
break;
|
|
984357
|
+
}
|
|
984358
|
+
message.taskResume = TaskResumeData3.decode(reader, reader.uint32());
|
|
984359
|
+
continue;
|
|
984360
|
+
}
|
|
984361
|
+
case 15: {
|
|
984362
|
+
if (tag !== 122) {
|
|
984363
|
+
break;
|
|
984364
|
+
}
|
|
984365
|
+
message.taskCancel = TaskCancelData3.decode(reader, reader.uint32());
|
|
984366
|
+
continue;
|
|
984367
|
+
}
|
|
984368
|
+
case 16: {
|
|
984369
|
+
if (tag !== 130) {
|
|
984370
|
+
break;
|
|
984371
|
+
}
|
|
984372
|
+
message.taskComplete = TaskCompleteData3.decode(reader, reader.uint32());
|
|
984373
|
+
continue;
|
|
984374
|
+
}
|
|
984375
|
+
case 17: {
|
|
984376
|
+
if (tag !== 138) {
|
|
984377
|
+
break;
|
|
984378
|
+
}
|
|
984379
|
+
message.preCompact = PreCompactData3.decode(reader, reader.uint32());
|
|
984380
|
+
continue;
|
|
984381
|
+
}
|
|
983320
984382
|
}
|
|
983321
984383
|
if ((tag & 7) === 4 || tag === 0) {
|
|
983322
984384
|
break;
|
|
@@ -983334,7 +984396,13 @@ var HookInput2 = {
|
|
|
983334
984396
|
workspaceRoots: globalThis.Array.isArray(object2?.workspaceRoots) ? object2.workspaceRoots.map((e4) => globalThis.String(e4)) : [],
|
|
983335
984397
|
userId: isSet33(object2.userId) ? globalThis.String(object2.userId) : "",
|
|
983336
984398
|
preToolUse: isSet33(object2.preToolUse) ? PreToolUseData3.fromJSON(object2.preToolUse) : void 0,
|
|
983337
|
-
postToolUse: isSet33(object2.postToolUse) ? PostToolUseData3.fromJSON(object2.postToolUse) : void 0
|
|
984399
|
+
postToolUse: isSet33(object2.postToolUse) ? PostToolUseData3.fromJSON(object2.postToolUse) : void 0,
|
|
984400
|
+
userPromptSubmit: isSet33(object2.userPromptSubmit) ? UserPromptSubmitData3.fromJSON(object2.userPromptSubmit) : void 0,
|
|
984401
|
+
taskStart: isSet33(object2.taskStart) ? TaskStartData3.fromJSON(object2.taskStart) : void 0,
|
|
984402
|
+
taskResume: isSet33(object2.taskResume) ? TaskResumeData3.fromJSON(object2.taskResume) : void 0,
|
|
984403
|
+
taskCancel: isSet33(object2.taskCancel) ? TaskCancelData3.fromJSON(object2.taskCancel) : void 0,
|
|
984404
|
+
taskComplete: isSet33(object2.taskComplete) ? TaskCompleteData3.fromJSON(object2.taskComplete) : void 0,
|
|
984405
|
+
preCompact: isSet33(object2.preCompact) ? PreCompactData3.fromJSON(object2.preCompact) : void 0
|
|
983338
984406
|
};
|
|
983339
984407
|
},
|
|
983340
984408
|
toJSON(message) {
|
|
@@ -983363,6 +984431,24 @@ var HookInput2 = {
|
|
|
983363
984431
|
if (message.postToolUse !== void 0) {
|
|
983364
984432
|
obj2.postToolUse = PostToolUseData3.toJSON(message.postToolUse);
|
|
983365
984433
|
}
|
|
984434
|
+
if (message.userPromptSubmit !== void 0) {
|
|
984435
|
+
obj2.userPromptSubmit = UserPromptSubmitData3.toJSON(message.userPromptSubmit);
|
|
984436
|
+
}
|
|
984437
|
+
if (message.taskStart !== void 0) {
|
|
984438
|
+
obj2.taskStart = TaskStartData3.toJSON(message.taskStart);
|
|
984439
|
+
}
|
|
984440
|
+
if (message.taskResume !== void 0) {
|
|
984441
|
+
obj2.taskResume = TaskResumeData3.toJSON(message.taskResume);
|
|
984442
|
+
}
|
|
984443
|
+
if (message.taskCancel !== void 0) {
|
|
984444
|
+
obj2.taskCancel = TaskCancelData3.toJSON(message.taskCancel);
|
|
984445
|
+
}
|
|
984446
|
+
if (message.taskComplete !== void 0) {
|
|
984447
|
+
obj2.taskComplete = TaskCompleteData3.toJSON(message.taskComplete);
|
|
984448
|
+
}
|
|
984449
|
+
if (message.preCompact !== void 0) {
|
|
984450
|
+
obj2.preCompact = PreCompactData3.toJSON(message.preCompact);
|
|
984451
|
+
}
|
|
983366
984452
|
return obj2;
|
|
983367
984453
|
},
|
|
983368
984454
|
create(base) {
|
|
@@ -983378,6 +984464,12 @@ var HookInput2 = {
|
|
|
983378
984464
|
message.userId = object2.userId ?? "";
|
|
983379
984465
|
message.preToolUse = object2.preToolUse !== void 0 && object2.preToolUse !== null ? PreToolUseData3.fromPartial(object2.preToolUse) : void 0;
|
|
983380
984466
|
message.postToolUse = object2.postToolUse !== void 0 && object2.postToolUse !== null ? PostToolUseData3.fromPartial(object2.postToolUse) : void 0;
|
|
984467
|
+
message.userPromptSubmit = object2.userPromptSubmit !== void 0 && object2.userPromptSubmit !== null ? UserPromptSubmitData3.fromPartial(object2.userPromptSubmit) : void 0;
|
|
984468
|
+
message.taskStart = object2.taskStart !== void 0 && object2.taskStart !== null ? TaskStartData3.fromPartial(object2.taskStart) : void 0;
|
|
984469
|
+
message.taskResume = object2.taskResume !== void 0 && object2.taskResume !== null ? TaskResumeData3.fromPartial(object2.taskResume) : void 0;
|
|
984470
|
+
message.taskCancel = object2.taskCancel !== void 0 && object2.taskCancel !== null ? TaskCancelData3.fromPartial(object2.taskCancel) : void 0;
|
|
984471
|
+
message.taskComplete = object2.taskComplete !== void 0 && object2.taskComplete !== null ? TaskCompleteData3.fromPartial(object2.taskComplete) : void 0;
|
|
984472
|
+
message.preCompact = object2.preCompact !== void 0 && object2.preCompact !== null ? PreCompactData3.fromPartial(object2.preCompact) : void 0;
|
|
983381
984473
|
return message;
|
|
983382
984474
|
}
|
|
983383
984475
|
};
|
|
@@ -983821,6 +984913,824 @@ var PostToolUseData_ParametersEntry2 = {
|
|
|
983821
984913
|
return message;
|
|
983822
984914
|
}
|
|
983823
984915
|
};
|
|
984916
|
+
function createBaseUserPromptSubmitData2() {
|
|
984917
|
+
return { prompt: "", attachments: [] };
|
|
984918
|
+
}
|
|
984919
|
+
var UserPromptSubmitData3 = {
|
|
984920
|
+
encode(message, writer = new BinaryWriter()) {
|
|
984921
|
+
if (message.prompt !== "") {
|
|
984922
|
+
writer.uint32(10).string(message.prompt);
|
|
984923
|
+
}
|
|
984924
|
+
for (const v7 of message.attachments) {
|
|
984925
|
+
writer.uint32(18).string(v7);
|
|
984926
|
+
}
|
|
984927
|
+
return writer;
|
|
984928
|
+
},
|
|
984929
|
+
decode(input, length) {
|
|
984930
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
984931
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
984932
|
+
const message = createBaseUserPromptSubmitData2();
|
|
984933
|
+
while (reader.pos < end2) {
|
|
984934
|
+
const tag = reader.uint32();
|
|
984935
|
+
switch (tag >>> 3) {
|
|
984936
|
+
case 1: {
|
|
984937
|
+
if (tag !== 10) {
|
|
984938
|
+
break;
|
|
984939
|
+
}
|
|
984940
|
+
message.prompt = reader.string();
|
|
984941
|
+
continue;
|
|
984942
|
+
}
|
|
984943
|
+
case 2: {
|
|
984944
|
+
if (tag !== 18) {
|
|
984945
|
+
break;
|
|
984946
|
+
}
|
|
984947
|
+
message.attachments.push(reader.string());
|
|
984948
|
+
continue;
|
|
984949
|
+
}
|
|
984950
|
+
}
|
|
984951
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
984952
|
+
break;
|
|
984953
|
+
}
|
|
984954
|
+
reader.skip(tag & 7);
|
|
984955
|
+
}
|
|
984956
|
+
return message;
|
|
984957
|
+
},
|
|
984958
|
+
fromJSON(object2) {
|
|
984959
|
+
return {
|
|
984960
|
+
prompt: isSet33(object2.prompt) ? globalThis.String(object2.prompt) : "",
|
|
984961
|
+
attachments: globalThis.Array.isArray(object2?.attachments) ? object2.attachments.map((e4) => globalThis.String(e4)) : []
|
|
984962
|
+
};
|
|
984963
|
+
},
|
|
984964
|
+
toJSON(message) {
|
|
984965
|
+
const obj2 = {};
|
|
984966
|
+
if (message.prompt !== "") {
|
|
984967
|
+
obj2.prompt = message.prompt;
|
|
984968
|
+
}
|
|
984969
|
+
if (message.attachments?.length) {
|
|
984970
|
+
obj2.attachments = message.attachments;
|
|
984971
|
+
}
|
|
984972
|
+
return obj2;
|
|
984973
|
+
},
|
|
984974
|
+
create(base) {
|
|
984975
|
+
return UserPromptSubmitData3.fromPartial(base ?? {});
|
|
984976
|
+
},
|
|
984977
|
+
fromPartial(object2) {
|
|
984978
|
+
const message = createBaseUserPromptSubmitData2();
|
|
984979
|
+
message.prompt = object2.prompt ?? "";
|
|
984980
|
+
message.attachments = object2.attachments?.map((e4) => e4) || [];
|
|
984981
|
+
return message;
|
|
984982
|
+
}
|
|
984983
|
+
};
|
|
984984
|
+
function createBaseTaskStartData2() {
|
|
984985
|
+
return { taskMetadata: {} };
|
|
984986
|
+
}
|
|
984987
|
+
var TaskStartData3 = {
|
|
984988
|
+
encode(message, writer = new BinaryWriter()) {
|
|
984989
|
+
Object.entries(message.taskMetadata).forEach(([key, value]) => {
|
|
984990
|
+
TaskStartData_TaskMetadataEntry2.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
984991
|
+
});
|
|
984992
|
+
return writer;
|
|
984993
|
+
},
|
|
984994
|
+
decode(input, length) {
|
|
984995
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
984996
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
984997
|
+
const message = createBaseTaskStartData2();
|
|
984998
|
+
while (reader.pos < end2) {
|
|
984999
|
+
const tag = reader.uint32();
|
|
985000
|
+
switch (tag >>> 3) {
|
|
985001
|
+
case 1: {
|
|
985002
|
+
if (tag !== 10) {
|
|
985003
|
+
break;
|
|
985004
|
+
}
|
|
985005
|
+
const entry1 = TaskStartData_TaskMetadataEntry2.decode(reader, reader.uint32());
|
|
985006
|
+
if (entry1.value !== void 0) {
|
|
985007
|
+
message.taskMetadata[entry1.key] = entry1.value;
|
|
985008
|
+
}
|
|
985009
|
+
continue;
|
|
985010
|
+
}
|
|
985011
|
+
}
|
|
985012
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985013
|
+
break;
|
|
985014
|
+
}
|
|
985015
|
+
reader.skip(tag & 7);
|
|
985016
|
+
}
|
|
985017
|
+
return message;
|
|
985018
|
+
},
|
|
985019
|
+
fromJSON(object2) {
|
|
985020
|
+
return {
|
|
985021
|
+
taskMetadata: isObject14(object2.taskMetadata) ? Object.entries(object2.taskMetadata).reduce((acc, [key, value]) => {
|
|
985022
|
+
acc[key] = String(value);
|
|
985023
|
+
return acc;
|
|
985024
|
+
}, {}) : {}
|
|
985025
|
+
};
|
|
985026
|
+
},
|
|
985027
|
+
toJSON(message) {
|
|
985028
|
+
const obj2 = {};
|
|
985029
|
+
if (message.taskMetadata) {
|
|
985030
|
+
const entries = Object.entries(message.taskMetadata);
|
|
985031
|
+
if (entries.length > 0) {
|
|
985032
|
+
obj2.taskMetadata = {};
|
|
985033
|
+
entries.forEach(([k4, v7]) => {
|
|
985034
|
+
obj2.taskMetadata[k4] = v7;
|
|
985035
|
+
});
|
|
985036
|
+
}
|
|
985037
|
+
}
|
|
985038
|
+
return obj2;
|
|
985039
|
+
},
|
|
985040
|
+
create(base) {
|
|
985041
|
+
return TaskStartData3.fromPartial(base ?? {});
|
|
985042
|
+
},
|
|
985043
|
+
fromPartial(object2) {
|
|
985044
|
+
const message = createBaseTaskStartData2();
|
|
985045
|
+
message.taskMetadata = Object.entries(object2.taskMetadata ?? {}).reduce(
|
|
985046
|
+
(acc, [key, value]) => {
|
|
985047
|
+
if (value !== void 0) {
|
|
985048
|
+
acc[key] = globalThis.String(value);
|
|
985049
|
+
}
|
|
985050
|
+
return acc;
|
|
985051
|
+
},
|
|
985052
|
+
{}
|
|
985053
|
+
);
|
|
985054
|
+
return message;
|
|
985055
|
+
}
|
|
985056
|
+
};
|
|
985057
|
+
function createBaseTaskStartData_TaskMetadataEntry2() {
|
|
985058
|
+
return { key: "", value: "" };
|
|
985059
|
+
}
|
|
985060
|
+
var TaskStartData_TaskMetadataEntry2 = {
|
|
985061
|
+
encode(message, writer = new BinaryWriter()) {
|
|
985062
|
+
if (message.key !== "") {
|
|
985063
|
+
writer.uint32(10).string(message.key);
|
|
985064
|
+
}
|
|
985065
|
+
if (message.value !== "") {
|
|
985066
|
+
writer.uint32(18).string(message.value);
|
|
985067
|
+
}
|
|
985068
|
+
return writer;
|
|
985069
|
+
},
|
|
985070
|
+
decode(input, length) {
|
|
985071
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
985072
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
985073
|
+
const message = createBaseTaskStartData_TaskMetadataEntry2();
|
|
985074
|
+
while (reader.pos < end2) {
|
|
985075
|
+
const tag = reader.uint32();
|
|
985076
|
+
switch (tag >>> 3) {
|
|
985077
|
+
case 1: {
|
|
985078
|
+
if (tag !== 10) {
|
|
985079
|
+
break;
|
|
985080
|
+
}
|
|
985081
|
+
message.key = reader.string();
|
|
985082
|
+
continue;
|
|
985083
|
+
}
|
|
985084
|
+
case 2: {
|
|
985085
|
+
if (tag !== 18) {
|
|
985086
|
+
break;
|
|
985087
|
+
}
|
|
985088
|
+
message.value = reader.string();
|
|
985089
|
+
continue;
|
|
985090
|
+
}
|
|
985091
|
+
}
|
|
985092
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985093
|
+
break;
|
|
985094
|
+
}
|
|
985095
|
+
reader.skip(tag & 7);
|
|
985096
|
+
}
|
|
985097
|
+
return message;
|
|
985098
|
+
},
|
|
985099
|
+
fromJSON(object2) {
|
|
985100
|
+
return {
|
|
985101
|
+
key: isSet33(object2.key) ? globalThis.String(object2.key) : "",
|
|
985102
|
+
value: isSet33(object2.value) ? globalThis.String(object2.value) : ""
|
|
985103
|
+
};
|
|
985104
|
+
},
|
|
985105
|
+
toJSON(message) {
|
|
985106
|
+
const obj2 = {};
|
|
985107
|
+
if (message.key !== "") {
|
|
985108
|
+
obj2.key = message.key;
|
|
985109
|
+
}
|
|
985110
|
+
if (message.value !== "") {
|
|
985111
|
+
obj2.value = message.value;
|
|
985112
|
+
}
|
|
985113
|
+
return obj2;
|
|
985114
|
+
},
|
|
985115
|
+
create(base) {
|
|
985116
|
+
return TaskStartData_TaskMetadataEntry2.fromPartial(base ?? {});
|
|
985117
|
+
},
|
|
985118
|
+
fromPartial(object2) {
|
|
985119
|
+
const message = createBaseTaskStartData_TaskMetadataEntry2();
|
|
985120
|
+
message.key = object2.key ?? "";
|
|
985121
|
+
message.value = object2.value ?? "";
|
|
985122
|
+
return message;
|
|
985123
|
+
}
|
|
985124
|
+
};
|
|
985125
|
+
function createBaseTaskResumeData2() {
|
|
985126
|
+
return { taskMetadata: {}, previousState: {} };
|
|
985127
|
+
}
|
|
985128
|
+
var TaskResumeData3 = {
|
|
985129
|
+
encode(message, writer = new BinaryWriter()) {
|
|
985130
|
+
Object.entries(message.taskMetadata).forEach(([key, value]) => {
|
|
985131
|
+
TaskResumeData_TaskMetadataEntry2.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
985132
|
+
});
|
|
985133
|
+
Object.entries(message.previousState).forEach(([key, value]) => {
|
|
985134
|
+
TaskResumeData_PreviousStateEntry2.encode({ key, value }, writer.uint32(18).fork()).join();
|
|
985135
|
+
});
|
|
985136
|
+
return writer;
|
|
985137
|
+
},
|
|
985138
|
+
decode(input, length) {
|
|
985139
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
985140
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
985141
|
+
const message = createBaseTaskResumeData2();
|
|
985142
|
+
while (reader.pos < end2) {
|
|
985143
|
+
const tag = reader.uint32();
|
|
985144
|
+
switch (tag >>> 3) {
|
|
985145
|
+
case 1: {
|
|
985146
|
+
if (tag !== 10) {
|
|
985147
|
+
break;
|
|
985148
|
+
}
|
|
985149
|
+
const entry1 = TaskResumeData_TaskMetadataEntry2.decode(reader, reader.uint32());
|
|
985150
|
+
if (entry1.value !== void 0) {
|
|
985151
|
+
message.taskMetadata[entry1.key] = entry1.value;
|
|
985152
|
+
}
|
|
985153
|
+
continue;
|
|
985154
|
+
}
|
|
985155
|
+
case 2: {
|
|
985156
|
+
if (tag !== 18) {
|
|
985157
|
+
break;
|
|
985158
|
+
}
|
|
985159
|
+
const entry2 = TaskResumeData_PreviousStateEntry2.decode(reader, reader.uint32());
|
|
985160
|
+
if (entry2.value !== void 0) {
|
|
985161
|
+
message.previousState[entry2.key] = entry2.value;
|
|
985162
|
+
}
|
|
985163
|
+
continue;
|
|
985164
|
+
}
|
|
985165
|
+
}
|
|
985166
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985167
|
+
break;
|
|
985168
|
+
}
|
|
985169
|
+
reader.skip(tag & 7);
|
|
985170
|
+
}
|
|
985171
|
+
return message;
|
|
985172
|
+
},
|
|
985173
|
+
fromJSON(object2) {
|
|
985174
|
+
return {
|
|
985175
|
+
taskMetadata: isObject14(object2.taskMetadata) ? Object.entries(object2.taskMetadata).reduce((acc, [key, value]) => {
|
|
985176
|
+
acc[key] = String(value);
|
|
985177
|
+
return acc;
|
|
985178
|
+
}, {}) : {},
|
|
985179
|
+
previousState: isObject14(object2.previousState) ? Object.entries(object2.previousState).reduce((acc, [key, value]) => {
|
|
985180
|
+
acc[key] = String(value);
|
|
985181
|
+
return acc;
|
|
985182
|
+
}, {}) : {}
|
|
985183
|
+
};
|
|
985184
|
+
},
|
|
985185
|
+
toJSON(message) {
|
|
985186
|
+
const obj2 = {};
|
|
985187
|
+
if (message.taskMetadata) {
|
|
985188
|
+
const entries = Object.entries(message.taskMetadata);
|
|
985189
|
+
if (entries.length > 0) {
|
|
985190
|
+
obj2.taskMetadata = {};
|
|
985191
|
+
entries.forEach(([k4, v7]) => {
|
|
985192
|
+
obj2.taskMetadata[k4] = v7;
|
|
985193
|
+
});
|
|
985194
|
+
}
|
|
985195
|
+
}
|
|
985196
|
+
if (message.previousState) {
|
|
985197
|
+
const entries = Object.entries(message.previousState);
|
|
985198
|
+
if (entries.length > 0) {
|
|
985199
|
+
obj2.previousState = {};
|
|
985200
|
+
entries.forEach(([k4, v7]) => {
|
|
985201
|
+
obj2.previousState[k4] = v7;
|
|
985202
|
+
});
|
|
985203
|
+
}
|
|
985204
|
+
}
|
|
985205
|
+
return obj2;
|
|
985206
|
+
},
|
|
985207
|
+
create(base) {
|
|
985208
|
+
return TaskResumeData3.fromPartial(base ?? {});
|
|
985209
|
+
},
|
|
985210
|
+
fromPartial(object2) {
|
|
985211
|
+
const message = createBaseTaskResumeData2();
|
|
985212
|
+
message.taskMetadata = Object.entries(object2.taskMetadata ?? {}).reduce(
|
|
985213
|
+
(acc, [key, value]) => {
|
|
985214
|
+
if (value !== void 0) {
|
|
985215
|
+
acc[key] = globalThis.String(value);
|
|
985216
|
+
}
|
|
985217
|
+
return acc;
|
|
985218
|
+
},
|
|
985219
|
+
{}
|
|
985220
|
+
);
|
|
985221
|
+
message.previousState = Object.entries(object2.previousState ?? {}).reduce(
|
|
985222
|
+
(acc, [key, value]) => {
|
|
985223
|
+
if (value !== void 0) {
|
|
985224
|
+
acc[key] = globalThis.String(value);
|
|
985225
|
+
}
|
|
985226
|
+
return acc;
|
|
985227
|
+
},
|
|
985228
|
+
{}
|
|
985229
|
+
);
|
|
985230
|
+
return message;
|
|
985231
|
+
}
|
|
985232
|
+
};
|
|
985233
|
+
function createBaseTaskResumeData_TaskMetadataEntry2() {
|
|
985234
|
+
return { key: "", value: "" };
|
|
985235
|
+
}
|
|
985236
|
+
var TaskResumeData_TaskMetadataEntry2 = {
|
|
985237
|
+
encode(message, writer = new BinaryWriter()) {
|
|
985238
|
+
if (message.key !== "") {
|
|
985239
|
+
writer.uint32(10).string(message.key);
|
|
985240
|
+
}
|
|
985241
|
+
if (message.value !== "") {
|
|
985242
|
+
writer.uint32(18).string(message.value);
|
|
985243
|
+
}
|
|
985244
|
+
return writer;
|
|
985245
|
+
},
|
|
985246
|
+
decode(input, length) {
|
|
985247
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
985248
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
985249
|
+
const message = createBaseTaskResumeData_TaskMetadataEntry2();
|
|
985250
|
+
while (reader.pos < end2) {
|
|
985251
|
+
const tag = reader.uint32();
|
|
985252
|
+
switch (tag >>> 3) {
|
|
985253
|
+
case 1: {
|
|
985254
|
+
if (tag !== 10) {
|
|
985255
|
+
break;
|
|
985256
|
+
}
|
|
985257
|
+
message.key = reader.string();
|
|
985258
|
+
continue;
|
|
985259
|
+
}
|
|
985260
|
+
case 2: {
|
|
985261
|
+
if (tag !== 18) {
|
|
985262
|
+
break;
|
|
985263
|
+
}
|
|
985264
|
+
message.value = reader.string();
|
|
985265
|
+
continue;
|
|
985266
|
+
}
|
|
985267
|
+
}
|
|
985268
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985269
|
+
break;
|
|
985270
|
+
}
|
|
985271
|
+
reader.skip(tag & 7);
|
|
985272
|
+
}
|
|
985273
|
+
return message;
|
|
985274
|
+
},
|
|
985275
|
+
fromJSON(object2) {
|
|
985276
|
+
return {
|
|
985277
|
+
key: isSet33(object2.key) ? globalThis.String(object2.key) : "",
|
|
985278
|
+
value: isSet33(object2.value) ? globalThis.String(object2.value) : ""
|
|
985279
|
+
};
|
|
985280
|
+
},
|
|
985281
|
+
toJSON(message) {
|
|
985282
|
+
const obj2 = {};
|
|
985283
|
+
if (message.key !== "") {
|
|
985284
|
+
obj2.key = message.key;
|
|
985285
|
+
}
|
|
985286
|
+
if (message.value !== "") {
|
|
985287
|
+
obj2.value = message.value;
|
|
985288
|
+
}
|
|
985289
|
+
return obj2;
|
|
985290
|
+
},
|
|
985291
|
+
create(base) {
|
|
985292
|
+
return TaskResumeData_TaskMetadataEntry2.fromPartial(base ?? {});
|
|
985293
|
+
},
|
|
985294
|
+
fromPartial(object2) {
|
|
985295
|
+
const message = createBaseTaskResumeData_TaskMetadataEntry2();
|
|
985296
|
+
message.key = object2.key ?? "";
|
|
985297
|
+
message.value = object2.value ?? "";
|
|
985298
|
+
return message;
|
|
985299
|
+
}
|
|
985300
|
+
};
|
|
985301
|
+
function createBaseTaskResumeData_PreviousStateEntry2() {
|
|
985302
|
+
return { key: "", value: "" };
|
|
985303
|
+
}
|
|
985304
|
+
var TaskResumeData_PreviousStateEntry2 = {
|
|
985305
|
+
encode(message, writer = new BinaryWriter()) {
|
|
985306
|
+
if (message.key !== "") {
|
|
985307
|
+
writer.uint32(10).string(message.key);
|
|
985308
|
+
}
|
|
985309
|
+
if (message.value !== "") {
|
|
985310
|
+
writer.uint32(18).string(message.value);
|
|
985311
|
+
}
|
|
985312
|
+
return writer;
|
|
985313
|
+
},
|
|
985314
|
+
decode(input, length) {
|
|
985315
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
985316
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
985317
|
+
const message = createBaseTaskResumeData_PreviousStateEntry2();
|
|
985318
|
+
while (reader.pos < end2) {
|
|
985319
|
+
const tag = reader.uint32();
|
|
985320
|
+
switch (tag >>> 3) {
|
|
985321
|
+
case 1: {
|
|
985322
|
+
if (tag !== 10) {
|
|
985323
|
+
break;
|
|
985324
|
+
}
|
|
985325
|
+
message.key = reader.string();
|
|
985326
|
+
continue;
|
|
985327
|
+
}
|
|
985328
|
+
case 2: {
|
|
985329
|
+
if (tag !== 18) {
|
|
985330
|
+
break;
|
|
985331
|
+
}
|
|
985332
|
+
message.value = reader.string();
|
|
985333
|
+
continue;
|
|
985334
|
+
}
|
|
985335
|
+
}
|
|
985336
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985337
|
+
break;
|
|
985338
|
+
}
|
|
985339
|
+
reader.skip(tag & 7);
|
|
985340
|
+
}
|
|
985341
|
+
return message;
|
|
985342
|
+
},
|
|
985343
|
+
fromJSON(object2) {
|
|
985344
|
+
return {
|
|
985345
|
+
key: isSet33(object2.key) ? globalThis.String(object2.key) : "",
|
|
985346
|
+
value: isSet33(object2.value) ? globalThis.String(object2.value) : ""
|
|
985347
|
+
};
|
|
985348
|
+
},
|
|
985349
|
+
toJSON(message) {
|
|
985350
|
+
const obj2 = {};
|
|
985351
|
+
if (message.key !== "") {
|
|
985352
|
+
obj2.key = message.key;
|
|
985353
|
+
}
|
|
985354
|
+
if (message.value !== "") {
|
|
985355
|
+
obj2.value = message.value;
|
|
985356
|
+
}
|
|
985357
|
+
return obj2;
|
|
985358
|
+
},
|
|
985359
|
+
create(base) {
|
|
985360
|
+
return TaskResumeData_PreviousStateEntry2.fromPartial(base ?? {});
|
|
985361
|
+
},
|
|
985362
|
+
fromPartial(object2) {
|
|
985363
|
+
const message = createBaseTaskResumeData_PreviousStateEntry2();
|
|
985364
|
+
message.key = object2.key ?? "";
|
|
985365
|
+
message.value = object2.value ?? "";
|
|
985366
|
+
return message;
|
|
985367
|
+
}
|
|
985368
|
+
};
|
|
985369
|
+
function createBaseTaskCancelData2() {
|
|
985370
|
+
return { taskMetadata: {} };
|
|
985371
|
+
}
|
|
985372
|
+
var TaskCancelData3 = {
|
|
985373
|
+
encode(message, writer = new BinaryWriter()) {
|
|
985374
|
+
Object.entries(message.taskMetadata).forEach(([key, value]) => {
|
|
985375
|
+
TaskCancelData_TaskMetadataEntry2.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
985376
|
+
});
|
|
985377
|
+
return writer;
|
|
985378
|
+
},
|
|
985379
|
+
decode(input, length) {
|
|
985380
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
985381
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
985382
|
+
const message = createBaseTaskCancelData2();
|
|
985383
|
+
while (reader.pos < end2) {
|
|
985384
|
+
const tag = reader.uint32();
|
|
985385
|
+
switch (tag >>> 3) {
|
|
985386
|
+
case 1: {
|
|
985387
|
+
if (tag !== 10) {
|
|
985388
|
+
break;
|
|
985389
|
+
}
|
|
985390
|
+
const entry1 = TaskCancelData_TaskMetadataEntry2.decode(reader, reader.uint32());
|
|
985391
|
+
if (entry1.value !== void 0) {
|
|
985392
|
+
message.taskMetadata[entry1.key] = entry1.value;
|
|
985393
|
+
}
|
|
985394
|
+
continue;
|
|
985395
|
+
}
|
|
985396
|
+
}
|
|
985397
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985398
|
+
break;
|
|
985399
|
+
}
|
|
985400
|
+
reader.skip(tag & 7);
|
|
985401
|
+
}
|
|
985402
|
+
return message;
|
|
985403
|
+
},
|
|
985404
|
+
fromJSON(object2) {
|
|
985405
|
+
return {
|
|
985406
|
+
taskMetadata: isObject14(object2.taskMetadata) ? Object.entries(object2.taskMetadata).reduce((acc, [key, value]) => {
|
|
985407
|
+
acc[key] = String(value);
|
|
985408
|
+
return acc;
|
|
985409
|
+
}, {}) : {}
|
|
985410
|
+
};
|
|
985411
|
+
},
|
|
985412
|
+
toJSON(message) {
|
|
985413
|
+
const obj2 = {};
|
|
985414
|
+
if (message.taskMetadata) {
|
|
985415
|
+
const entries = Object.entries(message.taskMetadata);
|
|
985416
|
+
if (entries.length > 0) {
|
|
985417
|
+
obj2.taskMetadata = {};
|
|
985418
|
+
entries.forEach(([k4, v7]) => {
|
|
985419
|
+
obj2.taskMetadata[k4] = v7;
|
|
985420
|
+
});
|
|
985421
|
+
}
|
|
985422
|
+
}
|
|
985423
|
+
return obj2;
|
|
985424
|
+
},
|
|
985425
|
+
create(base) {
|
|
985426
|
+
return TaskCancelData3.fromPartial(base ?? {});
|
|
985427
|
+
},
|
|
985428
|
+
fromPartial(object2) {
|
|
985429
|
+
const message = createBaseTaskCancelData2();
|
|
985430
|
+
message.taskMetadata = Object.entries(object2.taskMetadata ?? {}).reduce(
|
|
985431
|
+
(acc, [key, value]) => {
|
|
985432
|
+
if (value !== void 0) {
|
|
985433
|
+
acc[key] = globalThis.String(value);
|
|
985434
|
+
}
|
|
985435
|
+
return acc;
|
|
985436
|
+
},
|
|
985437
|
+
{}
|
|
985438
|
+
);
|
|
985439
|
+
return message;
|
|
985440
|
+
}
|
|
985441
|
+
};
|
|
985442
|
+
function createBaseTaskCancelData_TaskMetadataEntry2() {
|
|
985443
|
+
return { key: "", value: "" };
|
|
985444
|
+
}
|
|
985445
|
+
var TaskCancelData_TaskMetadataEntry2 = {
|
|
985446
|
+
encode(message, writer = new BinaryWriter()) {
|
|
985447
|
+
if (message.key !== "") {
|
|
985448
|
+
writer.uint32(10).string(message.key);
|
|
985449
|
+
}
|
|
985450
|
+
if (message.value !== "") {
|
|
985451
|
+
writer.uint32(18).string(message.value);
|
|
985452
|
+
}
|
|
985453
|
+
return writer;
|
|
985454
|
+
},
|
|
985455
|
+
decode(input, length) {
|
|
985456
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
985457
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
985458
|
+
const message = createBaseTaskCancelData_TaskMetadataEntry2();
|
|
985459
|
+
while (reader.pos < end2) {
|
|
985460
|
+
const tag = reader.uint32();
|
|
985461
|
+
switch (tag >>> 3) {
|
|
985462
|
+
case 1: {
|
|
985463
|
+
if (tag !== 10) {
|
|
985464
|
+
break;
|
|
985465
|
+
}
|
|
985466
|
+
message.key = reader.string();
|
|
985467
|
+
continue;
|
|
985468
|
+
}
|
|
985469
|
+
case 2: {
|
|
985470
|
+
if (tag !== 18) {
|
|
985471
|
+
break;
|
|
985472
|
+
}
|
|
985473
|
+
message.value = reader.string();
|
|
985474
|
+
continue;
|
|
985475
|
+
}
|
|
985476
|
+
}
|
|
985477
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985478
|
+
break;
|
|
985479
|
+
}
|
|
985480
|
+
reader.skip(tag & 7);
|
|
985481
|
+
}
|
|
985482
|
+
return message;
|
|
985483
|
+
},
|
|
985484
|
+
fromJSON(object2) {
|
|
985485
|
+
return {
|
|
985486
|
+
key: isSet33(object2.key) ? globalThis.String(object2.key) : "",
|
|
985487
|
+
value: isSet33(object2.value) ? globalThis.String(object2.value) : ""
|
|
985488
|
+
};
|
|
985489
|
+
},
|
|
985490
|
+
toJSON(message) {
|
|
985491
|
+
const obj2 = {};
|
|
985492
|
+
if (message.key !== "") {
|
|
985493
|
+
obj2.key = message.key;
|
|
985494
|
+
}
|
|
985495
|
+
if (message.value !== "") {
|
|
985496
|
+
obj2.value = message.value;
|
|
985497
|
+
}
|
|
985498
|
+
return obj2;
|
|
985499
|
+
},
|
|
985500
|
+
create(base) {
|
|
985501
|
+
return TaskCancelData_TaskMetadataEntry2.fromPartial(base ?? {});
|
|
985502
|
+
},
|
|
985503
|
+
fromPartial(object2) {
|
|
985504
|
+
const message = createBaseTaskCancelData_TaskMetadataEntry2();
|
|
985505
|
+
message.key = object2.key ?? "";
|
|
985506
|
+
message.value = object2.value ?? "";
|
|
985507
|
+
return message;
|
|
985508
|
+
}
|
|
985509
|
+
};
|
|
985510
|
+
function createBaseTaskCompleteData2() {
|
|
985511
|
+
return { taskMetadata: {} };
|
|
985512
|
+
}
|
|
985513
|
+
var TaskCompleteData3 = {
|
|
985514
|
+
encode(message, writer = new BinaryWriter()) {
|
|
985515
|
+
Object.entries(message.taskMetadata).forEach(([key, value]) => {
|
|
985516
|
+
TaskCompleteData_TaskMetadataEntry2.encode({ key, value }, writer.uint32(10).fork()).join();
|
|
985517
|
+
});
|
|
985518
|
+
return writer;
|
|
985519
|
+
},
|
|
985520
|
+
decode(input, length) {
|
|
985521
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
985522
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
985523
|
+
const message = createBaseTaskCompleteData2();
|
|
985524
|
+
while (reader.pos < end2) {
|
|
985525
|
+
const tag = reader.uint32();
|
|
985526
|
+
switch (tag >>> 3) {
|
|
985527
|
+
case 1: {
|
|
985528
|
+
if (tag !== 10) {
|
|
985529
|
+
break;
|
|
985530
|
+
}
|
|
985531
|
+
const entry1 = TaskCompleteData_TaskMetadataEntry2.decode(reader, reader.uint32());
|
|
985532
|
+
if (entry1.value !== void 0) {
|
|
985533
|
+
message.taskMetadata[entry1.key] = entry1.value;
|
|
985534
|
+
}
|
|
985535
|
+
continue;
|
|
985536
|
+
}
|
|
985537
|
+
}
|
|
985538
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985539
|
+
break;
|
|
985540
|
+
}
|
|
985541
|
+
reader.skip(tag & 7);
|
|
985542
|
+
}
|
|
985543
|
+
return message;
|
|
985544
|
+
},
|
|
985545
|
+
fromJSON(object2) {
|
|
985546
|
+
return {
|
|
985547
|
+
taskMetadata: isObject14(object2.taskMetadata) ? Object.entries(object2.taskMetadata).reduce((acc, [key, value]) => {
|
|
985548
|
+
acc[key] = String(value);
|
|
985549
|
+
return acc;
|
|
985550
|
+
}, {}) : {}
|
|
985551
|
+
};
|
|
985552
|
+
},
|
|
985553
|
+
toJSON(message) {
|
|
985554
|
+
const obj2 = {};
|
|
985555
|
+
if (message.taskMetadata) {
|
|
985556
|
+
const entries = Object.entries(message.taskMetadata);
|
|
985557
|
+
if (entries.length > 0) {
|
|
985558
|
+
obj2.taskMetadata = {};
|
|
985559
|
+
entries.forEach(([k4, v7]) => {
|
|
985560
|
+
obj2.taskMetadata[k4] = v7;
|
|
985561
|
+
});
|
|
985562
|
+
}
|
|
985563
|
+
}
|
|
985564
|
+
return obj2;
|
|
985565
|
+
},
|
|
985566
|
+
create(base) {
|
|
985567
|
+
return TaskCompleteData3.fromPartial(base ?? {});
|
|
985568
|
+
},
|
|
985569
|
+
fromPartial(object2) {
|
|
985570
|
+
const message = createBaseTaskCompleteData2();
|
|
985571
|
+
message.taskMetadata = Object.entries(object2.taskMetadata ?? {}).reduce(
|
|
985572
|
+
(acc, [key, value]) => {
|
|
985573
|
+
if (value !== void 0) {
|
|
985574
|
+
acc[key] = globalThis.String(value);
|
|
985575
|
+
}
|
|
985576
|
+
return acc;
|
|
985577
|
+
},
|
|
985578
|
+
{}
|
|
985579
|
+
);
|
|
985580
|
+
return message;
|
|
985581
|
+
}
|
|
985582
|
+
};
|
|
985583
|
+
function createBaseTaskCompleteData_TaskMetadataEntry2() {
|
|
985584
|
+
return { key: "", value: "" };
|
|
985585
|
+
}
|
|
985586
|
+
var TaskCompleteData_TaskMetadataEntry2 = {
|
|
985587
|
+
encode(message, writer = new BinaryWriter()) {
|
|
985588
|
+
if (message.key !== "") {
|
|
985589
|
+
writer.uint32(10).string(message.key);
|
|
985590
|
+
}
|
|
985591
|
+
if (message.value !== "") {
|
|
985592
|
+
writer.uint32(18).string(message.value);
|
|
985593
|
+
}
|
|
985594
|
+
return writer;
|
|
985595
|
+
},
|
|
985596
|
+
decode(input, length) {
|
|
985597
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
985598
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
985599
|
+
const message = createBaseTaskCompleteData_TaskMetadataEntry2();
|
|
985600
|
+
while (reader.pos < end2) {
|
|
985601
|
+
const tag = reader.uint32();
|
|
985602
|
+
switch (tag >>> 3) {
|
|
985603
|
+
case 1: {
|
|
985604
|
+
if (tag !== 10) {
|
|
985605
|
+
break;
|
|
985606
|
+
}
|
|
985607
|
+
message.key = reader.string();
|
|
985608
|
+
continue;
|
|
985609
|
+
}
|
|
985610
|
+
case 2: {
|
|
985611
|
+
if (tag !== 18) {
|
|
985612
|
+
break;
|
|
985613
|
+
}
|
|
985614
|
+
message.value = reader.string();
|
|
985615
|
+
continue;
|
|
985616
|
+
}
|
|
985617
|
+
}
|
|
985618
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985619
|
+
break;
|
|
985620
|
+
}
|
|
985621
|
+
reader.skip(tag & 7);
|
|
985622
|
+
}
|
|
985623
|
+
return message;
|
|
985624
|
+
},
|
|
985625
|
+
fromJSON(object2) {
|
|
985626
|
+
return {
|
|
985627
|
+
key: isSet33(object2.key) ? globalThis.String(object2.key) : "",
|
|
985628
|
+
value: isSet33(object2.value) ? globalThis.String(object2.value) : ""
|
|
985629
|
+
};
|
|
985630
|
+
},
|
|
985631
|
+
toJSON(message) {
|
|
985632
|
+
const obj2 = {};
|
|
985633
|
+
if (message.key !== "") {
|
|
985634
|
+
obj2.key = message.key;
|
|
985635
|
+
}
|
|
985636
|
+
if (message.value !== "") {
|
|
985637
|
+
obj2.value = message.value;
|
|
985638
|
+
}
|
|
985639
|
+
return obj2;
|
|
985640
|
+
},
|
|
985641
|
+
create(base) {
|
|
985642
|
+
return TaskCompleteData_TaskMetadataEntry2.fromPartial(base ?? {});
|
|
985643
|
+
},
|
|
985644
|
+
fromPartial(object2) {
|
|
985645
|
+
const message = createBaseTaskCompleteData_TaskMetadataEntry2();
|
|
985646
|
+
message.key = object2.key ?? "";
|
|
985647
|
+
message.value = object2.value ?? "";
|
|
985648
|
+
return message;
|
|
985649
|
+
}
|
|
985650
|
+
};
|
|
985651
|
+
function createBasePreCompactData2() {
|
|
985652
|
+
return { contextSize: 0, messagesToCompact: 0, compactionStrategy: "" };
|
|
985653
|
+
}
|
|
985654
|
+
var PreCompactData3 = {
|
|
985655
|
+
encode(message, writer = new BinaryWriter()) {
|
|
985656
|
+
if (message.contextSize !== 0) {
|
|
985657
|
+
writer.uint32(8).int64(message.contextSize);
|
|
985658
|
+
}
|
|
985659
|
+
if (message.messagesToCompact !== 0) {
|
|
985660
|
+
writer.uint32(16).int32(message.messagesToCompact);
|
|
985661
|
+
}
|
|
985662
|
+
if (message.compactionStrategy !== "") {
|
|
985663
|
+
writer.uint32(26).string(message.compactionStrategy);
|
|
985664
|
+
}
|
|
985665
|
+
return writer;
|
|
985666
|
+
},
|
|
985667
|
+
decode(input, length) {
|
|
985668
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
985669
|
+
let end2 = length === void 0 ? reader.len : reader.pos + length;
|
|
985670
|
+
const message = createBasePreCompactData2();
|
|
985671
|
+
while (reader.pos < end2) {
|
|
985672
|
+
const tag = reader.uint32();
|
|
985673
|
+
switch (tag >>> 3) {
|
|
985674
|
+
case 1: {
|
|
985675
|
+
if (tag !== 8) {
|
|
985676
|
+
break;
|
|
985677
|
+
}
|
|
985678
|
+
message.contextSize = longToNumber12(reader.int64());
|
|
985679
|
+
continue;
|
|
985680
|
+
}
|
|
985681
|
+
case 2: {
|
|
985682
|
+
if (tag !== 16) {
|
|
985683
|
+
break;
|
|
985684
|
+
}
|
|
985685
|
+
message.messagesToCompact = reader.int32();
|
|
985686
|
+
continue;
|
|
985687
|
+
}
|
|
985688
|
+
case 3: {
|
|
985689
|
+
if (tag !== 26) {
|
|
985690
|
+
break;
|
|
985691
|
+
}
|
|
985692
|
+
message.compactionStrategy = reader.string();
|
|
985693
|
+
continue;
|
|
985694
|
+
}
|
|
985695
|
+
}
|
|
985696
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
985697
|
+
break;
|
|
985698
|
+
}
|
|
985699
|
+
reader.skip(tag & 7);
|
|
985700
|
+
}
|
|
985701
|
+
return message;
|
|
985702
|
+
},
|
|
985703
|
+
fromJSON(object2) {
|
|
985704
|
+
return {
|
|
985705
|
+
contextSize: isSet33(object2.contextSize) ? globalThis.Number(object2.contextSize) : 0,
|
|
985706
|
+
messagesToCompact: isSet33(object2.messagesToCompact) ? globalThis.Number(object2.messagesToCompact) : 0,
|
|
985707
|
+
compactionStrategy: isSet33(object2.compactionStrategy) ? globalThis.String(object2.compactionStrategy) : ""
|
|
985708
|
+
};
|
|
985709
|
+
},
|
|
985710
|
+
toJSON(message) {
|
|
985711
|
+
const obj2 = {};
|
|
985712
|
+
if (message.contextSize !== 0) {
|
|
985713
|
+
obj2.contextSize = Math.round(message.contextSize);
|
|
985714
|
+
}
|
|
985715
|
+
if (message.messagesToCompact !== 0) {
|
|
985716
|
+
obj2.messagesToCompact = Math.round(message.messagesToCompact);
|
|
985717
|
+
}
|
|
985718
|
+
if (message.compactionStrategy !== "") {
|
|
985719
|
+
obj2.compactionStrategy = message.compactionStrategy;
|
|
985720
|
+
}
|
|
985721
|
+
return obj2;
|
|
985722
|
+
},
|
|
985723
|
+
create(base) {
|
|
985724
|
+
return PreCompactData3.fromPartial(base ?? {});
|
|
985725
|
+
},
|
|
985726
|
+
fromPartial(object2) {
|
|
985727
|
+
const message = createBasePreCompactData2();
|
|
985728
|
+
message.contextSize = object2.contextSize ?? 0;
|
|
985729
|
+
message.messagesToCompact = object2.messagesToCompact ?? 0;
|
|
985730
|
+
message.compactionStrategy = object2.compactionStrategy ?? "";
|
|
985731
|
+
return message;
|
|
985732
|
+
}
|
|
985733
|
+
};
|
|
983824
985734
|
function longToNumber12(int64) {
|
|
983825
985735
|
const num = globalThis.Number(int64.toString());
|
|
983826
985736
|
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|