@replit/protocol 0.2.46 → 0.2.47

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/main/index.d.ts CHANGED
@@ -445,6 +445,9 @@ export namespace api {
445
445
 
446
446
  /** Command ref */
447
447
  ref?: (string|null);
448
+
449
+ /** Command traceInfo */
450
+ traceInfo?: ({ [k: string]: string }|null);
448
451
  }
449
452
 
450
453
  /** Represents a Command. */
@@ -897,6 +900,9 @@ export namespace api {
897
900
  /** Command ref. */
898
901
  public ref: string;
899
902
 
903
+ /** Command traceInfo. */
904
+ public traceInfo: { [k: string]: string };
905
+
900
906
  /** Command body. */
901
907
  public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"startLSP");
902
908
 
@@ -14870,6 +14876,9 @@ export namespace api {
14870
14876
 
14871
14877
  /** ResourceLimits cache */
14872
14878
  cache?: (api.ResourceLimits.Cachability|null);
14879
+
14880
+ /** ResourceLimits restrictNetwork */
14881
+ restrictNetwork?: (boolean|null);
14873
14882
  }
14874
14883
 
14875
14884
  /** Represents a ResourceLimits. */
@@ -14899,6 +14908,9 @@ export namespace api {
14899
14908
  /** ResourceLimits cache. */
14900
14909
  public cache: api.ResourceLimits.Cachability;
14901
14910
 
14911
+ /** ResourceLimits restrictNetwork. */
14912
+ public restrictNetwork: boolean;
14913
+
14902
14914
  /**
14903
14915
  * Creates a new ResourceLimits instance using the specified properties.
14904
14916
  * @param [properties] Properties to set
@@ -15857,14 +15869,8 @@ export namespace api {
15857
15869
  /** ClusterMetadata gurl */
15858
15870
  gurl?: (string|null);
15859
15871
 
15860
- /** ClusterMetadata proxyHost */
15861
- proxyHost?: (string|null);
15862
-
15863
15872
  /** ClusterMetadata proxy */
15864
15873
  proxy?: (string|null);
15865
-
15866
- /** ClusterMetadata proxyIP */
15867
- proxyIP?: (string|null);
15868
15874
  }
15869
15875
 
15870
15876
  /** Represents a ClusterMetadata. */
@@ -15885,15 +15891,9 @@ export namespace api {
15885
15891
  /** ClusterMetadata gurl. */
15886
15892
  public gurl: string;
15887
15893
 
15888
- /** ClusterMetadata proxyHost. */
15889
- public proxyHost: string;
15890
-
15891
15894
  /** ClusterMetadata proxy. */
15892
15895
  public proxy: string;
15893
15896
 
15894
- /** ClusterMetadata proxyIP. */
15895
- public proxyIP: string;
15896
-
15897
15897
  /**
15898
15898
  * Creates a new ClusterMetadata instance using the specified properties.
15899
15899
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -178,6 +178,7 @@
178
178
  * @property {api.RunConfigGetResponse|api.IRunConfigGetResponse|null} [runConfigGetResponse] Command runConfigGetResponse
179
179
  * @property {api.StartLSP|api.IStartLSP|null} [startLSP] Command startLSP
180
180
  * @property {string|null} [ref] Command ref
181
+ * @property {Object.<string,string>|null} [traceInfo] Command traceInfo
181
182
  */
182
183
 
183
184
  /**
@@ -188,6 +189,7 @@
188
189
  * @param {api.ICommand=} [properties] Properties to set
189
190
  */
190
191
  function Command(properties) {
192
+ this.traceInfo = {};
191
193
  if (properties)
192
194
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
193
195
  if (properties[keys[i]] != null)
@@ -1370,6 +1372,14 @@
1370
1372
  */
1371
1373
  Command.prototype.ref = "";
1372
1374
 
1375
+ /**
1376
+ * Command traceInfo.
1377
+ * @member {Object.<string,string>} traceInfo
1378
+ * @memberof api.Command
1379
+ * @instance
1380
+ */
1381
+ Command.prototype.traceInfo = $util.emptyObject;
1382
+
1373
1383
  // OneOf field names bound to virtual getters and setters
1374
1384
  var $oneOfFields;
1375
1385
 
@@ -1702,6 +1712,9 @@
1702
1712
  writer.uint32(/* id 392, wireType 0 =*/3136).bool(message.NoninteractiveFSChangeEvent);
1703
1713
  if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
1704
1714
  writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
1715
+ if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
1716
+ for (var keys = Object.keys(message.traceInfo), i = 0; i < keys.length; ++i)
1717
+ writer.uint32(/* id 1001, wireType 2 =*/8010).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.traceInfo[keys[i]]).ldelim();
1705
1718
  return writer;
1706
1719
  };
