@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,484 @@
|
|
|
1
|
+
type UnknownRecord = Record<string, unknown>;
|
|
2
|
+
interface WorkflowCommands extends UnknownRecord {
|
|
3
|
+
input_rows?: unknown;
|
|
4
|
+
output_rows?: unknown;
|
|
5
|
+
}
|
|
6
|
+
interface DecisionWorkflow extends UnknownRecord {
|
|
7
|
+
schema_type?: unknown;
|
|
8
|
+
row_type?: unknown;
|
|
9
|
+
commands?: WorkflowCommands;
|
|
10
|
+
}
|
|
11
|
+
interface DecisionQueueRow extends UnknownRecord {
|
|
12
|
+
dataset_id?: unknown;
|
|
13
|
+
dataset_version?: unknown;
|
|
14
|
+
dataset_type?: unknown;
|
|
15
|
+
schema_type?: unknown;
|
|
16
|
+
category_type?: unknown;
|
|
17
|
+
type?: unknown;
|
|
18
|
+
source_file?: unknown;
|
|
19
|
+
sourceFile?: unknown;
|
|
20
|
+
classification_workflow?: DecisionWorkflow;
|
|
21
|
+
location_workflow?: DecisionWorkflow;
|
|
22
|
+
foundry_selection?: UnknownRecord;
|
|
23
|
+
}
|
|
24
|
+
interface ContextKindEvidence extends UnknownRecord {
|
|
25
|
+
used_context_kinds?: unknown;
|
|
26
|
+
usedContextKinds?: unknown;
|
|
27
|
+
}
|
|
28
|
+
interface DecisionRecord extends UnknownRecord {
|
|
29
|
+
category_type?: unknown;
|
|
30
|
+
categoryType?: unknown;
|
|
31
|
+
classification_type?: unknown;
|
|
32
|
+
classificationType?: unknown;
|
|
33
|
+
type?: unknown;
|
|
34
|
+
dataset_id?: unknown;
|
|
35
|
+
datasetId?: unknown;
|
|
36
|
+
id?: unknown;
|
|
37
|
+
uuid?: unknown;
|
|
38
|
+
dataset_version?: unknown;
|
|
39
|
+
datasetVersion?: unknown;
|
|
40
|
+
version?: unknown;
|
|
41
|
+
code?: unknown;
|
|
42
|
+
class_id?: unknown;
|
|
43
|
+
classId?: unknown;
|
|
44
|
+
cat_id?: unknown;
|
|
45
|
+
catId?: unknown;
|
|
46
|
+
leaf_code?: unknown;
|
|
47
|
+
leafCode?: unknown;
|
|
48
|
+
used_context_kinds?: unknown;
|
|
49
|
+
usedContextKinds?: unknown;
|
|
50
|
+
evidence?: ContextKindEvidence;
|
|
51
|
+
resolution?: ContextKindEvidence;
|
|
52
|
+
authoring_context?: ContextKindEvidence;
|
|
53
|
+
authoringContext?: UnknownRecord;
|
|
54
|
+
authoring_context_sha256?: unknown;
|
|
55
|
+
context_bundle_sha256?: unknown;
|
|
56
|
+
contextBundleSha256?: unknown;
|
|
57
|
+
decision_status?: unknown;
|
|
58
|
+
decisionStatus?: unknown;
|
|
59
|
+
status?: unknown;
|
|
60
|
+
}
|
|
61
|
+
interface DecisionTaskOptions extends UnknownRecord {
|
|
62
|
+
datasetId?: unknown;
|
|
63
|
+
datasetIds?: unknown;
|
|
64
|
+
id?: unknown;
|
|
65
|
+
datasetType?: unknown;
|
|
66
|
+
datasetTypes?: unknown;
|
|
67
|
+
categoryType?: unknown;
|
|
68
|
+
categoryTypes?: unknown;
|
|
69
|
+
schemaType?: unknown;
|
|
70
|
+
schemaTypes?: unknown;
|
|
71
|
+
bundleId?: unknown;
|
|
72
|
+
bundleIds?: unknown;
|
|
73
|
+
processId?: unknown;
|
|
74
|
+
offset?: unknown;
|
|
75
|
+
limit?: unknown;
|
|
76
|
+
count?: unknown;
|
|
77
|
+
chunkLabel?: unknown;
|
|
78
|
+
chunk?: unknown;
|
|
79
|
+
label?: unknown;
|
|
80
|
+
rowsFile?: unknown;
|
|
81
|
+
inputRows?: unknown;
|
|
82
|
+
inputRowsFile?: unknown;
|
|
83
|
+
currentRows?: unknown;
|
|
84
|
+
currentRowsFile?: unknown;
|
|
85
|
+
schemaFile?: unknown;
|
|
86
|
+
yamlFile?: unknown;
|
|
87
|
+
rulesetFile?: unknown;
|
|
88
|
+
contextFile?: unknown;
|
|
89
|
+
classificationSchema?: unknown;
|
|
90
|
+
locationSchema?: unknown;
|
|
91
|
+
decisionTask?: unknown;
|
|
92
|
+
classificationDecisionTask?: unknown;
|
|
93
|
+
classificationTask?: unknown;
|
|
94
|
+
locationDecisionTask?: unknown;
|
|
95
|
+
locationTask?: unknown;
|
|
96
|
+
taskReport?: unknown;
|
|
97
|
+
task?: unknown;
|
|
98
|
+
}
|
|
99
|
+
interface QueueSelection {
|
|
100
|
+
dataset_ids: string[];
|
|
101
|
+
dataset_types: string[];
|
|
102
|
+
category_types: string[];
|
|
103
|
+
bundle_ids: string[];
|
|
104
|
+
offset: number;
|
|
105
|
+
limit: number | null;
|
|
106
|
+
}
|
|
107
|
+
interface SelectedQueueRow<Row extends DecisionQueueRow = DecisionQueueRow> {
|
|
108
|
+
row: Row;
|
|
109
|
+
sourceIndex: number;
|
|
110
|
+
}
|
|
111
|
+
interface ContextFileInput extends UnknownRecord {
|
|
112
|
+
kind?: unknown;
|
|
113
|
+
path?: unknown;
|
|
114
|
+
sha256?: unknown;
|
|
115
|
+
bytes?: unknown;
|
|
116
|
+
text?: unknown;
|
|
117
|
+
}
|
|
118
|
+
interface DecisionContextFile extends UnknownRecord {
|
|
119
|
+
kind: string;
|
|
120
|
+
path: string | null;
|
|
121
|
+
sha256: string;
|
|
122
|
+
bytes: number;
|
|
123
|
+
text: string;
|
|
124
|
+
}
|
|
125
|
+
interface MissingContextFile {
|
|
126
|
+
kind: string;
|
|
127
|
+
path: string;
|
|
128
|
+
}
|
|
129
|
+
interface ContractContext {
|
|
130
|
+
files: ContextFileInput[];
|
|
131
|
+
missing: MissingContextFile[];
|
|
132
|
+
}
|
|
133
|
+
interface ProvenanceEntry extends UnknownRecord {
|
|
134
|
+
file?: unknown;
|
|
135
|
+
total_rows?: unknown;
|
|
136
|
+
truncated?: unknown;
|
|
137
|
+
}
|
|
138
|
+
interface AttachedInputRow extends UnknownRecord {
|
|
139
|
+
input_rows?: unknown;
|
|
140
|
+
index?: unknown;
|
|
141
|
+
row_type?: unknown;
|
|
142
|
+
dataset_id?: unknown;
|
|
143
|
+
dataset_version?: unknown;
|
|
144
|
+
}
|
|
145
|
+
interface SharedContextInput extends UnknownRecord {
|
|
146
|
+
path?: unknown;
|
|
147
|
+
sha256?: unknown;
|
|
148
|
+
counts?: unknown;
|
|
149
|
+
}
|
|
150
|
+
interface TaskContextInput extends UnknownRecord {
|
|
151
|
+
sha256?: unknown;
|
|
152
|
+
context_bundle_sha256?: unknown;
|
|
153
|
+
shared_context_bundle?: SharedContextInput;
|
|
154
|
+
}
|
|
155
|
+
interface DecisionTaskInput extends UnknownRecord {
|
|
156
|
+
status?: unknown;
|
|
157
|
+
task_kind?: unknown;
|
|
158
|
+
context_bundle?: TaskContextInput;
|
|
159
|
+
authoring_context?: TaskContextInput;
|
|
160
|
+
shared_context_bundle?: SharedContextInput;
|
|
161
|
+
files?: UnknownRecord;
|
|
162
|
+
classification_queue?: unknown;
|
|
163
|
+
location_queue?: unknown;
|
|
164
|
+
source_classification_queue?: unknown;
|
|
165
|
+
source_location_queue?: unknown;
|
|
166
|
+
contract_context_files?: unknown;
|
|
167
|
+
missing_context_files?: unknown;
|
|
168
|
+
}
|
|
169
|
+
interface SharedContextProof {
|
|
170
|
+
path: string | null;
|
|
171
|
+
sha256: string | null;
|
|
172
|
+
expected_sha256: string | null;
|
|
173
|
+
counts: unknown;
|
|
174
|
+
files: unknown[];
|
|
175
|
+
blockers: UnknownRecord[];
|
|
176
|
+
}
|
|
177
|
+
interface DecisionTaskProof {
|
|
178
|
+
path: string;
|
|
179
|
+
sha256: string | null;
|
|
180
|
+
status: string | null;
|
|
181
|
+
task_kind: string | null;
|
|
182
|
+
context_bundle_sha256: string | null;
|
|
183
|
+
queue: string | null;
|
|
184
|
+
source_queue: string | null;
|
|
185
|
+
contract_context_files: ContextFileInput[];
|
|
186
|
+
missing_context_files: unknown[];
|
|
187
|
+
context_bundle?: TaskContextInput | null;
|
|
188
|
+
shared_context_bundle: SharedContextProof | null;
|
|
189
|
+
blockers: UnknownRecord[];
|
|
190
|
+
}
|
|
191
|
+
interface DecisionTaskUtilsDependencies {
|
|
192
|
+
asText: (value: unknown) => string;
|
|
193
|
+
cloneJson: <Value>(value: Value) => Value;
|
|
194
|
+
ensureArray: <Value>(value: Value | Value[] | null | undefined) => Value[];
|
|
195
|
+
fileExists: (filePath: string) => boolean;
|
|
196
|
+
integerOption: (value: unknown, fallback: number | null) => number | null;
|
|
197
|
+
normalizedList: (value: unknown) => string[];
|
|
198
|
+
nowIso: () => string;
|
|
199
|
+
positiveIntegerOption: (value: unknown, fallback: number | null) => number | null;
|
|
200
|
+
readJson: (filePath: string) => UnknownRecord;
|
|
201
|
+
readJsonLines: (filePath: string) => UnknownRecord[];
|
|
202
|
+
readText: (filePath: string) => string;
|
|
203
|
+
repoRelativePath: (filePath: string) => string;
|
|
204
|
+
resolveRepoPath: (filePath: unknown) => string | null;
|
|
205
|
+
sameResolvedPath: (left: string | null, right: string | null) => boolean;
|
|
206
|
+
sha256Text: (value: unknown) => string;
|
|
207
|
+
unique: <Value>(values: Value[]) => Value[];
|
|
208
|
+
writeJson: (filePath: string, value: unknown) => void;
|
|
209
|
+
}
|
|
210
|
+
export declare function createDecisionTaskUtils({ asText, cloneJson, ensureArray, fileExists, integerOption, normalizedList, nowIso, positiveIntegerOption, readJson, readJsonLines, readText, repoRelativePath, resolveRepoPath, sameResolvedPath, sha256Text, unique, writeJson, }: DecisionTaskUtilsDependencies): {
|
|
211
|
+
classificationQueueSchemaType: (row: DecisionQueueRow) => string;
|
|
212
|
+
classificationQueueRowType: (row: DecisionQueueRow) => string;
|
|
213
|
+
classificationQueueInputRows: (row: DecisionQueueRow) => string;
|
|
214
|
+
classificationQueueOutputRows: (row: DecisionQueueRow) => string;
|
|
215
|
+
queueRowSourceFile: (row: DecisionQueueRow) => string;
|
|
216
|
+
queueRowBundleId: (row: DecisionQueueRow) => string;
|
|
217
|
+
hasQueueSelectionOptions: (options: DecisionTaskOptions) => boolean;
|
|
218
|
+
queueSelectionSummary: (options: DecisionTaskOptions) => QueueSelection;
|
|
219
|
+
queueRowMatchesSelection: <Row extends DecisionQueueRow>(row: Row, selection: QueueSelection, schemaTypeForRow: (row: Row) => string) => boolean;
|
|
220
|
+
selectDecisionTaskQueueRows: <Row extends DecisionQueueRow>(queueRows: Row[], options: DecisionTaskOptions, schemaTypeForRow: (row: Row) => string) => {
|
|
221
|
+
selection: {
|
|
222
|
+
dataset_ids: string[];
|
|
223
|
+
dataset_types: string[];
|
|
224
|
+
category_types: string[];
|
|
225
|
+
bundle_ids: string[];
|
|
226
|
+
offset: number;
|
|
227
|
+
limit: number | null;
|
|
228
|
+
source_queue_rows: number;
|
|
229
|
+
matched_queue_rows: number;
|
|
230
|
+
selected_queue_rows: number;
|
|
231
|
+
source_queue_row_indices: number[];
|
|
232
|
+
};
|
|
233
|
+
selected: {
|
|
234
|
+
row: Row;
|
|
235
|
+
sourceIndex: number;
|
|
236
|
+
}[];
|
|
237
|
+
};
|
|
238
|
+
safeFileToken: (value: unknown, fallback: string) => string;
|
|
239
|
+
decisionTaskChunkLabel: (options: DecisionTaskOptions, selection: QueueSelection, fallback: string) => string;
|
|
240
|
+
rewriteDecisionTaskQueueRowsForChunk: ({ selected, sourceQueuePath, outDir, chunkLabel, workflowKey, outputSuffix, inputRowsForRow, inputRowsOverride, }: {
|
|
241
|
+
selected: SelectedQueueRow[];
|
|
242
|
+
sourceQueuePath: string;
|
|
243
|
+
outDir: string;
|
|
244
|
+
chunkLabel: string;
|
|
245
|
+
workflowKey: string;
|
|
246
|
+
outputSuffix: string;
|
|
247
|
+
inputRowsForRow: (row: DecisionQueueRow) => unknown;
|
|
248
|
+
inputRowsOverride?: string | null;
|
|
249
|
+
}) => DecisionQueueRow[];
|
|
250
|
+
decisionTaskInputRowsOverride: (options: DecisionTaskOptions) => string | null;
|
|
251
|
+
classificationDecisionSchemaType: (decision: DecisionRecord) => string;
|
|
252
|
+
classificationDecisionTargetKey: (decision: DecisionRecord, schemaType?: string) => string;
|
|
253
|
+
classificationQueueTargetKey: (row: DecisionQueueRow) => string;
|
|
254
|
+
classificationDecisionCode: (decision: DecisionRecord) => string;
|
|
255
|
+
classificationDecisionUsedContextKinds: (decision: DecisionRecord) => string[];
|
|
256
|
+
readClassificationTaskJsonlContextRows: (baseDir: string, fileName: string, maxRows?: number) => {
|
|
257
|
+
file: null;
|
|
258
|
+
rows: never[];
|
|
259
|
+
truncated?: undefined;
|
|
260
|
+
total_rows?: undefined;
|
|
261
|
+
} | {
|
|
262
|
+
file: string;
|
|
263
|
+
rows: UnknownRecord[];
|
|
264
|
+
truncated: boolean;
|
|
265
|
+
total_rows: number;
|
|
266
|
+
};
|
|
267
|
+
buildClassificationTaskProvenanceContext: (queuePath: string) => {
|
|
268
|
+
source_semantics: {
|
|
269
|
+
file: null;
|
|
270
|
+
rows: never[];
|
|
271
|
+
truncated?: undefined;
|
|
272
|
+
total_rows?: undefined;
|
|
273
|
+
} | {
|
|
274
|
+
file: string;
|
|
275
|
+
rows: UnknownRecord[];
|
|
276
|
+
truncated: boolean;
|
|
277
|
+
total_rows: number;
|
|
278
|
+
};
|
|
279
|
+
process_source_references: {
|
|
280
|
+
file: null;
|
|
281
|
+
rows: never[];
|
|
282
|
+
truncated?: undefined;
|
|
283
|
+
total_rows?: undefined;
|
|
284
|
+
} | {
|
|
285
|
+
file: string;
|
|
286
|
+
rows: UnknownRecord[];
|
|
287
|
+
truncated: boolean;
|
|
288
|
+
total_rows: number;
|
|
289
|
+
};
|
|
290
|
+
source_reference_rewrites: {
|
|
291
|
+
file: null;
|
|
292
|
+
rows: never[];
|
|
293
|
+
truncated?: undefined;
|
|
294
|
+
total_rows?: undefined;
|
|
295
|
+
} | {
|
|
296
|
+
file: string;
|
|
297
|
+
rows: UnknownRecord[];
|
|
298
|
+
truncated: boolean;
|
|
299
|
+
total_rows: number;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
decisionTaskContextFileDetails: (contractContext: ContractContext) => {
|
|
303
|
+
kind: unknown;
|
|
304
|
+
path: unknown;
|
|
305
|
+
sha256: unknown;
|
|
306
|
+
bytes: unknown;
|
|
307
|
+
}[];
|
|
308
|
+
decisionTaskContextFileWithText: (file: ContextFileInput) => DecisionContextFile;
|
|
309
|
+
decisionTaskContextFileSummary: (file: ContextFileInput) => {
|
|
310
|
+
kind: string;
|
|
311
|
+
path: string | null;
|
|
312
|
+
sha256: string;
|
|
313
|
+
bytes: number;
|
|
314
|
+
};
|
|
315
|
+
dedupeDecisionTaskContextFiles: (files: ContextFileInput | ContextFileInput[]) => DecisionContextFile[];
|
|
316
|
+
writeDecisionTaskSharedContextBundle: ({ outDir, taskKind, files, references, cacheDir, }: {
|
|
317
|
+
outDir: string;
|
|
318
|
+
taskKind: string;
|
|
319
|
+
files: ContextFileInput | ContextFileInput[];
|
|
320
|
+
references?: UnknownRecord[];
|
|
321
|
+
cacheDir?: unknown;
|
|
322
|
+
}) => {
|
|
323
|
+
path: string;
|
|
324
|
+
sha256: string;
|
|
325
|
+
counts: {
|
|
326
|
+
files: number;
|
|
327
|
+
references: number;
|
|
328
|
+
duplicate_references: number;
|
|
329
|
+
unique_context_bytes: number;
|
|
330
|
+
referenced_context_bytes: number;
|
|
331
|
+
duplicate_context_bytes_avoided: number;
|
|
332
|
+
};
|
|
333
|
+
hash_scope: string;
|
|
334
|
+
cache: {
|
|
335
|
+
enabled: boolean;
|
|
336
|
+
dir: string;
|
|
337
|
+
reused: boolean;
|
|
338
|
+
} | {
|
|
339
|
+
enabled: boolean;
|
|
340
|
+
reused: boolean;
|
|
341
|
+
};
|
|
342
|
+
instruction: string;
|
|
343
|
+
};
|
|
344
|
+
stableDecisionTaskQueueRows: (queueRows: DecisionQueueRow | DecisionQueueRow[]) => DecisionQueueRow[];
|
|
345
|
+
decisionTaskQueueSha256: (queueRows: DecisionQueueRow | DecisionQueueRow[]) => string;
|
|
346
|
+
decisionTaskProvenanceFileDetails: (provenanceContext: Record<string, ProvenanceEntry>) => {
|
|
347
|
+
[k: string]: {
|
|
348
|
+
file: {} | null;
|
|
349
|
+
total_rows: {};
|
|
350
|
+
truncated: boolean;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
buildDecisionTaskContextBundle: ({ taskKind, taskPath, outDir, sharedContextCacheDir, queuePath, queueRows, contractContext, provenanceContext, attachedInputRows, }: {
|
|
354
|
+
taskKind: string;
|
|
355
|
+
taskPath: string;
|
|
356
|
+
outDir?: string | null;
|
|
357
|
+
sharedContextCacheDir?: unknown;
|
|
358
|
+
queuePath: string;
|
|
359
|
+
queueRows: DecisionQueueRow[];
|
|
360
|
+
contractContext: ContractContext;
|
|
361
|
+
provenanceContext: Record<string, ProvenanceEntry>;
|
|
362
|
+
attachedInputRows: AttachedInputRow[];
|
|
363
|
+
}) => {
|
|
364
|
+
task_kind: string;
|
|
365
|
+
queue_sha256: string;
|
|
366
|
+
queue_rows: number;
|
|
367
|
+
contract_context_files: {
|
|
368
|
+
kind: string;
|
|
369
|
+
path: string | null;
|
|
370
|
+
sha256: string;
|
|
371
|
+
bytes: number;
|
|
372
|
+
}[];
|
|
373
|
+
missing_context_files: MissingContextFile[];
|
|
374
|
+
provenance_context: {
|
|
375
|
+
[k: string]: {
|
|
376
|
+
file: {} | null;
|
|
377
|
+
total_rows: {};
|
|
378
|
+
truncated: boolean;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
attached_input_rows: {
|
|
382
|
+
input_rows: unknown;
|
|
383
|
+
input_row_index: unknown;
|
|
384
|
+
row_type: unknown;
|
|
385
|
+
dataset_id: unknown;
|
|
386
|
+
dataset_version: unknown;
|
|
387
|
+
}[];
|
|
388
|
+
shared_context_bundle_sha256: string;
|
|
389
|
+
task: string;
|
|
390
|
+
queue: string;
|
|
391
|
+
shared_context_bundle: {
|
|
392
|
+
path: string;
|
|
393
|
+
sha256: string;
|
|
394
|
+
counts: {
|
|
395
|
+
files: number;
|
|
396
|
+
references: number;
|
|
397
|
+
duplicate_references: number;
|
|
398
|
+
unique_context_bytes: number;
|
|
399
|
+
referenced_context_bytes: number;
|
|
400
|
+
duplicate_context_bytes_avoided: number;
|
|
401
|
+
};
|
|
402
|
+
hash_scope: string;
|
|
403
|
+
cache: {
|
|
404
|
+
enabled: boolean;
|
|
405
|
+
dir: string;
|
|
406
|
+
reused: boolean;
|
|
407
|
+
} | {
|
|
408
|
+
dir?: undefined;
|
|
409
|
+
enabled: boolean;
|
|
410
|
+
reused: boolean;
|
|
411
|
+
};
|
|
412
|
+
instruction: string;
|
|
413
|
+
};
|
|
414
|
+
hash_scope: string;
|
|
415
|
+
sha256: string;
|
|
416
|
+
};
|
|
417
|
+
decisionAuthoringContext: (contextBundle: {
|
|
418
|
+
task: string;
|
|
419
|
+
sha256: string;
|
|
420
|
+
contract_context_files: Array<{
|
|
421
|
+
kind: string;
|
|
422
|
+
path: string | null;
|
|
423
|
+
sha256: string;
|
|
424
|
+
bytes: number;
|
|
425
|
+
}>;
|
|
426
|
+
}) => {
|
|
427
|
+
task: string;
|
|
428
|
+
context_bundle_sha256: string;
|
|
429
|
+
required_context_kinds: string[];
|
|
430
|
+
context_files: {
|
|
431
|
+
kind: string;
|
|
432
|
+
path: string | null;
|
|
433
|
+
sha256: string;
|
|
434
|
+
}[];
|
|
435
|
+
};
|
|
436
|
+
classificationDecisionTaskContextKind: (kind: string, filePath: unknown) => string;
|
|
437
|
+
buildClassificationDecisionTaskContextFiles: (options: DecisionTaskOptions) => ContractContext;
|
|
438
|
+
decisionTaskContextBlockers: ({ kind, queueRows, contractContext, requiredContextKinds, attachedInputRowCount, }: {
|
|
439
|
+
kind: string;
|
|
440
|
+
queueRows: DecisionQueueRow[];
|
|
441
|
+
contractContext: ContractContext;
|
|
442
|
+
requiredContextKinds: string[];
|
|
443
|
+
attachedInputRowCount: number;
|
|
444
|
+
}) => UnknownRecord[];
|
|
445
|
+
decisionTaskBuildStatus: ({ queueRows, blockers, readyStatus, emptyStatus, }: {
|
|
446
|
+
queueRows: unknown[];
|
|
447
|
+
blockers: unknown[];
|
|
448
|
+
readyStatus: string;
|
|
449
|
+
emptyStatus: string;
|
|
450
|
+
}) => string;
|
|
451
|
+
decisionTaskOptionPath: (options: DecisionTaskOptions, kind: string) => unknown;
|
|
452
|
+
decisionTaskOptionPaths: (options: DecisionTaskOptions, kind: string) => string[];
|
|
453
|
+
readDecisionTaskSharedContextBundleProof: (task: DecisionTaskInput, proofPath: string) => SharedContextProof;
|
|
454
|
+
readDecisionTaskProofFromPath: (taskPathInput: unknown, kind: string, queuePath: string) => DecisionTaskProof | null;
|
|
455
|
+
readDecisionTaskProof: (options: DecisionTaskOptions, kind: string, queuePath: string) => DecisionTaskProof | null;
|
|
456
|
+
readDecisionTaskProofs: (options: DecisionTaskOptions, kind: string, queuePath: string) => DecisionTaskProof[];
|
|
457
|
+
decisionContextBundleSha256: (decision: DecisionRecord) => string;
|
|
458
|
+
decisionCompletionStatus: (decision: DecisionRecord) => string;
|
|
459
|
+
decisionTaskReportPayload: (proof: DecisionTaskProof | null) => {
|
|
460
|
+
path: string;
|
|
461
|
+
sha256: string | null;
|
|
462
|
+
status: string | null;
|
|
463
|
+
task_kind: string | null;
|
|
464
|
+
queue: string | null;
|
|
465
|
+
source_queue: string | null;
|
|
466
|
+
context_bundle_sha256: string | null;
|
|
467
|
+
contract_context_files: {
|
|
468
|
+
kind: unknown;
|
|
469
|
+
path: unknown;
|
|
470
|
+
sha256: unknown;
|
|
471
|
+
bytes: unknown;
|
|
472
|
+
}[];
|
|
473
|
+
missing_context_files: unknown[];
|
|
474
|
+
shared_context_bundle: {
|
|
475
|
+
path: string | null;
|
|
476
|
+
sha256: string | null;
|
|
477
|
+
expected_sha256: string | null;
|
|
478
|
+
counts: unknown;
|
|
479
|
+
} | null;
|
|
480
|
+
} | null;
|
|
481
|
+
decisionTaskProofList: (proofOrProofs: DecisionTaskProof | DecisionTaskProof[] | null | undefined) => DecisionTaskProof[];
|
|
482
|
+
decisionTaskContextBundleHashes: (proofs: DecisionTaskProof | DecisionTaskProof[] | null | undefined) => (string | null)[];
|
|
483
|
+
};
|
|
484
|
+
export {};
|