@teambit/isolator 1.0.396 → 1.0.397

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.
@@ -1227,7 +1227,7 @@
1227
1227
  "_legacy": {
1228
1228
  "scope": "teambit.component",
1229
1229
  "name": "isolator",
1230
- "version": "1.0.396"
1230
+ "version": "1.0.397"
1231
1231
  },
1232
1232
  "_scope": "teambit.component"
1233
1233
  }
@@ -2434,7 +2434,7 @@
2434
2434
  "_legacy": {
2435
2435
  "scope": "teambit.component",
2436
2436
  "name": "isolator",
2437
- "version": "1.0.396"
2437
+ "version": "1.0.397"
2438
2438
  },
2439
2439
  "_scope": "teambit.component"
2440
2440
  }
@@ -2719,7 +2719,7 @@
2719
2719
  "_legacy": {
2720
2720
  "scope": "teambit.component",
2721
2721
  "name": "isolator",
2722
- "version": "1.0.396"
2722
+ "version": "1.0.397"
2723
2723
  },
2724
2724
  "_scope": "teambit.component"
2725
2725
  }
@@ -2748,7 +2748,7 @@
2748
2748
  "_legacy": {
2749
2749
  "scope": "teambit.component",
2750
2750
  "name": "isolator",
2751
- "version": "1.0.396"
2751
+ "version": "1.0.397"
2752
2752
  },
2753
2753
  "_scope": "teambit.component"
2754
2754
  }
@@ -5404,7 +5404,7 @@
5404
5404
  "_legacy": {
5405
5405
  "scope": "teambit.component",
5406
5406
  "name": "isolator",
5407
- "version": "1.0.396"
5407
+ "version": "1.0.397"
5408
5408
  },
5409
5409
  "_scope": "teambit.component"
5410
5410
  }
