feat(bazel): standalone building block authority#1
Conversation
Sync to 0.2.2. Part of TIN-652.
Greptile SummaryThis PR graduates Confidence Score: 5/5Safe to merge; only P2 style suggestions remain after accounting for the previously flagged provenance removal. No P0 or P1 findings. The two new inline comments are P2 quality suggestions (immutable export, noauth case-sensitivity). The provenance removal was already flagged in a prior review comment and is a pre-existing concern. src/resolution.ts — two minor P2 items worth addressing before wide adoption of the library. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A([resolveUser\nhandle]) --> B{findUserByHandle\nthrows?}
B -- No --> C{dbUser\nfound?}
B -- Yes, warn --> D[resolveUserFromProfile]
C -- Yes --> E([return ResolvedUser\nsource: directory])
C -- No --> D
D --> F{profileCache\nvalid & has handle?}
F -- Yes --> G([return cached\nResolvedUser or null])
F -- No, expired --> H[reset cache map\nreset cacheTime]
F -- No, miss --> I[loadProfiles\nfilter: handle]
H --> I
I --> J{profiles\nreturned?}
J -- Yes --> K[build ResolvedUser\ncache result]
J -- No --> L[cache null]
K --> M([return ResolvedUser\nsource: profile])
L --> N{handle === 'admin'\n&& isNoAuthMode?}
N -- Yes --> O([return noauth\nResolvedUser])
N -- No --> P([return null])
I -- throws --> Q[cache null\nlog error]
Q --> N
Reviews (2): Last reviewed commit: "fix(bazel): align source map outputs wit..." | Re-trigger Greptile |
Sync to 0.2.2, standalone authority. Part of TIN-652. tc:✓ bld:✓ pl:✓