1707
1720
 
@@ -1732,7 +1745,7 @@
1732
1745
  Command.decode = function decode(reader, length) {
1733
1746
  if (!(reader instanceof $Reader))
1734
1747
  reader = $Reader.create(reader);
1735
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.Command();
1748
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.Command(), key, value;
1736
1749
  while (reader.pos < end) {
1737
1750
  var tag = reader.uint32();
1738
1751
  switch (tag >>> 3) {
@@ -2177,6 +2190,28 @@
2177
2190
  case 1000:
2178
2191
  message.ref = reader.string();
2179
2192
  break;
2193
+ case 1001:
2194
+ if (message.traceInfo === $util.emptyObject)
2195
+ message.traceInfo = {};
2196
+ var end2 = reader.uint32() + reader.pos;
2197
+ key = "";
2198
+ value = "";
2199
+ while (reader.pos < end2) {
2200
+ var tag2 = reader.uint32();
2201
+ switch (tag2 >>> 3) {
2202
+ case 1:
2203
+ key = reader.string();
2204
+ break;
2205
+ case 2:
2206
+ value = reader.string();
2207
+ break;
2208
+ default:
2209
+ reader.skipType(tag2 & 7);
2210
+ break;
2211
+ }
2212
+ }
2213
+ message.traceInfo[key] = value;
2214
+ break;
2180
2215
  default:
2181
2216
  reader.skipType(tag & 7);
2182
2217
  break;
@@ -3632,6 +3667,14 @@
3632
3667
  if (message.ref != null && message.hasOwnProperty("ref"))
3633
3668
  if (!$util.isString(message.ref))
3634
3669
  return "ref: string expected";
3670
+ if (message.traceInfo != null && message.hasOwnProperty("traceInfo")) {
3671
+ if (!$util.isObject(message.traceInfo))
3672
+ return "traceInfo: object expected";
3673
+ var key = Object.keys(message.traceInfo);
3674
+ for (var i = 0; i < key.length; ++i)
3675
+ if (!$util.isString(message.traceInfo[key[i]]))
3676
+ return "traceInfo: string{k:string} expected";
3677
+ }
3635
3678
  return null;
3636
3679
  };
3637
3680
 
@@ -4348,6 +4391,13 @@
4348
4391
  }
4349
4392
  if (object.ref != null)
4350
4393
  message.ref = String(object.ref);
4394
+ if (object.traceInfo) {
4395
+ if (typeof object.traceInfo !== "object")
4396
+ throw TypeError(".api.Command.traceInfo: object expected");
4397
+ message.traceInfo = {};
4398
+ for (var keys = Object.keys(object.traceInfo), i = 0; i < keys.length; ++i)
4399
+ message.traceInfo[keys[i]] = String(object.traceInfo[keys[i]]);
4400
+ }
4351
4401
  return message;
4352
4402
  };
4353
4403
 
@@ -4364,6 +4414,8 @@
4364
4414
  if (!options)
4365
4415
  options = {};
4366
4416
  var object = {};
4417
+ if (options.objects || options.defaults)
4418
+ object.traceInfo = {};
4367
4419
  if (options.defaults) {
4368
4420
  object.channel = 0;
4369
4421
  object.session = 0;
@@ -5095,6 +5147,12 @@
5095
5147
  }
5096
5148
  if (message.ref != null && message.hasOwnProperty("ref"))
5097
5149
  object.ref = message.ref;
5150
+ var keys2;
5151
+ if (message.traceInfo && (keys2 = Object.keys(message.traceInfo)).length) {
5152
+ object.traceInfo = {};
5153
+ for (var j = 0; j < keys2.length; ++j)
5154
+ object.traceInfo[keys2[j]] = message.traceInfo[keys2[j]];
5155
+ }
5098
5156
  return object;
