@tiangong-lca/cli 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,8 +17,8 @@ checkPaths:
17
17
  - bin/**
18
18
  - src/cli.ts
19
19
  - src/main.ts
20
- lastReviewedAt: 2026-06-11
21
- lastReviewedCommit: 98104c9d377fda260a0655f3871804b5c59d6f6b
20
+ lastReviewedAt: 2026-06-25
21
+ lastReviewedCommit: bd2feb36414f4b96508725ace0ca071e6a3e3bc4
22
22
  ---
23
23
 
24
24
  # TianGong LCA CLI
@@ -1414,18 +1414,38 @@
1414
1414
  "description": "container tag for the specification of allocations if process has more than one reference product. Use only for multifunctional processes.",
1415
1415
  "properties": {
1416
1416
  "allocation": {
1417
- "type": "object",
1418
1417
  "description": "specifies one allocation of this exchange (see the attributes of this tag below)",
1419
- "properties": {
1420
- "@internalReferenceToCoProduct": {
1421
- "$ref": "tidas_data_types.json#/$defs/Int6",
1422
- "description": "Reference to one of the co-products. The applied allocation approach(es), details and and explanations are documented in the fields \"LCI method approaches\" and \"Deviations from LCI method approaches / explanations\". [Notes: Applicable only to multifunctional processes. The documented allocated fractions are only applicable when using the data set for attributional modelling and are to be ignored for consequential modeling.]"
1418
+ "anyOf": [
1419
+ {
1420
+ "type": "object",
1421
+ "properties": {
1422
+ "@internalReferenceToCoProduct": {
1423
+ "$ref": "tidas_data_types.json#/$defs/Int6",
1424
+ "description": "Reference to one of the co-products. The applied allocation approach(es), details and and explanations are documented in the fields \"LCI method approaches\" and \"Deviations from LCI method approaches / explanations\". [Notes: Applicable only to multifunctional processes. The documented allocated fractions are only applicable when using the data set for attributional modelling and are to be ignored for consequential modeling.]"
1425
+ },
1426
+ "@allocatedFraction": {
1427
+ "$ref": "tidas_data_types.json#/$defs/Perc",
1428
+ "description": "Fraction (expressed in %) of this Input or Output flow that is foreseen to be allocated to this co-product (recommended allocation). The numbers across the co-products should sum up to 100%."
1429
+ }
1430
+ }
1423
1431
  },
1424
- "@allocatedFraction": {
1425
- "$ref": "tidas_data_types.json#/$defs/Perc",
1426
- "description": "Fraction (expressed in %) of this Input or Output flow that is foreseen to be allocated to this co-product (recommended allocation). The numbers across the co-products should sum up to 100%."
1432
+ {
1433
+ "type": "array",
1434
+ "items": {
1435
+ "type": "object",
1436
+ "properties": {
1437
+ "@internalReferenceToCoProduct": {
1438
+ "$ref": "tidas_data_types.json#/$defs/Int6",
1439
+ "description": "Reference to one of the co-products. The applied allocation approach(es), details and and explanations are documented in the fields \"LCI method approaches\" and \"Deviations from LCI method approaches / explanations\". [Notes: Applicable only to multifunctional processes. The documented allocated fractions are only applicable when using the data set for attributional modelling and are to be ignored for consequential modeling.]"
1440
+ },
1441
+ "@allocatedFraction": {
1442
+ "$ref": "tidas_data_types.json#/$defs/Perc",
1443
+ "description": "Fraction (expressed in %) of this Input or Output flow that is foreseen to be allocated to this co-product (recommended allocation). The numbers across the co-products should sum up to 100%."
1444
+ }
1445
+ }
1446
+ }
1427
1447
  }
1428
- }
1448
+ ]
1429
1449
  }
1430
1450
  }
1431
1451
  },
package/dist/src/cli.js CHANGED
@@ -2070,6 +2070,7 @@ function parseDatasetSaveDraftFlags(args) {
2070
2070
  'out-dir': { type: 'string' },
2071
2071
  commit: { type: 'boolean' },
2072
2072
  'dry-run': { type: 'boolean' },
2073
+ 'allow-account-local-support': { type: 'boolean' },
2073
2074
  },
2074
2075
  }));
2075
2076
  }
@@ -2092,6 +2093,7 @@ function parseDatasetSaveDraftFlags(args) {
2092
2093
  type: typeof values.type === 'string' ? values.type : undefined,
2093
2094
  outDir: typeof values['out-dir'] === 'string' ? values['out-dir'] : null,
2094
2095
  commit: Boolean(values.commit),
2096
+ allowReferenceOnlySupport: Boolean(values['allow-account-local-support']),
2095
2097
  };
2096
2098
  }
2097
2099
  function parseDatasetContractFlags(args) {
@@ -4955,6 +4957,7 @@ export async function executeCli(argv, deps) {
4955
4957
  type: datasetFlags.type,
4956
4958
  outDir: datasetFlags.outDir,
4957
4959
  commit: datasetFlags.commit,
4960
+ allowReferenceOnlySupport: datasetFlags.allowReferenceOnlySupport,
4958
4961
  env: deps.env,
4959
4962
  fetchImpl: deps.fetchImpl,
4960
4963
  });