@grnsft/if 0.0.6 → 0.1.1

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.
Files changed (182) hide show
  1. package/.examples/ompls/azure.yml +205 -0
  2. package/.github/workflows/nodejs-ci.yml +0 -8
  3. package/README.md +48 -9
  4. package/build/index.js +1 -2
  5. package/coverage/clover.xml +132 -1118
  6. package/coverage/coverage-final.json +9 -26
  7. package/coverage/lcov-report/config/config.ts.html +3 -66
  8. package/coverage/lcov-report/config/index.html +15 -15
  9. package/coverage/lcov-report/config/index.ts.html +3 -3
  10. package/coverage/lcov-report/config/strings.ts.html +82 -19
  11. package/coverage/lcov-report/index.html +36 -231
  12. package/coverage/lcov-report/lib/index.html +43 -13
  13. package/coverage/lcov-report/lib/models-universe.ts.html +433 -0
  14. package/coverage/lcov-report/lib/observatory.ts.html +187 -0
  15. package/coverage/lcov-report/lib/supercomputer.ts.html +553 -0
  16. package/coverage/lcov-report/util/args.ts.html +23 -8
  17. package/coverage/lcov-report/util/errors.ts.html +157 -0
  18. package/coverage/lcov-report/util/index.html +20 -50
  19. package/coverage/lcov-report/util/yaml.ts.html +17 -11
  20. package/coverage/lcov.info +225 -2004
  21. package/examples/impls/test/azure.yml +8 -8
  22. package/examples/impls/test/ccf.yml +5 -3
  23. package/examples/impls/test/if-demo.yml +19 -9
  24. package/examples/impls/test/metadata.yml +3 -2
  25. package/examples/impls/test/nesting.yml +10 -13
  26. package/examples/impls/test/sci-e.yml +1 -1
  27. package/examples/impls/test/sci-m.yml +2 -2
  28. package/examples/impls/test/sci-o.yml +2 -4
  29. package/examples/impls/test/sci.yml +38 -15
  30. package/examples/impls/test/shell.yml +2 -1
  31. package/examples/impls/{tdp-finder-test.yml → test/tdp-finder.yml} +8 -8
  32. package/examples/ompls/ccf.yml +3 -1
  33. package/examples/ompls/if-demo.yml +46 -22
  34. package/package.json +15 -7
  35. package/tsconfig.build.json +7 -0
  36. package/tsconfig.build.tsbuildinfo +1 -0
  37. package/build/__mocks__/azure/index.d.ts +0 -11
  38. package/build/__mocks__/azure/index.js +0 -132
  39. package/build/__mocks__/boavizta/countries.json +0 -138
  40. package/build/__mocks__/boavizta/instance_types.json +0 -625
  41. package/build/__mocks__/boavizta/providers.json +0 -1
  42. package/build/__mocks__/fs/index.d.ts +0 -3
  43. package/build/__mocks__/fs/index.js +0 -56
  44. package/build/__mocks__/model-universe/index.d.ts +0 -31
  45. package/build/__mocks__/model-universe/index.js +0 -64
  46. package/build/__mocks__/watt-time/data.json +0 -119
  47. package/build/__tests__/integration/ompl/index.test.d.ts +0 -1
  48. package/build/__tests__/integration/ompl/index.test.js +0 -61
  49. package/build/__tests__/unit/lib/azure-importer/index.test.d.ts +0 -1
  50. package/build/__tests__/unit/lib/azure-importer/index.test.js +0 -152
  51. package/build/__tests__/unit/lib/boavizta/index.test.d.ts +0 -1
  52. package/build/__tests__/unit/lib/boavizta/index.test.js +0 -579
  53. package/build/__tests__/unit/lib/case-studies/aveva.test.d.ts +0 -1
  54. package/build/__tests__/unit/lib/case-studies/aveva.test.js +0 -36
  55. package/build/__tests__/unit/lib/case-studies/emem.test.d.ts +0 -1
  56. package/build/__tests__/unit/lib/case-studies/emem.test.js +0 -108
  57. package/build/__tests__/unit/lib/case-studies/eshoppen.test.d.ts +0 -1
  58. package/build/__tests__/unit/lib/case-studies/eshoppen.test.js +0 -53
  59. package/build/__tests__/unit/lib/case-studies/sci-accenture.test.d.ts +0 -1
  60. package/build/__tests__/unit/lib/case-studies/sci-accenture.test.js +0 -23
  61. package/build/__tests__/unit/lib/ccf/index.test.d.ts +0 -1
  62. package/build/__tests__/unit/lib/ccf/index.test.js +0 -223
  63. package/build/__tests__/unit/lib/cloud-instance-metadata/index.test.d.ts +0 -1
  64. package/build/__tests__/unit/lib/cloud-instance-metadata/index.test.js +0 -73
  65. package/build/__tests__/unit/lib/models-universe.test.d.ts +0 -1
  66. package/build/__tests__/unit/lib/models-universe.test.js +0 -193
  67. package/build/__tests__/unit/lib/observatory.test.d.ts +0 -1
  68. package/build/__tests__/unit/lib/observatory.test.js +0 -99
  69. package/build/__tests__/unit/lib/sci/index.test.d.ts +0 -1
  70. package/build/__tests__/unit/lib/sci/index.test.js +0 -106
  71. package/build/__tests__/unit/lib/sci-e/index.test.d.ts +0 -1
  72. package/build/__tests__/unit/lib/sci-e/index.test.js +0 -30
  73. package/build/__tests__/unit/lib/sci-m/index.test.d.ts +0 -1
  74. package/build/__tests__/unit/lib/sci-m/index.test.js +0 -58
  75. package/build/__tests__/unit/lib/sci-o/index.test.d.ts +0 -1
  76. package/build/__tests__/unit/lib/sci-o/index.test.js +0 -42
  77. package/build/__tests__/unit/lib/shell-imp/index.test.d.ts +0 -1
  78. package/build/__tests__/unit/lib/shell-imp/index.test.js +0 -21
  79. package/build/__tests__/unit/lib/supercomputer.test.d.ts +0 -1
  80. package/build/__tests__/unit/lib/supercomputer.test.js +0 -231
  81. package/build/__tests__/unit/lib/tdp-finder/index.test.d.ts +0 -1
  82. package/build/__tests__/unit/lib/tdp-finder/index.test.js +0 -62
  83. package/build/__tests__/unit/lib/teads-aws/index.test.d.ts +0 -1
  84. package/build/__tests__/unit/lib/teads-aws/index.test.js +0 -170
  85. package/build/__tests__/unit/lib/teads-curve/index.test.d.ts +0 -1
  86. package/build/__tests__/unit/lib/teads-curve/index.test.js +0 -146
  87. package/build/__tests__/unit/lib/watt-time/index.test.d.ts +0 -1
  88. package/build/__tests__/unit/lib/watt-time/index.test.js +0 -106
  89. package/build/__tests__/unit/util/args.test.d.ts +0 -1
  90. package/build/__tests__/unit/util/args.test.js +0 -92
  91. package/build/__tests__/unit/util/models-universe.test.d.ts +0 -1
  92. package/build/__tests__/unit/util/models-universe.test.js +0 -193
  93. package/build/__tests__/unit/util/observatory.test.d.ts +0 -1
  94. package/build/__tests__/unit/util/observatory.test.js +0 -99
  95. package/build/__tests__/unit/util/supercomputer.test.d.ts +0 -1
  96. package/build/__tests__/unit/util/supercomputer.test.js +0 -231
  97. package/build/__tests__/unit/util/yaml.test.d.ts +0 -1
  98. package/build/__tests__/unit/util/yaml.test.js +0 -59
  99. package/build/config/config.d.ts +0 -9
  100. package/build/config/config.js +0 -51
  101. package/build/lib/azure-importer/index.d.ts +0 -55
  102. package/build/lib/azure-importer/index.js +0 -314
  103. package/build/lib/boavizta/index.d.ts +0 -53
  104. package/build/lib/boavizta/index.js +0 -254
  105. package/build/lib/case-studies/aveva-model.d.ts +0 -29
  106. package/build/lib/case-studies/aveva-model.js +0 -53
  107. package/build/lib/case-studies/emem-model.d.ts +0 -42
  108. package/build/lib/case-studies/emem-model.js +0 -93
  109. package/build/lib/case-studies/eshoppen-model.d.ts +0 -24
  110. package/build/lib/case-studies/eshoppen-model.js +0 -123
  111. package/build/lib/case-studies/index.d.ts +0 -4
  112. package/build/lib/case-studies/index.js +0 -21
  113. package/build/lib/case-studies/sci-accenture-model.d.ts +0 -10
  114. package/build/lib/case-studies/sci-accenture-model.js +0 -37
  115. package/build/lib/ccf/aws-embodied.json +0 -5591
  116. package/build/lib/ccf/aws-instances.json +0 -21116
  117. package/build/lib/ccf/aws-use.json +0 -79
  118. package/build/lib/ccf/azure-embodied.json +0 -6547
  119. package/build/lib/ccf/azure-instances.json +0 -8332
  120. package/build/lib/ccf/azure-use.json +0 -58
  121. package/build/lib/ccf/gcp-embodied.json +0 -3049
  122. package/build/lib/ccf/gcp-instances.json +0 -3880
  123. package/build/lib/ccf/gcp-use.json +0 -58
  124. package/build/lib/ccf/index.d.ts +0 -63
  125. package/build/lib/ccf/index.js +0 -338
  126. package/build/lib/cloud-instance-metadata/aws-instances.json +0 -1
  127. package/build/lib/cloud-instance-metadata/azure-instances.json +0 -1
  128. package/build/lib/cloud-instance-metadata/index.d.ts +0 -15
  129. package/build/lib/cloud-instance-metadata/index.js +0 -104
  130. package/build/lib/index.d.ts +0 -14
  131. package/build/lib/index.js +0 -32
  132. package/build/lib/interfaces/ccf.d.ts +0 -19
  133. package/build/lib/interfaces/ccf.js +0 -3
  134. package/build/lib/interfaces/index.d.ts +0 -7
  135. package/build/lib/interfaces/index.js +0 -18
  136. package/build/lib/observatory.d.ts +0 -20
  137. package/build/lib/observatory.js +0 -31
  138. package/build/lib/sci/index.d.ts +0 -13
  139. package/build/lib/sci/index.js +0 -131
  140. package/build/lib/sci-e/index.d.ts +0 -38
  141. package/build/lib/sci-e/index.js +0 -85
  142. package/build/lib/sci-m/index.d.ts +0 -10
  143. package/build/lib/sci-m/index.js +0 -124
  144. package/build/lib/sci-o/index.d.ts +0 -17
  145. package/build/lib/sci-o/index.js +0 -52
  146. package/build/lib/shell-imp/index.d.ts +0 -32
  147. package/build/lib/shell-imp/index.js +0 -82
  148. package/build/lib/tdp-finder/index.d.ts +0 -19
  149. package/build/lib/tdp-finder/index.js +0 -98
  150. package/build/lib/teads-aws/aws-embodied.json +0 -1
  151. package/build/lib/teads-aws/aws-instances.json +0 -1
  152. package/build/lib/teads-aws/index.d.ts +0 -58
  153. package/build/lib/teads-aws/index.js +0 -208
  154. package/build/lib/teads-curve/index.d.ts +0 -52
  155. package/build/lib/teads-curve/index.js +0 -158
  156. package/build/lib/watt-time/index.d.ts +0 -18
  157. package/build/lib/watt-time/index.js +0 -204
  158. package/build/types/model-interface.d.ts +0 -16
  159. package/build/types/model-interface.js +0 -3
  160. package/build/types/process-args.d.ts +0 -7
  161. package/build/types/process-args.js +0 -3
  162. package/build/types/supercomputer.d.ts +0 -4
  163. package/build/types/supercomputer.js +0 -3
  164. package/build/util/args.js +0 -48
  165. package/build/util/errors.d.ts +0 -6
  166. package/build/util/errors.js +0 -22
  167. package/build/util/helpers.js +0 -18
  168. package/build/util/models-universe.d.ts +0 -28
  169. package/build/util/models-universe.js +0 -95
  170. package/build/util/observatory.d.ts +0 -20
  171. package/build/util/observatory.js +0 -31
  172. package/build/util/supercomputer.d.ts +0 -30
  173. package/build/util/supercomputer.js +0 -109
  174. package/docs/implementations/tdp-finder.md +0 -36
  175. package/examples/impls/test/complex-pipeline.yml +0 -67
  176. package/examples/impls/test/toto.yaml +0 -22
  177. package/src/__mocks__/boavizta/countries.json +0 -138
  178. package/src/__mocks__/boavizta/instance_types.json +0 -625
  179. package/src/__mocks__/boavizta/providers.json +0 -1
  180. package/src/__mocks__/watt-time/data.json +0 -119
  181. package/tsconfig.tsbuildinfo +0 -1
  182. package/yarn-error.log +0 -5854
