Commit b8b1b8a
committed
fix(core): typesVersions entry for v3/chat-client + inline CodeQL guards
- typesVersions: add `v3/chat-client` mapping. The export was declared in
`tshy.exports` and the conditional export block but missing from
`typesVersions` — `attw --pack` flagged "@trigger.dev/core/v3/chat-client"
as `node10: 💀 Resolution failed`.
- chat.store JSON Patch: add an `assertSafeKey` guard at the assignment
sites in `removeAt` / `insertAt`. parseJsonPointer already rejects
`__proto__` / `constructor` / `prototype`, but CodeQL's prototype-pollution
analysis doesn't trace through the parser boundary — the local check at
the assignment keeps the static analysis happy and is also a real
defense-in-depth backstop against any future caller that bypasses
parseJsonPointer.1 parent 64699af commit b8b1b8a
2 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
119 | 129 | | |
| 130 | + | |
120 | 131 | | |
121 | 132 | | |
122 | 133 | | |
| |||
129 | 140 | | |
130 | 141 | | |
131 | 142 | | |
| 143 | + | |
132 | 144 | | |
133 | 145 | | |
134 | 146 | | |
| |||
0 commit comments