5099
5157
  };
5100
5158
 
@@ -37015,6 +37073,7 @@
37015
37073
  * @property {number|null} [shares] ResourceLimits shares
37016
37074
  * @property {number|null} [disk] ResourceLimits disk
37017
37075
  * @property {api.ResourceLimits.Cachability|null} [cache] ResourceLimits cache
37076
+ * @property {boolean|null} [restrictNetwork] ResourceLimits restrictNetwork
37018
37077
  */
37019
37078
 
37020
37079
  /**
@@ -37079,6 +37138,14 @@
37079
37138
  */
37080
37139
  ResourceLimits.prototype.cache = 0;
37081
37140
 
37141
+ /**
37142
+ * ResourceLimits restrictNetwork.
37143
+ * @member {boolean} restrictNetwork
37144
+ * @memberof api.ResourceLimits
37145
+ * @instance
37146
+ */
37147
+ ResourceLimits.prototype.restrictNetwork = false;
37148
+
37082
37149
  /**
37083
37150
  * Creates a new ResourceLimits instance using the specified properties.
37084
37151
  * @function create
@@ -37115,6 +37182,8 @@
37115
37182
  writer.uint32(/* id 5, wireType 0 =*/40).int64(message.disk);
37116
37183
  if (message.cache != null && Object.hasOwnProperty.call(message, "cache"))
37117
37184
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.cache);
37185
+ if (message.restrictNetwork != null && Object.hasOwnProperty.call(message, "restrictNetwork"))
37186
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.restrictNetwork);
37118
37187
  return writer;
37119
37188
  };
37120
37189
 
@@ -37167,6 +37236,9 @@
37167
37236
  case 6:
37168
37237
  message.cache = reader.int32();
37169
37238
  break;
37239
+ case 7:
37240
+ message.restrictNetwork = reader.bool();
37241
+ break;
37170
37242
  default:
37171
37243
  reader.skipType(tag & 7);
37172
37244
  break;
@@ -37226,6 +37298,9 @@
37226
37298
  case 2:
37227
37299
  break;
37228
37300
  }
37301
+ if (message.restrictNetwork != null && message.hasOwnProperty("restrictNetwork"))
37302
+ if (typeof message.restrictNetwork !== "boolean")
37303
+ return "restrictNetwork: boolean expected";
37229
37304
  return null;
37230
37305
  };
37231
37306
 
@@ -37279,6 +37354,8 @@
37279
37354
  message.cache = 2;
37280
37355
  break;
37281
37356
  }
37357
+ if (object.restrictNetwork != null)
37358
+ message.restrictNetwork = Boolean(object.restrictNetwork);
37282
37359
  return message;
37283
37360
  };
37284
37361
 
@@ -37310,6 +37387,7 @@
37310
37387
  } else
37311
37388
  object.disk = options.longs === String ? "0" : 0;
37312
37389
  object.cache = options.enums === String ? "NONE" : 0;
37390
+ object.restrictNetwork = false;
37313
37391
  }
37314
37392
  if (message.net != null && message.hasOwnProperty("net"))
37315
37393
  object.net = message.net;
@@ -37329,6 +37407,8 @@
37329
37407
  object.disk = options.longs === String ? $util.Long.prototype.toString.call(message.disk) : options.longs === Number ? new $util.LongBits(message.disk.low >>> 0, message.disk.high >>> 0).toNumber() : message.disk;
37330
37408
  if (message.cache != null && message.hasOwnProperty("cache"))
37331
37409
  object.cache = options.enums === String ? $root.api.ResourceLimits.Cachability[message.cache] : message.cache;
37410
+ if (message.restrictNetwork != null && message.hasOwnProperty("restrictNetwork"))
37411
+ object.restrictNetwork = message.restrictNetwork;
37332
37412
  return object;
37333
37413
  };
37334
37414
 
@@ -39563,9 +39643,7 @@
39563
39643
  * @property {string|null} [id] ClusterMetadata id
39564
39644
  * @property {string|null} [conmanURL] ClusterMetadata conmanURL
39565
39645
  * @property {string|null} [gurl] ClusterMetadata gurl
