Skip to content

Commit b422fc5

Browse files
committed
chore: update CLI version, gRPC and bit of documentation
1 parent ab320eb commit b422fc5

File tree

13 files changed

+149
-7
lines changed

13 files changed

+149
-7
lines changed

Diff for: arduino-ide-extension/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,7 @@ The Config Service knows about your system, like for example the default sketch
5454
### `"arduino"` configuration in the `package.json`:
5555
- `"cli"`:
5656
- `"version"` type `string` | `{ owner: string, repo: string, commitish?: string }`: if the type is a `string` and is a valid semver, it will get the corresponding [released](https://github.com/arduino/arduino-cli/releases) CLI. If the type is `string` and is a [date in `YYYYMMDD`](https://arduino.github.io/arduino-cli/latest/installation/#nightly-builds) format, it will get a nightly CLI. If the type is an object, a CLI, build from the sources in the `owner/repo` will be used. If `commitish` is not defined, the HEAD of the default branch will be used. In any other cases an error is thrown.
57+
58+
#### Rebuild gRPC protocol interfaces
59+
- Some CLI updates can bring changes to the gRPC interfaces, as the API might change. gRPC interfaces can be updated running the command
60+
`yarn --cwd arduino-ide-extension generate-protocol`

Diff for: arduino-ide-extension/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
],
123123
"arduino": {
124124
"cli": {
125-
"version": "0.17.0"
125+
"version": "20210329"
126126
}
127127
}
128128
}

Diff for: arduino-ide-extension/src/node/cli-protocol/commands/board_pb.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* @fileoverview
44
* @enhanceable
5+
* @suppress {missingRequire} reports error on implicit type usages.
56
* @suppress {messageConventions} JS Compiler reports an error if a variable or
67
* field starts with 'MSG_' and isn't a translatable message.
78
* @public

Diff for: arduino-ide-extension/src/node/cli-protocol/commands/commands_pb.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* @fileoverview
44
* @enhanceable
5+
* @suppress {missingRequire} reports error on implicit type usages.
56
* @suppress {messageConventions} JS Compiler reports an error if a variable or
67
* field starts with 'MSG_' and isn't a translatable message.
78
* @public

Diff for: arduino-ide-extension/src/node/cli-protocol/commands/common_pb.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* @fileoverview
44
* @enhanceable
5+
* @suppress {missingRequire} reports error on implicit type usages.
56
* @suppress {messageConventions} JS Compiler reports an error if a variable or
67
* field starts with 'MSG_' and isn't a translatable message.
78
* @public

Diff for: arduino-ide-extension/src/node/cli-protocol/commands/compile_pb.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* @fileoverview
44
* @enhanceable
5+
* @suppress {missingRequire} reports error on implicit type usages.
56
* @suppress {messageConventions} JS Compiler reports an error if a variable or
67
* field starts with 'MSG_' and isn't a translatable message.
78
* @public

Diff for: arduino-ide-extension/src/node/cli-protocol/commands/core_pb.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* @fileoverview
44
* @enhanceable
5+
* @suppress {missingRequire} reports error on implicit type usages.
56
* @suppress {messageConventions} JS Compiler reports an error if a variable or
67
* field starts with 'MSG_' and isn't a translatable message.
78
* @public

Diff for: arduino-ide-extension/src/node/cli-protocol/commands/lib_pb.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* @fileoverview
44
* @enhanceable
5+
* @suppress {missingRequire} reports error on implicit type usages.
56
* @suppress {messageConventions} JS Compiler reports an error if a variable or
67
* field starts with 'MSG_' and isn't a translatable message.
78
* @public

Diff for: arduino-ide-extension/src/node/cli-protocol/commands/upload_pb.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* @fileoverview
44
* @enhanceable
5+
* @suppress {missingRequire} reports error on implicit type usages.
56
* @suppress {messageConventions} JS Compiler reports an error if a variable or
67
* field starts with 'MSG_' and isn't a translatable message.
78
* @public

