@smoothbricks/nx-plugin 0.4.26 → 0.4.27
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 +994 -117
- package/dist/bin/smoo-nx-bound-failures.d.ts +3 -0
- package/dist/bin/smoo-nx-bound-failures.d.ts.map +1 -0
- package/dist/bin/smoo-nx-bound-failures.js +31 -0
- package/dist/bin/smoo-nx-cargo-hash.js +28 -3
- package/dist/bin/smoo-nx-exec.js +15 -73
- package/dist/bin/smoo-nx-failures.d.ts +3 -0
- package/dist/bin/smoo-nx-failures.d.ts.map +1 -0
- package/dist/bin/smoo-nx-failures.js +3 -0
- package/dist/bin/smoo-nx-nextest-extract.js +3 -2
- package/dist/bin/smoo-nx-test-walks.d.ts +3 -0
- package/dist/bin/smoo-nx-test-walks.d.ts.map +1 -0
- package/dist/bin/smoo-nx-test-walks.js +34 -0
- package/dist/bounded-test-policy.d.ts +7 -1
- package/dist/bounded-test-policy.d.ts.map +1 -1
- package/dist/bounded-test-policy.js +101 -40
- package/dist/build-state-output-policy.d.ts +25 -0
- package/dist/build-state-output-policy.d.ts.map +1 -0
- package/dist/build-state-output-policy.js +64 -0
- package/dist/cargo-closure-input.d.ts +3 -2
- package/dist/cargo-closure-input.d.ts.map +1 -1
- package/dist/cargo-closure-input.js +16 -15
- package/dist/cargo-dev-profile.d.ts +37 -0
- package/dist/cargo-dev-profile.d.ts.map +1 -0
- package/dist/cargo-dev-profile.js +108 -0
- package/dist/cargo-source-hash.d.ts +43 -6
- package/dist/cargo-source-hash.d.ts.map +1 -1
- package/dist/cargo-source-hash.js +309 -73
- package/dist/cargo-toolchain-policy.d.ts +4 -0
- package/dist/cargo-toolchain-policy.d.ts.map +1 -1
- package/dist/cargo-toolchain-policy.js +5 -0
- package/dist/cargo-workspace.d.ts +101 -5
- package/dist/cargo-workspace.d.ts.map +1 -1
- package/dist/cargo-workspace.js +291 -10
- package/dist/cross-check-policy.d.ts +21 -3
- package/dist/cross-check-policy.d.ts.map +1 -1
- package/dist/cross-check-policy.js +24 -6
- package/dist/disk-command-policy.d.ts +7 -0
- package/dist/disk-command-policy.d.ts.map +1 -0
- package/dist/disk-command-policy.js +98 -0
- package/dist/ensure-built-receipt.d.ts +25 -0
- package/dist/ensure-built-receipt.d.ts.map +1 -0
- package/dist/ensure-built-receipt.js +261 -0
- package/dist/ensure-built-witness.d.ts +57 -0
- package/dist/ensure-built-witness.d.ts.map +1 -0
- package/dist/ensure-built-witness.js +412 -0
- package/dist/ensure-built.d.ts +207 -12
- package/dist/ensure-built.d.ts.map +1 -1
- package/dist/ensure-built.js +576 -202
- package/dist/eslint-file-set.d.ts +7 -0
- package/dist/eslint-file-set.d.ts.map +1 -0
- package/dist/eslint-file-set.js +12 -0
- package/dist/executors/bounded-exec/cpu-pool.d.ts +63 -0
- package/dist/executors/bounded-exec/cpu-pool.d.ts.map +1 -0
- package/dist/executors/bounded-exec/cpu-pool.js +379 -0
- package/dist/executors/bounded-exec/cpu-tokens.d.ts +82 -0
- package/dist/executors/bounded-exec/cpu-tokens.d.ts.map +1 -0
- package/dist/executors/bounded-exec/cpu-tokens.js +114 -0
- package/dist/executors/bounded-exec/disk-lease.d.ts +61 -0
- package/dist/executors/bounded-exec/disk-lease.d.ts.map +1 -0
- package/dist/executors/bounded-exec/disk-lease.js +91 -0
- package/dist/executors/bounded-exec/executor.d.ts +45 -2
- package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
- package/dist/executors/bounded-exec/executor.js +447 -52
- package/dist/executors/bounded-exec/gateway-lease.d.ts +52 -0
- package/dist/executors/bounded-exec/gateway-lease.d.ts.map +1 -0
- package/dist/executors/bounded-exec/gateway-lease.js +143 -0
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts +35 -0
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts.map +1 -0
- package/dist/executors/bounded-exec/hang-diagnostics.js +231 -0
- package/dist/executors/bounded-exec/progress.d.ts +35 -0
- package/dist/executors/bounded-exec/progress.d.ts.map +1 -0
- package/dist/executors/bounded-exec/progress.js +79 -0
- package/dist/executors/bounded-exec/ram-temp-fixtures.d.ts +3 -0
- package/dist/executors/bounded-exec/ram-temp-fixtures.d.ts.map +1 -0
- package/dist/executors/bounded-exec/ram-temp-fixtures.js +12 -0
- package/dist/executors/bounded-exec/ram-temp-held.d.ts +91 -0
- package/dist/executors/bounded-exec/ram-temp-held.d.ts.map +1 -0
- package/dist/executors/bounded-exec/ram-temp-held.js +152 -0
- package/dist/executors/bounded-exec/ram-temp.d.ts +223 -0
- package/dist/executors/bounded-exec/ram-temp.d.ts.map +1 -0
- package/dist/executors/bounded-exec/ram-temp.js +1528 -0
- package/dist/executors/bounded-exec/schema.d.ts +29 -11
- package/dist/executors/bounded-exec/schema.d.ts.map +1 -1
- package/dist/executors/bounded-exec/verdict.d.ts +162 -0
- package/dist/executors/bounded-exec/verdict.d.ts.map +1 -0
- package/dist/executors/bounded-exec/verdict.js +318 -0
- package/dist/executors/shard-timings/executor.d.ts +14 -0
- package/dist/executors/shard-timings/executor.d.ts.map +1 -0
- package/dist/executors/shard-timings/executor.js +25 -0
- package/dist/executors/shard-timings/schema.d.ts +4 -0
- package/dist/executors/shard-timings/schema.d.ts.map +1 -0
- package/dist/executors/shard-timings/schema.js +1 -0
- package/dist/failure-summary.d.ts +5 -0
- package/dist/failure-summary.d.ts.map +1 -0
- package/dist/failure-summary.js +118 -0
- package/dist/generators/create-package/generator.d.ts.map +1 -1
- package/dist/generators/create-package/generator.js +6 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +370 -138
- package/dist/managed-files/ci-workflow.d.ts +13 -0
- package/dist/managed-files/ci-workflow.d.ts.map +1 -1
- package/dist/managed-files/ci-workflow.js +44 -13
- package/dist/managed-files/files.d.ts +7 -1
- package/dist/managed-files/files.d.ts.map +1 -1
- package/dist/managed-files/files.js +62 -8
- package/dist/managed-files/json-edit.d.ts +21 -0
- package/dist/managed-files/json-edit.d.ts.map +1 -0
- package/dist/managed-files/json-edit.js +295 -0
- package/dist/managed-files/managed-format.d.ts +33 -1
- package/dist/managed-files/managed-format.d.ts.map +1 -1
- package/dist/managed-files/managed-format.js +82 -2
- package/dist/managed-files/pr-preview-cleanup-workflow.d.ts +7 -0
- package/dist/managed-files/pr-preview-cleanup-workflow.d.ts.map +1 -1
- package/dist/managed-files/pr-preview-cleanup-workflow.js +68 -4
- package/dist/managed-files/publish-workflow.d.ts.map +1 -1
- package/dist/managed-files/publish-workflow.js +231 -48
- package/dist/managed-files/tree.d.ts +5 -0
- package/dist/managed-files/tree.d.ts.map +1 -1
- package/dist/managed-files/tree.js +5 -3
- package/dist/manifest-hash.d.ts.map +1 -1
- package/dist/manifest-hash.js +2 -5
- package/dist/nextest-code-bound.d.ts +62 -0
- package/dist/nextest-code-bound.d.ts.map +1 -0
- package/dist/nextest-code-bound.js +154 -0
- package/dist/nextest-extraction.d.ts +24 -8
- package/dist/nextest-extraction.d.ts.map +1 -1
- package/dist/nextest-extraction.js +42 -7
- package/dist/package-target-policy.d.ts.map +1 -1
- package/dist/package-target-policy.js +3 -5
- package/dist/release-config-policy.d.ts.map +1 -1
- package/dist/release-config-policy.js +3 -5
- package/dist/runtime-input.d.ts +14 -0
- package/dist/runtime-input.d.ts.map +1 -0
- package/dist/runtime-input.js +15 -0
- package/dist/rust-tokens.d.ts +11 -0
- package/dist/rust-tokens.d.ts.map +1 -0
- package/dist/rust-tokens.js +81 -0
- package/dist/task-results.d.ts +6 -0
- package/dist/task-results.d.ts.map +1 -0
- package/dist/task-results.js +61 -0
- package/dist/test-program.d.ts +54 -0
- package/dist/test-program.d.ts.map +1 -0
- package/dist/test-program.js +292 -0
- package/dist/test-timings.d.ts +71 -0
- package/dist/test-timings.d.ts.map +1 -0
- package/dist/test-timings.js +393 -0
- package/dist/test-walk-policy.d.ts +103 -0
- package/dist/test-walk-policy.d.ts.map +1 -0
- package/dist/test-walk-policy.js +657 -0
- package/dist/testing.d.ts +177 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +824 -0
- package/dist/type-guards.d.ts +3 -0
- package/dist/type-guards.d.ts.map +1 -0
- package/dist/type-guards.js +4 -0
- package/dist/typecheck-test-policy.d.ts +8 -5
- package/dist/typecheck-test-policy.d.ts.map +1 -1
- package/dist/typecheck-test-policy.js +113 -100
- package/dist/workspace-config-policy.d.ts +8 -0
- package/dist/workspace-config-policy.d.ts.map +1 -1
- package/dist/workspace-config-policy.js +175 -63
- package/dist/workspace-index.d.ts +12 -0
- package/dist/workspace-index.d.ts.map +1 -0
- package/dist/workspace-index.js +17 -0
- package/dist/workspace-manifest.d.ts +37 -0
- package/dist/workspace-manifest.d.ts.map +1 -1
- package/executors.json +5 -0
- package/loader.js +13 -11
- package/managed/raw/envrc +33 -67
- package/managed/raw/git-format-staged.yml +30 -35
- package/managed/raw/patches/nx@23.2.1.patch +3484 -0
- package/managed/raw/tooling/direnv/apple-developer.sh +83 -0
- package/managed/raw/tooling/direnv/developer-links.ts +569 -11
- package/managed/raw/tooling/direnv/devenv.smoo.nix +314 -93
- package/managed/raw/tooling/direnv/github-actions-bootstrap.sh +20 -11
- package/managed/raw/tooling/direnv/linked-snapshots.ts +845 -0
- package/managed/raw/tooling/direnv/nx-socket-dir.sh +82 -0
- package/managed/raw/tooling/direnv/repo-path +14 -2
- package/managed/raw/tooling/direnv/setup-environment.ts +962 -148
- package/managed/raw/tooling/direnv/toolchain-stamp.ts +45 -3
- package/managed/raw/tooling/direnv/ttsc-env.sh +39 -0
- package/managed/raw/tooling/git-hooks/commit-msg.sh +5 -6
- package/managed/raw/tooling/git-hooks/pre-commit.sh +7 -6
- package/managed/raw/tooling/git-hooks/pre-push.sh +20 -15
- package/managed/templates/github/actions/cache-nix-devenv/action.yml +6 -6
- package/managed/templates/github/actions/cache-node-modules/action.yml +6 -4
- package/managed/templates/github/actions/cache-nx/action.yml +1 -1
- package/managed/templates/github/actions/cache-ttsc-plugins/action.yml +1 -1
- package/managed/templates/github/actions/forgejo-artifact.cjs +99 -0
- package/managed/templates/github/actions/forgejo-download-artifact/action.yml +49 -0
- package/managed/templates/github/actions/forgejo-download-artifact/index.cjs +7 -0
- package/managed/templates/github/actions/forgejo-upload-artifact/action.yml +65 -0
- package/managed/templates/github/actions/forgejo-upload-artifact/index.cjs +7 -0
- package/managed/templates/github/actions/setup-devenv/action.yml +21 -3
- package/managed/templates/github/workflows/managed-files.yml +1 -2
- package/nextest.toml +8 -41
- package/package.json +74 -12
- package/runtime-input.sh +81 -0
- package/src/__tests__/counted-cargo.ts +33 -14
- package/src/__tests__/fixture-nx-env.ts +111 -46
- package/src/__tests__/progress-clock.ts +43 -0
- package/src/__tests__/runtime-input.ts +23 -0
- package/src/bin/smoo-nx-bound-failures.test.ts +127 -0
- package/src/bin/smoo-nx-bound-failures.ts +33 -0
- package/src/bin/smoo-nx-cargo-hash.ts +28 -3
- package/src/bin/smoo-nx-exec.ts +16 -74
- package/src/bin/smoo-nx-failures.ts +4 -0
- package/src/bin/smoo-nx-nextest-extract.ts +3 -2
- package/src/bin/smoo-nx-test-walks.ts +42 -0
- package/src/bounded-test-policy.test.ts +268 -21
- package/src/bounded-test-policy.ts +114 -42
- package/src/build-state-output-policy.test.ts +115 -0
- package/src/build-state-output-policy.ts +90 -0
- package/src/bun-bootstrap.test.ts +57 -3
- package/src/bun-file-packages.test.ts +47 -0
- package/src/cargo-closure-input.test.ts +138 -66
- package/src/cargo-closure-input.ts +17 -15
- package/src/cargo-dev-profile.ts +137 -0
- package/src/cargo-resolve-cache.test.ts +70 -1
- package/src/cargo-source-hash.test.ts +193 -97
- package/src/cargo-source-hash.ts +345 -68
- package/src/cargo-toolchain-policy.ts +6 -0
- package/src/cargo-workspace.test.ts +320 -0
- package/src/cargo-workspace.ts +336 -10
- package/src/cross-check-policy.test.ts +59 -1
- package/src/cross-check-policy.ts +25 -6
- package/src/disk-command-policy.test.ts +61 -0
- package/src/disk-command-policy.ts +107 -0
- package/src/ensure-built-receipt.test.ts +184 -0
- package/src/ensure-built-receipt.ts +263 -0
- package/src/ensure-built-witness.test.ts +344 -0
- package/src/ensure-built-witness.ts +252 -0
- package/src/ensure-built.test.ts +1036 -578
- package/src/ensure-built.ts +820 -224
- package/src/eslint-file-set.ts +9 -0
- package/src/executors/bounded-exec/cpu-pool.test.ts +454 -0
- package/src/executors/bounded-exec/cpu-pool.ts +417 -0
- package/src/executors/bounded-exec/cpu-tokens.test.ts +269 -0
- package/src/executors/bounded-exec/cpu-tokens.ts +177 -0
- package/src/executors/bounded-exec/disk-lease.test.ts +185 -0
- package/src/executors/bounded-exec/disk-lease.ts +139 -0
- package/src/executors/bounded-exec/executor-host.test.ts +778 -0
- package/src/executors/bounded-exec/executor.test.ts +1116 -63
- package/src/executors/bounded-exec/executor.ts +565 -67
- package/src/executors/bounded-exec/gateway-lease.ts +176 -0
- package/src/executors/bounded-exec/hang-diagnostics.test.ts +285 -0
- package/src/executors/bounded-exec/hang-diagnostics.ts +283 -0
- package/src/executors/bounded-exec/progress.test.ts +79 -0
- package/src/executors/bounded-exec/progress.ts +118 -0
- package/src/executors/bounded-exec/ram-temp-fixtures.ts +12 -0
- package/src/executors/bounded-exec/ram-temp-held.test.ts +264 -0
- package/src/executors/bounded-exec/ram-temp-held.ts +242 -0
- package/src/executors/bounded-exec/ram-temp-host.test.ts +605 -0
- package/src/executors/bounded-exec/ram-temp.test.ts +674 -0
- package/src/executors/bounded-exec/ram-temp.ts +1918 -0
- package/src/executors/bounded-exec/schema.json +11 -5
- package/src/executors/bounded-exec/schema.ts +27 -11
- package/src/executors/bounded-exec/verdict.test.ts +440 -0
- package/src/executors/bounded-exec/verdict.ts +433 -0
- package/src/executors/shard-timings/executor.ts +36 -0
- package/src/executors/shard-timings/schema.json +21 -0
- package/src/executors/shard-timings/schema.ts +4 -0
- package/src/failure-summary.ts +119 -0
- package/src/generators/bounded-test-targets/generator.test.ts +4 -4
- package/src/generators/bun-test-tracing/generator.test.ts +2 -2
- package/src/generators/create-package/generator.test.ts +6 -0
- package/src/generators/create-package/generator.ts +6 -2
- package/src/host-controller-wiring.test.ts +31 -0
- package/src/index.test.ts +909 -295
- package/src/index.ts +441 -143
- package/src/linked-snapshots.nx.test.ts +172 -0
- package/src/managed-files/ci-workflow.ts +54 -13
- package/src/managed-files/files.ts +65 -9
- package/src/managed-files/forgejo-artifact.test.ts +395 -0
- package/src/managed-files/generator.test.ts +60 -1
- package/src/managed-files/json-edit.test.ts +216 -0
- package/src/managed-files/json-edit.ts +290 -0
- package/src/managed-files/managed-format-json.test.ts +308 -0
- package/src/managed-files/managed-format.ts +90 -2
- package/src/managed-files/pr-preview-cleanup-workflow.ts +69 -3
- package/src/managed-files/publish-workflow.ts +285 -67
- package/src/managed-files/repo-path.test.ts +129 -0
- package/src/managed-files/trace-db-artifact.test.ts +7 -0
- package/src/managed-files/tree.ts +11 -3
- package/src/manifest-hash.ts +2 -6
- package/src/nextest-code-bound.test.ts +155 -0
- package/src/nextest-code-bound.ts +195 -0
- package/src/nextest-extraction.test.ts +37 -5
- package/src/nextest-extraction.ts +51 -9
- package/src/nextest-partitions.test.ts +427 -82
- package/src/nx-cache-bound.test.ts +5 -10
- package/src/nx-cache-restore-mtime.test.ts +170 -0
- package/src/nx-daemon-claim.test.ts +277 -0
- package/src/nx-daemon-idle-cpu.test.ts +81 -0
- package/src/nx-daemon-idle-policy.test.ts +51 -0
- package/src/nx-daemon-ignore-files.test.ts +210 -0
- package/src/nx-daemon-root-normalization.test.ts +105 -0
- package/src/nx-daemon-validity.test.ts +925 -0
- package/src/nx-dot-input-policy.test.ts +353 -0
- package/src/nx-failure-life-cycles.test.ts +207 -0
- package/src/nx-files-archive-racy.test.ts +97 -0
- package/src/nx-foreign-workspace-env.test.ts +329 -0
- package/src/nx-incomplete-run-summary.test.ts +70 -0
- package/src/nx-plugin-load-errors.test.ts +120 -0
- package/src/nx-project-resolution-cache.test.ts +176 -0
- package/src/nx-raw-inputs.test.ts +166 -0
- package/src/nx-resident-graph-workers.test.ts +7 -16
- package/src/nx-run-information.test.ts +118 -0
- package/src/nx-skipped-task-exit.test.ts +180 -0
- package/src/nx-state-location.test.ts +63 -0
- package/src/nx-store-resolution.test.ts +26 -25
- package/src/nx-task-graph-cycles.test.ts +148 -0
- package/src/nx-task-output-lease.test.ts +414 -0
- package/src/nx-use-local.test.ts +103 -0
- package/src/package-target-policy.ts +3 -6
- package/src/release-config-policy.ts +3 -6
- package/src/runtime-input.test.ts +215 -0
- package/src/runtime-input.ts +17 -0
- package/src/rust-tokens.ts +78 -0
- package/src/serial-group-wiring.test.ts +326 -0
- package/src/task-history-namespace.test.ts +87 -89
- package/src/task-results.test.ts +226 -0
- package/src/task-results.ts +75 -0
- package/src/test-program.test.ts +303 -0
- package/src/test-program.ts +341 -0
- package/src/test-timings.test.ts +240 -0
- package/src/test-timings.ts +311 -0
- package/src/test-walk-policy.test.ts +585 -0
- package/src/test-walk-policy.ts +731 -0
- package/src/testing.test.ts +509 -0
- package/src/testing.ts +922 -0
- package/src/type-guards.ts +4 -0
- package/src/typecheck-test-policy.test.ts +496 -11
- package/src/typecheck-test-policy.ts +137 -103
- package/src/workspace-config-policy.test.ts +212 -13
- package/src/workspace-config-policy.ts +101 -73
- package/src/workspace-index.ts +18 -0
- package/src/workspace-manifest.ts +41 -0
- package/test-timings.json +85 -30
- package/managed/raw/tooling/direnv/inherited-devenv.ts +0 -665
- package/managed/raw/tooling/direnv/shared-caches.sh +0 -53
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { posix } from 'node:path';
|
|
2
|
+
import { isNonSourceDirectory } from './source-directories.js';
|
|
3
|
+
const TYPESCRIPT_SOURCE = /\.(?:[cm]?ts|tsx)$/;
|
|
4
|
+
const TEST_FILE = /\.(?:test|spec)\.tsx?$/;
|
|
5
|
+
const TSX_TEST_FILE = /\.(?:test|spec)\.tsx$/;
|
|
6
|
+
const IN_TESTS_DIRECTORY = /(?:^|\/)__tests__\/.*\.tsx?$/;
|
|
7
|
+
/** An include that names an extension the TypeScript-source listing does not carry cannot be answered from it. */
|
|
8
|
+
const NON_TYPESCRIPT_PATTERN = /\.(?:[cm]?jsx?|json)$/;
|
|
9
|
+
/** TypeScript 5.5's template for the directory of the config being resolved, usable in an inherited pattern. */
|
|
10
|
+
const CONFIG_DIR = /^\$\{configDir\}/;
|
|
11
|
+
/** Matches no path: what an include ending in a bare `**` selects. */
|
|
12
|
+
const NEVER = /(?!)/;
|
|
13
|
+
/** What makes a directory a project of its own: a manifest or an Nx project file. */
|
|
14
|
+
const PROJECT_FILE = /^(?:package|project)\.json$/;
|
|
15
|
+
/**
|
|
16
|
+
* Top-level directories whose `*.test.ts` files are data a harness compiles,
|
|
17
|
+
* not suites. The stray-test policy skips the same one.
|
|
18
|
+
*/
|
|
19
|
+
const FIXTURE_DIRECTORY = 'fixtures';
|
|
20
|
+
const PACKAGE_CONVENTION_ROOT = 'src';
|
|
21
|
+
const TESTS_DIRECTORY = '__tests__';
|
|
22
|
+
/**
|
|
23
|
+
* The TypeScript sources of a project, project-relative and sorted.
|
|
24
|
+
*
|
|
25
|
+
* A directory below the project that is a project of its own (its own manifest or Nx project file) is not part of
|
|
26
|
+
* this one: its files are its own tests, found by its own policy pass, and folding them in would count them twice.
|
|
27
|
+
* A directory that merely carries a tsconfig is not that: in a monorepo of Bun programs such a file routes the
|
|
28
|
+
* directory's files to the parent's program (a `tests/tsconfig.json` extending `../tsconfig.test.json`), and
|
|
29
|
+
* nothing typechecks the directory but that program.
|
|
30
|
+
*/
|
|
31
|
+
export function listTypeScriptSources(tree, projectRoot) {
|
|
32
|
+
const files = [];
|
|
33
|
+
const walk = (directory) => {
|
|
34
|
+
for (const name of childrenOf(tree, directory)) {
|
|
35
|
+
const path = posix.join(directory, name);
|
|
36
|
+
if (tree.isFile(path)) {
|
|
37
|
+
if (TYPESCRIPT_SOURCE.test(name))
|
|
38
|
+
files.push(posix.relative(projectRoot, path));
|
|
39
|
+
}
|
|
40
|
+
else if (!isNonSourceDirectory(name) && !isNestedProject(tree, path)) {
|
|
41
|
+
walk(path);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
walk(projectRoot);
|
|
46
|
+
return files.sort();
|
|
47
|
+
}
|
|
48
|
+
/** A directory with its own manifest or Nx project file is a project, and its files are that project's. */
|
|
49
|
+
function isNestedProject(tree, directory) {
|
|
50
|
+
return childrenOf(tree, directory).some((name) => PROJECT_FILE.test(name) && tree.isFile(posix.join(directory, name)));
|
|
51
|
+
}
|
|
52
|
+
/** A dangling link (a collected build out-link) is neither a file nor a directory; anything else is a real fault. */
|
|
53
|
+
function childrenOf(tree, directory) {
|
|
54
|
+
try {
|
|
55
|
+
return tree.children(directory);
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
// ELOOP is a link cycle: there is nothing beneath it to list.
|
|
59
|
+
if (error instanceof Error &&
|
|
60
|
+
'code' in error &&
|
|
61
|
+
(error.code === 'ENOENT' || error.code === 'ENOTDIR' || error.code === 'ELOOP')) {
|
|
62
|
+
return [];
|
|
63
|
+
}
|
|
64
|
+
throw error;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function isTestSource(file) {
|
|
68
|
+
return TEST_FILE.test(file) || IN_TESTS_DIRECTORY.test(file);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The top-level directory a test file belongs to (`.` for a file beside the
|
|
72
|
+
* manifest), or null for a file that is not a test.
|
|
73
|
+
*/
|
|
74
|
+
function testRootOf(file) {
|
|
75
|
+
if (!isTestSource(file))
|
|
76
|
+
return null;
|
|
77
|
+
const [first, second] = file.split('/');
|
|
78
|
+
if (first === FIXTURE_DIRECTORY && second !== undefined)
|
|
79
|
+
return null;
|
|
80
|
+
return second === undefined ? '.' : (first ?? '.');
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The directories the test program is about. A package whose tests live in
|
|
84
|
+
* `src/` is on the package convention, and stays on it: a test anywhere else is
|
|
85
|
+
* a stray the stray-test policy reports, and widening the program here would
|
|
86
|
+
* silently bless it. A project with no `src/` tests (the repository's `tooling`
|
|
87
|
+
* keeps them beside its shell scripts) is on no convention, so the directories
|
|
88
|
+
* its tests are in are the answer. A project with no tests yet gets the
|
|
89
|
+
* convention, whose program then selects nothing and is reported.
|
|
90
|
+
*/
|
|
91
|
+
function programRoots(files) {
|
|
92
|
+
const roots = [...new Set(files.map(testRootOf).filter((root) => root !== null))].sort();
|
|
93
|
+
if (roots.includes(PACKAGE_CONVENTION_ROOT))
|
|
94
|
+
return [PACKAGE_CONVENTION_ROOT];
|
|
95
|
+
return roots.length > 0 ? roots : [PACKAGE_CONVENTION_ROOT];
|
|
96
|
+
}
|
|
97
|
+
/** The canonical globs for a test directory, plus the `.tsx` ones only where `.tsx` tests exist. */
|
|
98
|
+
function includeGlobs(roots, files) {
|
|
99
|
+
return roots.flatMap((root) => {
|
|
100
|
+
if (root === TESTS_DIRECTORY)
|
|
101
|
+
return ['__tests__/**/*.ts', '__tests__/**/*.tsx'];
|
|
102
|
+
const prefix = root === '.' ? '' : `${root}/**/`;
|
|
103
|
+
const hasTsxTests = files.some((file) => testRootOf(file) === root && TSX_TEST_FILE.test(file));
|
|
104
|
+
return [
|
|
105
|
+
`${prefix}*.test.ts`,
|
|
106
|
+
`${prefix}*.spec.ts`,
|
|
107
|
+
...(hasTsxTests ? [`${prefix}*.test.tsx`, `${prefix}*.spec.tsx`] : []),
|
|
108
|
+
...(root === '.' ? [] : [`${root}/**/__tests__/**/*.ts`, `${root}/**/__tests__/**/*.tsx`]),
|
|
109
|
+
...(root === PACKAGE_CONVENTION_ROOT ? ['src/test-suite-tracer.ts'] : []),
|
|
110
|
+
];
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The globs a test program's `include` must carry, given the `include` it has.
|
|
115
|
+
*
|
|
116
|
+
* A new file, or a package on the `src/` convention, gets the canonical globs
|
|
117
|
+
* (merging them is a no-op when they are there). A project off the convention
|
|
118
|
+
* that wrote an `include` of its own gets a directory's globs only for the
|
|
119
|
+
* directories whose tests that `include` does not already select, so a
|
|
120
|
+
* hand-written include that already names `direnv`'s tests is never followed by four redundant entries.
|
|
121
|
+
*/
|
|
122
|
+
export function includeGlobsFor(program, config, isNew) {
|
|
123
|
+
const roots = programRoots(program.files);
|
|
124
|
+
if (isNew || roots.includes(PACKAGE_CONVENTION_ROOT))
|
|
125
|
+
return includeGlobs(roots, program.files);
|
|
126
|
+
const selects = fileSelector(program, config);
|
|
127
|
+
if (selects === null)
|
|
128
|
+
return includeGlobs(roots, program.files);
|
|
129
|
+
const uncovered = roots.filter((root) => program.files.some((file) => testRootOf(file) === root && !selects(posix.join(program.projectRoot, file))));
|
|
130
|
+
return includeGlobs(uncovered, program.files);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* How, if at all, this program typechecks none of what it exists to typecheck:
|
|
134
|
+
* none of the project's tests, or, for a project with no tests at all, no file.
|
|
135
|
+
* Unknowable is not a fault.
|
|
136
|
+
*/
|
|
137
|
+
export function testProgramFault(program, config) {
|
|
138
|
+
const selects = fileSelector(program, config);
|
|
139
|
+
if (selects === null)
|
|
140
|
+
return null;
|
|
141
|
+
const selected = (file) => selects(posix.join(program.projectRoot, file));
|
|
142
|
+
const tests = program.files.filter((file) => testRootOf(file) !== null);
|
|
143
|
+
if (tests.length === 0)
|
|
144
|
+
return program.files.some(selected) ? null : { kind: 'no-tests' };
|
|
145
|
+
return tests.some(selected) ? null : { kind: 'tests-unselected', tests };
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* A tsconfig list option as TypeScript resolves it: the file's own, else the
|
|
149
|
+
* last base in its `extends` that declares one. 'none' when no config in the
|
|
150
|
+
* chain does; 'unknown' when the chain leaves what the plugin can read (a
|
|
151
|
+
* package base such as `@tsconfig/node`).
|
|
152
|
+
*/
|
|
153
|
+
function inheritedList(program, configPath, config, field) {
|
|
154
|
+
const own = config[field];
|
|
155
|
+
if (Array.isArray(own)) {
|
|
156
|
+
return {
|
|
157
|
+
values: own.filter((entry) => typeof entry === 'string'),
|
|
158
|
+
directory: posix.dirname(configPath),
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
const extended = config.extends;
|
|
162
|
+
const bases = typeof extended === 'string' ? [extended] : Array.isArray(extended) ? extended : [];
|
|
163
|
+
for (let index = bases.length - 1; index >= 0; index--) {
|
|
164
|
+
const base = bases[index];
|
|
165
|
+
if (typeof base !== 'string' || !base.startsWith('.'))
|
|
166
|
+
return 'unknown';
|
|
167
|
+
const basePath = posix.join(posix.dirname(configPath), base.endsWith('.json') ? base : `${base}.json`);
|
|
168
|
+
const baseConfig = program.readConfig(basePath);
|
|
169
|
+
if (baseConfig === null)
|
|
170
|
+
return 'unknown';
|
|
171
|
+
const inherited = inheritedList(program, basePath, baseConfig, field);
|
|
172
|
+
if (inherited !== 'none')
|
|
173
|
+
return inherited;
|
|
174
|
+
}
|
|
175
|
+
return 'none';
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* A pattern as a workspace-relative path: against the config that declared it,
|
|
179
|
+
* or, for `${configDir}`, against the config being resolved. Null for one the
|
|
180
|
+
* workspace-relative form cannot express (an absolute path).
|
|
181
|
+
*/
|
|
182
|
+
function resolvePattern(value, declaredIn, leafDirectory) {
|
|
183
|
+
if (value.startsWith('/'))
|
|
184
|
+
return null;
|
|
185
|
+
if (CONFIG_DIR.test(value))
|
|
186
|
+
return posix.join(leafDirectory, value.replace(CONFIG_DIR, ''));
|
|
187
|
+
return posix.join(declaredIn, value);
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Whether TypeScript would put a workspace-relative file in this program, or
|
|
191
|
+
* null when the answer depends on configuration outside the tree, a pattern
|
|
192
|
+
* outside the project, or files the TypeScript listing does not carry. Follows
|
|
193
|
+
* `files`, `include` and `exclude` through `extends`, each pattern relative to
|
|
194
|
+
* the config that wrote it, and TypeScript's two defaults: no `include` and no
|
|
195
|
+
* `files` means every file, and no `exclude` means `node_modules` and its kin.
|
|
196
|
+
*/
|
|
197
|
+
function fileSelector(program, config) {
|
|
198
|
+
const configPath = posix.join(program.projectRoot, 'tsconfig.test.json');
|
|
199
|
+
const leaf = posix.dirname(configPath);
|
|
200
|
+
const files = inheritedList(program, configPath, config, 'files');
|
|
201
|
+
const include = inheritedList(program, configPath, config, 'include');
|
|
202
|
+
const exclude = inheritedList(program, configPath, config, 'exclude');
|
|
203
|
+
if (files === 'unknown' || include === 'unknown' || exclude === 'unknown')
|
|
204
|
+
return null;
|
|
205
|
+
const resolved = (list) => list.values.map((value) => resolvePattern(value, list.directory, leaf));
|
|
206
|
+
const fileList = files === 'none' ? [] : resolved(files);
|
|
207
|
+
const includeList = include !== 'none' ? resolved(include) : files === 'none' ? [posix.join(leaf, '**/*')] : [];
|
|
208
|
+
const excludeList = exclude === 'none'
|
|
209
|
+
? ['node_modules', 'bower_components', 'jspm_packages'].map((name) => posix.join(leaf, '**', name))
|
|
210
|
+
: resolved(exclude);
|
|
211
|
+
if ([...fileList, ...includeList, ...excludeList].some((pattern) => pattern === null))
|
|
212
|
+
return null;
|
|
213
|
+
const known = (list) => list.filter((pattern) => pattern !== null);
|
|
214
|
+
const includePatterns = known(includeList);
|
|
215
|
+
if (includePatterns.some((pattern) => !reachesInto(pattern, program.projectRoot) || NON_TYPESCRIPT_PATTERN.test(pattern))) {
|
|
216
|
+
return null;
|
|
217
|
+
}
|
|
218
|
+
const included = includePatterns.map(includeRegExp);
|
|
219
|
+
const excluded = known(excludeList).map(excludeRegExp);
|
|
220
|
+
const named = known(fileList);
|
|
221
|
+
return (path) => named.includes(path) || (included.some((it) => it.test(path)) && !excluded.some((it) => it.test(path)));
|
|
222
|
+
}
|
|
223
|
+
/** Whether a pattern's fixed leading directories are inside, or contain, the project: else the project's files cannot answer for it. */
|
|
224
|
+
function reachesInto(pattern, projectRoot) {
|
|
225
|
+
const fixed = [];
|
|
226
|
+
for (const segment of pattern.split('/')) {
|
|
227
|
+
if (/[*?]/.test(segment))
|
|
228
|
+
break;
|
|
229
|
+
fixed.push(segment);
|
|
230
|
+
}
|
|
231
|
+
const prefix = fixed.join('/');
|
|
232
|
+
return (prefix === '' ||
|
|
233
|
+
prefix === projectRoot ||
|
|
234
|
+
prefix.startsWith(`${projectRoot}/`) ||
|
|
235
|
+
projectRoot.startsWith(`${prefix}/`));
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* The regular-expression source for a run of pattern segments: `*` within a
|
|
239
|
+
* segment, `?` one character, `**` any number of directories. In an `include`,
|
|
240
|
+
* as in TypeScript, no wildcard matches a leading `.`, so hidden files and
|
|
241
|
+
* directories are never selected by one; an `exclude` has no such rule and
|
|
242
|
+
* removes them like anything else.
|
|
243
|
+
*/
|
|
244
|
+
function segmentsSource(segments, skipsHidden) {
|
|
245
|
+
const hidden = skipsHidden ? '(?!\\.)' : '';
|
|
246
|
+
let source = '';
|
|
247
|
+
segments.forEach((segment, index) => {
|
|
248
|
+
if (segment === '**') {
|
|
249
|
+
source += `(?:${hidden}[^/]+/)*`;
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
if (segment.startsWith('*') || segment.startsWith('?'))
|
|
253
|
+
source += hidden;
|
|
254
|
+
source += segment
|
|
255
|
+
.replace(/[.+^${}()|[\]\\]/g, '\\$&')
|
|
256
|
+
.replaceAll('*', '[^/]*')
|
|
257
|
+
.replaceAll('?', '[^/]');
|
|
258
|
+
if (index < segments.length - 1)
|
|
259
|
+
source += '/';
|
|
260
|
+
});
|
|
261
|
+
return source;
|
|
262
|
+
}
|
|
263
|
+
function patternSegments(pattern) {
|
|
264
|
+
return pattern.split('/').filter((segment) => segment !== '' && segment !== '.');
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* An `include` pattern as a regular expression over workspace-relative paths. A
|
|
268
|
+
* last segment with no wildcard and no extension names a directory. A trailing
|
|
269
|
+
* `**` is an error to TypeScript (TS5010) that selects nothing, so it selects
|
|
270
|
+
* nothing here: reading it as "everything beneath" would bless a config that
|
|
271
|
+
* `tsc` itself rejects.
|
|
272
|
+
*/
|
|
273
|
+
function includeRegExp(pattern) {
|
|
274
|
+
const segments = patternSegments(pattern);
|
|
275
|
+
const last = segments.at(-1);
|
|
276
|
+
if (last === '**')
|
|
277
|
+
return NEVER;
|
|
278
|
+
if (last !== undefined && !/[*?.]/.test(last))
|
|
279
|
+
segments.push('**', '*');
|
|
280
|
+
return new RegExp(`^${segmentsSource(segments, true)}$`);
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* An `exclude` pattern: it removes what it matches and everything beneath a
|
|
284
|
+
* match, so `src/foo*` drops `src/foobar/a.test.ts` (TypeScript ends the
|
|
285
|
+
* pattern at `$` or `/`, not at the end of the path).
|
|
286
|
+
*/
|
|
287
|
+
function excludeRegExp(pattern) {
|
|
288
|
+
const segments = patternSegments(pattern);
|
|
289
|
+
if (segments.at(-1) === '**')
|
|
290
|
+
segments.pop();
|
|
291
|
+
return new RegExp(`^${segmentsSource(segments, false)}(?:$|/)`);
|
|
292
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The check inferred beside a Bun suite that `--shard=N/M` targets split and a `--timings` manifest balances. Bun
|
|
3
|
+
* charges a file the manifest does not name at the manifest's median, and it cuts the path-sorted files into contiguous
|
|
4
|
+
* runs, so unnamed files cluster into one shard and push it past its deadline without a word. `lint` depends on this
|
|
5
|
+
* target, which fails naming every such file instead.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SHARD_TIMINGS_TARGET = "shard-timings";
|
|
8
|
+
export declare const SHARD_TIMINGS_EXECUTOR = "@smoothbricks/nx-plugin:shard-timings";
|
|
9
|
+
/** The one command that rewrites a project's timing manifest: its suite, unsharded, under `--update-timings`. */
|
|
10
|
+
export declare function refreshTestTimingsCommand(projectName: string): string;
|
|
11
|
+
/** One `bun test` suite whose shard targets differ only in `--shard=N/M`. */
|
|
12
|
+
export interface TimingsShardedSuite {
|
|
13
|
+
/** The shard targets, by name, in declaration order. */
|
|
14
|
+
readonly targets: readonly string[];
|
|
15
|
+
/** Where every shard runs `bun test`, relative to the workspace root (`.` for the root itself). */
|
|
16
|
+
readonly cwd: string;
|
|
17
|
+
/** The `bun test` arguments every shard shares, which is all of them but `--shard`. */
|
|
18
|
+
readonly args: readonly string[];
|
|
19
|
+
}
|
|
20
|
+
export type TimingsShardedSuiteResult = {
|
|
21
|
+
readonly ok: true;
|
|
22
|
+
readonly suite: TimingsShardedSuite | null;
|
|
23
|
+
} | {
|
|
24
|
+
readonly ok: false;
|
|
25
|
+
readonly error: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* The project's timings-sharded Bun suite, or `null` when no target runs `bun test` with both `--shard` and
|
|
29
|
+
* `--timings`. A target that does but is not a plain `bun test` command (shell syntax, a positional filter, a value
|
|
30
|
+
* flag spelled without `=`) is refused: the files it would run could only be guessed, and a guess is the silent
|
|
31
|
+
* imbalance this check exists to end. Every shard must share one working directory and one argument list apart from
|
|
32
|
+
* `--shard`, because "the files the shards run" is only defined for one suite.
|
|
33
|
+
*/
|
|
34
|
+
export declare function timingsShardedSuite(projectRoot: string, targets: Readonly<Record<string, unknown>>): TimingsShardedSuiteResult;
|
|
35
|
+
/** The suite's test files measured against its `--timings` manifests. Paths are relative to the suite's cwd, sorted. */
|
|
36
|
+
export interface TimingsCoverage {
|
|
37
|
+
/** Every `--timings` file, as the command names it. Bun merges them; the first is the one `--update-timings` writes. */
|
|
38
|
+
readonly manifests: readonly string[];
|
|
39
|
+
/** Every file the shards run between them. */
|
|
40
|
+
readonly files: readonly string[];
|
|
41
|
+
/** The files no manifest names, which Bun costs at the median. */
|
|
42
|
+
readonly untimed: readonly string[];
|
|
43
|
+
}
|
|
44
|
+
export type TimingsCoverageResult = {
|
|
45
|
+
readonly ok: true;
|
|
46
|
+
readonly coverage: TimingsCoverage;
|
|
47
|
+
} | {
|
|
48
|
+
readonly ok: false;
|
|
49
|
+
readonly error: string;
|
|
50
|
+
};
|
|
51
|
+
/** What `bun test --update-timings` writes: milliseconds per cwd-relative test file. */
|
|
52
|
+
export interface TimingManifest {
|
|
53
|
+
version: number;
|
|
54
|
+
files: Record<string, number>;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Bun's test discovery for `args` in `cwd`, replayed without running a test: files named `*.test.*`, `*_test.*`,
|
|
58
|
+
* `*.spec.*` or `*_spec.*` with a JavaScript extension, in any letter case, under bunfig's `test.root`, outside
|
|
59
|
+
* `node_modules` and hidden directories. A symlink counts as its target, a directory entered and a file matched, and a
|
|
60
|
+
* link to nothing as a file; the link's own name is the one the name rules see. `--path-ignore-patterns` globs match
|
|
61
|
+
* the cwd-relative path as written and replace bunfig's `pathIgnorePatterns` when given; `--config=` names another
|
|
62
|
+
* bunfig; `.gitignore` plays no part. These are the rules of Bun 1.4: `test-timings.test.ts` compares them with the
|
|
63
|
+
* files `bun test --update-timings` writes for a fixture, so a Bun release that changes them fails there.
|
|
64
|
+
*/
|
|
65
|
+
export declare function timingsCoverage(workspaceRoot: string, suite: Pick<TimingsShardedSuite, 'cwd' | 'args'>): Promise<TimingsCoverageResult>;
|
|
66
|
+
/**
|
|
67
|
+
* The failure an untimed file earns: every such file, and the one command that refreshes the manifest. `cwd` is the
|
|
68
|
+
* suite's workspace-relative directory, so the operator can find the files from the repository root.
|
|
69
|
+
*/
|
|
70
|
+
export declare function untimedTestFilesReport(projectName: string, cwd: string, coverage: TimingsCoverage): string;
|
|
71
|
+
//# sourceMappingURL=test-timings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-timings.d.ts","sourceRoot":"","sources":["../src/test-timings.ts"],"names":[],"mappings":"AAQA;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AACpD,eAAO,MAAM,sBAAsB,0CAA0C,CAAC;AAE9E,iHAAiH;AACjH,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAErE;AAED,6EAA6E;AAC7E,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,mGAAmG;IACnG,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,uFAAuF;IACvF,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAED,MAAM,MAAM,yBAAyB,GACjC;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAAA;CAAE,GACjE;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAInD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACzC,yBAAyB,CAsB3B;AAoFD,wHAAwH;AACxH,MAAM,WAAW,eAAe;IAC9B,wHAAwH;IACxH,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,kEAAkE;IAClE,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,MAAM,MAAM,qBAAqB,GAC7B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAA;CAAE,GACzD;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnD,wFAAwF;AACxF,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAaD;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CACnC,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,KAAK,GAAG,MAAM,CAAC,GAC/C,OAAO,CAAC,qBAAqB,CAAC,CAwBhC;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,GAAG,MAAM,CAQ1G"}
|