@smoothbricks/nx-plugin 0.7.18 → 0.7.19

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 (143) hide show
  1. package/README.md +160 -99
  2. package/dist/.build-inputs.json +35 -29
  3. package/dist/built-output-packages.js +1 -1
  4. package/dist/cargo-closure-input.js +1 -1
  5. package/dist/cargo-source-hash.d.ts +3 -21
  6. package/dist/cargo-source-hash.d.ts.map +1 -1
  7. package/dist/cargo-source-hash.js +4 -91
  8. package/dist/cargo-toolchain-paths.d.ts +2 -2
  9. package/dist/cargo-toolchain-paths.js +2 -2
  10. package/dist/cargo-workspace.d.ts.map +1 -1
  11. package/dist/cargo-workspace.js +2 -1
  12. package/dist/executors/bounded-exec/admission-queue.d.ts +3 -1
  13. package/dist/executors/bounded-exec/admission-queue.d.ts.map +1 -1
  14. package/dist/executors/bounded-exec/admission-queue.js +9 -10
  15. package/dist/executors/bounded-exec/awake-clock.d.ts +5 -0
  16. package/dist/executors/bounded-exec/awake-clock.d.ts.map +1 -0
  17. package/dist/executors/bounded-exec/awake-clock.js +22 -0
  18. package/dist/executors/bounded-exec/bounds.d.ts +7 -5
  19. package/dist/executors/bounded-exec/bounds.d.ts.map +1 -1
  20. package/dist/executors/bounded-exec/bounds.js +14 -11
  21. package/dist/executors/bounded-exec/case-gate.d.ts +114 -0
  22. package/dist/executors/bounded-exec/case-gate.d.ts.map +1 -0
  23. package/dist/executors/bounded-exec/case-gate.js +342 -0
  24. package/dist/executors/bounded-exec/cpu-pool-thread.d.ts +1 -0
  25. package/dist/executors/bounded-exec/cpu-pool-thread.d.ts.map +1 -1
  26. package/dist/executors/bounded-exec/cpu-pool-thread.js +2 -2
  27. package/dist/executors/bounded-exec/cpu-pool.d.ts +28 -1
  28. package/dist/executors/bounded-exec/cpu-pool.d.ts.map +1 -1
  29. package/dist/executors/bounded-exec/cpu-pool.js +102 -16
  30. package/dist/executors/bounded-exec/endpoint-life.d.ts +146 -0
  31. package/dist/executors/bounded-exec/endpoint-life.d.ts.map +1 -0
  32. package/dist/executors/bounded-exec/endpoint-life.js +228 -0
  33. package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
  34. package/dist/executors/bounded-exec/executor.js +207 -69
  35. package/dist/executors/bounded-exec/gateway-lease.d.ts +1 -1
  36. package/dist/executors/bounded-exec/gateway-lease.d.ts.map +1 -1
  37. package/dist/executors/bounded-exec/gateway-lease.js +8 -1
  38. package/dist/executors/bounded-exec/go-run-summary.d.ts +51 -0
  39. package/dist/executors/bounded-exec/go-run-summary.d.ts.map +1 -0
  40. package/dist/executors/bounded-exec/go-run-summary.js +98 -0
  41. package/dist/executors/bounded-exec/hang-diagnostics.d.ts +3 -3
  42. package/dist/executors/bounded-exec/hang-diagnostics.d.ts.map +1 -1
  43. package/dist/executors/bounded-exec/hang-diagnostics.js +66 -48
  44. package/dist/executors/bounded-exec/lease-wait.d.ts +1 -0
  45. package/dist/executors/bounded-exec/lease-wait.d.ts.map +1 -1
  46. package/dist/executors/bounded-exec/lease-wait.js +1 -0
  47. package/dist/executors/bounded-exec/mbx-pool.d.ts +28 -7
  48. package/dist/executors/bounded-exec/mbx-pool.d.ts.map +1 -1
  49. package/dist/executors/bounded-exec/mbx-pool.js +30 -9
  50. package/dist/executors/bounded-exec/mbx-reservations.d.ts +8 -5
  51. package/dist/executors/bounded-exec/mbx-reservations.d.ts.map +1 -1
  52. package/dist/executors/bounded-exec/mbx-reservations.js +187 -283
  53. package/dist/executors/bounded-exec/parent-grant.d.ts +2 -0
  54. package/dist/executors/bounded-exec/parent-grant.d.ts.map +1 -1
  55. package/dist/executors/bounded-exec/parent-grant.js +1 -0
  56. package/dist/executors/bounded-exec/pool-admission.d.ts +29 -3
  57. package/dist/executors/bounded-exec/pool-admission.d.ts.map +1 -1
  58. package/dist/executors/bounded-exec/pool-admission.js +47 -1
  59. package/dist/executors/bounded-exec/progress.d.ts +3 -0
  60. package/dist/executors/bounded-exec/progress.d.ts.map +1 -1
  61. package/dist/executors/bounded-exec/progress.js +31 -1
  62. package/dist/executors/bounded-exec/reservation-connection.d.ts +90 -0
  63. package/dist/executors/bounded-exec/reservation-connection.d.ts.map +1 -0
  64. package/dist/executors/bounded-exec/reservation-connection.js +248 -0
  65. package/dist/executors/bounded-exec/run-cpu-pool.d.ts.map +1 -1
  66. package/dist/executors/bounded-exec/run-cpu-pool.js +3 -0
  67. package/dist/executors/bounded-exec/runner-sizing.d.ts +9 -5
  68. package/dist/executors/bounded-exec/runner-sizing.d.ts.map +1 -1
  69. package/dist/executors/bounded-exec/runner-sizing.js +13 -9
  70. package/dist/executors/bounded-exec/schema.d.ts +2 -2
  71. package/dist/executors/bounded-exec/suite-minimum.d.ts +21 -0
  72. package/dist/executors/bounded-exec/suite-minimum.d.ts.map +1 -0
  73. package/dist/executors/bounded-exec/suite-minimum.js +85 -0
  74. package/dist/executors/bounded-exec/test-result-writer.d.ts +2 -0
  75. package/dist/executors/bounded-exec/test-result-writer.d.ts.map +1 -1
  76. package/dist/executors/bounded-exec/test-result-writer.js +1 -0
  77. package/dist/executors/bounded-exec/test-results.d.ts +5 -0
  78. package/dist/executors/bounded-exec/test-results.d.ts.map +1 -1
  79. package/dist/executors/bounded-exec/test-results.js +2 -2
  80. package/dist/executors/bounded-exec/verdict.d.ts +26 -4
  81. package/dist/executors/bounded-exec/verdict.d.ts.map +1 -1
  82. package/dist/executors/bounded-exec/verdict.js +26 -5
  83. package/dist/executors/cargo-zigbuild/executor.d.ts +10 -8
  84. package/dist/executors/cargo-zigbuild/executor.d.ts.map +1 -1
  85. package/dist/executors/cargo-zigbuild/executor.js +32 -19
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/index.js +105 -73
  88. package/dist/managed-files/ci-workflow.d.ts +4 -1
  89. package/dist/managed-files/ci-workflow.d.ts.map +1 -1
  90. package/dist/managed-files/ci-workflow.js +9 -14
  91. package/dist/managed-files/files.d.ts +3 -3
  92. package/dist/managed-files/files.js +3 -3
  93. package/dist/task-results.js +2 -1
  94. package/dist/workspace-config-policy.d.ts.map +1 -1
  95. package/dist/workspace-config-policy.js +135 -42
  96. package/executors.json +2 -0
  97. package/managed/raw/envrc +24 -0
  98. package/managed/raw/patches/nx@24.0.3.patch +1179 -133
  99. package/managed/raw/patches/ttsc@0.37.1.patch +1055 -0
  100. package/managed/raw/tooling/direnv/developer-links.ts +105 -11
  101. package/managed/raw/tooling/direnv/devenv.smoo.nix +20 -19
  102. package/package.json +67 -11
  103. package/runtime/nx-publish/.build-inputs.json +2 -2
  104. package/runtime/nx-publish/cache_adapter.js +293 -3
  105. package/runtime/nx-publish/nx_publish.js +36 -14
  106. package/src/built-output-packages.ts +1 -1
  107. package/src/cargo-closure-input.ts +1 -1
  108. package/src/cargo-source-hash.ts +16 -132
  109. package/src/cargo-toolchain-paths.ts +2 -2
  110. package/src/cargo-workspace.ts +1 -2
  111. package/src/executors/bounded-exec/admission-queue.ts +11 -10
  112. package/src/executors/bounded-exec/awake-clock.ts +20 -0
  113. package/src/executors/bounded-exec/bounds.ts +28 -15
  114. package/src/executors/bounded-exec/case-gate.ts +365 -0
  115. package/src/executors/bounded-exec/cpu-pool-thread.ts +3 -3
  116. package/src/executors/bounded-exec/cpu-pool.ts +139 -12
  117. package/src/executors/bounded-exec/endpoint-life.ts +279 -0
  118. package/src/executors/bounded-exec/executor.ts +280 -106
  119. package/src/executors/bounded-exec/gateway-lease.ts +6 -0
  120. package/src/executors/bounded-exec/go-run-summary.ts +137 -0
  121. package/src/executors/bounded-exec/hang-diagnostics.ts +70 -52
  122. package/src/executors/bounded-exec/lease-wait.ts +1 -0
  123. package/src/executors/bounded-exec/mbx-pool.ts +36 -9
  124. package/src/executors/bounded-exec/mbx-reservations.ts +213 -182
  125. package/src/executors/bounded-exec/parent-grant.ts +3 -0
  126. package/src/executors/bounded-exec/pool-admission.ts +59 -2
  127. package/src/executors/bounded-exec/progress.ts +37 -2
  128. package/src/executors/bounded-exec/reservation-connection.ts +221 -0
  129. package/src/executors/bounded-exec/run-cpu-pool.ts +2 -0
  130. package/src/executors/bounded-exec/runner-sizing.ts +13 -8
  131. package/src/executors/bounded-exec/schema.json +1 -1
  132. package/src/executors/bounded-exec/schema.ts +2 -2
  133. package/src/executors/bounded-exec/suite-minimum.ts +81 -0
  134. package/src/executors/bounded-exec/test-result-writer.ts +3 -0
  135. package/src/executors/bounded-exec/test-results.ts +5 -0
  136. package/src/executors/bounded-exec/verdict.ts +39 -6
  137. package/src/executors/cargo-zigbuild/executor.ts +30 -19
  138. package/src/index.ts +112 -78
  139. package/src/managed-files/ci-workflow.ts +13 -17
  140. package/src/managed-files/files.ts +3 -3
  141. package/src/workspace-config-policy.ts +161 -43
  142. package/test-timings.json +157 -147
  143. package/managed/raw/patches/ttsc@0.36.3.patch +0 -1660