@@ -4,7 +4,7 @@ tags:
4
4
  initialize:
5
5
  models:
6
6
  - name: azure-importer
7
- path: if-models
7
+ path: "@grnsft/if-unofficial-models"
8
8
  model: AzureImporterModel
9
9
  kind: plugin
10
10
  graph:
@@ -15,12 +15,12 @@ graph:
15
15
  config:
16
16
  azure-importer:
17
17
  inputs:
18
- - timestamp: '2023-11-02T10:35:31.820Z'
19
- duration: 3600
20
- azure-observation-window: 5 min # value and unit must be space separated
21
- azure-observation-aggregation: 'average'
22
- azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
23
- azure-resource-group: vm1_group
24
- azure-vm-name: vm1
18
+ - timestamp: '2023-11-02T10:35:31.820Z'
19
+ duration: 3600
20
+ azure-observation-window: 5 min # value and unit must be space separated
21
+ azure-observation-aggregation: 'average'
22
+ azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
23
+ azure-resource-group: vm1_group
24
+ azure-vm-name: vm1
25
25
 
26
26
 
@@ -1,9 +1,11 @@
1
1
  name: ccf-demo
2
2
  description: example impl invoking CCF model
3
+ tags:
3
4
  initialize:
4
5
  models:
5
6
  - name: ccf
