Skip to content

Decompose/ai agents flat modules - #18

Open
letnull19A wants to merge 315 commits into
devfrom
decompose/ai-agents-flat-modules
Open

letnull19A wants to merge 315 commits into
devfrom
decompose/ai-agents-flat-modules

Conversation

@letnull19A

Copy link
Copy Markdown
Contributor

No description provided.

Add GET /api/v1/health alongside neutral /health so backend-backed CLI clients can probe liveness through the versioned API surface.
Replace direct cloud/serve chat composition with backend session/message requests keyed by RUSH_CODE_BACKEND_URL; refresh env example, README and AGENTS docs.
Add online/offline indicator beside the team signature with periodic health probe; fix signature to web2bizz.team.
Migrate sidebar groups to Collapsible primitives; render no-membership hint inside the org dropdown with i18n strings.
Remove OPENCODE_TOKEN password handling from serve fallback and docs; header omitted, 401 hint gone.
Add SessionsResponse (Session[]) to the session contract pair and mirror it in contracts/openapi.yaml so the v1 session list endpoint has a wire-level schema.
…points

Require ?projectId on every opencode proxy route and resolve the project directory through the org access gate, then expose the v1 session list and message endpoints.
State the React Query data-hook contract in the root AGENTS.md and add backend/frontend agent guides with the hook, query-key and error-format rules.
Document OPENCODE_PASSWORD for opencode serve Basic auth and switch the legacy mock identity fallback to a strict unset→false default.
…ons by project

Migrate the frontend data hooks to React Query: useQuery/useMutation/useQueryClient through createQueryClient in src/providers.tsx, with query keys centralized in src/hooks/query-keys.ts.

Scope sessions by project: sessionsQueryKey(projectId) replaces the unscoped session key, and useOpencodeSessions/useOpencodeChat/useOpencodeEvents plus the streaming useChat hook are rebuilt on top of React Query (AbortController, 1s to 15s backoff for SSE reconnects).

Extract session-expiry handling into src/lib/session-expired.ts and reuse it across the API client and the affected pages.

Also drop the dead brand-glow styling: .logo-glow, .shadow-brand-glow, the global shadow reset and the --shadow-brand-glow/--filter-logo-glow tokens are removed from app/globals.css, the logo-glow class is dropped from SidebarBrand, and apps/frontend/DESIGN.md is synced accordingly.
Pre-existing decompose-branch work committed whole-file per scope decision: ai/agents registry, guards, storage-unavailable, db exceptions/utils, modes/subagent/workflows/agents-registry scaffold. Unrelated to PLN-2.
Pre-existing branch specs committed whole-file per scope decision: sessions messaging/stream/history, runner loop, sse-relay, retry, guards, organizations, users. No new specs written.
Pre-existing branch specs committed whole-file per scope decision: useChat branches/chain, chat-thread branches/chain, chat-chain, tool-timeline types. No new specs written.
SSE replay of old max-steps-exceeded no longer toasts without an active turn; kit Toaster deduped via sessionStorage.
Providers are pure JSX composition; kit ThemeProvider+ThemeScript own the theme, Toaster lives in ToasterHost. Layout icons part of this file moves to /assets paths (assets step follows).
Single static source public/assets; layout icons point at /assets/*, Sidebar and route-guard updated.
Providers live in src/lib/providers with a barrel export; layout imports from @/lib/providers. Order is now ThemeProvider > I18nProvider > QueryClientProvider > children.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant