@smoothbricks/nx-plugin 0.4.28 → 0.4.30

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.
Files changed (158) hide show
  1. package/README.md +277 -89
  2. package/dist/bin/smoo-nx-test-clocks.d.ts +3 -0
  3. package/dist/bin/smoo-nx-test-clocks.d.ts.map +1 -0
  4. package/dist/bin/smoo-nx-test-clocks.js +28 -0
  5. package/dist/bounded-test-policy.d.ts +8 -8
  6. package/dist/bounded-test-policy.d.ts.map +1 -1
  7. package/dist/bounded-test-policy.js +18 -30
  8. package/dist/cargo-closure-input.d.ts +23 -0
  9. package/dist/cargo-closure-input.d.ts.map +1 -1
  10. package/dist/cargo-closure-input.js +41 -9
  11. package/dist/cargo-source-hash.d.ts.map +1 -1
  12. package/dist/cargo-source-hash.js +42 -19
  13. package/dist/ensure-built-receipt.d.ts +40 -6
  14. package/dist/ensure-built-receipt.d.ts.map +1 -1
  15. package/dist/ensure-built-receipt.js +297 -159
  16. package/dist/ensure-built-witness.d.ts +65 -4
  17. package/dist/ensure-built-witness.d.ts.map +1 -1
  18. package/dist/ensure-built-witness.js +2237 -23
  19. package/dist/ensure-built.d.ts +99 -1
  20. package/dist/ensure-built.d.ts.map +1 -1
  21. package/dist/ensure-built.js +45 -56
  22. package/dist/executors/bounded-exec/cpu-pool.d.ts +22 -7
  23. package/dist/executors/bounded-exec/cpu-pool.d.ts.map +1 -1
  24. package/dist/executors/bounded-exec/cpu-pool.js +51 -22
  25. package/dist/executors/bounded-exec/executor.d.ts +12 -3
  26. package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
  27. package/dist/executors/bounded-exec/executor.js +174 -51
  28. package/dist/executors/bounded-exec/no-space.d.ts +8 -0
  29. package/dist/executors/bounded-exec/no-space.d.ts.map +1 -0
  30. package/dist/executors/bounded-exec/no-space.js +31 -0
  31. package/dist/executors/bounded-exec/ram-temp.d.ts +20 -11
  32. package/dist/executors/bounded-exec/ram-temp.d.ts.map +1 -1
  33. package/dist/executors/bounded-exec/ram-temp.js +42 -17
  34. package/dist/executors/bounded-exec/verdict.d.ts +34 -4
  35. package/dist/executors/bounded-exec/verdict.d.ts.map +1 -1
  36. package/dist/executors/bounded-exec/verdict.js +54 -3
  37. package/dist/generators/bun-test-tracing/generator.js +2 -2
  38. package/dist/graph-input-contract.d.ts +102 -0
  39. package/dist/graph-input-contract.d.ts.map +1 -0
  40. package/dist/graph-input-contract.js +637 -0
  41. package/dist/index.d.ts +12 -5
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +17 -3
  44. package/dist/managed-files/ci-workflow.d.ts.map +1 -1
  45. package/dist/managed-files/ci-workflow.js +5 -2
  46. package/dist/managed-files/publish-workflow.d.ts +11 -1
  47. package/dist/managed-files/publish-workflow.d.ts.map +1 -1
  48. package/dist/owned-installation.d.ts +14 -0
  49. package/dist/owned-installation.d.ts.map +1 -0
  50. package/dist/owned-installation.js +324 -0
  51. package/dist/producer-receipts.d.ts +19 -0
  52. package/dist/producer-receipts.d.ts.map +1 -0
  53. package/dist/producer-receipts.js +926 -0
  54. package/dist/test-backstop.d.ts +9 -0
  55. package/dist/test-backstop.d.ts.map +1 -0
  56. package/dist/test-backstop.js +10 -0
  57. package/dist/test-clock-policy.d.ts +30 -0
  58. package/dist/test-clock-policy.d.ts.map +1 -0
  59. package/dist/test-clock-policy.js +686 -0
  60. package/dist/testing.d.ts +8 -0
  61. package/dist/testing.d.ts.map +1 -1
  62. package/dist/testing.js +66 -1
  63. package/managed/raw/patches/nx@23.2.1.patch +328 -50
  64. package/managed/raw/tooling/direnv/developer-links.ts +148 -29
  65. package/managed/raw/tooling/direnv/devenv.smoo.nix +7 -7
  66. package/managed/raw/tooling/direnv/github-actions-bootstrap.sh +14 -5
  67. package/managed/raw/tooling/direnv/linked-snapshots.ts +206 -40
  68. package/managed/raw/tooling/direnv/repo-path +15 -2
  69. package/managed/raw/tooling/direnv/setup-environment.ts +179 -115
  70. package/managed/templates/github/actions/cache-node-modules/action.yml +9 -0
  71. package/managed/templates/github/actions/setup-devenv/action.yml +63 -7
  72. package/nextest.toml +1 -1
  73. package/package.json +25 -9
  74. package/src/__tests__/cargo-closure-fixture.ts +113 -0
  75. package/src/__tests__/counted-cargo.ts +8 -25
  76. package/src/__tests__/directory-change.ts +27 -0
  77. package/src/__tests__/fixture-nx-env.ts +7 -0
  78. package/src/__tests__/owned-installation.ts +14 -0
  79. package/src/__tests__/past-tick.ts +12 -0
  80. package/src/bin/smoo-nx-bound-failures.test.ts +1 -1
  81. package/src/bin/smoo-nx-test-clocks.ts +29 -0
  82. package/src/bounded-test-policy.test.ts +36 -22
  83. package/src/bounded-test-policy.ts +18 -32
  84. package/src/bun-bootstrap.test.ts +1 -1
  85. package/src/cargo-closure-input.property.test.ts +50 -0
  86. package/src/cargo-closure-input.test.ts +73 -121
  87. package/src/cargo-closure-input.ts +47 -8
  88. package/src/cargo-closure-key.test.ts +239 -0
  89. package/src/cargo-resolve-cache.test.ts +168 -31
  90. package/src/cargo-source-hash.test.ts +78 -3
  91. package/src/cargo-source-hash.ts +48 -30
  92. package/src/cross-check-policy.test.ts +2 -2
  93. package/src/ensure-built-receipt.test.ts +111 -16
  94. package/src/ensure-built-receipt.ts +294 -149
  95. package/src/ensure-built-witness.test.ts +306 -13
  96. package/src/ensure-built-witness.ts +255 -24
  97. package/src/ensure-built.test.ts +228 -102
  98. package/src/ensure-built.ts +127 -66
  99. package/src/executors/bounded-exec/cpu-pool.test.ts +134 -32
  100. package/src/executors/bounded-exec/cpu-pool.ts +64 -20
  101. package/src/executors/bounded-exec/cpu-tokens.test.ts +2 -2
  102. package/src/executors/bounded-exec/disk-lease.test.ts +47 -13
  103. package/src/executors/bounded-exec/executor-host.test.ts +74 -52
  104. package/src/executors/bounded-exec/executor.test.ts +343 -97
  105. package/src/executors/bounded-exec/executor.ts +192 -56
  106. package/src/executors/bounded-exec/hang-diagnostics.test.ts +14 -8
  107. package/src/executors/bounded-exec/no-space.ts +40 -0
  108. package/src/executors/bounded-exec/progress.test.ts +1 -1
  109. package/src/executors/bounded-exec/ram-temp-host.test.ts +51 -21
  110. package/src/executors/bounded-exec/ram-temp.test.ts +92 -16
  111. package/src/executors/bounded-exec/ram-temp.ts +49 -20
  112. package/src/executors/bounded-exec/verdict.test.ts +127 -22
  113. package/src/executors/bounded-exec/verdict.ts +78 -3
  114. package/src/generators/bounded-test-targets/generator.test.ts +1 -3
  115. package/src/generators/bun-test-tracing/generator.test.ts +2 -2
  116. package/src/generators/bun-test-tracing/generator.ts +2 -2
  117. package/src/graph-input-contract.test.ts +379 -0
  118. package/src/graph-input-contract.ts +627 -0
  119. package/src/index.test.ts +3 -3
  120. package/src/index.ts +24 -3
  121. package/src/linked-snapshots.nx.test.ts +112 -30
  122. package/src/managed-files/ci-workflow.ts +5 -2
  123. package/src/managed-files/publish-workflow.ts +12 -1
  124. package/src/managed-files/repo-path.test.ts +44 -1
  125. package/src/managed-files/setup-devenv-free-disk.test.ts +95 -0
  126. package/src/nextest-code-bound.test.ts +23 -17
  127. package/src/nextest-extraction.test.ts +114 -4
  128. package/src/nextest-partitions.test.ts +7 -1
  129. package/src/nx-cache-restore-mtime.test.ts +2 -2
  130. package/src/nx-daemon-claim.test.ts +10 -8
  131. package/src/nx-daemon-idle-cpu.test.ts +0 -1
  132. package/src/nx-daemon-idle-policy.test.ts +61 -1
  133. package/src/nx-daemon-ignore-files.test.ts +2 -2
  134. package/src/nx-daemon-validity.test.ts +36 -22
  135. package/src/nx-dot-input-policy.test.ts +5 -5
  136. package/src/nx-files-archive-racy.test.ts +1 -1
  137. package/src/nx-incomplete-run-summary.test.ts +1 -1
  138. package/src/nx-plugin-load-errors.test.ts +2 -2
  139. package/src/nx-project-graph-errors.test.ts +70 -0
  140. package/src/nx-skipped-task-exit.test.ts +2 -2
  141. package/src/nx-store-resolution.test.ts +7 -25
  142. package/src/nx-task-output-lease.test.ts +3 -3
  143. package/src/nx-use-local.test.ts +7 -5
  144. package/src/owned-installation.ts +174 -0
  145. package/src/producer-receipts.test.ts +164 -0
  146. package/src/producer-receipts.ts +636 -0
  147. package/src/runtime-input.test.ts +1 -1
  148. package/src/serial-group-wiring.test.ts +4 -4
  149. package/src/task-results.test.ts +18 -16
  150. package/src/test-backstop.ts +11 -0
  151. package/src/test-clock-policy.test.ts +338 -0
  152. package/src/test-clock-policy.ts +708 -0
  153. package/src/test-timings.test.ts +2 -2
  154. package/src/testing.test.ts +5 -5
  155. package/src/testing.ts +67 -1
  156. package/src/typecheck-test-policy.test.ts +1 -1
  157. package/src/typescript-resolution.test.ts +76 -0
  158. package/test-timings.json +8 -0