6
- kind: builtin
7
+ model: CloudCarbonFootprint
8
+ path: "@grnsft/if-unofficial-models"
7
9
  graph:
8
10
  children:
9
11
  child:
@@ -11,8 +13,8 @@ graph:
11
13
  - ccf
12
14
  config:
13
15
  ccf:
14
- vendor: aws
15
- instance-type: m5n.large
16
+ vendor: 'aws'
17
+ instance-type: 'm5n.large'
16
18
  inputs:
17
19
  - timestamp: 2023-07-06T00:00 # [KEYWORD] [NO-SUBFIELDS] time when measurement occurred
18
20
  duration: 1
@@ -4,21 +4,29 @@ tags:
4
4
  initialize:
5
5
  models:
6
6
  - name: azure-importer
7
- kind: builtin
7
+ model: AzureImporterModel
8
+ path: "@grnsft/if-unofficial-models"
8
9
  - name: cloud-instance-metadata
9
- kind: builtin
10
+ model: CloudInstanceMetadataModel
11
+ path: "@grnsft/if-models"
10
12
  - name: teads-curve
11
- kind: builtin
13
+ model: TeadsCurveModel
14
+ path: "@grnsft/if-unofficial-models"
12
15
  - name: sci-e
13
- kind: builtin
16
+ model: SciEModel
17
+ path: "@grnsft/if-models"
14
18
  - name: sci-o
