bobbai00 opened a new pull request, #5751:
URL: https://github.com/apache/texera/pull/5751

   ### What changes were proposed in this PR?
   
   Foundation slice of the agent-service reorganization (no runtime behavior 
change):
   
   - Add `src/types/api.ts` (wire DTOs) and `src/types/metadata.ts` 
(operator-metadata types extracted from `api/backend-api.ts`); export both from 
the types barrel.
   - Add `src/config/endpoints.ts` exposing `getServiceEndpoints()`.
   - Move `src/api/auth-api.ts` → `src/auth/jwt.ts` (content unchanged) and add 
`src/auth/jwt.test.ts`; update auth import paths.
   - Keep `api/backend-api.ts` transitional: it re-exports the metadata types 
from `../types/metadata` and retains 
`getBackendConfig`/`fetchOperatorMetadata`, which the follow-up clients PR 
relocates.
   
   The `types/agent.ts`/`types/workflow.ts` reshaping is deferred to the PR 
that also updates `server.ts`/`workflow-state.ts`, since those renames are 
coupled. This is the first of three PRs that split #5564 into single-topic 
changes per review feedback.
   
   ### Any related issues, documentation, discussions?
   
   Closes #5748
   Part of #5747
   
   ### How was this PR tested?
   
   `bunx tsc --noEmit`, `bun test` (101 pass / 0 fail, including the new 
`auth/jwt.test.ts`), and `prettier --check` all pass in `agent-service`.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 4.8 (1M context)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to