@@ -5708,240 +5708,361 @@
5708
5708
  {
5709
5709
  "__schema": "ModuleSchema",
5710
5710
  "location": {
5711
- "filePath": "capsule/capsule.ts",
5711
+ "filePath": "capsule/container.ts",
5712
5712
  "line": 1,
5713
5713
  "character": 1
5714
5714
  },
5715
5715
  "exports": [
5716
5716
  {
5717
- "__schema": "ClassSchema",
5717
+ "__schema": "InterfaceSchema",
5718
5718
  "location": {
5719
- "filePath": "capsule/capsule.ts",
5720
- "line": 13,
5719
+ "filePath": "capsule/container.ts",
5720
+ "line": 12,
5721
5721
  "character": 1
5722
5722
  },
5723
- "signature": "class Capsule",
5724
- "name": "Capsule",
5723
+ "signature": "interface BitExecOption",
5724
+ "name": "BitExecOption",
5725
5725
  "members": [
5726
5726
  {
5727
- "__schema": "ConstructorSchema",
5727
+ "__schema": "VariableLikeSchema",
5728
5728
  "location": {
5729
- "filePath": "capsule/capsule.ts",
5730
- "line": 15,
5729
+ "filePath": "capsule/container.ts",
5730
+ "line": 13,
5731
5731
  "character": 3
5732
5732
  },
5733
- "signature": "constructor Capsule(container: FsContainer, fs: NodeFS, console: Console, state: State, component: Component): Capsule",
5734
- "name": "constructor",
5735
- "params": [
5736
- {
5737
- "__schema": "ParameterSchema",
5738
- "location": {
5739
- "filePath": "capsule/capsule.ts",
5740
- "line": 19,
5741
- "character": 5
5742
- },
5743
- "name": "container",
5744
- "type": {
5745
- "__schema": "TypeRefSchema",
5733
+ "signature": "(property) BitExecOption.cwd: string",
5734
+ "name": "cwd",
5735
+ "type": {
5736
+ "__schema": "KeywordTypeSchema",
5737
+ "location": {
5738
+ "filePath": "capsule/container.ts",
5739
+ "line": 13,
5740
+ "character": 8
5741
+ },
5742
+ "name": "string"
5743
+ },
5744
+ "isOptional": false
5745
+ },
5746
+ {
5747
+ "__schema": "VariableLikeSchema",
5748
+ "location": {
5749
+ "filePath": "capsule/container.ts",
5750
+ "line": 14,
5751
+ "character": 3
5752
+ },
5753
+ "signature": "(property) BitExecOption.stdio?: number | Stream | \"pipe\" | \"ignore\" | \"inherit\" | \"ipc\" | undefined",
5754
+ "name": "stdio",
5755
+ "type": {
5756
+ "__schema": "TypeUnionSchema",
5757
+ "location": {
5758
+ "filePath": "capsule/container.ts",
5759
+ "line": 14,
5760
+ "character": 11
5761
+ },
5762
+ "types": [
5763
+ {
5764
+ "__schema": "LiteralTypeSchema",
5746
5765
  "location": {
5747
- "filePath": "capsule/capsule.ts",
5748
- "line": 19,
5749
- "character": 26
5766
+ "filePath": "capsule/container.ts",
5767
+ "line": 14,
5768
+ "character": 11
5750
5769
  },
5751
- "name": "FsContainer"
5752
- },
5753
- "isOptional": false,
5754
- "isSpread": false
5755
- },
5756
- {
5757
- "__schema": "ParameterSchema",
5758
- "location": {
5759
- "filePath": "capsule/capsule.ts",
5760
- "line": 23,
5761
- "character": 5
5770
+ "name": "'pipe'"
5762
5771
  },
5763
- "name": "fs",
5764
- "type": {
5765
- "__schema": "TypeRefSchema",
5772
+ {
5773
+ "__schema": "LiteralTypeSchema",
5766
5774
  "location": {
5767
- "filePath": "capsule/capsule.ts",
5768
- "line": 23,
5769
- "character": 18
5775
+ "filePath": "capsule/container.ts",
5776
+ "line": 14,
5777
+ "character": 20
5770
5778
  },
5771
- "name": "NodeFS"
5772
- },
5773
- "isOptional": false,
5774
- "isSpread": false
5775
- },
5776
- {
5777
- "__schema": "ParameterSchema",
5778
- "location": {
5779
- "filePath": "capsule/capsule.ts",
5780
- "line": 27,
5781
- "character": 5
5779
+ "name": "'ipc'"
5782
5780
  },
5783
- "name": "console",
5784
- "type": {
5785
- "__schema": "TypeRefSchema",
5781
+ {
5782
+ "__schema": "LiteralTypeSchema",
5786
5783
  "location": {
5787
- "filePath": "capsule/capsule.ts",
5788
- "line": 27,
5789
- "character": 23
5784
+ "filePath": "capsule/container.ts",
5785
+ "line": 14,
5786
+ "character": 28
5790
5787
  },
5791
- "name": "Console"
5788
+ "name": "'ignore'"
5792
5789
  },
5793
- "isOptional": true,
5794
- "defaultValue": "new Console()",
5795
- "isSpread": false
5796
- },
5797
- {
5798
- "__schema": "ParameterSchema",
5799
- "location": {
5800
- "filePath": "capsule/capsule.ts",
5801
- "line": 31,
5802
- "character": 5
5790
+ {
5791
+ "__schema": "LiteralTypeSchema",
5792
+ "location": {
5793
+ "filePath": "capsule/container.ts",
5794
+ "line": 14,
5795
+ "character": 39
5796
+ },
5797
+ "name": "'inherit'"
5803
5798
  },
5804
- "name": "state",
5805
- "type": {
5799
+ {
5806
5800
  "__schema": "TypeRefSchema",
5807
5801
  "location": {
5808
- "filePath": "capsule/capsule.ts",
5809
- "line": 31,
5810
- "character": 21
5802
+ "filePath": "capsule/container.ts",
5803
+ "line": 14,
5804
+ "character": 51
5811
5805
  },
5812
- "name": "State"
5813
- },
5814
- "isOptional": false,
5815
- "isSpread": false
5816
- },
5817
- {
5818
- "__schema": "ParameterSchema",
5819
- "location": {
5820
- "filePath": "capsule/capsule.ts",
5821
- "line": 32,
5822
- "character": 5
5806
+ "name": "Stream"
5823
5807
  },
5824
- "name": "component",
5825
- "type": {
5826
- "__schema": "TypeRefSchema",
5808
+ {
5809
+ "__schema": "KeywordTypeSchema",
5827
5810
  "location": {
5828
- "filePath": "capsule/capsule.ts",
5829
- "line": 32,
5830
- "character": 25
5811
+ "filePath": "capsule/container.ts",
5812
+ "line": 14,
5813
+ "character": 60
5831
5814
  },
5832
- "name": "Component"
5815
+ "name": "number"
5833
5816
  },
5834
- "isOptional": false,
5835
- "isSpread": false
5836
- }
5837
- ],
5838
- "returnType": {
5839
- "__schema": "ThisTypeSchema",
5840
- "location": {
5841
- "filePath": "capsule/capsule.ts",
5842
- "line": 13,
5843
- "character": 1
5844
- },
5845
- "name": "Capsule"
5817
+ {
5818
+ "__schema": "KeywordTypeSchema",
5819
+ "location": {
5820
+ "filePath": "capsule/container.ts",
5821
+ "line": 14,
5822
+ "character": 69
5823
+ },
5824
+ "name": "undefined"
5825
+ }
5826
+ ]
5846
5827
  },
5847
- "modifiers": []
5848
- },
5828
+ "isOptional": true
5829
+ }
5830
+ ],
5831
+ "extendsNodes": [
5849
5832
  {
5850
- "__schema": "GetAccessorSchema",
5833
+ "__schema": "ExpressionWithTypeArgumentsSchema",
5851
5834
  "location": {
5852
- "filePath": "capsule/capsule.ts",
5853
- "line": 41,
5854
- "character": 3
5835
+ "filePath": "capsule/container.ts",
5836
+ "line": 12,
5837
+ "character": 40
5855
5838
  },
5856
- "signature": "(getter) Capsule.wrkDir: string",
5857
- "name": "wrkDir",
5858
- "type": {
5859
- "__schema": "KeywordTypeSchema",
5839
+ "name": "extends ExecOptions",
5840
+ "typeArgs": [],
5841
+ "expression": {
5842
+ "__schema": "TypeRefSchema",
5860
5843
  "location": {
5861
- "filePath": "capsule/capsule.ts",
5862
- "line": 41,
5863
- "character": 17
5844
+ "filePath": "capsule/container.ts",
5845
+ "line": 12,
5846
+ "character": 40
5864
5847
  },
5865
- "name": "string"
5848
+ "name": "ExecOptions",
5849
+ "componentId": {
5850
+ "_legacy": {
5851
+ "scope": "teambit.component",
5852
+ "name": "isolator",
5853
+ "version": "1.0.397"
5854
+ },
5855
+ "_scope": "teambit.component"
5856
+ }
5866
5857
  }
5867
- },
5858
+ }
5859
+ ]
5860
+ },
5861
+ {
5862
+ "__schema": "InterfaceSchema",
5863
+ "location": {
5864
+ "filePath": "capsule/container.ts",
5865
+ "line": 16,
5866
+ "character": 1
5867
+ },
5868
+ "signature": "interface BitContainerConfig",
5869
+ "name": "BitContainerConfig",
5870
+ "members": [
5868
5871
  {
5869
- "__schema": "GetAccessorSchema",
5872
+ "__schema": "VariableLikeSchema",
5870
5873
  "location": {
5871
- "filePath": "capsule/capsule.ts",
5872
- "line": 45,
5874
+ "filePath": "capsule/container.ts",
5875
+ "line": 17,
5873
5876
  "character": 3
5874
5877
  },
5875
- "signature": "(getter) Capsule.path: string",
5876
- "name": "path",
5878
+ "signature": "(property) BitContainerConfig.other?: string | undefined",
5879
+ "name": "other",
5877
5880
  "type": {
5878
5881
  "__schema": "KeywordTypeSchema",
5879
5882
  "location": {
5880
- "filePath": "capsule/capsule.ts",
5881
- "line": 45,
5882
- "character": 15
5883
- },
5883
+ "filePath": "capsule/container.ts",
5884
+ "line": 17,
5885
+ "character": 11
5886
+ },
5884
5887
  "name": "string"
5888
+ },
5889
+ "isOptional": true
5890
+ }
5891
+ ],
5892
+ "extendsNodes": [
5893
+ {
5894
+ "__schema": "ExpressionWithTypeArgumentsSchema",
5895
+ "location": {
5896
+ "filePath": "capsule/container.ts",
5897
+ "line": 16,
5898
+ "character": 45
5899
+ },
5900
+ "name": "extends ContainerFactoryOptions",
5901
+ "typeArgs": [],
5902
+ "expression": {
5903
+ "__schema": "TypeRefSchema",
5904
+ "location": {
5905
+ "filePath": "capsule/container.ts",
5906
+ "line": 16,
5907
+ "character": 45
5908
+ },
5909
+ "name": "ContainerFactoryOptions",
5910
+ "componentId": {
5911
+ "_legacy": {
5912
+ "scope": "teambit.component",
5913
+ "name": "isolator",
5914
+ "version": "1.0.397"
5915
+ },
5916
+ "_scope": "teambit.component"
5917
+ }
5885
5918
  }
5919
+ }
5920
+ ]
5921
+ },
5922
+ {
5923
+ "__schema": "ClassSchema",
5924
+ "location": {
5925
+ "filePath": "capsule/container.ts",
5926
+ "line": 20,
5927
+ "character": 1
5928
+ },
5929
+ "signature": "class FsContainer",
5930
+ "name": "FsContainer",
5931
+ "members": [
5932
+ {
5933
+ "__schema": "VariableLikeSchema",
5934
+ "location": {
5935
+ "filePath": "capsule/container.ts",
5936
+ "line": 21,
5937
+ "character": 3
5938
+ },
5939
+ "signature": "(property) FsContainer.id: string",
5940
+ "name": "id",
5941
+ "type": {
5942
+ "__schema": "InferenceTypeSchema",
5943
+ "location": {
5944
+ "filePath": "capsule/container.ts",
5945
+ "line": 21,
5946
+ "character": 3
5947
+ },
5948
+ "type": "string"
5949
+ },
5950
+ "isOptional": true,
5951
+ "defaultValue": "'FS Container'"
5886
5952
  },
5887
5953
  {
5888
- "__schema": "FunctionLikeSchema",
5954
+ "__schema": "VariableLikeSchema",
5889
5955
  "location": {
5890
- "filePath": "capsule/capsule.ts",
5891
- "line": 49,
5956
+ "filePath": "capsule/container.ts",
5957
+ "line": 23,
5892
5958
  "character": 3
5893
5959
  },
5894
- "signature": "(method) Capsule.start(): Promise<any>",
5895
- "name": "start",
5896
- "params": [],
5897
- "returnType": {
5960
+ "signature": "(property) FsContainer.fs: NodeFS",
5961
+ "name": "fs",
5962
+ "type": {
5898
5963
  "__schema": "TypeRefSchema",
5899
5964
  "location": {
5900
- "filePath": "capsule/capsule.ts",
5901
- "line": 49,
5902
- "character": 12
5965
+ "filePath": "capsule/container.ts",
5966
+ "line": 23,
5967
+ "character": 3
5903
5968
  },
5904
- "name": "Promise",
5905
- "typeArgs": [
5906
- {
5969
+ "name": "NodeFS",
5970
+ "packageName": "@teambit/any-fs"
5971
+ },
5972
+ "isOptional": true,
5973
+ "defaultValue": "new NodeFS(this.wrkDir)"
5974
+ },
5975
+ {
5976
+ "__schema": "ConstructorSchema",
5977
+ "location": {
5978
+ "filePath": "capsule/container.ts",
5979
+ "line": 25,
5980
+ "character": 3
5981
+ },
5982
+ "signature": "constructor FsContainer(wrkDir: string): FsContainer",
5983
+ "name": "constructor",
5984
+ "params": [
5985
+ {
5986
+ "__schema": "ParameterSchema",
5987
+ "location": {
5988
+ "filePath": "capsule/container.ts",
5989
+ "line": 25,
5990
+ "character": 15
5991
+ },
5992
+ "name": "wrkDir",
5993
+ "type": {
5907
5994
  "__schema": "KeywordTypeSchema",
5908
5995
  "location": {
5909
- "filePath": "capsule/capsule.ts",
5910
- "line": 49,
5911
- "character": 20
5996
+ "filePath": "capsule/container.ts",
5997
+ "line": 25,
5998
+ "character": 32
5912
5999
  },
5913
- "name": "any"
5914
- }
5915
- ]
6000
+ "name": "string"
6001
+ },
6002
+ "isOptional": false,
6003
+ "isSpread": false
6004
+ }
6005
+ ],
6006
+ "returnType": {
6007
+ "__schema": "ThisTypeSchema",
6008
+ "location": {
6009
+ "filePath": "capsule/container.ts",
6010
+ "line": 20,
6011
+ "character": 1
6012
+ },
6013
+ "name": "FsContainer"
5916
6014
  },
5917
6015
  "modifiers": []
5918
6016
  },
5919
6017
  {
5920
6018
  "__schema": "FunctionLikeSchema",
5921
6019
  "location": {
5922
- "filePath": "capsule/capsule.ts",
5923
- "line": 53,
6020
+ "filePath": "capsule/container.ts",
6021
+ "line": 28,
5924
6022
  "character": 3
5925
6023
  },
5926
- "signature": "(method) Capsule.execNode(executable: string, args: any, exec: ContainerExec): Promise<ContainerExec>",
5927
- "name": "execNode",
6024
+ "signature": "(method) FsContainer.getPath(): string",
6025
+ "name": "getPath",
6026
+ "params": [],
6027
+ "returnType": {
6028
+ "__schema": "InferenceTypeSchema",
6029
+ "location": {
6030
+ "filePath": "capsule/container.ts",
6031
+ "line": 28,
6032
+ "character": 3
6033
+ },
6034
+ "type": "string"
6035
+ },
6036
+ "modifiers": [
6037
+ "public"
6038
+ ]
6039
+ },
6040
+ {
6041
+ "__schema": "FunctionLikeSchema",
6042
+ "location": {
6043
+ "filePath": "capsule/container.ts",
6044
+ "line": 36,
6045
+ "character": 3
6046
+ },
6047
+ "signature": "(method) FsContainer.outputFile(file: any, data: any, options: any): Promise<void>",
6048
+ "name": "outputFile",
5928
6049
  "params": [
5929
6050
  {
5930
6051
  "__schema": "ParameterSchema",
5931
6052
  "location": {
5932
- "filePath": "capsule/capsule.ts",
5933
- "line": 53,
5934
- "character": 18
6053
+ "filePath": "capsule/container.ts",
6054
+ "line": 36,
6055
+ "character": 14
5935
6056
  },
5936
- "name": "executable",
6057
+ "name": "file",
5937
6058
  "type": {
5938
- "__schema": "KeywordTypeSchema",
6059
+ "__schema": "InferenceTypeSchema",
5939
6060
  "location": {
5940
- "filePath": "capsule/capsule.ts",
5941
- "line": 53,
5942
- "character": 30
6061
+ "filePath": "capsule/container.ts",
6062
+ "line": 36,
6063
+ "character": 14
5943
6064
  },
5944
- "name": "string"
6065
+ "type": "any"
5945
6066
  },
5946
6067
  "isOptional": false,
5947
6068
  "isSpread": false
@@ -5949,19 +6070,19 @@
5949
6070
  {
5950
6071
  "__schema": "ParameterSchema",
5951
6072
  "location": {
5952
- "filePath": "capsule/capsule.ts",
5953
- "line": 53,
5954
- "character": 38
6073
+ "filePath": "capsule/container.ts",
6074
+ "line": 36,
6075
+ "character": 20
5955
6076
  },
5956
- "name": "args",
6077
+ "name": "data",
5957
6078
  "type": {
5958
- "__schema": "KeywordTypeSchema",
6079
+ "__schema": "InferenceTypeSchema",
5959
6080
  "location": {
5960
- "filePath": "capsule/capsule.ts",
5961
- "line": 53,
5962
- "character": 44
6081
+ "filePath": "capsule/container.ts",
6082
+ "line": 36,
6083
+ "character": 20
5963
6084
  },
5964
- "name": "any"
6085
+ "type": "any"
5965
6086
  },
5966
6087
  "isOptional": false,
5967
6088
  "isSpread": false
@@ -5969,19 +6090,19 @@
5969
6090
  {
5970
6091
  "__schema": "ParameterSchema",
5971
6092
  "location": {
5972
- "filePath": "capsule/capsule.ts",
5973
- "line": 53,
5974
- "character": 49
6093
+ "filePath": "capsule/container.ts",
6094
+ "line": 36,
6095
+ "character": 26
5975
6096
  },
5976
- "name": "exec",
6097
+ "name": "options",
5977
6098
  "type": {
5978
- "__schema": "TypeRefSchema",
6099
+ "__schema": "InferenceTypeSchema",
5979
6100
  "location": {
5980
- "filePath": "capsule/capsule.ts",
5981
- "line": 53,
5982
- "character": 55
6101
+ "filePath": "capsule/container.ts",
6102
+ "line": 36,
6103
+ "character": 26
5983
6104
  },
5984
- "name": "ContainerExec"
6105
+ "type": "any"
5985
6106
  },
5986
6107
  "isOptional": false,
5987
6108
  "isSpread": false
@@ -5990,105 +6111,91 @@
5990
6111
  "returnType": {
5991
6112
  "__schema": "InferenceTypeSchema",
5992
6113
  "location": {
5993
- "filePath": "capsule/capsule.ts",
5994
- "line": 53,
6114
+ "filePath": "capsule/container.ts",
6115
+ "line": 36,
5995
6116
  "character": 3
5996
6117
  },
5997
- "type": "Promise<ContainerExec>"
6118
+ "type": "Promise<void>"
5998
6119
  },
5999
- "modifiers": [
6000
- "async"
6001
- ]
6120
+ "modifiers": []
6002
6121
  },
6003
6122
  {
6004
6123
  "__schema": "FunctionLikeSchema",
6005
6124
  "location": {
6006
- "filePath": "capsule/capsule.ts",
6007
- "line": 63,
6125
+ "filePath": "capsule/container.ts",
6126
+ "line": 42,
6008
6127
  "character": 3
6009
6128
  },
6010
- "signature": "(method) Capsule.typedExec(opts: BitExecOption, exec?: ContainerExec): Promise<ContainerExec>",
6011
- "name": "typedExec",
6129
+ "signature": "(method) FsContainer.removePath(dir: string): Promise<any>",
6130
+ "name": "removePath",
6012
6131
  "params": [
6013
6132
  {
6014
6133
  "__schema": "ParameterSchema",
6015
6134
  "location": {
6016
- "filePath": "capsule/capsule.ts",
6017
- "line": 63,
6018
- "character": 19
6135
+ "filePath": "capsule/container.ts",
6136
+ "line": 42,
6137
+ "character": 14
6019
6138
  },
6020
- "name": "opts",
6139
+ "name": "dir",
6021
6140
  "type": {
6022
- "__schema": "TypeRefSchema",
6141
+ "__schema": "KeywordTypeSchema",
6023
6142
  "location": {
6024
- "filePath": "capsule/capsule.ts",
6025
- "line": 63,
6026
- "character": 25
6143
+ "filePath": "capsule/container.ts",
6144
+ "line": 42,
6145
+ "character": 19
6027
6146
  },
6028
- "name": "BitExecOption"
6147
+ "name": "string"
6029
6148
  },
6030
6149
  "isOptional": false,
6031
6150
  "isSpread": false
6032
- },
6033
- {
6034
- "__schema": "ParameterSchema",
6035
- "location": {
6036
- "filePath": "capsule/capsule.ts",
6037
- "line": 63,
6038
- "character": 40
6039
- },
6040
- "name": "exec",
6041
- "type": {
6042
- "__schema": "InferenceTypeSchema",
6043
- "location": {
6044
- "filePath": "capsule/capsule.ts",
6045
- "line": 63,
6046
- "character": 40
6047
- },
6048
- "type": "ContainerExec"
6049
- },
6050
- "isOptional": true,
6051
- "defaultValue": "new ContainerExec()",
6052
- "isSpread": false
6053
6151
  }
6054
6152
  ],
6055
6153
  "returnType": {
6056
- "__schema": "InferenceTypeSchema",
6154
+ "__schema": "TypeRefSchema",
6057
6155
  "location": {
6058
- "filePath": "capsule/capsule.ts",
6059
- "line": 63,
6060
- "character": 3
6156
+ "filePath": "capsule/container.ts",
6157
+ "line": 42,
6158
+ "character": 28
6061
6159
  },
6062
- "type": "Promise<ContainerExec>"
6160
+ "name": "Promise",
6161
+ "typeArgs": [
6162
+ {
6163
+ "__schema": "KeywordTypeSchema",
6164
+ "location": {
6165
+ "filePath": "capsule/container.ts",
6166
+ "line": 42,
6167
+ "character": 36
6168
+ },
6169
+ "name": "any"
6170
+ }
6171
+ ]
6063
6172
  },
6064
- "modifiers": [
6065
- "async"
6066
- ]
6173
+ "modifiers": []
6067
6174
  },
6068
6175
  {
6069
6176
  "__schema": "FunctionLikeSchema",
6070
6177
  "location": {
6071
- "filePath": "capsule/capsule.ts",
6072
- "line": 67,
6178
+ "filePath": "capsule/container.ts",
6179
+ "line": 47,
6073
6180
  "character": 3
6074
6181
  },
6075
- "signature": "(method) Capsule.outputFile(file: string, data: any, options?: any): Promise<any>",
6076
- "name": "outputFile",
6182
+ "signature": "(method) FsContainer.symlink(src: string, dest: string): Promise<any>",
6183
+ "name": "symlink",
6077
6184
  "params": [
6078
6185
  {
6079
6186
  "__schema": "ParameterSchema",
6080
6187
  "location": {
6081
- "filePath": "capsule/capsule.ts",
6082
- "line": 67,
6083
- "character": 14
6188
+ "filePath": "capsule/container.ts",
6189
+ "line": 47,
6190
+ "character": 17
6084
6191
  },
6085
- "name": "file",
6192
+ "name": "src",
6086
6193
  "type": {
6087
6194
  "__schema": "KeywordTypeSchema",
6088
6195
  "location": {
6089
- "filePath": "capsule/capsule.ts",
6090
- "line": 67,
6091
- "character": 20
6196
+ "filePath": "capsule/container.ts",
6197
+ "line": 47,
6198
+ "character": 22
6092
6199
  },
6093
6200
  "name": "string"
6094
6201
  },
@@ -6098,165 +6205,150 @@
6098
6205
  {
6099
6206
  "__schema": "ParameterSchema",
6100
6207
  "location": {
6101
- "filePath": "capsule/capsule.ts",
6102
- "line": 67,
6103
- "character": 28
6208
+ "filePath": "capsule/container.ts",
6209
+ "line": 47,
6210
+ "character": 30
6104
6211
  },
6105
- "name": "data",
6212
+ "name": "dest",
6106
6213
  "type": {
6107
6214
  "__schema": "KeywordTypeSchema",
6108
6215
  "location": {
6109
- "filePath": "capsule/capsule.ts",
6110
- "line": 67,
6111
- "character": 34
6216
+ "filePath": "capsule/container.ts",
6217
+ "line": 47,
6218
+ "character": 36
6112
6219
  },
6113
- "name": "any"
6220
+ "name": "string"
6114
6221
  },
6115
6222
  "isOptional": false,
6116
6223
  "isSpread": false
6117
- },
6118
- {
6119
- "__schema": "ParameterSchema",
6120
- "location": {
6121
- "filePath": "capsule/capsule.ts",
6122
- "line": 67,
6123
- "character": 39
6124
- },
6125
- "name": "options",
6126
- "type": {
6127
- "__schema": "KeywordTypeSchema",
6128
- "location": {
6129
- "filePath": "capsule/capsule.ts",
6130
- "line": 67,
6131
- "character": 49
6132
- },
6133
- "name": "any"
6134
- },
6135
- "isOptional": true,
6136
- "isSpread": false
6137
6224
  }
6138
6225
  ],
6139
6226
  "returnType": {
6140
6227
  "__schema": "TypeRefSchema",
6141
6228
  "location": {
6142
- "filePath": "capsule/capsule.ts",
6143
- "line": 67,
6144
- "character": 55
6229
+ "filePath": "capsule/container.ts",
6230
+ "line": 47,
6231
+ "character": 45
6145
6232
  },
6146
6233
  "name": "Promise",
6147
6234
  "typeArgs": [
6148
6235
  {
6149
6236
  "__schema": "KeywordTypeSchema",
6150
6237
  "location": {
6151
- "filePath": "capsule/capsule.ts",
6152
- "line": 67,
6153
- "character": 63
6238
+ "filePath": "capsule/container.ts",
6239
+ "line": 47,
6240
+ "character": 53
6154
6241
  },
6155
6242
  "name": "any"
6156
6243
  }
6157
6244
  ]
6158
6245
  },
6159
- "modifiers": []
6246
+ "modifiers": [
6247
+ "async"
6248
+ ]
6160
6249
  },
6161
6250
  {
6162
6251
  "__schema": "FunctionLikeSchema",
6163
6252
  "location": {
6164
- "filePath": "capsule/capsule.ts",
6165
- "line": 71,
6253
+ "filePath": "capsule/container.ts",
6254
+ "line": 54,
6166
6255
  "character": 3
6167
6256
  },
6168
- "signature": "(method) Capsule.removePath(dir: string): Promise<any>",
6169
- "name": "removePath",
6257
+ "signature": "(method) FsContainer.exec(execOptions: BitExecOption, exec?: ContainerExec): Promise<ContainerExec>",
6258
+ "name": "exec",
6170
6259
  "params": [
6171
6260
  {
6172
6261
  "__schema": "ParameterSchema",
6173
6262
  "location": {
6174
- "filePath": "capsule/capsule.ts",
6175
- "line": 71,
6263
+ "filePath": "capsule/container.ts",
6264
+ "line": 54,
6176
6265
  "character": 14
6177
6266
  },
6178
- "name": "dir",
6267
+ "name": "execOptions",
6179
6268
  "type": {
6180
- "__schema": "KeywordTypeSchema",
6269
+ "__schema": "TypeRefSchema",
6181
6270
  "location": {
6182
- "filePath": "capsule/capsule.ts",
6183
- "line": 71,
6184
- "character": 19
6271
+ "filePath": "capsule/container.ts",
6272
+ "line": 54,
6273
+ "character": 27
6185
6274
  },
6186
- "name": "string"
6275
+ "name": "BitExecOption"
6187
6276
  },
6188
6277
  "isOptional": false,
6189
6278
  "isSpread": false
6279
+ },
6280
+ {
6281
+ "__schema": "ParameterSchema",
6282
+ "location": {
6283
+ "filePath": "capsule/container.ts",
6284
+ "line": 54,
6285
+ "character": 42
6286
+ },
6287
+ "name": "exec",
6288
+ "type": {
6289
+ "__schema": "InferenceTypeSchema",
6290
+ "location": {
6291
+ "filePath": "capsule/container.ts",
6292
+ "line": 54,
6293
+ "character": 42
6294
+ },
6295
+ "type": "ContainerExec"
6296
+ },
6297
+ "isOptional": true,
6298
+ "defaultValue": "new ContainerExec()",
6299
+ "isSpread": false
6190
6300
  }
6191
6301
  ],
6192
6302
  "returnType": {
6193
6303
  "__schema": "TypeRefSchema",
6194
6304
  "location": {
6195
- "filePath": "capsule/capsule.ts",
6196
- "line": 71,
6197
- "character": 28
6305
+ "filePath": "capsule/container.ts",
6306
+ "line": 54,
6307
+ "character": 71
6198
6308
  },
6199
6309
  "name": "Promise",
6200
6310
  "typeArgs": [
6201
6311
  {
6202
- "__schema": "KeywordTypeSchema",
6312
+ "__schema": "TypeRefSchema",
6203
6313
  "location": {
6204
- "filePath": "capsule/capsule.ts",
6205
- "line": 71,
6206
- "character": 36
6314
+ "filePath": "capsule/container.ts",
6315
+ "line": 54,
6316
+ "character": 79
6207
6317
  },
6208
- "name": "any"
6318
+ "name": "ContainerExec"
6209
6319
  }
6210
6320
  ]
6211
6321
  },
6212
- "modifiers": []
6322
+ "modifiers": [
6323
+ "async"
6324
+ ]
6213
6325
  },
6214
6326
  {
6215
6327
  "__schema": "FunctionLikeSchema",
6216
6328
  "location": {
6217
- "filePath": "capsule/capsule.ts",
6218
- "line": 75,
6329
+ "filePath": "capsule/container.ts",
6330
+ "line": 82,
6219
6331
  "character": 3
6220
6332
  },
6221
- "signature": "(method) Capsule.symlink(src: string, dest: string): Promise<any>",
6222
- "name": "symlink",
6333
+ "signature": "(method) FsContainer.execP(execOptions: BitExecOption): Promise<string>",
6334
+ "name": "execP",
6223
6335
  "params": [
6224
6336
  {
6225
6337
  "__schema": "ParameterSchema",
6226
6338
  "location": {
6227
- "filePath": "capsule/capsule.ts",
6228
- "line": 75,
6229
- "character": 11
6230
- },
6231
- "name": "src",
6232
- "type": {
6233
- "__schema": "KeywordTypeSchema",
6234
- "location": {
6235
- "filePath": "capsule/capsule.ts",
6236
- "line": 75,
6237
- "character": 16
6238
- },
6239
- "name": "string"
6240
- },
6241
- "isOptional": false,
6242
- "isSpread": false
6243
- },
6244
- {
6245
- "__schema": "ParameterSchema",
6246
- "location": {
6247
- "filePath": "capsule/capsule.ts",
6248
- "line": 75,
6249
- "character": 24
6339
+ "filePath": "capsule/container.ts",
6340
+ "line": 82,
6341
+ "character": 15
6250
6342
  },
6251
- "name": "dest",
6343
+ "name": "execOptions",
6252
6344
  "type": {
6253
- "__schema": "KeywordTypeSchema",
6345
+ "__schema": "TypeRefSchema",
6254
6346
  "location": {
6255
- "filePath": "capsule/capsule.ts",
6256
- "line": 75,
6257
- "character": 30
6347
+ "filePath": "capsule/container.ts",
6348
+ "line": 82,
6349
+ "character": 28
6258
6350
  },
6259
- "name": "string"
6351
+ "name": "BitExecOption"
6260
6352
  },
6261
6353
  "isOptional": false,
6262
6354
  "isSpread": false
@@ -6265,132 +6357,45 @@
6265
6357
  "returnType": {
6266
6358
  "__schema": "TypeRefSchema",
6267
6359
  "location": {
6268
- "filePath": "capsule/capsule.ts",
6269
- "line": 75,
6270
- "character": 39
6360
+ "filePath": "capsule/container.ts",
6361
+ "line": 82,
6362
+ "character": 44
6271
6363
  },
6272
6364
  "name": "Promise",
6273
6365
  "typeArgs": [
6274
6366
  {
6275
6367
  "__schema": "KeywordTypeSchema",
6276
6368
  "location": {
6277
- "filePath": "capsule/capsule.ts",
6278
- "line": 75,
6279
- "character": 47
6369
+ "filePath": "capsule/container.ts",
6370
+ "line": 82,
6371
+ "character": 52
6280
6372
  },
6281
- "name": "any"
6373
+ "name": "string"
6282
6374
  }
6283
6375
  ]
6284
6376
  },
6285
- "modifiers": []
6377
+ "modifiers": [
6378
+ "async"
6379
+ ]
6286
6380
  },
6287
6381
  {
6288
6382
  "__schema": "FunctionLikeSchema",
6289
6383
  "location": {
6290
- "filePath": "capsule/capsule.ts",
6291
- "line": 80,
6384
+ "filePath": "capsule/container.ts",
6385
+ "line": 96,
6292
6386
  "character": 3
6293
6387
  },
6294
- "signature": "(method) Capsule.execute(cmd: string, options?: Record<string, any> | null | undefined): Promise<unknown>",
6295
- "name": "execute",
6296
- "params": [
6297
- {
6298
- "__schema": "ParameterSchema",
6299
- "location": {
6300
- "filePath": "capsule/capsule.ts",
6301
- "line": 80,
6302
- "character": 17
6303
- },
6304
- "name": "cmd",
6305
- "type": {
6306
- "__schema": "KeywordTypeSchema",
6307
- "location": {
6308
- "filePath": "capsule/capsule.ts",
6309
- "line": 80,
6310
- "character": 22
6311
- },
6312
- "name": "string"
6313
- },
6314
- "isOptional": false,
6315
- "isSpread": false
6316
- },
6317
- {
6318
- "__schema": "ParameterSchema",
6319
- "location": {
6320
- "filePath": "capsule/capsule.ts",
6321
- "line": 80,
6322
- "character": 30
6323
- },
6324
- "name": "options",
6325
- "type": {
6326
- "__schema": "TypeUnionSchema",
6327
- "location": {
6328
- "filePath": "capsule/capsule.ts",
6329
- "line": 80,
6330
- "character": 40
6331
- },
6332
- "types": [
6333
- {
6334
- "__schema": "TypeRefSchema",
6335
- "location": {
6336
- "filePath": "capsule/capsule.ts",
6337
- "line": 80,
6338
- "character": 40
6339
- },
6340
- "name": "Record",
6341
- "typeArgs": [
6342
- {
6343
- "__schema": "KeywordTypeSchema",
6344
- "location": {
6345
- "filePath": "capsule/capsule.ts",
6346
- "line": 80,
6347
- "character": 47
6348
- },
6349
- "name": "string"
6350
- },
6351
- {
6352
- "__schema": "KeywordTypeSchema",
6353
- "location": {
6354
- "filePath": "capsule/capsule.ts",
6355
- "line": 80,
6356
- "character": 55
6357
- },
6358
- "name": "any"
6359
- }
6360
- ]
6361
- },
6362
- {
6363
- "__schema": "LiteralTypeSchema",
6364
- "location": {
6365
- "filePath": "capsule/capsule.ts",
6366
- "line": 80,
6367
- "character": 62
6368
- },
6369
- "name": "null"
6370
- },
6371
- {
6372
- "__schema": "KeywordTypeSchema",
6373
- "location": {
6374
- "filePath": "capsule/capsule.ts",
6375
- "line": 80,
6376
- "character": 69
6377
- },
6378
- "name": "undefined"
6379
- }
6380
- ]
6381
- },
6382
- "isOptional": true,
6383
- "isSpread": false
6384
- }
6385
- ],
6388
+ "signature": "(method) FsContainer.terminal(): Promise<execa.ExecaReturnValue<string>>",
6389
+ "name": "terminal",
6390
+ "params": [],
6386
6391
  "returnType": {
6387
6392
  "__schema": "InferenceTypeSchema",
6388
6393
  "location": {
6389
- "filePath": "capsule/capsule.ts",
6390
- "line": 80,
6394
+ "filePath": "capsule/container.ts",
6395
+ "line": 96,
6391
6396
  "character": 3
6392
6397
  },
6393
- "type": "Promise<unknown>"
6398
+ "type": "Promise<execa.ExecaReturnValue<string>>"
6394
6399
  },
6395
6400
  "modifiers": [
6396
6401
  "async"
@@ -6399,815 +6404,582 @@
6399
6404
  {
6400
6405
  "__schema": "FunctionLikeSchema",
6401
6406
  "location": {
6402
- "filePath": "capsule/capsule.ts",
6403
- "line": 112,
6407
+ "filePath": "capsule/container.ts",
6408
+ "line": 101,
6404
6409
  "character": 3
6405
6410
  },
6406
- "doc": {
6407
- "__schema": "DocSchema",
6411
+ "signature": "(method) FsContainer.start(): Promise<void>",
6412
+ "name": "start",
6413
+ "params": [],
6414
+ "returnType": {
6415
+ "__schema": "TypeRefSchema",
6408
6416
  "location": {
6409
- "filePath": "capsule/capsule.ts",
6410
- "line": 105,
6411
- "character": 3
6417
+ "filePath": "capsule/container.ts",
6418
+ "line": 101,
6419
+ "character": 12
6412
6420
  },
6413
- "raw": "/**\n * @todo: fix.\n * it skips the capsule fs because for some reason `capsule.fs.promises.readdir` doesn't work\n * the same as `capsule.fs.readdir` and it doesn't have the capsule dir as pwd.\n *\n * returns the paths inside the capsule\n */",
6414
- "comment": "",
6415
- "tags": [
6421
+ "name": "Promise",
6422
+ "typeArgs": [
6416
6423
  {
6417
- "__schema": "TagSchema",
6424
+ "__schema": "KeywordTypeSchema",
6418
6425
  "location": {
6419
- "filePath": "capsule/capsule.ts",
6420
- "line": 106,
6421
- "character": 6
6426
+ "filePath": "capsule/container.ts",
6427
+ "line": 101,
6428
+ "character": 20
6422
6429
  },
6423
- "tagName": "todo",
6424
- "comment": ": fix.\nit skips the capsule fs because for some reason `capsule.fs.promises.readdir` doesn't work\nthe same as `capsule.fs.readdir` and it doesn't have the capsule dir as pwd.\n\nreturns the paths inside the capsule"
6430
+ "name": "void"
6425
6431
  }
6426
6432
  ]
6427
6433
  },
6428
- "signature": "(method) Capsule.getAllFilesPaths(dir?: string, options?: {\n ignore?: string[];\n}): any",
6429
- "name": "getAllFilesPaths",
6430
- "params": [
6431
- {
6432
- "__schema": "ParameterSchema",
6433
- "location": {
6434
- "filePath": "capsule/capsule.ts",
6435
- "line": 112,
6436
- "character": 20
6437
- },
6438
- "name": "dir",
6439
- "type": {
6440
- "__schema": "InferenceTypeSchema",
6441
- "location": {
6442
- "filePath": "capsule/capsule.ts",
6443
- "line": 112,
6444
- "character": 20
6445
- },
6446
- "type": "string"
6447
- },
6448
- "isOptional": true,
6449
- "defaultValue": "'.'",
6450
- "isSpread": false
6451
- },
6452
- {
6453
- "__schema": "ParameterSchema",
6454
- "location": {
6455
- "filePath": "capsule/capsule.ts",
6456
- "line": 112,
6457
- "character": 31
6458
- },
6459
- "name": "options",
6460
- "type": {
6461
- "__schema": "TypeLiteralSchema",
6462
- "location": {
6463
- "filePath": "capsule/capsule.ts",
6464
- "line": 112,
6465
- "character": 40
6466
- },
6467
- "members": [
6468
- {
6469
- "__schema": "VariableLikeSchema",
6470
- "location": {
6471
- "filePath": "capsule/capsule.ts",
6472
- "line": 112,
6473
- "character": 42
6474
- },
6475
- "signature": "(property) ignore?: string[] | undefined",
6476
- "name": "ignore",
6477
- "type": {
6478
- "__schema": "TypeArraySchema",
6479
- "location": {
6480
- "filePath": "capsule/capsule.ts",
6481
- "line": 112,
6482
- "character": 51
6483
- },
6484
- "type": {
6485
- "__schema": "KeywordTypeSchema",
6486
- "location": {
6487
- "filePath": "capsule/capsule.ts",
6488
- "line": 112,
6489
- "character": 51
6490
- },
6491
- "name": "string"
6492
- }
6493
- },
6494
- "isOptional": true
6495
- }
6496
- ]
6497
- },
6498
- "isOptional": true,
6499
- "defaultValue": "{}",
6500
- "isSpread": false
6501
- }
6502
- ],
6503
- "returnType": {
6504
- "__schema": "InferenceTypeSchema",
6505
- "location": {
6506
- "filePath": "capsule/capsule.ts",
6507
- "line": 112,
6508
- "character": 3
6509
- },
6510
- "type": "any"
6511
- },
6512
6434
  "modifiers": []
6513
6435
  },
6514
6436
  {
6515
6437
  "__schema": "FunctionLikeSchema",
6516
6438
  "location": {
6517
- "filePath": "capsule/capsule.ts",
6518
- "line": 117,
6439
+ "filePath": "capsule/container.ts",
6440
+ "line": 105,
6519
6441
  "character": 3
6520
6442
  },
6521
- "signature": "(method) Capsule.getCapsuleDirName(component: Component, config?: {\n alwaysNew?: boolean;\n name?: string;\n}): string",
6522
- "name": "getCapsuleDirName",
6523
- "params": [
6524
- {
6525
- "__schema": "ParameterSchema",
6526
- "location": {
6527
- "filePath": "capsule/capsule.ts",
6528
- "line": 117,
6529
- "character": 28
6530
- },
6531
- "name": "component",
6532
- "type": {
6443
+ "signature": "(method) FsContainer.inspect(): Promise<ContainerStatus>",
6444
+ "name": "inspect",
6445
+ "params": [],
6446
+ "returnType": {
6447
+ "__schema": "TypeRefSchema",
6448
+ "location": {
6449
+ "filePath": "capsule/container.ts",
6450
+ "line": 105,
6451
+ "character": 20
6452
+ },
6453
+ "name": "Promise",
6454
+ "typeArgs": [
6455
+ {
6533
6456
  "__schema": "TypeRefSchema",
6534
6457
  "location": {
6535
- "filePath": "capsule/capsule.ts",
6536
- "line": 117,
6537
- "character": 39
6458
+ "filePath": "capsule/container.ts",
6459
+ "line": 105,
6460
+ "character": 28
6538
6461
  },
6539
- "name": "Component"
6540
- },
6541
- "isOptional": false,
6542
- "isSpread": false
6543
- },
6544
- {
6545
- "__schema": "ParameterSchema",
6546
- "location": {
6547
- "filePath": "capsule/capsule.ts",
6548
- "line": 117,
6549
- "character": 50
6550
- },
6551
- "name": "config",
6552
- "type": {
6553
- "__schema": "TypeLiteralSchema",
6554
- "location": {
6555
- "filePath": "capsule/capsule.ts",
6556
- "line": 117,
6557
- "character": 58
6558
- },
6559
- "members": [
6560
- {
6561
- "__schema": "VariableLikeSchema",
6562
- "location": {
6563
- "filePath": "capsule/capsule.ts",
6564
- "line": 117,
6565
- "character": 60
6566
- },
6567
- "signature": "(property) alwaysNew?: boolean | undefined",
6568
- "name": "alwaysNew",
6569
- "type": {
6570
- "__schema": "KeywordTypeSchema",
6571
- "location": {
6572
- "filePath": "capsule/capsule.ts",
6573
- "line": 117,
6574
- "character": 72
6575
- },
6576
- "name": "boolean"
6577
- },
6578
- "isOptional": true
6579
- },
6580
- {
6581
- "__schema": "VariableLikeSchema",
6582
- "location": {
6583
- "filePath": "capsule/capsule.ts",
6584
- "line": 117,
6585
- "character": 81
6586
- },
6587
- "signature": "(property) name?: string | undefined",
6588
- "name": "name",
6589
- "type": {
6590
- "__schema": "KeywordTypeSchema",
6591
- "location": {
6592
- "filePath": "capsule/capsule.ts",
6593
- "line": 117,
6594
- "character": 88
6595
- },
6596
- "name": "string"
6597
- },
6598
- "isOptional": true
6599
- }
6600
- ]
6601
- },
6602
- "isOptional": true,
6603
- "defaultValue": "{}",
6604
- "isSpread": false
6605
- }
6606
- ],
6607
- "returnType": {
6608
- "__schema": "InferenceTypeSchema",
6609
- "location": {
6610
- "filePath": "capsule/capsule.ts",
6611
- "line": 117,
6612
- "character": 3
6613
- },
6614
- "type": "string"
6615
- },
6616
- "modifiers": [
6617
- "static"
6618
- ]
6619
- },
6620
- {
6621
- "__schema": "FunctionLikeSchema",
6622
- "location": {
6623
- "filePath": "capsule/capsule.ts",
6624
- "line": 121,
6625
- "character": 3
6626
- },
6627
- "signature": "(method) Capsule.getCapsuleRootDir(component: Component, baseDir: string, config?: {\n alwaysNew?: boolean;\n name?: string;\n}): string",
6628
- "name": "getCapsuleRootDir",
6629
- "params": [
6630
- {
6631
- "__schema": "ParameterSchema",
6632
- "location": {
6633
- "filePath": "capsule/capsule.ts",
6634
- "line": 121,
6635
- "character": 28
6636
- },
6637
- "name": "component",
6638
- "type": {
6639
- "__schema": "TypeRefSchema",
6640
- "location": {
6641
- "filePath": "capsule/capsule.ts",
6642
- "line": 121,
6643
- "character": 39
6644
- },
6645
- "name": "Component"
6646
- },
6647
- "isOptional": false,
6648
- "isSpread": false
6649
- },
6650
- {
6651
- "__schema": "ParameterSchema",
6652
- "location": {
6653
- "filePath": "capsule/capsule.ts",
6654
- "line": 121,
6655
- "character": 50
6656
- },
6657
- "name": "baseDir",
6658
- "type": {
6659
- "__schema": "KeywordTypeSchema",
6660
- "location": {
6661
- "filePath": "capsule/capsule.ts",
6662
- "line": 121,
6663
- "character": 59
6664
- },
6665
- "name": "string"
6666
- },
6667
- "isOptional": false,
6668
- "isSpread": false
6669
- },
6670
- {
6671
- "__schema": "ParameterSchema",
6672
- "location": {
6673
- "filePath": "capsule/capsule.ts",
6674
- "line": 121,
6675
- "character": 67
6676
- },
6677
- "name": "config",
6678
- "type": {
6679
- "__schema": "TypeLiteralSchema",
6680
- "location": {
6681
- "filePath": "capsule/capsule.ts",
6682
- "line": 121,
6683
- "character": 75
6684
- },
6685
- "members": [
6686
- {
6687
- "__schema": "VariableLikeSchema",
6688
- "location": {
6689
- "filePath": "capsule/capsule.ts",
6690
- "line": 121,
6691
- "character": 77
6692
- },
6693
- "signature": "(property) alwaysNew?: boolean | undefined",
6694
- "name": "alwaysNew",
6695
- "type": {
6696
- "__schema": "KeywordTypeSchema",
6697
- "location": {
6698
- "filePath": "capsule/capsule.ts",
6699
- "line": 121,
6700
- "character": 89
6701
- },
6702
- "name": "boolean"
6703
- },
6704
- "isOptional": true
6705
- },
6706
- {
6707
- "__schema": "VariableLikeSchema",
6708
- "location": {
6709
- "filePath": "capsule/capsule.ts",
6710
- "line": 121,
6711
- "character": 98
6712
- },
6713
- "signature": "(property) name?: string | undefined",
6714
- "name": "name",
6715
- "type": {
6716
- "__schema": "KeywordTypeSchema",
6717
- "location": {
6718
- "filePath": "capsule/capsule.ts",
6719
- "line": 121,
6720
- "character": 105
6721
- },
6722
- "name": "string"
6723
- },
6724
- "isOptional": true
6725
- }
6726
- ]
6727
- },
6728
- "isOptional": true,
6729
- "defaultValue": "{}",
6730
- "isSpread": false
6731
- }
6732
- ],
6733
- "returnType": {
6734
- "__schema": "InferenceTypeSchema",
6735
- "location": {
6736
- "filePath": "capsule/capsule.ts",
6737
- "line": 121,
6738
- "character": 3
6739
- },
6740
- "type": "string"
6741
- },
6742
- "modifiers": [
6743
- "static"
6744
- ]
6745
- },
6746
- {
6747
- "__schema": "FunctionLikeSchema",
6748
- "location": {
6749
- "filePath": "capsule/capsule.ts",
6750
- "line": 125,
6751
- "character": 3
6752
- },
6753
- "signature": "(method) Capsule.createFromComponent(component: Component, baseDir: string, config?: {\n alwaysNew?: boolean;\n}): Promise<Capsule>",
6754
- "name": "createFromComponent",
6755
- "params": [
6756
- {
6757
- "__schema": "ParameterSchema",
6758
- "location": {
6759
- "filePath": "capsule/capsule.ts",
6760
- "line": 126,
6761
- "character": 5
6762
- },
6763
- "name": "component",
6764
- "type": {
6765
- "__schema": "TypeRefSchema",
6766
- "location": {
6767
- "filePath": "capsule/capsule.ts",
6768
- "line": 126,
6769
- "character": 16
6770
- },
6771
- "name": "Component"
6772
- },
6773
- "isOptional": false,
6774
- "isSpread": false
6775
- },
6776
- {
6777
- "__schema": "ParameterSchema",
6778
- "location": {
6779
- "filePath": "capsule/capsule.ts",
6780
- "line": 127,
6781
- "character": 5
6782
- },
6783
- "name": "baseDir",
6784
- "type": {
6785
- "__schema": "KeywordTypeSchema",
6786
- "location": {
6787
- "filePath": "capsule/capsule.ts",
6788
- "line": 127,
6789
- "character": 14
6790
- },
6791
- "name": "string"
6792
- },
6793
- "isOptional": false,
6794
- "isSpread": false
6795
- },
6796
- {
6797
- "__schema": "ParameterSchema",
6798
- "location": {
6799
- "filePath": "capsule/capsule.ts",
6800
- "line": 128,
6801
- "character": 5
6802
- },
6803
- "name": "config",
6804
- "type": {
6805
- "__schema": "TypeLiteralSchema",
6806
- "location": {
6807
- "filePath": "capsule/capsule.ts",
6808
- "line": 128,
6809
- "character": 13
6810
- },
6811
- "members": [
6812
- {
6813
- "__schema": "VariableLikeSchema",
6814
- "location": {
6815
- "filePath": "capsule/capsule.ts",
6816
- "line": 128,
6817
- "character": 15
6818
- },
6819
- "signature": "(property) alwaysNew?: boolean | undefined",
6820
- "name": "alwaysNew",
6821
- "type": {
6822
- "__schema": "KeywordTypeSchema",
6823
- "location": {
6824
- "filePath": "capsule/capsule.ts",
6825
- "line": 128,
6826
- "character": 27
6827
- },
6828
- "name": "boolean"
6829
- },
6830
- "isOptional": true
6831
- }
6832
- ]
6833
- },
6834
- "isOptional": true,
6835
- "defaultValue": "{}",
6836
- "isSpread": false
6837
- }
6838
- ],
6839
- "returnType": {
6840
- "__schema": "TypeRefSchema",
6841
- "location": {
6842
- "filePath": "capsule/capsule.ts",
6843
- "line": 129,
6844
- "character": 6
6845
- },
6846
- "name": "Promise",
6847
- "typeArgs": [
6848
- {
6849
- "__schema": "TypeRefSchema",
6850
- "location": {
6851
- "filePath": "capsule/capsule.ts",
6852
- "line": 129,
6853
- "character": 14
6854
- },
6855
- "name": "Capsule"
6462
+ "name": "ContainerStatus"
6856
6463
  }
6857
6464
  ]
6858
6465
  },
6859
6466
  "modifiers": [
6860
- "static",
6861
- "async"
6862
- ]
6863
- }
6864
- ],
6865
- "extendsNodes": [
6866
- {
6867
- "__schema": "ExpressionWithTypeArgumentsSchema",
6868
- "location": {
6869
- "filePath": "capsule/capsule.ts",
6870
- "line": 13,
6871
- "character": 38
6872
- },
6873
- "name": "extends CapsuleTemplate<Exec, NodeFS>",
6874
- "typeArgs": [
6875
- {
6876
- "__schema": "TypeRefSchema",
6877
- "location": {
6878
- "filePath": "capsule/capsule.ts",
6879
- "line": 13,
6880
- "character": 54
6881
- },
6882
- "name": "Exec"
6883
- },
6884
- {
6885
- "__schema": "TypeRefSchema",
6886
- "location": {
6887
- "filePath": "capsule/capsule.ts",
6888
- "line": 13,
6889
- "character": 60
6890
- },
6891
- "name": "NodeFS"
6892
- }
6893
- ],
6894
- "expression": {
6895
- "__schema": "TypeRefSchema",
6896
- "location": {
6897
- "filePath": "capsule/capsule.ts",
6898
- "line": 13,
6899
- "character": 38
6900
- },
6901
- "name": "CapsuleTemplate<T",
6902
- "componentId": {
6903
- "_legacy": {
6904
- "scope": "teambit.component",
6905
- "name": "isolator",
6906
- "version": "1.0.396"
6907
- },
6908
- "_scope": "teambit.component"
6909
- }
6910
- }
6911
- }
6912
- ],
6913
- "implementNodes": []
6914
- }
6915
- ],
6916
- "internals": []
6917
- },
6918
- {
6919
- "__schema": "ModuleSchema",
6920
- "location": {
6921
- "filePath": "capsule/container.ts",
6922
- "line": 1,
6923
- "character": 1
6924
- },
6925
- "exports": [
6926
- {
6927
- "__schema": "InterfaceSchema",
6928
- "location": {
6929
- "filePath": "capsule/container.ts",
6930
- "line": 12,
6931
- "character": 1
6932
- },
6933
- "signature": "interface BitExecOption",
6934
- "name": "BitExecOption",
6935
- "members": [
6467
+ "async"
6468
+ ]
6469
+ },
6936
6470
  {
6937
- "__schema": "VariableLikeSchema",
6471
+ "__schema": "FunctionLikeSchema",
6938
6472
  "location": {
6939
6473
  "filePath": "capsule/container.ts",
6940
- "line": 13,
6474
+ "line": 108,
6941
6475
  "character": 3
6942
6476
  },
6943
- "signature": "(property) BitExecOption.cwd: string",
6944
- "name": "cwd",
6945
- "type": {
6946
- "__schema": "KeywordTypeSchema",
6477
+ "signature": "(method) FsContainer.pause(): Promise<void>",
6478
+ "name": "pause",
6479
+ "params": [],
6480
+ "returnType": {
6481
+ "__schema": "TypeRefSchema",
6947
6482
  "location": {
6948
6483
  "filePath": "capsule/container.ts",
6949
- "line": 13,
6950
- "character": 8
6484
+ "line": 108,
6485
+ "character": 18
6951
6486
  },
6952
- "name": "string"
6487
+ "name": "Promise",
6488
+ "typeArgs": [
6489
+ {
6490
+ "__schema": "KeywordTypeSchema",
6491
+ "location": {
6492
+ "filePath": "capsule/container.ts",
6493
+ "line": 108,
6494
+ "character": 26
6495
+ },
6496
+ "name": "void"
6497
+ }
6498
+ ]
6953
6499
  },
6954
- "isOptional": false
6500
+ "modifiers": [
6501
+ "async"
6502
+ ]
6955
6503
  },
6956
6504
  {
6957
- "__schema": "VariableLikeSchema",
6505
+ "__schema": "FunctionLikeSchema",
6958
6506
  "location": {
6959
6507
  "filePath": "capsule/container.ts",
6960
- "line": 14,
6508
+ "line": 111,
6961
6509
  "character": 3
6962
6510
  },
6963
- "signature": "(property) BitExecOption.stdio?: number | Stream | \"pipe\" | \"ignore\" | \"inherit\" | \"ipc\" | undefined",
6964
- "name": "stdio",
6965
- "type": {
6966
- "__schema": "TypeUnionSchema",
6511
+ "signature": "(method) FsContainer.resume(): Promise<void>",
6512
+ "name": "resume",
6513
+ "params": [],
6514
+ "returnType": {
6515
+ "__schema": "TypeRefSchema",
6967
6516
  "location": {
6968
6517
  "filePath": "capsule/container.ts",
6969
- "line": 14,
6970
- "character": 11
6518
+ "line": 111,
6519
+ "character": 19
6971
6520
  },
6972
- "types": [
6973
- {
6974
- "__schema": "LiteralTypeSchema",
6975
- "location": {
6976
- "filePath": "capsule/container.ts",
6977
- "line": 14,
6978
- "character": 11
6979
- },
6980
- "name": "'pipe'"
6981
- },
6982
- {
6983
- "__schema": "LiteralTypeSchema",
6984
- "location": {
6985
- "filePath": "capsule/container.ts",
6986
- "line": 14,
6987
- "character": 20
6988
- },
6989
- "name": "'ipc'"
6990
- },
6991
- {
6992
- "__schema": "LiteralTypeSchema",
6993
- "location": {
6994
- "filePath": "capsule/container.ts",
6995
- "line": 14,
6996
- "character": 28
6997
- },
6998
- "name": "'ignore'"
6999
- },
6521
+ "name": "Promise",
6522
+ "typeArgs": [
7000
6523
  {
7001
- "__schema": "LiteralTypeSchema",
6524
+ "__schema": "KeywordTypeSchema",
7002
6525
  "location": {
7003
6526
  "filePath": "capsule/container.ts",
7004
- "line": 14,
7005
- "character": 39
6527
+ "line": 111,
6528
+ "character": 27
7006
6529
  },
7007
- "name": "'inherit'"
6530
+ "name": "void"
6531
+ }
6532
+ ]
6533
+ },
6534
+ "modifiers": [
6535
+ "async"
6536
+ ]
6537
+ },
6538
+ {
6539
+ "__schema": "FunctionLikeSchema",
6540
+ "location": {
6541
+ "filePath": "capsule/container.ts",
6542
+ "line": 115,
6543
+ "character": 3
6544
+ },
6545
+ "signature": "(method) FsContainer.stop(ttl?: number | undefined): Promise<void>",
6546
+ "name": "stop",
6547
+ "params": [
6548
+ {
6549
+ "__schema": "ParameterSchema",
6550
+ "location": {
6551
+ "filePath": "capsule/container.ts",
6552
+ "line": 115,
6553
+ "character": 8
7008
6554
  },
7009
- {
7010
- "__schema": "TypeRefSchema",
6555
+ "name": "ttl",
6556
+ "type": {
6557
+ "__schema": "TypeUnionSchema",
7011
6558
  "location": {
7012
6559
  "filePath": "capsule/container.ts",
7013
- "line": 14,
7014
- "character": 51
6560
+ "line": 115,
6561
+ "character": 14
7015
6562
  },
7016
- "name": "Stream"
6563
+ "types": [
6564
+ {
6565
+ "__schema": "KeywordTypeSchema",
6566
+ "location": {
6567
+ "filePath": "capsule/container.ts",
6568
+ "line": 115,
6569
+ "character": 14
6570
+ },
6571
+ "name": "number"
6572
+ },
6573
+ {
6574
+ "__schema": "KeywordTypeSchema",
6575
+ "location": {
6576
+ "filePath": "capsule/container.ts",
6577
+ "line": 115,
6578
+ "character": 23
6579
+ },
6580
+ "name": "undefined"
6581
+ }
6582
+ ]
7017
6583
  },
6584
+ "isOptional": true,
6585
+ "isSpread": false
6586
+ }
6587
+ ],
6588
+ "returnType": {
6589
+ "__schema": "TypeRefSchema",
6590
+ "location": {
6591
+ "filePath": "capsule/container.ts",
6592
+ "line": 115,
6593
+ "character": 35
6594
+ },
6595
+ "name": "Promise",
6596
+ "typeArgs": [
7018
6597
  {
7019
6598
  "__schema": "KeywordTypeSchema",
7020
6599
  "location": {
7021
6600
  "filePath": "capsule/container.ts",
7022
- "line": 14,
7023
- "character": 60
6601
+ "line": 115,
6602
+ "character": 43
7024
6603
  },
7025
- "name": "number"
7026
- },
6604
+ "name": "void"
6605
+ }
6606
+ ]
6607
+ },
6608
+ "modifiers": []
6609
+ },
6610
+ {
6611
+ "__schema": "FunctionLikeSchema",
6612
+ "location": {
6613
+ "filePath": "capsule/container.ts",
6614
+ "line": 118,
6615
+ "character": 3
6616
+ },
6617
+ "signature": "(method) FsContainer.destroy(): Promise<void>",
6618
+ "name": "destroy",
6619
+ "params": [],
6620
+ "returnType": {
6621
+ "__schema": "TypeRefSchema",
6622
+ "location": {
6623
+ "filePath": "capsule/container.ts",
6624
+ "line": 118,
6625
+ "character": 20
6626
+ },
6627
+ "name": "Promise",
6628
+ "typeArgs": [
7027
6629
  {
7028
6630
  "__schema": "KeywordTypeSchema",
7029
6631
  "location": {
7030
6632
  "filePath": "capsule/container.ts",
7031
- "line": 14,
7032
- "character": 69
6633
+ "line": 118,
6634
+ "character": 28
7033
6635
  },
7034
- "name": "undefined"
6636
+ "name": "void"
7035
6637
  }
7036
6638
  ]
7037
6639
  },
7038
- "isOptional": true
7039
- }
7040
- ],
7041
- "extendsNodes": [
6640
+ "modifiers": [
6641
+ "async"
6642
+ ]
6643
+ },
7042
6644
  {
7043
- "__schema": "ExpressionWithTypeArgumentsSchema",
6645
+ "__schema": "FunctionLikeSchema",
7044
6646
  "location": {
7045
6647
  "filePath": "capsule/container.ts",
7046
- "line": 12,
7047
- "character": 40
6648
+ "line": 121,
6649
+ "character": 3
7048
6650
  },
7049
- "name": "extends ExecOptions",
7050
- "typeArgs": [],
7051
- "expression": {
6651
+ "signature": "(method) FsContainer.log(): Promise<Exec>",
6652
+ "name": "log",
6653
+ "params": [],
6654
+ "returnType": {
7052
6655
  "__schema": "TypeRefSchema",
7053
6656
  "location": {
7054
6657
  "filePath": "capsule/container.ts",
7055
- "line": 12,
7056
- "character": 40
6658
+ "line": 121,
6659
+ "character": 10
7057
6660
  },
7058
- "name": "ExecOptions",
7059
- "componentId": {
7060
- "_legacy": {
7061
- "scope": "teambit.component",
7062
- "name": "isolator",
7063
- "version": "1.0.396"
7064
- },
7065
- "_scope": "teambit.component"
7066
- }
7067
- }
7068
- }
7069
- ]
7070
- },
7071
- {
7072
- "__schema": "InterfaceSchema",
7073
- "location": {
7074
- "filePath": "capsule/container.ts",
7075
- "line": 16,
7076
- "character": 1
7077
- },
7078
- "signature": "interface BitContainerConfig",
7079
- "name": "BitContainerConfig",
7080
- "members": [
6661
+ "name": "Promise",
6662
+ "typeArgs": [
6663
+ {
6664
+ "__schema": "TypeRefSchema",
6665
+ "location": {
6666
+ "filePath": "capsule/container.ts",
6667
+ "line": 121,
6668
+ "character": 18
6669
+ },
6670
+ "name": "Exec"
6671
+ }
6672
+ ]
6673
+ },
6674
+ "modifiers": []
6675
+ },
7081
6676
  {
7082
- "__schema": "VariableLikeSchema",
6677
+ "__schema": "FunctionLikeSchema",
7083
6678
  "location": {
7084
6679
  "filePath": "capsule/container.ts",
7085
- "line": 17,
6680
+ "line": 124,
7086
6681
  "character": 3
7087
6682
  },
7088
- "signature": "(property) BitContainerConfig.other?: string | undefined",
7089
- "name": "other",
7090
- "type": {
6683
+ "signature": "(method) FsContainer.on(event: string, fn: (data: any) => void): void",
6684
+ "name": "on",
6685
+ "params": [
6686
+ {
6687
+ "__schema": "ParameterSchema",
6688
+ "location": {
6689
+ "filePath": "capsule/container.ts",
6690
+ "line": 124,
6691
+ "character": 6
6692
+ },
6693
+ "name": "event",
6694
+ "type": {
6695
+ "__schema": "KeywordTypeSchema",
6696
+ "location": {
6697
+ "filePath": "capsule/container.ts",
6698
+ "line": 124,
6699
+ "character": 13
6700
+ },
6701
+ "name": "string"
6702
+ },
6703
+ "isOptional": false,
6704
+ "isSpread": false
6705
+ },
6706
+ {
6707
+ "__schema": "ParameterSchema",
6708
+ "location": {
6709
+ "filePath": "capsule/container.ts",
6710
+ "line": 124,
6711
+ "character": 21
6712
+ },
6713
+ "name": "fn",
6714
+ "type": {
6715
+ "__schema": "FunctionLikeSchema",
6716
+ "location": {
6717
+ "filePath": "capsule/container.ts",
6718
+ "line": 124,
6719
+ "character": 25
6720
+ },
6721
+ "signature": "(data: any): void",
6722
+ "name": "",
6723
+ "params": [
6724
+ {
6725
+ "__schema": "ParameterSchema",
6726
+ "location": {
6727
+ "filePath": "capsule/container.ts",
6728
+ "line": 124,
6729
+ "character": 26
6730
+ },
6731
+ "name": "data",
6732
+ "type": {
6733
+ "__schema": "KeywordTypeSchema",
6734
+ "location": {
6735
+ "filePath": "capsule/container.ts",
6736
+ "line": 124,
6737
+ "character": 32
6738
+ },
6739
+ "name": "any"
6740
+ },
6741
+ "isOptional": false,
6742
+ "isSpread": false
6743
+ }
6744
+ ],
6745
+ "returnType": {
6746
+ "__schema": "KeywordTypeSchema",
6747
+ "location": {
6748
+ "filePath": "capsule/container.ts",
6749
+ "line": 124,
6750
+ "character": 40
6751
+ },
6752
+ "name": "void"
6753
+ },
6754
+ "modifiers": []
6755
+ },
6756
+ "isOptional": false,
6757
+ "isSpread": false
6758
+ }
6759
+ ],
6760
+ "returnType": {
7091
6761
  "__schema": "KeywordTypeSchema",
7092
6762
  "location": {
7093
6763
  "filePath": "capsule/container.ts",
7094
- "line": 17,
7095
- "character": 11
6764
+ "line": 124,
6765
+ "character": 47
7096
6766
  },
7097
- "name": "string"
6767
+ "name": "void"
7098
6768
  },
7099
- "isOptional": true
6769
+ "modifiers": []
7100
6770
  }
7101
6771
  ],
7102
- "extendsNodes": [
6772
+ "extendsNodes": [],
6773
+ "implementNodes": [
7103
6774
  {
7104
6775
  "__schema": "ExpressionWithTypeArgumentsSchema",
7105
6776
  "location": {
7106
6777
  "filePath": "capsule/container.ts",
7107
- "line": 16,
6778
+ "line": 20,
7108
6779
  "character": 45
7109
6780
  },
7110
- "name": "extends ContainerFactoryOptions",
7111
- "typeArgs": [],
6781
+ "name": "implements Container<Exec, AnyFS>",
6782
+ "typeArgs": [
6783
+ {
6784
+ "__schema": "TypeRefSchema",
6785
+ "location": {
6786
+ "filePath": "capsule/container.ts",
6787
+ "line": 20,
6788
+ "character": 55
6789
+ },
6790
+ "name": "Exec"
6791
+ },
6792
+ {
6793
+ "__schema": "TypeRefSchema",
6794
+ "location": {
6795
+ "filePath": "capsule/container.ts",
6796
+ "line": 20,
6797
+ "character": 61
6798
+ },
6799
+ "name": "AnyFS"
6800
+ }
6801
+ ],
7112
6802
  "expression": {
7113
6803
  "__schema": "TypeRefSchema",
7114
6804
  "location": {
7115
6805
  "filePath": "capsule/container.ts",
7116
- "line": 16,
6806
+ "line": 20,
7117
6807
  "character": 45
7118
6808
  },
7119
- "name": "ContainerFactoryOptions",
6809
+ "name": "Container<T",
7120
6810
  "componentId": {
7121
6811
  "_legacy": {
7122
6812
  "scope": "teambit.component",
7123
6813
  "name": "isolator",
7124
- "version": "1.0.396"
6814
+ "version": "1.0.397"
7125
6815
  },
7126
6816
  "_scope": "teambit.component"
7127
6817
  }
7128
6818
  }
7129
6819
  }
7130
6820
  ]
7131
- },
6821
+ }
6822
+ ],
6823
+ "internals": [
7132
6824
  {
7133
- "__schema": "ClassSchema",
6825
+ "__schema": "ModuleSchema",
7134
6826
  "location": {
7135
6827
  "filePath": "capsule/container.ts",
7136
- "line": 20,
6828
+ "line": 10,
7137
6829
  "character": 1
7138
6830
  },
7139
- "signature": "class FsContainer",
7140
- "name": "FsContainer",
7141
- "members": [
6831
+ "exports": [
7142
6832
  {
7143
6833
  "__schema": "VariableLikeSchema",
7144
6834
  "location": {
7145
6835
  "filePath": "capsule/container.ts",
7146
- "line": 21,
7147
- "character": 3
6836
+ "line": 10,
6837
+ "character": 7
7148
6838
  },
7149
- "signature": "(property) FsContainer.id: string",
7150
- "name": "id",
6839
+ "signature": "const debug: any",
6840
+ "name": "debug",
7151
6841
  "type": {
7152
6842
  "__schema": "InferenceTypeSchema",
7153
6843
  "location": {
7154
6844
  "filePath": "capsule/container.ts",
7155
- "line": 21,
7156
- "character": 3
6845
+ "line": 10,
6846
+ "character": 7
7157
6847
  },
7158
- "type": "string"
6848
+ "type": "any"
7159
6849
  },
7160
- "isOptional": true,
7161
- "defaultValue": "'FS Container'"
7162
- },
6850
+ "isOptional": false,
6851
+ "defaultValue": "require('debug')('fs-container')"
6852
+ }
6853
+ ],
6854
+ "internals": []
6855
+ }
6856
+ ]
6857
+ },
6858
+ {
6859
+ "__schema": "ModuleSchema",
6860
+ "location": {
6861
+ "filePath": "capsule/capsule.ts",
6862
+ "line": 1,
6863
+ "character": 1
6864
+ },
6865
+ "exports": [
6866
+ {
6867
+ "__schema": "ClassSchema",
6868
+ "location": {
6869
+ "filePath": "capsule/capsule.ts",
6870
+ "line": 13,
6871
+ "character": 1
6872
+ },
6873
+ "signature": "class Capsule",
6874
+ "name": "Capsule",
6875
+ "members": [
7163
6876
  {
7164
- "__schema": "VariableLikeSchema",
6877
+ "__schema": "ConstructorSchema",
7165
6878
  "location": {
7166
- "filePath": "capsule/container.ts",
7167
- "line": 23,
6879
+ "filePath": "capsule/capsule.ts",
6880
+ "line": 15,
7168
6881
  "character": 3
7169
6882
  },
7170
- "signature": "(property) FsContainer.fs: NodeFS",
7171
- "name": "fs",
7172
- "type": {
7173
- "__schema": "TypeRefSchema",
7174
- "location": {
7175
- "filePath": "capsule/container.ts",
7176
- "line": 23,
7177
- "character": 3
6883
+ "signature": "constructor Capsule(container: FsContainer, fs: NodeFS, console: Console, state: State, component: Component): Capsule",
6884
+ "name": "constructor",
6885
+ "params": [
6886
+ {
6887
+ "__schema": "ParameterSchema",
6888
+ "location": {
6889
+ "filePath": "capsule/capsule.ts",
6890
+ "line": 19,
6891
+ "character": 5
6892
+ },
6893
+ "name": "container",
6894
+ "type": {
6895
+ "__schema": "TypeRefSchema",
6896
+ "location": {
6897
+ "filePath": "capsule/capsule.ts",
6898
+ "line": 19,
6899
+ "character": 26
6900
+ },
6901
+ "name": "FsContainer"
6902
+ },
6903
+ "isOptional": false,
6904
+ "isSpread": false
6905
+ },
6906
+ {
6907
+ "__schema": "ParameterSchema",
6908
+ "location": {
6909
+ "filePath": "capsule/capsule.ts",
6910
+ "line": 23,
6911
+ "character": 5
6912
+ },
6913
+ "name": "fs",
6914
+ "type": {
6915
+ "__schema": "TypeRefSchema",
6916
+ "location": {
6917
+ "filePath": "capsule/capsule.ts",
6918
+ "line": 23,
6919
+ "character": 18
6920
+ },
6921
+ "name": "NodeFS"
6922
+ },
6923
+ "isOptional": false,
6924
+ "isSpread": false
6925
+ },
6926
+ {
6927
+ "__schema": "ParameterSchema",
6928
+ "location": {
6929
+ "filePath": "capsule/capsule.ts",
6930
+ "line": 27,
6931
+ "character": 5
6932
+ },
6933
+ "name": "console",
6934
+ "type": {
6935
+ "__schema": "TypeRefSchema",
6936
+ "location": {
6937
+ "filePath": "capsule/capsule.ts",
6938
+ "line": 27,
6939
+ "character": 23
6940
+ },
6941
+ "name": "Console"
6942
+ },
6943
+ "isOptional": true,
6944
+ "defaultValue": "new Console()",
6945
+ "isSpread": false
7178
6946
  },
7179
- "name": "NodeFS",
7180
- "packageName": "@teambit/any-fs"
7181
- },
7182
- "isOptional": true,
7183
- "defaultValue": "new NodeFS(this.wrkDir)"
7184
- },
7185
- {
7186
- "__schema": "ConstructorSchema",
7187
- "location": {
7188
- "filePath": "capsule/container.ts",
7189
- "line": 25,
7190
- "character": 3
7191
- },
7192
- "signature": "constructor FsContainer(wrkDir: string): FsContainer",
7193
- "name": "constructor",
7194
- "params": [
7195
6947
  {
7196
6948
  "__schema": "ParameterSchema",
7197
6949
  "location": {
7198
- "filePath": "capsule/container.ts",
7199
- "line": 25,
7200
- "character": 15
6950
+ "filePath": "capsule/capsule.ts",
6951
+ "line": 31,
6952
+ "character": 5
7201
6953
  },
7202
- "name": "wrkDir",
6954
+ "name": "state",
7203
6955
  "type": {
7204
- "__schema": "KeywordTypeSchema",
6956
+ "__schema": "TypeRefSchema",
7205
6957
  "location": {
7206
- "filePath": "capsule/container.ts",
7207
- "line": 25,
7208
- "character": 32
6958
+ "filePath": "capsule/capsule.ts",
6959
+ "line": 31,
6960
+ "character": 21
7209
6961
  },
7210
- "name": "string"
6962
+ "name": "State"
6963
+ },
6964
+ "isOptional": false,
6965
+ "isSpread": false
6966
+ },
6967
+ {
6968
+ "__schema": "ParameterSchema",
6969
+ "location": {
6970
+ "filePath": "capsule/capsule.ts",
6971
+ "line": 32,
6972
+ "character": 5
6973
+ },
6974
+ "name": "component",
6975
+ "type": {
6976
+ "__schema": "TypeRefSchema",
6977
+ "location": {
6978
+ "filePath": "capsule/capsule.ts",
6979
+ "line": 32,
6980
+ "character": 25
6981
+ },
6982
+ "name": "Component"
7211
6983
  },
7212
6984
  "isOptional": false,
7213
6985
  "isSpread": false
@@ -7216,63 +6988,110 @@
7216
6988
  "returnType": {
7217
6989
  "__schema": "ThisTypeSchema",
7218
6990
  "location": {
7219
- "filePath": "capsule/container.ts",
7220
- "line": 20,
6991
+ "filePath": "capsule/capsule.ts",
6992
+ "line": 13,
7221
6993
  "character": 1
7222
6994
  },
7223
- "name": "FsContainer"
6995
+ "name": "Capsule"
7224
6996
  },
7225
6997
  "modifiers": []
7226
6998
  },
6999
+ {
7000
+ "__schema": "GetAccessorSchema",
7001
+ "location": {
7002
+ "filePath": "capsule/capsule.ts",
7003
+ "line": 41,
7004
+ "character": 3
7005
+ },
7006
+ "signature": "(getter) Capsule.wrkDir: string",
7007
+ "name": "wrkDir",
7008
+ "type": {
7009
+ "__schema": "KeywordTypeSchema",
7010
+ "location": {
7011
+ "filePath": "capsule/capsule.ts",
7012
+ "line": 41,
7013
+ "character": 17
7014
+ },
7015
+ "name": "string"
7016
+ }
7017
+ },
7018
+ {
7019
+ "__schema": "GetAccessorSchema",
7020
+ "location": {
7021
+ "filePath": "capsule/capsule.ts",
7022
+ "line": 45,
7023
+ "character": 3
7024
+ },
7025
+ "signature": "(getter) Capsule.path: string",
7026
+ "name": "path",
7027
+ "type": {
7028
+ "__schema": "KeywordTypeSchema",
7029
+ "location": {
7030
+ "filePath": "capsule/capsule.ts",
7031
+ "line": 45,
7032
+ "character": 15
7033
+ },
7034
+ "name": "string"
7035
+ }
7036
+ },
7227
7037
  {
7228
7038
  "__schema": "FunctionLikeSchema",
7229
7039
  "location": {
7230
- "filePath": "capsule/container.ts",
7231
- "line": 28,
7040
+ "filePath": "capsule/capsule.ts",
7041
+ "line": 49,
7232
7042
  "character": 3
7233
7043
  },
7234
- "signature": "(method) FsContainer.getPath(): string",
7235
- "name": "getPath",
7044
+ "signature": "(method) Capsule.start(): Promise<any>",
7045
+ "name": "start",
7236
7046
  "params": [],
7237
7047
  "returnType": {
7238
- "__schema": "InferenceTypeSchema",
7048
+ "__schema": "TypeRefSchema",
7239
7049
  "location": {
7240
- "filePath": "capsule/container.ts",
7241
- "line": 28,
7242
- "character": 3
7050
+ "filePath": "capsule/capsule.ts",
7051
+ "line": 49,
7052
+ "character": 12
7243
7053
  },
7244
- "type": "string"
7054
+ "name": "Promise",
7055
+ "typeArgs": [
7056
+ {
7057
+ "__schema": "KeywordTypeSchema",
7058
+ "location": {
7059
+ "filePath": "capsule/capsule.ts",
7060
+ "line": 49,
7061
+ "character": 20
7062
+ },
7063
+ "name": "any"
7064
+ }
7065
+ ]
7245
7066
  },
7246
- "modifiers": [
7247
- "public"
7248
- ]
7067
+ "modifiers": []
7249
7068
  },
7250
7069
  {
7251
7070
  "__schema": "FunctionLikeSchema",
7252
7071
  "location": {
7253
- "filePath": "capsule/container.ts",
7254
- "line": 36,
7072
+ "filePath": "capsule/capsule.ts",
7073
+ "line": 53,
7255
7074
  "character": 3
7256
7075
  },
7257
- "signature": "(method) FsContainer.outputFile(file: any, data: any, options: any): Promise<void>",
7258
- "name": "outputFile",
7076
+ "signature": "(method) Capsule.execNode(executable: string, args: any, exec: ContainerExec): Promise<ContainerExec>",
7077
+ "name": "execNode",
7259
7078
  "params": [
7260
7079
  {
7261
7080
  "__schema": "ParameterSchema",
7262
7081
  "location": {
7263
- "filePath": "capsule/container.ts",
7264
- "line": 36,
7265
- "character": 14
7082
+ "filePath": "capsule/capsule.ts",
7083
+ "line": 53,
7084
+ "character": 18
7266
7085
  },
7267
- "name": "file",
7086
+ "name": "executable",
7268
7087
  "type": {
7269
- "__schema": "InferenceTypeSchema",
7088
+ "__schema": "KeywordTypeSchema",
7270
7089
  "location": {
7271
- "filePath": "capsule/container.ts",
7272
- "line": 36,
7273
- "character": 14
7090
+ "filePath": "capsule/capsule.ts",
7091
+ "line": 53,
7092
+ "character": 30
7274
7093
  },
7275
- "type": "any"
7094
+ "name": "string"
7276
7095
  },
7277
7096
  "isOptional": false,
7278
7097
  "isSpread": false
@@ -7280,19 +7099,19 @@
7280
7099
  {
7281
7100
  "__schema": "ParameterSchema",
7282
7101
  "location": {
7283
- "filePath": "capsule/container.ts",
7284
- "line": 36,
7285
- "character": 20
7102
+ "filePath": "capsule/capsule.ts",
7103
+ "line": 53,
7104
+ "character": 38
7286
7105
  },
7287
- "name": "data",
7106
+ "name": "args",
7288
7107
  "type": {
7289
- "__schema": "InferenceTypeSchema",
7108
+ "__schema": "KeywordTypeSchema",
7290
7109
  "location": {
7291
- "filePath": "capsule/container.ts",
7292
- "line": 36,
7293
- "character": 20
7110
+ "filePath": "capsule/capsule.ts",
7111
+ "line": 53,
7112
+ "character": 44
7294
7113
  },
7295
- "type": "any"
7114
+ "name": "any"
7296
7115
  },
7297
7116
  "isOptional": false,
7298
7117
  "isSpread": false
@@ -7300,19 +7119,19 @@
7300
7119
  {
7301
7120
  "__schema": "ParameterSchema",
7302
7121
  "location": {
7303
- "filePath": "capsule/container.ts",
7304
- "line": 36,
7305
- "character": 26
7122
+ "filePath": "capsule/capsule.ts",
7123
+ "line": 53,
7124
+ "character": 49
7306
7125
  },
7307
- "name": "options",
7126
+ "name": "exec",
7308
7127
  "type": {
7309
- "__schema": "InferenceTypeSchema",
7128
+ "__schema": "TypeRefSchema",
7310
7129
  "location": {
7311
- "filePath": "capsule/container.ts",
7312
- "line": 36,
7313
- "character": 26
7130
+ "filePath": "capsule/capsule.ts",
7131
+ "line": 53,
7132
+ "character": 55
7314
7133
  },
7315
- "type": "any"
7134
+ "name": "ContainerExec"
7316
7135
  },
7317
7136
  "isOptional": false,
7318
7137
  "isSpread": false
@@ -7321,93 +7140,42 @@
7321
7140
  "returnType": {
7322
7141
  "__schema": "InferenceTypeSchema",
7323
7142
  "location": {
7324
- "filePath": "capsule/container.ts",
7325
- "line": 36,
7143
+ "filePath": "capsule/capsule.ts",
7144
+ "line": 53,
7326
7145
  "character": 3
7327
7146
  },
7328
- "type": "Promise<void>"
7329
- },
7330
- "modifiers": []
7331
- },
7332
- {
7333
- "__schema": "FunctionLikeSchema",
7334
- "location": {
7335
- "filePath": "capsule/container.ts",
7336
- "line": 42,
7337
- "character": 3
7338
- },
7339
- "signature": "(method) FsContainer.removePath(dir: string): Promise<any>",
7340
- "name": "removePath",
7341
- "params": [
7342
- {
7343
- "__schema": "ParameterSchema",
7344
- "location": {
7345
- "filePath": "capsule/container.ts",
7346
- "line": 42,
7347
- "character": 14
7348
- },
7349
- "name": "dir",
7350
- "type": {
7351
- "__schema": "KeywordTypeSchema",
7352
- "location": {
7353
- "filePath": "capsule/container.ts",
7354
- "line": 42,
7355
- "character": 19
7356
- },
7357
- "name": "string"
7358
- },
7359
- "isOptional": false,
7360
- "isSpread": false
7361
- }
7362
- ],
7363
- "returnType": {
7364
- "__schema": "TypeRefSchema",
7365
- "location": {
7366
- "filePath": "capsule/container.ts",
7367
- "line": 42,
7368
- "character": 28
7369
- },
7370
- "name": "Promise",
7371
- "typeArgs": [
7372
- {
7373
- "__schema": "KeywordTypeSchema",
7374
- "location": {
7375
- "filePath": "capsule/container.ts",
7376
- "line": 42,
7377
- "character": 36
7378
- },
7379
- "name": "any"
7380
- }
7381
- ]
7147
+ "type": "Promise<ContainerExec>"
7382
7148
  },
7383
- "modifiers": []
7149
+ "modifiers": [
7150
+ "async"
7151
+ ]
7384
7152
  },
7385
7153
  {
7386
7154
  "__schema": "FunctionLikeSchema",
7387
7155
  "location": {
7388
- "filePath": "capsule/container.ts",
7389
- "line": 47,
7156
+ "filePath": "capsule/capsule.ts",
7157
+ "line": 63,
7390
7158
  "character": 3
7391
7159
  },
7392
- "signature": "(method) FsContainer.symlink(src: string, dest: string): Promise<any>",
7393
- "name": "symlink",
7160
+ "signature": "(method) Capsule.typedExec(opts: BitExecOption, exec?: ContainerExec): Promise<ContainerExec>",
7161
+ "name": "typedExec",
7394
7162
  "params": [
7395
7163
  {
7396
7164
  "__schema": "ParameterSchema",
7397
7165
  "location": {
7398
- "filePath": "capsule/container.ts",
7399
- "line": 47,
7400
- "character": 17
7166
+ "filePath": "capsule/capsule.ts",
7167
+ "line": 63,
7168
+ "character": 19
7401
7169
  },
7402
- "name": "src",
7170
+ "name": "opts",
7403
7171
  "type": {
7404
- "__schema": "KeywordTypeSchema",
7172
+ "__schema": "TypeRefSchema",
7405
7173
  "location": {
7406
- "filePath": "capsule/container.ts",
7407
- "line": 47,
7408
- "character": 22
7174
+ "filePath": "capsule/capsule.ts",
7175
+ "line": 63,
7176
+ "character": 25
7409
7177
  },
7410
- "name": "string"
7178
+ "name": "BitExecOption"
7411
7179
  },
7412
7180
  "isOptional": false,
7413
7181
  "isSpread": false
@@ -7415,43 +7183,33 @@
7415
7183
  {
7416
7184
  "__schema": "ParameterSchema",
7417
7185
  "location": {
7418
- "filePath": "capsule/container.ts",
7419
- "line": 47,
7420
- "character": 30
7186
+ "filePath": "capsule/capsule.ts",
7187
+ "line": 63,
7188
+ "character": 40
7421
7189
  },
7422
- "name": "dest",
7190
+ "name": "exec",
7423
7191
  "type": {
7424
- "__schema": "KeywordTypeSchema",
7192
+ "__schema": "InferenceTypeSchema",
7425
7193
  "location": {
7426
- "filePath": "capsule/container.ts",
7427
- "line": 47,
7428
- "character": 36
7194
+ "filePath": "capsule/capsule.ts",
7195
+ "line": 63,
7196
+ "character": 40
7429
7197
  },
7430
- "name": "string"
7198
+ "type": "ContainerExec"
7431
7199
  },
7432
- "isOptional": false,
7200
+ "isOptional": true,
7201
+ "defaultValue": "new ContainerExec()",
7433
7202
  "isSpread": false
7434
7203
  }
7435
7204
  ],
7436
7205
  "returnType": {
7437
- "__schema": "TypeRefSchema",
7206
+ "__schema": "InferenceTypeSchema",
7438
7207
  "location": {
7439
- "filePath": "capsule/container.ts",
7440
- "line": 47,
7441
- "character": 45
7208
+ "filePath": "capsule/capsule.ts",
7209
+ "line": 63,
7210
+ "character": 3
7442
7211
  },
7443
- "name": "Promise",
7444
- "typeArgs": [
7445
- {
7446
- "__schema": "KeywordTypeSchema",
7447
- "location": {
7448
- "filePath": "capsule/container.ts",
7449
- "line": 47,
7450
- "character": 53
7451
- },
7452
- "name": "any"
7453
- }
7454
- ]
7212
+ "type": "Promise<ContainerExec>"
7455
7213
  },
7456
7214
  "modifiers": [
7457
7215
  "async"
@@ -7460,29 +7218,29 @@
7460
7218
  {
7461
7219
  "__schema": "FunctionLikeSchema",
7462
7220
  "location": {
7463
- "filePath": "capsule/container.ts",
7464
- "line": 54,
7221
+ "filePath": "capsule/capsule.ts",
7222
+ "line": 67,
7465
7223
  "character": 3
7466
7224
  },
7467
- "signature": "(method) FsContainer.exec(execOptions: BitExecOption, exec?: ContainerExec): Promise<ContainerExec>",
7468
- "name": "exec",
7225
+ "signature": "(method) Capsule.outputFile(file: string, data: any, options?: any): Promise<any>",
7226
+ "name": "outputFile",
7469
7227
  "params": [
7470
7228
  {
7471
7229
  "__schema": "ParameterSchema",
7472
7230
  "location": {
7473
- "filePath": "capsule/container.ts",
7474
- "line": 54,
7231
+ "filePath": "capsule/capsule.ts",
7232
+ "line": 67,
7475
7233
  "character": 14
7476
7234
  },
7477
- "name": "execOptions",
7235
+ "name": "file",
7478
7236
  "type": {
7479
- "__schema": "TypeRefSchema",
7237
+ "__schema": "KeywordTypeSchema",
7480
7238
  "location": {
7481
- "filePath": "capsule/container.ts",
7482
- "line": 54,
7483
- "character": 27
7239
+ "filePath": "capsule/capsule.ts",
7240
+ "line": 67,
7241
+ "character": 20
7484
7242
  },
7485
- "name": "BitExecOption"
7243
+ "name": "string"
7486
7244
  },
7487
7245
  "isOptional": false,
7488
7246
  "isSpread": false
@@ -7490,75 +7248,92 @@
7490
7248
  {
7491
7249
  "__schema": "ParameterSchema",
7492
7250
  "location": {
7493
- "filePath": "capsule/container.ts",
7494
- "line": 54,
7495
- "character": 42
7251
+ "filePath": "capsule/capsule.ts",
7252
+ "line": 67,
7253
+ "character": 28
7496
7254
  },
7497
- "name": "exec",
7255
+ "name": "data",
7498
7256
  "type": {
7499
- "__schema": "InferenceTypeSchema",
7257
+ "__schema": "KeywordTypeSchema",
7500
7258
  "location": {
7501
- "filePath": "capsule/container.ts",
7502
- "line": 54,
7503
- "character": 42
7259
+ "filePath": "capsule/capsule.ts",
7260
+ "line": 67,
7261
+ "character": 34
7504
7262
  },
7505
- "type": "ContainerExec"
7263
+ "name": "any"
7264
+ },
7265
+ "isOptional": false,
7266
+ "isSpread": false
7267
+ },
7268
+ {
7269
+ "__schema": "ParameterSchema",
7270
+ "location": {
7271
+ "filePath": "capsule/capsule.ts",
7272
+ "line": 67,
7273
+ "character": 39
7274
+ },
7275
+ "name": "options",
7276
+ "type": {
7277
+ "__schema": "KeywordTypeSchema",
7278
+ "location": {
7279
+ "filePath": "capsule/capsule.ts",
7280
+ "line": 67,
7281
+ "character": 49
7282
+ },
7283
+ "name": "any"
7506
7284
  },
7507
7285
  "isOptional": true,
7508
- "defaultValue": "new ContainerExec()",
7509
7286
  "isSpread": false
7510
7287
  }
7511
7288
  ],
7512
7289
  "returnType": {
7513
7290
  "__schema": "TypeRefSchema",
7514
7291
  "location": {
7515
- "filePath": "capsule/container.ts",
7516
- "line": 54,
7517
- "character": 71
7292
+ "filePath": "capsule/capsule.ts",
7293
+ "line": 67,
7294
+ "character": 55
7518
7295
  },
7519
7296
  "name": "Promise",
7520
7297
  "typeArgs": [
7521
7298
  {
7522
- "__schema": "TypeRefSchema",
7299
+ "__schema": "KeywordTypeSchema",
7523
7300
  "location": {
7524
- "filePath": "capsule/container.ts",
7525
- "line": 54,
7526
- "character": 79
7301
+ "filePath": "capsule/capsule.ts",
7302
+ "line": 67,
7303
+ "character": 63
7527
7304
  },
7528
- "name": "ContainerExec"
7305
+ "name": "any"
7529
7306
  }
7530
7307
  ]
7531
7308
  },
7532
- "modifiers": [
7533
- "async"
7534
- ]
7309
+ "modifiers": []
7535
7310
  },
7536
7311
  {
7537
7312
  "__schema": "FunctionLikeSchema",
7538
7313
  "location": {
7539
- "filePath": "capsule/container.ts",
7540
- "line": 82,
7314
+ "filePath": "capsule/capsule.ts",
7315
+ "line": 71,
7541
7316
  "character": 3
7542
7317
  },
7543
- "signature": "(method) FsContainer.execP(execOptions: BitExecOption): Promise<string>",
7544
- "name": "execP",
7318
+ "signature": "(method) Capsule.removePath(dir: string): Promise<any>",
7319
+ "name": "removePath",
7545
7320
  "params": [
7546
7321
  {
7547
7322
  "__schema": "ParameterSchema",
7548
7323
  "location": {
7549
- "filePath": "capsule/container.ts",
7550
- "line": 82,
7551
- "character": 15
7324
+ "filePath": "capsule/capsule.ts",
7325
+ "line": 71,
7326
+ "character": 14
7552
7327
  },
7553
- "name": "execOptions",
7328
+ "name": "dir",
7554
7329
  "type": {
7555
- "__schema": "TypeRefSchema",
7330
+ "__schema": "KeywordTypeSchema",
7556
7331
  "location": {
7557
- "filePath": "capsule/container.ts",
7558
- "line": 82,
7559
- "character": 28
7332
+ "filePath": "capsule/capsule.ts",
7333
+ "line": 71,
7334
+ "character": 19
7560
7335
  },
7561
- "name": "BitExecOption"
7336
+ "name": "string"
7562
7337
  },
7563
7338
  "isOptional": false,
7564
7339
  "isSpread": false
@@ -7567,77 +7342,93 @@
7567
7342
  "returnType": {
7568
7343
  "__schema": "TypeRefSchema",
7569
7344
  "location": {
7570
- "filePath": "capsule/container.ts",
7571
- "line": 82,
7572
- "character": 44
7345
+ "filePath": "capsule/capsule.ts",
7346
+ "line": 71,
7347
+ "character": 28
7573
7348
  },
7574
7349
  "name": "Promise",
7575
7350
  "typeArgs": [
7576
7351
  {
7577
7352
  "__schema": "KeywordTypeSchema",
7578
7353
  "location": {
7579
- "filePath": "capsule/container.ts",
7580
- "line": 82,
7581
- "character": 52
7354
+ "filePath": "capsule/capsule.ts",
7355
+ "line": 71,
7356
+ "character": 36
7582
7357
  },
7583
- "name": "string"
7358
+ "name": "any"
7584
7359
  }
7585
7360
  ]
7586
7361
  },
7587
- "modifiers": [
7588
- "async"
7589
- ]
7362
+ "modifiers": []
7590
7363
  },
7591
7364
  {
7592
7365
  "__schema": "FunctionLikeSchema",
7593
7366
  "location": {
7594
- "filePath": "capsule/container.ts",
7595
- "line": 96,
7367
+ "filePath": "capsule/capsule.ts",
7368
+ "line": 75,
7596
7369
  "character": 3
7597
7370
  },
7598
- "signature": "(method) FsContainer.terminal(): Promise<execa.ExecaReturnValue<string>>",
7599
- "name": "terminal",
7600
- "params": [],
7601
- "returnType": {
7602
- "__schema": "InferenceTypeSchema",
7603
- "location": {
7604
- "filePath": "capsule/container.ts",
7605
- "line": 96,
7606
- "character": 3
7371
+ "signature": "(method) Capsule.symlink(src: string, dest: string): Promise<any>",
7372
+ "name": "symlink",
7373
+ "params": [
7374
+ {
7375
+ "__schema": "ParameterSchema",
7376
+ "location": {
7377
+ "filePath": "capsule/capsule.ts",
7378
+ "line": 75,
7379
+ "character": 11
7380
+ },
7381
+ "name": "src",
7382
+ "type": {
7383
+ "__schema": "KeywordTypeSchema",
7384
+ "location": {
7385
+ "filePath": "capsule/capsule.ts",
7386
+ "line": 75,
7387
+ "character": 16
7388
+ },
7389
+ "name": "string"
7390
+ },
7391
+ "isOptional": false,
7392
+ "isSpread": false
7607
7393
  },
7608
- "type": "Promise<execa.ExecaReturnValue<string>>"
7609
- },
7610
- "modifiers": [
7611
- "async"
7612
- ]
7613
- },
7614
- {
7615
- "__schema": "FunctionLikeSchema",
7616
- "location": {
7617
- "filePath": "capsule/container.ts",
7618
- "line": 101,
7619
- "character": 3
7620
- },
7621
- "signature": "(method) FsContainer.start(): Promise<void>",
7622
- "name": "start",
7623
- "params": [],
7394
+ {
7395
+ "__schema": "ParameterSchema",
7396
+ "location": {
7397
+ "filePath": "capsule/capsule.ts",
7398
+ "line": 75,
7399
+ "character": 24
7400
+ },
7401
+ "name": "dest",
7402
+ "type": {
7403
+ "__schema": "KeywordTypeSchema",
7404
+ "location": {
7405
+ "filePath": "capsule/capsule.ts",
7406
+ "line": 75,
7407
+ "character": 30
7408
+ },
7409
+ "name": "string"
7410
+ },
7411
+ "isOptional": false,
7412
+ "isSpread": false
7413
+ }
7414
+ ],
7624
7415
  "returnType": {
7625
7416
  "__schema": "TypeRefSchema",
7626
7417
  "location": {
7627
- "filePath": "capsule/container.ts",
7628
- "line": 101,
7629
- "character": 12
7418
+ "filePath": "capsule/capsule.ts",
7419
+ "line": 75,
7420
+ "character": 39
7630
7421
  },
7631
7422
  "name": "Promise",
7632
7423
  "typeArgs": [
7633
7424
  {
7634
7425
  "__schema": "KeywordTypeSchema",
7635
7426
  "location": {
7636
- "filePath": "capsule/container.ts",
7637
- "line": 101,
7638
- "character": 20
7427
+ "filePath": "capsule/capsule.ts",
7428
+ "line": 75,
7429
+ "character": 47
7639
7430
  },
7640
- "name": "void"
7431
+ "name": "any"
7641
7432
  }
7642
7433
  ]
7643
7434
  },
@@ -7646,32 +7437,110 @@
7646
7437
  {
7647
7438
  "__schema": "FunctionLikeSchema",
7648
7439
  "location": {
7649
- "filePath": "capsule/container.ts",
7650
- "line": 105,
7440
+ "filePath": "capsule/capsule.ts",
7441
+ "line": 80,
7651
7442
  "character": 3
7652
7443
  },
7653
- "signature": "(method) FsContainer.inspect(): Promise<ContainerStatus>",
7654
- "name": "inspect",
7655
- "params": [],
7656
- "returnType": {
7657
- "__schema": "TypeRefSchema",
7658
- "location": {
7659
- "filePath": "capsule/container.ts",
7660
- "line": 105,
7661
- "character": 20
7444
+ "signature": "(method) Capsule.execute(cmd: string, options?: Record<string, any> | null | undefined): Promise<unknown>",
7445
+ "name": "execute",
7446
+ "params": [
7447
+ {
7448
+ "__schema": "ParameterSchema",
7449
+ "location": {
7450
+ "filePath": "capsule/capsule.ts",
7451
+ "line": 80,
7452
+ "character": 17
7453
+ },
7454
+ "name": "cmd",
7455
+ "type": {
7456
+ "__schema": "KeywordTypeSchema",
7457
+ "location": {
7458
+ "filePath": "capsule/capsule.ts",
7459
+ "line": 80,
7460
+ "character": 22
7461
+ },
7462
+ "name": "string"
7463
+ },
7464
+ "isOptional": false,
7465
+ "isSpread": false
7662
7466
  },
7663
- "name": "Promise",
7664
- "typeArgs": [
7665
- {
7666
- "__schema": "TypeRefSchema",
7467
+ {
7468
+ "__schema": "ParameterSchema",
7469
+ "location": {
7470
+ "filePath": "capsule/capsule.ts",
7471
+ "line": 80,
7472
+ "character": 30
7473
+ },
7474
+ "name": "options",
7475
+ "type": {
7476
+ "__schema": "TypeUnionSchema",
7667
7477
  "location": {
7668
- "filePath": "capsule/container.ts",
7669
- "line": 105,
7670
- "character": 28
7478
+ "filePath": "capsule/capsule.ts",
7479
+ "line": 80,
7480
+ "character": 40
7671
7481
  },
7672
- "name": "ContainerStatus"
7673
- }
7674
- ]
7482
+ "types": [
7483
+ {
7484
+ "__schema": "TypeRefSchema",
7485
+ "location": {
7486
+ "filePath": "capsule/capsule.ts",
7487
+ "line": 80,
7488
+ "character": 40
7489
+ },
7490
+ "name": "Record",
7491
+ "typeArgs": [
7492
+ {
7493
+ "__schema": "KeywordTypeSchema",
7494
+ "location": {
7495
+ "filePath": "capsule/capsule.ts",
7496
+ "line": 80,
7497
+ "character": 47
7498
+ },
7499
+ "name": "string"
7500
+ },
7501
+ {
7502
+ "__schema": "KeywordTypeSchema",
7503
+ "location": {
7504
+ "filePath": "capsule/capsule.ts",
7505
+ "line": 80,
7506
+ "character": 55
7507
+ },
7508
+ "name": "any"
7509
+ }
7510
+ ]
7511
+ },
7512
+ {
7513
+ "__schema": "LiteralTypeSchema",
7514
+ "location": {
7515
+ "filePath": "capsule/capsule.ts",
7516
+ "line": 80,
7517
+ "character": 62
7518
+ },
7519
+ "name": "null"
7520
+ },
7521
+ {
7522
+ "__schema": "KeywordTypeSchema",
7523
+ "location": {
7524
+ "filePath": "capsule/capsule.ts",
7525
+ "line": 80,
7526
+ "character": 69
7527
+ },
7528
+ "name": "undefined"
7529
+ }
7530
+ ]
7531
+ },
7532
+ "isOptional": true,
7533
+ "isSpread": false
7534
+ }
7535
+ ],
7536
+ "returnType": {
7537
+ "__schema": "InferenceTypeSchema",
7538
+ "location": {
7539
+ "filePath": "capsule/capsule.ts",
7540
+ "line": 80,
7541
+ "character": 3
7542
+ },
7543
+ "type": "Promise<unknown>"
7675
7544
  },
7676
7545
  "modifiers": [
7677
7546
  "async"
@@ -7680,233 +7549,394 @@
7680
7549
  {
7681
7550
  "__schema": "FunctionLikeSchema",
7682
7551
  "location": {
7683
- "filePath": "capsule/container.ts",
7684
- "line": 108,
7552
+ "filePath": "capsule/capsule.ts",
7553
+ "line": 112,
7685
7554
  "character": 3
7686
7555
  },
7687
- "signature": "(method) FsContainer.pause(): Promise<void>",
7688
- "name": "pause",
7689
- "params": [],
7690
- "returnType": {
7691
- "__schema": "TypeRefSchema",
7556
+ "doc": {
7557
+ "__schema": "DocSchema",
7692
7558
  "location": {
7693
- "filePath": "capsule/container.ts",
7694
- "line": 108,
7695
- "character": 18
7559
+ "filePath": "capsule/capsule.ts",
7560
+ "line": 105,
7561
+ "character": 3
7696
7562
  },
7697
- "name": "Promise",
7698
- "typeArgs": [
7563
+ "raw": "/**\n * @todo: fix.\n * it skips the capsule fs because for some reason `capsule.fs.promises.readdir` doesn't work\n * the same as `capsule.fs.readdir` and it doesn't have the capsule dir as pwd.\n *\n * returns the paths inside the capsule\n */",
7564
+ "comment": "",
7565
+ "tags": [
7699
7566
  {
7700
- "__schema": "KeywordTypeSchema",
7567
+ "__schema": "TagSchema",
7701
7568
  "location": {
7702
- "filePath": "capsule/container.ts",
7703
- "line": 108,
7704
- "character": 26
7569
+ "filePath": "capsule/capsule.ts",
7570
+ "line": 106,
7571
+ "character": 6
7705
7572
  },
7706
- "name": "void"
7573
+ "tagName": "todo",
7574
+ "comment": ": fix.\nit skips the capsule fs because for some reason `capsule.fs.promises.readdir` doesn't work\nthe same as `capsule.fs.readdir` and it doesn't have the capsule dir as pwd.\n\nreturns the paths inside the capsule"
7707
7575
  }
7708
7576
  ]
7709
7577
  },
7710
- "modifiers": [
7711
- "async"
7712
- ]
7713
- },
7714
- {
7715
- "__schema": "FunctionLikeSchema",
7716
- "location": {
7717
- "filePath": "capsule/container.ts",
7718
- "line": 111,
7719
- "character": 3
7720
- },
7721
- "signature": "(method) FsContainer.resume(): Promise<void>",
7722
- "name": "resume",
7723
- "params": [],
7578
+ "signature": "(method) Capsule.getAllFilesPaths(dir?: string, options?: {\n ignore?: string[];\n}): any",
7579
+ "name": "getAllFilesPaths",
7580
+ "params": [
7581
+ {
7582
+ "__schema": "ParameterSchema",
7583
+ "location": {
7584
+ "filePath": "capsule/capsule.ts",
7585
+ "line": 112,
7586
+ "character": 20
7587
+ },
7588
+ "name": "dir",
7589
+ "type": {
7590
+ "__schema": "InferenceTypeSchema",
7591
+ "location": {
7592
+ "filePath": "capsule/capsule.ts",
7593
+ "line": 112,
7594
+ "character": 20
7595
+ },
7596
+ "type": "string"
7597
+ },
7598
+ "isOptional": true,
7599
+ "defaultValue": "'.'",
7600
+ "isSpread": false
7601
+ },
7602
+ {
7603
+ "__schema": "ParameterSchema",
7604
+ "location": {
7605
+ "filePath": "capsule/capsule.ts",
7606
+ "line": 112,
7607
+ "character": 31
7608
+ },
7609
+ "name": "options",
7610
+ "type": {
7611
+ "__schema": "TypeLiteralSchema",
7612
+ "location": {
7613
+ "filePath": "capsule/capsule.ts",
7614
+ "line": 112,
7615
+ "character": 40
7616
+ },
7617
+ "members": [
7618
+ {
7619
+ "__schema": "VariableLikeSchema",
7620
+ "location": {
7621
+ "filePath": "capsule/capsule.ts",
7622
+ "line": 112,
7623
+ "character": 42
7624
+ },
7625
+ "signature": "(property) ignore?: string[] | undefined",
7626
+ "name": "ignore",
7627
+ "type": {
7628
+ "__schema": "TypeArraySchema",
7629
+ "location": {
7630
+ "filePath": "capsule/capsule.ts",
7631
+ "line": 112,
7632
+ "character": 51
7633
+ },
7634
+ "type": {
7635
+ "__schema": "KeywordTypeSchema",
7636
+ "location": {
7637
+ "filePath": "capsule/capsule.ts",
7638
+ "line": 112,
7639
+ "character": 51
7640
+ },
7641
+ "name": "string"
7642
+ }
7643
+ },
7644
+ "isOptional": true
7645
+ }
7646
+ ]
7647
+ },
7648
+ "isOptional": true,
7649
+ "defaultValue": "{}",
7650
+ "isSpread": false
7651
+ }
7652
+ ],
7724
7653
  "returnType": {
7725
- "__schema": "TypeRefSchema",
7654
+ "__schema": "InferenceTypeSchema",
7726
7655
  "location": {
7727
- "filePath": "capsule/container.ts",
7728
- "line": 111,
7729
- "character": 19
7656
+ "filePath": "capsule/capsule.ts",
7657
+ "line": 112,
7658
+ "character": 3
7730
7659
  },
7731
- "name": "Promise",
7732
- "typeArgs": [
7733
- {
7734
- "__schema": "KeywordTypeSchema",
7735
- "location": {
7736
- "filePath": "capsule/container.ts",
7737
- "line": 111,
7738
- "character": 27
7739
- },
7740
- "name": "void"
7741
- }
7742
- ]
7660
+ "type": "any"
7743
7661
  },
7744
- "modifiers": [
7745
- "async"
7746
- ]
7662
+ "modifiers": []
7747
7663
  },
7748
7664
  {
7749
7665
  "__schema": "FunctionLikeSchema",
7750
7666
  "location": {
7751
- "filePath": "capsule/container.ts",
7752
- "line": 115,
7667
+ "filePath": "capsule/capsule.ts",
7668
+ "line": 117,
7753
7669
  "character": 3
7754
7670
  },
7755
- "signature": "(method) FsContainer.stop(ttl?: number | undefined): Promise<void>",
7756
- "name": "stop",
7671
+ "signature": "(method) Capsule.getCapsuleDirName(component: Component, config?: {\n alwaysNew?: boolean;\n name?: string;\n}): string",
7672
+ "name": "getCapsuleDirName",
7757
7673
  "params": [
7758
7674
  {
7759
7675
  "__schema": "ParameterSchema",
7760
7676
  "location": {
7761
- "filePath": "capsule/container.ts",
7762
- "line": 115,
7763
- "character": 8
7677
+ "filePath": "capsule/capsule.ts",
7678
+ "line": 117,
7679
+ "character": 28
7764
7680
  },
7765
- "name": "ttl",
7681
+ "name": "component",
7766
7682
  "type": {
7767
- "__schema": "TypeUnionSchema",
7683
+ "__schema": "TypeRefSchema",
7768
7684
  "location": {
7769
- "filePath": "capsule/container.ts",
7770
- "line": 115,
7771
- "character": 14
7685
+ "filePath": "capsule/capsule.ts",
7686
+ "line": 117,
7687
+ "character": 39
7772
7688
  },
7773
- "types": [
7689
+ "name": "Component"
7690
+ },
7691
+ "isOptional": false,
7692
+ "isSpread": false
7693
+ },
7694
+ {
7695
+ "__schema": "ParameterSchema",
7696
+ "location": {
7697
+ "filePath": "capsule/capsule.ts",
7698
+ "line": 117,
7699
+ "character": 50
7700
+ },
7701
+ "name": "config",
7702
+ "type": {
7703
+ "__schema": "TypeLiteralSchema",
7704
+ "location": {
7705
+ "filePath": "capsule/capsule.ts",
7706
+ "line": 117,
7707
+ "character": 58
7708
+ },
7709
+ "members": [
7774
7710
  {
7775
- "__schema": "KeywordTypeSchema",
7711
+ "__schema": "VariableLikeSchema",
7776
7712
  "location": {
7777
- "filePath": "capsule/container.ts",
7778
- "line": 115,
7779
- "character": 14
7713
+ "filePath": "capsule/capsule.ts",
7714
+ "line": 117,
7715
+ "character": 60
7780
7716
  },
7781
- "name": "number"
7717
+ "signature": "(property) alwaysNew?: boolean | undefined",
7718
+ "name": "alwaysNew",
7719
+ "type": {
7720
+ "__schema": "KeywordTypeSchema",
7721
+ "location": {
7722
+ "filePath": "capsule/capsule.ts",
7723
+ "line": 117,
7724
+ "character": 72
7725
+ },
7726
+ "name": "boolean"
7727
+ },
7728
+ "isOptional": true
7782
7729
  },
7783
7730
  {
7784
- "__schema": "KeywordTypeSchema",
7731
+ "__schema": "VariableLikeSchema",
7785
7732
  "location": {
7786
- "filePath": "capsule/container.ts",
7787
- "line": 115,
7788
- "character": 23
7733
+ "filePath": "capsule/capsule.ts",
7734
+ "line": 117,
7735
+ "character": 81
7789
7736
  },
7790
- "name": "undefined"
7737
+ "signature": "(property) name?: string | undefined",
7738
+ "name": "name",
7739
+ "type": {
7740
+ "__schema": "KeywordTypeSchema",
7741
+ "location": {
7742
+ "filePath": "capsule/capsule.ts",
7743
+ "line": 117,
7744
+ "character": 88
7745
+ },
7746
+ "name": "string"
7747
+ },
7748
+ "isOptional": true
7791
7749
  }
7792
7750
  ]
7793
7751
  },
7794
7752
  "isOptional": true,
7753
+ "defaultValue": "{}",
7795
7754
  "isSpread": false
7796
7755
  }
7797
7756
  ],
7798
7757
  "returnType": {
7799
- "__schema": "TypeRefSchema",
7758
+ "__schema": "InferenceTypeSchema",
7800
7759
  "location": {
7801
- "filePath": "capsule/container.ts",
7802
- "line": 115,
7803
- "character": 35
7760
+ "filePath": "capsule/capsule.ts",
7761
+ "line": 117,
7762
+ "character": 3
7804
7763
  },
7805
- "name": "Promise",
7806
- "typeArgs": [
7807
- {
7808
- "__schema": "KeywordTypeSchema",
7809
- "location": {
7810
- "filePath": "capsule/container.ts",
7811
- "line": 115,
7812
- "character": 43
7813
- },
7814
- "name": "void"
7815
- }
7816
- ]
7764
+ "type": "string"
7817
7765
  },
7818
- "modifiers": []
7766
+ "modifiers": [
7767
+ "static"
7768
+ ]
7819
7769
  },
7820
7770
  {
7821
7771
  "__schema": "FunctionLikeSchema",
7822
7772
  "location": {
7823
- "filePath": "capsule/container.ts",
7824
- "line": 118,
7773
+ "filePath": "capsule/capsule.ts",
7774
+ "line": 121,
7825
7775
  "character": 3
7826
7776
  },
7827
- "signature": "(method) FsContainer.destroy(): Promise<void>",
7828
- "name": "destroy",
7829
- "params": [],
7777
+ "signature": "(method) Capsule.getCapsuleRootDir(component: Component, baseDir: string, config?: {\n alwaysNew?: boolean;\n name?: string;\n}): string",
7778
+ "name": "getCapsuleRootDir",
7779
+ "params": [
7780
+ {
7781
+ "__schema": "ParameterSchema",
7782
+ "location": {
7783
+ "filePath": "capsule/capsule.ts",
7784
+ "line": 121,
7785
+ "character": 28
7786
+ },
7787
+ "name": "component",
7788
+ "type": {
7789
+ "__schema": "TypeRefSchema",
7790
+ "location": {
7791
+ "filePath": "capsule/capsule.ts",
7792
+ "line": 121,
7793
+ "character": 39
7794
+ },
7795
+ "name": "Component"
7796
+ },
7797
+ "isOptional": false,
7798
+ "isSpread": false
7799
+ },
7800
+ {
7801
+ "__schema": "ParameterSchema",
7802
+ "location": {
7803
+ "filePath": "capsule/capsule.ts",
7804
+ "line": 121,
7805
+ "character": 50
7806
+ },
7807
+ "name": "baseDir",
7808
+ "type": {
7809
+ "__schema": "KeywordTypeSchema",
7810
+ "location": {
7811
+ "filePath": "capsule/capsule.ts",
7812
+ "line": 121,
7813
+ "character": 59
7814
+ },
7815
+ "name": "string"
7816
+ },
7817
+ "isOptional": false,
7818
+ "isSpread": false
7819
+ },
7820
+ {
7821
+ "__schema": "ParameterSchema",
7822
+ "location": {
7823
+ "filePath": "capsule/capsule.ts",
7824
+ "line": 121,
7825
+ "character": 67
7826
+ },
7827
+ "name": "config",
7828
+ "type": {
7829
+ "__schema": "TypeLiteralSchema",
7830
+ "location": {
7831
+ "filePath": "capsule/capsule.ts",
7832
+ "line": 121,
7833
+ "character": 75
7834
+ },
7835
+ "members": [
7836
+ {
7837
+ "__schema": "VariableLikeSchema",
7838
+ "location": {
7839
+ "filePath": "capsule/capsule.ts",
7840
+ "line": 121,
7841
+ "character": 77
7842
+ },
7843
+ "signature": "(property) alwaysNew?: boolean | undefined",
7844
+ "name": "alwaysNew",
7845
+ "type": {
7846
+ "__schema": "KeywordTypeSchema",
7847
+ "location": {
7848
+ "filePath": "capsule/capsule.ts",
7849
+ "line": 121,
7850
+ "character": 89
7851
+ },
7852
+ "name": "boolean"
7853
+ },
7854
+ "isOptional": true
7855
+ },
7856
+ {
7857
+ "__schema": "VariableLikeSchema",
7858
+ "location": {
7859
+ "filePath": "capsule/capsule.ts",
7860
+ "line": 121,
7861
+ "character": 98
7862
+ },
7863
+ "signature": "(property) name?: string | undefined",
7864
+ "name": "name",
7865
+ "type": {
7866
+ "__schema": "KeywordTypeSchema",
7867
+ "location": {
7868
+ "filePath": "capsule/capsule.ts",
7869
+ "line": 121,
7870
+ "character": 105
7871
+ },
7872
+ "name": "string"
7873
+ },
7874
+ "isOptional": true
7875
+ }
7876
+ ]
7877
+ },
7878
+ "isOptional": true,
7879
+ "defaultValue": "{}",
7880
+ "isSpread": false
7881
+ }
7882
+ ],
7830
7883
  "returnType": {
7831
- "__schema": "TypeRefSchema",
7884
+ "__schema": "InferenceTypeSchema",
7832
7885
  "location": {
7833
- "filePath": "capsule/container.ts",
7834
- "line": 118,
7835
- "character": 20
7886
+ "filePath": "capsule/capsule.ts",
7887
+ "line": 121,
7888
+ "character": 3
7836
7889
  },
7837
- "name": "Promise",
7838
- "typeArgs": [
7839
- {
7840
- "__schema": "KeywordTypeSchema",
7841
- "location": {
7842
- "filePath": "capsule/container.ts",
7843
- "line": 118,
7844
- "character": 28
7845
- },
7846
- "name": "void"
7847
- }
7848
- ]
7890
+ "type": "string"
7849
7891
  },
7850
7892
  "modifiers": [
7851
- "async"
7893
+ "static"
7852
7894
  ]
7853
7895
  },
7854
7896
  {
7855
7897
  "__schema": "FunctionLikeSchema",
7856
7898
  "location": {
7857
- "filePath": "capsule/container.ts",
7858
- "line": 121,
7899
+ "filePath": "capsule/capsule.ts",
7900
+ "line": 125,
7859
7901
  "character": 3
7860
7902
  },
7861
- "signature": "(method) FsContainer.log(): Promise<Exec>",
7862
- "name": "log",
7863
- "params": [],
7864
- "returnType": {
7865
- "__schema": "TypeRefSchema",
7866
- "location": {
7867
- "filePath": "capsule/container.ts",
7868
- "line": 121,
7869
- "character": 10
7870
- },
7871
- "name": "Promise",
7872
- "typeArgs": [
7873
- {
7903
+ "signature": "(method) Capsule.createFromComponent(component: Component, baseDir: string, config?: {\n alwaysNew?: boolean;\n}): Promise<Capsule>",
7904
+ "name": "createFromComponent",
7905
+ "params": [
7906
+ {
7907
+ "__schema": "ParameterSchema",
7908
+ "location": {
7909
+ "filePath": "capsule/capsule.ts",
7910
+ "line": 126,
7911
+ "character": 5
7912
+ },
7913
+ "name": "component",
7914
+ "type": {
7874
7915
  "__schema": "TypeRefSchema",
7875
7916
  "location": {
7876
- "filePath": "capsule/container.ts",
7877
- "line": 121,
7878
- "character": 18
7917
+ "filePath": "capsule/capsule.ts",
7918
+ "line": 126,
7919
+ "character": 16
7879
7920
  },
7880
- "name": "Exec"
7881
- }
7882
- ]
7883
- },
7884
- "modifiers": []
7885
- },
7886
- {
7887
- "__schema": "FunctionLikeSchema",
7888
- "location": {
7889
- "filePath": "capsule/container.ts",
7890
- "line": 124,
7891
- "character": 3
7892
- },
7893
- "signature": "(method) FsContainer.on(event: string, fn: (data: any) => void): void",
7894
- "name": "on",
7895
- "params": [
7921
+ "name": "Component"
7922
+ },
7923
+ "isOptional": false,
7924
+ "isSpread": false
7925
+ },
7896
7926
  {
7897
7927
  "__schema": "ParameterSchema",
7898
7928
  "location": {
7899
- "filePath": "capsule/container.ts",
7900
- "line": 124,
7901
- "character": 6
7929
+ "filePath": "capsule/capsule.ts",
7930
+ "line": 127,
7931
+ "character": 5
7902
7932
  },
7903
- "name": "event",
7933
+ "name": "baseDir",
7904
7934
  "type": {
7905
7935
  "__schema": "KeywordTypeSchema",
7906
7936
  "location": {
7907
- "filePath": "capsule/container.ts",
7908
- "line": 124,
7909
- "character": 13
7937
+ "filePath": "capsule/capsule.ts",
7938
+ "line": 127,
7939
+ "character": 14
7910
7940
  },
7911
7941
  "name": "string"
7912
7942
  },
@@ -7916,154 +7946,124 @@
7916
7946
  {
7917
7947
  "__schema": "ParameterSchema",
7918
7948
  "location": {
7919
- "filePath": "capsule/container.ts",
7920
- "line": 124,
7921
- "character": 21
7949
+ "filePath": "capsule/capsule.ts",
7950
+ "line": 128,
7951
+ "character": 5
7922
7952
  },
7923
- "name": "fn",
7953
+ "name": "config",
7924
7954
  "type": {
7925
- "__schema": "FunctionLikeSchema",
7955
+ "__schema": "TypeLiteralSchema",
7926
7956
  "location": {
7927
- "filePath": "capsule/container.ts",
7928
- "line": 124,
7929
- "character": 25
7957
+ "filePath": "capsule/capsule.ts",
7958
+ "line": 128,
7959
+ "character": 13
7930
7960
  },
7931
- "signature": "(data: any): void",
7932
- "name": "",
7933
- "params": [
7961
+ "members": [
7934
7962
  {
7935
- "__schema": "ParameterSchema",
7963
+ "__schema": "VariableLikeSchema",
7936
7964
  "location": {
7937
- "filePath": "capsule/container.ts",
7938
- "line": 124,
7939
- "character": 26
7965
+ "filePath": "capsule/capsule.ts",
7966
+ "line": 128,
7967
+ "character": 15
7940
7968
  },
7941
- "name": "data",
7969
+ "signature": "(property) alwaysNew?: boolean | undefined",
7970
+ "name": "alwaysNew",
7942
7971
  "type": {
7943
7972
  "__schema": "KeywordTypeSchema",
7944
7973
  "location": {
7945
- "filePath": "capsule/container.ts",
7946
- "line": 124,
7947
- "character": 32
7974
+ "filePath": "capsule/capsule.ts",
7975
+ "line": 128,
7976
+ "character": 27
7948
7977
  },
7949
- "name": "any"
7978
+ "name": "boolean"
7950
7979
  },
7951
- "isOptional": false,
7952
- "isSpread": false
7980
+ "isOptional": true
7953
7981
  }
7954
- ],
7955
- "returnType": {
7956
- "__schema": "KeywordTypeSchema",
7957
- "location": {
7958
- "filePath": "capsule/container.ts",
7959
- "line": 124,
7960
- "character": 40
7961
- },
7962
- "name": "void"
7963
- },
7964
- "modifiers": []
7982
+ ]
7965
7983
  },
7966
- "isOptional": false,
7984
+ "isOptional": true,
7985
+ "defaultValue": "{}",
7967
7986
  "isSpread": false
7968
7987
  }
7969
7988
  ],
7970
7989
  "returnType": {
7971
- "__schema": "KeywordTypeSchema",
7990
+ "__schema": "TypeRefSchema",
7972
7991
  "location": {
7973
- "filePath": "capsule/container.ts",
7974
- "line": 124,
7975
- "character": 47
7992
+ "filePath": "capsule/capsule.ts",
7993
+ "line": 129,
7994
+ "character": 6
7976
7995
  },
7977
- "name": "void"
7996
+ "name": "Promise",
7997
+ "typeArgs": [
7998
+ {
7999
+ "__schema": "TypeRefSchema",
8000
+ "location": {
8001
+ "filePath": "capsule/capsule.ts",
8002
+ "line": 129,
8003
+ "character": 14
8004
+ },
8005
+ "name": "Capsule"
8006
+ }
8007
+ ]
7978
8008
  },
7979
- "modifiers": []
8009
+ "modifiers": [
8010
+ "static",
8011
+ "async"
8012
+ ]
7980
8013
  }
7981
8014
  ],
7982
- "extendsNodes": [],
7983
- "implementNodes": [
8015
+ "extendsNodes": [
7984
8016
  {
7985
8017
  "__schema": "ExpressionWithTypeArgumentsSchema",
7986
8018
  "location": {
7987
- "filePath": "capsule/container.ts",
7988
- "line": 20,
7989
- "character": 45
8019
+ "filePath": "capsule/capsule.ts",
8020
+ "line": 13,
8021
+ "character": 38
7990
8022
  },
7991
- "name": "implements Container<Exec, AnyFS>",
8023
+ "name": "extends CapsuleTemplate<Exec, NodeFS>",
7992
8024
  "typeArgs": [
7993
8025
  {
7994
8026
  "__schema": "TypeRefSchema",
7995
8027
  "location": {
7996
- "filePath": "capsule/container.ts",
7997
- "line": 20,
7998
- "character": 55
8028
+ "filePath": "capsule/capsule.ts",
8029
+ "line": 13,
8030
+ "character": 54
7999
8031
  },
8000
8032
  "name": "Exec"
8001
8033
  },
8002
8034
  {
8003
8035
  "__schema": "TypeRefSchema",
8004
8036
  "location": {
8005
- "filePath": "capsule/container.ts",
8006
- "line": 20,
8007
- "character": 61
8037
+ "filePath": "capsule/capsule.ts",
8038
+ "line": 13,
8039
+ "character": 60
8008
8040
  },
8009
- "name": "AnyFS"
8041
+ "name": "NodeFS"
8010
8042
  }
8011
8043
  ],
8012
8044
  "expression": {
8013
8045
  "__schema": "TypeRefSchema",
8014
8046
  "location": {
8015
- "filePath": "capsule/container.ts",
8016
- "line": 20,
8017
- "character": 45
8047
+ "filePath": "capsule/capsule.ts",
8048
+ "line": 13,
8049
+ "character": 38
8018
8050
  },
8019
- "name": "Container<T",
8051
+ "name": "CapsuleTemplate<T",
8020
8052
  "componentId": {
8021
8053
  "_legacy": {
8022
8054
  "scope": "teambit.component",
8023
8055
  "name": "isolator",
8024
- "version": "1.0.396"
8056
+ "version": "1.0.397"
8025
8057
  },
8026
8058
  "_scope": "teambit.component"
8027
8059
  }
8028
8060
  }
8029
8061
  }
8030
- ]
8031
- }
8032
- ],
8033
- "internals": [
8034
- {
8035
- "__schema": "ModuleSchema",
8036
- "location": {
8037
- "filePath": "capsule/container.ts",
8038
- "line": 10,
8039
- "character": 1
8040
- },
8041
- "exports": [
8042
- {
8043
- "__schema": "VariableLikeSchema",
8044
- "location": {
8045
- "filePath": "capsule/container.ts",
8046
- "line": 10,
8047
- "character": 7
8048
- },
8049
- "signature": "const debug: any",
8050
- "name": "debug",
8051
- "type": {
8052
- "__schema": "InferenceTypeSchema",
8053
- "location": {
8054
- "filePath": "capsule/container.ts",
8055
- "line": 10,
8056
- "character": 7
8057
- },
8058
- "type": "any"
8059
- },
8060
- "isOptional": false,
8061
- "defaultValue": "require('debug')('fs-container')"
8062
- }
8063
8062
  ],
8064
- "internals": []
8063
+ "implementNodes": []
8065
8064
  }
8066
- ]
8065
+ ],
8066
+ "internals": []
8067
8067
  },
8068
8068
  {
8069
8069
  "__schema": "ModuleSchema",
@@ -8340,7 +8340,7 @@
8340
8340
  "_legacy": {
8341
8341
  "scope": "teambit.component",
8342
8342
  "name": "isolator",
8343
- "version": "1.0.396"
8343
+ "version": "1.0.397"
8344
8344
  },
8345
8345
  "_scope": "teambit.component"
8346
8346
  }
@@ -8369,7 +8369,7 @@
8369
8369
  "_legacy": {
8370
8370
  "scope": "teambit.component",
8371
8371
  "name": "isolator",
8372
- "version": "1.0.396"
8372
+ "version": "1.0.397"
8373
8373
  },
8374
8374
  "_scope": "teambit.component"
8375
8375
  }
@@ -11899,7 +11899,7 @@
11899
11899
  "_legacy": {
11900
11900
  "scope": "teambit.component",
11901
11901
  "name": "isolator",
11902
- "version": "1.0.396"
11902
+ "version": "1.0.397"
11903
11903
  },
11904
11904
  "_scope": "teambit.component"
11905
11905
  }
@@ -11915,7 +11915,7 @@
11915
11915
  "componentId": {
11916
11916
  "scope": "teambit.component",
11917
11917
  "name": "isolator",
11918
- "version": "1.0.396"
11918
+ "version": "1.0.397"
11919
11919
  },
11920
11920
  "taggedModuleExports": []
11921
11921
  }