15
- kind: builtin
19
+ model: SciOModel
20
+ path: "@grnsft/if-models"
16
21
  - name: sci-e
17
- kind: builtin
22
+ model: SciEModel
23
+ path: "@grnsft/if-models"
18
24
  - name: sci-m
19
- kind: builtin
25
+ model: SciMModel
26
+ path: "@grnsft/if-models"
20
27
  - name: sci
21
- kind: builtin
28
+ model: SciModel
29
+ path: "@grnsft/if-models"
22
30
  graph:
23
31
  children:
24
32
  child:
@@ -31,6 +39,8 @@ graph:
31
39
  - sci-m
32
40
  - sci
33
41
  config:
42
+ sci-o:
43
+ grid-carbon-intensity: 951
34
44
  sci:
35
45
  functional-unit: ''
36
46
  functional-unit-time: hour
@@ -43,9 +53,9 @@ graph:
43
53
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
44
54
  azure-resource-group: vm1_group
45
55
  azure-vm-name: vm1
46
- grid-carbon-intensity: 951
47
56
  total-embodied-emissions: 1533.12
48
57
  time-reserved: 300
49
58
  expected-lifespan: 94348800 # 3 yrs in seconds
50
59
  resources-reserved: 1
51
60
  total-resources: 64
61
+
@@ -1,10 +1,11 @@
1
- name: sci-m
1
+ name: cloud-instance-metadata
2
2
  description: simple demo invoking metadata lookup
3
3
  tags: null
4
4
  initialize:
5
5
  models:
6
6
  - name: cloud-instance-metadata
7
- kind: builtin
7
+ model: CloudInstanceMetadataModel
8
+ path: "@grnsft/if-models"
8
9
  graph:
9
10
  children:
10
11
  child:
@@ -7,23 +7,20 @@ tags:
7
7
  initialize:
8
8
  models:
9
9
  - name: teads-curve
10
- kind: builtin
10
+ model: TeadsCurveModel
11
+ path: "@grnsft/if-unofficial-models"
11
12
  - name: sci-e
12
- kind: builtin
13
- verbose: false
14
- path: ''
13
+ model: SciEModel
14
+ path: "@grnsft/if-models"
15
15
  - name: sci-m
16
- kind: builtin
17
- verbose: false
18
- path: ''
16
+ path: "@grnsft/if-models"
17
+ model: SciMModel
19
18
  - name: sci-o
20
- kind: builtin
21
- verbose: false
22
- path: ''
19
+ model: SciOModel
20
+ path: "@grnsft/if-models"
23
21
  - name: sci
24
- kind: builtin
25
- verbose: false
26
- path: ''
22
+ model: SciModel
23
+ path: "@grnsft/if-models"
27
24
  graph:
28
25
  children:
29
26
  child: # an advanced grouping node
@@ -7,7 +7,7 @@ initialize:
7
7
  kind: plugin
8
8
  verbose: false
9
9
  model: SciEModel
10
- path: if-models
10
+ path: "@grnsft/if-models"
11
11
  graph:
12
12
  children:
13
13
  child:
@@ -4,9 +4,9 @@ tags:
4
4
  initialize:
5
5
  models:
6
6
  - name: sci-m # a model that calculates m from te, tir, el, rr and rtor
7
- kind: builtin
7
+ model: SciMModel
8
8
  verbose: false
9
- path: ''
9
+ path: "@grnsft/if-models"
10
10
  graph:
11
11
  children:
12
12
  child:
@@ -5,14 +5,12 @@ initialize:
5
5
  models:
6
6
  - name: sci-e
7
7
  kind: plugin
8
- verbose: false
9
8
  model: SciEModel
10
- path: if-models
9
+ path: "@grnsft/if-models"
11
10
  - name: sci-o
12
- kind: plugin
13
11
  verbose: false
14
12
  model: SciOModel
15
- path: if-models
13
+ path: "@grnsft/if-models"
16
14
  graph:
17
15
  children:
18
16
  child:
@@ -1,27 +1,50 @@
1
- name: sci-demo
2
- description: example invoking sci model
1
+ name: example
2
+ description: a simple example manifest
3
3
  tags:
4
4
  initialize:
5
5
  models:
6
- - name: sci
7
- kind: plugin
8
- verbose: false
6
+ - name: teads-curve
7
+ model: TestBadImpl
8
+ path: "@grnsft/if-unofficial-models"
9
+ - name: sci-e
10
+ model: SciEModel
11
+ path: "@grnsft/if-models"
12
+ - name: sci-m
13
+ path: "@grnsft/if-models"
14
+ model: SciMModel
15
+ - name: sci-o
16
+ model: SciOModel
17
+ path: "@grnsft/if-models"
18
+ - name: sci
9
19
  model: SciModel
10
- path: if-models
20
+ path: "@grnsft/if-models"
11
21
  graph:
12
22
  children:
13
- child:
23
+ child: # an advanced grouping node
14
24
  pipeline:
25
+ - teads-curve
26
+ - sci-e
27
+ - sci-m
28
+ - sci-o
15
29
  - sci
16
30
  config:
31
+ teads-curve:
32
+ thermal-design-power: 65
33
+ sci-m:
34
+ total-embodied-emissions: 251000 # gCO2eq
35
+ time-reserved: 3600 # 1 hour in s
36
+ expected-lifespan: 126144000 # 4 years in seconds
37
+ resources-reserved: 1
38
+ total-resources: 1
39
+ sci-o:
40
+ grid-carbon-intensity: 457 # gCO2/kwh
17
41
  sci:
18
- functional-unit-duration: 1
19
- functional-unit-time: 'minutes'
42
+ functional-unit-duration: 1
43
+ functional-duration-time: ''
20
44
  functional-unit: requests # factor to convert per time to per f.unit
21
45
  inputs:
22
- - timestamp: 2023-07-06T00:00
23
- duration: 3600
24
- energy: 5
25
- operational-carbon: 5
26
- embodied-carbon: 0.02
27
- requests: 100
46
+ - timestamp: '2023-07-06T00:00'
47
+ duration: 10
48
+ cpu-util: 50
49
+ e-net: 0.000811 #kwh
50
+ requests: 380
@@ -4,7 +4,8 @@ tags:
4
4
  initialize:
5
5
  models:
6
6
  - name: sampler
7
- kind: shell
7
+ model: ShellModel
8
+ path: "@grnsft/if-models"
8
9
  graph:
9
10
  children:
10
11
  child:
@@ -1,19 +1,19 @@
1
- name: tdp-tester
1
+ name: tdp-finder
2
+ description: demo
3
+ tags:
2
4
  initialize:
3
5
  models:
4
6
  - name: tdp-finder # a model that returns an embodied value given the sci embodied attribution equation.
5
- kind: builtin
6
- verbose: false
7
- path: ''
7
+ model: TdpFinderModel
8
+ path: "@grnsft/if-models"
8
9
  graph:
9
10
  children:
10
- backend:
11
+ child:
11
12
  pipeline:
12
13
  - tdp-finder
13
14
  config:
14
- tdp-finder:
15
- tdp:
16
- observations:
15
+ inputs:
17
16
  - timestamp: 2023-07-06T00:00
17
+ duration: 300
18
18
  physical-processor: AMD 3020e
19
19
 
@@ -1,9 +1,11 @@
1
1
  name: ccf-demo
2
2
  description: example impl invoking CCF model
3
+ tags:
3
4
  initialize:
4
5
  models:
5
6
  - name: ccf
6
- kind: builtin
7
+ model: CloudCarbonMetadataModel
8
+ path: if-models
7
9
  graph:
8
10
  children:
9
11
  child:
@@ -1,21 +1,32 @@
1
- name: ccf-demo
2
- description: example impl invoking CCF model
1
+ name: if-demo
2
+ description: demo pipeline
3
+ tags: null
3
4
  initialize:
4
5
  models:
5
6
  - name: azure-importer
6
- kind: builtin
7
+ path: if-models
8
+ model: AzureImporterModel
7
9
  - name: cloud-instance-metadata
8
- kind: builtin
10
+ path: if-models
11
+ model: CloudInstanceMetadataModel
9
12
  - name: teads-curve
10
- kind: builtin
13
+ path: if-community-models
14
+ model: TeadsCurveModel
11
15
  - name: sci-e
12
- kind: builtin
16
+ path: if-models
17
+ model: SciEModel
13
18
  - name: sci-o