39566
- * @property {string|null} [proxyHost] ClusterMetadata proxyHost
39567
39646
  * @property {string|null} [proxy] ClusterMetadata proxy
39568
- * @property {string|null} [proxyIP] ClusterMetadata proxyIP
39569
39647
  */
39570
39648
 
39571
39649
  /**
@@ -39606,14 +39684,6 @@
39606
39684
  */
39607
39685
  ClusterMetadata.prototype.gurl = "";
39608
39686
 
39609
- /**
39610
- * ClusterMetadata proxyHost.
39611
- * @member {string} proxyHost
39612
- * @memberof api.ClusterMetadata
39613
- * @instance
39614
- */
39615
- ClusterMetadata.prototype.proxyHost = "";
39616
-
39617
39687
  /**
39618
39688
  * ClusterMetadata proxy.
39619
39689
  * @member {string} proxy
@@ -39622,14 +39692,6 @@
39622
39692
  */
39623
39693
  ClusterMetadata.prototype.proxy = "";
39624
39694
 
39625
- /**
39626
- * ClusterMetadata proxyIP.
39627
- * @member {string} proxyIP
39628
- * @memberof api.ClusterMetadata
39629
- * @instance
39630
- */
39631
- ClusterMetadata.prototype.proxyIP = "";
39632
-
39633
39695
  /**
39634
39696
  * Creates a new ClusterMetadata instance using the specified properties.
39635
39697
  * @function create
@@ -39660,12 +39722,8 @@
39660
39722
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.conmanURL);
39661
39723
  if (message.gurl != null && Object.hasOwnProperty.call(message, "gurl"))
39662
39724
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.gurl);
39663
- if (message.proxyHost != null && Object.hasOwnProperty.call(message, "proxyHost"))
39664
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.proxyHost);
39665
39725
  if (message.proxy != null && Object.hasOwnProperty.call(message, "proxy"))
39666
39726
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.proxy);
39667
- if (message.proxyIP != null && Object.hasOwnProperty.call(message, "proxyIP"))
39668
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.proxyIP);
39669
39727
  return writer;
39670
39728
  };
39671
39729
 
@@ -39709,15 +39767,9 @@
39709
39767
  case 3:
39710
39768
  message.gurl = reader.string();
39711
39769
  break;
39712
- case 4:
39713
- message.proxyHost = reader.string();
39714
- break;
39715
39770
  case 5:
39716
39771
  message.proxy = reader.string();
39717
39772
  break;
39718
- case 6:
39719
- message.proxyIP = reader.string();
39720
- break;
39721
39773
  default:
39722
39774
  reader.skipType(tag & 7);
39723
39775
  break;
@@ -39762,15 +39814,9 @@
39762
39814
  if (message.gurl != null && message.hasOwnProperty("gurl"))
39763
39815
  if (!$util.isString(message.gurl))
39764
39816
  return "gurl: string expected";
39765
- if (message.proxyHost != null && message.hasOwnProperty("proxyHost"))
39766
- if (!$util.isString(message.proxyHost))
39767
- return "proxyHost: string expected";
39768
39817
  if (message.proxy != null && message.hasOwnProperty("proxy"))
39769
39818
  if (!$util.isString(message.proxy))
39770
39819
  return "proxy: string expected";
39771
- if (message.proxyIP != null && message.hasOwnProperty("proxyIP"))
39772
- if (!$util.isString(message.proxyIP))
39773
- return "proxyIP: string expected";
39774
39820
  return null;
39775
39821
  };
39776
39822
 
@@ -39792,12 +39838,8 @@
39792
39838
  message.conmanURL = String(object.conmanURL);
39793
39839
  if (object.gurl != null)
39794
39840
  message.gurl = String(object.gurl);
39795
- if (object.proxyHost != null)
39796
- message.proxyHost = String(object.proxyHost);
39797
39841
  if (object.proxy != null)
39798
39842
  message.proxy = String(object.proxy);
39799
- if (object.proxyIP != null)
39800
- message.proxyIP = String(object.proxyIP);
39801
39843
  return message;
39802
39844
  };
39803
39845
 
@@ -39818,9 +39860,7 @@
39818
39860
  object.id = "";
39819
39861
  object.conmanURL = "";
39820
39862
  object.gurl = "";
39821
- object.proxyHost = "";
39822
39863
  object.proxy = "";
39823
- object.proxyIP = "";
39824
39864
  }
39825
39865
  if (message.id != null && message.hasOwnProperty("id"))
39826
39866
  object.id = message.id;
@@ -39828,12 +39868,8 @@
39828
39868
  object.conmanURL = message.conmanURL;
39829
39869
  if (message.gurl != null && message.hasOwnProperty("gurl"))
39830
39870
  object.gurl = message.gurl;
39831
- if (message.proxyHost != null && message.hasOwnProperty("proxyHost"))
39832
- object.proxyHost = message.proxyHost;
39833
39871
  if (message.proxy != null && message.hasOwnProperty("proxy"))
39834
39872
  object.proxy = message.proxy;
39835
- if (message.proxyIP != null && message.hasOwnProperty("proxyIP"))
39836
- object.proxyIP = message.proxyIP;
39837
39873
  return object;
39838
39874
  };
39839
39875
 
@@ -1105,6 +1105,13 @@ declare type api$ICommand = {|
1105
1105
  * Command ref
1106
1106
  */
