@tiangong-lca/cli 0.0.13 → 0.0.15
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 +3 -3
- package/dist/src/cli.js +1 -2
- package/dist/src/cli.js.map +1 -1
- package/dist/src/lib/dataset-classification.js +45 -1
- package/dist/src/lib/dataset-classification.js.map +1 -1
- package/dist/src/lib/dataset-import-lca.js +18 -6
- package/dist/src/lib/dataset-import-lca.js.map +1 -1
- package/package.json +1 -1
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-
|
|
21
|
-
lastReviewedCommit:
|
|
20
|
+
lastReviewedAt: 2026-06-11
|
|
21
|
+
lastReviewedCommit: 98104c9d377fda260a0655f3871804b5c59d6f6b
|
|
22
22
|
---
|
|
23
23
|
|
|
24
24
|
# TianGong LCA CLI
|
|
@@ -310,7 +310,7 @@ For `lifecyclemodel save-draft`, canonical lifecyclemodel payloads are validated
|
|
|
310
310
|
|
|
311
311
|
For `dataset evidence-search`, `plan` creates the field-level query matrix and search budget. `run` accepts normalized external search results from browser/web-search tools or a generic JSON provider endpoint, then writes `outputs/evidence-search-plan.json`, `outputs/evidence-search-results.jsonl`, `outputs/evidence-search-report.json`, and `outputs/evidence-search-declaration.json` when evidence is absent or only partial. The CLI records scope and normalization; Codex/skills still own semantic judgement and source selection.
|
|
312
312
|
|
|
313
|
-
For `dataset validate`, `--type auto` supports mixed support scopes containing contact/source/unitgroup/flowproperty rows as well as flow/process/lifecyclemodel rows. For `dataset classification`, `children` and `path` navigate the bundled TIDAS category schemas copied from `tidas-tools`. `audit --type location` scans local rows for schema-derived location-code fields, plus TIDAS LCIA geography and lifecyclemodel connection location fields, whose values are not in `tidas_locations_category.json`; `apply --type location` applies structured decisions to a specific `target_path` when a row has multiple location fields.
|
|
313
|
+
For `dataset validate`, `--type auto` supports mixed support scopes containing contact/source/unitgroup/flowproperty rows as well as flow/process/lifecyclemodel rows. For `dataset classification`, `children` and `path` navigate the bundled TIDAS category schemas copied from `tidas-tools`. `audit --type location` scans local rows for schema-derived location-code fields, plus TIDAS LCIA geography and lifecyclemodel connection location fields, whose values are not in `tidas_locations_category.json`; `apply --type location` applies structured decisions to a specific `target_path` when a row has multiple location fields. When `target_path` explicitly points at a schema-derived location field such as `flowDataSet.flowInformation.geography.locationOfSupply`, location apply may create the missing parent object and field; ambiguous or non-location paths still block.
|
|
314
314
|
|
|
315
315
|
For `dataset curation-queue build/next/verify`, the CLI owns entity-level Foundry import queue state. `build` writes `outputs/curation-queue-manifest.json`, `outputs/curation-queue-tasks.jsonl`, `outputs/curation-queue-locks.json`, `outputs/curation-queue-blockers.jsonl`, and per-entity `input.jsonl`, `closure.json`, and `entity-run-plan.json`. `next` returns one runnable support/flow/process task based on checkpoint state. `verify` passes only when scoped checkpoints are complete and build blockers are absent. AI authoring must return structured patches or build plans, and remote writes remain gated by deterministic apply, schema/QA, prewrite verify, and readback.
|
|
316
316
|
|
package/dist/src/cli.js
CHANGED
|
@@ -524,7 +524,7 @@ Options:
|
|
|
524
524
|
--mapping-dir <dir> Optional custom mapping/reference data directory
|
|
525
525
|
--language <lang> Default language for generated text (default: en)
|
|
526
526
|
--validation-jobs <n> Parallel validation jobs passed to tidas-tools (default: 1)
|
|
527
|
-
--process-bundles Write per-process dependency bundles (default: enabled)
|
|
527
|
+
--process-bundles Write per-process dependency bundles (default: enabled by tidas-tools)
|
|
528
528
|
--process-bundles-dir <dir>
|
|
529
529
|
Custom per-process bundle directory (default: <output-dir>/process-bundles)
|
|
530
530
|
--no-process-bundles Disable per-process dependency bundle generation
|
|
@@ -539,7 +539,6 @@ Outputs written under --output-dir:
|
|
|
539
539
|
- conversion-report.json
|
|
540
540
|
- tidas/ when target includes TIDAS and not detect-only
|
|
541
541
|
- ilcd/ when target includes ILCD and not detect-only
|
|
542
|
-
- mapping.csv when not detect-only
|
|
543
542
|
- process-bundles/ when not detect-only and process bundles are enabled
|
|
544
543
|
- outputs/import-lca-report.json
|
|
545
544
|
`.trim();
|