Diff for: arduino-ide-extension/src/node/cli-protocol/debug/debug_pb.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* @fileoverview
44
* @enhanceable
5+
* @suppress {missingRequire} reports error on implicit type usages.
56
* @suppress {messageConventions} JS Compiler reports an error if a variable or
67
* field starts with 'MSG_' and isn't a translatable message.
78
* @public

Diff for: arduino-ide-extension/src/node/cli-protocol/monitor/monitor_pb.d.ts

+18
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ export class StreamingOpenReq extends jspb.Message {
2323
setData(value: Uint8Array | string): StreamingOpenReq;
2424

2525

26+
hasRecvAcknowledge(): boolean;
27+
clearRecvAcknowledge(): void;
28+
getRecvAcknowledge(): number;
29+
setRecvAcknowledge(value: number): StreamingOpenReq;
30+
31+
2632
getContentCase(): StreamingOpenReq.ContentCase;
2733

2834
serializeBinary(): Uint8Array;
@@ -39,6 +45,7 @@ export namespace StreamingOpenReq {
3945
export type AsObject = {
4046
monitorconfig?: MonitorConfig.AsObject,
4147
data: Uint8Array | string,
48+
recvAcknowledge: number,
4249
}
4350

4451
export enum ContentCase {
@@ -48,6 +55,8 @@ export namespace StreamingOpenReq {
4855

4956
DATA = 2,
5057

58+
RECV_ACKNOWLEDGE = 3,
59+
5160
}
5261

5362
}
@@ -65,6 +74,9 @@ export class MonitorConfig extends jspb.Message {
6574
getAdditionalconfig(): google_protobuf_struct_pb.Struct | undefined;
6675
setAdditionalconfig(value?: google_protobuf_struct_pb.Struct): MonitorConfig;
6776

77+
getRecvRateLimitBuffer(): number;
78+
setRecvRateLimitBuffer(value: number): MonitorConfig;
79+
6880

6981
serializeBinary(): Uint8Array;
7082
toObject(includeInstance?: boolean): MonitorConfig.AsObject;
@@ -81,10 +93,12 @@ export namespace MonitorConfig {
8193
target: string,
8294
type: MonitorConfig.TargetType,
8395
additionalconfig?: google_protobuf_struct_pb.Struct.AsObject,
96+
recvRateLimitBuffer: number,
8497
}
8598

8699
export enum TargetType {
87100
SERIAL = 0,
101+
NULL = 99,
88102
}
89103

90104
}
@@ -95,6 +109,9 @@ export class StreamingOpenResp extends jspb.Message {
95109
getData_asB64(): string;
96110
setData(value: Uint8Array | string): StreamingOpenResp;
97111

112+
getDropped(): number;
113+
setDropped(value: number): StreamingOpenResp;
114+
98115

99116
serializeBinary(): Uint8Array;
100117
toObject(includeInstance?: boolean): StreamingOpenResp.AsObject;
@@ -109,5 +126,6 @@ export class StreamingOpenResp extends jspb.Message {
109126
export namespace StreamingOpenResp {
110127
export type AsObject = {
111128
data: Uint8Array | string,
129+
dropped: number,
112130
}
113131
}

Diff for: arduino-ide-extension/src/node/cli-protocol/monitor/monitor_pb.js

+117-6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* @fileoverview
44
* @enhanceable
5+
* @suppress {missingRequire} reports error on implicit type usages.
56
* @suppress {messageConventions} JS Compiler reports an error if a variable or
67
* field starts with 'MSG_' and isn't a translatable message.
78
* @public
@@ -93,15 +94,16 @@ if (goog.DEBUG && !COMPILED) {
9394
* @private {!Array<!Array<number>>}
9495
* @const
9596
*/
96-
proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_ = [[1,2]];
97+
proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_ = [[1,2,3]];
9798

9899
/**
99100
* @enum {number}
100101
*/
101102
proto.cc.arduino.cli.monitor.StreamingOpenReq.ContentCase = {
102103
CONTENT_NOT_SET: 0,
103104
MONITORCONFIG: 1,
104-
DATA: 2
105+
DATA: 2,
106+
RECV_ACKNOWLEDGE: 3
105107
};
106108

107109
/**
@@ -143,7 +145,8 @@ proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.toObject = function(opt_
143145
proto.cc.arduino.cli.monitor.StreamingOpenReq.toObject = function(includeInstance, msg) {
144146
var f, obj = {
145147
monitorconfig: (f = msg.getMonitorconfig()) && proto.cc.arduino.cli.monitor.MonitorConfig.toObject(includeInstance, f),
146-
data: msg.getData_asB64()
148+
data: msg.getData_asB64(),
149+
recvAcknowledge: jspb.Message.getFieldWithDefault(msg, 3, 0)
147150
};
148151

149152
if (includeInstance) {
@@ -189,6 +192,10 @@ proto.cc.arduino.cli.monitor.StreamingOpenReq.deserializeBinaryFromReader = func
189192
var value = /** @type {!Uint8Array} */ (reader.readBytes());
190193
msg.setData(value);
191194
break;
195+
case 3:
196+
var value = /** @type {number} */ (reader.readInt32());
197+
msg.setRecvAcknowledge(value);
198+
break;
192199
default:
193200
reader.skipField();
194201
break;
@@ -233,6 +240,13 @@ proto.cc.arduino.cli.monitor.StreamingOpenReq.serializeBinaryToWriter = function
233240
f
234241
);
235242
}
243+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
244+
if (f != null) {
245+
writer.writeInt32(
246+
3,
247+
f
248+
);
249+
}
236250
};
237251

238252

@@ -333,6 +347,42 @@ proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.hasData = function() {
333347
};
334348

335349

350+
/**
351+
* optional int32 recv_acknowledge = 3;
352+
* @return {number}
353+
*/
354+
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.getRecvAcknowledge = function() {
355+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
356+
};
357+
358+
359+
/**
360+
* @param {number} value
361+
* @return {!proto.cc.arduino.cli.monitor.StreamingOpenReq} returns this
362+
*/
363+
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.setRecvAcknowledge = function(value) {
364+
return jspb.Message.setOneofField(this, 3, proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_[0], value);
365+
};
366+
367+
368+
/**
369+
* Clears the field making it undefined.
370+
* @return {!proto.cc.arduino.cli.monitor.StreamingOpenReq} returns this
371+
*/
372+
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.clearRecvAcknowledge = function() {
373+
return jspb.Message.setOneofField(this, 3, proto.cc.arduino.cli.monitor.StreamingOpenReq.oneofGroups_[0], undefined);
374+
};
375+
376+
377+
/**
378+
* Returns whether this field is set.
379+
* @return {boolean}
380+
*/
381+
proto.cc.arduino.cli.monitor.StreamingOpenReq.prototype.hasRecvAcknowledge = function() {
382+
return jspb.Message.getField(this, 3) != null;
383+
};
384+
385+
336386

337387

338388

@@ -367,7 +417,8 @@ proto.cc.arduino.cli.monitor.MonitorConfig.toObject = function(includeInstance,
367417
var f, obj = {
368418
target: jspb.Message.getFieldWithDefault(msg, 1, ""),
369419
type: jspb.Message.getFieldWithDefault(msg, 2, 0),
370-
additionalconfig: (f = msg.getAdditionalconfig()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
420+
additionalconfig: (f = msg.getAdditionalconfig()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f),
421+
recvRateLimitBuffer: jspb.Message.getFieldWithDefault(msg, 4, 0)
371422
};
372423

373424
if (includeInstance) {
@@ -417,6 +468,10 @@ proto.cc.arduino.cli.monitor.MonitorConfig.deserializeBinaryFromReader = functio
417468
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
418469
msg.setAdditionalconfig(value);
419470
break;
471+
case 4:
472+
var value = /** @type {number} */ (reader.readInt32());
473+
msg.setRecvRateLimitBuffer(value);
474+
break;
420475
default:
421476
reader.skipField();
422477
break;
@@ -468,14 +523,22 @@ proto.cc.arduino.cli.monitor.MonitorConfig.serializeBinaryToWriter = function(me
468523
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
469524
);
470525
}
526+
f = message.getRecvRateLimitBuffer();
527+
if (f !== 0) {
528+
writer.writeInt32(
529+
4,
530+
f
531+
);
532+
}
471533
};
472534

473535

474536
/**
475537
* @enum {number}
476538
*/
477539
proto.cc.arduino.cli.monitor.MonitorConfig.TargetType = {
478-
SERIAL: 0
540+
SERIAL: 0,
541+
NULL: 99
479542
};
480543

481544
/**
@@ -551,6 +614,24 @@ proto.cc.arduino.cli.monitor.MonitorConfig.prototype.hasAdditionalconfig = funct
551614
};
552615

553616

617+
/**
618+
* optional int32 recv_rate_limit_buffer = 4;
619+
* @return {number}
620+
*/
621+
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.getRecvRateLimitBuffer = function() {
622+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
623+
};
624+
625+
626+
/**
627+
* @param {number} value
628+
* @return {!proto.cc.arduino.cli.monitor.MonitorConfig} returns this
629+
*/
630+
proto.cc.arduino.cli.monitor.MonitorConfig.prototype.setRecvRateLimitBuffer = function(value) {
631+
return jspb.Message.setProto3IntField(this, 4, value);
632+
};
633+
634+
554635

555636

556637

@@ -583,7 +664,8 @@ proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.toObject = function(opt
583664
*/
584665
proto.cc.arduino.cli.monitor.StreamingOpenResp.toObject = function(includeInstance, msg) {
585666
var f, obj = {
586-
data: msg.getData_asB64()
667+
data: msg.getData_asB64(),
668+
dropped: jspb.Message.getFieldWithDefault(msg, 2, 0)
587669
};
588670

589671
if (includeInstance) {
@@ -624,6 +706,10 @@ proto.cc.arduino.cli.monitor.StreamingOpenResp.deserializeBinaryFromReader = fun
624706
var value = /** @type {!Uint8Array} */ (reader.readBytes());
625707
msg.setData(value);
626708
break;
709+
case 2:
710+
var value = /** @type {number} */ (reader.readInt32());
711+
msg.setDropped(value);
712+
break;
627713
default:
628714
reader.skipField();
629715
break;
@@ -660,6 +746,13 @@ proto.cc.arduino.cli.monitor.StreamingOpenResp.serializeBinaryToWriter = functio
660746
f
661747
);
662748
}
749+
f = message.getDropped();
750+
if (f !== 0) {
751+
writer.writeInt32(
752+
2,
753+
f
754+
);
755+
}
663756
};
664757

665758

@@ -705,4 +798,22 @@ proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.setData = function(valu
705798
};
706799

707800

801+
/**
802+
* optional int32 dropped = 2;
803+
* @return {number}
804+
*/
805+
proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.getDropped = function() {
806+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
807+
};
808+
809+
810+
/**
811+
* @param {number} value
812+
* @return {!proto.cc.arduino.cli.monitor.StreamingOpenResp} returns this
813+
*/
814+
proto.cc.arduino.cli.monitor.StreamingOpenResp.prototype.setDropped = function(value) {
815+
return jspb.Message.setProto3IntField(this, 2, value);
816+
};
817+
818+
708819
goog.object.extend(exports, proto.cc.arduino.cli.monitor);

Diff for: arduino-ide-extension/src/node/cli-protocol/settings/settings_pb.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/**
33
* @fileoverview
44
* @enhanceable
5+
* @suppress {missingRequire} reports error on implicit type usages.
56
* @suppress {messageConventions} JS Compiler reports an error if a variable or
67
* field starts with 'MSG_' and isn't a translatable message.
78
* @public

0 commit comments

Comments
 (0)