@tiinex/core 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.
- package/LICENSE +201 -0
- package/NOTICE +31 -0
- package/README.md +45 -0
- package/package.json +176 -0
- package/src/actions/record.actions.js +312 -0
- package/src/adapters/adapter.contracts.js +143 -0
- package/src/adapters/archive/archive.adapter.js +502 -0
- package/src/adapters/archive/archive.portableChangeset.js +141 -0
- package/src/adapters/archive/archive.transport.js +124 -0
- package/src/artifacts/artifact.localDraft.js +27 -0
- package/src/artifacts/artifact.normalize.js +28 -0
- package/src/artifacts/artifact.parse.js +207 -0
- package/src/artifacts/artifact.record.js +83 -0
- package/src/audit/audit.run.js +103 -0
- package/src/audit/audit.summary.js +7 -0
- package/src/diagnostics/sourceBoundary.report.js +112 -0
- package/src/export/package.apply.js +349 -0
- package/src/export/package.builder.js +366 -0
- package/src/export/package.bytes.js +164 -0
- package/src/export/package.controlIntegrity.js +42 -0
- package/src/export/package.controlTopology.js +97 -0
- package/src/export/package.fileMap.js +174 -0
- package/src/export/package.manifest.js +401 -0
- package/src/export/package.preflight.js +204 -0
- package/src/export/package.sourceReference.js +81 -0
- package/src/export/package.workspaceContext.js +144 -0
- package/src/export/package.zip.js +128 -0
- package/src/export/tree.bundle.js +278 -0
- package/src/governance/governance.boundary.js +196 -0
- package/src/integrity/integrity.c14nV2.js +190 -0
- package/src/integrity/integrity.methodReference.js +73 -0
- package/src/integrity/integrity.validate.js +56 -0
- package/src/lineage/lineage.candidateResolution.js +46 -0
- package/src/lineage/lineage.githubIssueComment.js +106 -0
- package/src/lineage/lineage.githubIssueLocal.js +196 -0
- package/src/lineage/lineage.githubIssueTarget.js +89 -0
- package/src/lineage/lineage.integrity.js +133 -0
- package/src/lineage/lineage.materialPreference.js +26 -0
- package/src/lineage/lineage.model.js +63 -0
- package/src/lineage/lineage.parentAuthority.js +5 -0
- package/src/lineage/lineage.parentBinding.js +104 -0
- package/src/lineage/lineage.pathBasis.js +47 -0
- package/src/lineage/lineage.resolve.js +388 -0
- package/src/lineage/lineage.sourceScope.js +74 -0
- package/src/lineage/lineage.targetKeys.js +80 -0
- package/src/lineage/lineage.traverse.js +132 -0
- package/src/public/applicationProjection.js +236 -0
- package/src/public/companionResources.js +246 -0
- package/src/public/index.js +16 -0
- package/src/public/node.js +2 -0
- package/src/public/schemaAncestry.js +26 -0
- package/src/publication/publication.contract.js +196 -0
- package/src/publication/publication.preflight.js +159 -0
- package/src/publication/publication.targetContract.js +241 -0
- package/src/reingest/reingest.plan.js +162 -0
- package/src/release/plan.mjs +28 -0
- package/src/release/policy.mjs +100 -0
- package/src/release/run.mjs +74 -0
- package/src/schemas/capability.registry.js +226 -0
- package/src/schemas/companion.js +245 -0
- package/src/schemas/contracts.js +6 -0
- package/src/schemas/coordination/handoff/tiinex.handoff.v1.schema.js +14 -0
- package/src/schemas/coordination/handoff/tiinex.handoff.v1.schema.json +23 -0
- package/src/schemas/coordination/handoff/tiinex.handoff.v1.schema.runtime.json +4283 -0
- package/src/schemas/coordination/handoff/tiinex.handoff.v1.schema.source.js +9 -0
- package/src/schemas/coordination/project/tiinex.project.v1.schema.js +26 -0
- package/src/schemas/coordination/project/tiinex.project.v1.schema.json +23 -0
- package/src/schemas/coordination/project/tiinex.project.v1.schema.runtime.json +1985 -0
- package/src/schemas/coordination/project/tiinex.project.v1.schema.source.js +9 -0
- package/src/schemas/core/decision/tiinex.decision.v1.schema.js +14 -0
- package/src/schemas/core/decision/tiinex.decision.v1.schema.json +24 -0
- package/src/schemas/core/decision/tiinex.decision.v1.schema.runtime.json +1700 -0
- package/src/schemas/core/decision/tiinex.decision.v1.schema.source.js +9 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.capabilities.js +14 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.en.i18n.json +6 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.findings.js +9 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.presenter.js +1 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.schema.js +32 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.schema.json +24 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.schema.runtime.json +2184 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.schema.source.js +9 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.sv.i18n.json +6 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.transitions.js +1 -0
- package/src/schemas/core/evidence/tiinex.evidence.v1.validate.js +10 -0
- package/src/schemas/core/feedback/tiinex.feedback.v1.schema.js +14 -0
- package/src/schemas/core/feedback/tiinex.feedback.v1.schema.json +23 -0
- package/src/schemas/core/feedback/tiinex.feedback.v1.schema.runtime.json +1773 -0
- package/src/schemas/core/feedback/tiinex.feedback.v1.schema.source.js +9 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.capabilities.js +11 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.contract.js +40 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.en.i18n.json +9 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.findings.js +12 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.localMaterialization.js +89 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.presenter.js +8 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.schema.js +34 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.schema.json +23 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.schema.runtime.json +2029 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.schema.source.js +9 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.sv.i18n.json +9 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.transitions.js +1 -0
- package/src/schemas/core/interpretation/tiinex.interpretation.v1.validate.js +25 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.capabilities.js +14 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.en.i18n.json +6 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.findings.js +9 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.presenter.js +1 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.schema.js +31 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.schema.json +23 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.schema.runtime.json +2033 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.schema.source.js +9 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.sv.i18n.json +6 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.transitions.js +1 -0
- package/src/schemas/core/preservation/tiinex.preservation.v1.validate.js +10 -0
- package/src/schemas/core/relation/tiinex.relation.v1.capabilities.js +7 -0
- package/src/schemas/core/relation/tiinex.relation.v1.contract.js +3 -0
- package/src/schemas/core/relation/tiinex.relation.v1.en.i18n.json +4 -0
- package/src/schemas/core/relation/tiinex.relation.v1.findings.js +9 -0
- package/src/schemas/core/relation/tiinex.relation.v1.localMaterialization.js +153 -0
- package/src/schemas/core/relation/tiinex.relation.v1.presenter.js +3 -0
- package/src/schemas/core/relation/tiinex.relation.v1.schema.js +20 -0
- package/src/schemas/core/relation/tiinex.relation.v1.schema.json +23 -0
- package/src/schemas/core/relation/tiinex.relation.v1.schema.runtime.json +1668 -0
- package/src/schemas/core/relation/tiinex.relation.v1.schema.source.js +9 -0
- package/src/schemas/core/relation/tiinex.relation.v1.sv.i18n.json +4 -0
- package/src/schemas/core/relation/tiinex.relation.v1.transitions.js +1 -0
- package/src/schemas/core/relation/tiinex.relation.v1.validate.js +36 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.capabilities.js +14 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.contract.js +57 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.en.i18n.json +4 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.findings.js +13 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.presenter.js +3 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.schema.js +20 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.schema.json +24 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.schema.runtime.json +3315 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.schema.source.js +9 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.sv.i18n.json +4 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.transitions.js +1 -0
- package/src/schemas/core/relation/workspace/representation/tiinex.workspace.representation.v1.validate.js +78 -0
- package/src/schemas/core/signal/tiinex.signal.v1.schema.js +14 -0
- package/src/schemas/core/signal/tiinex.signal.v1.schema.json +23 -0
- package/src/schemas/core/signal/tiinex.signal.v1.schema.runtime.json +1733 -0
- package/src/schemas/core/signal/tiinex.signal.v1.schema.source.js +9 -0
- package/src/schemas/core/task/tiinex.task.v1.capabilities.js +11 -0
- package/src/schemas/core/task/tiinex.task.v1.contract.js +3 -0
- package/src/schemas/core/task/tiinex.task.v1.en.i18n.json +15 -0
- package/src/schemas/core/task/tiinex.task.v1.findings.js +18 -0
- package/src/schemas/core/task/tiinex.task.v1.localMaterialization.js +148 -0
- package/src/schemas/core/task/tiinex.task.v1.presenter.js +8 -0
- package/src/schemas/core/task/tiinex.task.v1.schema.js +35 -0
- package/src/schemas/core/task/tiinex.task.v1.schema.json +23 -0
- package/src/schemas/core/task/tiinex.task.v1.schema.runtime.json +1708 -0
- package/src/schemas/core/task/tiinex.task.v1.schema.source.js +9 -0
- package/src/schemas/core/task/tiinex.task.v1.sv.i18n.json +15 -0
- package/src/schemas/core/task/tiinex.task.v1.transitions.js +3 -0
- package/src/schemas/core/task/tiinex.task.v1.validate.js +41 -0
- package/src/schemas/core/topic/tiinex.topic.v1.capabilities.js +14 -0
- package/src/schemas/core/topic/tiinex.topic.v1.creation.js +46 -0
- package/src/schemas/core/topic/tiinex.topic.v1.en.i18n.json +8 -0
- package/src/schemas/core/topic/tiinex.topic.v1.findings.js +11 -0
- package/src/schemas/core/topic/tiinex.topic.v1.localMaterialization.js +135 -0
- package/src/schemas/core/topic/tiinex.topic.v1.presenter.js +1 -0
- package/src/schemas/core/topic/tiinex.topic.v1.schema.js +34 -0
- package/src/schemas/core/topic/tiinex.topic.v1.schema.json +23 -0
- package/src/schemas/core/topic/tiinex.topic.v1.schema.runtime.json +1699 -0
- package/src/schemas/core/topic/tiinex.topic.v1.schema.source.js +9 -0
- package/src/schemas/core/topic/tiinex.topic.v1.sv.i18n.json +8 -0
- package/src/schemas/core/topic/tiinex.topic.v1.transitions.js +31 -0
- package/src/schemas/core/topic/tiinex.topic.v1.validate.js +11 -0
- package/src/schemas/creation.capability.js +289 -0
- package/src/schemas/creation.contracts.js +334 -0
- package/src/schemas/creation.executionSnapshot.js +79 -0
- package/src/schemas/creation.factoryQualification.js +73 -0
- package/src/schemas/creation.renderer.js +244 -0
- package/src/schemas/creation.representation.js +279 -0
- package/src/schemas/creation.rootMetadata.js +6 -0
- package/src/schemas/creation.schemaReferences.js +65 -0
- package/src/schemas/discovery/finding/tiinex.discovery.finding.v1.schema.js +14 -0
- package/src/schemas/discovery/finding/tiinex.discovery.finding.v1.schema.json +23 -0
- package/src/schemas/discovery/finding/tiinex.discovery.finding.v1.schema.runtime.json +1873 -0
- package/src/schemas/discovery/finding/tiinex.discovery.finding.v1.schema.source.js +9 -0
- package/src/schemas/discovery/tiinex.discovery.v1.schema.js +14 -0
- package/src/schemas/discovery/tiinex.discovery.v1.schema.json +23 -0
- package/src/schemas/discovery/tiinex.discovery.v1.schema.runtime.json +1839 -0
- package/src/schemas/discovery/tiinex.discovery.v1.schema.source.js +9 -0
- package/src/schemas/generic.artifact.module.js +25 -0
- package/src/schemas/party/organization/tiinex.party.organization.v1.schema.js +26 -0
- package/src/schemas/party/organization/tiinex.party.organization.v1.schema.json +23 -0
- package/src/schemas/party/organization/tiinex.party.organization.v1.schema.runtime.json +2249 -0
- package/src/schemas/party/organization/tiinex.party.organization.v1.schema.source.js +9 -0
- package/src/schemas/party/role/tiinex.party.role.v1.schema.js +26 -0
- package/src/schemas/party/role/tiinex.party.role.v1.schema.json +24 -0
- package/src/schemas/party/role/tiinex.party.role.v1.schema.runtime.json +2091 -0
- package/src/schemas/party/role/tiinex.party.role.v1.schema.source.js +9 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.capabilities.js +14 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.en.i18n.json +4 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.findings.js +1 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.presenter.js +1 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.schema.js +29 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.schema.json +21 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.schema.runtime.json +2180 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.schema.source.js +9 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.sv.i18n.json +4 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.transitions.js +1 -0
- package/src/schemas/presentation/surface/tiinex.presentation.surface.v1.validate.js +1 -0
- package/src/schemas/reduction/tiinex.reduction.v1.schema.js +26 -0
- package/src/schemas/reduction/tiinex.reduction.v1.schema.json +23 -0
- package/src/schemas/reduction/tiinex.reduction.v1.schema.runtime.json +1733 -0
- package/src/schemas/reduction/tiinex.reduction.v1.schema.source.js +9 -0
- package/src/schemas/reference.shapes.js +33 -0
- package/src/schemas/registry.js +36 -0
- package/src/schemas/resolver.js +13 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.capabilities.js +14 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.en.i18n.json +4 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.findings.js +1 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.presenter.js +1 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.schema.js +29 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.schema.json +21 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.schema.runtime.json +2093 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.schema.source.js +9 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.sv.i18n.json +4 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.transitions.js +1 -0
- package/src/schemas/schema/module/tiinex.schema.module.v1.validate.js +1 -0
- package/src/schemas/schema.factory.descriptor.js +104 -0
- package/src/schemas/schema.githubSourceTarget.js +131 -0
- package/src/schemas/schema.identity.js +10 -0
- package/src/schemas/schema.reference.js +133 -0
- package/src/schemas/schema.source.js +239 -0
- package/src/schemas/tiinex.root.v1.capabilities.js +14 -0
- package/src/schemas/tiinex.root.v1.classify.js +55 -0
- package/src/schemas/tiinex.root.v1.en.i18n.json +24 -0
- package/src/schemas/tiinex.root.v1.fallback.js +84 -0
- package/src/schemas/tiinex.root.v1.findings.js +19 -0
- package/src/schemas/tiinex.root.v1.presenter.js +5 -0
- package/src/schemas/tiinex.root.v1.schema.js +29 -0
- package/src/schemas/tiinex.root.v1.schema.json +24 -0
- package/src/schemas/tiinex.root.v1.schema.runtime.json +1574 -0
- package/src/schemas/tiinex.root.v1.schema.source.js +9 -0
- package/src/schemas/tiinex.root.v1.sv.i18n.json +24 -0
- package/src/schemas/tiinex.root.v1.transitions.js +1 -0
- package/src/schemas/tiinex.root.v1.validate.js +36 -0
- package/src/schemas/validation/finding/tiinex.validation.finding.v1.schema.js +14 -0
- package/src/schemas/validation/finding/tiinex.validation.finding.v1.schema.json +23 -0
- package/src/schemas/validation/finding/tiinex.validation.finding.v1.schema.runtime.json +2027 -0
- package/src/schemas/validation/finding/tiinex.validation.finding.v1.schema.source.js +9 -0
- package/src/schemas/validation/method/tiinex.validation.method.v1.schema.js +14 -0
- package/src/schemas/validation/method/tiinex.validation.method.v1.schema.json +23 -0
- package/src/schemas/validation/method/tiinex.validation.method.v1.schema.runtime.json +1848 -0
- package/src/schemas/validation/method/tiinex.validation.method.v1.schema.source.js +9 -0
- package/src/schemas/validation/report/tiinex.validation.report.v1.schema.js +14 -0
- package/src/schemas/validation/report/tiinex.validation.report.v1.schema.json +23 -0
- package/src/schemas/validation/report/tiinex.validation.report.v1.schema.runtime.json +2015 -0
- package/src/schemas/validation/report/tiinex.validation.report.v1.schema.source.js +9 -0
- package/src/schemas/workspace/tiinex.workspace.v1.capabilities.js +12 -0
- package/src/schemas/workspace/tiinex.workspace.v1.en.i18n.json +7 -0
- package/src/schemas/workspace/tiinex.workspace.v1.findings.js +5 -0
- package/src/schemas/workspace/tiinex.workspace.v1.presenter.js +27 -0
- package/src/schemas/workspace/tiinex.workspace.v1.schema.js +30 -0
- package/src/schemas/workspace/tiinex.workspace.v1.schema.json +23 -0
- package/src/schemas/workspace/tiinex.workspace.v1.schema.runtime.json +1596 -0
- package/src/schemas/workspace/tiinex.workspace.v1.schema.source.js +9 -0
- package/src/schemas/workspace/tiinex.workspace.v1.sv.i18n.json +7 -0
- package/src/schemas/workspace/tiinex.workspace.v1.transitions.js +10 -0
- package/src/schemas/workspace/tiinex.workspace.v1.validate.js +10 -0
- package/src/sources/github/github.issueTarget.js +127 -0
- package/src/sources/origin.references.js +249 -0
- package/src/sources/source.explicitTargets.js +49 -0
- package/src/sources/transport.levels.js +107 -0
- package/src/tooling/portable/adapters/cli/cli.cold-start-input.js +34 -0
- package/src/tooling/portable/adapters/cli/cli.command-input.js +455 -0
- package/src/tooling/portable/adapters/cli/cli.common-author.js +249 -0
- package/src/tooling/portable/adapters/cli/cli.common-output.js +330 -0
- package/src/tooling/portable/adapters/cli/cli.editor-assistance.js +13 -0
- package/src/tooling/portable/adapters/cli/cli.ground-materialize.js +96 -0
- package/src/tooling/portable/adapters/cli/cli.ground-recovery.js +99 -0
- package/src/tooling/portable/adapters/cli/cli.handoff-manufacture.js +345 -0
- package/src/tooling/portable/adapters/cli/cli.handoff-sibling-allocation.js +31 -0
- package/src/tooling/portable/adapters/cli/cli.help.js +80 -0
- package/src/tooling/portable/adapters/cli/cli.land.js +13 -0
- package/src/tooling/portable/adapters/cli/cli.local-output.js +72 -0
- package/src/tooling/portable/adapters/cli/cli.material-policy.js +6 -0
- package/src/tooling/portable/adapters/cli/cli.operator-bridge.js +18 -0
- package/src/tooling/portable/adapters/cli/cli.reduction-input.js +14 -0
- package/src/tooling/portable/adapters/cli/cli.run.js +434 -0
- package/src/tooling/portable/adapters/llm/llm.entrypoint.js +34 -0
- package/src/tooling/portable/adapters/node/checkpoint.verify.js +267 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.bootstrap.js +109 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.enumeration.js +94 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.js +193 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.multiRoot.js +49 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.packageParent.js +130 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.requirements.js +353 -0
- package/src/tooling/portable/adapters/node/handoff.manufacture.scope.js +147 -0
- package/src/tooling/portable/adapters/node/workspaceCarrier.manufacture.js +62 -0
- package/src/tooling/portable/assets/asset.operations.js +170 -0
- package/src/tooling/portable/audit/audit.capability.js +119 -0
- package/src/tooling/portable/bootstrap/artifact.result.selfverify.mjs +109 -0
- package/src/tooling/portable/bootstrap/bootstrap.case.mjs +43 -0
- package/src/tooling/portable/bootstrap/tiinex.llm.bootstrap.md +814 -0
- package/src/tooling/portable/bootstrap/tiinex.llm.bootstrap.pointer.json +25 -0
- package/src/tooling/portable/checkpoint/portable.checkpoint.js +89 -0
- package/src/tooling/portable/conformance/checkpoint.qualification.js +271 -0
- package/src/tooling/portable/draft/draft.create.js +389 -0
- package/src/tooling/portable/draft/draft.crud.js +175 -0
- package/src/tooling/portable/draft/draft.exact.js +173 -0
- package/src/tooling/portable/draft/draft.operations.js +265 -0
- package/src/tooling/portable/draft/draft.qualification.js +45 -0
- package/src/tooling/portable/draft/draft.set.js +193 -0
- package/src/tooling/portable/draft/draft.validation-context.js +7 -0
- package/src/tooling/portable/editor/authoring.parent.js +37 -0
- package/src/tooling/portable/editor/editor.assistance.js +221 -0
- package/src/tooling/portable/editor/staged.validation.js +96 -0
- package/src/tooling/portable/engine.facade.js +468 -0
- package/src/tooling/portable/findings.js +92 -0
- package/src/tooling/portable/grounding/grounding.capsule.js +128 -0
- package/src/tooling/portable/grounding/grounding.continuity.js +283 -0
- package/src/tooling/portable/grounding/grounding.participantAuthority.js +20 -0
- package/src/tooling/portable/grounding/grounding.planningContext.js +34 -0
- package/src/tooling/portable/grounding/grounding.readiness.authority.js +17 -0
- package/src/tooling/portable/grounding/grounding.readiness.js +316 -0
- package/src/tooling/portable/grounding/grounding.readiness.support.js +245 -0
- package/src/tooling/portable/grounding/grounding.sourceEvidence.js +71 -0
- package/src/tooling/portable/grounding/grounding.workContext.js +72 -0
- package/src/tooling/portable/grounding/grounding.workProvenance.js +153 -0
- package/src/tooling/portable/handoff/carrierLineage.js +214 -0
- package/src/tooling/portable/handoff/carrierProfile.js +54 -0
- package/src/tooling/portable/handoff/carrierProjection.js +193 -0
- package/src/tooling/portable/handoff/carrierProjection.routeQualification.js +228 -0
- package/src/tooling/portable/handoff/carrierProjection.shared.js +7 -0
- package/src/tooling/portable/handoff/carrierProjection.workspaces.js +54 -0
- package/src/tooling/portable/handoff/coldConsumerEntrypoint.js +185 -0
- package/src/tooling/portable/handoff/coldStartQualification.contract.js +184 -0
- package/src/tooling/portable/handoff/coldStartQualification.grounding.js +392 -0
- package/src/tooling/portable/handoff/coldStartQualification.js +22 -0
- package/src/tooling/portable/handoff/coldStartQualification.materials.js +364 -0
- package/src/tooling/portable/handoff/coldStartQualification.observation.js +220 -0
- package/src/tooling/portable/handoff/coldStartQualification.run.js +81 -0
- package/src/tooling/portable/handoff/coldStartQualification.shared.js +57 -0
- package/src/tooling/portable/handoff/coldStartRolePointers.js +39 -0
- package/src/tooling/portable/handoff/contextAudit.js +247 -0
- package/src/tooling/portable/handoff/contracts/tiinex.handoff.package.v1.schema.md +409 -0
- package/src/tooling/portable/handoff/handoffAuthoringPlan.js +35 -0
- package/src/tooling/portable/handoff/handoffEndpointProjection.js +61 -0
- package/src/tooling/portable/handoff/handoffLeafProjection.js +91 -0
- package/src/tooling/portable/handoff/humanOutputPresentation.js +21 -0
- package/src/tooling/portable/handoff/manufacture.js +84 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.binding.js +72 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.direct.js +160 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.indexes.js +36 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.js +247 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.projectionProvider.js +44 -0
- package/src/tooling/portable/handoff/materialClosure.archiveV2.workspace.js +226 -0
- package/src/tooling/portable/handoff/materialClosure.descriptor.js +169 -0
- package/src/tooling/portable/handoff/materialClosure.inputBinding.js +372 -0
- package/src/tooling/portable/handoff/materialClosure.inputBinding.support.js +62 -0
- package/src/tooling/portable/handoff/materialClosure.materialized.js +143 -0
- package/src/tooling/portable/handoff/materialClosure.materials.js +116 -0
- package/src/tooling/portable/handoff/materialClosure.package.js +181 -0
- package/src/tooling/portable/handoff/materialClosure.plan.js +204 -0
- package/src/tooling/portable/handoff/materialClosure.readiness.js +36 -0
- package/src/tooling/portable/handoff/materialClosure.requirements.js +137 -0
- package/src/tooling/portable/handoff/operatorContextProjection.js +105 -0
- package/src/tooling/portable/handoff/pointerEntrypoint.js +138 -0
- package/src/tooling/portable/handoff/qualifiedHandoffFixture.js +34 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.build.js +321 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.closure.js +126 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.inspect.js +194 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.materials.js +207 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.projection.js +69 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.roles.js +166 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.routes.js +113 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.shared.js +87 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirst.workspaces.js +160 -0
- package/src/tooling/portable/handoff/recipientV2.artifactFirstPhase1.js +44 -0
- package/src/tooling/portable/handoff/recipientV2.artifactInspection.js +55 -0
- package/src/tooling/portable/handoff/recipientV2.artifacts.js +174 -0
- package/src/tooling/portable/handoff/recipientV2.coldProjection.js +24 -0
- package/src/tooling/portable/handoff/recipientV2.delivery.js +48 -0
- package/src/tooling/portable/handoff/recipientV2.endpointRolePointers.js +179 -0
- package/src/tooling/portable/handoff/recipientV2.entryContract.js +28 -0
- package/src/tooling/portable/handoff/recipientV2.humanOutput.js +78 -0
- package/src/tooling/portable/handoff/recipientV2.inspect.helpers.js +218 -0
- package/src/tooling/portable/handoff/recipientV2.inspect.js +194 -0
- package/src/tooling/portable/handoff/recipientV2.inspect.pathToken.js +9 -0
- package/src/tooling/portable/handoff/recipientV2.inspect.projection.js +58 -0
- package/src/tooling/portable/handoff/recipientV2.inspect.workspaces.js +177 -0
- package/src/tooling/portable/handoff/recipientV2.lineage.js +142 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.build.js +147 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.constants.js +4 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.contract.js +101 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.inspect.helpers.js +126 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.inspect.js +185 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.js +12 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.shared.js +24 -0
- package/src/tooling/portable/handoff/recipientV2.packageV1.workspaceProjection.js +22 -0
- package/src/tooling/portable/handoff/recipientV2.pointer.js +40 -0
- package/src/tooling/portable/handoff/recipientV2.routeSelection.js +16 -0
- package/src/tooling/portable/handoff/recipientV2.topology.helpers.js +20 -0
- package/src/tooling/portable/handoff/recipientV2.topology.js +320 -0
- package/src/tooling/portable/handoff/recipientV2.topology.materials.js +70 -0
- package/src/tooling/portable/handoff/recipientV2.topology.workspaces.js +193 -0
- package/src/tooling/portable/handoff/recipientV2.transportManifest.js +123 -0
- package/src/tooling/portable/handoff/recipientV2.workspaceRepresentation.js +163 -0
- package/src/tooling/portable/handoff/routeArtifactConformance.js +130 -0
- package/src/tooling/portable/handoff/toolingBootstrap.js +67 -0
- package/src/tooling/portable/handoff/transportCompanion.js +175 -0
- package/src/tooling/portable/handoff/workspaceByteProvider.archive.js +95 -0
- package/src/tooling/portable/handoff/workspaceByteProvider.js +271 -0
- package/src/tooling/portable/handoff/workspaceCarrier.manufacture.js +93 -0
- package/src/tooling/portable/handoff/workspaceLandingPlan.js +142 -0
- package/src/tooling/portable/handoff/workspacePackageSources.js +105 -0
- package/src/tooling/portable/handoff/workspaceQualifiedReference.js +10 -0
- package/src/tooling/portable/handoff/workspaceSourceIdentity.js +52 -0
- package/src/tooling/portable/handoff/workspaceTargetConformance.js +134 -0
- package/src/tooling/portable/host/host.capabilities.js +181 -0
- package/src/tooling/portable/host/tool.bindings.js +357 -0
- package/src/tooling/portable/host/tool.receiptNormalization.js +141 -0
- package/src/tooling/portable/index.js +52 -0
- package/src/tooling/portable/input/node.input.js +184 -0
- package/src/tooling/portable/input/portable.input.js +249 -0
- package/src/tooling/portable/lifecycle/lifecycle.action.js +11 -0
- package/src/tooling/portable/lifecycle/lifecycle.material.js +173 -0
- package/src/tooling/portable/lifecycle/lifecycle.operations.js +34 -0
- package/src/tooling/portable/lifecycle/lifecycle.readiness.js +247 -0
- package/src/tooling/portable/lineage/lineage.integrity.apply.audit.js +22 -0
- package/src/tooling/portable/lineage/lineage.integrity.apply.evidence.js +36 -0
- package/src/tooling/portable/lineage/lineage.integrity.apply.js +306 -0
- package/src/tooling/portable/lineage/lineage.integrity.apply.structure.js +178 -0
- package/src/tooling/portable/lineage/lineage.integrity.plan.js +377 -0
- package/src/tooling/portable/lineage/lineage.integrity.projection.human.js +82 -0
- package/src/tooling/portable/lineage/lineage.integrity.projection.js +349 -0
- package/src/tooling/portable/lineage/lineage.operations.js +32 -0
- package/src/tooling/portable/lineage/lineage.print.js +398 -0
- package/src/tooling/portable/lineage/lineage.print.render.js +88 -0
- package/src/tooling/portable/lineage/lineage.print.utils.js +58 -0
- package/src/tooling/portable/lineage/lineage.publicationProviderReceipts.js +141 -0
- package/src/tooling/portable/lineage/lineage.publicationQualification.js +183 -0
- package/src/tooling/portable/lineage/lineage.search.js +301 -0
- package/src/tooling/portable/live/live.artifact.js +192 -0
- package/src/tooling/portable/live/live.export.js +107 -0
- package/src/tooling/portable/live/live.lineage.closure.js +71 -0
- package/src/tooling/portable/live/live.lineage.js +338 -0
- package/src/tooling/portable/live/live.protocol.js +181 -0
- package/src/tooling/portable/materialization/durable.materialize.js +162 -0
- package/src/tooling/portable/materialization/epistemic.plan.js +239 -0
- package/src/tooling/portable/materialization/loaded.parent.js +54 -0
- package/src/tooling/portable/materialization/materialization.facade.js +30 -0
- package/src/tooling/portable/operation.catalog.js +393 -0
- package/src/tooling/portable/operation.catalog.package.js +183 -0
- package/src/tooling/portable/operation.result.js +25 -0
- package/src/tooling/portable/orchestration/task.prepare.js +191 -0
- package/src/tooling/portable/output/artifact.result.package.js +308 -0
- package/src/tooling/portable/output/deterministic.zip.js +88 -0
- package/src/tooling/portable/output/node.artifact-set.js +223 -0
- package/src/tooling/portable/output/node.draft.js +41 -0
- package/src/tooling/portable/output/node.zip.js +39 -0
- package/src/tooling/portable/output/recipientV2.zip.js +59 -0
- package/src/tooling/portable/overview/blockingCue.js +16 -0
- package/src/tooling/portable/overview/operatingOverview.js +413 -0
- package/src/tooling/portable/package/generation.binding.js +314 -0
- package/src/tooling/portable/package/generation.binding.projection.js +128 -0
- package/src/tooling/portable/package/material.graph.js +236 -0
- package/src/tooling/portable/package/runtime.package.js +321 -0
- package/src/tooling/portable/package/schema.transition.companion.js +196 -0
- package/src/tooling/portable/package/semantic.package.graph.js +272 -0
- package/src/tooling/portable/package/semantic.package.js +203 -0
- package/src/tooling/portable/package/semantic.package.schema-resolution.js +158 -0
- package/src/tooling/portable/package/semantic.package.transition-registry.js +189 -0
- package/src/tooling/portable/package/semantic.package.types.js +18 -0
- package/src/tooling/portable/providers/schema.bootstrap.provenance.js +10 -0
- package/src/tooling/portable/providers/schema.provider.qualification.js +52 -0
- package/src/tooling/portable/providers/schema.providers.js +458 -0
- package/src/tooling/portable/publication/runtime.publication.js +53 -0
- package/src/tooling/portable/qualification.js +150 -0
- package/src/tooling/portable/reduction/reduction.composition.js +229 -0
- package/src/tooling/portable/reduction/reduction.eligibility.helpers.js +258 -0
- package/src/tooling/portable/reduction/reduction.eligibility.js +191 -0
- package/src/tooling/portable/reduction/reduction.operations.js +30 -0
- package/src/tooling/portable/reduction/reduction.preflight.js +85 -0
- package/src/tooling/portable/reduction/reduction.shared.js +173 -0
- package/src/tooling/portable/schema/bootstrap/canonical.pack.js +24 -0
- package/src/tooling/portable/schema/bootstrap/docs-3988951208eb9a8926e84ab42625d4b42fa00c2d/party/role/tiinex.party.role.v1.schema.md +289 -0
- package/src/tooling/portable/schema/bootstrap/docs-3988951208eb9a8926e84ab42625d4b42fa00c2d/validation/report/tiinex.validation.report.v1.schema.md +300 -0
- package/src/tooling/portable/schema/bootstrap/qualified-local-root/tiinex.root.v1.runtime-projection.json +48 -0
- package/src/tooling/portable/schema/bootstrap/qualified-local-root/tiinex.root.v1.schema.md +865 -0
- package/src/tooling/portable/schema/contract.compile.js +406 -0
- package/src/tooling/portable/schema/contract.compile.utils.js +9 -0
- package/src/tooling/portable/schema/contract.constraints.js +117 -0
- package/src/tooling/portable/schema/contract.envelope.validate.js +177 -0
- package/src/tooling/portable/schema/contract.field-domain.compile.js +399 -0
- package/src/tooling/portable/schema/contract.field-domain.js +247 -0
- package/src/tooling/portable/schema/contract.field-shape.compile.js +34 -0
- package/src/tooling/portable/schema/contract.inheritance.inline.js +103 -0
- package/src/tooling/portable/schema/contract.inheritance.js +210 -0
- package/src/tooling/portable/schema/contract.inheritance.record.js +76 -0
- package/src/tooling/portable/schema/contract.machine-shape.js +309 -0
- package/src/tooling/portable/schema/contract.project.js +81 -0
- package/src/tooling/portable/schema/contract.semantic-resolution.js +82 -0
- package/src/tooling/portable/schema/contract.validate.js +0 -0
- package/src/tooling/portable/schema/lexical.shape.v1.js +338 -0
- package/src/tooling/portable/schema/llm.companion.js +108 -0
- package/src/tooling/portable/schema/named.declarations.js +162 -0
- package/src/tooling/portable/schema/ordinary.contract.js +193 -0
- package/src/tooling/portable/schema/ordinary.fields.js +205 -0
- package/src/tooling/portable/schema/qualifiedLocalRoot.projection.js +70 -0
- package/src/tooling/portable/schema/qualifiedLocalRoot.runtime.js +170 -0
- package/src/tooling/portable/schema/schema.contract.js +465 -0
- package/src/tooling/portable/schema/schema.guide.js +326 -0
- package/src/tooling/portable/schema/schema.snapshot.js +119 -0
- package/src/tooling/portable/session/portable.session.js +145 -0
- package/src/tooling/portable/transfer/transfer.plan.js +102 -0
- package/src/transitions/record.transitions.js +484 -0
- package/src/transitions/transition.validate.js +129 -0
- package/src/validation/findings.js +76 -0
- package/src/validation/validateArtifact.js +216 -0
- package/src/workspaces/workspace.entrypointCapability.js +44 -0
- package/src/workspaces/workspace.materialRole.js +242 -0
- package/src/workspaces/workspace.recordPaths.js +426 -0
- package/tools/tiinex-portable.mjs +6 -0
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
import { markPortableBootstrapCanonicalSource } from '../../providers/schema.bootstrap.provenance.js';
|
|
2
|
+
import { readFile } from 'node:fs/promises';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { loadNodePortableInput } from '../../input/node.input.js';
|
|
5
|
+
import { prepareHandoffManufactureCliCommand } from './cli.handoff-manufacture.js';
|
|
6
|
+
import { prepareEditorAssistanceCliInput } from './cli.editor-assistance.js';
|
|
7
|
+
import { prepareOperatorBridgeCliInput } from './cli.operator-bridge.js';
|
|
8
|
+
import { groundInput } from './cli.ground-recovery.js';
|
|
9
|
+
import { prepareQualifyColdStartCommandInput } from './cli.cold-start-input.js';
|
|
10
|
+
import { reductionPreflightCliInput } from './cli.reduction-input.js';
|
|
11
|
+
import {land} from './cli.land.js';
|
|
12
|
+
import { OPERATIONS_WITHOUT_EXPLICIT_MATERIAL } from './cli.material-policy.js';
|
|
13
|
+
|
|
14
|
+
export async function commandInput(parsed, runtime = {}) {
|
|
15
|
+
const flags = parsed.flags;
|
|
16
|
+
if (parsed.command === 'resolve-capabilities') return {
|
|
17
|
+
input: {
|
|
18
|
+
schemaId: flags.schema || parsed.positionals[0] || '',
|
|
19
|
+
capability: flags.capability || parsed.positionals[1] || '',
|
|
20
|
+
checksum: flags.checksum || ''
|
|
21
|
+
},
|
|
22
|
+
options: {}
|
|
23
|
+
};
|
|
24
|
+
if (parsed.command === 'inspect-creation-contract') return {
|
|
25
|
+
input: { schemaId: flags.schema || parsed.positionals[0] || '', transitionType: flags.transition || 'create-artifact' },
|
|
26
|
+
options: {}
|
|
27
|
+
};
|
|
28
|
+
if (parsed.command === 'restore-session') {
|
|
29
|
+
const file = parsed.positionals[0] || flags.input;
|
|
30
|
+
if (!file) throw new Error('portable.cli.session-file.required');
|
|
31
|
+
return { input: JSON.parse(await readFile(file, 'utf8')), options: {} };
|
|
32
|
+
}
|
|
33
|
+
if (parsed.command === 'create-checkpoint') {
|
|
34
|
+
const file = flags.session || parsed.positionals[0] || flags.input;
|
|
35
|
+
if (!file) throw new Error('portable.cli.session-file.required');
|
|
36
|
+
return {
|
|
37
|
+
input: { session: JSON.parse(await readFile(file, 'utf8')), createdAt: flags['created-at'] || '' },
|
|
38
|
+
options: {}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
if (parsed.command === 'restore-checkpoint') {
|
|
42
|
+
const file = parsed.positionals[0] || flags.input;
|
|
43
|
+
if (!file) throw new Error('portable.cli.checkpoint-file.required');
|
|
44
|
+
return { input: JSON.parse(await readFile(file, 'utf8')), options: {} };
|
|
45
|
+
}
|
|
46
|
+
if (parsed.command === 'inspect-runtime-package') {
|
|
47
|
+
const file = flags.bundle || parsed.positionals[0] || flags.input;
|
|
48
|
+
if (!file) throw new Error('portable.cli.package-bundle.required');
|
|
49
|
+
const value = JSON.parse(await readFile(file, 'utf8'));
|
|
50
|
+
return { input: value.bundle || value, options: {} };
|
|
51
|
+
}
|
|
52
|
+
if (parsed.command === 'roundtrip-runtime-package' && (flags.bundle || (parsed.positionals[0] || '').toLowerCase().endsWith('.json'))) {
|
|
53
|
+
const file = flags.bundle || parsed.positionals[0];
|
|
54
|
+
const value = JSON.parse(await readFile(file, 'utf8'));
|
|
55
|
+
return { input: { bundle: value.bundle || value }, options: {} };
|
|
56
|
+
}
|
|
57
|
+
if (parsed.command === 'process-live-turn' || parsed.command === 'read-live-lineage' || parsed.command === 'export-live-lineage') {
|
|
58
|
+
const stateValue = await readOptionalJson(flags.state || parsed.positionals[0]);
|
|
59
|
+
const updateValue = parsed.command === 'process-live-turn' ? await readOptionalJson(flags.turn || flags.update || parsed.positionals[1]) : {};
|
|
60
|
+
const materialTargets = splitFlag(flags.material || flags.workspace);
|
|
61
|
+
const material = await loadCliMaterial(materialTargets, runtime, flags);
|
|
62
|
+
return {
|
|
63
|
+
input: {
|
|
64
|
+
...material,
|
|
65
|
+
...updateValue,
|
|
66
|
+
state: stateValue.state || stateValue.liveLineage || stateValue,
|
|
67
|
+
artifactIds: splitFlag(flags.artifacts),
|
|
68
|
+
...(flags.assets ? { assets: await readOptionalJson(flags.assets) } : {}),
|
|
69
|
+
requireInterleaved: Boolean(flags['require-interleaved'])
|
|
70
|
+
},
|
|
71
|
+
options: {}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
if (parsed.command === 'plan-durable-materialization') {
|
|
75
|
+
const session = await readOptionalJson(flags.session || parsed.positionals[0]);
|
|
76
|
+
const specsValue = await readOptionalJson(flags.specs || parsed.positionals[1]);
|
|
77
|
+
return {
|
|
78
|
+
input: {
|
|
79
|
+
session: session.session || session,
|
|
80
|
+
materializations: specsValue.materializations || specsValue.specs || (Array.isArray(specsValue) ? specsValue : [])
|
|
81
|
+
},
|
|
82
|
+
options: {}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
if (parsed.command === 'explain-findings' || parsed.command === 'repair-plan') {
|
|
86
|
+
const file = parsed.positionals[0] || flags.input;
|
|
87
|
+
if (!file) throw new Error('portable.cli.findings-file.required');
|
|
88
|
+
return { input: JSON.parse(await readFile(file, 'utf8')), options: {} };
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (parsed.command === 'discover-tooling') {
|
|
92
|
+
const host = await readOptionalJson(flags.host || flags.tools);
|
|
93
|
+
return { input: host, options: {} };
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (parsed.command === 'describe-cold-start-ingress') return { input: { ingressKind: flags.ingress || flags.kind || parsed.positionals[0] || 'routed-handoff-package' }, options: {} };
|
|
97
|
+
|
|
98
|
+
if (parsed.command === 'project-cold-start-host') {
|
|
99
|
+
const host = await readOptionalJson(flags.host || flags.tools);
|
|
100
|
+
return { input: { ...host, host, ingressKind: flags.ingress || flags.kind || parsed.positionals[0] || 'routed-handoff-package', toolingInvocationAvailable: Boolean(flags['tooling-invocation']) }, options: {} };
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (parsed.command === 'qualify-cold-start') return prepareQualifyColdStartCommandInput(parsed, flags);
|
|
104
|
+
|
|
105
|
+
if (parsed.command === 'project-grounding-readiness') {
|
|
106
|
+
const packagePath = String(flags.package || parsed.positionals[0] || flags.input || '').trim();
|
|
107
|
+
if (!packagePath) throw new Error('portable.cli.ground.input.required');
|
|
108
|
+
const material = await loadCliExplicitMaterial([packagePath], parsed.command, flags, { maxFiles: flags['max-files'], maxTextBytes: flags['max-text-bytes'] });
|
|
109
|
+
const { host, recoveryAcceptance } = await groundInput(flags, await readOptionalJson(flags.host || flags.tools));
|
|
110
|
+
return {
|
|
111
|
+
input: {
|
|
112
|
+
...material,
|
|
113
|
+
bundle: material,
|
|
114
|
+
route: flags.route || '',
|
|
115
|
+
packageSourcePath: packagePath,
|
|
116
|
+
includeLegacyTopics: Boolean(flags['include-legacy-topics']),
|
|
117
|
+
includeRequiredContext: flags['include-required-context'] || '',
|
|
118
|
+
holderBinding: { roleLabel: flags['holder-role'] || '', holderId: flags['holder-id'] || '' },
|
|
119
|
+
host,
|
|
120
|
+
recoveryAcceptance
|
|
121
|
+
},
|
|
122
|
+
options: {}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
if (parsed.command === 'plan-host-action') {
|
|
127
|
+
const host = await readOptionalJson(flags.host || flags.tools);
|
|
128
|
+
const request = await readOptionalJson(flags.request);
|
|
129
|
+
return {
|
|
130
|
+
input: { ...host, host, action: flags.action || flags.capability || parsed.positionals[0] || '', request },
|
|
131
|
+
options: { allowRemoteWrite: Boolean(flags['allow-remote-write']) }
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
if (parsed.command === 'accept-host-receipt') {
|
|
135
|
+
const plan = await readOptionalJson(flags.plan || parsed.positionals[0]);
|
|
136
|
+
const receipt = await readOptionalJson(flags.receipt || parsed.positionals[1]);
|
|
137
|
+
const prior = await readOptionalJson(flags.prior || flags.previous);
|
|
138
|
+
return { input: { plan: plan.result || plan, receipt: receipt.result || receipt, priorAcceptance: prior.result || prior }, options: {} };
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (parsed.command === 'manufacture-handoff-package') {
|
|
142
|
+
return prepareHandoffManufactureCliCommand(parsed, runtime);
|
|
143
|
+
}
|
|
144
|
+
if (parsed.command === 'describe-checkpoint-gate') return { input: { profile: flags.profile || parsed.positionals[0] || 'source-clean' }, options: {} };
|
|
145
|
+
if (parsed.command === 'qualify-checkpoint') {
|
|
146
|
+
const file = flags.receipt || flags.report || parsed.positionals[0] || flags.input;
|
|
147
|
+
if (!file) throw new Error('portable.cli.checkpoint-qualification-file.required');
|
|
148
|
+
const value = JSON.parse(await readFile(file, 'utf8'));
|
|
149
|
+
return { input: value.qualificationInput || value.input || value, options: {} };
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
const explicitTargets = parsed.positionals.length ? parsed.positionals : flags.input ? [flags.input] : [];
|
|
153
|
+
const schemaAwareOperations = new Set(['resolve-schema-material', 'resolve-schema-chain-material', 'describe-schema-chain', 'make-writer-brief', 'schema-guide', 'read-schema-section', 'plan-artifact', 'prepare-materialization', 'create-local-artifact-set', 'create-local-draft', 'update-local-draft', 'validate-draft', 'stage-draft', 'materialize-durable-findings', 'process-live-turn', 'export-live-lineage']);
|
|
154
|
+
const defaultSchemaTargets = schemaAwareOperations.has(parsed.command) ? normalizeRuntimePaths(runtime.defaultSchemaMaterialPaths) : [];
|
|
155
|
+
const schemaTargets = defaultSchemaTargets.filter((target) => !explicitTargets.includes(target));
|
|
156
|
+
if (!explicitTargets.length && !schemaTargets.length && !OPERATIONS_WITHOUT_EXPLICIT_MATERIAL.has(parsed.command)) throw new Error('portable.cli.input.required');
|
|
157
|
+
const loadOptions = { maxFiles: flags['max-files'], maxTextBytes: flags['max-text-bytes'] };
|
|
158
|
+
const explicitMaterial = explicitTargets.length ? await loadCliExplicitMaterial(explicitTargets, parsed.command, flags, loadOptions) : emptyMaterial();
|
|
159
|
+
const defaultSchemaMaterial = schemaTargets.length ? decorateDefaultSchemaMaterial(await loadNodePortableInput(schemaTargets, loadOptions), runtime.defaultSchemaSource) : emptyMaterial();
|
|
160
|
+
const material = mergeLoadedMaterial(explicitMaterial, defaultSchemaMaterial);
|
|
161
|
+
if (parsed.command === 'project-handoff-carrier-output') return {
|
|
162
|
+
input: { ...material, route: flags.route || '', collisionInstance: flags['collision-instance'] || 1 },
|
|
163
|
+
options: {}
|
|
164
|
+
};
|
|
165
|
+
if(parsed.command==='project-workspace-landing')return land(flags,material,readOptionalJson,splitFlag);
|
|
166
|
+
const operatorBridgeInput = await prepareOperatorBridgeCliInput(parsed.command, material, flags, readOptionalJson);
|
|
167
|
+
if (operatorBridgeInput) return operatorBridgeInput;
|
|
168
|
+
if (parsed.command === 'project-editor-assistance') return prepareEditorAssistanceCliInput(material, flags);
|
|
169
|
+
const options = {
|
|
170
|
+
startId: flags.start || '',
|
|
171
|
+
direction: flags.direction || 'ancestors',
|
|
172
|
+
maxDepth: flags.depth || 3,
|
|
173
|
+
includeMarkdown: Boolean(flags['include-markdown']),
|
|
174
|
+
includeSchemaMarkdown: flags['no-schema-markdown'] ? false : true
|
|
175
|
+
};
|
|
176
|
+
const host = await readOptionalJson(flags.host);
|
|
177
|
+
const schemaCache = await readOptionalJson(flags.cache);
|
|
178
|
+
if (parsed.command === 'ground-cold-consumer') {
|
|
179
|
+
const interaction = await readOptionalJson(flags.interaction);
|
|
180
|
+
const participantsValue = await readOptionalJson(flags.participants);
|
|
181
|
+
const contributionsValue = await readOptionalJson(flags.contributions);
|
|
182
|
+
const roleMaterialPath = String(flags['role-material'] || '').trim();
|
|
183
|
+
const roleMaterials = roleMaterialPath ? [{ path: roleMaterialPath, markdown: await readFile(roleMaterialPath, 'utf8') }] : [];
|
|
184
|
+
return {
|
|
185
|
+
input: {
|
|
186
|
+
...material,
|
|
187
|
+
bundle: material,
|
|
188
|
+
host,
|
|
189
|
+
ingressKind: flags.ingress || flags.kind || 'routed-handoff-package',
|
|
190
|
+
route: flags.route || '',
|
|
191
|
+
interaction: interaction.interaction || interaction,
|
|
192
|
+
participants: participantsValue.participants || (Array.isArray(participantsValue) ? participantsValue : []),
|
|
193
|
+
contributions: contributionsValue.contributions || (Array.isArray(contributionsValue) ? contributionsValue : []),
|
|
194
|
+
currentContributionId: flags['current-contribution'] || '',
|
|
195
|
+
roleMaterials,
|
|
196
|
+
toolingAvailable: flags['tooling-unavailable'] ? false : true
|
|
197
|
+
},
|
|
198
|
+
options
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
if (parsed.command === 'prepare-task') return {
|
|
202
|
+
input: {
|
|
203
|
+
...material,
|
|
204
|
+
host,
|
|
205
|
+
schemaCache,
|
|
206
|
+
task: flags.task || flags.intent || 'inspect',
|
|
207
|
+
schemaId: flags.schema || '',
|
|
208
|
+
query: flags.query || '',
|
|
209
|
+
assetPath: flags.asset || '',
|
|
210
|
+
path: flags.path || '',
|
|
211
|
+
markdown: flags.draft ? (draftFromMaterial(material, flags.draft).markdown) : '',
|
|
212
|
+
values: await readOptionalJson(flags.values),
|
|
213
|
+
inputs: await readOptionalJson(flags.values)
|
|
214
|
+
},
|
|
215
|
+
options
|
|
216
|
+
};
|
|
217
|
+
if (parsed.command === 'materialize-durable-findings') {
|
|
218
|
+
const session = await readOptionalJson(flags.session);
|
|
219
|
+
const specsValue = await readOptionalJson(flags.specs);
|
|
220
|
+
return {
|
|
221
|
+
input: {
|
|
222
|
+
...material,
|
|
223
|
+
session: session.session || session,
|
|
224
|
+
materializations: specsValue.materializations || specsValue.specs || (Array.isArray(specsValue) ? specsValue : [])
|
|
225
|
+
},
|
|
226
|
+
options
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
if (parsed.command === 'build-runtime-package' || parsed.command === 'roundtrip-runtime-package') {
|
|
230
|
+
const session = await readOptionalJson(flags.session);
|
|
231
|
+
const stagedValue = await readOptionalJson(flags.staged);
|
|
232
|
+
return {
|
|
233
|
+
input: {
|
|
234
|
+
...material,
|
|
235
|
+
session: session.session || session,
|
|
236
|
+
stagedArtifacts: stagedValue.stagedArtifacts || (Array.isArray(stagedValue) ? stagedValue : []),
|
|
237
|
+
title: flags.title || '',
|
|
238
|
+
workspaceId: flags['workspace-id'] || '',
|
|
239
|
+
allowBlocked: Boolean(flags['allow-blocked']),
|
|
240
|
+
includeDegraded: flags['exclude-degraded'] ? false : true
|
|
241
|
+
},
|
|
242
|
+
options
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
if (parsed.command === 'list-material-providers') return {
|
|
246
|
+
input: { ...material, host, schemaCache },
|
|
247
|
+
options
|
|
248
|
+
};
|
|
249
|
+
if (parsed.command === 'resolve-schema-material') return {
|
|
250
|
+
input: { ...material, host, schemaCache, schemaId: flags.schema || parsed.positionals[0] || '', repository: flags.repository || runtime.defaultSchemaProviderSource?.repository || '', ref: flags.ref || runtime.defaultSchemaProviderSource?.ref || '', sourceProfile: runtime.defaultSchemaProviderSource || null },
|
|
251
|
+
options
|
|
252
|
+
};
|
|
253
|
+
if (parsed.command === 'resolve-schema-chain-material') return {
|
|
254
|
+
input: { ...material, host, schemaCache, schemaId: flags.schema || parsed.positionals[0] || '', repository: flags.repository || runtime.defaultSchemaProviderSource?.repository || '', ref: flags.ref || runtime.defaultSchemaProviderSource?.ref || '', sourceProfile: runtime.defaultSchemaProviderSource || null, maxDepth: flags.depth || 16 },
|
|
255
|
+
options
|
|
256
|
+
};
|
|
257
|
+
if (parsed.command === 'make-writer-brief') return {
|
|
258
|
+
input: { ...material, schemaId: flags.schema || '', transitionType: flags.transition || 'create-artifact' },
|
|
259
|
+
options
|
|
260
|
+
};
|
|
261
|
+
if (parsed.command === 'describe-schema-chain') return {
|
|
262
|
+
input: { ...material, schemaId: flags.schema || parsed.positionals[0] || '' },
|
|
263
|
+
options
|
|
264
|
+
};
|
|
265
|
+
if (parsed.command === 'schema-guide') return {
|
|
266
|
+
input: { ...material, schemaId: flags.schema || '', task: flags.task || 'read', detail: flags.detail || 'compact' },
|
|
267
|
+
options
|
|
268
|
+
};
|
|
269
|
+
if (parsed.command === 'read-schema-section') return {
|
|
270
|
+
input: { ...material, schemaId: flags.schema || '', sections: splitFlag(flags.section || flags.sections) },
|
|
271
|
+
options: { ...options, maxChars: flags['max-chars'] || 12000 }
|
|
272
|
+
};
|
|
273
|
+
if (parsed.command === 'plan-artifact') return {
|
|
274
|
+
input: { ...material, schemaId: flags.schema || '', task: flags.task || 'create', detail: flags.detail || 'compact', inputs: await readOptionalJson(flags.values) },
|
|
275
|
+
options
|
|
276
|
+
};
|
|
277
|
+
if (parsed.command === 'prepare-materialization' || parsed.command === 'create-local-artifact-set') {
|
|
278
|
+
const proposalDocument = await readOptionalJson(flags.proposals || flags.plan);
|
|
279
|
+
const proposals = proposalDocument.proposals || proposalDocument.proposal || (Array.isArray(proposalDocument) ? proposalDocument : []);
|
|
280
|
+
return { input: { ...material, proposals }, options };
|
|
281
|
+
}
|
|
282
|
+
if (parsed.command === 'create-local-draft') return {
|
|
283
|
+
input: {
|
|
284
|
+
...material,
|
|
285
|
+
schemaId: flags.schema || '',
|
|
286
|
+
transitionType: flags.transition || 'create-artifact',
|
|
287
|
+
path: flags.path || '',
|
|
288
|
+
...(Object.prototype.hasOwnProperty.call(flags, 'title') ? { title: flags.title } : {}),
|
|
289
|
+
...(Object.prototype.hasOwnProperty.call(flags, 'summary') ? { summary: flags.summary } : {}),
|
|
290
|
+
...(Object.prototype.hasOwnProperty.call(flags, 'why') ? { why: flags.why } : {}),
|
|
291
|
+
...(Object.prototype.hasOwnProperty.call(flags, 'authors') ? { authors: flags.authors } : {}),
|
|
292
|
+
...(Object.prototype.hasOwnProperty.call(flags, 'created-at') ? { createdAt: flags['created-at'] } : {}),
|
|
293
|
+
schemaReferences: await readOptionalJson(flags.references || flags['schema-references']),
|
|
294
|
+
values: await readOptionalJson(flags.values),
|
|
295
|
+
sections: await readOptionalJson(flags.sections),
|
|
296
|
+
parent: await readOptionalJson(flags.parent),
|
|
297
|
+
allowIncomplete: Boolean(flags['allow-incomplete'])
|
|
298
|
+
},
|
|
299
|
+
options
|
|
300
|
+
};
|
|
301
|
+
if (parsed.command === 'update-local-draft') {
|
|
302
|
+
const draft = draftFromMaterial(material, flags.draft || '');
|
|
303
|
+
const replacementPath = String(flags.replacement || '').trim();
|
|
304
|
+
if (!replacementPath) throw new Error('portable.cli.replacement-file.required');
|
|
305
|
+
return {
|
|
306
|
+
input: {
|
|
307
|
+
...material,
|
|
308
|
+
draft: { ...draft, schemaId: flags.schema || draft.schemaId || '', sourceMode: 'local-portable-draft', source: null },
|
|
309
|
+
replacementMarkdown: await readFile(replacementPath, 'utf8'),
|
|
310
|
+
allowInvalid: Boolean(flags['allow-invalid']),
|
|
311
|
+
allowSchemaChange: Boolean(flags['allow-schema-change']),
|
|
312
|
+
allowContinuityChange: Boolean(flags['allow-continuity-change'])
|
|
313
|
+
},
|
|
314
|
+
options
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
if (parsed.command === 'delete-local-draft') {
|
|
318
|
+
const draft = draftFromMaterial(material, flags.draft || '');
|
|
319
|
+
return {
|
|
320
|
+
input: {
|
|
321
|
+
draft: { ...draft, schemaId: flags.schema || draft.schemaId || '', sourceMode: 'local-portable-draft', source: null },
|
|
322
|
+
confirmId: flags.confirm || '',
|
|
323
|
+
reason: flags.reason || ''
|
|
324
|
+
},
|
|
325
|
+
options
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
if (parsed.command === 'stage-draft') {
|
|
329
|
+
const draft = draftFromMaterial(material, flags.draft || '');
|
|
330
|
+
return { input: { ...material, draft: { ...draft, schemaId: flags.schema || draft.schemaId || '', sourceMode: 'local-portable-draft', source: null }, allowInvalid: Boolean(flags['allow-invalid']) }, options };
|
|
331
|
+
}
|
|
332
|
+
if (parsed.command === 'inspect-assets') return { input: material, options };
|
|
333
|
+
if (parsed.command === 'prepare-asset-analysis') return {
|
|
334
|
+
input: { ...material, assetPath: flags.asset || flags.path || '', host },
|
|
335
|
+
options
|
|
336
|
+
};
|
|
337
|
+
if (parsed.command === 'validate-draft') {
|
|
338
|
+
const draft = draftFromMaterial(material, flags.draft || '');
|
|
339
|
+
return { input: { ...material, ...draft, schemaId: flags.schema || draft.schemaId || '' }, options };
|
|
340
|
+
}
|
|
341
|
+
if (parsed.command === 'project-lifecycle-readiness') {
|
|
342
|
+
const value = await readOptionalJson(flags.facts);
|
|
343
|
+
const facts = value.facts || value;
|
|
344
|
+
return { input: { ...material, facts, controllingTask: flags['controlling-task'] || flags.task || value.controllingTask || '', workObligations: value.workObligations || facts.workObligations || [] }, options };
|
|
345
|
+
}
|
|
346
|
+
if (parsed.command === 'reduction-preflight') return reductionPreflightCliInput({ material, flags, options, readOptionalJson, splitFlag });
|
|
347
|
+
if (parsed.command === 'search-lineage') return {
|
|
348
|
+
input: {
|
|
349
|
+
...material,
|
|
350
|
+
query: flags.query || '',
|
|
351
|
+
scope: flags.scope || '',
|
|
352
|
+
startId: flags.start || '',
|
|
353
|
+
maxDepth: flags.depth || 16,
|
|
354
|
+
filters: {
|
|
355
|
+
schemaIds: splitFlag(flags.schema),
|
|
356
|
+
parentSchemaIds: splitFlag(flags['parent-schema']),
|
|
357
|
+
sourceModes: splitFlag(flags.source),
|
|
358
|
+
paths: splitFlag(flags.path),
|
|
359
|
+
relation: flags.relation || '',
|
|
360
|
+
hasIntegrity: flags.integrity,
|
|
361
|
+
hasContinuityContext: flags.continuity,
|
|
362
|
+
findingSeverities: splitFlag(flags.finding),
|
|
363
|
+
qualification: splitFlag(flags.qualification),
|
|
364
|
+
searchFields: splitFlag(flags.fields),
|
|
365
|
+
limit: flags.limit,
|
|
366
|
+
offset: flags.offset,
|
|
367
|
+
snippetChars: flags['snippet-chars']
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
options
|
|
371
|
+
};
|
|
372
|
+
return { input: material, options };
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
const LEGACY_TOPICS_GROUNDING_COMMANDS = new Set(['inspect', 'audit', 'project-operating-overview', 'project-grounding-readiness', 'resolve-lineage', 'search-lineage', 'prepare-task']);
|
|
376
|
+
|
|
377
|
+
async function loadCliExplicitMaterial(targets = [], command = '', flags = {}, loadOptions = {}) {
|
|
378
|
+
const loaded = [];
|
|
379
|
+
for (const target of targets) {
|
|
380
|
+
loaded.push(await loadNodePortableInput([target], cliGroundingLoadOptions(target, command, flags, loadOptions)));
|
|
381
|
+
}
|
|
382
|
+
return loaded.reduce((material, next) => mergeLoadedMaterial(material, next), emptyMaterial());
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
function cliGroundingLoadOptions(target = '', command = '', flags = {}, loadOptions = {}) {
|
|
386
|
+
if (!LEGACY_TOPICS_GROUNDING_COMMANDS.has(String(command || ''))) return loadOptions;
|
|
387
|
+
if (Boolean(flags['include-legacy-topics'])) return loadOptions;
|
|
388
|
+
const normalized = path.resolve(String(target || '')).replace(/\\/g, '/');
|
|
389
|
+
if (/\.zip$/i.test(normalized)) return loadOptions;
|
|
390
|
+
if (/(?:^|\/)\.topics\/development(?:\/|$)/.test(normalized)) return loadOptions;
|
|
391
|
+
const prefix = normalized.endsWith('/.topics') ? 'development' : '.topics/development';
|
|
392
|
+
return { ...loadOptions, excludePathPrefixes: [prefix] };
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
async function loadCliMaterial(targets = [], runtime = {}, flags = {}) {
|
|
396
|
+
const explicitTargets = normalizeRuntimePaths(targets);
|
|
397
|
+
const schemaTargets = normalizeRuntimePaths(runtime.defaultSchemaMaterialPaths).filter((target) => !explicitTargets.includes(target));
|
|
398
|
+
const loadOptions = { maxFiles: flags['max-files'], maxTextBytes: flags['max-text-bytes'] };
|
|
399
|
+
const explicitMaterial = explicitTargets.length ? await loadNodePortableInput(explicitTargets, loadOptions) : emptyMaterial();
|
|
400
|
+
const defaultSchemaMaterial = schemaTargets.length ? decorateDefaultSchemaMaterial(await loadNodePortableInput(schemaTargets, loadOptions), runtime.defaultSchemaSource) : emptyMaterial();
|
|
401
|
+
return mergeLoadedMaterial(explicitMaterial, defaultSchemaMaterial);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
async function readOptionalJson(file = '') {
|
|
405
|
+
if (!file) return {};
|
|
406
|
+
return JSON.parse(await readFile(file, 'utf8'));
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
function draftFromMaterial(material = {}, preferredPath = '') {
|
|
411
|
+
const files = Array.isArray(material.files) ? material.files : [];
|
|
412
|
+
const preferred = preferredPath ? files.find((file) => file.path === preferredPath || file.path.endsWith(preferredPath)) : null;
|
|
413
|
+
const candidate = preferred || files.find((file) => !String(file.path || '').toLowerCase().endsWith('.schema.md') && typeof file.content === 'string') || files.find((file) => typeof file.content === 'string');
|
|
414
|
+
if (!candidate) throw new Error('portable.cli.draft.required');
|
|
415
|
+
return { path: candidate.path || 'draft.md', markdown: candidate.content || candidate.markdown || '', schemaId: '' };
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
function emptyMaterial() {
|
|
419
|
+
return { files: [], findings: [], sourceMode: 'portable-node-local' };
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
function decorateDefaultSchemaMaterial(material = {}, source = {}) {
|
|
423
|
+
const repository = String(source.repository || '');
|
|
424
|
+
const commit = String(source.commit || source.ref || '');
|
|
425
|
+
const sourcePathPrefix = String(source.sourcePathPrefix || '.topics/.schemas').replace(/\/$/, '');
|
|
426
|
+
return {
|
|
427
|
+
...material,
|
|
428
|
+
files: (material.files || []).map((file) => ({
|
|
429
|
+
...file,
|
|
430
|
+
sourceMode: 'portable-bootstrap-canonical-schema',
|
|
431
|
+
source: markPortableBootstrapCanonicalSource({
|
|
432
|
+
providerId: 'bootstrap-canonical-schema-pack',
|
|
433
|
+
repository,
|
|
434
|
+
ref: commit,
|
|
435
|
+
commit,
|
|
436
|
+
path: `${sourcePathPrefix}/${file.path}`,
|
|
437
|
+
authority: 'canonical-core',
|
|
438
|
+
qualification: 'bundled-byte-bound-canonical-snapshot',
|
|
439
|
+
remoteFetch: false,
|
|
440
|
+
cached: false
|
|
441
|
+
})
|
|
442
|
+
}))
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
function mergeLoadedMaterial(primary = {}, secondary = {}) {
|
|
447
|
+
return {
|
|
448
|
+
files: [...(primary.files || []), ...(secondary.files || [])],
|
|
449
|
+
findings: [...(primary.findings || []), ...(secondary.findings || [])],
|
|
450
|
+
sourceMode: primary.files?.length ? primary.sourceMode : secondary.sourceMode || 'portable-node-local'
|
|
451
|
+
};
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
function normalizeRuntimePaths(value) { const paths = Array.isArray(value) ? value : value ? [value] : []; return paths.map((entry) => String(entry || '').trim()).filter(Boolean); }
|
|
455
|
+
function splitFlag(value) { return !value || value === true ? [] : String(value).split(',').map((item) => item.trim()).filter(Boolean); }
|