package/dist/index.js CHANGED
@@ -14,13 +14,14 @@ import { attributeCargoWorkspacePackages, CARGO_TEST_ARCHIVE_FILE, CARGO_TEST_AR
14
14
  import { CARGO_CROSS_LINT_COMMAND, CARGO_CROSS_LINT_TARGET, CARGO_FETCH_COMMAND, CARGO_FETCH_TARGET, CARGO_FROZEN_PREFIX, CARGO_LINT_CLIPPY_COMMAND, cargoCrossTestArchiveFile, cargoCrossTestArchiveTargetName, cargoCrossTestTargetName, cargoFrozen, } from './cross-check-policy.js';
15
15
  import { hashVersionlessCrateManifests } from './manifest-hash.js';
16
16
  import { EXTRACTED_BINARIES_METADATA, EXTRACTED_CARGO_METADATA, EXTRACTED_TARGET_DIR, NEXTEST_EXTRACT_BIN, } from './nextest-extraction.js';
17
+ import { postTasksExecution as postProducerReceipts, preTasksExecution as preProducerReceipts, } from './producer-receipts.js';
17
18
  import { runtimeInput, shellWord } from './runtime-input.js';
18
19
  import { isNonSourceDirectory } from './source-directories.js';
19
- import { postTasksExecution, preTasksExecution } from './task-results.js';
20
+ import { postTasksExecution as postTaskResults, preTasksExecution as preTaskResults } from './task-results.js';
20
21
  import { SHARD_TIMINGS_EXECUTOR, SHARD_TIMINGS_TARGET, timingsShardedSuite } from './test-timings.js';
21
22
  import { isBuildOutputTargetName, isTestRunnerTargetName, PLATFORM_TARGET_GLOBS, RELEASE_CONFIGURATION, } from './workspace-config-policy.js';
22
23
  import { globIndexedFiles } from './workspace-index.js';
23
- export { CARGO_TEST_COMPILE_TARGET, postTasksExecution, preTasksExecution };
24
+ export { CARGO_TEST_COMPILE_TARGET };
24
25
  /** Makes a version live and proves it answers; never cached. */
25
26
  export const DEPLOY_TARGET = 'deploy';
26
27
  /** The purely file-derived half a deploy needs built first; cached. */
@@ -845,6 +846,19 @@ function isBuildOutputPackageJson(packageJsonPath) {
845
846
  const normalized = `/${packageJsonPath.replaceAll('\\', '/')}`;
846
847
  return BUILD_OUTPUT_SEGMENTS.some((segment) => normalized.includes(segment));
847
848
  }
849
+ /**
850
+ * Nx accepts one pre/post task-hook pair per plugin. Two independent observers share it: the controller's task-results
851
+ * hint and the opt-in producer completion receipts. Each sees the same options and run context; neither reads the
852
+ * other's output. The hint is recorded first so a producer-receipt bug cannot cost the controller its evidence.
853
+ */
854
+ export const preTasksExecution = async (options, context) => {
855
+ preTaskResults(options, context);
856
+ await preProducerReceipts(options, context);
857
+ };
858
+ export const postTasksExecution = async (options, context) => {
859
+ await postTaskResults(options, context);
860
+ await postProducerReceipts(options, context);
861
+ };
848
862
  export default { createNodesV2, postTasksExecution, preTasksExecution };
849
863
  function packageBinOutputs(packageJson, packageJsonPath) {
850
864
  if (packageJson.bin === undefined) {
@@ -1934,7 +1948,7 @@ function createNapiTestTarget(projectRoot, hasDedicatedBunfig) {
1934
1948
  // package's cargo target/ directory turns that scan into tens of
1935
1949
  // seconds. bun only auto-loads bunfig from the cwd, so the package
1936
1950
  // config is passed explicitly.
1937
- command: `bun test${configFlag} --timeout=30000 native.test.ts`,
1951
+ command: `bun test${configFlag} --timeout=0 native.test.ts`,
1938
1952
  cwd: `${projectRoot}/src`,
1939
1953
  // Routes the package's native loader to the napi-debug artifact under
1940
1954
  // .cache/native-debug instead of the packaged dist/native tree.
@@ -1 +1 @@
1
- {"version":3,"file":"ci-workflow.d.ts","sourceRoot":"","sources":["../../src/managed-files/ci-workflow.ts"],"names":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AAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEhE;AAQD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,sBAAsB,GAAG,MAAM,EAAE,CAGjF;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,GAAG,MAAM,EAAE,CAMxG;AAmRD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,6CAA6C,CAAC;AAEjF,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,EAC9C,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,QAAQ,GAAG,UAAU,EAC3B,MAAM,EAAE,SAAS,MAAM,EAAE,EACzB,SAAS,SAAc,GACtB,MAAM,EAAE,CAkBV"}
@@ -385,7 +385,10 @@ function yamlLinesForStep(step, options) {
385
385
  case CiWorkflowStepKind.UploadTraceDbs:
386
386
  return artifactStepLines(options.actionsProvider, step.name, 'upload', [
387
387
  'name: trace-results-${{ github.run_id }}',
388
- `path: ${TRACE_DB_ARTIFACT_GLOB}`,
388
+ 'path: |',
389
+ ` ${TRACE_DB_ARTIFACT_GLOB}`,
390
+ " ${{ job.status == 'failure' && format('{0}/project-graph.json', env.NX_WORKSPACE_DATA_DIRECTORY || '.nx/workspace-data') || '' }}",
391
+ " ${{ job.status == 'failure' && format('{0}/d/daemon.log', env.NX_WORKSPACE_DATA_DIRECTORY || '.nx/workspace-data') || '' }}",
389
392
  'if-no-files-found: ignore',
390
393
  'retention-days: 14',
391
394
  'include-hidden-files: true',
@@ -892,7 +895,7 @@ function renderOptionalLines(lines) {
892
895
  function nxSmartStep(step, target, name) {
893
896
  return [
894
897
  ` - name: ${step.name}`,
895
- ` run: smoo github-ci nx-smart --target ${target} --name "${name}" --step ${step.number}`,
898
+ ` run: ${step.kind === CiWorkflowStepKind.Build ? 'NX_VERBOSE_LOGGING=true ' : ''}smoo github-ci nx-smart --target ${target} --name "${name}" --step ${step.number}`,
896
899
  ];
897
900
  }
898
901
  function renderYamlList(values, spaces) {
@@ -86,8 +86,18 @@ export interface PublishWorkflowInputs {
86
86
  deployStage: PublishWorkflowDeployStage;
87
87
  dryRun: boolean;
88
88
  }
89
+ /**
90
+ * The `mode=` output of `smoo release version --github-output`, which every
91
+ * release gate in this workflow reads. `new`: Nx created a release commit.
92
+ * `complete`: HEAD already carries the release (a rerun, or tags moved by
93
+ * `smoo release retag-unpublished`) and publish completes its missing durable
94
+ * state. `dry-run`: the preview of a release. `none`: nothing to release.
95
+ * Every mode but `none` names packages the workflow must build and validate,
96
+ * because `smoo release publish --prebuilt` refuses an unbuilt package.
97
+ */
98
+ export type ReleaseVersionMode = 'new' | 'complete' | 'dry-run' | 'none';
89
99
  export interface PublishWorkflowVersionOutputs {
90
- mode: 'new' | 'none';
100
+ mode: ReleaseVersionMode;
91
101
  projects: string[];
92
102
  }
93
103
  export interface PublishWorkflowSetupOutputs {
@@ -1 +1 @@
1
- {"version":3,"file":"publish-workflow.d.ts","sourceRoot":"","sources":["../../src/managed-files/publish-workflow.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,2BAA2B,EAC5B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAKL,KAAK,sBAAsB,EAM5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAgD,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AASxG,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,YAAY,CAAC;AACtF,MAAM,MAAM,wBAAwB,GAChC,oBAAoB,GACpB,uBAAuB,GACvB,mBAAmB,GACnB,8BAA8B,GAC9B,SAAS,GACT,QAAQ,CAAC;AACb,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,M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IAAI,CAAC,CAAC;CAClE;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,SAAS,EAAE,wBAAwB,CAAC;CACrC;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,6BAA6B,CAAC;IACvC,MAAM,EAAE,OAAO,CAAC;CACjB;AAID,wBAAgB,qBAAqB,CAAC,OAAO,GAAE,gCAAqC,GAAG,yBAAyB,CA2F/G;AAkCD,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,yBAAyB,EACnC,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,wBAAwB,CAAC,CAwFnC;AA2BD;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,GAAE,gCAAqC,GAAG,MAAM,CA2BhG"}
@@ -0,0 +1,14 @@
1
+ /** One test file's installation: made on first use and shared by its fixtures, retired by the file's `afterAll`. */
2
+ export interface TestFileInstallation {
3
+ /** The `node_modules` a fixture workspace links. */
4
+ readonly nodeModules: () => Promise<string>;
5
+ /** Fails if a fixture wrote into the copy; a file that never used it has nothing to retire. */
6
+ readonly retire: () => Promise<void>;
7
+ }
8
+ /**
9
+ * The installation one test file owns: a copy of the closure `censusRoot` (the workspace whose Nx, plugin and
10
+ * TypeScript the fixtures stand for) resolves, made in the empty directory `makeRoot` creates on first use. Call once
11
+ * per file, at module scope: Bun runs many test files in one process, and each must own its copy.
12
+ */
13
+ export declare function ownedInstallation(censusRoot: string, makeRoot: () => Promise<string>): TestFileInstallation;
14
+ //# sourceMappingURL=owned-installation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"owned-installation.d.ts","sourceRoot":"","sources":["../src/owned-installation.ts"],"names":[],"mappings":"AAqJA,oHAAoH;AACpH,MAAM,WAAW,oBAAoB;IACnC,oDAAoD;IACpD,QAAQ,CAAC,WAAW,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,+FAA+F;IAC/F,QAAQ,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,oBAAoB,CAW3G"}
@@ -0,0 +1,324 @@
1
+ import * as _assertGuard_1 from "typia/lib/internal/_assertGuard";
2
+ import * as _accessExpressionAsString_1 from "typia/lib/internal/_accessExpressionAsString";
3
+ const __typia_transform__accessExpressionAsString = _accessExpressionAsString_1._accessExpressionAsString;
4
+ /**
5
+ * A fixture's own copy of a workspace's Nx installation, and the check that nothing wrote into it.
6
+ *
7
+ * The graph witness binds node stamps (ctime included) of every file in the closure of Nx, this plugin and
8
+ * TypeScript (README "Ancestor directories bind..."). Linked from a workspace, that closure is the host's: on CI
9
+ * its files are hardlinks in the shared Bun store, and any other task that installs, restores or cleans changes their
10
+ * link count, so their ctime, so a fixture's installation identity, between two calls of one test. Where this plugin
11
+ * is a developer link, the closure is also a live checkout that its own author edits and rebuilds while a consumer's
12
+ * test reads it. A fixture must not take an input it does not own.
13
+ *
14
+ * So the closure is copied, exactly as the witness's own census resolves it from the workspace that names it: each
15
+ * package once, with the census's own exclusions (`node_modules`, `.git`, `.nx`), each dependency edge relinked beside
16
+ * its copy as Bun's isolated layout does, the top-level packages' bins in `.bin`. Every copy is a new inode, cloned
17
+ * where the volume allows and written otherwise, so no link count is shared with anything outside its owner.
18
+ *
19
+ * A test file makes one copy, on first use, shared by its fixtures; retiring it fails, naming the changed nodes, if
20
+ * any fixture wrote into it.
21
+ */
22
+ import { constants } from 'node:fs';
23
+ import { cp, mkdir, readFile, rm, symlink } from 'node:fs/promises';
24
+ import { basename, dirname, join, relative } from 'node:path';
25
+ import { expandOutputs } from 'nx/src/native';
26
+ import { readModulePackageJson } from 'nx/src/utils/package-json';
27
+ import typia from 'typia';
28
+ import { graphInstallationCensus, graphInstallationIdentity, } from './ensure-built-witness.js';
29
+ /** The configuration the census resolves: Nx, this plugin and TypeScript. */
30
+ const CENSUS_NX_JSON = { plugins: ['@smoothbricks/nx-plugin'] };
31
+ /** The graph witness's installation identity resolved from `root`; an unproved installation fails loudly. */
32
+ function installationIdentity(root) {
33
+ let unproved = 'no detail';
34
+ const identity = graphInstallationIdentity(root, CENSUS_NX_JSON, readModulePackageJson, expandOutputs, null, (detail) => {
35
+ unproved = detail;
36
+ });
37
+ if (identity === null)
38
+ throw new Error(`the Nx installation resolved from ${root} is unproved: ${unproved}`);
39
+ return identity;
40
+ }
41
+ /** Copy the installation closure `censusRoot` resolves into `root/node_modules`; `root` is an empty directory the
42
+ * caller owns.
43
+ *
44
+ * Only the closure is read from `censusRoot`, never its proof: that installation is the host's, whose shared store
45
+ * other tasks relink while the census reads it, which changes node stamps and would make every test that copies it
46
+ * fail for the host's work rather than its own. The copy, which the fixture owns, is what gets proved.
47
+ */
48
+ async function makeOwnedInstallation(censusRoot, root) {
49
+ let unread = 'no detail';
50
+ const census = graphInstallationCensus(censusRoot, CENSUS_NX_JSON, readModulePackageJson, expandOutputs, null, (detail) => {
51
+ unread = detail;
52
+ });
53
+ if (census === null)
54
+ throw new Error(`the Nx installation closure of ${censusRoot} cannot be read: ${unread}`);
55
+ const { resolutions } = census;
56
+ const modules = join(root, 'node_modules');
57
+ // Each source package root's copy, inside a store directory whose node_modules also holds its dependency links.
58
+ const copies = new Map();
59
+ for (const [, , manifest] of resolutions) {
60
+ if (manifest === null || copies.has(dirname(manifest)))
61
+ continue;
62
+ const { name, bin } = (() => {
63
+ const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || _assertGuard_1._assertGuard(_exceptionable, {
64
+ method: "typia.json.assertParse",
65
+ path: _path + ".name",
66
+ expected: "string",
67
+ value: input.name
68
+ }, _errorFactory)) && ((null !== input.bin || _assertGuard_1._assertGuard(_exceptionable, {
69
+ method: "typia.json.assertParse",
70
+ path: _path + ".bin",
71
+ expected: "(Record<string, string> | string | undefined)",
72
+ value: input.bin
73
+ }, _errorFactory)) && (undefined === input.bin || "string" === typeof input.bin || ("object" === typeof input.bin && null !== input.bin && false === Array.isArray(input.bin) || _assertGuard_1._assertGuard(_exceptionable, {
74
+ method: "typia.json.assertParse",
75
+ path: _path + ".bin",
76
+ expected: "(Record<string, string> | string | undefined)",
77
+ value: input.bin
78
+ }, _errorFactory)) && _ao1(input.bin, _path + ".bin", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
79
+ method: "typia.json.assertParse",
80
+ path: _path + ".bin",
81
+ expected: "(Record<string, string> | string | undefined)",
82
+ value: input.bin
83
+ }, _errorFactory)));
84
+ const _ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
85
+ const value = input[key];
86
+ if (undefined === value)
87
+ return true;
88
+ return "string" === typeof value || _assertGuard_1._assertGuard(_exceptionable, {
89
+ method: "typia.json.assertParse",
90
+ path: _path + __typia_transform__accessExpressionAsString(key),
91
+ expected: "string",
92
+ value: value
93
+ }, _errorFactory);
94
+ });
95
+ const _io0 = input => "string" === typeof input.name && (null !== input.bin && (undefined === input.bin || "string" === typeof input.bin || "object" === typeof input.bin && null !== input.bin && false === Array.isArray(input.bin) && _io1(input.bin)));
96
+ const _io1 = input => Object.keys(input).every(key => {
97
+ const value = input[key];
98
+ if (undefined === value)
99
+ return true;
100
+ return "string" === typeof value;
101
+ });
102
+ const __is = input => "object" === typeof input && null !== input && _io0(input);
103
+ let _errorFactory;
104
+ const __assert = (input, errorFactory) => {
105
+ if (false === __is(input)) {
106
+ _errorFactory = errorFactory;
107
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _assertGuard_1._assertGuard(true, {
108
+ method: "typia.json.assertParse",
109
+ path: _path + "",
110
+ expected: "{ name: string; bin?: string | Record<string, string> | undefined; }",
111
+ value: input
112
+ }, _errorFactory)) && _ao0(input, _path + "", true) || _assertGuard_1._assertGuard(true, {
113
+ method: "typia.json.assertParse",
114
+ path: _path + "",
115
+ expected: "{ name: string; bin?: string | Record<string, string> | undefined; }",
116
+ value: input
117
+ }, _errorFactory))(input, "$input", true);
118
+ }
119
+ return input;
120
+ };
121
+ return (input, errorFactory) => __assert(JSON.parse(input), errorFactory);
122
+ })()(await readFile(manifest, 'utf8'));
123
+ const store = join(modules, '.store', String(copies.size), 'node_modules');
124
+ copies.set(dirname(manifest), { store, copy: join(store, name), bin });
125
+ }
126
+ const copyOf = (source) => {
127
+ const copied = copies.get(source);
128
+ if (copied === undefined)
129
+ throw new Error(`${source} resolves dependencies but is not in the census`);
130
+ return copied;
131
+ };
132
+ await Promise.all([...copies].map(([source, { copy }]) => cp(source, copy, {
133
+ recursive: true,
134
+ verbatimSymlinks: true,
135
+ mode: constants.COPYFILE_FICLONE,
136
+ filter: (path) => path === source || !['node_modules', '.git', '.nx'].includes(basename(path)),
137
+ })));
138
+ for (const [from, name, manifest] of resolutions) {
139
+ if (manifest === null)
140
+ continue;
141
+ const link = join(from === censusRoot ? modules : copyOf(from).store, name);
142
+ await mkdir(dirname(link), { recursive: true });
143
+ await symlink(relative(dirname(link), copyOf(dirname(manifest)).copy), link, 'dir');
144
+ if (from !== censusRoot)
145
+ continue;
146
+ const { bin } = copyOf(dirname(manifest));
147
+ const commands = typeof bin === 'string' ? { [basename(name)]: bin } : (bin ?? {});
148
+ for (const [command, path] of Object.entries(commands)) {
149
+ await mkdir(join(modules, '.bin'), { recursive: true });
150
+ await symlink(relative(join(modules, '.bin'), join(link, path)), join(modules, '.bin', command));
151
+ }
152
+ }
153
+ return { root, identity: installationIdentity(root) };
154
+ }
155
+ /**
156
+ * Remove an installation, failing, with the changed nodes named, if its identity is no longer the one it was made
157
+ * with: the proof that its sharers only read it.
158
+ */
159
+ async function retireOwnedInstallation({ root, identity }) {
160
+ try {
161
+ const retired = installationIdentity(root);
162
+ if (retired === identity)
163
+ return;
164
+ const entries = (census) => {
165
+ const { nodes, files } = (() => {
166
+ const _ip0 = input => "string" === typeof input["path"];
167
+ const _ap0 = (input, _path, _exceptionable = true) => "string" === typeof input["path"] || _assertGuard_1._assertGuard(_exceptionable, {
168
+ method: "typia.json.assertParse",
169
+ path: _path + ".path",
170
+ expected: "string",
171
+ value: input["path"]
172
+ }, _errorFactory);
173
+ const _ao0 = (input, _path, _exceptionable = true) => ((Array.isArray(input.resolutions) || _assertGuard_1._assertGuard(_exceptionable, {
174
+ method: "typia.json.assertParse",
175
+ path: _path + ".resolutions",
176
+ expected: "ReadonlyArray<readonly [string, string, string | null]>",
177
+ value: input.resolutions
178
+ }, _errorFactory)) && input.resolutions.every((elem, _index4) => (Array.isArray(elem) || _assertGuard_1._assertGuard(_exceptionable, {
179
+ method: "typia.json.assertParse",
180
+ path: _path + ".resolutions[" + _index4 + "]",
181
+ expected: "readonly [string, string, string | null]",
182
+ value: elem
183
+ }, _errorFactory)) && ((elem.length === 3 || _assertGuard_1._assertGuard(_exceptionable, {
184
+ method: "typia.json.assertParse",
185
+ path: _path + ".resolutions[" + _index4 + "]",
186
+ expected: "[string, string, (null | string)]",
187
+ value: elem
188
+ }, _errorFactory)) && ("string" === typeof elem[0] || _assertGuard_1._assertGuard(_exceptionable, {
189
+ method: "typia.json.assertParse",
190
+ path: _path + ".resolutions[" + _index4 + "][0]",
191
+ expected: "string",
192
+ value: elem[0]
193
+ }, _errorFactory)) && ("string" === typeof elem[1] || _assertGuard_1._assertGuard(_exceptionable, {
194
+ method: "typia.json.assertParse",
195
+ path: _path + ".resolutions[" + _index4 + "][1]",
196
+ expected: "string",
197
+ value: elem[1]
198
+ }, _errorFactory)) && (null === elem[2] || "string" === typeof elem[2] || _assertGuard_1._assertGuard(_exceptionable, {
199
+ method: "typia.json.assertParse",
200
+ path: _path + ".resolutions[" + _index4 + "][2]",
201
+ expected: "(null | string)",
202
+ value: elem[2]
203
+ }, _errorFactory))) || _assertGuard_1._assertGuard(_exceptionable, {
204
+ method: "typia.json.assertParse",
205
+ path: _path + ".resolutions[" + _index4 + "]",
206
+ expected: "readonly [string, string, string | null]",
207
+ value: elem
208
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
209
+ method: "typia.json.assertParse",
210
+ path: _path + ".resolutions",
211
+ expected: "ReadonlyArray<readonly [string, string, string | null]>",
212
+ value: input.resolutions
213
+ }, _errorFactory)) && ((Array.isArray(input.nodes) || _assertGuard_1._assertGuard(_exceptionable, {
214
+ method: "typia.json.assertParse",
215
+ path: _path + ".nodes",
216
+ expected: "ReadonlyArray<NodeWitness>",
217
+ value: input.nodes
218
+ }, _errorFactory)) && input.nodes.every((elem, _index5) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
219
+ method: "typia.json.assertParse",
220
+ path: _path + ".nodes[" + _index5 + "]",
221
+ expected: "NodeWitness",
222
+ value: elem
223
+ }, _errorFactory)) && _ao1(elem, _path + ".nodes[" + _index5 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
224
+ method: "typia.json.assertParse",
225
+ path: _path + ".nodes[" + _index5 + "]",
226
+ expected: "NodeWitness",
227
+ value: elem
228
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
229
+ method: "typia.json.assertParse",
230
+ path: _path + ".nodes",
231
+ expected: "ReadonlyArray<NodeWitness>",
232
+ value: input.nodes
233
+ }, _errorFactory)) && ((Array.isArray(input.files) || _assertGuard_1._assertGuard(_exceptionable, {
234
+ method: "typia.json.assertParse",
235
+ path: _path + ".files",
236
+ expected: "readonly { readonly path: string; readonly sha256: string; }[]",
237
+ value: input.files
238
+ }, _errorFactory)) && input.files.every((elem, _index6) => ("object" === typeof elem && null !== elem || _assertGuard_1._assertGuard(_exceptionable, {
239
+ method: "typia.json.assertParse",
240
+ path: _path + ".files[" + _index6 + "]",
241
+ expected: "{ readonly path: string; readonly sha256: string; }",
242
+ value: elem
243
+ }, _errorFactory)) && _ao2(elem, _path + ".files[" + _index6 + "]", true && _exceptionable) || _assertGuard_1._assertGuard(_exceptionable, {
244
+ method: "typia.json.assertParse",
245
+ path: _path + ".files[" + _index6 + "]",
246
+ expected: "{ readonly path: string; readonly sha256: string; }",
247
+ value: elem
248
+ }, _errorFactory)) || _assertGuard_1._assertGuard(_exceptionable, {
249
+ method: "typia.json.assertParse",
250
+ path: _path + ".files",
251
+ expected: "readonly { readonly path: string; readonly sha256: string; }[]",
252
+ value: input.files
253
+ }, _errorFactory));
254
+ const _ao1 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("string" === typeof input.stamp || _assertGuard_1._assertGuard(_exceptionable, {
255
+ method: "typia.json.assertParse",
256
+ path: _path + ".stamp",
257
+ expected: "string",
258
+ value: input.stamp
259
+ }, _errorFactory));
260
+ const _ao2 = (input, _path, _exceptionable = true) => _ap0(input, _path, true && _exceptionable) && ("string" === typeof input.sha256 || _assertGuard_1._assertGuard(_exceptionable, {
261
+ method: "typia.json.assertParse",
262
+ path: _path + ".sha256",
263
+ expected: "string",
264
+ value: input.sha256
265
+ }, _errorFactory));
266
+ const _io0 = input => Array.isArray(input.resolutions) && input.resolutions.every(elem => Array.isArray(elem) && (elem.length === 3 && "string" === typeof elem[0] && "string" === typeof elem[1] && (null === elem[2] || "string" === typeof elem[2]))) && (Array.isArray(input.nodes) && input.nodes.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (Array.isArray(input.files) && input.files.every(elem => "object" === typeof elem && null !== elem && _io2(elem)));
267
+ const _io1 = input => _ip0(input) && "string" === typeof input.stamp;
268
+ const _io2 = input => _ip0(input) && "string" === typeof input.sha256;
269
+ const __is = input => "object" === typeof input && null !== input && _io0(input);
270
+ let _errorFactory;
271
+ const __assert = (input, errorFactory) => {
272
+ if (false === __is(input)) {
273
+ _errorFactory = errorFactory;
274
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _assertGuard_1._assertGuard(true, {
275
+ method: "typia.json.assertParse",
276
+ path: _path + "",
277
+ expected: "GraphInstallationCensus",
278
+ value: input
279
+ }, _errorFactory)) && _ao0(input, _path + "", true) || _assertGuard_1._assertGuard(true, {
280
+ method: "typia.json.assertParse",
281
+ path: _path + "",
282
+ expected: "GraphInstallationCensus",
283
+ value: input
284
+ }, _errorFactory))(input, "$input", true);
285
+ }
286
+ return input;
287
+ };
288
+ return (input, errorFactory) => __assert(JSON.parse(input), errorFactory);
289
+ })()(census);
290
+ return new Set([
291
+ ...nodes.map(({ path, stamp }) => `${path} ${stamp}`),
292
+ ...files.map(({ path, sha256 }) => `${path} ${sha256}`),
293
+ ]);
294
+ };
295
+ const made = entries(identity);
296
+ const now = entries(retired);
297
+ const changed = [
298
+ ...[...made].filter((entry) => !now.has(entry)).map((entry) => `- ${entry}`),
299
+ ...[...now].filter((entry) => !made.has(entry)).map((entry) => `+ ${entry}`),
300
+ ];
301
+ throw new Error(`a fixture changed the installation it shares, in ${root}:\n${changed.slice(0, 20).join('\n')}`);
302
+ }
303
+ finally {
304
+ await rm(root, { recursive: true, force: true });
305
+ }
306
+ }
307
+ /**
308
+ * The installation one test file owns: a copy of the closure `censusRoot` (the workspace whose Nx, plugin and
309
+ * TypeScript the fixtures stand for) resolves, made in the empty directory `makeRoot` creates on first use. Call once
310
+ * per file, at module scope: Bun runs many test files in one process, and each must own its copy.
311
+ */
312
+ export function ownedInstallation(censusRoot, makeRoot) {
313
+ let made;
314
+ return {
315
+ nodeModules: async () => {
316
+ made ??= makeRoot().then((root) => makeOwnedInstallation(censusRoot, root));
317
+ return join((await made).root, 'node_modules');
318
+ },
319
+ retire: async () => {
320
+ if (made !== undefined)
321
+ await retireOwnedInstallation(await made);
322
+ },
323
+ };
324
+ }
@@ -0,0 +1,19 @@
1
+ import type { Task, TaskGraph } from 'nx/src/config/task-graph';
2
+ import type { PostTasksExecutionContext, PreTasksExecutionContext } from 'nx/src/project-graph/plugins/public-api';
3
+ import { type EnsureBuiltProducerReceipt, type EnsureBuiltReceipt } from './ensure-built.js';
4
+ import { type ReceiptEvidence } from './ensure-built-receipt.js';
5
+ export interface ProducerReceiptsOptions {
6
+ readonly producerReceipts?: {
7
+ readonly targets: readonly string[];
8
+ };
9
+ }
10
+ export declare function completedProducerTasks(graph: TaskGraph, results: PostTasksExecutionContext['taskResults']): ReceiptEvidence<readonly Task[]>;
11
+ export declare function producerEnvironmentIdentity(inputs: EnsureBuiltProducerReceipt['inputs']): string;
12
+ export declare function preTasksExecution(options: ProducerReceiptsOptions | undefined, context: PreTasksExecutionContext): Promise<void>;
13
+ export declare function postTasksExecution(options: ProducerReceiptsOptions | undefined, context: PostTasksExecutionContext): Promise<void>;
14
+ /**
15
+ * Readonly consumers accept actual producer completion evidence, never their own environment/cache rows. A receipt
16
+ * that does not validate is a miss whose detail also carries the refusal of the producer's latest run, when it left one.
17
+ */
18
+ export declare function readProducerReceipt(root: string, target: string): ReceiptEvidence<EnsureBuiltReceipt>;
19
+ //# sourceMappingURL=producer-receipts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"producer-receipts.d.ts","sourceRoot":"","sources":["../src/producer-receipts.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAEnH,OAAO,EAEL,KAAK,0BAA0B,EAE/B,KAAK,kBAAkB,EAIxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAKL,KAAK,eAAe,EAErB,MAAM,2BAA2B,CAAC;AAUnC,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,gBAAgB,CAAC,EAAE;QAAE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC;CACrE;AAyQD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,yBAAyB,CAAC,aAAa,CAAC,GAChD,eAAe,CAAC,SAAS,IAAI,EAAE,CAAC,CAqBlC;AACD,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,0BAA0B,CAAC,QAAQ,CAAC,GAAG,MAAM,CAShG;AACD,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,uBAAuB,GAAG,SAAS,EAC5C,OAAO,EAAE,wBAAwB,GAChC,OAAO,CAAC,IAAI,CAAC,CAyCf;AACD,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,uBAAuB,GAAG,SAAS,EAC5C,OAAO,EAAE,yBAAyB,GACjC,OAAO,CAAC,IAAI,CAAC,CAoIf;AACD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAOrG"}