Skip to content

Releases

v1.1.4 - API docs and env cleanup

Choose a tag to compare

@FranprzDev FranprzDev released this 11 Nov 01:30
6224d8d

Housekeeping release closing the remaining code-level issues:

  • OpenAPI docs at /docs (#196, closes #60): @nestjs/swagger serves the generated OpenAPI UI at GET /docs and the document at GET /docs-json, with an e2e smoke test. Helmet CSP is disabled (the API serves no other HTML and Swagger UI needs inline scripts); every other helmet protection stays on. DTO-level schemas via decorators can be a follow-up.
  • Unused SESSION_SECRET removed (#195, closes #59): sessions are opaque random tokens stored hashed, so there was no signing secret to configure. Removed from .env.example, scripts/preflight.mjs (generator + required checks) and the two docs that listed it.

Also closed with evidence this cycle: #131 (all six confirmed MCP audit defects already fixed and covered by regression tests on current main) and #61 (obsolete: the Telegram flow was removed in #116).

v1.1.3 - Redundant-fetch performance pass, round 3

Choose a tag to compare

@FranprzDev FranprzDev released this 10 Nov 12:47
c46d29f

Fourth performance pass over the MCP server and API. Four focused changes, each measured before and after on a disposable local Postgres 18 (numbers below are local microbenchmarks, not production latency):

  • Quote reads reuse the owner lookup (#191): GET /projects/:id/quote and quote downloads fetched the project ownerId to choose the access path, then fetched the whole project again (brief + document versions + owner) inside the authorization helper. The helper now receives the row already loaded. 3.207 ms -> 1.837 ms, 3 -> 2 queries per call; the dropped query was the 4-table include.
  • Brief-only access for brief-only MCP tools (#192): answer_question, update_scope_section and list_change_requests loaded the latest document version and the owner row but only read the brief. They now use the 'brief' access mode from #187. 1.498 ms -> 0.697 ms per access check, 4 joined tables -> 2.
  • Document export version in one query (#193): the path behind every PDF/DOCX/MD export (including client-facing signed links) looked up the document and then its version in a second round trip; a single relation-filtered query returns the same row. 1.253 ms -> 0.955 ms, 2 -> 1 queries per export.
  • No trailing refetch in add_client_input (#194): every call re-read the project just to return agentStatus, which only the optional analyze enqueue can change. The default path (analyze off) now answers from the already-loaded project. 2.701 ms -> 2.060 ms, 4 -> 3 queries per call.

Full methodology and per-change details are in each PR body.

v1.1.2 - Redundant-fetch performance pass, round 2

Choose a tag to compare

@FranprzDev FranprzDev released this 09 Nov 13:24
4b5762b

Third performance pass over the MCP server and API. Four focused changes, each measured before and after on a disposable local Postgres 18 (numbers below are local microbenchmarks, not production latency):

  • Brief-only project auth for brief-only tools (#187): getTldr and listPendingQuestions loaded the latest document version (tens of KB) but only read the brief. AuthService.project now supports a 'brief' mode that loads only the brief relation. Project with ~45 KB brief + ~30 KB document version, 300 rounds: 2.175 ms / 75.5 KB -> 1.385 ms / 45.6 KB per call.
  • Version page in the same query as the document (#188): GET /projects/:id/documents fetched the document and then its version page in a second query; the page now rides in the same query. Document with 50 versions, page of 30, 300 rounds: 1.463 ms -> 1.182 ms, 2 -> 1 queries per page.
  • HTTP change-request create reuses the access-checked project (#189): POST /projects/:id/change-requests fetched the project twice (narrow access check, then again with the brief); the controller now passes the already access-checked project, the same pattern the MCP path uses since #185. 1.355 ms -> 0.760 ms, 2 -> 1 queries per call.
  • Owner included in the full project fetch (#190): getScopeDocument ran a second query for the owner row just to read the fallback author email; the full include now carries the owner. 1.901 ms -> 1.408 ms, 2 -> 1 queries per call.

Full methodology and per-change details are in each PR body.

v1.1.1 - Redundant-fetch performance pass

Choose a tag to compare

@FranprzDev FranprzDev released this 08 Nov 17:29
c64d62d

Second performance pass over the MCP server and API. Four focused changes, each measured before and after on a disposable local Postgres 18 (numbers below are local microbenchmarks, not production latency):

  • On-demand brief/document load in project auth (#183): AuthService.project() eager-loaded the full brief JSON and the latest document version on every call, though most callers only need the project row for the access check. The include is now opt-in; callers that read project.brief/project.document keep the identical shape. Project with ~45 KB brief + document version, 300 rounds: 1.382 ms / 75.5 KB -> 0.365 ms / 0.3 KB per call that skips the include. Same 404/access checks.
  • Scoped requirement-source validation in PATCH /brief (#184): the HTTP controller validated requirement sources by loading every message of the project; it now loads only the referenced ones (the MCP path was already scoped in #179) and skips the query entirely when the brief has no requirements. 1000 messages x 2 KB, 10 referenced sources: 9.72 ms / 2004 KB -> 0.58 ms / 20 KB per save. Validation semantics unchanged.
  • One project fetch per change-request call (#185): logChangeRequest and listChangeRequests each fetched the project twice per call; the access-checked project is now passed down instead. logChangeRequest 3.329 -> 2.995 ms (3 -> 2 project queries, 5 -> 4 total), listChangeRequests 3.254 -> 2.446 ms (-25%) (2 -> 1 project queries, 3 -> 2 total). One redundant project round trip removed per call.
  • Quote tools reuse the access-checked project (#186): getQuote fetched the project up to three times per call (once with the heavy eager include) and saveQuote twice; both now reuse the project already fetched and access-checked. Every role, ownership and share-link check is unchanged. getQuote: 2.770 ms -> 1.114 ms (-60%), project queries 3 -> 1, total queries 4 -> 2.

Full methodology and per-change details are in each PR body.

v1.1.0 - MCP performance pass

Choose a tag to compare

@FranprzDev FranprzDev released this 07 Nov 20:35
3b211c4

Performance pass over the MCP server. Four focused changes, each measured before and after on a disposable local Postgres 18 (numbers below are local microbenchmarks, not production latency):

  • Scoped requirement-source validation (#179): save_scope validated requirement sources by loading every message of the project. It now only loads the referenced ones. 1000 messages x 2 KB, 10 referenced sources: 7.88 ms / 2003 KB -> 0.54 ms / 20 KB per save. Validation semantics unchanged.
  • Brief projection in list_projects (#180): the listing transferred every full brief (multi-MB) and zod-validated each one only to read the summary and count blocking questions. It now uses a narrow select plus one projection query per page. 100 projects with ~45 KB briefs: 47.7 ms / 4563 KB -> 6.8 ms / 49 KB per page. Pagination behavior unchanged.
  • Principal user reuse on MCP auth (#181): every authenticated MCP call re-fetched the user row after bearer auth. The verified user now travels in the auth principal. API-key calls go from 2 to 1 queries, OAuth access-token calls from 3 to 2 (0.774 ms -> 0.437 ms per auth sequence locally; on a hosted database this removes a full network round trip per call).
  • Parallel document artifacts and downloads (#182): generate wrote the md/pdf/docx artifacts sequentially, and delivery downloads loaded files one by one; both are now parallel. 0.600 ms -> 0.342 ms for the local write phase; the win grows with storage latency.

Full methodology and per-change details are in each PR body.