14
- kind: builtin
19
+ path: if-models
20
+ model: SciOModel
21
+ - name: sci-e
22
+ path: if-models
23
+ model: SciEModel
15
24
  - name: sci-m
16
- kind: builtin
25
+ path: if-models
26
+ model: SciMModel
17
27
  - name: sci
18
- kind: builtin
28
+ path: if-models
29
+ model: SciModel
19
30
  graph:
20
31
  children:
21
32
  child:
@@ -28,6 +39,8 @@ graph:
28
39
  - sci-m
29
40
  - sci
30
41
  config:
42
+ sci-o:
43
+ grid-carbon-intensity: 951
31
44
  sci:
32
45
  functional-unit: ''
33
46
  functional-unit-time: hour
@@ -40,7 +53,6 @@ graph:
40
53
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
41
54
  azure-resource-group: vm1_group
42
55
  azure-vm-name: vm1
43
- grid-carbon-intensity: 951
44
56
  total-embodied-emissions: 1533.12
45
57
  time-reserved: 300
46
58
  expected-lifespan: 94348800
@@ -62,12 +74,12 @@ graph:
62
74
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
63
75
  azure-resource-group: vm1_group
64
76
  azure-vm-name: vm1
65
- grid-carbon-intensity: 951
66
77
  total-embodied-emissions: 1533.12
67
78
  time-reserved: 300
68
79
  expected-lifespan: 94348800
69
80
  resources-reserved: 1
70
81
  total-resources: 64
82
+ grid-carbon-intensity: 951
71
83
  functional-unit: ''
72
84
  functional-unit-time: hour
73
85
  functional-unit-duration: 1
@@ -83,6 +95,7 @@ graph:
83
95
  energy: 0.0028475446387886973
84
96
  operational-carbon: 2.708014951488051
85
97
  embodied-carbon: 0.00007616949023199022
98
+ carbon: 0.009026970403260942
86
99
  sci: 32.49709345173939
87
100
  - timestamp: '2023-11-02T10:35:31.820Z'
88
101
  cloud-vendor: azure
@@ -99,12 +112,12 @@ graph:
99
112
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
100
113
  azure-resource-group: vm1_group
101
114
  azure-vm-name: vm1
102
- grid-carbon-intensity: 951
103
115
  total-embodied-emissions: 1533.12
104
116
  time-reserved: 300
105
117
  expected-lifespan: 94348800
106
118
  resources-reserved: 1
107
119
  total-resources: 64
120
+ grid-carbon-intensity: 951
108
121
  functional-unit: ''
109
122
  functional-unit-time: hour
110
123
  functional-unit-duration: 1
@@ -120,6 +133,7 @@ graph:
120
133
  energy: 0.0028475446387886973
121
134
  operational-carbon: 2.708014951488051
122
135
  embodied-carbon: 0.00007616949023199022
136
+ carbon: 0.009026970403260942
123
137
  sci: 32.49709345173939
124
138
  - timestamp: '2023-11-02T10:35:31.820Z'
125
139
  cloud-vendor: azure
@@ -136,12 +150,12 @@ graph:
136
150
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
137
151
  azure-resource-group: vm1_group
138
152
  azure-vm-name: vm1
139
- grid-carbon-intensity: 951
140
153
  total-embodied-emissions: 1533.12
141
154
  time-reserved: 300
142
155
  expected-lifespan: 94348800
143
156
  resources-reserved: 1
144
157
  total-resources: 64
158
+ grid-carbon-intensity: 951
145
159
  functional-unit: ''
146
160
  functional-unit-time: hour
147
161
  functional-unit-duration: 1
@@ -157,6 +171,7 @@ graph:
157
171
  energy: 0.0028414365818491432
158
172
  operational-carbon: 2.7022061893385354
159
173
  embodied-carbon: 0.00007616949023199022
174
+ carbon: 0.009007607862762558
160
175
  sci: 32.42738830594521
161
176
  - timestamp: '2023-11-02T10:35:31.820Z'
162
177
  cloud-vendor: azure
@@ -173,12 +188,12 @@ graph:
173
188
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
174
189
  azure-resource-group: vm1_group
175
190
  azure-vm-name: vm1
176
- grid-carbon-intensity: 951
177
191
  total-embodied-emissions: 1533.12
178
192
  time-reserved: 300
179
193
  expected-lifespan: 94348800
180
194
  resources-reserved: 1
181
195
  total-resources: 64
196
+ grid-carbon-intensity: 951
182
197
  functional-unit: ''
183
198
  functional-unit-time: hour
184
199
  functional-unit-duration: 1
@@ -194,6 +209,7 @@ graph:
194
209
  energy: 0.0028400270215236593
195
210
  operational-carbon: 2.700865697469
196
211
  embodied-carbon: 0.00007616949023199022
212
+ carbon: 0.009003139556530775
197
213
  sci: 32.41130240351079