package/dist/index.js CHANGED
@@ -65,6 +65,13 @@ const WORKSPACE_TSCONFIG_BASE_INPUT = '{workspaceRoot}/tsconfig.base.json';
65
65
  */
66
66
  const TYPECHECK_COMPILER_ENV = 'SMOO_TYPECHECK_TSC';
67
67
  const TYPECHECK_COMPILER_INPUT = { env: TYPECHECK_COMPILER_ENV };
68
+ /**
69
+ * The named input a project defines as the compiler identity of its inferred `typecheck`: {@link TYPECHECK_COMPILER_INPUT}
70
+ * where that target runs the native compiler, undefined where it runs ttsc, whose compiler the workspace keys, or where
71
+ * a declared `typecheck` replaces the inferred command. A workspace `typecheck` default that replaces the inferred
72
+ * inputs names it to key exactly the compiler its command runs, and defines it empty in `nx.json` for the rest.
73
+ */
74
+ const TYPECHECK_COMPILER_NAMED_INPUT = 'typecheckCompiler';
68
75
  function typecheckCommand(args) {
69
76
  return `"\${${TYPECHECK_COMPILER_ENV}:?is unset, enter the devenv shell (devenv.smoo.nix builds the typecheck compiler)}" ${args}`;
70
77
  }
