Skip to content

Feat/app http server#2

Merged
andrewmelchor merged 2 commits intomainfrom
feat/app-http-server
Jan 20, 2026
Merged

Feat/app http server#2
andrewmelchor merged 2 commits intomainfrom
feat/app-http-server

Conversation

@andrewmelchor
Copy link
Copy Markdown
Member

@andrewmelchor andrewmelchor commented Jan 20, 2026

Summary

This PR introduces the new @t-req/app CLI + HTTP/SSE server and ships Config v2 (JSON/JSONC-first) in @t-req/core.

Key Outcomes

New CLI: treq init, treq run, and treq serve (HTTP server + stdio JSON-RPC mode).

Server-first workflows: Request parsing/execution APIs, sessions, and an SSE event stream for streaming progress.

Config v2 (core): JSON/JSONC-first config discovery + deterministic layering (file → profile → override layers → overrides), with safe substitutions and introspection metadata.

Safety + robustness: Workspace-scoped {file:...} substitutions by default, command resolver NDJSON protocol support, and safer cookie persistence (serialized writes).

DX: Updated READMEs + webdocs pages and expanded examples (core + app + client examples).

Changeset included: .changeset/short-hoops-peel.md (minor bumps for @t-req/core and @t-req/app).

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring
  • Chore (dependency update, build script changes, etc.)

Testing

  • Unit tests (bun run test -- --filter=@t-req/core --filter=@t-req/app)
  • E2E tests (included in the above package test suites)
  • Manual testing (please describe)

Checklist

  • I have followed the contributing guidelines
  • I have performed a self-review of my own code
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the documentation accordingly
  • My changes generate no new warnings

…se pipeline

Add @t-req/app server + CLI implementation: run .http files, serve HTTP API with SSE events, and session/variable/cookie management.
Harden workspace security (path scoping + env module validation), improve error taxonomy/handling, and align schemas with implemented capabilities.
Fix publish/runtime wiring (app-* binary resolution, release filter rename, workspace config) and regenerate lockfile.
@andrewmelchor andrewmelchor merged commit d2cf985 into main Jan 20, 2026
2 checks passed
@andrewmelchor andrewmelchor deleted the feat/app-http-server branch January 20, 2026 22:42
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