Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1437 commits
Select commit Hold shift + click to select a range
2bc68e2
docs(email): document client email environment
tanushpatel-git Nov 4, 2026
8c0bafb
feat(email): add HTTP client for standalone service
tanushpatel-git Nov 4, 2026
cd2dddb
test(email): cover email service client
tanushpatel-git Nov 4, 2026
05102af
feat(email): schedule welcome emails after responses
tanushpatel-git Nov 4, 2026
d659910
feat(email): export welcome email helpers
tanushpatel-git Nov 4, 2026
b9ff9f6
feat(auth): queue welcome email after registration
tanushpatel-git Nov 4, 2026
586cb3a
feat(auth): queue welcome email for new Firebase users
tanushpatel-git Nov 4, 2026
4dbd1d4
feat(email): run email service with the stack
tanushpatel-git Nov 4, 2026
dabf3a4
refactor(llm): extract repo retrieval and context helpers
tanushpatel-git Nov 4, 2026
f30d0d6
feat(llm): detect repo chat intent and answer questions
tanushpatel-git Nov 4, 2026
3562467
feat(llm): add conversational repo chat controller
tanushpatel-git Nov 4, 2026
6136ebf
fix(git): avoid reloading the active workspace file
tanushpatel-git Nov 4, 2026
2512b34
feat(git): add conversational repo chat to workspace
tanushpatel-git Nov 4, 2026
5ba85d3
fix(git): isolate repo chat scrolling and render markdown
tanushpatel-git Nov 4, 2026
2cfa04c
refactor(llm): expose chat usage metadata
tanushpatel-git Nov 4, 2026
a2e2975
feat(llm): expose conversational repo chat route
tanushpatel-git Nov 4, 2026
c9971d4
feat(gateway): proxy repo chat requests
tanushpatel-git Nov 4, 2026
328817d
feat(gateway): mount repo chat endpoint
tanushpatel-git Nov 4, 2026
3b37561
feat(api): add conversational repo chat route
tanushpatel-git Nov 4, 2026
1562276
feat(llm): add hybrid commit ranking helpers
tanushpatel-git Nov 4, 2026
17198d3
feat(llm): persist commit embeddings across searches
tanushpatel-git Nov 4, 2026
f304001
feat(llm): add commit embedding schema
tanushpatel-git Nov 4, 2026
3e11059
feat(llm): configure commit retrieval settings
tanushpatel-git Nov 4, 2026
0465cee
chore(llm): add commit search test and eval scripts
tanushpatel-git Nov 4, 2026
5994706
test(llm): cover commit search ranking helpers
tanushpatel-git Nov 4, 2026
8842975
chore(llm): ignore commit eval run output
tanushpatel-git Nov 4, 2026
f7b8328
test(llm): add commit search eval cases
tanushpatel-git Nov 4, 2026
70debe1
feat(llm): add commit search eval harness
tanushpatel-git Nov 4, 2026
d3ba28f
feat(llm): use hybrid commit retrieval and report cost
tanushpatel-git Nov 4, 2026
8b4e6e4
fix(git): tighten GitHub commit helper types
tanushpatel-git Nov 4, 2026
7c813ee
feat(git): load commit descriptions and diff summaries
tanushpatel-git Nov 4, 2026
d8459a4
feat(commits): add retrieval and enrichment types
tanushpatel-git Nov 4, 2026
cb98a14
feat(commits): pass commit enrichment and retrieval metadata
tanushpatel-git Nov 4, 2026
f3c0a91
docs(commit): document hybrid retrieval design
tanushpatel-git Nov 4, 2026
42a513f
docs(commit): document enrichment, responses, and config
tanushpatel-git Nov 4, 2026
b59ba7c
docs(commit): document eval workflow and limits
tanushpatel-git Nov 4, 2026
33ad9ec
docs(commit): add retrieval evaluation report
tanushpatel-git Nov 4, 2026
64a604a
feat(cli): save project login in staging index
tanushpatel-git Nov 4, 2026
6ba4203
fix(cli): expire terminal CLI sessions
tanushpatel-git Nov 4, 2026
850b3b3
feat(cli): show CLI session lifetime
tanushpatel-git Nov 4, 2026
ab09909
docs(library): normalize reference formatting
tanushpatel-git Nov 4, 2026
6c0e0b9
docs(library): document CLI session storage
tanushpatel-git Nov 4, 2026
bb6f007
docs(library): document quoted code ids and file changes
tanushpatel-git Nov 4, 2026
b8f9d36
docs(library): refresh new files and caveats
tanushpatel-git Nov 4, 2026
902403b
chore(byte): ignore local staging data
tanushpatel-git Nov 4, 2026
0c7d721
fix(byte): untrack local staging index
tanushpatel-git Nov 4, 2026
d719bb5
refactor(dashboard): remove unused sidebar links
tanushpatel-git Nov 4, 2026
a3f8921
refactor(dashboard): remove unused icon import
tanushpatel-git Nov 4, 2026
492bc66
Update the gitignore so the Note.md file should not be track
tanushpatel-git Nov 4, 2026
917c2bb
refactor(auth): drop guest role from shared validation
tanushpatel-git Nov 5, 2026
d746501
refactor(auth): remove guest option from role picker
tanushpatel-git Nov 5, 2026
c493bf8
refactor(auth): reduce role picker to two columns
tanushpatel-git Nov 5, 2026
26ac2ba
refactor(auth): default auth forms to student
tanushpatel-git Nov 5, 2026
82d3b4d
test(auth): cover retired guest role
tanushpatel-git Nov 5, 2026
e4bdddb
refactor(file-service): align user roles with dashboard
tanushpatel-git Nov 5, 2026
7b0def1
refactor(auth): clarify signed-out CTA loading state
tanushpatel-git Nov 5, 2026
00cdcb4
feat(db): add avatar storage and normalize user roles
tanushpatel-git Nov 5, 2026
10e1f27
feat(db): add avatar fields to user repository
tanushpatel-git Nov 5, 2026
4cbe021
refactor(db): default new users to student role
tanushpatel-git Nov 5, 2026
2f9439e
feat(db): add avatar update query
tanushpatel-git Nov 5, 2026
06ed074
fix(auth): backfill avatar URL for cached sessions
tanushpatel-git Nov 5, 2026
9ff16f6
docs(auth): document avatar repository fields
tanushpatel-git Nov 5, 2026
1c2b15d
docs(auth): replace guest wording with signed-out state
tanushpatel-git Nov 5, 2026
d0e56f0
docs(auth): update supported auth roles
tanushpatel-git Nov 5, 2026
e7f4cca
docs(auth): document protected code routes
tanushpatel-git Nov 5, 2026
048b7e2
feat(imagekit): add server-side upload and delete client
tanushpatel-git Nov 5, 2026
1bb2dfe
feat(env): add ImageKit server configuration
tanushpatel-git Nov 5, 2026
8603073
docs(env): document ImageKit variables
tanushpatel-git Nov 5, 2026
ded5260
feat(config): allow ImageKit avatar hostnames
tanushpatel-git Nov 5, 2026
8431198
feat(api): add profile avatar upload and delete route
tanushpatel-git Nov 5, 2026
dafdc85
feat(account): delete avatar when account is removed
tanushpatel-git Nov 5, 2026
cb7b409
feat(auth): add avatar URL to session user type
tanushpatel-git Nov 5, 2026
58aecab
fix(http): skip JSON content type for FormData
tanushpatel-git Nov 5, 2026
1fef1f7
test(http): include avatar URL in session fixture
tanushpatel-git Nov 5, 2026
625f2cf
test(http): cover FormData upload headers
tanushpatel-git Nov 5, 2026
562a687
feat(auth): add avatar upload and removal thunks
tanushpatel-git Nov 5, 2026
5ae3ff3
docs(auth): clarify signed-out bootstrap wording
tanushpatel-git Nov 5, 2026
d7fb6dc
feat(store): allow avatar files through serializable checks
tanushpatel-git Nov 5, 2026
c50d5f2
feat(auth): add avatar upload hook
tanushpatel-git Nov 5, 2026
58bb78a
feat(auth): add avatar removal hook
tanushpatel-git Nov 5, 2026
ec80d1a
feat(auth): export avatar hooks
tanushpatel-git Nov 5, 2026
f64ee06
feat(dashboard): add avatar image transform helper
tanushpatel-git Nov 5, 2026
d644da1
feat(dashboard): load header avatar from session
tanushpatel-git Nov 5, 2026
780e4c3
refactor(settings): use account avatar state
tanushpatel-git Nov 5, 2026
57e5562
feat(settings): add avatar, merchant code and tabbed navigation
tanushpatel-git Nov 5, 2026
3e96be6
refactor(dashboard): remove local avatar preference
tanushpatel-git Nov 5, 2026
1029de5
feat(dashboard): add seeking control route
tanushpatel-git Nov 5, 2026
ee03fef
feat(dashboard): add seeking control panel
tanushpatel-git Nov 5, 2026
1e7ef11
feat(dashboard): link seeking control in sidebar
tanushpatel-git Nov 5, 2026
a561b70
feat(db): add notifications table with 30-day retention
tanushpatel-git Nov 7, 2026
4433cf8
feat(db): add notification repository with lazy pruning
tanushpatel-git Nov 7, 2026
c47b8db
feat(api): add notifications list create and mark-all routes
tanushpatel-git Nov 7, 2026
7f21a3b
feat(api): add mark single notification read route
tanushpatel-git Nov 7, 2026
6c773ba
feat(client): add notification api client
tanushpatel-git Nov 7, 2026
56218f9
feat(client): add useNotifications react query hook
tanushpatel-git Nov 7, 2026
e9200da
feat(ui): add notifications dashboard page panel
tanushpatel-git Nov 7, 2026
1a461fc
feat(ui): add bell notification modal with latest five
tanushpatel-git Nov 7, 2026
198f80a
feat(route): add dashboard notifications page
tanushpatel-git Nov 7, 2026
709b512
feat(data): add seed notification mock data
tanushpatel-git Nov 7, 2026
b0cc4c9
feat(nav): add notifications entry to dashboard sidebar
tanushpatel-git Nov 7, 2026
4430dc1
feat(header): show unread bell state with BellRing
tanushpatel-git Nov 7, 2026
fa870ae
feat(shell): open notification modal on bell click
tanushpatel-git Nov 7, 2026
7865925
docs: add notification workflow guide
tanushpatel-git Nov 7, 2026
c94587f
docs: add notification workflow diagram
tanushpatel-git Nov 7, 2026
a1006a4
docs: add brief notification workflow mmd
tanushpatel-git Nov 7, 2026
e619361
docs: add docs readme for notification workflow
tanushpatel-git Nov 7, 2026
4edf9a5
chore(notifications): finalize notification workflow step 1
tanushpatel-git Nov 7, 2026
a0fcec1
chore(notifications): finalize notification workflow step 2
tanushpatel-git Nov 7, 2026
80a021b
chore(notifications): finalize notification workflow step 3
tanushpatel-git Nov 7, 2026
7e2c240
chore(notifications): finalize notification workflow step 4
tanushpatel-git Nov 7, 2026
406d21b
chore(notifications): finalize notification workflow step 5
tanushpatel-git Nov 7, 2026
7b317b2
chore(notifications): finalize notification workflow step 6
tanushpatel-git Nov 7, 2026
5ae458e
chore(notifications): finalize notification workflow step 7
tanushpatel-git Nov 7, 2026
cd8f889
chore(notifications): finalize notification workflow step 8
tanushpatel-git Nov 7, 2026
36076ed
chore(notifications): finalize notification workflow step 9
tanushpatel-git Nov 7, 2026
3fb4526
chore(notifications): finalize notification workflow step 10
tanushpatel-git Nov 7, 2026
6c38fbb
chore(notifications): finalize notification workflow step 11
tanushpatel-git Nov 7, 2026
b1a6bef
chore(notifications): finalize notification workflow step 12
tanushpatel-git Nov 7, 2026
b1e04b4
chore(notifications): finalize notification workflow step 13
tanushpatel-git Nov 7, 2026
bf181f3
feat(llms): add authenticated RAG user purge
tanushpatel-git Nov 7, 2026
9474581
feat(llms): expose purge user data route
tanushpatel-git Nov 7, 2026
5d599a9
feat(gateway): proxy RAG user purge
tanushpatel-git Nov 7, 2026
0d02f45
feat(gateway): add purge route wiring
tanushpatel-git Nov 7, 2026
59a141a
feat(account): orchestrate cross-store account deletion
tanushpatel-git Nov 7, 2026
2dd47a1
feat(cache): add per-user Redis purge helper
tanushpatel-git Nov 7, 2026
42d5b84
feat(auth): use account deletion orchestrator
tanushpatel-git Nov 7, 2026
3df632f
feat(db): add connection_requests table
tanushpatel-git Nov 7, 2026
0cf335d
chore(db): support merchant-code lookup for connections
tanushpatel-git Nov 7, 2026
ba6d0ce
feat(connections): add connection request repository
tanushpatel-git Nov 7, 2026
a5614c9
feat(connections): lookup any merchant code owner
tanushpatel-git Nov 7, 2026
ed64e96
feat(connections): create and list connection requests
tanushpatel-git Nov 7, 2026
e0d91be
feat(connections): accept or reject requests
tanushpatel-git Nov 7, 2026
0f19ba9
feat(connections): add client API types
tanushpatel-git Nov 7, 2026
f904ae2
feat(connections): add requests query hook
tanushpatel-git Nov 7, 2026
7e0e9d6
feat(seeking): add merchant-code search panel
tanushpatel-git Nov 7, 2026
faf4c58
feat(seeking): add request inbox panel
tanushpatel-git Nov 7, 2026
99149ff
feat(seeking): add connected libraries panel
tanushpatel-git Nov 7, 2026
9395c8a
feat(seeking): add tabbed seeking control shell
tanushpatel-git Nov 7, 2026
931f120
feat(library): allow accepted connections to view repos
tanushpatel-git Nov 7, 2026
329829d
feat(library): include shared repos with owner metadata
tanushpatel-git Nov 7, 2026
d2118c0
feat(library): allow connected users to view code
tanushpatel-git Nov 7, 2026
601c9b0
feat(library): add owner fields to repo types
tanushpatel-git Nov 7, 2026
00bca4b
feat(library): show shared repos and ownership
tanushpatel-git Nov 7, 2026
43c4502
chore(seeking): finalize seeking control step 1
tanushpatel-git Nov 7, 2026
e3c5e84
chore(seeking): finalize seeking control step 2
tanushpatel-git Nov 7, 2026
266c302
chore(seeking): finalize seeking control step 3
tanushpatel-git Nov 7, 2026
b8779db
chore(seeking): finalize seeking control step 4
tanushpatel-git Nov 7, 2026
d669720
chore(seeking): finalize seeking control step 5
tanushpatel-git Nov 7, 2026
f9ba703
chore(seeking): finalize seeking control step 6
tanushpatel-git Nov 7, 2026
a0ccd0b
chore(seeking): finalize seeking control step 7
tanushpatel-git Nov 7, 2026
bed932d
chore(seeking): finalize seeking control step 8
tanushpatel-git Nov 7, 2026
7aba6bd
chore(seeking): finalize seeking control step 9
tanushpatel-git Nov 7, 2026
4b9afdd
chore(seeking): finalize seeking control step 10
tanushpatel-git Nov 7, 2026
733dd37
chore(seeking): finalize seeking control step 11
tanushpatel-git Nov 7, 2026
341ca9b
chore(seeking): finalize seeking control step 12
tanushpatel-git Nov 7, 2026
aa4c3ed
chore(seeking): finalize seeking control step 13
tanushpatel-git Nov 7, 2026
e567fbb
chore(seeking): finalize seeking control step 14
tanushpatel-git Nov 7, 2026
17a75fd
chore(seeking): finalize seeking control step 15
tanushpatel-git Nov 7, 2026
8250105
chore(seeking): finalize seeking control step 16
tanushpatel-git Nov 7, 2026
699e18d
feat(db): add repo_access table and index
tanushpatel-git Nov 8, 2026
7d51587
refactor(connections): add single-query result types
tanushpatel-git Nov 8, 2026
61c3807
refactor(connections): resolve merchant profile and request in one query
tanushpatel-git Nov 8, 2026
d7e5c45
refactor(connections): create or reopen requests in one statement
tanushpatel-git Nov 8, 2026
4c7110d
refactor(connections): list incoming and outgoing in one query
tanushpatel-git Nov 8, 2026
207c8a8
feat(connections): list accepted viewers
tanushpatel-git Nov 8, 2026
6208d69
feat(db): add repo access repository
tanushpatel-git Nov 8, 2026
8af3f00
feat(seeking): add accepted viewers endpoint
tanushpatel-git Nov 8, 2026
4751b80
feat(seeking): add repo access endpoint
tanushpatel-git Nov 8, 2026
a490fd9
refactor(library): consolidate library list with visibility
tanushpatel-git Nov 8, 2026
a49e08c
feat(library): authorize shared code viewer with visibility
tanushpatel-git Nov 8, 2026
53e4c4d
feat(seeking): add repo access client API
tanushpatel-git Nov 8, 2026
869d588
feat(connections): add accepted viewers client API
tanushpatel-git Nov 8, 2026
fb5fd3a
feat(seeking): add seeking management hooks
tanushpatel-git Nov 8, 2026
d482db9
feat(seeking): add seeking management panel
tanushpatel-git Nov 8, 2026
54c74ea
feat(seeking): add seeking management tab
tanushpatel-git Nov 8, 2026
8e30f5a
refactor(connections): switch lookup to single-query profile
tanushpatel-git Nov 8, 2026
9ad9f22
refactor(connections): drop separate request read from lookup
tanushpatel-git Nov 8, 2026
c36bf0d
refactor(connections): list requests with one query
tanushpatel-git Nov 8, 2026
7c6f77f
refactor(connections): create requests with one query
tanushpatel-git Nov 8, 2026
de72f08
refactor(connections): re-read request to classify failed respond
tanushpatel-git Nov 8, 2026
c8f2278
refactor(notifications): prune within list query
tanushpatel-git Nov 8, 2026
8f29552
refactor(notifications): prune within create query
tanushpatel-git Nov 8, 2026
6cdb85a
refactor(auth): compute current session in query
tanushpatel-git Nov 8, 2026
76f27b5
refactor(auth): remove refresh-token session lookup
tanushpatel-git Nov 8, 2026
8c1e676
refactor(auth): list sessions in one query
tanushpatel-git Nov 8, 2026
fbbe104
refactor(users): remove unused merchant-code helpers
tanushpatel-git Nov 8, 2026
8fd8af8
docs(seeking): document seeking management workflow
tanushpatel-git Nov 8, 2026
7db8960
docs(seeking): add seeking control diagram
tanushpatel-git Nov 8, 2026
ced92cd
docs(notifications): document CTE prune on read
tanushpatel-git Nov 8, 2026
6e9e0f3
docs(notifications): update repository reference
tanushpatel-git Nov 8, 2026
813c951
docs(notifications): update read prune diagram
tanushpatel-git Nov 8, 2026
c3146c8
docs(notifications): update page prune diagram
tanushpatel-git Nov 8, 2026
b702426
docs(notifications): update brief diagram
tanushpatel-git Nov 8, 2026
fa7ec21
docs(auth): document single-query sessions
tanushpatel-git Nov 8, 2026
d7a0e20
docs(auth): update sessions function reference
tanushpatel-git Nov 8, 2026
4f07d88
docs(auth): document in-query current session
tanushpatel-git Nov 8, 2026
2cb846b
docs(library): document repo_access and visibility
tanushpatel-git Nov 8, 2026
a19390a
docs(library): document viewer authorization and files
tanushpatel-git Nov 8, 2026
4e9b0dd
docs: add documentation index and recent changes
tanushpatel-git Nov 8, 2026
2f63d70
test commit
tanushpatel-git Nov 9, 2026
26e8432
chore: update client/.env.example
tanushpatel-git Nov 9, 2026
2e75376
chore: update client/package-lock.json
tanushpatel-git Nov 9, 2026
642cfd3
chore: update client/package.json
tanushpatel-git Nov 9, 2026
006d7ff
chore: update client/src/app/api/auth/account/route.ts
tanushpatel-git Nov 9, 2026
0eccab1
chore: update client/src/app/api/auth/cli/login/route.ts
tanushpatel-git Nov 9, 2026
0d6c22c
chore: update client/src/app/api/auth/cli/refresh/route.ts
tanushpatel-git Nov 9, 2026
bc9233d
chore: update client/src/app/api/auth/password/route.ts
tanushpatel-git Nov 9, 2026
d0d9da7
chore: update client/src/app/api/auth/refresh/route.ts
tanushpatel-git Nov 9, 2026
274f518
chore: update client/src/app/api/auth/register/route.ts
tanushpatel-git Nov 9, 2026
c018d4c
chore: update client/src/app/api/connections/lookup/route.ts
tanushpatel-git Nov 9, 2026
83058d7
chore: update client/src/app/api/connections/requests/route.ts
tanushpatel-git Nov 9, 2026
96e9336
chore: update client/src/app/api/firebase/session/route.ts
tanushpatel-git Nov 9, 2026
eb9291f
chore: update client/src/app/api/profile/avatar/route.ts
tanushpatel-git Nov 9, 2026
d70fff6
chore: update client/src/app/dashboard/settings/page.tsx
tanushpatel-git Nov 9, 2026
6abb77b
chore: update client/src/features/auth/components/AuthView.tsx
tanushpatel-git Nov 9, 2026
f0ea291
chore: update client/src/features/auth/components/RolePicker.tsx
tanushpatel-git Nov 9, 2026
f06c70b
chore: update client/src/features/auth/components/index.ts
tanushpatel-git Nov 9, 2026
eb98859
chore: update client/src/features/auth/hooks/index.ts
tanushpatel-git Nov 9, 2026
6afb765
chore: update client/src/features/auth/hooks/useAuthForm.ts
tanushpatel-git Nov 9, 2026
37eb199
chore: update client/src/features/auth/hooks/useSocialAuth.ts
tanushpatel-git Nov 9, 2026
70ff246
chore: update client/src/features/auth/hooks/useUpdateRole.ts
tanushpatel-git Nov 9, 2026
a59da26
chore: update client/src/features/auth/lib/index.ts
tanushpatel-git Nov 9, 2026
21aa228
chore: update client/src/features/auth/lib/roles.ts
tanushpatel-git Nov 9, 2026
06242cb
chore: update client/src/features/auth/lib/validation.test.ts
tanushpatel-git Nov 9, 2026
9a4b63b
chore: update client/src/features/auth/lib/validation.ts
tanushpatel-git Nov 9, 2026
c7f3857
chore: update client/src/features/auth/types.ts
tanushpatel-git Nov 9, 2026
54653f5
chore: update client/src/features/dashboard/components/DashboardHome.tsx
tanushpatel-git Nov 9, 2026
a9edeaf
chore: update client/src/features/dashboard/components/DashboardShell…
tanushpatel-git Nov 9, 2026
6c84da0
chore: update client/src/features/dashboard/components/DashboardSideb…
tanushpatel-git Nov 9, 2026
79191d9
chore: update client/src/features/dashboard/components/SettingsPanel.tsx
tanushpatel-git Nov 9, 2026
b9f733d
chore: update client/src/features/dashboard/components/StudentSeeking…
tanushpatel-git Nov 9, 2026
adac253
chore: update client/src/lib/store/auth-slice.ts
tanushpatel-git Nov 9, 2026
2ba62a4
chore: update client/src/server/auth/access-token.ts
tanushpatel-git Nov 9, 2026
025f859
chore: update client/src/server/auth/start-session.ts
tanushpatel-git Nov 9, 2026
78e2126
chore: update client/src/server/db/connection.repository.ts
tanushpatel-git Nov 9, 2026
68d6a0c
chore: update client/src/server/db/schema.ts
tanushpatel-git Nov 9, 2026
08b925a
chore: update client/src/server/db/user.repository.ts
tanushpatel-git Nov 9, 2026
6cb9f46
chore: update client/src/server/kafka/producer.ts
tanushpatel-git Nov 9, 2026
3d61707
chore: update docs/README.md
tanushpatel-git Nov 9, 2026
a5f5e24
chore: update file-service/src/model/user.model.js
tanushpatel-git Nov 9, 2026
ea05b0c
chore: update Exaclidraw_work/seekingControl.excalidraw
tanushpatel-git Nov 9, 2026
0198b3f
chore: update client/src/app/api/assistant/chat/route.ts
tanushpatel-git Nov 9, 2026
b266b49
chore: update client/src/app/api/assistant/history/route.ts
tanushpatel-git Nov 9, 2026
c502888
chore: update client/src/app/dashboard/assistant/page.tsx
tanushpatel-git Nov 9, 2026
a3f8ad9
chore: update client/src/features/assistant/components/AssistantChat.tsx
tanushpatel-git Nov 9, 2026
358c9c6
chore: update client/src/server/assistant/assistant.service.ts
tanushpatel-git Nov 9, 2026
19f55ab
chore: update client/src/server/assistant/tools.ts
tanushpatel-git Nov 9, 2026
22c6564
chore: update client/src/server/db/assistant-history.repository.ts
tanushpatel-git Nov 9, 2026
17f2626
chore: update docs/tlux-assistant-architecture.mmd
tanushpatel-git Nov 9, 2026
2a682aa
chore(deps): bump lenis from 1.3.26 to 1.3.27 in /client
dependabot[bot] Nov 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file removed .DS_Store
Binary file not shown.
174 changes: 174 additions & 0 deletions .archify/architecture-bytebin-runtime-20261003-210248/candidate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
{
"schema_version": 1,
"diagram_type": "architecture",
"meta": {
"title": "ByteBin runtime architecture",
"locale": "en",
"output": ".archify/architecture-bytebin-runtime-20261003-210248/bytebin-runtime.html",
"quality_profile": "showcase",
"repository": {
"url": "https://github.com/tanushpatel-git/ByteBin.git",
"provider": "github",
"link_mode": "web",
"revision": "4b43a66ae26811b35a9cf0524ac3396101cf5478"
}
},
"components": [
{
"id": "browser", "type": "external", "label": "Browser",
"sublabel": "React 19 SPA", "tag": "untrusted client",
"pos": [40, 340], "size": [120, 64],
"sources": [
{ "path": "client/src/app/layout.tsx", "line": 24, "end_line": 33, "label": "root layout" },
{ "path": "client/src/features/auth/context/AuthContext.tsx", "line": 27, "end_line": 45, "label": "AuthProvider" }
]
},
{
"id": "proxy", "type": "security", "label": "Edge Route Guard",
"sublabel": "proxy.ts - cookie presence",
"pos": [40, 150], "size": [150, 64],
"sources": [{ "path": "client/src/proxy.ts", "line": 15, "end_line": 39, "label": "proxy()" }]
},
{
"id": "client_app", "type": "frontend", "label": "Next.js Client",
"sublabel": "App Router :3000",
"pos": [270, 340], "size": [190, 72],
"sources": [
{ "path": "client/package.json", "line": 34, "label": "next 16" },
{ "path": "client/src/app/api/health/route.ts", "line": 5, "end_line": 12, "label": "route handler" }
]
},
{
"id": "gateway", "type": "backend", "label": "API Gateway",
"sublabel": "Express :8008",
"pos": [600, 340], "size": [170, 64],
"sources": [
{ "path": "api-gateway/src/app.js", "line": 13, "end_line": 37, "label": "cors + mounts" },
{ "path": "api-gateway/src/lib/authorization.js", "line": 9, "end_line": 19, "label": "bearer relay" }
]
},
{
"id": "blog_service", "type": "backend", "label": "Blog Service",
"sublabel": "Express :8010", "tag": "verifies JWT",
"pos": [870, 340], "size": [170, 64],
"sources": [
{ "path": "blog-service/src/features/code-push/auth.middleware.js", "line": 17, "end_line": 45, "label": "auth middleware" },
{ "path": "blog-service/src/features/code-push/blog.route.js", "line": 150, "end_line": 157, "label": "guarded routes" }
]
},
{
"id": "llms_service", "type": "backend", "label": "LLMs Service",
"sublabel": "Express :8009",
"pos": [600, 150], "size": [170, 62],
"sources": [
{ "path": "llms-service/src/app.js", "line": 9, "end_line": 26, "label": "express app" },
{ "path": "llms-service/server.js", "line": 3, "end_line": 10, "label": "connect + listen" }
]
},
{
"id": "file_service", "type": "backend", "label": "File Service",
"sublabel": "Express :8011",
"pos": [870, 150], "size": [170, 62],
"sources": [
{ "path": "file-service/src/app.js", "line": 10, "end_line": 26, "label": "express app" },
{ "path": "file-service/server.js", "line": 4, "end_line": 14, "label": "listen + connect" }
]
},
{
"id": "auth_routes", "type": "security", "label": "Auth Routes",
"sublabel": "login - refresh - me - sessions", "tag": "token authority",
"pos": [270, 560], "size": [190, 70],
"sources": [
{ "path": "client/src/app/api/auth/refresh/route.ts", "line": 14, "end_line": 61, "label": "POST refresh" },
{ "path": "client/src/app/api/auth/login/route.ts", "line": 7, "end_line": 27, "label": "POST login" },
{ "path": "client/src/app/api/auth/sessions/route.ts", "line": 14, "end_line": 28, "label": "GET sessions" }
]
},
{
"id": "firebase", "type": "external", "label": "Firebase Auth",
"sublabel": "Google - GitHub ID token",
"pos": [600, 560], "size": [170, 62],
"sources": [
{ "path": "client/src/lib/firebase/verify.ts", "line": 21, "end_line": 43, "label": "verify ID token" },
{ "path": "client/src/app/api/firebase/session/route.ts", "line": 10, "end_line": 16, "label": "session route" }
]
},
{
"id": "redis", "type": "database", "label": "Upstash Redis",
"sublabel": "session cache - 1h TTL", "tag": "optional",
"pos": [270, 780], "size": [190, 66],
"sources": [
{ "path": "client/src/server/cache/redis.ts", "line": 6, "end_line": 41, "label": "cache client" },
{ "path": "client/src/server/auth/get-session-user.ts", "line": 28, "end_line": 37, "label": "read-through" }
]
},
{
"id": "mongo", "type": "database", "label": "MongoDB",
"sublabel": "users - refresh_tokens - blogs",
"pos": [870, 780], "size": [180, 66],
"sources": [
{ "path": "client/src/server/db/models/refresh-token.model.ts", "line": 13, "end_line": 53, "label": "refresh_tokens" },
{ "path": "client/src/server/db/models/user.model.ts", "line": 5, "end_line": 46, "label": "users" },
{ "path": "blog-service/src/features/code-push/blog.model.js", "line": 1, "end_line": 43, "label": "blogs" }
]
}
],
"boundaries": [
{ "kind": "security-group", "label": "Public internet - unauthenticated", "wraps": ["browser"], "pad": 26 },
{ "kind": "region", "label": "Next.js runtime - Node :3000", "wraps": ["proxy", "client_app", "auth_routes"], "pad": 30 },
{ "kind": "region", "label": "Express microservices - Node", "wraps": ["gateway", "blog_service", "file_service", "llms_service"], "pad": 34 }
],
"connections": [
{ "id": "nav-guard", "from": "browser", "to": "proxy", "label": "page navigation", "variant": "security" },
{ "id": "guard-render", "from": "proxy", "to": "client_app", "label": "render or redirect" },
{ "id": "api-call", "from": "browser", "to": "client_app", "label": "REST + Bearer", "variant": "emphasis" },
{ "id": "client-gateway", "from": "client_app", "to": "gateway", "label": "REST + short-lived Bearer", "variant": "emphasis" },
{ "id": "gateway-blogs", "from": "gateway", "to": "blog_service", "label": "relays Bearer", "variant": "security" },
{ "id": "gateway-repos", "from": "gateway", "to": "file_service", "label": "proxy" },
{ "id": "gateway-llms", "from": "gateway", "to": "llms_service", "label": "proxy" },
{ "id": "client-auth", "from": "client_app", "to": "auth_routes", "label": "POST /api/auth/*", "variant": "security" },
{ "id": "verify-id-token", "from": "auth_routes", "to": "firebase", "label": "verify via Google JWKS", "variant": "security" },
{ "id": "auth-persist", "from": "auth_routes", "to": "mongo", "label": "users + refresh_tokens" },
{ "id": "auth-cache", "from": "auth_routes", "to": "redis", "label": "read-through", "variant": "dashed" },
{ "id": "blogs-persist", "from": "blog_service", "to": "mongo", "label": "blogs + comments" }
],
"cards": [
{
"dot": "cyan", "title": "Primary request path",
"items": [
"Browser -> Next.js -> API Gateway -> Blog Service -> MongoDB",
"apiFetch attaches the in-memory access token as a bearer header",
"A 401 triggers one refresh, then the request is replayed once",
"Concurrent 401s share one in-flight refresh so the cookie rotates once"
]
},
{
"dot": "rose", "title": "Trust boundaries",
"items": [
"Browser is untrusted; the access token lives only in JS memory, never localStorage",
"Firebase sign-in is a browser popup; only the ID token is sent to Auth Routes",
"Auth Routes are the sole token issuer; the Edge guard checks cookie presence only",
"The gateway relays the caller's Authorization header and never reads a cookie",
"blog-service shares JWT_SECRET but requires type=access"
]
},
{
"dot": "emerald", "title": "Sessions",
"items": [
"Refresh tokens are opaque 384-bit values stored only as a SHA-256 digest",
"Every refresh rotates the token; a replay outside a 10s grace window revokes all sessions",
"GET /api/auth/sessions lists devices; DELETE revokes one; logout scope=all revokes all",
"A TTL index on expiresAt expires rows with no cleanup job"
]
},
{
"dot": "violet", "title": "Storage and caching",
"items": [
"All four Node services point at the same MongoDB database",
"Upstash Redis is a read-through cache for the session user, 1 hour TTL",
"Caching is optional; the client no-ops when the Redis env vars are unset",
"logout-all resolves the user from the refresh token, so it works on an expired access token"
]
}
]
}
Loading