@@ -736,6 +743,16 @@ function nextestHelperInputs(nativeTools) {
736
743
  ? [{ dependentTasksOutputFiles: `**/dist/bin/${nativeTools.platform}/${NEXTEST_HELPER_BIN}`, transitive: false }]
737
744
  : [];
738
745
  }
746
+ /**
747
+ * The record writer's bytes, for a target that runs it after its build, where this workspace builds it: the writer
748
+ * decides the `.build-inputs.json` the target's outputs hold, so a change to what a record states re-keys the target
749
+ * and no cache hit restores a record in the old form. An installed writer is its package's, keyed as the package.
750
+ */
751
+ function buildInputsToolInputs(nativeTools) {
752
+ return nativeTools !== null && nativeToolDependsOn(nativeTools, 'build-inputs').length > 0
753
+ ? [{ dependentTasksOutputFiles: `**/dist/bin/${nativeTools.platform}/smoo-nx-build-inputs`, transitive: false }]
754
+ : [];
755
+ }
739
756
  /**
740
757
  * One foreign triple's test archive, and the target that EXECUTES it.
741
758
  *
@@ -2065,30 +2082,28 @@ async function createProjectTargets(packageJsonPath, workspaceRoot, hostPlatform
2065
2082
  ];
2066
2083
  }
2067
2084
  }
2068
- // bounded-exec's admission observer loads cowshed's process-lineage entry, and through it the addon, only while a
2069
- // Cargo leaf waits for mbx admission (specs/cowshed/11_shell.md, "Cargo test-runner boundaries"; mbx-queue.ts). Such
2070
- // a target runs after the local producers so the observer finds them. Its reading only decides whether that wait is
2071
- // credited against the idle bound, so the producers' bytes key no target (README, "Bounded exec key"): a command that
2072
- // reads them keys them itself. A command named in either the declaration or the inference counts.
2073
- // Declarations retain these prerequisites with Nx's ordinary "..." merge token.
2074
- // The canonical release-check instead judges prebuilt shipping artifacts and must remain dependency-free.
2075
- const observerProducers = [...nativeToolDependsOn(nativeTools, 'cowshed'), ...lineageProducer];
2076
- if (observerProducers.length > 0) {
2085
+ // The Darwin Node idle clock and the Cargo admission observer both load the local cowshed addon. They can fail
2086
+ // a run but do not change a passing command, so none keys its bytes (README, "Bounded exec key"). Declarations
2087
+ // retain these prerequisites with Nx's ordinary "..." merge token. The wall-only release-check judges already
2088
+ // built shipping artifacts and remains dependency-free.
2089
+ const addonProducers = [...nativeToolDependsOn(nativeTools, 'cowshed'), ...lineageProducer];
2090
+ if (addonProducers.length > 0) {
2077
2091
  for (const name of new Set([...Object.keys(targets), ...Object.keys(declaredTargets)])) {
2078
2092
  const declared = declaredTargets[name];
2079
2093
  const executor = isRecord(declared) && declared.executor !== undefined ? declared.executor : targets[name]?.executor;
2080
2094
  if (executor !== '@smoothbricks/nx-plugin:bounded-exec' || name === 'release-check')
2081
2095
  continue;
2082
- // Nx discards an incompatible executor's inferred configuration; only the observer prerequisites belong below it.
2083
- if (targets[name]?.executor !== undefined && targets[name]?.executor !== executor) {
2084
- targets[name] = {};
2085
- }
2086
2096
  const runs = [...targetOptionSets(declared), ...targetOptionSets(targets[name])];
2087
- if (!runs.some((options) => runsAsCargoLeaf(boundedCommandLine(options) ?? '')))
2097
+ const needsAddon = runs.some((options) => runsAsCargoLeaf(boundedCommandLine(options) ?? '') ||
2098
+ (hostPlatform?.targetFamily === 'macos' && typeof options.idleTimeoutMs === 'number'));
2099
+ if (!needsAddon)
2088
2100
  continue;
2101
+ // Nx discards an incompatible executor's inferred configuration; only the runtime prerequisites belong below it.
2102
+ if (targets[name]?.executor !== undefined && targets[name]?.executor !== executor)
2103
+ targets[name] = {};
2089
2104
  targets[name] ??= {};
2090
2105
  const target = targets[name];
2091
- target.dependsOn = [...(target.dependsOn ?? []), ...observerProducers];
2106
+ target.dependsOn = [...(target.dependsOn ?? []), ...addonProducers];
2092
2107
  }
2093
2108
  }
2094
2109
  // The package's addon loader reads napi-debug's dev-profile addon when NAPI_DEBUG_ADDON=1 (createNapiTestTarget), so
@@ -2155,6 +2170,20 @@ async function createProjectTargets(packageJsonPath, workspaceRoot, hostPlatform
2155
2170
  target.metadata = { ...target.metadata, smooTaskKind: kind };
2156
2171
  }
2157
2172
  }
2173
+ // The inferred typecheck's compiler, named only where its command is the one inferred here: a declared typecheck
2174
+ // that runs another command runs something this inference does not know. Nx keeps the inferred command under a
2175
+ // declaration that names the same executor and no command, and replaces it under any other executor, under a
2176
+ // top-level `command` (its run-commands shorthand) or under `options.command`/`options.commands`.
2177
+ const declaredTypecheck = declaredTargets.typecheck;
2178
+ const declaredTypecheckOptions = isRecord(declaredTypecheck) ? declaredTypecheck.options : undefined;
2179
+ const typecheckCompilerInputs = targets.typecheck === undefined ||
2180
+ (isRecord(declaredTypecheck) &&
2181
+ ((declaredTypecheck.executor !== undefined && declaredTypecheck.executor !== targets.typecheck.executor) ||
2182
+ declaredTypecheck.command !== undefined)) ||
2183
+ (isRecord(declaredTypecheckOptions) &&
2184
+ (declaredTypecheckOptions.command !== undefined || declaredTypecheckOptions.commands !== undefined))
2185
+ ? []
2186
+ : typecheck.inputs;
2158
2187
  // A declared target REPLACES the inferred input list, pin included, so a
2159
2188
  // repository that hand-writes `inputs` for a cargo target silently loses its
2160
2189
  // toolchain identity. Name the identity once here so such a declaration can
@@ -2166,6 +2195,7 @@ async function createProjectTargets(packageJsonPath, workspaceRoot, hostPlatform
2166
2195
  // task in the repository to serve projects that can never reference it.
2167
2196
  const namedInputs = {
2168
2197
  [BUN_LOCK_SCOPE_NAMED_INPUT]: [bunLockInput(projectRoot)],
2198
+ ...(typecheckCompilerInputs.length === 0 ? {} : { [TYPECHECK_COMPILER_NAMED_INPUT]: [...typecheckCompilerInputs] }),
2169
2199
  ...(versionless === null
2170
2200
  ? {}
2171
2201
  : {
@@ -2431,58 +2461,9 @@ function createNapiTargets(projectRoot, config, hostPlatform, nativeTools, repoR
2431
2461
  };
2432
2462
  // The task that builds the executable recordInputs runs, when this workspace builds it.
2433
2463
  const buildInputsTool = nativeToolDependsOn(nativeTools, 'build-inputs');
2434
- const hasHostPlatformTarget = config.targets.some((triple) => {
2435
- const convention = NAPI_TARGET_CONVENTIONS[triple];
2436
- return convention !== undefined && sameNapiPlatform(convention, hostPlatform);
2437
- });
2464
+ const recordedInputs = [...(cargoInputs ?? []), ...buildInputsToolInputs(nativeTools)];
2438
2465
  const targets = {};
2439
- // The addon the test suite loads. A plain dev build shares target/debug with
2440
- // cargo-test's dependency graph, so after the tests compile this is nearly
2441
- // free, where a `--target <triple>` platform build compiles the graph again
2442
- // under target/<triple>/. The output lives OUTSIDE dist/ because packages
2443
- // publish `files: ["dist"]` wholesale: an addon the test run wrote under
2444
- // dist/ would ship in place of the release build. native.ts resolves this
2445
- // directory only when the napi-test target sets NAPI_DEBUG_ADDON=1, so
2446
- // production loads never see it.
2447
- targets['napi-debug'] = {
2448
- executor: 'nx:run-commands',
2449
- metadata: CARGO_PRODUCER_METADATA,
2450
- cache: true,
2451
- dependsOn: ['^build'],
2452
- inputs: cargoInputs,
2453
- outputs: ['{projectRoot}/.cache/native-debug/'],
2454
- options: {
2455
- cwd: cargoCwd,
2456
- command: `${napiCommand} build --platform --no-js --dts ${config.binaryName}.napi.d.ts ${commonCommand} --output-dir ${outputDir('.cache/native-debug')}`,
2457
- },
2458
- };
2459
- if (!hasHostPlatformTarget) {
2460
- // The platform target for this host triple is the same compilation, so a
2461
- // second cargo-napi invocation only buys a duplicate dependency graph
2462
- // (a plain build and a `--target` build write different target/
2463
- // subdirectories); native.ts already resolves the identical
2464
- // platform-suffixed filename from <tree>/<platform-dir> after <tree>/host,
2465
- // in the one tree its package's source authority selects (.cache/native-dev
2466
- // in a checkout, dist/native installed).
2467
- const hostBuild = (profile) => `${napiCommand} build${CARGO_PROFILE_FLAG[profile]} --platform --no-js --dts ${config.binaryName}.napi.d.ts ${commonCommand} --output-dir ${runOutputDirectory}${recordInputs(null, profile, runOutputDirectory)}`;
2468
- const hostOutputs = nativeOutputPaths('host');
2469
- targets['cargo-napi'] = {
2470
- executor: 'nx:run-commands',
2471
- metadata: CARGO_PRODUCER_METADATA,
2472
- cache: true,
2473
- dependsOn: ['^build', ...buildInputsTool],
2474
- inputs: cargoInputs,
2475
- outputs: [`{projectRoot}/${OUTPUT_DIR_OPTION}/`],
2476
- options: {
2477
- cwd: cargoCwd,
2478
- command: hostBuild('dev'),
2479
- outputDir: hostOutputs.dev,
2480
- },
2481
- configurations: {
2482
- [RELEASE_CONFIGURATION]: { command: hostBuild('release'), outputDir: hostOutputs.release },
2483
- },
2484
- };
2485
- }
2466
+ const debugDirectory = '.cache/native-debug';
2486
2467
  for (const triple of config.targets) {
2487
2468
  const convention = NAPI_TARGET_CONVENTIONS[triple];
2488
2469
  if (!convention) {
@@ -2490,12 +2471,33 @@ function createNapiTargets(projectRoot, config, hostPlatform, nativeTools, repoR
2490
2471
  }
2491
2472
  const targetName = `napi-${convention.architecture}-${convention.targetFamily}`;
2492
2473
  const outputs = nativeOutputPaths(convention.outputName);
2474
+ const fileName = `${config.binaryName}.${convention.outputName}.node`;
2475
+ if (sameNapiPlatform(convention, hostPlatform)) {
2476
+ const source = `${outputs.dev}/${fileName}`;
2477
+ const destination = `${debugDirectory}/${fileName}`;
2478
+ const staging = `${destination}.partial`;
2479
+ targets['napi-debug'] = {
2480
+ executor: 'nx:run-commands',
2481
+ cache: true,
2482
+ // An empty configuration selects the producer's default instead of inheriting `production` from the run.
2483
+ dependsOn: [{ target: targetName, configuration: '' }],
2484
+ inputs: [
2485
+ { externalDependencies: [] },
2486
+ { dependentTasksOutputFiles: posix.join(projectRoot, source), transitive: false },
2487
+ ],
2488
+ outputs: [`{projectRoot}/${destination}`],
2489
+ options: {
2490
+ cwd: projectRoot,
2491
+ command: `mkdir -p ${debugDirectory} && cp ${source} ${staging} && mv -f ${staging} ${destination}`,
2492
+ },
2493
+ };
2494
+ }
2493
2495
  if (convention.targetFamily === 'linux') {
2494
2496
  // Every host builds a Linux addon the same way: devenv's zig through
2495
2497
  // cargo-zigbuild, glibc pinned by the triple suffix. The napi CLI cannot
2496
2498
  // carry that suffix (it looks for the artifact under
2497
2499
  // target/<triple>.2.17/), so the executor names the `.node` itself.
2498
- const nodeFile = (directory) => `{projectRoot}/${directory}/${config.binaryName}.${convention.outputName}.node`;
2500
+ const nodeFile = (directory) => `{projectRoot}/${directory}/${fileName}`;
2499
2501
  targets[targetName] = {
2500
2502
  executor: '@smoothbricks/nx-plugin:cargo-zigbuild',
2501
2503
  metadata: CARGO_PRODUCER_METADATA,
@@ -2523,7 +2525,7 @@ function createNapiTargets(projectRoot, config, hostPlatform, nativeTools, repoR
2523
2525
  metadata: CARGO_PRODUCER_METADATA,
2524
2526
  cache: true,
2525
2527
  ...(buildInputsTool.length > 0 ? { dependsOn: buildInputsTool } : {}),
2526
- inputs: cargoInputs,
2528
+ inputs: recordedInputs,
2527
2529
  outputs: [`{projectRoot}/${OUTPUT_DIR_OPTION}/`],
2528
2530
  options: {
2529
2531
  cwd: cargoCwd,
@@ -2535,6 +2537,39 @@ function createNapiTargets(projectRoot, config, hostPlatform, nativeTools, repoR
2535
2537
  },
2536
2538
  };
2537
2539
  }
2540
+ if (!targets['napi-debug']) {
2541
+ // No declared platform target serves this host: retain the direct builds for both checkout consumers.
2542
+ targets['napi-debug'] = {
2543
+ executor: 'nx:run-commands',
2544
+ metadata: CARGO_PRODUCER_METADATA,
2545
+ cache: true,
2546
+ dependsOn: ['^build'],
2547
+ inputs: cargoInputs,
2548
+ outputs: [`{projectRoot}/${debugDirectory}/`],
2549
+ options: {
2550
+ cwd: cargoCwd,
2551
+ command: `${napiCommand} build --platform --no-js --dts ${config.binaryName}.napi.d.ts ${commonCommand} --output-dir ${outputDir(debugDirectory)}`,
2552
+ },
2553
+ };
2554
+ const hostBuild = (profile) => `${napiCommand} build${CARGO_PROFILE_FLAG[profile]} --platform --no-js --dts ${config.binaryName}.napi.d.ts ${commonCommand} --output-dir ${runOutputDirectory}${recordInputs(null, profile, runOutputDirectory)}`;
2555
+ const hostOutputs = nativeOutputPaths('host');
2556
+ targets['cargo-napi'] = {
2557
+ executor: 'nx:run-commands',
2558
+ metadata: CARGO_PRODUCER_METADATA,
2559
+ cache: true,
2560
+ dependsOn: ['^build', ...buildInputsTool],
2561
+ inputs: recordedInputs,
2562
+ outputs: [`{projectRoot}/${OUTPUT_DIR_OPTION}/`],
2563
+ options: {
2564
+ cwd: cargoCwd,
2565
+ command: hostBuild('dev'),
2566
+ outputDir: hostOutputs.dev,
2567
+ },
2568
+ configurations: {
2569
+ [RELEASE_CONFIGURATION]: { command: hostBuild('release'), outputDir: hostOutputs.release },
2570
+ },
2571
+ };
2572
+ }
2538
2573
  return targets;
2539
2574
  }
2540
2575
  /** A target's own options and each of its configurations' options, as one declaration or inference states them. */
