Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8821d2767d | |||
| 86de5d9f28 | |||
| d60a333c15 |
@@ -1,38 +0,0 @@
|
||||
# Development dependency triage
|
||||
|
||||
Source: exact A3 `eb2538772e1bfabbeb291e4a5efa177c79074de1`, isolated branch `codex/dev-dependency-triage`. This is a bounded npm dependency investigation, not formal integrated security acceptance. The redirect-header qualification and committed audit receipts were read before work.
|
||||
|
||||
## Findings and applicability
|
||||
|
||||
The fresh full lock-only audit returned **50 package records (7 moderate, 43 high)**, not the historical 49. Those records deduplicate to **three concrete advisories**; other records are npm metavulnerability propagation through Jest and ESLint. They are development tooling in this lock. Attacker-controlled patterns, directory trees, or tooling configuration would be needed to reach these availability failures. A production HTTP exploit, tenant impact, or data disclosure was not demonstrated. Treat tooling that processes untrusted contributions as exposed until independently assessed.
|
||||
|
||||
| Advisory | Concrete affected lock entries at baseline | Result |
|
||||
| --- | --- | --- |
|
||||
| [Picomatch repeated-extglob ReDoS, high](https://github.com/micromatch/picomatch/pull/194) / GHSA-fc5q-39xc-vjpf | 2.3.2 under anymatch and micromatch; root 4.0.5 | Official registry latest is 4.0.7 and advisory affects <=4.0.7 with no patched release. **OPEN**; upgrading to latest would not qualify a fix. |
|
||||
| [Minimatch globparts amplification, moderate](https://github.com/isaacs/minimatch/security/advisories/GHSA-g3hv-75wg-m249) | Root 9.0.9 and TypeScript ESLint's nested 10.2.6 | **PARTIALLY REMEDIATED**: nested copy becomes 11.0.9 through upstream TypeScript ESLint 8.73.0. Root 9.0.9 remains under glob/Jest; its ^9 range cannot accept patched >=11.0.1. Trigger requires optimizationLevel >=2 and attacker-controlled patterns. |
|
||||
| [Glob cancellation bypass, moderate](https://github.com/isaacs/node-glob/security/advisories/GHSA-3g3m-2fjr-6pw4) | Root 10.5.0; nested 7.2.3 is outside this advisory's >=9 range | **OPEN**: patched >=14.0.2 does not satisfy Jest's ^10.5.0 range. Requires async traversal using cancellation and attacker-influenced patterns/trees. No forced cross-major override or Jest downgrade applied. |
|
||||
|
||||
The audit's suggested Jest 30.2.0, jsdom environment 29.7.0, and Next ESLint config 14.2.35 downgrades are not accepted remedies: they change the supported toolchain rather than supply compatible patched leaf packages. No audit suppression, force fix, rule weakening, production configuration, or dependency override was added.
|
||||
|
||||
## Compatible change
|
||||
|
||||
`npm update typescript-eslint --package-lock-only --ignore-scripts --no-audit` uses eslint-config-next 16.4.6's existing `typescript-eslint: ^8.56.0` range. Eleven coordinated TypeScript ESLint entries move 8.68.0 to 8.73.0; the maintainer now declares minimatch ^11.0.1, selecting nested 11.0.9. Its required @isaacs/nonrecursive-glob-match 1.1.0 is added, and the ESLint plugin's allowed ignore dependency updates 7.0.6 to 7.0.16. There are exactly 13 changed existing lock entries and one addition; see machine-readable `evidence/lock-delta.json`. Direct dependency declarations, application source, Jest/Next versions, and existing overrides remain unchanged. Package.json adds only the explicit Node regression command.
|
||||
|
||||
Minimatch 11.0.9 requires Node 20 or >=22. Verification uses the recorded local Node version; Node 18 is not qualified for this updated tool dependency. Next 16 already requires Node >=20.9.0. Install scripts were disabled without changing approval policy.
|
||||
|
||||
## Verification and evidence limits
|
||||
|
||||
- Fresh isolated `npm ci --ignore-scripts --no-audit`: PASS, 826 installed packages. `npm ls` for the affected trees: PASS; nested installed minimatch 11.0.9 and TypeScript ESLint 8.73.0 agree with the lock. Shared A3 and sibling node_modules were not used or modified.
|
||||
- Bounded regression on official baseline minimatch 10.2.6 tarball: expected FAIL, missing the expansion-budget exception. Only eight repetitions (at most 256 patterns), local process, 15-second outer timeout; no abusive payload or service target.
|
||||
- Permanent `npm run test:glob-security`: PASS, two cases for expansion rejection and ordinary path behavior. The first exploratory assertion expected the earlier 11.0.1 cap behavior, while 11.0.9 throws RangeError; corrected to the installed source's explicit rejection behavior. That initial failed exploratory output was overwritten by the runner and is not a retained native receipt. Final test and independent baseline receipts are retained.
|
||||
- `npm run test:redirect-security`: PASS, two existing same/cross-realm cases. Full frontend ESLint and TypeScript checks: PASS without configuration changes.
|
||||
- Candidate full lock audit: FAIL exit1, **49 records (2 moderate, 47 high)**, still three concrete advisories. The affected nested minimatch node is removed from its advisory; root minimatch remains. Five TypeScript ESLint metavulnerability severities change moderate to high through residual picomatch propagation; @types/jest disappears despite unchanged Jest entries. These registry/metavulnerability changes are **not** evidence that this patch eliminated an independent advisory or reduced aggregate risk. Native snapshots are preserved separately.
|
||||
- Candidate production-tree lock audit (`--omit=dev`): PASS exit0, zero returned findings. This is scoped evidence, not a full dependency or release clearance.
|
||||
- Own `graphify update .`: PASS, AST-only, 19,837 nodes / 48,046 edges. Optional PDF/SQL extraction dependencies were absent. Newly generated untracked graph artifacts are retained in sibling `dev-dependency-triage-evidence/graphify-out`; shared A3 graph was not updated.
|
||||
- NOT RUN: full build/browser lane, Jest suite (Jest and runtime dependencies unchanged), backend, hosted CI, providers, live models, native/device/AT, formal integrated security scan, deployed or production validation. No runtime/UI/document behavior claim is made from tooling checks.
|
||||
|
||||
`evidence/SOURCE_RECEIPTS.json` binds exact source hashes, commands, versions, exits, and native gzip receipts. Raw subprocess stdout/stderr bytes avoid Windows PowerShell encoding conversion. Official registry metadata and advisory/fix sources are retained with hashes. Parent integration must rerun the narrow checks after a fresh locked install; rollback is a revert and locked reinstall, which restores the affected nested version. No push, main merge, orchestrator action, or deployment was performed.
|
||||
|
||||
## Root recovery qualification, 18 November 2026
|
||||
|
||||
The isolated candidate remained source-identical to efa438201 through the usage-limit interruption. Root ran the standard Next16.4.6 build: compile, TypeScript and static export passed exit0 without warning bypass. Root also repeated the two glob and two redirect regressions, all passing; repeated cases are not added to prior test totals. Exact native outputs are gzip-bound in the receipt. No browser or formal integrated security qualification is implied. Earlier NOT RUN build statement is historical and superseded by this scoped result; Node20/Linux/hosted checks remain separate.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,245 +0,0 @@
|
||||
{
|
||||
"baseline": "eb2538772e1bfabbeb291e4a5efa177c79074de1",
|
||||
"node": "v24.19.0",
|
||||
"npm": "11.17.0",
|
||||
"sourceSha256Lf": {
|
||||
"job-tracker-ui/package.json": "09987e915c07a212fe0e460785283a0f78efe85b4f3f05b252219ebb1914ee72",
|
||||
"job-tracker-ui/package-lock.json": "2ddb39aae463fd706512be2b0a654f4575192c92b7f209af64de8897123d7666",
|
||||
"job-tracker-ui/test/typescript-eslint-glob-security.test.mjs": "ce08ecc4d216e5d22965dbd40c0f94fbe6666d0b9fcf64601dc29a6bc7e261d7"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "baseline-audit.exit.json.gz",
|
||||
"rawSha256": "f468f8bf84d59a390a40e5d5ac0291111e0e6eeb79821864810ae628cbd3507e",
|
||||
"gzipSha256": "4761ccb47a53fb185b703d6c40024da0ffd4d99a4a86cb3c05e8d72c6c3e785d",
|
||||
"rawBytes": 15
|
||||
},
|
||||
{
|
||||
"path": "baseline-audit.stderr.txt.gz",
|
||||
"rawSha256": "799f544422ef20e84949c8feabb844390db9306ac5cf97419981d0291eb45156",
|
||||
"gzipSha256": "de490ffd4557141616c16a97c1366601a12b3963d5f0ed8a91d1a9c5b95a91f7",
|
||||
"rawBytes": 209
|
||||
},
|
||||
{
|
||||
"path": "baseline-audit.stdout.json.gz",
|
||||
"rawSha256": "6aa612fb8fcfdc034dbdeb218fb02293270bfc8c1d0f058fa297619cfae1209a",
|
||||
"gzipSha256": "4111ca771b7c17e9162a5eccfec2972ee64478f81307b11a0b9128b5b2222dcc",
|
||||
"rawBytes": 25336
|
||||
},
|
||||
{
|
||||
"path": "baseline-regression.exit.json.gz",
|
||||
"rawSha256": "c3dee3219b98a8127997224f95bcc0ffe1ec533a01ce1d0ea92161dba22e6d7b",
|
||||
"gzipSha256": "fe757b52a6e97554691f6355528b6630679b8ab647e317cb9bc5b0a15ddd17c2",
|
||||
"rawBytes": 211
|
||||
},
|
||||
{
|
||||
"path": "baseline-regression.stderr.txt.gz",
|
||||
"rawSha256": "0b13f43d70e80ae802e117bcddeae10854e55fdc173e93f38f761e2a286dd52b",
|
||||
"gzipSha256": "a7d00819a6d37f41858640cda29712755345217d1b1870991df98cf8d98f0883",
|
||||
"rawBytes": 777
|
||||
},
|
||||
{
|
||||
"path": "baseline-regression.stdout.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"rawBytes": 0
|
||||
},
|
||||
{
|
||||
"path": "candidate-audit.exit.json.gz",
|
||||
"rawSha256": "f468f8bf84d59a390a40e5d5ac0291111e0e6eeb79821864810ae628cbd3507e",
|
||||
"gzipSha256": "4761ccb47a53fb185b703d6c40024da0ffd4d99a4a86cb3c05e8d72c6c3e785d",
|
||||
"rawBytes": 15
|
||||
},
|
||||
{
|
||||
"path": "candidate-audit.stderr.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"rawBytes": 0
|
||||
},
|
||||
{
|
||||
"path": "candidate-audit.stdout.json.gz",
|
||||
"rawSha256": "7208ace3c4f1cc35b0bec59922be92872a26bf15d8eb673ec3011f1664cf2f77",
|
||||
"gzipSha256": "6db6e4f1add642556129e7773965bae1bc3c94ec489c0b4e979691fa6eb4aaf3",
|
||||
"rawBytes": 25452
|
||||
},
|
||||
{
|
||||
"path": "ci.stderr.txt.gz",
|
||||
"rawSha256": "88c9d02e27f8dc6de23c0236a18ec15a9f61be204fee5bdedb245f8f8799d35a",
|
||||
"gzipSha256": "a7ea99ffe5cfdd0159c1f56fe4a93275cbd911eee6d4699562cdb68c8ba03c2a",
|
||||
"rawBytes": 1055
|
||||
},
|
||||
{
|
||||
"path": "ci.stdout.txt.gz",
|
||||
"rawSha256": "7a9ad18851e094a42725309fd03e68a7faf154f912049c148c8c30af0edca105",
|
||||
"gzipSha256": "5c462b5a8b4016f2a75578a865f1655b400c320310a86496da629a05eb29047a",
|
||||
"rawBytes": 93
|
||||
},
|
||||
{
|
||||
"path": "GHSA-3g3m-2fjr-6pw4.json.gz",
|
||||
"rawSha256": "ba661d336d2a6de3d418a317f4d1b298b845a14383842c68a1c0b994eb0454c8",
|
||||
"gzipSha256": "d616a633ee3e832dc995ff142060d837bbae210942e8537071f62a9ce7d8950c",
|
||||
"rawBytes": 4652
|
||||
},
|
||||
{
|
||||
"path": "GHSA-fc5q-39xc-vjpf.json.gz",
|
||||
"rawSha256": "cc99706e61047047b6690db94abb98b5940d007196775c12902c0f79d8aedbd5",
|
||||
"gzipSha256": "daedfd4d95519bcd43a91b7349dcfc7ca924b5541cce5b7b86bdf31a667c52e0",
|
||||
"rawBytes": 4025
|
||||
},
|
||||
{
|
||||
"path": "GHSA-g3hv-75wg-m249.json.gz",
|
||||
"rawSha256": "b324fca01e28e662e2dabba5ad7d2f4ab267420b2245ebe3068f5ec3a54dd30a",
|
||||
"gzipSha256": "a9b8dd4e8657eff5ada3d57294a072a2b803e41cd450640ae296eca74762ca3f",
|
||||
"rawBytes": 10021
|
||||
},
|
||||
{
|
||||
"path": "glob-regression.exit.json.gz",
|
||||
"rawSha256": "da0113d8a762cfbd47093480ce9c5e3bdb547a6a02c3a612678072fa8e0a61d2",
|
||||
"gzipSha256": "ac7c689c35be456b71bd3c6d8fb15e25dfda3bf5ec73d2bdd0c887ec88f35698",
|
||||
"rawBytes": 68
|
||||
},
|
||||
{
|
||||
"path": "glob-regression.stderr.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"rawBytes": 0
|
||||
},
|
||||
{
|
||||
"path": "glob-regression.stdout.txt.gz",
|
||||
"rawSha256": "af2e33a765c3163572fbc756d2c280b1ceb35cddd23d16f2920d3f6ad579316e",
|
||||
"gzipSha256": "443252413f047c9af76284c6b9712fd5dcb032c250905d3dd8ce7c2970a9df94",
|
||||
"rawBytes": 379
|
||||
},
|
||||
{
|
||||
"path": "installed-tree.exit.json.gz",
|
||||
"rawSha256": "ed9b78f66d3418e95de323567452eb48f8be835f650ba9c6a6a366b5f75b567a",
|
||||
"gzipSha256": "f3710e2cb07ac6540f2b8237a42aaa13c2125b0e4dfccf0280fff2308d7caf95",
|
||||
"rawBytes": 150
|
||||
},
|
||||
{
|
||||
"path": "installed-tree.stderr.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"rawBytes": 0
|
||||
},
|
||||
{
|
||||
"path": "installed-tree.stdout.txt.gz",
|
||||
"rawSha256": "5238a84a19bfb88f03fed8b8b1075b66d354d488a81a79c758acca514aa61828",
|
||||
"gzipSha256": "ba2b51415dd600c1c33f96adddd762993e75b65c4864ca9a453bd5e63f7698ab",
|
||||
"rawBytes": 12618
|
||||
},
|
||||
{
|
||||
"path": "lint.exit.json.gz",
|
||||
"rawSha256": "63a408719e42acbe473035d4580a52afd27197ee394ce6804dd5f6f4ef447833",
|
||||
"gzipSha256": "9b2c7159a441b0dd4a29219a15496ad9daec1a1923b046f89ad9d56206c61545",
|
||||
"rawBytes": 54
|
||||
},
|
||||
{
|
||||
"path": "lint.stderr.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"rawBytes": 0
|
||||
},
|
||||
{
|
||||
"path": "lint.stdout.txt.gz",
|
||||
"rawSha256": "90b7cd72b55fedd90de76daaa13f3c58e1b051481ede133c1904168b2f6bf6b0",
|
||||
"gzipSha256": "70335ab21127cfe30ee80c025401b632f2b7be204fcbb5f2a9d9f2982008eb53",
|
||||
"rawBytes": 58
|
||||
},
|
||||
{
|
||||
"path": "minimatch-fix-commit.json.gz",
|
||||
"rawSha256": "95407060d7db69d56937a3f8fa92880ea7cf497a9188d44f5ee12bfbd10c1458",
|
||||
"gzipSha256": "b196cd707fbf9b1b8c81a7ab3dd8a29ac938a91b5cea968f664ef238ff04a511",
|
||||
"rawBytes": 10589
|
||||
},
|
||||
{
|
||||
"path": "production-audit.exit.json.gz",
|
||||
"rawSha256": "47b8b6b49d4695fe6e036bd916538aff4f46773e212ca0d429db80f3963e2cfe",
|
||||
"gzipSha256": "0610f69ca93f69d5ad6b87fc15dac7e1be30033bb24c59033de8d2f93f275d38",
|
||||
"rawBytes": 15
|
||||
},
|
||||
{
|
||||
"path": "production-audit.stderr.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"rawBytes": 0
|
||||
},
|
||||
{
|
||||
"path": "production-audit.stdout.json.gz",
|
||||
"rawSha256": "ede7d93f96b8531dc5e48ee942f62801d359d7f070660fd79ad680dd17fef56a",
|
||||
"gzipSha256": "cd6f6bd64e7698b382744793b37e274911a896db15e3acd2725bb30f770a2b88",
|
||||
"rawBytes": 365
|
||||
},
|
||||
{
|
||||
"path": "redirect-regression.exit.json.gz",
|
||||
"rawSha256": "ded6dd68d16715de062e13a0b43f34b960c41c7d9d331afdb390c1712191b558",
|
||||
"gzipSha256": "b2699c4826b7ed316324107592ee4e4154d5c743f75a4559c3763c15c9f4abdc",
|
||||
"rawBytes": 72
|
||||
},
|
||||
{
|
||||
"path": "redirect-regression.stderr.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"rawBytes": 0
|
||||
},
|
||||
{
|
||||
"path": "redirect-regression.stdout.txt.gz",
|
||||
"rawSha256": "df3fb3fa2482abe2c8612e25bfafd664f7a1d968e758ca6e8129e8d58820ca3f",
|
||||
"gzipSha256": "01b8e9fc8a5d9bb259d03136861c854708123d9e5a08bd9f16eb409a97cf236e",
|
||||
"rawBytes": 389
|
||||
},
|
||||
{
|
||||
"path": "typecheck.exit.json.gz",
|
||||
"rawSha256": "7d7f1482a8eec7f11c30b2dc2f32b709e0dfcf4404b42471dc701b0d3bb25d7e",
|
||||
"gzipSha256": "bc69db1fd7ebbd1f09a3af4bbbcc308883bc185e80c587a6f9238aea46ec6d08",
|
||||
"rawBytes": 59
|
||||
},
|
||||
{
|
||||
"path": "typecheck.stderr.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"rawBytes": 0
|
||||
},
|
||||
{
|
||||
"path": "typecheck.stdout.txt.gz",
|
||||
"rawSha256": "c6cdd224453c93bedaa01ce7fc28e1053d4eb1586cb06e05351508baec36ca9b",
|
||||
"gzipSha256": "69785b4c92c52a672b306df65bdacf07f335d0046df12ac11a2906938db394ee",
|
||||
"rawBytes": 70
|
||||
},
|
||||
{
|
||||
"path": "typescript-eslint-update.stderr.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"rawBytes": 0
|
||||
},
|
||||
{
|
||||
"path": "typescript-eslint-update.stdout.txt.gz",
|
||||
"rawSha256": "7ad6c03b16aa7ae15777766b0a09681846373f7f49bfff351127b1b74cab3824",
|
||||
"gzipSha256": "0c0830bbf261fcac0d5a6360624da9659936f1815930461c822f3f6f81a7d3a0",
|
||||
"rawBytes": 86
|
||||
},
|
||||
{
|
||||
"path": "root-build.txt.gz",
|
||||
"rawSha256": "06b4d1c773298c49d5b45559fbbfec44e87ae9fb70f1dd063f546174840816db",
|
||||
"gzipSha256": "16605e62e1df79add88c7ebe18f78841d5507c184082e18612c2e6420bce4853",
|
||||
"rawBytes": 1196,
|
||||
"nativeEncoding": "UTF-16LE BOM (Windows PowerShell)"
|
||||
},
|
||||
{
|
||||
"path": "root-glob-tests.txt.gz",
|
||||
"rawSha256": "1d0c63a81afac70ba172093f95a41fada0a25e7e34fb1a7b08f57d8d06daa30b",
|
||||
"gzipSha256": "7c680314d8ab2799e64e381f8ff3d43add7a2a60a6304df4c7327dbdcfacf718",
|
||||
"rawBytes": 746,
|
||||
"nativeEncoding": "UTF-16LE BOM (Windows PowerShell)"
|
||||
},
|
||||
{
|
||||
"path": "root-redirect-tests.txt.gz",
|
||||
"rawSha256": "0c7aa85745a86b23809ec7ab55d55b6c8aa13d5cfa1dae0b59dca5a9fcaade5d",
|
||||
"gzipSha256": "4822218c9647b819d138866918e04fc49ebdb115e1f26374432145a246c4df39",
|
||||
"rawBytes": 762,
|
||||
"nativeEncoding": "UTF-16LE BOM (Windows PowerShell)"
|
||||
}
|
||||
],
|
||||
"sourceCommit": "efa438201c66d74149d76646ea9243efa145c10f",
|
||||
"rootVerification": "18 November 2026: normal Next16.4.6 build/TypeScript/static export exit0; glob2 and redirect2 tests exit0 (repeat of existing cases)."
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,72 +0,0 @@
|
||||
[
|
||||
{
|
||||
"path": "node_modules/@isaacs/nonrecursive-glob-match",
|
||||
"before": null,
|
||||
"after": "1.1.0"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/eslint-plugin",
|
||||
"before": "8.68.0",
|
||||
"after": "8.73.0"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore",
|
||||
"before": "7.0.6",
|
||||
"after": "7.0.16"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/parser",
|
||||
"before": "8.68.0",
|
||||
"after": "8.73.0"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/project-service",
|
||||
"before": "8.68.0",
|
||||
"after": "8.73.0"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/scope-manager",
|
||||
"before": "8.68.0",
|
||||
"after": "8.73.0"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/tsconfig-utils",
|
||||
"before": "8.68.0",
|
||||
"after": "8.73.0"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/type-utils",
|
||||
"before": "8.68.0",
|
||||
"after": "8.73.0"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/types",
|
||||
"before": "8.68.0",
|
||||
"after": "8.73.0"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/typescript-estree",
|
||||
"before": "8.68.0",
|
||||
"after": "8.73.0"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch",
|
||||
"before": "10.2.6",
|
||||
"after": "11.0.9"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/utils",
|
||||
"before": "8.68.0",
|
||||
"after": "8.73.0"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/@typescript-eslint/visitor-keys",
|
||||
"before": "8.68.0",
|
||||
"after": "8.73.0"
|
||||
},
|
||||
{
|
||||
"path": "node_modules/typescript-eslint",
|
||||
"before": "8.68.0",
|
||||
"after": "8.73.0"
|
||||
}
|
||||
]
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,13 +0,0 @@
|
||||
# Interview AI application-context lifetime
|
||||
|
||||
Baseline A3 `348f4684`, isolated branch codex/interview-ai-context at E:/Storage/Projects/Active/temp docs/jobjakt-local-build/next-security-patch. Source `0f8b17a`. Uses the qualified locked Next16.4.6/follow-redirects1.16.3 installation. No live model.
|
||||
|
||||
Three deterministic tests failed on original runtime source: a late generation displayed application7 text under application8; a completed suggestion remained available after changing application; a late accepted write called the former board loader again after navigation. Synthetic model/API responses only. The first two are also a risk of offering the wrong application's content for explicit application8 acceptance; no real misdirected write is claimed.
|
||||
|
||||
The sole assistant caller now keys its instance by jobId, scoping instructions, generated-language draft, errors, busy state and suggestions to that application instance. Existing CV reader cleanup remains. A layout-lifetime ref invalidates on committed unmount; an already accepted write can finish at its original target, but cannot invoke the old board-refresh callback afterward. No write is redirected, automatically retried or newly authorised. Current-application explicit accept/reject and normal refresh still use existing paths. UI language and generated-content language remain independent within the current application.
|
||||
|
||||
PASSED: final55 cases/two suites (51 InterviewPrep/four daily connected route cases), non-incremental TypeScript, scoped two-file lint and source diff. Three red failures are included in55;48 skipped cases in the focused red selection are not final-suite skips. An earlier successful run used a passive cleanup; final55 was rerun after using synchronous layout cleanup and is the qualification result. Existing generation, explicit acceptance, failed-add retry, answer drafts, CV retry and follow-up cases remain passing. [Receipts](evidence/interview-ai-context/SOURCE_RECEIPTS.json) bind final source and readable/native evidence.
|
||||
|
||||
PASSED: final standard Next16.4.6 build on exact new source after the55-case run; compile, TypeScript and static export completed exit0. No warning bypass. This is current isolated E-drive export evidence, not the older C-drive export and not a fresh browser run.
|
||||
|
||||
NOT RUN: fresh full frontend/backend regression, browser, native device/AT, actual model/semantic quality, provider, security/recovery/release qualification. Parent preparation/follow-up outstanding reads, broader job/session lifetime, AI live fallback copy and other components remain separate proof-required work; this is not whole-application isolation acceptance. Existing PDF metrics/visual acceptance not reopened. No catalogue/schema/renderer/ownership/revision/provider changes, orchestrator, main merge or production action.
|
||||
@@ -1,61 +0,0 @@
|
||||
{
|
||||
"baseline": "348f468478ed2fae1b6a52ff970471ea8ce54dd4",
|
||||
"sourceCommit": "0f8b17a",
|
||||
"sourceSha256Lf": {
|
||||
"job-tracker-ui/src/components/InterviewPrep.tsx": "e1c12d012d0488a8cee533015fff0944028578ca6ee37dd61fe70b60363a5803",
|
||||
"job-tracker-ui/src/interview-prep.test.tsx": "dfb23ea0682377a7edfe6af147f1046c90841e102ef35a2f62c6c85754058c97",
|
||||
"job-tracker-ui/package.json": "8b31e44c10b77b6d1e007af04c757c0577f12972ff3f6c7079bbc4c446a0d415",
|
||||
"job-tracker-ui/package-lock.json": "ac90fbdc79e2e0f23d54748814b41a03f5dcaf8fd27291b3dcb73b2603a83e72"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "interview-ai-context-red.json",
|
||||
"lfSha256": "cd1750809c6757251f0616417b85d206db07ce6b74c3a167bb6f3537c5a10c06",
|
||||
"rawSha256": "cd1750809c6757251f0616417b85d206db07ce6b74c3a167bb6f3537c5a10c06",
|
||||
"gzipSha256": "bf634ffd5cebf2f84df570c339cded3cd9e4fba247ccb71662572e9e1536c783",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-red.txt",
|
||||
"lfSha256": "a8673e1828567e5dcf97241f893c56178ba8cc09a90fbd9ed4a96e036527974c",
|
||||
"rawSha256": "999d08952b06ea3dd0b9021fcc6cd8263e069e24404a18242209ca9c1bf98ad3",
|
||||
"gzipSha256": "ab7bcecff278cce39f68ed4495cdbd0c827c31f5ccd515f5d12083d081ac4fd6",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-final.json",
|
||||
"lfSha256": "3a24bbb550d5246f9dbb3fa28c6e5570c290263ba80714f6d1ffa7597a3496a8",
|
||||
"rawSha256": "3a24bbb550d5246f9dbb3fa28c6e5570c290263ba80714f6d1ffa7597a3496a8",
|
||||
"gzipSha256": "8b54fbfc88a68d714250d36a4cc41af046ecceb8f3b5cc51f06c858c0f307222",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-final.txt",
|
||||
"lfSha256": "a4b08a7b17361517ff242d01d15a2e31f974924adbab26ccf866efc45b886dd0",
|
||||
"rawSha256": "89dc7976226bf01bbd22702c18ea96ea3e821161c2c6fcb65949e6c2b514b924",
|
||||
"gzipSha256": "1905b14d96265a2a1fa2ab37f354e74e99569dd15401bd9dfac254fa8a969a14",
|
||||
"nativeEncoding": "utf-16"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-typecheck.txt",
|
||||
"lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-lint.txt",
|
||||
"lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e",
|
||||
"nativeEncoding": "utf-8-sig"
|
||||
},
|
||||
{
|
||||
"path": "interview-ai-context-build.txt",
|
||||
"lfSha256": "2670468cf9011247d064dbd24366eeccc367597f86992c6129b60e00a1e7f3c1",
|
||||
"rawSha256": "87aa3a0631f4f36905c225ac05a5977045ff0c3735fda14eafbd5b6ffcab6b2a",
|
||||
"gzipSha256": "c9ec5fd2e55767fead726932919416886763c9e5fc75573415d7d3c1b3fc174b",
|
||||
"nativeEncoding": "utf-16"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
|
||||
> job-tracker-ui@0.1.0 build
|
||||
> node --max-old-space-size=4096 ./node_modules/next/dist/bin/next build
|
||||
|
||||
▲ Next.js 16.4.6 (Turbopack)
|
||||
✓ Running next.config.js took 49ms
|
||||
|
||||
Creating an optimized production build ...
|
||||
✓ Compiled successfully in 788ms
|
||||
Running TypeScript ...
|
||||
Finished TypeScript in 10.6s ...
|
||||
Collecting page data using 4 workers ...
|
||||
Generating static pages using 4 workers (0/3) ...
|
||||
✓ Generating static pages using 4 workers (3/3) in 1504ms
|
||||
Finalizing page optimization ...
|
||||
|
||||
Route (app)
|
||||
┌ ○ /
|
||||
└ ○ /_not-found
|
||||
|
||||
|
||||
○ (Static) prerendered as static content
|
||||
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
Binary file not shown.
@@ -1,13 +0,0 @@
|
||||
node :
|
||||
At line:1 char:122
|
||||
+ ... =$env:TEMP; node node_modules/jest/bin/jest.js --runInBand --runTests ...
|
||||
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
+ CategoryInfo : NotSpecified: (:String) [], RemoteException
|
||||
+ FullyQualifiedErrorId : NativeCommandError
|
||||
|
||||
Test Suites: 2 passed, 2 total
|
||||
Tests: 55 passed, 55 total
|
||||
Snapshots: 0 total
|
||||
Time: 29.011 s
|
||||
Ran all test suites within paths "src/interview-prep.test.tsx", "src/daily-control-loop.test.tsx".
|
||||
Test results written to: ..\..\interview-ai-context-final.json
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -1,361 +0,0 @@
|
||||
node : console.error
|
||||
At line:1 char:122
|
||||
+ ... =$env:TEMP; node node_modules/jest/bin/jest.js --runInBand --runTests ...
|
||||
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
+ CategoryInfo : NotSpecified: ( console.error:String) [], RemoteException
|
||||
+ FullyQualifiedErrorId : NativeCommandError
|
||||
|
||||
An update to InterviewAiAssistant inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
233 | setCv(null); setCvLoading(true); setCvError(null);
|
||||
234 | applicationAssetsApi.cv(jobId)
|
||||
> 235 | .then((result) => { if (active) setCv(result); })
|
||||
| ^
|
||||
236 | .catch((cause) => { if (active) setCvError({ cause }); })
|
||||
237 | .finally(() => { if (active) setCvLoading(false); });
|
||||
238 | return () => { active = false; };
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setCv (src/components/InterviewPrep.tsx:235:39)
|
||||
|
||||
console.error
|
||||
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
431 | try {
|
||||
432 | const result = await interviewPrepApi.followUp(jobId);
|
||||
> 433 | setData(result);
|
||||
| ^
|
||||
434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
|
||||
435 | setAction(result.nextAction ?? "");
|
||||
436 | setError(null);
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setData (src/components/InterviewPrep.tsx:433:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
432 | const result = await interviewPrepApi.followUp(jobId);
|
||||
433 | setData(result);
|
||||
> 434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
|
||||
| ^
|
||||
435 | setAction(result.nextAction ?? "");
|
||||
436 | setError(null);
|
||||
437 | } catch (err) {
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setDate (src/components/InterviewPrep.tsx:434:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
433 | setData(result);
|
||||
434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
|
||||
> 435 | setAction(result.nextAction ?? "");
|
||||
| ^
|
||||
436 | setError(null);
|
||||
437 | } catch (err) {
|
||||
438 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setAction (src/components/InterviewPrep.tsx:435:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : "");
|
||||
435 | setAction(result.nextAction ?? "");
|
||||
> 436 | setError(null);
|
||||
| ^
|
||||
437 | } catch (err) {
|
||||
438 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
|
||||
439 | } finally {
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setError (src/components/InterviewPrep.tsx:436:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationFollowUp inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
438 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" });
|
||||
439 | } finally {
|
||||
> 440 | setLoading(false);
|
||||
| ^
|
||||
441 | }
|
||||
442 | }, [jobId]);
|
||||
443 |
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setLoading (src/components/InterviewPrep.tsx:440:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
55 | setLoading(true);
|
||||
56 | try {
|
||||
> 57 | setBoard(await interviewPrepApi.get(jobId));
|
||||
| ^
|
||||
58 | setError(null);
|
||||
59 | } catch (err) {
|
||||
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setBoard (src/components/InterviewPrep.tsx:57:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
56 | try {
|
||||
57 | setBoard(await interviewPrepApi.get(jobId));
|
||||
> 58 | setError(null);
|
||||
| ^
|
||||
59 | } catch (err) {
|
||||
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
|
||||
61 | } finally {
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setError (src/components/InterviewPrep.tsx:58:7)
|
||||
|
||||
console.error
|
||||
An update to ApplicationInterviewPrep inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" });
|
||||
61 | } finally {
|
||||
> 62 | setLoading(false);
|
||||
| ^
|
||||
63 | }
|
||||
64 | }, [jobId]);
|
||||
65 |
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setLoading (src/components/InterviewPrep.tsx:62:7)
|
||||
|
||||
console.error
|
||||
An update to InterviewAiAssistant inside a test was not wrapped in act(...).
|
||||
|
||||
When testing, code that causes React state updates should be wrapped into act(...):
|
||||
|
||||
act(() => {
|
||||
/* fire events that update state */
|
||||
});
|
||||
/* assert on the output */
|
||||
|
||||
This ensures that you're testing the behavior the user would see in the browser. Learn more at
|
||||
https://react.dev/link/wrap-tests-with-act
|
||||
|
||||
235 | .then((result) => { if (active) setCv(result); })
|
||||
236 | .catch((cause) => { if (active) setCvError({ cause }); })
|
||||
> 237 | .finally(() => { if (active) setCvLoading(false); });
|
||||
| ^
|
||||
238 | return () => { active = false; };
|
||||
239 | }, [jobId, cvReadAttempt]);
|
||||
240 |
|
||||
|
||||
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
|
||||
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
|
||||
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
|
||||
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
|
||||
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
|
||||
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
|
||||
at setCvLoading (src/components/InterviewPrep.tsx:237:36)
|
||||
|
||||
FAIL src/interview-prep.test.tsx (6.032 s)
|
||||
● late generation cannot offer another application the previous application suggestion
|
||||
|
||||
expect(element).not.toBeInTheDocument()
|
||||
|
||||
expected document not to contain element, found <p class="MuiTypography-root MuiTypography-body2
|
||||
css-1jpc1n5-MuiTypography-root">Only for application seven</p> instead
|
||||
|
||||
356 | await act(async () => finish({ data: { result: { text: 'Only for application seven' } } }));
|
||||
357 | const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle }));
|
||||
> 358 | expect(assistant.queryByText('Only for application seven')).not.toBeInTheDocument();
|
||||
| ^
|
||||
359 | expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep
|
||||
})).not.toBeInTheDocument();
|
||||
360 | expect(assistant.getByLabelText(translations.en.coverAiAdditionalInstructions)).toHaveValue('');
|
||||
361 | expect(mockedApi.post).toHaveBeenCalledTimes(1);
|
||||
|
||||
at Object.toBeInTheDocument (src/interview-prep.test.tsx:358:67)
|
||||
|
||||
● completed AI suggestion is scoped to its application instead of becoming a new application draft
|
||||
|
||||
expect(element).not.toBeInTheDocument()
|
||||
|
||||
expected document not to contain element, found <p class="MuiTypography-root MuiTypography-body2
|
||||
css-1jpc1n5-MuiTypography-root">Prepared for application seven only</p> instead
|
||||
|
||||
371 | view.rerender(<I18nProvider><ConfirmProvider><ApplicationInterviewPrep jobId={8}
|
||||
/></ConfirmProvider></I18nProvider>);
|
||||
372 | const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle }));
|
||||
> 373 | expect(assistant.queryByText('Prepared for application seven only')).not.toBeInTheDocument();
|
||||
| ^
|
||||
374 | expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep
|
||||
})).not.toBeInTheDocument();
|
||||
375 | expect(mockedApi.post).not.toHaveBeenCalledWith('/jobapplications/8/interview-prep', expect.anything());
|
||||
376 | });
|
||||
|
||||
at Object.toBeInTheDocument (src/interview-prep.test.tsx:373:76)
|
||||
|
||||
● late accepted suggestion does not reload the previous application board into the current application
|
||||
|
||||
expect(received).toHaveLength(expected)
|
||||
|
||||
Expected length: 1
|
||||
Received length: 2
|
||||
Received array: [["/jobapplications/7/interview-prep"], ["/jobapplications/7/interview-prep"]]
|
||||
|
||||
389 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/jobapplications/8/interview-prep'));
|
||||
390 | await act(async () => finish({ data: board.groups[0].items[0] }));
|
||||
> 391 | expect(mockedApi.get.mock.calls.filter(([url]) => url ===
|
||||
'/jobapplications/7/interview-prep')).toHaveLength(1);
|
||||
| ^
|
||||
392 | expect(mockedApi.get.mock.calls.filter(([url]) => url ===
|
||||
'/jobapplications/8/interview-prep')).toHaveLength(1);
|
||||
393 | expect(mockedApi.post.mock.calls[1]).toEqual(['/jobapplications/7/interview-prep',
|
||||
expect.objectContaining({ source: 'ai', content: 'Application seven suggestion' })]);
|
||||
394 | });
|
||||
|
||||
at Object.toHaveLength (src/interview-prep.test.tsx:391:99)
|
||||
|
||||
Test Suites: 1 failed, 1 total
|
||||
Tests: 3 failed, 48 skipped, 51 total
|
||||
Snapshots: 0 total
|
||||
Time: 7.657 s, estimated 24 s
|
||||
Ran all test suites within paths "src/interview-prep.test.tsx".
|
||||
Test results written to: ..\..\interview-ai-context-red.json
|
||||
Binary file not shown.
BIN
Binary file not shown.
Generated
+70
-84
@@ -3167,13 +3167,6 @@
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/@isaacs/nonrecursive-glob-match": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@isaacs/nonrecursive-glob-match/-/nonrecursive-glob-match-1.1.0.tgz",
|
||||
"integrity": "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==",
|
||||
"dev": true,
|
||||
"license": "BlueOak-1.0.0"
|
||||
},
|
||||
"node_modules/@istanbuljs/load-nyc-config": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz",
|
||||
@@ -4798,17 +4791,17 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||
"version": "8.73.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.73.0.tgz",
|
||||
"integrity": "sha512-UkygMFer53Yzn29MCYFTHf34hGXf5KJhiDWfIm1tXtXRrym1CS6l5H9Y3yCtPWChpC0/f93H88gdj8tN0dd4kw==",
|
||||
"version": "8.68.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.68.0.tgz",
|
||||
"integrity": "sha512-WASHDpCm6qO5jj9g1a+8NiW5+GCkAyLReR56/4VruYmNgfUmqpxOfZ2Yfb8xGfJPWv5Qi6LSD8sXdces3vbp/Q==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.12.2",
|
||||
"@typescript-eslint/scope-manager": "8.73.0",
|
||||
"@typescript-eslint/type-utils": "8.73.0",
|
||||
"@typescript-eslint/utils": "8.73.0",
|
||||
"@typescript-eslint/visitor-keys": "8.73.0",
|
||||
"@typescript-eslint/scope-manager": "8.68.0",
|
||||
"@typescript-eslint/type-utils": "8.68.0",
|
||||
"@typescript-eslint/utils": "8.68.0",
|
||||
"@typescript-eslint/visitor-keys": "8.68.0",
|
||||
"ignore": "^7.0.5",
|
||||
"natural-compare": "^1.4.0",
|
||||
"ts-api-utils": "^2.5.0"
|
||||
@@ -4821,15 +4814,15 @@
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@typescript-eslint/parser": "^8.73.0",
|
||||
"@typescript-eslint/parser": "^8.68.0",
|
||||
"eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",
|
||||
"typescript": ">=4.8.4 <6.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": {
|
||||
"version": "7.0.16",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.16.tgz",
|
||||
"integrity": "sha512-52N+Y4HRMOJmbLmr+DqO4iSRyyB7N52gm7PWCT6h0p978+oKbqHCB7gIJIwZvBUsjlSdWbrBFqUSmIFNZMpn0A==",
|
||||
"version": "7.0.6",
|
||||
"resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.6.tgz",
|
||||
"integrity": "sha512-BAg6QkE8W+TuQLrrw0Ugr7HegXduRuuj8/ti2kSOc+jz1dmx8/WNcjr6XGnq5YpDWxFwwaavqD0+jIUOKelTsw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
@@ -4837,16 +4830,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser": {
|
||||
"version": "8.73.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.73.0.tgz",
|
||||
"integrity": "sha512-AuL45bVcmssHfZ3Di3cs9Q0l4gBm4ZFVrJOQEE7VpqW+PVgQaEwSwazz4TVIiFabXkk6U51EprYDwqw+HR8ePw==",
|
||||
"version": "8.68.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.68.0.tgz",
|
||||
"integrity": "sha512-fHq2VC1kpyYfvEcbiMjOpySY4WS7voEp89yAThrHRX5sm9j2lzYppCb2umFMEed4fWcyeLjHxrz0mpjNBaBxMQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "8.73.0",
|
||||
"@typescript-eslint/types": "8.73.0",
|
||||
"@typescript-eslint/typescript-estree": "8.73.0",
|
||||
"@typescript-eslint/visitor-keys": "8.73.0",
|
||||
"@typescript-eslint/scope-manager": "8.68.0",
|
||||
"@typescript-eslint/types": "8.68.0",
|
||||
"@typescript-eslint/typescript-estree": "8.68.0",
|
||||
"@typescript-eslint/visitor-keys": "8.68.0",
|
||||
"debug": "^4.4.3"
|
||||
},
|
||||
"engines": {
|
||||
@@ -4862,14 +4855,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/project-service": {
|
||||
"version": "8.73.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.73.0.tgz",
|
||||
"integrity": "sha512-/pEf8Rc4Mjk+qJnY0uO1+Gadeal8uv50xpuic+srG2vIVatA0XxvWMUeMtFvs6OCHqftiQ7/+qH4aehG5stzIA==",
|
||||
"version": "8.68.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.68.0.tgz",
|
||||
"integrity": "sha512-5GQtWZCXFcFYux955pvoS02WLc49pXNlvIxocKjS0clvwo3in1RdlzVKyiqQH9vE5AKWFLTaUgeQkOrTS+0Qxw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/tsconfig-utils": "^8.73.0",
|
||||
"@typescript-eslint/types": "^8.73.0",
|
||||
"@typescript-eslint/tsconfig-utils": "^8.68.0",
|
||||
"@typescript-eslint/types": "^8.68.0",
|
||||
"debug": "^4.4.3"
|
||||
},
|
||||
"engines": {
|
||||
@@ -4884,14 +4877,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/scope-manager": {
|
||||
"version": "8.73.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.73.0.tgz",
|
||||
"integrity": "sha512-/TjD738Iq2rzj5z0ixVOi+TsvgjAzZPLPaH1yWdDBytR/HTR5gMpyYWZeCe5WTQZLwk3ho8AV7U3muoQCRtXBQ==",
|
||||
"version": "8.68.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.68.0.tgz",
|
||||
"integrity": "sha512-T5eXpcaJNg8bhjHJ8Rjp68Vq/QBteYtTKY8TZqVNPaUbuz0f6jI9t6aDkylwvalpAB9XTTFeFOjrjXAZ3YvmVA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.73.0",
|
||||
"@typescript-eslint/visitor-keys": "8.73.0"
|
||||
"@typescript-eslint/types": "8.68.0",
|
||||
"@typescript-eslint/visitor-keys": "8.68.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
@@ -4902,9 +4895,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/tsconfig-utils": {
|
||||
"version": "8.73.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.73.0.tgz",
|
||||
"integrity": "sha512-lmtCFOfYaJfpqZywGuXi4FpNtE+NQ+YLe3T0K9rtEDcW8ZuGWvfI++pj8r05sYMI8vWT2CYK4rWyedmD6Rp4og==",
|
||||
"version": "8.68.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.68.0.tgz",
|
||||
"integrity": "sha512-F7zrGQfiJHojPwi8vhxZQC1tWtJzvL74cK/nqri2lk8YUXvYaYwl263xOJ69jDWPUk1hmcdoayFwk9lX09npVw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
@@ -4919,15 +4912,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils": {
|
||||
"version": "8.73.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.73.0.tgz",
|
||||
"integrity": "sha512-MOC9i4xy1F7KcDde7Ip8jf1SrRiALb2Km4UWxGNjUE2YlhjIEo1ayE27GHIwIQyfWuHTmEonQT14uyurlyC6aA==",
|
||||
"version": "8.68.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.68.0.tgz",
|
||||
"integrity": "sha512-X77zqoY1EjeWGs/0JNxeaMfp5C5lIz4Tw8y66F1Ne8Faq6g424sBNYM6xBAqElfGZPLpWS+CZAp0DXyKDzWiHg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.73.0",
|
||||
"@typescript-eslint/typescript-estree": "8.73.0",
|
||||
"@typescript-eslint/utils": "8.73.0",
|
||||
"@typescript-eslint/types": "8.68.0",
|
||||
"@typescript-eslint/typescript-estree": "8.68.0",
|
||||
"@typescript-eslint/utils": "8.68.0",
|
||||
"debug": "^4.4.3",
|
||||
"ts-api-utils": "^2.5.0"
|
||||
},
|
||||
@@ -4944,9 +4937,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/types": {
|
||||
"version": "8.73.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.73.0.tgz",
|
||||
"integrity": "sha512-O/1ytYzflF16QDKXx4/qOXg1IuZp+n7hr9t+S0nv7N/2Tl8rJiNCshztV1gcSUvHbPtoX3+zmNbtSAyVbzxVfw==",
|
||||
"version": "8.68.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.68.0.tgz",
|
||||
"integrity": "sha512-9RnpsGJjrAllCMefGVVsImJM24YurhC0Q1h4UbvivtvOqXmR/vEJge2OoE++z9m6hyg8T1Q8t5SNT6tHSbrxcg==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
@@ -4958,18 +4951,18 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/typescript-estree": {
|
||||
"version": "8.73.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.73.0.tgz",
|
||||
"integrity": "sha512-InjlBkSdWceIwIBWSwS3ENUp+i0O02PGX3Zv2wnihWJC1WDVGvG7mTHuf8b57uAaITj94d6tRPDH+sUEtXdRQQ==",
|
||||
"version": "8.68.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.68.0.tgz",
|
||||
"integrity": "sha512-OKKsD0tYmoNiU5PW2zehO1yO56jYOm1ShYlxon/Z0SJNidAkdVg86eg9ruRuoXf8xfnuWZGbwDsStkoXbZtIIA==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/project-service": "8.73.0",
|
||||
"@typescript-eslint/tsconfig-utils": "8.73.0",
|
||||
"@typescript-eslint/types": "8.73.0",
|
||||
"@typescript-eslint/visitor-keys": "8.73.0",
|
||||
"@typescript-eslint/project-service": "8.68.0",
|
||||
"@typescript-eslint/tsconfig-utils": "8.68.0",
|
||||
"@typescript-eslint/types": "8.68.0",
|
||||
"@typescript-eslint/visitor-keys": "8.68.0",
|
||||
"debug": "^4.4.3",
|
||||
"minimatch": "^11.0.1",
|
||||
"minimatch": "^10.2.2",
|
||||
"semver": "^7.7.3",
|
||||
"tinyglobby": "^0.2.15",
|
||||
"ts-api-utils": "^2.5.0"
|
||||
@@ -4982,43 +4975,36 @@
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@typescript/native": "npm:typescript@>=7.1.0-dev.20261009.1 || >=7.1.0-beta <7.1.0-dev",
|
||||
"typescript": ">=4.8.4 <6.1.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@typescript/native": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
|
||||
"version": "11.0.9",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz",
|
||||
"integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==",
|
||||
"version": "10.2.6",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
|
||||
"integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
|
||||
"dev": true,
|
||||
"license": "BlueOak-1.0.0",
|
||||
"dependencies": {
|
||||
"@isaacs/nonrecursive-glob-match": "^1.1.0",
|
||||
"brace-expansion": "^5.0.12"
|
||||
"brace-expansion": "^5.0.8"
|
||||
},
|
||||
"engines": {
|
||||
"node": "20 || >=22"
|
||||
"node": "18 || 20 || >=22"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils": {
|
||||
"version": "8.73.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.73.0.tgz",
|
||||
"integrity": "sha512-j2SVJJvVkXdUL0WcEzo4vEH1mO1vIi8KlVukcYA2MgMZvYN2LlZR4PmsW+GTSxSW24j6Q/EP7+MOifLtg5hmsA==",
|
||||
"version": "8.68.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.68.0.tgz",
|
||||
"integrity": "sha512-PB5gJMMOg0Q5P1tsgWtEAqQacJXq0qEqRHDX/YJ4FaTMLfZPpHB3gjl2EJuiZyPABxmj4ZQYiY9m1bdAJ5y7tQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.9.1",
|
||||
"@typescript-eslint/scope-manager": "8.73.0",
|
||||
"@typescript-eslint/types": "8.73.0",
|
||||
"@typescript-eslint/typescript-estree": "8.73.0"
|
||||
"@typescript-eslint/scope-manager": "8.68.0",
|
||||
"@typescript-eslint/types": "8.68.0",
|
||||
"@typescript-eslint/typescript-estree": "8.68.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
@@ -5033,13 +5019,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/visitor-keys": {
|
||||
"version": "8.73.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.73.0.tgz",
|
||||
"integrity": "sha512-k4lsFVpRZICbltkIEEH4hZRkwXkqDF1GHBpClKQOHQY+RkoZAAuyc1ci3I6p+CB6v3U4jaHIUshc4RzzQXZWLg==",
|
||||
"version": "8.68.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.68.0.tgz",
|
||||
"integrity": "sha512-YR65gGdGvTUAWLldC3xLOvOzamdGzB4A5/N8rehEaHs3Zvoe39BhgY+u0SPch1OvrVTfLcc55wsSgK2NcnTS/A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.73.0",
|
||||
"@typescript-eslint/types": "8.68.0",
|
||||
"eslint-visitor-keys": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
@@ -12529,16 +12515,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript-eslint": {
|
||||
"version": "8.73.0",
|
||||
"resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.73.0.tgz",
|
||||
"integrity": "sha512-+EnKy9rkYPun4l+kG2bDuYWQ6y1tGVgdR/tY1U9AC6h21CjEwOoc7gsjwe0FXB8uWFzk4QiCFbuRWgX758PiAg==",
|
||||
"version": "8.68.0",
|
||||
"resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.68.0.tgz",
|
||||
"integrity": "sha512-MHy0Y0ynqeEbx/S45+i/bBssdy3X6KNBfmJAP35GrgtNxu2TQ5K5xsFDhAnmsq1jvpdoZOPG1LGtJo0HWqYCrQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@typescript-eslint/eslint-plugin": "8.73.0",
|
||||
"@typescript-eslint/parser": "8.73.0",
|
||||
"@typescript-eslint/typescript-estree": "8.73.0",
|
||||
"@typescript-eslint/utils": "8.73.0"
|
||||
"@typescript-eslint/eslint-plugin": "8.68.0",
|
||||
"@typescript-eslint/parser": "8.68.0",
|
||||
"@typescript-eslint/typescript-estree": "8.68.0",
|
||||
"@typescript-eslint/utils": "8.68.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
"typecheck": "tsc --noEmit --incremental false",
|
||||
"test": "jest",
|
||||
"test:redirect-security": "node --test test/follow-redirects-security.test.mjs",
|
||||
"test:glob-security": "node --test test/typescript-eslint-glob-security.test.mjs",
|
||||
"test:pdf-admission": "playwright test --config=playwright.pdf.config.ts",
|
||||
"test:rate-limits": "playwright test --config=playwright.rate-limits.config.ts",
|
||||
"test:e2e": "node ./scripts/run-e2e.mjs"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
|
||||
import React, { useCallback, useEffect, useState } from "react";
|
||||
|
||||
import {
|
||||
Alert, Box, Button, Checkbox, Chip, IconButton, LinearProgress, MenuItem, Paper,
|
||||
@@ -199,7 +199,7 @@ export function ApplicationInterviewPrep({ jobId }: { jobId: number }) {
|
||||
</Stack>
|
||||
</Shell>
|
||||
|
||||
<InterviewAiAssistant key={jobId} jobId={jobId} onAccepted={load} />
|
||||
<InterviewAiAssistant jobId={jobId} onAccepted={load} />
|
||||
|
||||
<ApplicationFollowUp jobId={jobId} />
|
||||
</Stack>
|
||||
@@ -215,11 +215,6 @@ const INTERVIEW_AI_FOCUS = [
|
||||
] as const;
|
||||
|
||||
function InterviewAiAssistant({ jobId, onAccepted }: { jobId: number; onAccepted: () => void }) {
|
||||
const active = useRef(true);
|
||||
useLayoutEffect(() => {
|
||||
active.current = true;
|
||||
return () => { active.current = false; };
|
||||
}, []);
|
||||
const { canUseAi } = useAccountPlan();
|
||||
const { language: uiLanguage, t } = useI18n();
|
||||
const [cv, setCv] = useState<ApplicationCv | null>(null);
|
||||
@@ -277,7 +272,6 @@ function InterviewAiAssistant({ jobId, onAccepted }: { jobId: number; onAccepted
|
||||
content: suggestion,
|
||||
source: "ai",
|
||||
});
|
||||
if (!active.current) return;
|
||||
setSuggestion("");
|
||||
onAccepted();
|
||||
} catch (err) {
|
||||
|
||||
@@ -343,56 +343,6 @@ test("AI preparation uses the linked CV and only saves after explicit acceptance
|
||||
));
|
||||
});
|
||||
|
||||
test('late generation cannot offer another application the previous application suggestion', async () => {
|
||||
mockedApi.get.mockReset(); routeGet();
|
||||
let finish!: (value: any) => void;
|
||||
mockedApi.post.mockReset().mockReturnValueOnce(new Promise(resolve => { finish = resolve; }) as any);
|
||||
const view = render(<ApplicationInterviewPrep jobId={7} />);
|
||||
await screen.findByText('Backend CV');
|
||||
fireEvent.change(screen.getByLabelText(translations.en.coverAiAdditionalInstructions), { target: { value: 'Private instructions for application seven' } });
|
||||
fireEvent.click(screen.getByRole('button', { name: translations.en.interviewAiGenerate }));
|
||||
await waitFor(() => expect(mockedApi.post).toHaveBeenCalledTimes(1));
|
||||
view.rerender(<I18nProvider><ConfirmProvider><ApplicationInterviewPrep jobId={8} /></ConfirmProvider></I18nProvider>);
|
||||
await act(async () => finish({ data: { result: { text: 'Only for application seven' } } }));
|
||||
const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle }));
|
||||
expect(assistant.queryByText('Only for application seven')).not.toBeInTheDocument();
|
||||
expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep })).not.toBeInTheDocument();
|
||||
expect(assistant.getByLabelText(translations.en.coverAiAdditionalInstructions)).toHaveValue('');
|
||||
expect(mockedApi.post).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
test('completed AI suggestion is scoped to its application instead of becoming a new application draft', async () => {
|
||||
mockedApi.get.mockReset(); routeGet();
|
||||
mockedApi.post.mockReset().mockResolvedValue({ data: { result: { text: 'Prepared for application seven only' } } } as any);
|
||||
const view = render(<ApplicationInterviewPrep jobId={7} />);
|
||||
await screen.findByText('Backend CV');
|
||||
fireEvent.click(screen.getByRole('button', { name: translations.en.interviewAiGenerate }));
|
||||
expect(await screen.findByText('Prepared for application seven only')).toBeVisible();
|
||||
view.rerender(<I18nProvider><ConfirmProvider><ApplicationInterviewPrep jobId={8} /></ConfirmProvider></I18nProvider>);
|
||||
const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle }));
|
||||
expect(assistant.queryByText('Prepared for application seven only')).not.toBeInTheDocument();
|
||||
expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep })).not.toBeInTheDocument();
|
||||
expect(mockedApi.post).not.toHaveBeenCalledWith('/jobapplications/8/interview-prep', expect.anything());
|
||||
});
|
||||
|
||||
test('late accepted suggestion does not reload the previous application board into the current application', async () => {
|
||||
mockedApi.get.mockReset(); routeGet();
|
||||
let finish!: (value: any) => void;
|
||||
mockedApi.post.mockReset().mockResolvedValueOnce({ data: { result: { text: 'Application seven suggestion' } } } as any).mockReturnValueOnce(new Promise(resolve => { finish = resolve; }) as any);
|
||||
const view = render(<ApplicationInterviewPrep jobId={7} />);
|
||||
await screen.findByText('Backend CV');
|
||||
fireEvent.click(screen.getByRole('button', { name: translations.en.interviewAiGenerate }));
|
||||
await screen.findByText('Application seven suggestion');
|
||||
fireEvent.click(screen.getByRole('button', { name: translations.en.interviewAiAddToPrep }));
|
||||
await waitFor(() => expect(mockedApi.post).toHaveBeenCalledTimes(2));
|
||||
view.rerender(<I18nProvider><ConfirmProvider><ApplicationInterviewPrep jobId={8} /></ConfirmProvider></I18nProvider>);
|
||||
await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/jobapplications/8/interview-prep'));
|
||||
await act(async () => finish({ data: board.groups[0].items[0] }));
|
||||
expect(mockedApi.get.mock.calls.filter(([url]) => url === '/jobapplications/7/interview-prep')).toHaveLength(1);
|
||||
expect(mockedApi.get.mock.calls.filter(([url]) => url === '/jobapplications/8/interview-prep')).toHaveLength(1);
|
||||
expect(mockedApi.post.mock.calls[1]).toEqual(['/jobapplications/7/interview-prep', expect.objectContaining({ source: 'ai', content: 'Application seven suggestion' })]);
|
||||
});
|
||||
|
||||
test.each(['en', 'nb'] as const)('pending linked CV is loading, not an empty selection (%s)', async language => {
|
||||
localStorage.setItem('uiLanguage', language);
|
||||
mockedApi.get.mockReset(); routeGet();
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import { createRequire } from 'node:module';
|
||||
import test from 'node:test';
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
const estreeRequire = createRequire(require.resolve('@typescript-eslint/typescript-estree'));
|
||||
const { Minimatch } = estreeRequire('minimatch');
|
||||
|
||||
test('TypeScript ESLint glob preprocessing respects its expansion budget', () => {
|
||||
// Eight repetitions keep the affected-version reproduction bounded to 256 patterns.
|
||||
const pattern = Array(8).fill('**/../a/b').join('/');
|
||||
assert.throws(
|
||||
() => new Minimatch(pattern, { optimizationLevel: 2, braceExpandMax: 64 }),
|
||||
{ name: 'RangeError', message: "optimizationLevel 2: too many patterns from '**/..'" },
|
||||
);
|
||||
});
|
||||
|
||||
test('TypeScript ESLint glob matching preserves ordinary path behavior', () => {
|
||||
const matcher = new Minimatch('**/../a/b/**/../c/d', { optimizationLevel: 2 });
|
||||
assert.equal(matcher.match('../a/b/../c/d'), true);
|
||||
assert.equal(matcher.match('x/a/b/y/c/d'), true);
|
||||
assert.equal(new Minimatch('src/**/*.tsx').match('src/components/Example.tsx'), true);
|
||||
assert.equal(new Minimatch('src/**/*.tsx').match('src/components/Example.js'), false);
|
||||
});
|
||||
Reference in New Issue
Block a user