@teambit/isolator 1.0.394 → 1.0.396

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