1107
1107
  ref?: string | null,
1108
+
1109
+ /**
1110
+ * Command traceInfo
1111
+ */
1112
+ traceInfo?: {|
1113
+ [k: string]: string,
1114
+ |} | null,
1108
1115
  |};
1109
1116
 
1110
1117
  /**
@@ -1852,6 +1859,13 @@ declare class api$Command {
1852
1859
  */
1853
1860
  ref: string;
1854
1861
 
1862
+ /**
1863
+ * Command traceInfo.
1864
+ */
1865
+ traceInfo: {|
1866
+ [k: string]: string,
1867
+ |};
1868
+
1855
1869
  /**
1856
1870
  * Command body.
1857
1871
  */
@@ -20551,6 +20565,11 @@ declare type api$IResourceLimits = {|
20551
20565
  * ResourceLimits cache
20552
20566
  */
20553
20567
  cache?: $Values<typeof api$ResourceLimits$Cachability> | null,
20568
+
20569
+ /**
20570
+ * ResourceLimits restrictNetwork
20571
+ */
20572
+ restrictNetwork?: boolean | null,
20554
20573
  |};
20555
20574
 
20556
20575
  /**
@@ -20593,6 +20612,11 @@ declare class api$ResourceLimits {
20593
20612
  */
20594
20613
  cache: $Values<typeof api$ResourceLimits$Cachability>;
20595
20614
 
20615
+ /**
20616
+ * ResourceLimits restrictNetwork.
20617
+ */
20618
+ restrictNetwork: boolean;
20619
+
20596
20620
  /**
20597
20621
  * Creates a new ResourceLimits instance using the specified properties.
20598
20622
  * @param [properties] Properties to set
@@ -21905,20 +21929,10 @@ declare type api$IClusterMetadata = {|
21905
21929
  */
21906
21930
  gurl?: string | null,
21907
21931
 
21908
- /**
21909
- * ClusterMetadata proxyHost
21910
- */
21911
- proxyHost?: string | null,
21912
-
21913
21932
  /**
21914
21933
  * ClusterMetadata proxy
21915
21934
  */
21916
21935
  proxy?: string | null,
21917
-
21918
- /**
21919
- * ClusterMetadata proxyIP
21920
- */
21921
- proxyIP?: string | null,
21922
21936
  |};
21923
21937
 
21924
21938
  /**
@@ -21946,21 +21960,11 @@ declare class api$ClusterMetadata {
21946
21960
  */
21947
21961
  gurl: string;
21948
21962
 
21949
- /**
21950
- * ClusterMetadata proxyHost.
21951
- */
21952
- proxyHost: string;
21953
-
21954
21963
  /**
21955
21964
  * ClusterMetadata proxy.
21956
21965
  */
21957
21966
  proxy: string;
21958
21967
 
21959
- /**
21960
- * ClusterMetadata proxyIP.
21961
- */
21962
- proxyIP: string;
21963
-
21964
21968
  /**
21965
21969
  * Creates a new ClusterMetadata instance using the specified properties.
21966
21970
  * @param [properties] Properties to set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.46",
3
+ "version": "0.2.47",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",