198
214
  - timestamp: '2023-11-02T10:35:31.820Z'
199
215
  cloud-vendor: azure
@@ -210,12 +226,12 @@ graph:
210
226
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
211
227
  azure-resource-group: vm1_group
212
228
  azure-vm-name: vm1
213
- grid-carbon-intensity: 951
214
229
  total-embodied-emissions: 1533.12
215
230
  time-reserved: 300
216
231
  expected-lifespan: 94348800
217
232
  resources-reserved: 1
218
233
  total-resources: 64
234
+ grid-carbon-intensity: 951
219
235
  functional-unit: ''
220
236
  functional-unit-time: hour
221
237
  functional-unit-duration: 1
@@ -231,6 +247,7 @@ graph:
231
247
  energy: 0.0028414365818491432
232
248
  operational-carbon: 2.7022061893385354
233
249
  embodied-carbon: 0.00007616949023199022
250
+ carbon: 0.009007607862762558
234
251
  sci: 32.42738830594521
235
252
  - timestamp: '2023-11-02T10:35:31.820Z'
236
253
  cloud-vendor: azure
@@ -247,12 +264,12 @@ graph:
247
264
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
248
265
  azure-resource-group: vm1_group
249
266
  azure-vm-name: vm1
250
- grid-carbon-intensity: 951
251
267
  total-embodied-emissions: 1533.12
252
268
  time-reserved: 300
253
269
  expected-lifespan: 94348800
254
270
  resources-reserved: 1
255
271
  total-resources: 64
272
+ grid-carbon-intensity: 951
256
273
  functional-unit: ''
257
274
  functional-unit-time: hour
258
275
  functional-unit-duration: 1
@@ -268,6 +285,7 @@ graph:
268
285
  energy: 0.0028400270215236593
269
286
  operational-carbon: 2.700865697469
270
287
  embodied-carbon: 0.00007616949023199022
288
+ carbon: 0.009003139556530775
271
289
  sci: 32.41130240351079
272
290
  - timestamp: '2023-11-02T10:35:31.820Z'
273
291
  cloud-vendor: azure
@@ -284,12 +302,12 @@ graph:
284
302
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
285
303
  azure-resource-group: vm1_group
286
304
  azure-vm-name: vm1
287
- grid-carbon-intensity: 951
288
305
  total-embodied-emissions: 1533.12
289
306
  time-reserved: 300
290
307
  expected-lifespan: 94348800
291
308
  resources-reserved: 1
292
309
  total-resources: 64
310
+ grid-carbon-intensity: 951
293
311
  functional-unit: ''
294
312
  functional-unit-time: hour
295
313
  functional-unit-duration: 1
@@ -305,6 +323,7 @@ graph:
305
323
  energy: 0.0028428461389389424
306
324
  operational-carbon: 2.7035466781309343
307
325
  embodied-carbon: 0.00007616949023199022
326
+ carbon: 0.00901207615873722
308
327
  sci: 32.44347417145399
309
328
  - timestamp: '2023-11-02T10:35:31.820Z'
310
329
  cloud-vendor: azure
@@ -321,12 +340,12 @@ graph:
321
340
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
322
341
  azure-resource-group: vm1_group
323
342
  azure-vm-name: vm1
324
- grid-carbon-intensity: 951
325
343
  total-embodied-emissions: 1533.12
326
344
  time-reserved: 300
327
345
  expected-lifespan: 94348800
328
346
  resources-reserved: 1
329
347
  total-resources: 64
348
+ grid-carbon-intensity: 951
330
349
  functional-unit: ''
331
350
  functional-unit-time: hour
332
351
  functional-unit-duration: 1
@@ -342,6 +361,7 @@ graph:
342
361
  energy: 0.0028409667287652447
343
362
  operational-carbon: 2.701759359055748
344
363
  embodied-carbon: 0.00007616949023199022
364
+ carbon: 0.009006118428486599
345
365
  sci: 32.42202634255176
346
366
  - timestamp: '2023-11-02T10:35:31.820Z'
347
367
  cloud-vendor: azure
@@ -358,12 +378,12 @@ graph:
358
378
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
359
379
  azure-resource-group: vm1_group
360
380
  azure-vm-name: vm1
361
- grid-carbon-intensity: 951
362
381
  total-embodied-emissions: 1533.12
363
382
  time-reserved: 300
364
383
  expected-lifespan: 94348800
365
384
  resources-reserved: 1
366
385
  total-resources: 64
386
+ grid-carbon-intensity: 951
367
387
  functional-unit: ''
368
388
  functional-unit-time: hour
369
389
  functional-unit-duration: 1
@@ -379,6 +399,7 @@ graph:
379
399
  energy: 0.0029988096470848187
380
400
  operational-carbon: 2.8518679743776625
381
401
  embodied-carbon: 0.00007616949023199022
