@smoothbricks/nx-plugin 0.5.7 → 0.6.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/README.md +1097 -360
- package/dist/.build-inputs.json +141 -0
- package/dist/bin/smoo-nx-cargo-toolchain.d.ts +3 -0
- package/dist/bin/smoo-nx-cargo-toolchain.d.ts.map +1 -0
- package/dist/bin/smoo-nx-cargo-toolchain.js +8 -0
- package/dist/bin/smoo-nx-forbidden-spellings.d.ts +3 -0
- package/dist/bin/smoo-nx-forbidden-spellings.d.ts.map +1 -0
- package/dist/bin/smoo-nx-forbidden-spellings.js +32 -0
- package/dist/bin/smoo-nx-nextest-timings.d.ts +3 -0
- package/dist/bin/smoo-nx-nextest-timings.d.ts.map +1 -0
- package/dist/bin/smoo-nx-nextest-timings.js +28 -0
- package/dist/bounded-test-policy.d.ts +1 -1
- package/dist/bounded-test-policy.d.ts.map +1 -1
- package/dist/bounded-test-policy.js +14 -15
- package/dist/build-state-output-policy.d.ts +95 -1
- package/dist/build-state-output-policy.d.ts.map +1 -1
- package/dist/build-state-output-policy.js +368 -30
- package/dist/bun-lock-scope.d.ts +44 -0
- package/dist/bun-lock-scope.d.ts.map +1 -0
- package/dist/bun-lock-scope.js +97 -0
- package/dist/cargo-build-script-env.d.ts +49 -0
- package/dist/cargo-build-script-env.d.ts.map +1 -0
- package/dist/cargo-build-script-env.js +324 -0
- package/dist/cargo-closure-input.d.ts +31 -4
- package/dist/cargo-closure-input.d.ts.map +1 -1
- package/dist/cargo-closure-input.js +66 -6
- package/dist/cargo-retention-hook.d.ts +17 -0
- package/dist/cargo-retention-hook.d.ts.map +1 -0
- package/dist/cargo-retention-hook.js +85 -0
- package/dist/cargo-source-hash.d.ts +25 -7
- package/dist/cargo-source-hash.d.ts.map +1 -1
- package/dist/cargo-source-hash.js +108 -43
- package/dist/cargo-toolchain-paths.d.ts +40 -0
- package/dist/cargo-toolchain-paths.d.ts.map +1 -0
- package/dist/cargo-toolchain-paths.js +84 -0
- package/dist/cargo-toolchain-policy.d.ts +25 -8
- package/dist/cargo-toolchain-policy.d.ts.map +1 -1
- package/dist/cargo-toolchain-policy.js +39 -5
- package/dist/cargo-workspace.d.ts +10 -4
- package/dist/cargo-workspace.d.ts.map +1 -1
- package/dist/cargo-workspace.js +65 -95
- package/dist/cross-check-policy.d.ts +9 -9
- package/dist/cross-check-policy.d.ts.map +1 -1
- package/dist/cross-check-policy.js +11 -11
- package/dist/disk-command-policy.d.ts.map +1 -1
- package/dist/disk-command-policy.js +1 -0
- package/dist/ensure-built-receipt.d.ts +22 -5
- package/dist/ensure-built-receipt.d.ts.map +1 -1
- package/dist/ensure-built-receipt.js +168 -48
- package/dist/ensure-built-witness.d.ts +27 -8
- package/dist/ensure-built-witness.d.ts.map +1 -1
- package/dist/ensure-built-witness.js +45 -15
- package/dist/ensure-built.d.ts.map +1 -1
- package/dist/ensure-built.js +9 -1
- package/dist/eslint-config-closure.d.ts +7 -0
- package/dist/eslint-config-closure.d.ts.map +1 -0
- package/dist/eslint-config-closure.js +346 -0
- package/dist/executors/bounded-exec/bounds.d.ts +56 -0
- package/dist/executors/bounded-exec/bounds.d.ts.map +1 -0
- package/dist/executors/bounded-exec/bounds.js +43 -0
- package/dist/executors/bounded-exec/cpu-pool-thread.d.ts +28 -0
- package/dist/executors/bounded-exec/cpu-pool-thread.d.ts.map +1 -0
- package/dist/executors/bounded-exec/cpu-pool-thread.js +20 -0
- package/dist/executors/bounded-exec/cpu-pool.d.ts +35 -38
- package/dist/executors/bounded-exec/cpu-pool.d.ts.map +1 -1
- package/dist/executors/bounded-exec/cpu-pool.js +56 -120
- package/dist/executors/bounded-exec/executor.d.ts +19 -12
- package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
- package/dist/executors/bounded-exec/executor.js +389 -239
- package/dist/executors/bounded-exec/gateway-lease.d.ts +23 -19
- package/dist/executors/bounded-exec/gateway-lease.d.ts.map +1 -1
- package/dist/executors/bounded-exec/gateway-lease.js +102 -29
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts +18 -1
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts.map +1 -1
- package/dist/executors/bounded-exec/hang-diagnostics.js +148 -30
- package/dist/executors/bounded-exec/lease-wait.d.ts +64 -0
- package/dist/executors/bounded-exec/lease-wait.d.ts.map +1 -0
- package/dist/executors/bounded-exec/lease-wait.js +72 -0
- package/dist/executors/bounded-exec/lock-wait.d.ts +51 -0
- package/dist/executors/bounded-exec/lock-wait.d.ts.map +1 -0
- package/dist/executors/bounded-exec/lock-wait.js +108 -0
- package/dist/executors/bounded-exec/mbx-pool.d.ts +31 -0
- package/dist/executors/bounded-exec/mbx-pool.d.ts.map +1 -0
- package/dist/executors/bounded-exec/mbx-pool.js +24 -0
- package/dist/executors/bounded-exec/owned-subtree.d.ts +84 -0
- package/dist/executors/bounded-exec/owned-subtree.d.ts.map +1 -0
- package/dist/executors/bounded-exec/owned-subtree.js +178 -0
- package/dist/executors/bounded-exec/progress.d.ts +4 -1
- package/dist/executors/bounded-exec/progress.d.ts.map +1 -1
- package/dist/executors/bounded-exec/progress.js +5 -2
- package/dist/executors/bounded-exec/ram-attach.d.ts +19 -0
- package/dist/executors/bounded-exec/ram-attach.d.ts.map +1 -0
- package/dist/executors/bounded-exec/ram-attach.js +207 -0
- package/dist/executors/bounded-exec/ram-detach.d.ts +25 -0
- package/dist/executors/bounded-exec/ram-detach.d.ts.map +1 -0
- package/dist/executors/bounded-exec/ram-detach.js +207 -0
- package/dist/executors/bounded-exec/ram-temp-fixtures.d.ts +76 -0
- package/dist/executors/bounded-exec/ram-temp-fixtures.d.ts.map +1 -1
- package/dist/executors/bounded-exec/ram-temp-fixtures.js +296 -0
- package/dist/executors/bounded-exec/ram-temp.d.ts +388 -88
- package/dist/executors/bounded-exec/ram-temp.d.ts.map +1 -1
- package/dist/executors/bounded-exec/ram-temp.js +1213 -399
- package/dist/executors/bounded-exec/run-cpu-pool.d.ts +10 -4
- package/dist/executors/bounded-exec/run-cpu-pool.d.ts.map +1 -1
- package/dist/executors/bounded-exec/run-cpu-pool.js +122 -35
- package/dist/executors/bounded-exec/runner-hook.js +14 -5
- package/dist/executors/bounded-exec/runner-lifecycle.d.ts +14 -1
- package/dist/executors/bounded-exec/runner-lifecycle.d.ts.map +1 -1
- package/dist/executors/bounded-exec/runner-lifecycle.js +27 -6
- package/dist/executors/bounded-exec/{cpu-tokens.d.ts → runner-sizing.d.ts} +14 -42
- package/dist/executors/bounded-exec/runner-sizing.d.ts.map +1 -0
- package/dist/executors/bounded-exec/{cpu-tokens.js → runner-sizing.js} +5 -35
- package/dist/executors/bounded-exec/runtime-pin.d.ts +73 -0
- package/dist/executors/bounded-exec/runtime-pin.d.ts.map +1 -0
- package/dist/executors/bounded-exec/runtime-pin.js +167 -0
- package/dist/executors/bounded-exec/schema.d.ts +18 -1
- package/dist/executors/bounded-exec/schema.d.ts.map +1 -1
- package/dist/executors/bounded-exec/verdict.d.ts +48 -11
- package/dist/executors/bounded-exec/verdict.d.ts.map +1 -1
- package/dist/executors/bounded-exec/verdict.js +89 -20
- package/dist/executors/cargo-zigbuild/executor.d.ts +21 -0
- package/dist/executors/cargo-zigbuild/executor.d.ts.map +1 -1
- package/dist/executors/cargo-zigbuild/executor.js +67 -12
- package/dist/executors/clean-outputs/executor.js +1 -0
- package/dist/executors/scriptc-native/executor.d.ts +79 -0
- package/dist/executors/scriptc-native/executor.d.ts.map +1 -0
- package/dist/executors/scriptc-native/executor.js +367 -0
- package/dist/executors/scriptc-native/ffi-paths.d.ts +9 -0
- package/dist/executors/scriptc-native/ffi-paths.d.ts.map +1 -0
- package/dist/executors/scriptc-native/ffi-paths.js +25 -0
- package/dist/executors/scriptc-native/schema.d.ts +34 -0
- package/dist/executors/scriptc-native/schema.d.ts.map +1 -0
- package/dist/executors/scriptc-native/schema.js +1 -0
- package/dist/executors/typescript-emit/emit-overrides.d.ts +14 -0
- package/dist/executors/typescript-emit/emit-overrides.d.ts.map +1 -0
- package/dist/executors/typescript-emit/emit-overrides.js +24 -0
- package/dist/executors/typescript-emit/executor.d.ts +3 -1
- package/dist/executors/typescript-emit/executor.d.ts.map +1 -1
- package/dist/executors/typescript-emit/executor.js +146 -33
- package/dist/forbidden-spelling-policy.d.ts +56 -0
- package/dist/forbidden-spelling-policy.d.ts.map +1 -0
- package/dist/forbidden-spelling-policy.js +176 -0
- package/dist/generators/create-package/generator.d.ts.map +1 -1
- package/dist/generators/create-package/generator.js +3 -4
- package/dist/graph-input-contract.d.ts +14 -0
- package/dist/graph-input-contract.d.ts.map +1 -1
- package/dist/graph-input-contract.js +67 -2
- package/dist/index.d.ts +23 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +672 -214
- package/dist/managed-assets.d.ts +2 -0
- package/dist/managed-assets.d.ts.map +1 -1
- package/dist/managed-files/files.d.ts +3 -3
- package/dist/managed-files/files.d.ts.map +1 -1
- package/dist/managed-files/files.js +28 -3
- package/dist/managed-files/managed-format.d.ts.map +1 -1
- package/dist/managed-files/managed-format.js +1 -0
- package/dist/managed-files/publish-workflow.js +14 -11
- package/dist/nextest-code-bound.js +1 -0
- package/dist/nextest-timings.d.ts +35 -0
- package/dist/nextest-timings.d.ts.map +1 -0
- package/dist/nextest-timings.js +168 -0
- package/dist/owned-installation.d.ts +6 -5
- package/dist/owned-installation.d.ts.map +1 -1
- package/dist/owned-installation.js +150 -26
- package/dist/package-target-policy.d.ts.map +1 -1
- package/dist/package-target-policy.js +2 -3
- package/dist/process-children.d.ts +7 -0
- package/dist/process-children.d.ts.map +1 -0
- package/dist/process-children.darwin.d.ts +7 -0
- package/dist/process-children.darwin.d.ts.map +1 -0
- package/dist/process-children.darwin.js +13 -0
- package/dist/process-children.js +14 -0
- package/dist/process-children.linux.d.ts +8 -0
- package/dist/process-children.linux.d.ts.map +1 -0
- package/dist/process-children.linux.js +25 -0
- package/dist/process-group.d.ts +108 -0
- package/dist/process-group.d.ts.map +1 -0
- package/dist/process-group.js +171 -0
- package/dist/process-listing.d.ts +7 -0
- package/dist/process-listing.d.ts.map +1 -0
- package/dist/process-listing.js +51 -0
- package/dist/producer-receipts.d.ts +8 -2
- package/dist/producer-receipts.d.ts.map +1 -1
- package/dist/producer-receipts.js +514 -47
- package/dist/task-graph-policy.d.ts +21 -0
- package/dist/task-graph-policy.d.ts.map +1 -0
- package/dist/task-graph-policy.js +91 -0
- package/dist/test-timings.js +4 -4
- package/dist/test-walk-policy.d.ts +14 -5
- package/dist/test-walk-policy.d.ts.map +1 -1
- package/dist/test-walk-policy.js +8 -2
- package/dist/testing.d.ts +73 -28
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +217 -223
- package/dist/tool-bins.d.ts +33 -0
- package/dist/tool-bins.d.ts.map +1 -0
- package/dist/tool-bins.js +72 -0
- package/dist/typecheck-test-policy.d.ts.map +1 -1
- package/dist/typecheck-test-policy.js +3 -4
- package/dist/wait-why-policy.d.ts +28 -0
- package/dist/wait-why-policy.d.ts.map +1 -0
- package/dist/wait-why-policy.js +223 -0
- package/dist/workspace-config-policy.d.ts +14 -8
- package/dist/workspace-config-policy.d.ts.map +1 -1
- package/dist/workspace-config-policy.js +60 -16
- package/dist/workspace-manifest.d.ts +41 -6
- package/dist/workspace-manifest.d.ts.map +1 -1
- package/dist/workspace-manifest.js +57 -0
- package/executors.json +16 -1
- package/loader.js +2 -0
- package/managed/raw/envrc +11 -0
- package/managed/raw/patches/nx@23.2.1.patch +2840 -199
- package/managed/raw/patches/ttsc@0.34.1.patch +119 -0
- package/managed/raw/tooling/direnv/cargo-fetch-bound.ts +245 -0
- package/managed/raw/tooling/direnv/cargo-fetch-run.ts +299 -0
- package/managed/raw/tooling/direnv/compiler-variables.sh +42 -0
- package/managed/raw/tooling/direnv/developer-links.ts +464 -25
- package/managed/raw/tooling/direnv/devenv.smoo.nix +78 -38
- package/managed/raw/tooling/direnv/github-actions-bootstrap.sh +14 -12
- package/managed/raw/tooling/direnv/installed-bun-links.ts +308 -0
- package/managed/raw/tooling/direnv/linked-snapshots.ts +62 -3
- package/managed/raw/tooling/direnv/nx-socket-dir.sh +56 -17
- package/managed/raw/tooling/direnv/repo-path +68 -6
- package/managed/raw/tooling/direnv/secret-references.ts +13 -4
- package/managed/raw/tooling/direnv/setup-environment.ts +128 -537
- package/managed/raw/tooling/direnv/toolchain-stamp.ts +4 -2
- package/managed/raw/tooling/direnv/ttsc-env.sh +9 -0
- package/managed/raw/tooling/direnv/uv-relocation.ts +227 -0
- package/managed/raw/tooling/git-hooks/commit-msg.sh +2 -1
- package/managed/raw/tooling/git-hooks/pre-commit.sh +2 -1
- package/managed/raw/tooling/git-hooks/pre-push.sh +2 -1
- package/managed/templates/github/actions/cache-ttsc-plugins/action.yml +85 -7
- package/managed/templates/github/actions/save-nix-devenv/action.yml +12 -2
- package/managed/templates/github/actions/setup-devenv/action.yml +2 -0
- package/package.json +95 -14
- package/src/bin/smoo-nx-cargo-toolchain.ts +11 -0
- package/src/bin/smoo-nx-forbidden-spellings.ts +33 -0
- package/src/bin/smoo-nx-nextest-timings.ts +31 -0
- package/src/bounded-test-policy.ts +12 -14
- package/src/build-state-output-policy.ts +458 -34
- package/src/bun-lock-scope.ts +108 -0
- package/src/cargo-build-script-env.ts +265 -0
- package/src/cargo-closure-input.ts +74 -7
- package/src/cargo-retention-hook.ts +94 -0
- package/src/cargo-source-hash.ts +138 -41
- package/src/cargo-toolchain-paths.ts +95 -0
- package/src/cargo-toolchain-policy.ts +49 -5
- package/src/cargo-workspace.ts +72 -123
- package/src/cross-check-policy.ts +12 -10
- package/src/disk-command-policy.ts +1 -0
- package/src/ensure-built-receipt.ts +173 -39
- package/src/ensure-built-witness.ts +62 -10
- package/src/ensure-built.ts +11 -1
- package/src/eslint-config-closure.ts +357 -0
- package/src/executors/bounded-exec/bounds.ts +76 -0
- package/src/executors/bounded-exec/cpu-pool-thread.ts +43 -0
- package/src/executors/bounded-exec/cpu-pool.ts +55 -120
- package/src/executors/bounded-exec/executor.ts +442 -260
- package/src/executors/bounded-exec/gateway-lease.ts +94 -35
- package/src/executors/bounded-exec/hang-diagnostics.ts +173 -31
- package/src/executors/bounded-exec/lease-wait.ts +116 -0
- package/src/executors/bounded-exec/lock-wait.ts +141 -0
- package/src/executors/bounded-exec/mbx-pool.ts +48 -0
- package/src/executors/bounded-exec/owned-subtree.ts +235 -0
- package/src/executors/bounded-exec/progress.ts +9 -3
- package/src/executors/bounded-exec/ram-attach.ts +238 -0
- package/src/executors/bounded-exec/ram-detach.ts +226 -0
- package/src/executors/bounded-exec/ram-temp-fixtures.ts +358 -0
- package/src/executors/bounded-exec/ram-temp-registry.txt +440 -0
- package/src/executors/bounded-exec/ram-temp.ts +1497 -460
- package/src/executors/bounded-exec/run-cpu-pool.ts +129 -35
- package/src/executors/bounded-exec/runner-hook.ts +14 -6
- package/src/executors/bounded-exec/runner-lifecycle.ts +31 -8
- package/src/executors/bounded-exec/{cpu-tokens.ts → runner-sizing.ts} +13 -59
- package/src/executors/bounded-exec/runtime-pin.ts +232 -0
- package/src/executors/bounded-exec/schema.json +11 -2
- package/src/executors/bounded-exec/schema.ts +19 -1
- package/src/executors/bounded-exec/verdict.ts +145 -35
- package/src/executors/cargo-zigbuild/executor.ts +82 -8
- package/src/executors/clean-outputs/executor.ts +1 -0
- package/src/executors/scriptc-native/executor.ts +394 -0
- package/src/executors/scriptc-native/ffi-paths.ts +29 -0
- package/src/executors/scriptc-native/schema.json +60 -0
- package/src/executors/scriptc-native/schema.ts +34 -0
- package/src/executors/typescript-emit/emit-overrides.ts +24 -0
- package/src/executors/typescript-emit/executor.ts +186 -38
- package/src/forbidden-spelling-policy.ts +226 -0
- package/src/generators/create-package/generator.ts +7 -7
- package/src/graph-input-contract.ts +61 -2
- package/src/index.ts +788 -224
- package/src/managed-assets.ts +3 -0
- package/src/managed-files/files.ts +28 -3
- package/src/managed-files/managed-format.ts +1 -0
- package/src/managed-files/publish-workflow.ts +20 -15
- package/src/nextest-code-bound.ts +1 -0
- package/src/nextest-timings.ts +106 -0
- package/src/owned-installation.ts +150 -23
- package/src/package-target-policy.ts +2 -3
- package/src/process-children.darwin.ts +14 -0
- package/src/process-children.linux.ts +33 -0
- package/src/process-children.ts +22 -0
- package/src/process-group.ts +209 -0
- package/src/process-listing.ts +54 -0
- package/src/producer-receipts.ts +92 -41
- package/src/task-graph-policy.ts +98 -0
- package/src/test-walk-policy.ts +23 -8
- package/src/testing.ts +240 -232
- package/src/tool-bins.ts +108 -0
- package/src/typecheck-test-policy.ts +2 -3
- package/src/wait-why-policy.ts +226 -0
- package/src/workspace-config-policy.ts +63 -15
- package/src/workspace-manifest.ts +89 -6
- package/test-timings.json +124 -99
- package/dist/bin/smoo-nx-failures.d.ts +0 -3
- package/dist/bin/smoo-nx-failures.d.ts.map +0 -1
- package/dist/bin/smoo-nx-failures.js +0 -3
- package/dist/bin/smoo-nx-nextest-extract.d.ts +0 -3
- package/dist/bin/smoo-nx-nextest-extract.d.ts.map +0 -1
- package/dist/bin/smoo-nx-nextest-extract.js +0 -42
- package/dist/executors/bounded-exec/cpu-tokens.d.ts.map +0 -1
- package/dist/failure-summary.d.ts +0 -5
- package/dist/failure-summary.d.ts.map +0 -1
- package/dist/failure-summary.js +0 -118
- package/dist/nextest-extraction.d.ts +0 -117
- package/dist/nextest-extraction.d.ts.map +0 -1
- package/dist/nextest-extraction.js +0 -303
- package/managed/raw/patches/ttsc@0.30.4.patch +0 -2255
- package/src/__tests__/cargo-closure-filesets.ts +0 -94
- package/src/__tests__/cargo-closure-fixture.ts +0 -113
- package/src/__tests__/counted-cargo-process.ts +0 -286
- package/src/__tests__/counted-cargo.ts +0 -713
- package/src/__tests__/directory-change.ts +0 -27
- package/src/__tests__/fixture-cargo-home.ts +0 -36
- package/src/__tests__/fixture-nx-env.ts +0 -193
- package/src/__tests__/owned-installation.ts +0 -13
- package/src/__tests__/past-tick.ts +0 -12
- package/src/__tests__/progress-clock.ts +0 -43
- package/src/__tests__/runtime-input.ts +0 -23
- package/src/bin/smoo-nx-bound-failures.test.ts +0 -127
- package/src/bin/smoo-nx-failures.ts +0 -4
- package/src/bin/smoo-nx-nextest-extract.ts +0 -44
- package/src/bounded-test-policy.test.ts +0 -1029
- package/src/build-state-output-policy.test.ts +0 -115
- package/src/bun-bootstrap.test.ts +0 -102
- package/src/bun-file-packages.test.ts +0 -47
- package/src/cargo-closure-filesets.test.ts +0 -63
- package/src/cargo-closure-input.property.test.ts +0 -50
- package/src/cargo-closure-input.test.ts +0 -506
- package/src/cargo-closure-key.test.ts +0 -240
- package/src/cargo-resolve-cache.test.ts +0 -1181
- package/src/cargo-source-hash.test.ts +0 -707
- package/src/cargo-workspace.test.ts +0 -615
- package/src/cross-check-policy.test.ts +0 -316
- package/src/disk-command-policy.test.ts +0 -61
- package/src/ensure-built-receipt.test.ts +0 -279
- package/src/ensure-built-witness.test.ts +0 -688
- package/src/ensure-built.test.ts +0 -1462
- package/src/executors/all-verdicts/executor.test.ts +0 -135
- package/src/executors/bounded-exec/cargo-progress-host.test.ts +0 -332
- package/src/executors/bounded-exec/cpu-pool.test.ts +0 -684
- package/src/executors/bounded-exec/cpu-tokens.test.ts +0 -519
- package/src/executors/bounded-exec/disk-lease.test.ts +0 -219
- package/src/executors/bounded-exec/executor-host.test.ts +0 -800
- package/src/executors/bounded-exec/executor.test.ts +0 -1819
- package/src/executors/bounded-exec/go-progress-host.test.ts +0 -171
- package/src/executors/bounded-exec/hang-diagnostics.test.ts +0 -291
- package/src/executors/bounded-exec/progress.test.ts +0 -139
- package/src/executors/bounded-exec/ram-temp-held.test.ts +0 -264
- package/src/executors/bounded-exec/ram-temp-host.test.ts +0 -635
- package/src/executors/bounded-exec/ram-temp.test.ts +0 -750
- package/src/executors/bounded-exec/run-cpu-pool.test.ts +0 -79
- package/src/executors/bounded-exec/runner-hook.test.ts +0 -193
- package/src/executors/bounded-exec/runner-lifecycle.test.ts +0 -82
- package/src/executors/bounded-exec/verdict.test.ts +0 -545
- package/src/executors/cargo-zigbuild/executor.test.ts +0 -129
- package/src/executors/clean-outputs/executor.test.ts +0 -20
- package/src/executors/typescript-emit/executor.test.ts +0 -83
- package/src/failure-summary.ts +0 -119
- package/src/generators/bounded-test-targets/generator.test.ts +0 -138
- package/src/generators/bun-test-tracing/generator.test.ts +0 -250
- package/src/generators/create-package/generator.test.ts +0 -190
- package/src/generators/make-public/generator.test.ts +0 -137
- package/src/graph-input-contract.test.ts +0 -379
- package/src/host-controller-wiring.test.ts +0 -31
- package/src/index.test.ts +0 -3321
- package/src/linked-snapshots.nx.test.ts +0 -254
- package/src/managed-files/forgejo-artifact.test.ts +0 -395
- package/src/managed-files/generator.test.ts +0 -243
- package/src/managed-files/github-host-cache-isolation.test.ts +0 -86
- package/src/managed-files/json-edit.test.ts +0 -216
- package/src/managed-files/managed-content.test.ts +0 -166
- package/src/managed-files/managed-format-json.test.ts +0 -308
- package/src/managed-files/repo-path.test.ts +0 -172
- package/src/managed-files/setup-devenv-free-disk.test.ts +0 -95
- package/src/managed-files/trace-db-artifact.test.ts +0 -7
- package/src/managed-files/tree-permissions.test.ts +0 -109
- package/src/managed-files/tree.test.ts +0 -123
- package/src/manifest-hash.test.ts +0 -219
- package/src/nextest-code-bound.test.ts +0 -161
- package/src/nextest-extraction.test.ts +0 -216
- package/src/nextest-extraction.ts +0 -371
- package/src/nextest-partitions.test.ts +0 -501
- package/src/nx-cache-bound.test.ts +0 -109
- package/src/nx-cache-restore-mtime.test.ts +0 -170
- package/src/nx-daemon-claim.test.ts +0 -279
- package/src/nx-daemon-idle-cpu.test.ts +0 -80
- package/src/nx-daemon-idle-policy.test.ts +0 -111
- package/src/nx-daemon-ignore-files.test.ts +0 -210
- package/src/nx-daemon-root-normalization.test.ts +0 -105
- package/src/nx-daemon-start-never.test.ts +0 -292
- package/src/nx-daemon-validity.test.ts +0 -1055
- package/src/nx-dot-input-policy.test.ts +0 -353
- package/src/nx-failure-life-cycles.test.ts +0 -207
- package/src/nx-files-archive-racy.test.ts +0 -97
- package/src/nx-foreign-workspace-env.test.ts +0 -329
- package/src/nx-incomplete-run-summary.test.ts +0 -70
- package/src/nx-plugin-load-errors.test.ts +0 -120
- package/src/nx-project-graph-errors.test.ts +0 -70
- package/src/nx-project-resolution-cache.test.ts +0 -176
- package/src/nx-raw-inputs.test.ts +0 -166
- package/src/nx-resident-graph-workers.test.ts +0 -112
- package/src/nx-run-information.test.ts +0 -118
- package/src/nx-skipped-task-exit.test.ts +0 -180
- package/src/nx-state-location.test.ts +0 -63
- package/src/nx-store-resolution.test.ts +0 -81
- package/src/nx-task-graph-cycles.test.ts +0 -148
- package/src/nx-task-output-lease.test.ts +0 -550
- package/src/nx-use-local.test.ts +0 -105
- package/src/owned-installation.test.ts +0 -105
- package/src/package-target-policy.test.ts +0 -1014
- package/src/producer-receipts.test.ts +0 -285
- package/src/release-config-policy.test.ts +0 -311
- package/src/runtime-input.test.ts +0 -393
- package/src/serial-group-wiring.test.ts +0 -326
- package/src/task-history-namespace.test.ts +0 -181
- package/src/task-results.test.ts +0 -228
- package/src/test-clock-policy.test.ts +0 -338
- package/src/test-program.test.ts +0 -303
- package/src/test-timings.test.ts +0 -240
- package/src/test-walk-policy.test.ts +0 -620
- package/src/testing.test.ts +0 -509
- package/src/typecheck-test-policy.test.ts +0 -1468
- package/src/typescript-resolution.test.ts +0 -76
- package/src/version-actions.test.ts +0 -80
- package/src/workspace-config-policy.test.ts +0 -737
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createHash, randomUUID } from 'node:crypto';
|
|
2
|
-
import { existsSync, lstatSync, mkdirSync,
|
|
2
|
+
import { existsSync, lstatSync, mkdirSync, readFileSync, realpathSync, renameSync, rmSync, writeFileSync, } from 'node:fs';
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
4
|
import { delimiter, dirname, join, resolve } from 'node:path';
|
|
5
5
|
import typia from 'typia';
|
|
6
6
|
import { createWorkspaceNxRequire, parseTargetSelector, providerInputProof, selectorTaskId, } from './ensure-built.js';
|
|
7
|
-
import { captureProducerSource, producerOutputPaths, providerReceipt, receiptNode, } from './ensure-built-receipt.js';
|
|
8
|
-
import { censusFileHashes, censusStart, graphInstallationCensus, movedNodes, readInstallationCensus, workspaceSnapshot, writeWitness, } from './ensure-built-witness.js';
|
|
7
|
+
import { captureProducerSource, captureProducerSources, producerOutputPaths, providerReceipt, receiptNode, removeOrphanedOutputs, } from './ensure-built-receipt.js';
|
|
8
|
+
import { censusFileHashes, censusStart, directoryMembers, graphInstallationCensus, movedNodes, readInstallationCensus, workspaceSnapshot, writeWitness, } from './ensure-built-witness.js';
|
|
9
9
|
import { graphInputContractIdentity } from './graph-input-contract.js';
|
|
10
10
|
/**
|
|
11
11
|
* Where a checkout keeps its producer records, relative to its root: in its own source tree, never in Nx's
|
|
@@ -79,6 +79,14 @@ function recordedTool(tools) {
|
|
|
79
79
|
return node !== undefined && same(receiptNode(path, path), node);
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* The first tool nodes that moved since `tools` recorded them ({@link movedNodes}), or null when none did. A node whose
|
|
84
|
+
* ctime alone moved, and a directory whose membership may have, is compared with what `tools` recorded of it.
|
|
85
|
+
*/
|
|
86
|
+
export function movedToolNodes(nodes, tools) {
|
|
87
|
+
const recorded = recordedTool(tools);
|
|
88
|
+
return movedNodes(nodes, recorded, recorded);
|
|
89
|
+
}
|
|
82
90
|
function missing(paths) {
|
|
83
91
|
return paths.every((path) => {
|
|
84
92
|
try {
|
|
@@ -104,8 +112,9 @@ function targetGraph(root, target, projectGraph) {
|
|
|
104
112
|
/**
|
|
105
113
|
* The installed closure of Nx, this plugin, TypeScript and the local graph plugins as one producer tool: every node of
|
|
106
114
|
* the installation census, and the module namespace each of its resolutions searched. The census is not proved by a
|
|
107
|
-
* stat pass of its own
|
|
108
|
-
*
|
|
115
|
+
* stat pass of its own, and is not read twice: a tool node takes the stat, listing and hash the census read of it
|
|
116
|
+
* ({@link CensusRead}), and the stability check after execution reads every tool node again and refuses one that moved
|
|
117
|
+
* at any point from this capture to the run's completion.
|
|
109
118
|
*
|
|
110
119
|
* Its value is a function of the closure's node stamps (device, inode, mode, size, mtime and ctime), not of the moment
|
|
111
120
|
* it is taken. So every node is stat-ed on every call, and that is what makes reuse safe: a file whose stamp is the one
|
|
@@ -117,10 +126,11 @@ function targetGraph(root, target, projectGraph) {
|
|
|
117
126
|
*/
|
|
118
127
|
export function installedClosureTool(root, nxJson, localInputs, record, resolvePackage, expand, census) {
|
|
119
128
|
let installationMiss = 'unproved installed module/resolution closure';
|
|
129
|
+
const reads = new Map();
|
|
120
130
|
performance.mark('producerReceipts:census:start');
|
|
121
131
|
const installation = graphInstallationCensus(root, nxJson, resolvePackage, expand, localInputs ?? { plugins: [], packages: [], identity: '[]' }, (detail) => {
|
|
122
132
|
installationMiss = detail;
|
|
123
|
-
}, readInstallationCensus(record));
|
|
133
|
+
}, readInstallationCensus(record), reads);
|
|
124
134
|
performance.measure('producerReceipts:census', 'producerReceipts:census:start');
|
|
125
135
|
if (installation === null)
|
|
126
136
|
return { ok: false, detail: `Producer installed module/resolution closure is unproved: ${installationMiss}` };
|
|
@@ -143,7 +153,7 @@ export function installedClosureTool(root, nxJson, localInputs, record, resolveP
|
|
|
143
153
|
if (stats.isSymbolicLink())
|
|
144
154
|
paths.add(realpathSync(path));
|
|
145
155
|
if (stats.isDirectory())
|
|
146
|
-
for (const name of
|
|
156
|
+
for (const name of directoryMembers(path))
|
|
147
157
|
paths.add(join(path, name));
|
|
148
158
|
}
|
|
149
159
|
const resolutions = [];
|
|
@@ -159,7 +169,7 @@ export function installedClosureTool(root, nxJson, localInputs, record, resolveP
|
|
|
159
169
|
}
|
|
160
170
|
}
|
|
161
171
|
const recorded = censusFileHashes(installation);
|
|
162
|
-
const nodes = [...paths].sort().map((path) => receiptNode(path, path, census, recorded));
|
|
172
|
+
const nodes = [...paths].sort().map((path) => receiptNode(path, path, census, recorded, reads.get(path)));
|
|
163
173
|
return {
|
|
164
174
|
ok: true,
|
|
165
175
|
value: {
|
|
@@ -231,9 +241,6 @@ function toolsFor(root, nxJson, projectGraph, bases) {
|
|
|
231
241
|
sha256: sha(entries),
|
|
232
242
|
});
|
|
233
243
|
}
|
|
234
|
-
const capture = movedNodes(observed, recordedTool(tools));
|
|
235
|
-
if (capture !== null)
|
|
236
|
-
return { ok: false, detail: `Producer tool/module namespace moved during capture: ${capture}` };
|
|
237
244
|
if (!missing(module.missing))
|
|
238
245
|
return { ok: false, detail: 'Producer tool/module namespace moved during capture: a missing candidate appeared' };
|
|
239
246
|
return { ok: true, value: { tools, nodes: observed } };
|
|
@@ -255,7 +262,7 @@ function verifyTools(tools) {
|
|
|
255
262
|
if (!same(nodes, tool.nodes) || sha(nodes) !== tool.sha256)
|
|
256
263
|
return { ok: false, detail: `Producer tool/module bytes changed: ${tool.name}` };
|
|
257
264
|
}
|
|
258
|
-
const moved =
|
|
265
|
+
const moved = movedToolNodes(observed, tools);
|
|
259
266
|
return moved === null
|
|
260
267
|
? { ok: true, value: observed }
|
|
261
268
|
: { ok: false, detail: `Producer tool nodes changed during readonly validation: ${moved}` };
|
|
@@ -296,44 +303,78 @@ export async function preTasksExecution(options, context) {
|
|
|
296
303
|
const targets = configured(options);
|
|
297
304
|
if (targets.length === 0)
|
|
298
305
|
return;
|
|
306
|
+
const rootIds = new Map();
|
|
299
307
|
try {
|
|
300
308
|
const load = createWorkspaceNxRequire(context.workspaceRoot);
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
const projectGraph = await load('nx/src/project-graph/project-graph').createProjectGraphAsync();
|
|
304
|
-
performance.measure('producerReceipts:graph', 'producerReceipts:graph:start');
|
|
305
|
-
const bases = new Map();
|
|
309
|
+
const projectGraph = context.projectGraph;
|
|
310
|
+
const graphs = new Map();
|
|
306
311
|
for (const target of targets) {
|
|
307
|
-
|
|
312
|
+
const selected = parseTargetSelector(target);
|
|
313
|
+
if (selected === null)
|
|
314
|
+
throw new Error(`Invalid declared producer target ${target}`);
|
|
308
315
|
const graph = targetGraph(context.workspaceRoot, target, projectGraph);
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
316
|
+
const root = Object.values(graph.tasks).find((task) => task.target.project === selected.project && task.target.target === selected.target);
|
|
317
|
+
if (root !== undefined)
|
|
318
|
+
rootIds.set(target, root.id);
|
|
319
|
+
const actual = root === undefined ? undefined : context.taskGraph.tasks[root.id];
|
|
320
|
+
if (actual !== undefined && defaultOverrides(actual))
|
|
321
|
+
graphs.set(target, graph);
|
|
322
|
+
}
|
|
323
|
+
if (graphs.size === 0) {
|
|
324
|
+
runs.set(context.id, { ok: false, detail: 'No default producer roots scheduled', rootIds });
|
|
325
|
+
return;
|
|
326
|
+
}
|
|
327
|
+
// Before anything runs: what the producer's previous receipt declared and this graph no longer declares goes, so a
|
|
328
|
+
// layout change leaves no orphan in a published closure (removeOrphanedOutputs).
|
|
329
|
+
for (const [target, graph] of graphs) {
|
|
330
|
+
const previous = previousTaskGraph(context.workspaceRoot, target);
|
|
331
|
+
if (previous === null)
|
|
332
|
+
continue;
|
|
333
|
+
const removed = removeOrphanedOutputs(context.workspaceRoot, Object.values(previous.tasks), Object.values(graph.tasks), load('nx/src/native').expandOutputs, (task) => projectGraph.nodes[task.target.project]?.data.targets?.[task.target.target] !== undefined);
|
|
334
|
+
if (removed.length > 0) {
|
|
335
|
+
process.stderr.write(`producerReceipts: ${target}: removed outputs its previous receipt declared and no target declares now: ${removed.join(', ')}\n`);
|
|
315
336
|
}
|
|
316
|
-
|
|
337
|
+
}
|
|
338
|
+
const outputs = new Map([...graphs].map(([target, graph]) => [
|
|
339
|
+
target,
|
|
340
|
+
producerOutputPaths(context.workspaceRoot, Object.values(graph.tasks), load('nx/src/native').expandOutputs),
|
|
341
|
+
]));
|
|
342
|
+
performance.mark('producerReceipts:source:start');
|
|
343
|
+
const sources = captureProducerSources(context.workspaceRoot, outputs);
|
|
344
|
+
performance.measure('producerReceipts:source', 'producerReceipts:source:start');
|
|
345
|
+
if (!sources.ok) {
|
|
346
|
+
runs.set(context.id, { ...sources, rootIds });
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
const bases = new Map();
|
|
350
|
+
for (const [target, graph] of graphs) {
|
|
351
|
+
const source = sources.value.get(target);
|
|
352
|
+
if (source === undefined)
|
|
353
|
+
throw new Error('Lost selected producer source basis');
|
|
354
|
+
bases.set(target, { graph, source });
|
|
317
355
|
}
|
|
318
356
|
performance.mark('producerReceipts:tools:start');
|
|
319
357
|
const tools = toolsFor(context.workspaceRoot, context.nxJsonConfiguration, projectGraph, [...bases.values()]);
|
|
320
358
|
performance.measure('producerReceipts:tools', 'producerReceipts:tools:start');
|
|
321
|
-
runs.set(context.id,
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
359
|
+
runs.set(context.id, {
|
|
360
|
+
rootIds,
|
|
361
|
+
...(tools.ok
|
|
362
|
+
? {
|
|
363
|
+
ok: true,
|
|
364
|
+
value: {
|
|
365
|
+
projectGraph,
|
|
366
|
+
nxJson: context.nxJsonConfiguration,
|
|
367
|
+
targets: bases,
|
|
368
|
+
tools: tools.value.tools,
|
|
369
|
+
toolNodes: tools.value.nodes,
|
|
370
|
+
},
|
|
371
|
+
}
|
|
372
|
+
: tools),
|
|
373
|
+
});
|
|
333
374
|
}
|
|
334
375
|
catch (error) {
|
|
335
376
|
if (error instanceof Error)
|
|
336
|
-
runs.set(context.id, { ok: false, detail: error.message });
|
|
377
|
+
runs.set(context.id, { ok: false, detail: error.message, rootIds });
|
|
337
378
|
else
|
|
338
379
|
throw error;
|
|
339
380
|
}
|
|
@@ -345,15 +386,12 @@ export async function postTasksExecution(options, context) {
|
|
|
345
386
|
const selected = parseTargetSelector(target);
|
|
346
387
|
if (selected === null)
|
|
347
388
|
continue;
|
|
348
|
-
const
|
|
349
|
-
const plannedRoot = targetBasis === undefined
|
|
350
|
-
? undefined
|
|
351
|
-
: Object.values(targetBasis.graph.tasks).find((task) => task.target.project === selected.project && task.target.target === selected.target);
|
|
389
|
+
const plannedRoot = frame?.rootIds.get(target);
|
|
352
390
|
const rootResult = plannedRoot === undefined
|
|
353
391
|
? Object.values(context.taskResults).find(({ task }) => task.target.project === selected.project &&
|
|
354
392
|
task.target.target === selected.target &&
|
|
355
393
|
(selected.configuration === undefined || task.target.configuration === selected.configuration))
|
|
356
|
-
: context.taskResults[plannedRoot
|
|
394
|
+
: context.taskResults[plannedRoot];
|
|
357
395
|
if (rootResult === undefined)
|
|
358
396
|
continue;
|
|
359
397
|
const refuse = (detail) => {
|
|
@@ -378,9 +416,9 @@ export async function postTasksExecution(options, context) {
|
|
|
378
416
|
}
|
|
379
417
|
const tasks = completed.value;
|
|
380
418
|
let detail;
|
|
381
|
-
const execution =
|
|
419
|
+
const execution = movedToolNodes(frame.value.toolNodes, frame.value.tools);
|
|
382
420
|
if (execution !== null) {
|
|
383
|
-
refuse(`Producer tool/module nodes changed
|
|
421
|
+
refuse(`Producer tool/module nodes changed between capture and the end of execution: ${execution}`);
|
|
384
422
|
continue;
|
|
385
423
|
}
|
|
386
424
|
const load = createWorkspaceNxRequire(context.workspaceRoot);
|
|
@@ -437,7 +475,7 @@ export async function postTasksExecution(options, context) {
|
|
|
437
475
|
refuse(result.reason.detail);
|
|
438
476
|
continue;
|
|
439
477
|
}
|
|
440
|
-
const census =
|
|
478
|
+
const census = movedToolNodes(frame.value.toolNodes, frame.value.tools);
|
|
441
479
|
if (census !== null) {
|
|
442
480
|
refuse(`Producer tools changed during post-execution product census: ${census}`);
|
|
443
481
|
continue;
|
|
@@ -485,6 +523,435 @@ function latestRefusal(root, target) {
|
|
|
485
523
|
throw error;
|
|
486
524
|
}
|
|
487
525
|
}
|
|
526
|
+
/** The task graph the producer's previous published receipt recorded, whatever its validity now, or `null` when none reads. */
|
|
527
|
+
function previousTaskGraph(root, target) {
|
|
528
|
+
try {
|
|
529
|
+
const record = (() => {
|
|
530
|
+
const _ip0 = (input, _vctx = {}) => 1 === input["version"];
|
|
531
|
+
const _ip1 = (input, _vctx = {}) => "string" === typeof input["target"];
|
|
532
|
+
const _ip2 = (input, _vctx = {}) => "string" === typeof input["input"];
|
|
533
|
+
const _ip3 = (input, _vctx = {}) => null !== input["projects"] && undefined !== input["projects"] && ("string" === typeof input["projects"] || Array.isArray(input["projects"]) && input["projects"].every(elem => "string" === typeof elem));
|
|
534
|
+
const _ip4 = (input, _vctx = {}) => true === input["dependencies"];
|
|
535
|
+
const _ip5 = (input, _vctx = {}) => "string" === typeof input["fileset"];
|
|
536
|
+
const _ip6 = (input, _vctx = {}) => "string" === typeof input["command"];
|
|
537
|
+
const _ip7 = (input, _vctx = {}) => "object" === typeof input["nodes"] && null !== input["nodes"] && false === Array.isArray(input["nodes"]) && _io18(input["nodes"], _vctx);
|
|
538
|
+
const _ip8 = (input, _vctx = {}) => undefined === input["implicitDeps"] || "object" === typeof input["implicitDeps"] && null !== input["implicitDeps"] && false === Array.isArray(input["implicitDeps"]) && _io18(input["implicitDeps"], _vctx);
|
|
539
|
+
const _ip9 = (input, _vctx = {}) => undefined === input["runtime"] || "object" === typeof input["runtime"] && null !== input["runtime"] && false === Array.isArray(input["runtime"]) && _io18(input["runtime"], _vctx);
|
|
540
|
+
const _ip10 = (input, _vctx = {}) => "string" === typeof input["path"];
|
|
541
|
+
const _ip11 = (input, _vctx = {}) => "number" === typeof input["mode"];
|
|
542
|
+
const _ip12 = (input, _vctx = {}) => "string" === typeof input["sha256"];
|
|
543
|
+
const _ip13 = (input, _vctx = {}) => "string" === typeof input["name"];
|
|
544
|
+
const _ip14 = (input, _vctx = {}) => "string" === typeof input["from"];
|
|
545
|
+
const _ip15 = (input, _vctx = {}) => "string" === typeof input["id"];
|
|
546
|
+
const _ip16 = (input, _vctx = {}) => undefined === input["description"] || "string" === typeof input["description"];
|
|
547
|
+
const _ip17 = (input, _vctx = {}) => undefined === input["executor"] || "string" === typeof input["executor"];
|
|
548
|
+
const _ip18 = (input, _vctx = {}) => undefined === input["command"] || "string" === typeof input["command"];
|
|
549
|
+
const _ip19 = (input, _vctx = {}) => undefined === input["outputs"] || Array.isArray(input["outputs"]) && input["outputs"].every(elem => "string" === typeof elem);
|
|
550
|
+
const _ip20 = (input, _vctx = {}) => undefined === input["dependsOn"] || Array.isArray(input["dependsOn"]) && input["dependsOn"].every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && _io33(elem, _vctx)));
|
|
551
|
+
const _ip21 = (input, _vctx = {}) => undefined === input["inputs"] || Array.isArray(input["inputs"]) && input["inputs"].every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && _iu0(elem, _vctx)));
|
|
552
|
+
const _ip22 = (input, _vctx = {}) => true;
|
|
553
|
+
const _ip23 = (input, _vctx = {}) => undefined === input["configurations"] || "object" === typeof input["configurations"] && null !== input["configurations"] && false === Array.isArray(input["configurations"]) && _io34(input["configurations"], _vctx);
|
|
554
|
+
const _ip24 = (input, _vctx = {}) => undefined === input["defaultConfiguration"] || "string" === typeof input["defaultConfiguration"];
|
|
555
|
+
const _ip25 = (input, _vctx = {}) => undefined === input["cache"] || "boolean" === typeof input["cache"];
|
|
556
|
+
const _ip26 = (input, _vctx = {}) => undefined === input["metadata"] || "object" === typeof input["metadata"] && null !== input["metadata"] && false === Array.isArray(input["metadata"]) && _io35(input["metadata"], _vctx);
|
|
557
|
+
const _ip27 = (input, _vctx = {}) => undefined === input["parallelism"] || "boolean" === typeof input["parallelism"];
|
|
558
|
+
const _ip28 = (input, _vctx = {}) => undefined === input["continuous"] || "boolean" === typeof input["continuous"];
|
|
559
|
+
const _ip29 = (input, _vctx = {}) => undefined === input["syncGenerators"] || Array.isArray(input["syncGenerators"]) && input["syncGenerators"].every(elem => "string" === typeof elem);
|
|
560
|
+
const _ip30 = (input, _vctx = {}) => undefined === input["..."] || true === input["..."];
|
|
561
|
+
const _ip31 = (input, _vctx = {}) => null !== input["projects"] && (undefined === input["projects"] || "string" === typeof input["projects"] || Array.isArray(input["projects"]) && input["projects"].every(elem => "string" === typeof elem));
|
|
562
|
+
const _ip32 = (input, _vctx = {}) => undefined === input["technologies"] || Array.isArray(input["technologies"]) && input["technologies"].every(elem => "string" === typeof elem);
|
|
563
|
+
const _ip33 = (input, _vctx = {}) => null !== input["docker"] && (undefined === input["docker"] || true === input["docker"] || "object" === typeof input["docker"] && null !== input["docker"] && false === Array.isArray(input["docker"]) && _io45(input["docker"], _vctx));
|
|
564
|
+
const _ip34 = (input, _vctx = {}) => undefined === input["preVersionCommand"] || "string" === typeof input["preVersionCommand"];
|
|
565
|
+
const _ip36 = (input, _vctx = {}) => "string" === typeof input["packageName"];
|
|
566
|
+
const _ip37 = (input, _vctx = {}) => "string" === typeof input["type"];
|
|
567
|
+
const _ip38 = (input, _vctx = {}) => "string" === typeof input["version"];
|
|
568
|
+
const _ip39 = (input, _vctx = {}) => undefined === input["hash"] || "string" === typeof input["hash"];
|
|
569
|
+
const _ip40 = (input, _vctx = {}) => undefined === input["$schema"] || "string" === typeof input["$schema"];
|
|
570
|
+
const _ip41 = (input, _vctx = {}) => undefined === input["extends"] || "string" === typeof input["extends"];
|
|
571
|
+
const _ip42 = (input, _vctx = {}) => undefined === input["implicitDependencies"] || "object" === typeof input["implicitDependencies"] && null !== input["implicitDependencies"] && false === Array.isArray(input["implicitDependencies"]) && _io67(input["implicitDependencies"], _vctx);
|
|
572
|
+
const _ip43 = (input, _vctx = {}) => undefined === input["namedInputs"] || "object" === typeof input["namedInputs"] && null !== input["namedInputs"] && false === Array.isArray(input["namedInputs"]) && _io69(input["namedInputs"], _vctx);
|
|
573
|
+
const _ip44 = (input, _vctx = {}) => undefined === input["targetDefaults"] || "object" === typeof input["targetDefaults"] && null !== input["targetDefaults"] && false === Array.isArray(input["targetDefaults"]) && _io70(input["targetDefaults"], _vctx);
|
|
574
|
+
const _ip45 = (input, _vctx = {}) => undefined === input["affected"] || "object" === typeof input["affected"] && null !== input["affected"] && false === Array.isArray(input["affected"]) && _io76(input["affected"], _vctx);
|
|
575
|
+
const _ip46 = (input, _vctx = {}) => undefined === input["defaultBase"] || "string" === typeof input["defaultBase"];
|
|
576
|
+
const _ip47 = (input, _vctx = {}) => undefined === input["workspaceLayout"] || "object" === typeof input["workspaceLayout"] && null !== input["workspaceLayout"] && false === Array.isArray(input["workspaceLayout"]) && _io77(input["workspaceLayout"], _vctx);
|
|
577
|
+
const _ip48 = (input, _vctx = {}) => undefined === input["tasksRunnerOptions"] || "object" === typeof input["tasksRunnerOptions"] && null !== input["tasksRunnerOptions"] && false === Array.isArray(input["tasksRunnerOptions"]) && _io78(input["tasksRunnerOptions"], _vctx);
|
|
578
|
+
const _ip49 = (input, _vctx = {}) => undefined === input["generators"] || "object" === typeof input["generators"] && null !== input["generators"] && false === Array.isArray(input["generators"]) && _io80(input["generators"], _vctx);
|
|
579
|
+
const _ip50 = (input, _vctx = {}) => undefined === input["cli"] || "object" === typeof input["cli"] && null !== input["cli"] && false === Array.isArray(input["cli"]) && _io82(input["cli"], _vctx);
|
|
580
|
+
const _ip51 = (input, _vctx = {}) => undefined === input["plugins"] || Array.isArray(input["plugins"]) && input["plugins"].every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && _io83(elem, _vctx)));
|
|
581
|
+
const _ip52 = (input, _vctx = {}) => undefined === input["pluginsConfig"] || "object" === typeof input["pluginsConfig"] && null !== input["pluginsConfig"] && false === Array.isArray(input["pluginsConfig"]) && _io84(input["pluginsConfig"], _vctx);
|
|
582
|
+
const _ip53 = (input, _vctx = {}) => undefined === input["defaultProject"] || "string" === typeof input["defaultProject"];
|
|
583
|
+
const _ip54 = (input, _vctx = {}) => undefined === input["installation"] || "object" === typeof input["installation"] && null !== input["installation"] && _io85(input["installation"], _vctx);
|
|
584
|
+
const _ip55 = (input, _vctx = {}) => undefined === input["release"] || "object" === typeof input["release"] && null !== input["release"] && false === Array.isArray(input["release"]) && _io86(input["release"], _vctx);
|
|
585
|
+
const _ip56 = (input, _vctx = {}) => undefined === input["nxCloudAccessToken"] || "string" === typeof input["nxCloudAccessToken"];
|
|
586
|
+
const _ip57 = (input, _vctx = {}) => undefined === input["nxCloudId"] || "string" === typeof input["nxCloudId"];
|
|
587
|
+
const _ip58 = (input, _vctx = {}) => undefined === input["nxCloudUrl"] || "string" === typeof input["nxCloudUrl"];
|
|
588
|
+
const _ip59 = (input, _vctx = {}) => undefined === input["nxCloudEncryptionKey"] || "string" === typeof input["nxCloudEncryptionKey"];
|
|
589
|
+
const _ip60 = (input, _vctx = {}) => undefined === input["parallel"] || "number" === typeof input["parallel"];
|
|
590
|
+
const _ip61 = (input, _vctx = {}) => undefined === input["cacheDirectory"] || "string" === typeof input["cacheDirectory"];
|
|
591
|
+
const _ip62 = (input, _vctx = {}) => undefined === input["useDaemonProcess"] || "boolean" === typeof input["useDaemonProcess"];
|
|
592
|
+
const _ip63 = (input, _vctx = {}) => undefined === input["useInferencePlugins"] || "boolean" === typeof input["useInferencePlugins"];
|
|
593
|
+
const _ip64 = (input, _vctx = {}) => undefined === input["neverConnectToCloud"] || "boolean" === typeof input["neverConnectToCloud"];
|
|
594
|
+
const _ip65 = (input, _vctx = {}) => undefined === input["analytics"] || "boolean" === typeof input["analytics"];
|
|
595
|
+
const _ip66 = (input, _vctx = {}) => undefined === input["sync"] || "object" === typeof input["sync"] && null !== input["sync"] && false === Array.isArray(input["sync"]) && _io108(input["sync"], _vctx);
|
|
596
|
+
const _ip67 = (input, _vctx = {}) => undefined === input["migrate"] || "object" === typeof input["migrate"] && null !== input["migrate"] && false === Array.isArray(input["migrate"]) && _io110(input["migrate"], _vctx);
|
|
597
|
+
const _ip68 = (input, _vctx = {}) => undefined === input["maxCacheSize"] || "string" === typeof input["maxCacheSize"];
|
|
598
|
+
const _ip69 = (input, _vctx = {}) => undefined === input["tui"] || "object" === typeof input["tui"] && null !== input["tui"] && false === Array.isArray(input["tui"]) && _io111(input["tui"], _vctx);
|
|
599
|
+
const _ip70 = (input, _vctx = {}) => undefined === input["projectsRelationship"] || "fixed" === input["projectsRelationship"] || "independent" === input["projectsRelationship"];
|
|
600
|
+
const _ip71 = (input, _vctx = {}) => undefined === input["git"] || "object" === typeof input["git"] && null !== input["git"] && false === Array.isArray(input["git"]) && _io101(input["git"], _vctx);
|
|
601
|
+
const _ip72 = (input, _vctx = {}) => null !== input["versionPlans"] && (undefined === input["versionPlans"] || "boolean" === typeof input["versionPlans"] || "object" === typeof input["versionPlans"] && null !== input["versionPlans"] && false === Array.isArray(input["versionPlans"]) && _io99(input["versionPlans"], _vctx));
|
|
602
|
+
const _ip73 = (input, _vctx = {}) => undefined === input["groupPreVersionCommand"] || "string" === typeof input["groupPreVersionCommand"];
|
|
603
|
+
const _ip74 = (input, _vctx = {}) => "string" === typeof input["hostname"];
|
|
604
|
+
const _ip75 = (input, _vctx = {}) => undefined === input["apiBaseUrl"] || "string" === typeof input["apiBaseUrl"];
|
|
605
|
+
const _ip76 = (input, _vctx = {}) => undefined === input["pattern"] || "string" === typeof input["pattern"];
|
|
606
|
+
const _ip77 = (input, _vctx = {}) => null !== input["checkAllBranchesWhen"] && (undefined === input["checkAllBranchesWhen"] || "boolean" === typeof input["checkAllBranchesWhen"] || Array.isArray(input["checkAllBranchesWhen"]) && input["checkAllBranchesWhen"].every(elem => "string" === typeof elem));
|
|
607
|
+
const _ip78 = (input, _vctx = {}) => undefined === input["requireSemver"] || "boolean" === typeof input["requireSemver"];
|
|
608
|
+
const _ip79 = (input, _vctx = {}) => undefined === input["preferDockerVersion"] || "both" === input["preferDockerVersion"] || "boolean" === typeof input["preferDockerVersion"];
|
|
609
|
+
const _ip80 = (input, _vctx = {}) => undefined === input["strictPreid"] || "boolean" === typeof input["strictPreid"];
|
|
610
|
+
const _ip35 = (input, _vctx = {}) => {
|
|
611
|
+
const array = input;
|
|
612
|
+
const tuplePredicators = [
|
|
613
|
+
[
|
|
614
|
+
top => top.length === 1 && "*" === top[0],
|
|
615
|
+
entire => entire.length === 1 && "*" === entire[0]
|
|
616
|
+
]
|
|
617
|
+
];
|
|
618
|
+
for (const pred of tuplePredicators)
|
|
619
|
+
if (pred[0](array))
|
|
620
|
+
return pred[1](array);
|
|
621
|
+
const top = input[0];
|
|
622
|
+
if (0 === input.length)
|
|
623
|
+
return true;
|
|
624
|
+
const arrayPredicators = [
|
|
625
|
+
[
|
|
626
|
+
top => "string" === typeof top,
|
|
627
|
+
entire => entire.every(elem => "string" === typeof elem)
|
|
628
|
+
]
|
|
629
|
+
];
|
|
630
|
+
const passed = arrayPredicators.filter(pred => pred[0](top));
|
|
631
|
+
if (1 === passed.length)
|
|
632
|
+
return passed[0][1](array);
|
|
633
|
+
else if (1 < passed.length)
|
|
634
|
+
for (const pred of passed)
|
|
635
|
+
if (array.every(value => true === pred[0](value)))
|
|
636
|
+
return pred[1](array);
|
|
637
|
+
return false;
|
|
638
|
+
};
|
|
639
|
+
const _io0 = (input, _vctx = {}) => _ip0(input, _vctx) && "published" === input.disposition && ("object" === typeof input.receipt && null !== input.receipt && _io1(input.receipt, _vctx)) && ("object" === typeof input.projectGraph && null !== input.projectGraph && _io26(input.projectGraph, _vctx)) && ("object" === typeof input.taskGraph && null !== input.taskGraph && _io61(input.taskGraph, _vctx)) && ("object" === typeof input.nxJson && null !== input.nxJson && false === Array.isArray(input.nxJson) && _io66(input.nxJson, _vctx));
|
|
640
|
+
const _io1 = (input, _vctx = {}) => "string" === typeof input.workspaceRoot && "string" === typeof input.head && "string" === typeof input.headTree && ("conservative-provider-source" === input.fileInputProvenance || "exact-file-inputs" === input.fileInputProvenance) && "nx-task-hash-only" === input.runtimeEnvironmentProvenance && ("object" === typeof input.producer && null !== input.producer && _io2(input.producer, _vctx)) && (Array.isArray(input.tasks) && input.tasks.every(elem => "object" === typeof elem && null !== elem && _io25(elem, _vctx)));
|
|
641
|
+
const _io10 = (input, _vctx = {}) => _ip5(input, _vctx) && _ip4(input, _vctx);
|
|
642
|
+
const _io100 = (input, _vctx = {}) => _ip71(input, _vctx) && (null !== input.workspaceChangelog && (undefined === input.workspaceChangelog || "boolean" === typeof input.workspaceChangelog || "object" === typeof input.workspaceChangelog && null !== input.workspaceChangelog && false === Array.isArray(input.workspaceChangelog) && _io92(input.workspaceChangelog, _vctx))) && (null !== input.projectChangelogs && (undefined === input.projectChangelogs || "boolean" === typeof input.projectChangelogs || "object" === typeof input.projectChangelogs && null !== input.projectChangelogs && false === Array.isArray(input.projectChangelogs) && _io92(input.projectChangelogs, _vctx))) && (undefined === input.automaticFromRef || "boolean" === typeof input.automaticFromRef);
|
|
643
|
+
const _io101 = (input, _vctx = {}) => (undefined === input.commit || "boolean" === typeof input.commit) && (undefined === input.commitMessage || "string" === typeof input.commitMessage) && (null !== input.commitArgs && (undefined === input.commitArgs || "string" === typeof input.commitArgs || Array.isArray(input.commitArgs) && input.commitArgs.every(elem => "string" === typeof elem))) && (undefined === input.stageChanges || "boolean" === typeof input.stageChanges) && (undefined === input.tag || "boolean" === typeof input.tag) && (undefined === input.tagMessage || "string" === typeof input.tagMessage) && (null !== input.tagArgs && (undefined === input.tagArgs || "string" === typeof input.tagArgs || Array.isArray(input.tagArgs) && input.tagArgs.every(elem => "string" === typeof elem))) && (undefined === input.push || "boolean" === typeof input.push) && (null !== input.pushArgs && (undefined === input.pushArgs || "string" === typeof input.pushArgs || Array.isArray(input.pushArgs) && input.pushArgs.every(elem => "string" === typeof elem)));
|
|
644
|
+
const _io102 = (input, _vctx = {}) => _io91(input, _vctx) && _ip71(input, _vctx);
|
|
645
|
+
const _io103 = (input, _vctx = {}) => _ip76(input, _vctx) && _ip77(input, _vctx) && _ip78(input, _vctx) && _ip79(input, _vctx) && _ip80(input, _vctx);
|
|
646
|
+
const _io104 = (input, _vctx = {}) => (undefined === input.useCommitScope || "boolean" === typeof input.useCommitScope) && (undefined === input.types || "object" === typeof input.types && null !== input.types && false === Array.isArray(input.types) && _io105(input.types, _vctx));
|
|
647
|
+
const _io105 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
648
|
+
const value = input[key];
|
|
649
|
+
if (undefined === value)
|
|
650
|
+
return true;
|
|
651
|
+
return null !== value && undefined !== value && ("boolean" === typeof value || "object" === typeof value && null !== value && false === Array.isArray(value) && _io106(value, _vctx));
|
|
652
|
+
});
|
|
653
|
+
const _io106 = (input, _vctx = {}) => (undefined === input.semverBump || "major" === input.semverBump || "minor" === input.semverBump || "none" === input.semverBump || "patch" === input.semverBump) && (null !== input.changelog && (undefined === input.changelog || "boolean" === typeof input.changelog || "object" === typeof input.changelog && null !== input.changelog && false === Array.isArray(input.changelog) && _io107(input.changelog, _vctx)));
|
|
654
|
+
const _io107 = (input, _vctx = {}) => (undefined === input.title || "string" === typeof input.title) && (undefined === input.hidden || "boolean" === typeof input.hidden);
|
|
655
|
+
const _io108 = (input, _vctx = {}) => (undefined === input.globalGenerators || Array.isArray(input.globalGenerators) && input.globalGenerators.every(elem => "string" === typeof elem)) && (undefined === input.generatorOptions || "object" === typeof input.generatorOptions && null !== input.generatorOptions && false === Array.isArray(input.generatorOptions) && _io109(input.generatorOptions, _vctx)) && (undefined === input.applyChanges || "boolean" === typeof input.applyChanges) && (undefined === input.disabledTaskSyncGenerators || Array.isArray(input.disabledTaskSyncGenerators) && input.disabledTaskSyncGenerators.every(elem => "string" === typeof elem));
|
|
656
|
+
const _io109 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
657
|
+
const value = input[key];
|
|
658
|
+
if (undefined === value)
|
|
659
|
+
return true;
|
|
660
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io38(value, _vctx);
|
|
661
|
+
});
|
|
662
|
+
const _io11 = (input, _vctx = {}) => "string" === typeof input.runtime;
|
|
663
|
+
const _io110 = (input, _vctx = {}) => (undefined === input.createCommits || "boolean" === typeof input.createCommits) && (undefined === input.commitPrefix || "string" === typeof input.commitPrefix) && (undefined === input.include || "all" === input.include || "optional" === input.include || "required" === input.include) && (undefined === input.multiMajorMode || "direct" === input.multiMajorMode || "gradual" === input.multiMajorMode) && (undefined === input.useRegistryResolution || "boolean" === typeof input.useRegistryResolution) && (undefined === input.agentic || "claude-code" === input.agentic || "codex" === input.agentic || "opencode" === input.agentic || "boolean" === typeof input.agentic) && (undefined === input.validate || "boolean" === typeof input.validate);
|
|
664
|
+
const _io111 = (input, _vctx = {}) => (undefined === input.enabled || "boolean" === typeof input.enabled) && (undefined === input.autoExit || "number" === typeof input.autoExit || "boolean" === typeof input.autoExit) && (undefined === input.suppressHints || "boolean" === typeof input.suppressHints);
|
|
665
|
+
const _io12 = (input, _vctx = {}) => Array.isArray(input.externalDependencies) && input.externalDependencies.every(elem => "string" === typeof elem);
|
|
666
|
+
const _io13 = (input, _vctx = {}) => "string" === typeof input.dependentTasksOutputFiles && (undefined === input.transitive || "boolean" === typeof input.transitive);
|
|
667
|
+
const _io14 = (input, _vctx = {}) => "string" === typeof input.env;
|
|
668
|
+
const _io15 = (input, _vctx = {}) => "absolute" === input.workingDirectory || "relative" === input.workingDirectory;
|
|
669
|
+
const _io16 = (input, _vctx = {}) => Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem) && (Array.isArray(input.runtime) && input.runtime.every(elem => "string" === typeof elem)) && (Array.isArray(input.environment) && input.environment.every(elem => "string" === typeof elem)) && (Array.isArray(input.depOutputs) && input.depOutputs.every(elem => "string" === typeof elem)) && (Array.isArray(input.external) && input.external.every(elem => "string" === typeof elem));
|
|
670
|
+
const _io17 = (input, _vctx = {}) => _ip6(input, _vctx) && _ip7(input, _vctx) && _ip8(input, _vctx) && _ip9(input, _vctx);
|
|
671
|
+
const _io18 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
672
|
+
const value = input[key];
|
|
673
|
+
if (undefined === value)
|
|
674
|
+
return true;
|
|
675
|
+
return "string" === typeof value;
|
|
676
|
+
});
|
|
677
|
+
const _io19 = (input, _vctx = {}) => _ip10(input, _vctx) && _ip11(input, _vctx) && "string" === typeof input.gitBlob && _ip12(input, _vctx);
|
|
678
|
+
const _io2 = (input, _vctx = {}) => _ip0(input, _vctx) && _ip1(input, _vctx) && (Array.isArray(input.argv) && input.argv.every(elem => "string" === typeof elem)) && true === input.trackedTreeClean && "string" === typeof input.environmentIdentity && (Array.isArray(input.inputs) && input.inputs.every(elem => "object" === typeof elem && null !== elem && _io3(elem, _vctx))) && (Array.isArray(input.tools) && input.tools.every(elem => "object" === typeof elem && null !== elem && _io20(elem, _vctx))) && "string" === typeof input.outputSha256 && "number" === typeof input.wallTimeMs;
|
|
679
|
+
const _io20 = (input, _vctx = {}) => ("executable" === input.kind || "module" === input.kind) && _ip13(input, _vctx) && _ip14(input, _vctx) && _ip10(input, _vctx) && "string" === typeof input.physicalPath && (Array.isArray(input.missing) && input.missing.every(elem => "string" === typeof elem)) && (Array.isArray(input.resolutions) && input.resolutions.every(elem => "object" === typeof elem && null !== elem && _io21(elem, _vctx))) && (Array.isArray(input.nodes) && input.nodes.every(elem => "object" === typeof elem && null !== elem && _iu1(elem, _vctx))) && _ip12(input, _vctx);
|
|
680
|
+
const _io21 = (input, _vctx = {}) => _ip13(input, _vctx) && _ip14(input, _vctx) && (null === input.target || "string" === typeof input.target);
|
|
681
|
+
const _io22 = (input, _vctx = {}) => _ip10(input, _vctx) && "file" === input.type && _ip11(input, _vctx) && _ip12(input, _vctx);
|
|
682
|
+
const _io23 = (input, _vctx = {}) => _ip10(input, _vctx) && "symlink" === input.type && _ip11(input, _vctx) && "string" === typeof input.linkText;
|
|
683
|
+
const _io24 = (input, _vctx = {}) => _ip10(input, _vctx) && "directory" === input.type && _ip11(input, _vctx) && (Array.isArray(input.entries) && input.entries.every(elem => "string" === typeof elem)) && _ip12(input, _vctx);
|
|
684
|
+
const _io25 = (input, _vctx = {}) => _ip15(input, _vctx) && "string" === typeof input.hash && (Array.isArray(input.outputs) && input.outputs.every(elem => "object" === typeof elem && null !== elem && _iu1(elem, _vctx)));
|
|
685
|
+
const _io26 = (input, _vctx = {}) => "object" === typeof input.nodes && null !== input.nodes && false === Array.isArray(input.nodes) && _io27(input.nodes, _vctx) && (undefined === input.externalNodes || "object" === typeof input.externalNodes && null !== input.externalNodes && false === Array.isArray(input.externalNodes) && _io56(input.externalNodes, _vctx)) && ("object" === typeof input.dependencies && null !== input.dependencies && false === Array.isArray(input.dependencies) && _io59(input.dependencies, _vctx)) && (undefined === input.version || "string" === typeof input.version);
|
|
686
|
+
const _io27 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
687
|
+
const value = input[key];
|
|
688
|
+
if (undefined === value)
|
|
689
|
+
return true;
|
|
690
|
+
return "object" === typeof value && null !== value && _io28(value, _vctx);
|
|
691
|
+
});
|
|
692
|
+
const _io28 = (input, _vctx = {}) => ("app" === input.type || "e2e" === input.type || "lib" === input.type) && _ip13(input, _vctx) && ("object" === typeof input.data && null !== input.data && _io29(input.data, _vctx));
|
|
693
|
+
const _io29 = (input, _vctx = {}) => _io30(input, _vctx) && _ip16(input, _vctx);
|
|
694
|
+
const _io3 = (input, _vctx = {}) => "string" === typeof input.taskId && ("object" === typeof input.overrides && null !== input.overrides && false === Array.isArray(input.overrides) && _io4(input.overrides, _vctx)) && (Array.isArray(input.declared) && input.declared.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && _iu0(elem, _vctx)))) && ("object" === typeof input.expanded && null !== input.expanded && _io16(input.expanded, _vctx)) && ("object" === typeof input.hashDetails && null !== input.hashDetails && _io17(input.hashDetails, _vctx)) && (Array.isArray(input.files) && input.files.every(elem => "object" === typeof elem && null !== elem && _io19(elem, _vctx)));
|
|
695
|
+
const _io30 = (input, _vctx = {}) => (undefined === input.name || "string" === typeof input.name) && (undefined === input.targets || "object" === typeof input.targets && null !== input.targets && false === Array.isArray(input.targets) && _io31(input.targets, _vctx)) && "string" === typeof input.root && (undefined === input.sourceRoot || "string" === typeof input.sourceRoot) && (undefined === input.projectType || "application" === input.projectType || "library" === input.projectType) && (undefined === input.generators || "object" === typeof input.generators && null !== input.generators && false === Array.isArray(input.generators) && _io39(input.generators, _vctx)) && (undefined === input.implicitDependencies || Array.isArray(input.implicitDependencies) && input.implicitDependencies.every(elem => "string" === typeof elem)) && (undefined === input.namedInputs || "object" === typeof input.namedInputs && null !== input.namedInputs && false === Array.isArray(input.namedInputs) && _io41(input.namedInputs, _vctx)) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.release || "object" === typeof input.release && null !== input.release && false === Array.isArray(input.release) && _io42(input.release, _vctx)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && false === Array.isArray(input.metadata) && _io46(input.metadata, _vctx));
|
|
696
|
+
const _io31 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
697
|
+
const value = input[key];
|
|
698
|
+
if (undefined === value)
|
|
699
|
+
return true;
|
|
700
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io32(value, _vctx);
|
|
701
|
+
});
|
|
702
|
+
const _io32 = (input, _vctx = {}) => _ip17(input, _vctx) && _ip18(input, _vctx) && _ip19(input, _vctx) && _ip20(input, _vctx) && _ip21(input, _vctx) && _ip22(input, _vctx) && _ip23(input, _vctx) && _ip24(input, _vctx) && _ip25(input, _vctx) && _ip26(input, _vctx) && _ip27(input, _vctx) && _ip28(input, _vctx) && _ip29(input, _vctx) && _ip30(input, _vctx);
|
|
703
|
+
const _io33 = (input, _vctx = {}) => _ip31(input, _vctx) && (undefined === input.dependencies || "boolean" === typeof input.dependencies) && _ip1(input, _vctx) && (undefined === input.params || "forward" === input.params || "ignore" === input.params) && (undefined === input.options || "forward" === input.options || "ignore" === input.options);
|
|
704
|
+
const _io34 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
705
|
+
const value = input[key];
|
|
706
|
+
if (undefined === value)
|
|
707
|
+
return true;
|
|
708
|
+
return true;
|
|
709
|
+
});
|
|
710
|
+
const _io35 = (input, _vctx = {}) => _ip16(input, _vctx) && _ip32(input, _vctx) && (undefined === input.nonAtomizedTarget || "string" === typeof input.nonAtomizedTarget) && (undefined === input.help || "object" === typeof input.help && null !== input.help && _io36(input.help, _vctx)) && Object.keys(input).every(key => {
|
|
711
|
+
if (["description", "technologies", "nonAtomizedTarget", "help"].some(prop => key === prop))
|
|
712
|
+
return true;
|
|
713
|
+
const value = input[key];
|
|
714
|
+
if (undefined === value)
|
|
715
|
+
return true;
|
|
716
|
+
return true;
|
|
717
|
+
});
|
|
718
|
+
const _io36 = (input, _vctx = {}) => _ip6(input, _vctx) && ("object" === typeof input.example && null !== input.example && false === Array.isArray(input.example) && _io37(input.example, _vctx));
|
|
719
|
+
const _io37 = (input, _vctx = {}) => (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io38(input.options, _vctx)) && (undefined === input.args || Array.isArray(input.args) && input.args.every(elem => "string" === typeof elem));
|
|
720
|
+
const _io38 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
721
|
+
const value = input[key];
|
|
722
|
+
if (undefined === value)
|
|
723
|
+
return true;
|
|
724
|
+
return true;
|
|
725
|
+
});
|
|
726
|
+
const _io39 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
727
|
+
const value = input[key];
|
|
728
|
+
if (undefined === value)
|
|
729
|
+
return true;
|
|
730
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io40(value, _vctx);
|
|
731
|
+
});
|
|
732
|
+
const _io4 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
733
|
+
const value = input[key];
|
|
734
|
+
if (undefined === value)
|
|
735
|
+
return true;
|
|
736
|
+
return true;
|
|
737
|
+
});
|
|
738
|
+
const _io40 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
739
|
+
const value = input[key];
|
|
740
|
+
if (undefined === value)
|
|
741
|
+
return true;
|
|
742
|
+
return true;
|
|
743
|
+
});
|
|
744
|
+
const _io41 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
745
|
+
const value = input[key];
|
|
746
|
+
if (undefined === value)
|
|
747
|
+
return true;
|
|
748
|
+
return Array.isArray(value) && value.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && _iu0(elem, _vctx)));
|
|
749
|
+
});
|
|
750
|
+
const _io42 = (input, _vctx = {}) => (undefined === input.version || "object" === typeof input.version && null !== input.version && false === Array.isArray(input.version) && _io43(input.version, _vctx)) && _ip33(input, _vctx);
|
|
751
|
+
const _io43 = (input, _vctx = {}) => (undefined === input.manifestRootsToUpdate || Array.isArray(input.manifestRootsToUpdate) && input.manifestRootsToUpdate.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && _io44(elem, _vctx)))) && (undefined === input.currentVersionResolver || "disk" === input.currentVersionResolver || "git-tag" === input.currentVersionResolver || "none" === input.currentVersionResolver || "registry" === input.currentVersionResolver) && (undefined === input.currentVersionResolverMetadata || "object" === typeof input.currentVersionResolverMetadata && null !== input.currentVersionResolverMetadata && false === Array.isArray(input.currentVersionResolverMetadata) && _io38(input.currentVersionResolverMetadata, _vctx)) && (undefined === input.fallbackCurrentVersionResolver || "disk" === input.fallbackCurrentVersionResolver) && (undefined === input.versionPrefix || "" === input.versionPrefix || "=" === input.versionPrefix || "^" === input.versionPrefix || "auto" === input.versionPrefix || "~" === input.versionPrefix) && (undefined === input.versionActions || "string" === typeof input.versionActions) && (undefined === input.versionActionsOptions || "object" === typeof input.versionActionsOptions && null !== input.versionActionsOptions && false === Array.isArray(input.versionActionsOptions) && _io38(input.versionActionsOptions, _vctx)) && (undefined === input.preserveLocalDependencyProtocols || "boolean" === typeof input.preserveLocalDependencyProtocols);
|
|
752
|
+
const _io44 = (input, _vctx = {}) => _ip10(input, _vctx) && "boolean" === typeof input.preserveLocalDependencyProtocols;
|
|
753
|
+
const _io45 = (input, _vctx = {}) => _ip34(input, _vctx) && (null !== input.skipVersionActions && (undefined === input.skipVersionActions || "boolean" === typeof input.skipVersionActions || Array.isArray(input.skipVersionActions) && input.skipVersionActions.every(elem => "string" === typeof elem))) && (undefined === input.versionSchemes || "object" === typeof input.versionSchemes && null !== input.versionSchemes && false === Array.isArray(input.versionSchemes) && _io18(input.versionSchemes, _vctx)) && (undefined === input.repositoryName || "string" === typeof input.repositoryName) && (undefined === input.registryUrl || "string" === typeof input.registryUrl);
|
|
754
|
+
const _io46 = (input, _vctx = {}) => _ip16(input, _vctx) && _ip32(input, _vctx) && (undefined === input.targetGroups || "object" === typeof input.targetGroups && null !== input.targetGroups && false === Array.isArray(input.targetGroups) && _io47(input.targetGroups, _vctx)) && (undefined === input.owners || "object" === typeof input.owners && null !== input.owners && false === Array.isArray(input.owners) && _io48(input.owners, _vctx)) && (undefined === input.js || "object" === typeof input.js && null !== input.js && _io53(input.js, _vctx)) && Object.keys(input).every(key => {
|
|
755
|
+
if (["description", "technologies", "targetGroups", "owners", "js"].some(prop => key === prop))
|
|
756
|
+
return true;
|
|
757
|
+
const value = input[key];
|
|
758
|
+
if (undefined === value)
|
|
759
|
+
return true;
|
|
760
|
+
return true;
|
|
761
|
+
});
|
|
762
|
+
const _io47 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
763
|
+
const value = input[key];
|
|
764
|
+
if (undefined === value)
|
|
765
|
+
return true;
|
|
766
|
+
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
|
767
|
+
});
|
|
768
|
+
const _io48 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
769
|
+
const value = input[key];
|
|
770
|
+
if (undefined === value)
|
|
771
|
+
return true;
|
|
772
|
+
return "object" === typeof value && null !== value && _io49(value, _vctx);
|
|
773
|
+
});
|
|
774
|
+
const _io49 = (input, _vctx = {}) => Array.isArray(input.ownedFiles) && input.ownedFiles.every(elem => "object" === typeof elem && null !== elem && _io50(elem, _vctx));
|
|
775
|
+
const _io5 = (input, _vctx = {}) => "string" === typeof input.json && (undefined === input.fields || Array.isArray(input.fields) && input.fields.every(elem => "string" === typeof elem)) && (undefined === input.excludeFields || Array.isArray(input.excludeFields) && input.excludeFields.every(elem => "string" === typeof elem));
|
|
776
|
+
const _io50 = (input, _vctx = {}) => null !== input.files && undefined !== input.files && (Array.isArray(input.files) && (_ip35(input.files, _vctx) || false)) && (undefined === input.fromConfig || "object" === typeof input.fromConfig && null !== input.fromConfig && _io51(input.fromConfig, _vctx));
|
|
777
|
+
const _io51 = (input, _vctx = {}) => "string" === typeof input.filePath && ("object" === typeof input.location && null !== input.location && _io52(input.location, _vctx));
|
|
778
|
+
const _io52 = (input, _vctx = {}) => "number" === typeof input.startLine && "number" === typeof input.endLine;
|
|
779
|
+
const _io53 = (input, _vctx = {}) => _ip36(input, _vctx) && (undefined === input.packageVersion || "string" === typeof input.packageVersion) && (null !== input.packageExports && (undefined === input.packageExports || "string" === typeof input.packageExports || "object" === typeof input.packageExports && null !== input.packageExports && false === Array.isArray(input.packageExports) && _io54(input.packageExports, _vctx))) && (undefined === input.packageMain || "string" === typeof input.packageMain) && (undefined === input.isInPackageManagerWorkspaces || "boolean" === typeof input.isInPackageManagerWorkspaces);
|
|
780
|
+
const _io54 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
781
|
+
const value = input[key];
|
|
782
|
+
if (undefined === value)
|
|
783
|
+
return true;
|
|
784
|
+
return null !== value && undefined !== value && ("string" === typeof value || "object" === typeof value && null !== value && false === Array.isArray(value) && _io55(value, _vctx));
|
|
785
|
+
});
|
|
786
|
+
const _io55 = (input, _vctx = {}) => (undefined === input.types || "string" === typeof input.types) && (undefined === input.require || "string" === typeof input.require) && (undefined === input["import"] || "string" === typeof input["import"]) && (undefined === input.development || "string" === typeof input.development) && (undefined === input["default"] || "string" === typeof input["default"]);
|
|
787
|
+
const _io56 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
788
|
+
const value = input[key];
|
|
789
|
+
if (undefined === value)
|
|
790
|
+
return true;
|
|
791
|
+
return "object" === typeof value && null !== value && _io57(value, _vctx);
|
|
792
|
+
});
|
|
793
|
+
const _io57 = (input, _vctx = {}) => _ip37(input, _vctx) && _ip13(input, _vctx) && ("object" === typeof input.data && null !== input.data && _io58(input.data, _vctx));
|
|
794
|
+
const _io58 = (input, _vctx = {}) => _ip38(input, _vctx) && _ip36(input, _vctx) && _ip39(input, _vctx);
|
|
795
|
+
const _io59 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
796
|
+
const value = input[key];
|
|
797
|
+
if (undefined === value)
|
|
798
|
+
return true;
|
|
799
|
+
return Array.isArray(value) && value.every(elem => "object" === typeof elem && null !== elem && _io60(elem, _vctx));
|
|
800
|
+
});
|
|
801
|
+
const _io6 = (input, _vctx = {}) => _ip2(input, _vctx) && _ip3(input, _vctx);
|
|
802
|
+
const _io60 = (input, _vctx = {}) => _ip37(input, _vctx) && _ip1(input, _vctx) && "string" === typeof input.source;
|
|
803
|
+
const _io61 = (input, _vctx = {}) => Array.isArray(input.roots) && input.roots.every(elem => "string" === typeof elem) && ("object" === typeof input.tasks && null !== input.tasks && false === Array.isArray(input.tasks) && _io62(input.tasks, _vctx)) && ("object" === typeof input.dependencies && null !== input.dependencies && false === Array.isArray(input.dependencies) && _io47(input.dependencies, _vctx)) && ("object" === typeof input.continuousDependencies && null !== input.continuousDependencies && false === Array.isArray(input.continuousDependencies) && _io47(input.continuousDependencies, _vctx));
|
|
804
|
+
const _io62 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
805
|
+
const value = input[key];
|
|
806
|
+
if (undefined === value)
|
|
807
|
+
return true;
|
|
808
|
+
return "object" === typeof value && null !== value && _io63(value, _vctx);
|
|
809
|
+
});
|
|
810
|
+
const _io63 = (input, _vctx = {}) => _ip15(input, _vctx) && ("object" === typeof input.target && null !== input.target && _io64(input.target, _vctx)) && ("object" === typeof input.overrides && null !== input.overrides && false === Array.isArray(input.overrides) && _io38(input.overrides, _vctx)) && (Array.isArray(input.outputs) && input.outputs.every(elem => "string" === typeof elem)) && (undefined === input.projectRoot || "string" === typeof input.projectRoot) && _ip39(input, _vctx) && (undefined === input.hashDetails || "object" === typeof input.hashDetails && null !== input.hashDetails && _io65(input.hashDetails, _vctx)) && (undefined === input.startTime || "number" === typeof input.startTime) && (undefined === input.endTime || "number" === typeof input.endTime) && "boolean" === typeof input.cache && _ip27(input, _vctx) && _ip28(input, _vctx);
|
|
811
|
+
const _io64 = (input, _vctx = {}) => "string" === typeof input.project && _ip1(input, _vctx) && (undefined === input.configuration || "string" === typeof input.configuration);
|
|
812
|
+
const _io65 = (input, _vctx = {}) => _ip6(input, _vctx) && _ip7(input, _vctx) && _ip8(input, _vctx) && _ip9(input, _vctx);
|
|
813
|
+
const _io66 = (input, _vctx = {}) => _ip40(input, _vctx) && _ip41(input, _vctx) && _ip42(input, _vctx) && _ip43(input, _vctx) && _ip44(input, _vctx) && _ip45(input, _vctx) && _ip46(input, _vctx) && _ip47(input, _vctx) && _ip48(input, _vctx) && _ip49(input, _vctx) && _ip50(input, _vctx) && _ip51(input, _vctx) && _ip52(input, _vctx) && _ip53(input, _vctx) && _ip54(input, _vctx) && _ip55(input, _vctx) && _ip56(input, _vctx) && _ip57(input, _vctx) && _ip58(input, _vctx) && _ip59(input, _vctx) && _ip60(input, _vctx) && _ip61(input, _vctx) && _ip62(input, _vctx) && _ip63(input, _vctx) && _ip64(input, _vctx) && _ip65(input, _vctx) && _ip66(input, _vctx) && _ip67(input, _vctx) && _ip68(input, _vctx) && _ip69(input, _vctx);
|
|
814
|
+
const _io67 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
815
|
+
const value = input[key];
|
|
816
|
+
if (undefined === value)
|
|
817
|
+
return true;
|
|
818
|
+
return null !== value && undefined !== value && ("*" === value || (Array.isArray(value) && value.every(elem => "string" === typeof elem) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io68(value, _vctx)));
|
|
819
|
+
});
|
|
820
|
+
const _io68 = (input, _vctx = {}) => (_vctx.io68 || (_vctx.io68 = new WeakSet())).has(input) ? true : (_vctx.io68.add(input), (Object.keys(input).every(key => {
|
|
821
|
+
const value = input[key];
|
|
822
|
+
if (undefined === value)
|
|
823
|
+
return true;
|
|
824
|
+
return null !== value && undefined !== value && ("*" === value || (Array.isArray(value) && value.every(elem => "string" === typeof elem) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io68(value, _vctx)));
|
|
825
|
+
})) || (_vctx.io68.delete(input), false));
|
|
826
|
+
const _io69 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
827
|
+
const value = input[key];
|
|
828
|
+
if (undefined === value)
|
|
829
|
+
return true;
|
|
830
|
+
return Array.isArray(value) && value.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && _iu0(elem, _vctx)));
|
|
831
|
+
});
|
|
832
|
+
const _io7 = (input, _vctx = {}) => _ip2(input, _vctx) && _ip4(input, _vctx);
|
|
833
|
+
const _io70 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
834
|
+
const value = input[key];
|
|
835
|
+
if (undefined === value)
|
|
836
|
+
return true;
|
|
837
|
+
return null !== value && undefined !== value && (Array.isArray(value) && value.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io71(elem, _vctx)) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io74(value, _vctx));
|
|
838
|
+
});
|
|
839
|
+
const _io71 = (input, _vctx = {}) => _io73(input, _vctx) && (undefined === input.filter || "object" === typeof input.filter && null !== input.filter && false === Array.isArray(input.filter) && _io72(input.filter, _vctx));
|
|
840
|
+
const _io72 = (input, _vctx = {}) => (undefined === input.plugin || "string" === typeof input.plugin) && (undefined === input.projects || Array.isArray(input.projects) && input.projects.every(elem => "string" === typeof elem)) && _ip17(input, _vctx);
|
|
841
|
+
const _io73 = (input, _vctx = {}) => _ip17(input, _vctx) && _ip18(input, _vctx) && _ip19(input, _vctx) && _ip20(input, _vctx) && _ip21(input, _vctx) && _ip22(input, _vctx) && _ip23(input, _vctx) && _ip24(input, _vctx) && _ip25(input, _vctx) && _ip26(input, _vctx) && _ip27(input, _vctx) && _ip28(input, _vctx) && _ip29(input, _vctx) && _ip30(input, _vctx);
|
|
842
|
+
const _io74 = (input, _vctx = {}) => _io75(input, _vctx) && (null !== input.filter && undefined === input.filter);
|
|
843
|
+
const _io75 = (input, _vctx = {}) => _ip17(input, _vctx) && _ip18(input, _vctx) && _ip19(input, _vctx) && _ip20(input, _vctx) && _ip21(input, _vctx) && _ip22(input, _vctx) && _ip23(input, _vctx) && _ip24(input, _vctx) && _ip25(input, _vctx) && _ip26(input, _vctx) && _ip27(input, _vctx) && _ip28(input, _vctx) && _ip29(input, _vctx) && _ip30(input, _vctx);
|
|
844
|
+
const _io76 = (input, _vctx = {}) => _ip46(input, _vctx);
|
|
845
|
+
const _io77 = (input, _vctx = {}) => (undefined === input.libsDir || "string" === typeof input.libsDir) && (undefined === input.appsDir || "string" === typeof input.appsDir);
|
|
846
|
+
const _io78 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
847
|
+
const value = input[key];
|
|
848
|
+
if (undefined === value)
|
|
849
|
+
return true;
|
|
850
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io79(value, _vctx);
|
|
851
|
+
});
|
|
852
|
+
const _io79 = (input, _vctx = {}) => (undefined === input.runner || "string" === typeof input.runner) && _ip22(input, _vctx);
|
|
853
|
+
const _io8 = (input, _vctx = {}) => _ip2(input, _vctx);
|
|
854
|
+
const _io80 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
855
|
+
const value = input[key];
|
|
856
|
+
if (undefined === value)
|
|
857
|
+
return true;
|
|
858
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io81(value, _vctx);
|
|
859
|
+
});
|
|
860
|
+
const _io81 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
861
|
+
const value = input[key];
|
|
862
|
+
if (undefined === value)
|
|
863
|
+
return true;
|
|
864
|
+
return true;
|
|
865
|
+
});
|
|
866
|
+
const _io82 = (input, _vctx = {}) => (undefined === input.packageManager || "bun" === input.packageManager || "npm" === input.packageManager || "pnpm" === input.packageManager || "yarn" === input.packageManager) && (undefined === input.defaultProjectName || "string" === typeof input.defaultProjectName);
|
|
867
|
+
const _io83 = (input, _vctx = {}) => "string" === typeof input.plugin && _ip22(input, _vctx) && (undefined === input.include || Array.isArray(input.include) && input.include.every(elem => "string" === typeof elem)) && (undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(elem => "string" === typeof elem));
|
|
868
|
+
const _io84 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
869
|
+
const value = input[key];
|
|
870
|
+
if (undefined === value)
|
|
871
|
+
return true;
|
|
872
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io38(value, _vctx);
|
|
873
|
+
});
|
|
874
|
+
const _io85 = (input, _vctx = {}) => _ip38(input, _vctx) && (undefined === input.plugins || "object" === typeof input.plugins && null !== input.plugins && false === Array.isArray(input.plugins) && _io18(input.plugins, _vctx));
|
|
875
|
+
const _io86 = (input, _vctx = {}) => _ip31(input, _vctx) && _ip33(input, _vctx) && (undefined === input.groups || "object" === typeof input.groups && null !== input.groups && false === Array.isArray(input.groups) && _io87(input.groups, _vctx)) && _ip70(input, _vctx) && (undefined === input.changelog || "object" === typeof input.changelog && null !== input.changelog && false === Array.isArray(input.changelog) && _io100(input.changelog, _vctx)) && (undefined === input.version || "object" === typeof input.version && null !== input.version && false === Array.isArray(input.version) && _io102(input.version, _vctx)) && (undefined === input.releaseTag || "object" === typeof input.releaseTag && null !== input.releaseTag && false === Array.isArray(input.releaseTag) && _io103(input.releaseTag, _vctx)) && _ip71(input, _vctx) && (undefined === input.conventionalCommits || "object" === typeof input.conventionalCommits && null !== input.conventionalCommits && false === Array.isArray(input.conventionalCommits) && _io104(input.conventionalCommits, _vctx)) && _ip72(input, _vctx);
|
|
876
|
+
const _io87 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
877
|
+
const value = input[key];
|
|
878
|
+
if (undefined === value)
|
|
879
|
+
return true;
|
|
880
|
+
return "object" === typeof value && null !== value && _io88(value, _vctx);
|
|
881
|
+
});
|
|
882
|
+
const _io88 = (input, _vctx = {}) => _ip70(input, _vctx) && _ip3(input, _vctx) && (null !== input.docker && (undefined === input.docker || true === input.docker || "object" === typeof input.docker && null !== input.docker && false === Array.isArray(input.docker) && _io89(input.docker, _vctx))) && (undefined === input.version || "object" === typeof input.version && null !== input.version && false === Array.isArray(input.version) && _io90(input.version, _vctx)) && (null !== input.changelog && (undefined === input.changelog || "boolean" === typeof input.changelog || "object" === typeof input.changelog && null !== input.changelog && false === Array.isArray(input.changelog) && _io92(input.changelog, _vctx))) && (undefined === input.releaseTag || "object" === typeof input.releaseTag && null !== input.releaseTag && false === Array.isArray(input.releaseTag) && _io98(input.releaseTag, _vctx)) && _ip72(input, _vctx);
|
|
883
|
+
const _io89 = (input, _vctx = {}) => _io45(input, _vctx) && _ip73(input, _vctx);
|
|
884
|
+
const _io9 = (input, _vctx = {}) => _ip5(input, _vctx);
|
|
885
|
+
const _io90 = (input, _vctx = {}) => _io91(input, _vctx) && _ip73(input, _vctx);
|
|
886
|
+
const _io91 = (input, _vctx = {}) => _io43(input, _vctx) && ((undefined === input.conventionalCommits || "boolean" === typeof input.conventionalCommits) && _ip34(input, _vctx) && (undefined === input.specifierSource || "conventional-commits" === input.specifierSource || "prompt" === input.specifierSource || "version-plans" === input.specifierSource) && (undefined === input.firstRelease || "boolean" === typeof input.firstRelease) && (undefined === input.deleteVersionPlans || "boolean" === typeof input.deleteVersionPlans) && (undefined === input.updateDependents || "always" === input.updateDependents || "auto" === input.updateDependents || "never" === input.updateDependents) && (undefined === input.logUnchangedProjects || "boolean" === typeof input.logUnchangedProjects) && (null !== input.preserveMatchingDependencyRanges && (undefined === input.preserveMatchingDependencyRanges || "boolean" === typeof input.preserveMatchingDependencyRanges || Array.isArray(input.preserveMatchingDependencyRanges) && input.preserveMatchingDependencyRanges.every(elem => "dependencies" === elem || "devDependencies" === elem || "optionalDependencies" === elem || "peerDependencies" === elem))) && (undefined === input.adjustSemverBumpsForZeroMajorVersion || "boolean" === typeof input.adjustSemverBumpsForZeroMajorVersion) && (undefined === input.applyPreidToDependents || "boolean" === typeof input.applyPreidToDependents));
|
|
887
|
+
const _io92 = (input, _vctx = {}) => null !== input.createRelease && (undefined === input.createRelease || "github" === input.createRelease || "gitlab" === input.createRelease || false === input.createRelease || "object" === typeof input.createRelease && null !== input.createRelease && _iu2(input.createRelease, _vctx)) && (undefined === input.entryWhenNoChanges || false === input.entryWhenNoChanges || "string" === typeof input.entryWhenNoChanges) && (undefined === input.file || false === input.file || "string" === typeof input.file) && (null !== input.renderer && (undefined === input.renderer || "string" === typeof input.renderer || "object" === typeof input.renderer && null !== input.renderer && _io95(input.renderer, _vctx))) && (undefined === input.renderOptions || "object" === typeof input.renderOptions && null !== input.renderOptions && false === Array.isArray(input.renderOptions) && _io97(input.renderOptions, _vctx));
|
|
888
|
+
const _io93 = (input, _vctx = {}) => "github-enterprise-server" === input.provider && _ip74(input, _vctx) && _ip75(input, _vctx);
|
|
889
|
+
const _io94 = (input, _vctx = {}) => "gitlab" === input.provider && _ip74(input, _vctx) && _ip75(input, _vctx);
|
|
890
|
+
const _io95 = (input, _vctx = {}) => "number" === typeof input.length && true && true && _ip13(input, _vctx) && ("object" === typeof input.prototype && null !== input.prototype && false === Array.isArray(input.prototype) && _io96(input.prototype, _vctx));
|
|
891
|
+
const _io96 = (input, _vctx = {}) => true;
|
|
892
|
+
const _io97 = (input, _vctx = {}) => Object.keys(input).every(key => {
|
|
893
|
+
const value = input[key];
|
|
894
|
+
if (undefined === value)
|
|
895
|
+
return true;
|
|
896
|
+
return true;
|
|
897
|
+
});
|
|
898
|
+
const _io98 = (input, _vctx = {}) => _ip76(input, _vctx) && _ip77(input, _vctx) && _ip78(input, _vctx) && _ip79(input, _vctx) && _ip80(input, _vctx);
|
|
899
|
+
const _io99 = (input, _vctx = {}) => undefined === input.ignorePatternsForPlanCheck || Array.isArray(input.ignorePatternsForPlanCheck) && input.ignorePatternsForPlanCheck.every(elem => "string" === typeof elem);
|
|
900
|
+
const _iu0 = (input, _vctx = {}) => (() => {
|
|
901
|
+
if (undefined !== input.json)
|
|
902
|
+
return _io5(input, _vctx);
|
|
903
|
+
else if (undefined !== input.projects)
|
|
904
|
+
return _io6(input, _vctx);
|
|
905
|
+
else if (undefined !== input.runtime)
|
|
906
|
+
return _io11(input, _vctx);
|
|
907
|
+
else if (undefined !== input.externalDependencies)
|
|
908
|
+
return _io12(input, _vctx);
|
|
909
|
+
else if (undefined !== input.dependentTasksOutputFiles)
|
|
910
|
+
return _io13(input, _vctx);
|
|
911
|
+
else if (undefined !== input.env)
|
|
912
|
+
return _io14(input, _vctx);
|
|
913
|
+
else if (undefined !== input.workingDirectory)
|
|
914
|
+
return _io15(input, _vctx);
|
|
915
|
+
else
|
|
916
|
+
return (() => {
|
|
917
|
+
if (_io7(input, _vctx))
|
|
918
|
+
return _io7(input, _vctx);
|
|
919
|
+
if (_io8(input, _vctx))
|
|
920
|
+
return _io8(input, _vctx);
|
|
921
|
+
if (_io9(input, _vctx))
|
|
922
|
+
return _io9(input, _vctx);
|
|
923
|
+
if (_io10(input, _vctx))
|
|
924
|
+
return _io10(input, _vctx);
|
|
925
|
+
return false;
|
|
926
|
+
})();
|
|
927
|
+
})();
|
|
928
|
+
const _iu1 = (input, _vctx = {}) => (() => {
|
|
929
|
+
if ("file" === input.type)
|
|
930
|
+
return _io22(input, _vctx);
|
|
931
|
+
else if ("symlink" === input.type)
|
|
932
|
+
return _io23(input, _vctx);
|
|
933
|
+
else if ("directory" === input.type)
|
|
934
|
+
return _io24(input, _vctx);
|
|
935
|
+
else
|
|
936
|
+
return false;
|
|
937
|
+
})();
|
|
938
|
+
const _iu2 = (input, _vctx = {}) => (() => {
|
|
939
|
+
if ("gitlab" === input.provider)
|
|
940
|
+
return _io94(input, _vctx);
|
|
941
|
+
else if ("github-enterprise-server" === input.provider)
|
|
942
|
+
return _io93(input, _vctx);
|
|
943
|
+
else
|
|
944
|
+
return false;
|
|
945
|
+
})();
|
|
946
|
+
const __is = (input, _vctx = {}) => "object" === typeof input && null !== input && _io0(input, _vctx);
|
|
947
|
+
return input => { input = JSON.parse(input); return __is(input) ? input : null; };
|
|
948
|
+
})()(readFileSync(recordPath(root, target, 'published'), 'utf8'));
|
|
949
|
+
return record === null || record.version !== 1 ? null : record.taskGraph;
|
|
950
|
+
}
|
|
951
|
+
catch {
|
|
952
|
+
return null;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
488
955
|
function validatedReceipt(root, target) {
|
|
489
956
|
const path = recordPath(root, target, 'published');
|
|
490
957
|
let text;
|
|
@@ -969,7 +1436,7 @@ function validatedReceipt(root, target) {
|
|
|
969
1436
|
? 'Public product bytes differ from actual producer receipt'
|
|
970
1437
|
: census.reason.detail,
|
|
971
1438
|
};
|
|
972
|
-
const moved =
|
|
1439
|
+
const moved = movedToolNodes(tools.value, receipt.producer.tools);
|
|
973
1440
|
if (moved !== null)
|
|
974
1441
|
return { ok: false, detail: `Producer tool namespace changed during independent product validation: ${moved}` };
|
|
975
1442
|
return { ok: true, value: receipt };
|