@tiangong-lca/foundry 0.1.2
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 +21 -0
- package/README.md +532 -0
- package/docs/architecture.md +450 -0
- package/docs/foundry-task-contracts.md +147 -0
- package/docs/import-profiles/bafu/constraints.md +343 -0
- package/docs/import-profiles/bafu/leaf-process-classification-authoring.md +153 -0
- package/docs/import-profiles/bafu/profile.md +183 -0
- package/docs/import-profiles/uslci/constraints.md +29 -0
- package/docs/import-profiles/uslci/profile.md +43 -0
- package/docs/import-profiles/worldsteel/constraints.md +77 -0
- package/docs/import-profiles/worldsteel/import-coverage.md +93 -0
- package/docs/import-profiles/worldsteel/import-plan.md +375 -0
- package/docs/import-profiles/worldsteel/profile.md +78 -0
- package/docs/package-distribution-contract.md +287 -0
- package/docs/public-runtime-contract.md +218 -0
- package/docs/runtime-context-contract.md +138 -0
- package/docs/safety-policy.md +164 -0
- package/docs/task-authorization-contract.md +131 -0
- package/docs/uslci-import-runbook.md +336 -0
- package/docs/workspace-migration-contract.md +127 -0
- package/package-dist/assets/foundry-package-descriptor.json +1661 -0
- package/package-dist/scripts/foundry-facade.d.ts +78 -0
- package/package-dist/scripts/foundry-facade.js +1317 -0
- package/package-dist/scripts/foundry-runtime.d.ts +180 -0
- package/package-dist/scripts/foundry-runtime.js +190 -0
- package/package-dist/scripts/lib/batch-orchestration/scope-attempt-ledger.d.ts +27 -0
- package/package-dist/scripts/lib/batch-orchestration/scope-attempt-ledger.js +85 -0
- package/package-dist/scripts/lib/batch-orchestration/scope-resume-contract.d.ts +38 -0
- package/package-dist/scripts/lib/batch-orchestration/scope-resume-contract.js +90 -0
- package/package-dist/scripts/lib/bundle-row-types.d.ts +44 -0
- package/package-dist/scripts/lib/bundle-row-types.js +46 -0
- package/package-dist/scripts/lib/bundle-sample-utils.d.ts +183 -0
- package/package-dist/scripts/lib/bundle-sample-utils.js +526 -0
- package/package-dist/scripts/lib/bundle-source-context.d.ts +31 -0
- package/package-dist/scripts/lib/bundle-source-context.js +142 -0
- package/package-dist/scripts/lib/canonical-description.d.ts +12 -0
- package/package-dist/scripts/lib/canonical-description.js +72 -0
- package/package-dist/scripts/lib/canonical-support-rewrites.d.ts +127 -0
- package/package-dist/scripts/lib/canonical-support-rewrites.js +527 -0
- package/package-dist/scripts/lib/decision-owners/classification.d.ts +245 -0
- package/package-dist/scripts/lib/decision-owners/classification.js +754 -0
- package/package-dist/scripts/lib/decision-owners/identity-preflight.d.ts +333 -0
- package/package-dist/scripts/lib/decision-owners/identity-preflight.js +1353 -0
- package/package-dist/scripts/lib/decision-owners/identity-task.d.ts +130 -0
- package/package-dist/scripts/lib/decision-owners/identity-task.js +494 -0
- package/package-dist/scripts/lib/decision-owners/identity.d.ts +74 -0
- package/package-dist/scripts/lib/decision-owners/identity.js +443 -0
- package/package-dist/scripts/lib/decision-owners/location.d.ts +239 -0
- package/package-dist/scripts/lib/decision-owners/location.js +704 -0
- package/package-dist/scripts/lib/decision-task-utils.d.ts +484 -0
- package/package-dist/scripts/lib/decision-task-utils.js +735 -0
- package/package-dist/scripts/lib/finalize-owners/cli-wrappers.d.ts +52 -0
- package/package-dist/scripts/lib/finalize-owners/cli-wrappers.js +146 -0
- package/package-dist/scripts/lib/finalize-owners/commit-handoff.d.ts +79 -0
- package/package-dist/scripts/lib/finalize-owners/commit-handoff.js +515 -0
- package/package-dist/scripts/lib/finalize-owners/post-authoring.d.ts +234 -0
- package/package-dist/scripts/lib/finalize-owners/post-authoring.js +1720 -0
- package/package-dist/scripts/lib/finalize-owners/post-write-closeout.d.ts +140 -0
- package/package-dist/scripts/lib/finalize-owners/post-write-closeout.js +656 -0
- package/package-dist/scripts/lib/foundry-args.d.ts +7 -0
- package/package-dist/scripts/lib/foundry-args.js +38 -0
- package/package-dist/scripts/lib/foundry-authentication-environment.d.ts +17 -0
- package/package-dist/scripts/lib/foundry-authentication-environment.js +55 -0
- package/package-dist/scripts/lib/foundry-authorization-input.d.ts +31 -0
- package/package-dist/scripts/lib/foundry-authorization-input.js +151 -0
- package/package-dist/scripts/lib/foundry-command-metadata.d.ts +32 -0
- package/package-dist/scripts/lib/foundry-command-metadata.js +1012 -0
- package/package-dist/scripts/lib/foundry-command-registry.d.ts +34 -0
- package/package-dist/scripts/lib/foundry-command-registry.js +241 -0
- package/package-dist/scripts/lib/foundry-command-spec.d.ts +1 -0
- package/package-dist/scripts/lib/foundry-command-spec.js +1 -0
- package/package-dist/scripts/lib/foundry-decision-owners.d.ts +17 -0
- package/package-dist/scripts/lib/foundry-decision-owners.js +68 -0
- package/package-dist/scripts/lib/foundry-decision-routing.d.ts +3 -0
- package/package-dist/scripts/lib/foundry-decision-routing.js +38 -0
- package/package-dist/scripts/lib/foundry-execution-admission.d.ts +33 -0
- package/package-dist/scripts/lib/foundry-execution-admission.js +225 -0
- package/package-dist/scripts/lib/foundry-execution-attempt.d.ts +11 -0
- package/package-dist/scripts/lib/foundry-execution-attempt.js +33 -0
- package/package-dist/scripts/lib/foundry-execution-context-format.d.ts +18 -0
- package/package-dist/scripts/lib/foundry-execution-context-format.js +83 -0
- package/package-dist/scripts/lib/foundry-facade-store.d.ts +25 -0
- package/package-dist/scripts/lib/foundry-facade-store.js +449 -0
- package/package-dist/scripts/lib/foundry-finalize-owners.d.ts +21 -0
- package/package-dist/scripts/lib/foundry-finalize-owners.js +203 -0
- package/package-dist/scripts/lib/foundry-identity-owners.d.ts +13 -0
- package/package-dist/scripts/lib/foundry-identity-owners.js +58 -0
- package/package-dist/scripts/lib/foundry-managed-host.d.ts +7 -0
- package/package-dist/scripts/lib/foundry-managed-host.js +173 -0
- package/package-dist/scripts/lib/foundry-migration-adoption-plan.d.ts +39 -0
- package/package-dist/scripts/lib/foundry-migration-adoption-plan.js +467 -0
- package/package-dist/scripts/lib/foundry-migration-adoption.d.ts +31 -0
- package/package-dist/scripts/lib/foundry-migration-adoption.js +187 -0
- package/package-dist/scripts/lib/foundry-migration-authority.d.ts +42 -0
- package/package-dist/scripts/lib/foundry-migration-authority.js +280 -0
- package/package-dist/scripts/lib/foundry-migration-inventory.d.ts +31 -0
- package/package-dist/scripts/lib/foundry-migration-inventory.js +148 -0
- package/package-dist/scripts/lib/foundry-migration-plan.d.ts +48 -0
- package/package-dist/scripts/lib/foundry-migration-plan.js +234 -0
- package/package-dist/scripts/lib/foundry-migration-replay.d.ts +3 -0
- package/package-dist/scripts/lib/foundry-migration-replay.js +134 -0
- package/package-dist/scripts/lib/foundry-migration-stage.d.ts +15 -0
- package/package-dist/scripts/lib/foundry-migration-stage.js +152 -0
- package/package-dist/scripts/lib/foundry-migration-transfer-io.d.ts +13 -0
- package/package-dist/scripts/lib/foundry-migration-transfer-io.js +226 -0
- package/package-dist/scripts/lib/foundry-migration-transfer.d.ts +36 -0
- package/package-dist/scripts/lib/foundry-migration-transfer.js +350 -0
- package/package-dist/scripts/lib/foundry-operation-result.d.ts +71 -0
- package/package-dist/scripts/lib/foundry-operation-result.js +264 -0
- package/package-dist/scripts/lib/foundry-owner-execution-store.d.ts +319 -0
- package/package-dist/scripts/lib/foundry-owner-execution-store.js +293 -0
- package/package-dist/scripts/lib/foundry-owner-readback.d.ts +22 -0
- package/package-dist/scripts/lib/foundry-owner-readback.js +189 -0
- package/package-dist/scripts/lib/foundry-owner-trace-acceptance.d.ts +15 -0
- package/package-dist/scripts/lib/foundry-owner-trace-acceptance.js +68 -0
- package/package-dist/scripts/lib/foundry-package-contract.d.ts +56 -0
- package/package-dist/scripts/lib/foundry-package-contract.js +392 -0
- package/package-dist/scripts/lib/foundry-private-path.d.ts +2 -0
- package/package-dist/scripts/lib/foundry-private-path.js +20 -0
- package/package-dist/scripts/lib/foundry-runtime-cache.d.ts +3 -0
- package/package-dist/scripts/lib/foundry-runtime-cache.js +25 -0
- package/package-dist/scripts/lib/foundry-runtime-command-policy.d.ts +20 -0
- package/package-dist/scripts/lib/foundry-runtime-command-policy.js +173 -0
- package/package-dist/scripts/lib/foundry-runtime-context-types.d.ts +59 -0
- package/package-dist/scripts/lib/foundry-runtime-context-types.js +1 -0
- package/package-dist/scripts/lib/foundry-runtime-context.d.ts +27 -0
- package/package-dist/scripts/lib/foundry-runtime-context.js +668 -0
- package/package-dist/scripts/lib/foundry-runtime-environment.d.ts +9 -0
- package/package-dist/scripts/lib/foundry-runtime-environment.js +90 -0
- package/package-dist/scripts/lib/foundry-runtime-error.d.ts +4 -0
- package/package-dist/scripts/lib/foundry-runtime-error.js +8 -0
- package/package-dist/scripts/lib/foundry-runtime-identity.d.ts +18 -0
- package/package-dist/scripts/lib/foundry-runtime-identity.js +127 -0
- package/package-dist/scripts/lib/foundry-runtime-paths.d.ts +16 -0
- package/package-dist/scripts/lib/foundry-runtime-paths.js +159 -0
- package/package-dist/scripts/lib/foundry-runtime-qualification.d.ts +66 -0
- package/package-dist/scripts/lib/foundry-runtime-qualification.js +223 -0
- package/package-dist/scripts/lib/foundry-runtime-selection-record.d.ts +16 -0
- package/package-dist/scripts/lib/foundry-runtime-selection-record.js +32 -0
- package/package-dist/scripts/lib/foundry-runtime-selection.d.ts +14 -0
- package/package-dist/scripts/lib/foundry-runtime-selection.js +123 -0
- package/package-dist/scripts/lib/foundry-runtime-utils.d.ts +178 -0
- package/package-dist/scripts/lib/foundry-runtime-utils.js +603 -0
- package/package-dist/scripts/lib/foundry-semantic-input.d.ts +30 -0
- package/package-dist/scripts/lib/foundry-semantic-input.js +132 -0
- package/package-dist/scripts/lib/foundry-task-authorization.d.ts +68 -0
- package/package-dist/scripts/lib/foundry-task-authorization.js +350 -0
- package/package-dist/scripts/lib/foundry-task-io.d.ts +18 -0
- package/package-dist/scripts/lib/foundry-task-io.js +92 -0
- package/package-dist/scripts/lib/foundry-task-registration.d.ts +6 -0
- package/package-dist/scripts/lib/foundry-task-registration.js +384 -0
- package/package-dist/scripts/lib/foundry-task-start-spec.d.ts +34 -0
- package/package-dist/scripts/lib/foundry-task-start-spec.js +161 -0
- package/package-dist/scripts/lib/foundry-task-store.d.ts +18 -0
- package/package-dist/scripts/lib/foundry-task-store.js +466 -0
- package/package-dist/scripts/lib/foundry-task-types.d.ts +99 -0
- package/package-dist/scripts/lib/foundry-task-types.js +1 -0
- package/package-dist/scripts/lib/foundry-workflow-approval-continuation.d.ts +6 -0
- package/package-dist/scripts/lib/foundry-workflow-approval-continuation.js +136 -0
- package/package-dist/scripts/lib/foundry-workflow-assessment.d.ts +3 -0
- package/package-dist/scripts/lib/foundry-workflow-assessment.js +231 -0
- package/package-dist/scripts/lib/foundry-workflow-authorization.d.ts +22 -0
- package/package-dist/scripts/lib/foundry-workflow-authorization.js +174 -0
- package/package-dist/scripts/lib/foundry-workflow-context.d.ts +3 -0
- package/package-dist/scripts/lib/foundry-workflow-context.js +99 -0
- package/package-dist/scripts/lib/foundry-workflow-decisions.d.ts +18 -0
- package/package-dist/scripts/lib/foundry-workflow-decisions.js +123 -0
- package/package-dist/scripts/lib/foundry-workflow-execution.d.ts +8 -0
- package/package-dist/scripts/lib/foundry-workflow-execution.js +248 -0
- package/package-dist/scripts/lib/foundry-workflow-finalize.d.ts +13 -0
- package/package-dist/scripts/lib/foundry-workflow-finalize.js +264 -0
- package/package-dist/scripts/lib/foundry-workflow-identity-apply.d.ts +14 -0
- package/package-dist/scripts/lib/foundry-workflow-identity-apply.js +159 -0
- package/package-dist/scripts/lib/foundry-workflow-identity.d.ts +6 -0
- package/package-dist/scripts/lib/foundry-workflow-identity.js +153 -0
- package/package-dist/scripts/lib/foundry-workflow-import.d.ts +4 -0
- package/package-dist/scripts/lib/foundry-workflow-import.js +70 -0
- package/package-dist/scripts/lib/foundry-workflow-io.d.ts +11 -0
- package/package-dist/scripts/lib/foundry-workflow-io.js +77 -0
- package/package-dist/scripts/lib/foundry-workflow-reference-verify.d.ts +41 -0
- package/package-dist/scripts/lib/foundry-workflow-reference-verify.js +266 -0
- package/package-dist/scripts/lib/foundry-workflow-rows.d.ts +2 -0
- package/package-dist/scripts/lib/foundry-workflow-rows.js +47 -0
- package/package-dist/scripts/lib/foundry-workflow-semantic.d.ts +5 -0
- package/package-dist/scripts/lib/foundry-workflow-semantic.js +367 -0
- package/package-dist/scripts/lib/foundry-workflow-state.d.ts +37 -0
- package/package-dist/scripts/lib/foundry-workflow-state.js +158 -0
- package/package-dist/scripts/lib/full-context-proof.d.ts +51 -0
- package/package-dist/scripts/lib/full-context-proof.js +932 -0
- package/package-dist/scripts/lib/identity-preflight-artifacts.d.ts +184 -0
- package/package-dist/scripts/lib/identity-preflight-artifacts.js +573 -0
- package/package-dist/scripts/lib/identity-preflight-proof.d.ts +117 -0
- package/package-dist/scripts/lib/identity-preflight-proof.js +341 -0
- package/package-dist/scripts/lib/identity-reference-rewrite-utils.d.ts +147 -0
- package/package-dist/scripts/lib/identity-reference-rewrite-utils.js +817 -0
- package/package-dist/scripts/lib/import-curation/authoring-packages.d.ts +28 -0
- package/package-dist/scripts/lib/import-curation/authoring-packages.js +92 -0
- package/package-dist/scripts/lib/import-curation/curation-cleanup.d.ts +32 -0
- package/package-dist/scripts/lib/import-curation/curation-cleanup.js +203 -0
- package/package-dist/scripts/lib/import-curation/curation-gate.d.ts +47 -0
- package/package-dist/scripts/lib/import-curation/curation-gate.js +528 -0
- package/package-dist/scripts/lib/import-curation/internal/artifact-inputs.d.ts +24 -0
- package/package-dist/scripts/lib/import-curation/internal/artifact-inputs.js +152 -0
- package/package-dist/scripts/lib/import-curation/internal/authoring-patch-workflow.d.ts +3 -0
- package/package-dist/scripts/lib/import-curation/internal/authoring-patch-workflow.js +3 -0
- package/package-dist/scripts/lib/import-curation/internal/authoring-task-workflow.d.ts +1 -0
- package/package-dist/scripts/lib/import-curation/internal/authoring-task-workflow.js +1 -0
- package/package-dist/scripts/lib/import-curation/internal/context-inputs.d.ts +56 -0
- package/package-dist/scripts/lib/import-curation/internal/context-inputs.js +206 -0
- package/package-dist/scripts/lib/import-curation/internal/curation-gate-workflow.d.ts +14 -0
- package/package-dist/scripts/lib/import-curation/internal/curation-gate-workflow.js +14 -0
- package/package-dist/scripts/lib/import-curation/internal/dataset-payload.d.ts +70 -0
- package/package-dist/scripts/lib/import-curation/internal/dataset-payload.js +141 -0
- package/package-dist/scripts/lib/import-curation/internal/dataset-types.d.ts +25 -0
- package/package-dist/scripts/lib/import-curation/internal/dataset-types.js +45 -0
- package/package-dist/scripts/lib/import-curation/internal/full-context-proof.d.ts +129 -0
- package/package-dist/scripts/lib/import-curation/internal/full-context-proof.js +552 -0
- package/package-dist/scripts/lib/import-curation/internal/hash-utils.d.ts +2 -0
- package/package-dist/scripts/lib/import-curation/internal/hash-utils.js +10 -0
- package/package-dist/scripts/lib/import-curation/internal/mutation-manifest-workflow.d.ts +15 -0
- package/package-dist/scripts/lib/import-curation/internal/mutation-manifest-workflow.js +15 -0
- package/package-dist/scripts/lib/import-curation/internal/prewrite-cleanup.d.ts +31 -0
- package/package-dist/scripts/lib/import-curation/internal/prewrite-cleanup.js +467 -0
- package/package-dist/scripts/lib/import-curation/internal/profiles-config.d.ts +47 -0
- package/package-dist/scripts/lib/import-curation/internal/profiles-config.js +88 -0
- package/package-dist/scripts/lib/import-curation/internal/runtime-io.d.ts +23 -0
- package/package-dist/scripts/lib/import-curation/internal/runtime-io.js +132 -0
- package/package-dist/scripts/lib/import-curation/internal/trace-summary.d.ts +53 -0
- package/package-dist/scripts/lib/import-curation/internal/trace-summary.js +114 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-authoring-tasks.d.ts +141 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-authoring-tasks.js +854 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-decision-apply-context.d.ts +20 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-decision-apply-context.js +46 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-decision-full-context.d.ts +110 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-decision-full-context.js +782 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-dry-run-context.d.ts +24 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-dry-run-context.js +191 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-evidence-scope.d.ts +80 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-evidence-scope.js +359 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-identity-decision-context.d.ts +146 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-identity-decision-context.js +381 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-identity-preflight.d.ts +223 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-identity-preflight.js +1079 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-collect.d.ts +41 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-collect.js +412 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-evidence-context.d.ts +117 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-evidence-context.js +278 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-evidence.d.ts +59 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-patch-evidence.js +593 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-queue-context.d.ts +58 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-queue-context.js +263 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-reference-closure.d.ts +177 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-reference-closure.js +812 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-row-transform-context.d.ts +159 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-row-transform-context.js +466 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-semantic-actions.d.ts +152 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-semantic-actions.js +1377 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-source-reference-context.d.ts +38 -0
- package/package-dist/scripts/lib/import-curation/internal/workflow-source-reference-context.js +116 -0
- package/package-dist/scripts/lib/import-curation/mutation-manifest.d.ts +51 -0
- package/package-dist/scripts/lib/import-curation/mutation-manifest.js +542 -0
- package/package-dist/scripts/lib/import-curation/patch-collect.d.ts +18 -0
- package/package-dist/scripts/lib/import-curation/patch-collect.js +172 -0
- package/package-dist/scripts/lib/import-curation/profiles.d.ts +1 -0
- package/package-dist/scripts/lib/import-curation/profiles.js +1 -0
- package/package-dist/scripts/lib/import-curation/trace-summary.d.ts +1 -0
- package/package-dist/scripts/lib/import-curation/trace-summary.js +1 -0
- package/package-dist/scripts/lib/oauth-session-reference.d.ts +1 -0
- package/package-dist/scripts/lib/oauth-session-reference.js +20 -0
- package/package-dist/scripts/lib/post-authoring-finalize-utils.d.ts +95 -0
- package/package-dist/scripts/lib/post-authoring-finalize-utils.js +548 -0
- package/package-dist/scripts/lib/post-write-root-proof.d.ts +44 -0
- package/package-dist/scripts/lib/post-write-root-proof.js +169 -0
- package/package-dist/scripts/lib/reference-description-text.d.ts +2 -0
- package/package-dist/scripts/lib/reference-description-text.js +12 -0
- package/package-dist/scripts/lib/remote-verification-accepted-diff.d.ts +42 -0
- package/package-dist/scripts/lib/remote-verification-accepted-diff.js +424 -0
- package/package-dist/scripts/lib/same-identity-commit-recovery.d.ts +8 -0
- package/package-dist/scripts/lib/same-identity-commit-recovery.js +52 -0
- package/package-dist/scripts/lib/source-semantics.d.ts +255 -0
- package/package-dist/scripts/lib/source-semantics.js +888 -0
- package/package-dist/scripts/lib/stage-contract.d.ts +36 -0
- package/package-dist/scripts/lib/stage-contract.js +25 -0
- package/package-dist/scripts/lib/task-authorization.d.ts +84 -0
- package/package-dist/scripts/lib/task-authorization.js +210 -0
- package/package-dist/scripts/lib/tidas-adapter.d.ts +113 -0
- package/package-dist/scripts/lib/tidas-adapter.js +525 -0
- package/package-dist/scripts/lib/tidas-language-utils.d.ts +8 -0
- package/package-dist/scripts/lib/tidas-language-utils.js +206 -0
- package/package-dist/scripts/lib/tidas-row-utils.d.ts +70 -0
- package/package-dist/scripts/lib/tidas-row-utils.js +225 -0
- package/package-dist/scripts/lib/trace-coverage.d.ts +53 -0
- package/package-dist/scripts/lib/trace-coverage.js +178 -0
- package/package-dist/scripts/package-entry.d.ts +2 -0
- package/package-dist/scripts/package-entry.js +4 -0
- package/package-dist/scripts/public-api.d.ts +80 -0
- package/package-dist/scripts/public-api.js +28 -0
- package/package-dist/scripts/runtime-entry.d.ts +23 -0
- package/package-dist/scripts/runtime-entry.js +424 -0
- package/package.json +93 -0
- package/specs/canonical-support/flow-properties-unit-groups.json +2692 -0
- package/specs/import-profiles.json +118 -0
- package/specs/prewrite-content-policy.json +105 -0
- package/specs/schemas/authorization-derivation.schema.json +34 -0
- package/specs/schemas/execution-context.schema.json +68 -0
- package/specs/schemas/foundry-authorization-input.schema.json +120 -0
- package/specs/schemas/foundry-facade-request-index.schema.json +78 -0
- package/specs/schemas/foundry-managed-runtime.schema.json +122 -0
- package/specs/schemas/foundry-migration-activation.schema.json +213 -0
- package/specs/schemas/foundry-migration-adoption-plan.schema.json +548 -0
- package/specs/schemas/foundry-migration-transfer-receipt.schema.json +93 -0
- package/specs/schemas/foundry-operation-result.schema.json +147 -0
- package/specs/schemas/foundry-package-descriptor.schema.json +134 -0
- package/specs/schemas/foundry-runtime-selection.schema.json +59 -0
- package/specs/schemas/foundry-semantic-input.schema.json +36 -0
- package/specs/schemas/foundry-task-start.schema.json +123 -0
- package/specs/schemas/foundry-workspace-migration-pending.schema.json +17 -0
- package/specs/schemas/foundry-workspace-migration-plan.schema.json +59 -0
- package/specs/schemas/foundry-workspace-migration-transfer-plan.schema.json +357 -0
- package/specs/schemas/foundry-workspace-v2.schema.json +70 -0
- package/specs/schemas/runtime-qualification.schema.json +63 -0
- package/specs/schemas/task-authorization.schema.json +154 -0
- package/specs/schemas/tidas-runtime-expectation.schema.json +54 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
function isJsonRecord(value) {
|
|
2
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
3
|
+
}
|
|
4
|
+
function asTraceCoverageRow(value) {
|
|
5
|
+
return isJsonRecord(value) ? value : {};
|
|
6
|
+
}
|
|
7
|
+
export function createTraceCoverageUtils({ asText, datasetIdentity, fileExists, foundryTraceSummary, readJsonLines, readRowsFile, repoRelativePath, resolveRepoPath, }) {
|
|
8
|
+
function closeoutTraceDatasetType(row, fallbackType) {
|
|
9
|
+
const fallback = asText(fallbackType).toLowerCase();
|
|
10
|
+
if (fallback && fallback !== "support")
|
|
11
|
+
return fallback;
|
|
12
|
+
const record = isJsonRecord(row) ? row : {};
|
|
13
|
+
if (record.contactDataSet)
|
|
14
|
+
return "contact";
|
|
15
|
+
if (record.sourceDataSet)
|
|
16
|
+
return "source";
|
|
17
|
+
if (record.flowDataSet)
|
|
18
|
+
return "flow";
|
|
19
|
+
if (record.processDataSet)
|
|
20
|
+
return "process";
|
|
21
|
+
if (record.lifeCycleModelDataSet)
|
|
22
|
+
return "lifecyclemodel";
|
|
23
|
+
if (record.unitGroupDataSet)
|
|
24
|
+
return "unitgroup";
|
|
25
|
+
if (record.flowPropertyDataSet)
|
|
26
|
+
return "flowproperty";
|
|
27
|
+
return fallback || "support";
|
|
28
|
+
}
|
|
29
|
+
function closeoutTraceIdentity(row, datasetType, rowIndex) {
|
|
30
|
+
const identity = datasetIdentity(row, datasetType);
|
|
31
|
+
const record = row;
|
|
32
|
+
return {
|
|
33
|
+
id: identity.id ||
|
|
34
|
+
asText(record.dataset_id ?? record.entity_id ?? record.id) ||
|
|
35
|
+
`row-${rowIndex + 1}`,
|
|
36
|
+
version: identity.version || asText(record.dataset_version ?? record.version) || "00.00.001",
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function traceQueueCoverageKey(traceValue) {
|
|
40
|
+
const trace = asTraceCoverageRow(traceValue);
|
|
41
|
+
return JSON.stringify([
|
|
42
|
+
asText(trace?.dataset_type).toLowerCase(),
|
|
43
|
+
asText(trace?.entity_id),
|
|
44
|
+
asText(trace?.version),
|
|
45
|
+
Number(trace?.row_index ?? -1),
|
|
46
|
+
asText(trace?.trace_kind),
|
|
47
|
+
asText(trace?.path),
|
|
48
|
+
asText(trace?.status),
|
|
49
|
+
asText(trace?.action_item_code),
|
|
50
|
+
asText(trace?.blocked_path),
|
|
51
|
+
asText(trace?.trace_sha256),
|
|
52
|
+
]);
|
|
53
|
+
}
|
|
54
|
+
function expectedTraceRowsFromFinalRows({ datasetType, finalRowsFile, }) {
|
|
55
|
+
const rows = readRowsFile(finalRowsFile);
|
|
56
|
+
const unresolved = [];
|
|
57
|
+
const sourceExchangeCompleteness = [];
|
|
58
|
+
rows.forEach((rowValue, rowIndex) => {
|
|
59
|
+
const row = asTraceCoverageRow(rowValue);
|
|
60
|
+
const effectiveType = closeoutTraceDatasetType(row, datasetType);
|
|
61
|
+
const identity = closeoutTraceIdentity(row, effectiveType, rowIndex);
|
|
62
|
+
const summary = foundryTraceSummary({
|
|
63
|
+
datasetType: effectiveType,
|
|
64
|
+
identity,
|
|
65
|
+
row,
|
|
66
|
+
rowIndex,
|
|
67
|
+
});
|
|
68
|
+
unresolved.push(...summary.unresolved_traces);
|
|
69
|
+
sourceExchangeCompleteness.push(...summary.source_exchange_completeness);
|
|
70
|
+
});
|
|
71
|
+
return {
|
|
72
|
+
unresolved_traces: unresolved,
|
|
73
|
+
source_exchange_completeness_traces: sourceExchangeCompleteness,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function validateOneTraceQueueCoverage({ traceQueue, traceKind, expectedRows, queuePath, blockers, }) {
|
|
77
|
+
const resolved = resolveRepoPath(queuePath);
|
|
78
|
+
if (!resolved || !fileExists(resolved))
|
|
79
|
+
return;
|
|
80
|
+
const actualRows = readJsonLines(resolved).map(asTraceCoverageRow);
|
|
81
|
+
if (actualRows.length !== expectedRows.length) {
|
|
82
|
+
blockers.push({
|
|
83
|
+
code: "trace_queue_final_rows_count_mismatch",
|
|
84
|
+
message: `${traceQueue} contains ${actualRows.length} rows but final rows contain ${expectedRows.length} ${traceKind} entries.`,
|
|
85
|
+
trace_queue: traceQueue,
|
|
86
|
+
file: repoRelativePath(resolved),
|
|
87
|
+
expected_count: expectedRows.length,
|
|
88
|
+
actual_count: actualRows.length,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
const actualKeys = new Map();
|
|
92
|
+
actualRows.forEach((row, index) => {
|
|
93
|
+
const key = traceQueueCoverageKey(row);
|
|
94
|
+
const entries = actualKeys.get(key) ?? [];
|
|
95
|
+
entries.push(index);
|
|
96
|
+
actualKeys.set(key, entries);
|
|
97
|
+
});
|
|
98
|
+
const expectedKeys = new Map();
|
|
99
|
+
expectedRows.forEach((row, index) => {
|
|
100
|
+
const key = traceQueueCoverageKey(row);
|
|
101
|
+
const entries = expectedKeys.get(key) ?? [];
|
|
102
|
+
entries.push(index);
|
|
103
|
+
expectedKeys.set(key, entries);
|
|
104
|
+
if (!actualKeys.has(key)) {
|
|
105
|
+
blockers.push({
|
|
106
|
+
code: "trace_queue_final_rows_entry_missing",
|
|
107
|
+
message: `${traceQueue} is missing a trace entry that exists in the final rows.`,
|
|
108
|
+
trace_queue: traceQueue,
|
|
109
|
+
file: repoRelativePath(resolved),
|
|
110
|
+
row_index: row.row_index ?? null,
|
|
111
|
+
entity_id: row.entity_id ?? null,
|
|
112
|
+
version: row.version ?? null,
|
|
113
|
+
path: row.path ?? null,
|
|
114
|
+
trace_sha256: row.trace_sha256 ?? null,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
actualRows.forEach((row, index) => {
|
|
119
|
+
const key = traceQueueCoverageKey(row);
|
|
120
|
+
if (!expectedKeys.has(key)) {
|
|
121
|
+
blockers.push({
|
|
122
|
+
code: "trace_queue_stale_or_extra_entry",
|
|
123
|
+
message: `${traceQueue} contains a trace entry that is not present in the final rows.`,
|
|
124
|
+
trace_queue: traceQueue,
|
|
125
|
+
file: repoRelativePath(resolved),
|
|
126
|
+
queue_row_index: index,
|
|
127
|
+
row_index: row.row_index ?? null,
|
|
128
|
+
entity_id: row.entity_id ?? null,
|
|
129
|
+
version: row.version ?? null,
|
|
130
|
+
path: row.path ?? null,
|
|
131
|
+
trace_sha256: row.trace_sha256 ?? null,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
function validateTraceQueueCoverageForRows({ datasetType, finalRowsFile, traceQueues, counts, blockers, }) {
|
|
137
|
+
const expected = expectedTraceRowsFromFinalRows({
|
|
138
|
+
datasetType,
|
|
139
|
+
finalRowsFile,
|
|
140
|
+
});
|
|
141
|
+
if (expected.unresolved_traces.length !== counts.unresolved_trace_entries) {
|
|
142
|
+
blockers.push({
|
|
143
|
+
code: "trace_queue_manifest_count_not_final_rows",
|
|
144
|
+
message: "Mutation/handoff unresolved trace count does not match the exact final rows.",
|
|
145
|
+
trace_queue: "unresolved_traces",
|
|
146
|
+
expected_count: expected.unresolved_traces.length,
|
|
147
|
+
recorded_count: counts.unresolved_trace_entries,
|
|
148
|
+
final_rows_file: repoRelativePath(finalRowsFile),
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
if (expected.source_exchange_completeness_traces.length !==
|
|
152
|
+
counts.source_exchange_completeness_entries) {
|
|
153
|
+
blockers.push({
|
|
154
|
+
code: "trace_queue_manifest_count_not_final_rows",
|
|
155
|
+
message: "Mutation/handoff source exchange completeness trace count does not match the exact final rows.",
|
|
156
|
+
trace_queue: "source_exchange_completeness_traces",
|
|
157
|
+
expected_count: expected.source_exchange_completeness_traces.length,
|
|
158
|
+
recorded_count: counts.source_exchange_completeness_entries,
|
|
159
|
+
final_rows_file: repoRelativePath(finalRowsFile),
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
validateOneTraceQueueCoverage({
|
|
163
|
+
traceQueue: "unresolved_traces",
|
|
164
|
+
traceKind: "unresolvedTrace",
|
|
165
|
+
expectedRows: expected.unresolved_traces,
|
|
166
|
+
queuePath: traceQueues.unresolved_traces,
|
|
167
|
+
blockers,
|
|
168
|
+
});
|
|
169
|
+
validateOneTraceQueueCoverage({
|
|
170
|
+
traceQueue: "source_exchange_completeness_traces",
|
|
171
|
+
traceKind: "sourceExchangeCompleteness",
|
|
172
|
+
expectedRows: expected.source_exchange_completeness_traces,
|
|
173
|
+
queuePath: traceQueues.source_exchange_completeness_traces,
|
|
174
|
+
blockers,
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
return { validateTraceQueueCoverageForRows };
|
|
178
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type FoundryFacadeOptions } from "./foundry-facade.ts";
|
|
2
|
+
import { type FoundryWorkspaceAccess } from "./lib/foundry-runtime-context.ts";
|
|
3
|
+
/** Host-only bridge: verifies the independent anchor using the same CLI instance as this package. */
|
|
4
|
+
export declare function createFoundryWorkspaceAccess(input: {
|
|
5
|
+
manifestBytes: Uint8Array;
|
|
6
|
+
expectedSha256: string;
|
|
7
|
+
access: "read" | "write";
|
|
8
|
+
}): FoundryWorkspaceAccess;
|
|
9
|
+
export type FoundryPackageFacadeOptions = Omit<FoundryFacadeOptions, "moduleUrl">;
|
|
10
|
+
export type { FoundryFacadeRuntimeSelection } from "./foundry-facade.ts";
|
|
11
|
+
export { FOUNDRY_AUTHORIZATION_INPUT_SCHEMA, type FoundryAuthorizationInput, } from "./lib/foundry-authorization-input.ts";
|
|
12
|
+
export type { FoundryAuthentication, FoundryPublicOAuthConfiguration, } from "./lib/foundry-runtime-identity.ts";
|
|
13
|
+
export { FOUNDRY_SEMANTIC_INPUT_SCHEMA, type FoundrySemanticInput, type SemanticPatchInput, type SemanticDecisionInput, type SemanticSubmission, } from "./lib/foundry-semantic-input.ts";
|
|
14
|
+
export type { FoundryWorkspaceAccess } from "./lib/foundry-runtime-context.ts";
|
|
15
|
+
export { FOUNDRY_RUNTIME_SELECTION_SCHEMA, type FoundryRuntimeSelectionRecord, } from "./lib/foundry-runtime-selection-record.ts";
|
|
16
|
+
export type { FoundryRuntimeManagerOptions } from "./lib/foundry-runtime-selection.ts";
|
|
17
|
+
/** Public host factory with package/source identity bound by this module, never caller input. */
|
|
18
|
+
export declare function createFoundryFacade(options: FoundryPackageFacadeOptions): Readonly<{
|
|
19
|
+
runtimeUse(input: {
|
|
20
|
+
manifest: import("@tiangong-lca/cli/runtime").TrustedRuntimeManifest;
|
|
21
|
+
requestId: string;
|
|
22
|
+
actorId: string;
|
|
23
|
+
access: "read" | "write";
|
|
24
|
+
}): Promise<import("./lib/foundry-operation-result.ts").FoundryOperationResult>;
|
|
25
|
+
initialize(): import("./lib/foundry-operation-result.ts").FoundryOperationResult;
|
|
26
|
+
doctor(): import("./lib/foundry-operation-result.ts").FoundryOperationResult;
|
|
27
|
+
migrationDryRun(input?: {
|
|
28
|
+
destination: string;
|
|
29
|
+
actorId: string;
|
|
30
|
+
requestId: string;
|
|
31
|
+
stageManifests?: readonly string[];
|
|
32
|
+
externalInputs?: readonly string[];
|
|
33
|
+
}): import("./lib/foundry-operation-result.ts").FoundryOperationResult;
|
|
34
|
+
migrationTransfer(input: {
|
|
35
|
+
destination: string;
|
|
36
|
+
actorId: string;
|
|
37
|
+
requestId: string;
|
|
38
|
+
stageManifests?: readonly string[];
|
|
39
|
+
externalInputs?: readonly string[];
|
|
40
|
+
plan: unknown;
|
|
41
|
+
audit?: boolean;
|
|
42
|
+
}): Promise<import("./lib/foundry-operation-result.ts").FoundryOperationResult>;
|
|
43
|
+
migrationAdoption(input: {
|
|
44
|
+
destination: string;
|
|
45
|
+
actorId: string;
|
|
46
|
+
requestId: string;
|
|
47
|
+
stageManifests?: readonly string[];
|
|
48
|
+
externalInputs?: readonly string[];
|
|
49
|
+
plan: unknown;
|
|
50
|
+
tasks: readonly import("./lib/foundry-migration-adoption-plan.ts").MigrationAdoptionSelection[];
|
|
51
|
+
adoptionPlan?: unknown;
|
|
52
|
+
apply?: boolean;
|
|
53
|
+
}): Promise<import("./lib/foundry-operation-result.ts").FoundryOperationResult>;
|
|
54
|
+
start(input: {
|
|
55
|
+
specFile: string;
|
|
56
|
+
}): Promise<import("./lib/foundry-operation-result.ts").FoundryOperationResult>;
|
|
57
|
+
status(input: {
|
|
58
|
+
taskId: string;
|
|
59
|
+
actorId: string;
|
|
60
|
+
}): Promise<import("./lib/foundry-operation-result.ts").FoundryOperationResult>;
|
|
61
|
+
resume(input: {
|
|
62
|
+
taskId: string;
|
|
63
|
+
actorId: string;
|
|
64
|
+
semanticInputFile?: string;
|
|
65
|
+
authorizationInputFile?: string;
|
|
66
|
+
}): Promise<import("./lib/foundry-operation-result.ts").FoundryOperationResult>;
|
|
67
|
+
requestBinding(input: {
|
|
68
|
+
taskId: string;
|
|
69
|
+
actorId: string;
|
|
70
|
+
}): string;
|
|
71
|
+
}>;
|
|
72
|
+
export { runFoundryPublicCommand, type FoundryRuntimeCommandHost } from "./runtime-entry.ts";
|
|
73
|
+
export { FOUNDRY_COMMAND_NEXT_ACTION_BINDING_SCHEMA, FOUNDRY_OPERATION_RESULT_SCHEMA, assertFoundryOperationResult, commandNextActionBindingSha256, exitCodeForFoundryOperationResult, foundryOperationPermissionStates, foundryOperationStatuses, foundryPublicOperations, type FoundryOperationArtifact, type FoundryOperationBlocker, type FoundryOperationNextAction, type FoundryOperationPermissionState, type FoundryOperationPermissions, type FoundryOperationResult, type FoundryOperationStatus, type FoundryPublicOperation, } from "./lib/foundry-operation-result.ts";
|
|
74
|
+
export { FOUNDRY_TASK_START_SPEC_SCHEMA, parseFoundryTaskStartSpec, type FoundryTaskStartSpec, } from "./lib/foundry-task-start-spec.ts";
|
|
75
|
+
export { FOUNDRY_WORKSPACE_MIGRATION_PLAN_SCHEMA, type FoundryWorkspaceMigrationPlan, } from "./lib/foundry-migration-inventory.ts";
|
|
76
|
+
export { FOUNDRY_MIGRATION_TRANSFER_PLAN_SCHEMA, type FoundryMigrationTransferPlan, type MigrationStageEvidence, } from "./lib/foundry-migration-plan.ts";
|
|
77
|
+
export { FOUNDRY_MIGRATION_TRANSFER_RECEIPT_SCHEMA, type FoundryMigrationTransferReceipt, } from "./lib/foundry-migration-transfer.ts";
|
|
78
|
+
export { FOUNDRY_MIGRATION_ADOPTION_PLAN_SCHEMA, type FoundryMigrationAdoptionPlan, type MigrationAdoptionSelection, } from "./lib/foundry-migration-adoption-plan.ts";
|
|
79
|
+
export { FOUNDRY_MIGRATION_ACTIVATION_SCHEMA, FOUNDRY_MIGRATED_WORKSPACE_SCHEMA, type FoundryMigrationActivation, type MigrationTaskAuthority, } from "./lib/foundry-migration-authority.ts";
|
|
80
|
+
export { FOUNDRY_PACKAGE_DESCRIPTOR_SCHEMA, FoundryPackageError, assertFoundryPackage, assertFoundryPackageDescriptor, type FoundryPackageDescriptor, type FoundryPackageFileFact, } from "./lib/foundry-package-contract.ts";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createFoundryFacade as createInternalFoundryFacade, } from "./foundry-facade.js";
|
|
2
|
+
import { trustRuntimeManifest } from "@tiangong-lca/cli/runtime";
|
|
3
|
+
import { FoundryContextError } from "./lib/foundry-runtime-context.js";
|
|
4
|
+
/** Host-only bridge: verifies the independent anchor using the same CLI instance as this package. */
|
|
5
|
+
export function createFoundryWorkspaceAccess(input) {
|
|
6
|
+
if (input.access !== "read" && input.access !== "write")
|
|
7
|
+
throw new FoundryContextError("workspace_access_invalid", "Select read or write workspace access.");
|
|
8
|
+
return Object.freeze({
|
|
9
|
+
manifest: trustRuntimeManifest(input.manifestBytes, input.expectedSha256),
|
|
10
|
+
access: input.access,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export { FOUNDRY_AUTHORIZATION_INPUT_SCHEMA, } from "./lib/foundry-authorization-input.js";
|
|
14
|
+
export { FOUNDRY_SEMANTIC_INPUT_SCHEMA, } from "./lib/foundry-semantic-input.js";
|
|
15
|
+
export { FOUNDRY_RUNTIME_SELECTION_SCHEMA, } from "./lib/foundry-runtime-selection-record.js";
|
|
16
|
+
/** Public host factory with package/source identity bound by this module, never caller input. */
|
|
17
|
+
export function createFoundryFacade(options) {
|
|
18
|
+
return createInternalFoundryFacade({ ...options, moduleUrl: import.meta.url });
|
|
19
|
+
}
|
|
20
|
+
export { runFoundryPublicCommand } from "./runtime-entry.js";
|
|
21
|
+
export { FOUNDRY_COMMAND_NEXT_ACTION_BINDING_SCHEMA, FOUNDRY_OPERATION_RESULT_SCHEMA, assertFoundryOperationResult, commandNextActionBindingSha256, exitCodeForFoundryOperationResult, foundryOperationPermissionStates, foundryOperationStatuses, foundryPublicOperations, } from "./lib/foundry-operation-result.js";
|
|
22
|
+
export { FOUNDRY_TASK_START_SPEC_SCHEMA, parseFoundryTaskStartSpec, } from "./lib/foundry-task-start-spec.js";
|
|
23
|
+
export { FOUNDRY_WORKSPACE_MIGRATION_PLAN_SCHEMA, } from "./lib/foundry-migration-inventory.js";
|
|
24
|
+
export { FOUNDRY_MIGRATION_TRANSFER_PLAN_SCHEMA, } from "./lib/foundry-migration-plan.js";
|
|
25
|
+
export { FOUNDRY_MIGRATION_TRANSFER_RECEIPT_SCHEMA, } from "./lib/foundry-migration-transfer.js";
|
|
26
|
+
export { FOUNDRY_MIGRATION_ADOPTION_PLAN_SCHEMA, } from "./lib/foundry-migration-adoption-plan.js";
|
|
27
|
+
export { FOUNDRY_MIGRATION_ACTIVATION_SCHEMA, FOUNDRY_MIGRATED_WORKSPACE_SCHEMA, } from "./lib/foundry-migration-authority.js";
|
|
28
|
+
export { FOUNDRY_PACKAGE_DESCRIPTOR_SCHEMA, FoundryPackageError, assertFoundryPackage, assertFoundryPackageDescriptor, } from "./lib/foundry-package-contract.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import type { TrustedRuntimeManifest } from "@tiangong-lca/cli/runtime";
|
|
3
|
+
import type { FoundryRuntimeManagerOptions } from "./lib/foundry-runtime-selection.ts";
|
|
4
|
+
import type { FoundryAuthentication } from "./lib/foundry-runtime-identity.ts";
|
|
5
|
+
import { type FoundryFacadeRuntimeSelection } from "./foundry-facade.ts";
|
|
6
|
+
import { type FoundryWorkspaceAccess, type FoundryAccountIntent } from "./lib/foundry-runtime-context.ts";
|
|
7
|
+
export interface FoundryRuntimeCommandHost {
|
|
8
|
+
readonly runtimeSelection?: FoundryFacadeRuntimeSelection;
|
|
9
|
+
readonly workspaceAccess?: FoundryWorkspaceAccess;
|
|
10
|
+
readonly cacheBase?: string;
|
|
11
|
+
readonly accountIntent?: FoundryAccountIntent;
|
|
12
|
+
readonly authentication?: FoundryAuthentication;
|
|
13
|
+
readonly runtimeTarget?: TrustedRuntimeManifest;
|
|
14
|
+
readonly runtimeManager?: FoundryRuntimeManagerOptions;
|
|
15
|
+
readonly signal?: AbortSignal;
|
|
16
|
+
readonly writeStdout?: (text: string) => void;
|
|
17
|
+
readonly setExitCode?: (code: number) => void;
|
|
18
|
+
}
|
|
19
|
+
type PrepareRuntimeHost = (signal: AbortSignal) => Promise<Omit<FoundryRuntimeCommandHost, "signal" | "writeStdout" | "setExitCode">>;
|
|
20
|
+
export declare function runFoundryRuntimeCommand(argv?: string[], host?: FoundryRuntimeCommandHost, prepareHost?: PrepareRuntimeHost): Promise<void>;
|
|
21
|
+
/** Package bin boundary: never fall back to repository/developer commands. */
|
|
22
|
+
export declare function runFoundryPublicCommand(argv?: string[], host?: FoundryRuntimeCommandHost, prepareHost?: PrepareRuntimeHost): Promise<void>;
|
|
23
|
+
export {};
|