402
+ carbon: 0.009506480479559648
382
403
  sci: 34.22332972641473
383
404
  - timestamp: '2023-11-02T10:35:31.820Z'
384
405
  cloud-vendor: azure
@@ -395,12 +416,12 @@ graph:
395
416
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
396
417
  azure-resource-group: vm1_group
397
418
  azure-vm-name: vm1
398
- grid-carbon-intensity: 951
399
419
  total-embodied-emissions: 1533.12
400
420
  time-reserved: 300
401
421
  expected-lifespan: 94348800
402
422
  resources-reserved: 1
403
423
  total-resources: 64
424
+ grid-carbon-intensity: 951
404
425
  functional-unit: ''
405
426
  functional-unit-time: hour
406
427
  functional-unit-duration: 1
@@ -416,6 +437,7 @@ graph:
416
437
  energy: 0.0028386174579947384
417
438
  operational-carbon: 2.699525202552996
418
439
  embodied-carbon: 0.00007616949023199022
440
+ carbon: 0.008998671240144094
419
441
  sci: 32.39521646451874
420
442
  - timestamp: '2023-11-02T10:35:31.820Z'
421
443
  cloud-vendor: azure
@@ -432,12 +454,12 @@ graph:
432
454
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
433
455
  azure-resource-group: vm1_group
434
456
  azure-vm-name: vm1
435
- grid-carbon-intensity: 951
436
457
  total-embodied-emissions: 1533.12
437
458
  time-reserved: 300
438
459
  expected-lifespan: 94348800
439
460
  resources-reserved: 1
440
461
  total-resources: 64
462
+ grid-carbon-intensity: 951
441
463
  functional-unit: ''
442
464
  functional-unit-time: hour
443
465
  functional-unit-duration: 1
@@ -453,6 +475,7 @@ graph:
453
475
  energy: 0.0028451953934772694
454
476
  operational-carbon: 2.705780819196883
455
477
  embodied-carbon: 0.00007616949023199022
478
+ carbon: 0.009019523295623716
456
479
  sci: 32.470283864245374
457
480
  - timestamp: '2023-11-02T10:35:31.820Z'
458
481
  cloud-vendor: azure
@@ -469,12 +492,12 @@ graph:
469
492
  azure-subscription-id: 9de7e19f-8a18-4e73-9451-45fc74e7d0d3
470
493
  azure-resource-group: vm1_group
471
494
  azure-vm-name: vm1
472
- grid-carbon-intensity: 951
473
495
  total-embodied-emissions: 1533.12
474
496
  time-reserved: 300
475
497
  expected-lifespan: 94348800
476
498
  resources-reserved: 1
477
499
  total-resources: 64
500
+ grid-carbon-intensity: 951
478
501
  functional-unit: ''
479
502
  functional-unit-time: hour
480
503
  functional-unit-duration: 1
@@ -490,4 +513,5 @@ graph:
490
513
  energy: 0.002927412423351122
491
514
  operational-carbon: 2.783969214606917
492
515
  embodied-carbon: 0.00007616949023199022
516
+ carbon: 0.00928015128032383
493
517
  sci: 33.40854460916579
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@grnsft/if",
3
3
  "description": "Impact Framework",
4
- "version": "v0.0.6",
4
+ "version": "v0.1.1",
5
5
  "author": {
6
6
  "name": "Green Software Foundation",
7
7
  "email": "info@gsf.com"
@@ -31,11 +31,19 @@
31
31
  "ts-jest": "^29.1.1"
32
32
  },
33
33
  "engines": {
34
- "node": "18",
35
- "yarn": "1.22.19"
34
+ "node": ">=18",
35
+ "yarn": ">=1.22",
36
+ "npm": ">=8"
36
37
  },
37
38
  "homepage": "https://greensoftware.foundation",
38
- "keywords": [],
39
+ "keywords": [
40
+ "engine",
41
+ "green software foundation",
42
+ "greensoftware",
43
+ "if",
44
+ "impact",
45
+ "models"
46
+ ],
39
47
  "license": "MIT",
40
48
  "main": "build/index.js",
41
49
  "publishConfig": {
@@ -45,13 +53,13 @@
45
53
  "url": "https://github.com/Green-Software-Foundation/if"
46
54
  },
47
55
  "scripts": {
48
- "build": "tsc",
56
+ "build": "rm -rf build && tsc --project tsconfig.build.json",
49
57
  "coverage": "jest --verbose --coverage",
50
58
  "fix": "gts fix",
51
59
  "fix:package": "fixpack",
52
- "impact-engine": "npx ts-node impact-engine.ts",
60
+ "impact-engine": "npx ts-node src/index.ts",
53
61
  "lint": "gts lint",
54
- "prepare": "yarn build",
62
+ "prepublish": "yarn build",
55
63
  "test": "jest --verbose"
56
64
  },
57
65
  "stability": "stable",