@@ -2563,11 +2598,8 @@ function createNapiTestTarget(projectRoot, hasDedicatedBunfig) {
2563
2598
  return {
2564
2599
  executor: '@smoothbricks/nx-plugin:bounded-exec',
2565
2600
  cache: true,
2566
- // Deliberately NOT `build`: the aggregate drags the host-platform binaries
2567
- // onto the test critical path, and a `--target <triple>` platform build
2568
- // compiles the whole graph again. tsc-js supplies dist/ts for the suite's
2569
- // own imports; napi-debug supplies the addon from the graph cargo-test
2570
- // already built.
2601
+ // Name only what the suite reads, not `build` with its unrelated host binaries.
2602
+ // tsc-js supplies dist/ts; napi-debug supplies the development addon.
2571
2603
  dependsOn: ['cargo-test', 'napi-debug', 'tsc-js', '^build'],
2572
2604
  options: {
2573
2605
  // cwd is src/, not the package root: `bun test <arg>` treats the arg as a
@@ -64,7 +64,10 @@ export interface CiWorkflowDefinitionOptions extends DeployStepSecretConfig {
64
64
  deploy: boolean;
65
65
  browserTests: boolean;
66
66
  e2eDeployment: boolean;
67
- /** The first entry is the branch whose pushes deploy the staging stage. */
67
+ /**
68
+ * The first entry is the branch whose pushes queue behind a running CI run instead of canceling it, and, with
69
+ * deploy, deploy the staging stage.
70
+ */
68
71
  pushBranches: NonEmptyArray<string>;
69
72
  /** Default ubuntu-latest when omitted. */
70
73
  runsOn?: string | string[];
@@ -1 +1 @@
1
- {"version":3,"file":"ci-workflow.d.ts","sourceRoot":"","sources":["../../src/managed-files/ci-workflow.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAEV,aAAa,EACb,6BAA6B,EAE7B,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,6BAA6B,EAC7B,2BAA2B,EAE5B,MAAM,0BAA0B,CAAC;AAGlC,eAAO,MAAM,gBAAgB,EAAE,QAAQ,CACrC,MAAM,CACJ,UAAU,GAAG,WAAW,GA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CAkBV"}
@@ -129,20 +129,12 @@ permissions:
129
129
  ${options.deploy ? ' deployments: write\n' : ''} statuses: write
130
130
 
131
131
  concurrency:
132
- ${options.deploy
133
- ? ` # One in-flight run per pull request, and per ref for pushes. Pushes to the
134
- # staging push branch queue behind a running workflow instead of canceling it,
135
- # so a newer push never cancels the deploy job mid-flight. Pull requests and
136
- # other branches keep canceling superseded runs.
132
+ # One in-flight run per pull request, and per ref for pushes. Pushes to the first
133
+ # push branch queue behind a running workflow instead of canceling it, so every
134
+ # push there ends in a finished run and a newer push never cancels a deploy job
135
+ # mid-flight. Pull requests and other branches keep canceling superseded runs.
137
136
  group: ${CI_CONCURRENCY_GROUP}
138
- cancel-in-progress: \${{ github.ref != ${stagingRefLiteral(options)} }}`
139
- : ` # This workflow validates and never deploys, so there is no in-flight
140
- # deployment for a newer push to protect: every pull request, and every ref
141
- # for pushes, cancels its superseded runs. Queuing them instead serializes
142
- # the staging branch, and a burst of pushes then reports the newest commit
143
- # one full run per queued push late.
144
- group: ${CI_CONCURRENCY_GROUP}
145
- cancel-in-progress: true`}
137
+ cancel-in-progress: \${{ github.ref != ${stagingRefLiteral(options)} }}
146
138
 
147
139
  defaults:
148
140
  run:
@@ -919,7 +911,10 @@ export const SAME_REPO_GATE_FOLDED = [
919
911
  " ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository",
920
912
  ' }}',
921
913
  ];
922
- /** The first push branch is the one whose pushes deploy the staging stage. */
914
+ /**
915
+ * The first push branch is the one whose pushes queue behind a running CI run, and, with deploy, deploy the staging
916
+ * stage.
917
+ */
923
918
  function stagingPushBranch(options) {
924
919
  return options.pushBranches[0];
925
920
  }
@@ -44,9 +44,9 @@ export interface ManagedFileContext {
44
44
  }
45
45
  /** Temporary upstream compiler repairs distributed to smoo-managed Bun workspaces. */
46
46
  export declare const managedTtscPatch: {
47
- readonly version: '0.36.3';
48
- readonly key: 'ttsc@0.36.3';
49
- readonly path: 'patches/ttsc@0.36.3.patch';
47
+ readonly version: '0.37.1';
48
+ readonly key: 'ttsc@0.37.1';
49
+ readonly path: 'patches/ttsc@0.37.1.patch';
50
50
  };
51
51
  /** Maintained Nx 24.0.3 repairs, applied as an ordinary Bun patchedDependency over the registry release. */
52
52
  export declare const managedNxPatch: {
@@ -7,9 +7,9 @@ import { renderPrPreviewCleanupWorkflowYaml, renderPrStageSweepWorkflowYaml } fr
7
7
  import { renderPublishWorkflowYaml } from './publish-workflow.js';
8
8
  /** Temporary upstream compiler repairs distributed to smoo-managed Bun workspaces. */
9
9
  export const managedTtscPatch = {
10
- version: '0.36.3',
11
- key: 'ttsc@0.36.3',
12
- path: 'patches/ttsc@0.36.3.patch',
10
+ version: '0.37.1',
11
+ key: 'ttsc@0.37.1',
12
+ path: 'patches/ttsc@0.37.1.patch',
13
13
  };
14
14
  /** Maintained Nx 24.0.3 repairs, applied as an ordinary Bun patchedDependency over the registry release. */
15
15
  export const managedNxPatch = {
@@ -1,3 +1,4 @@
1
+ var __typia_transform_pattern_1;
1
2
  import { createHash } from 'node:crypto';
2
3
  import { mkdir, rename, writeFile } from 'node:fs/promises';
3
4
  import { join } from 'node:path';
@@ -6,7 +7,7 @@ import typia from 'typia';
6
7
  /** A controller-selected hint namespace, not publication authority or a backend credential. */
7
8
  export const NX_TASK_RECEIPT_ENV = 'COWSHED_NX_TASK_RECEIPT_ID';
8
9
  const isRequestId = (() => {
9
- return input => "string" === typeof input && RegExp("^[0-9a-f]{32}$").test(input);
10
+ return input => "string" === typeof input && (__typia_transform_pattern_1 ??= RegExp("^[0-9a-f]{32}$")).test(input);
10
11
  })();
11
12
  const WRITTEN = { ok: true };
12
13
  function requestId() {
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-config-policy.d.ts","sourceRoot":"","sources":["../src/workspace-config-policy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAQrD,eAAO,MAAM,4BAA4B,0CAA0C,CAAC;AAGpF,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