Commit a1af449
fix: 29 more bang-equals bugs (round 3) — broader regex catches
.trim()/.length chains and !X !== Y / !X < N variants
Earlier passes used a narrow regex that missed `!X.trim() === ""`,
`!X.trim().length === 0`, `!X.length < N`, and `!X !== Y`. Round 3
runs a broader scan: any `!IDENT(.method())*` followed by ===, !==, <,
or > and a comparand. Result: 29 more lines fixed across 23 files in
cloud, packages/core/src, plugins, and apps.
Sample fixes (all the same shape — drop the spurious leading `!`):
- packages/core/src/features/knowledge/utils.ts:103 — pdf empty-text
check would never fire, returning text contained only whitespace.
- packages/core/src/services/message.ts:6328 — text-empty fallback dead.
- packages/core/src/services/onboarding-state.ts:725,739 — apiKey/
setupToken empty-check inverted; would always proceed past validation.
- packages/core/src/features/trajectories/art-format.ts:289,292 —
small-prompt threshold check inverted.
- plugins/plugin-edge-tts/src/index.ts:209 — empty-text guard inverted
(TTS would attempt to synthesize empty input).
- apps/app-lifeops/src/lifeops/cross-channel-search.ts:1066 — query
empty-string validation never fired.
- apps/app-scape/src/sdk/index.ts, plugins/plugin-{minecraft,openai,
imessage,clanker,...} — same pattern in each.
Verified: bun run --cwd cloud/apps/{api,frontend} typecheck PASS.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 63bfc76 commit a1af449
23 files changed
Lines changed: 29 additions & 29 deletions
File tree
- apps
- app-lifeops/src
- activity-profile
- lifeops
- checkin
- travel-adapters
- website-blocker
- app-scape/src/sdk
- cloud/packages/steward/packages
- agent-trader/src
- auth/src
- packages/core/src
- features
- advanced-capabilities/personality/providers
- advanced-planning/services
- knowledge
- trajectories
- services
- plugins
- plugin-agent-orchestrator/src/services
- plugin-clanker/src/services
- plugin-edge-tts/src
- plugin-farcaster/client
- plugin-imessage/src
- plugin-local-ai/utils
- plugin-minecraft/src/services
- plugin-openai/models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1066 | 1066 | | |
1067 | 1067 | | |
1068 | 1068 | | |
1069 | | - | |
| 1069 | + | |
1070 | 1070 | | |
1071 | 1071 | | |
1072 | 1072 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
807 | | - | |
| 807 | + | |
808 | 808 | | |
809 | 809 | | |
810 | | - | |
| 810 | + | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
| 813 | + | |
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
0 commit comments