stack/apps/internal-tool
mantrakp04 1a8e38e511 Sync stale SpacetimeDB bindings with requestId and add structural drift test
The server schema added `qa_entries.requestId` (4th column) and
`add_manual_qa.requestId` (6th arg) on May 11 but the auto-generated client
bindings were last regenerated on May 5 and never picked up the new field.
Because BSATN is positional, every column after position 3 in
`my_visible_qa_entries` would deserialize one slot off (question bytes read as
answer, etc.) once the new schema is published — corrupting the Knowledge Base
view in the internal-tool.

Add `requestId` to `my_visible_qa_entries_table.ts`, `types.ts:QaEntries`, and
`add_manual_qa_reducer.ts` in the same positions the codegen would produce,
plus a structural test that parses both the server schema and the generated
bindings and asserts field/arg orders match. The test fails on the prior
state with the exact missing-`requestId` diff and passes after the patch,
catching any future drift in CI.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-23 11:01:50 -07:00
..
scripts update reviewer authentication and API calls 2026-05-11 13:20:30 -07:00
spacetimedb bugs fixed 2026-05-15 14:48:39 -07:00
src Sync stale SpacetimeDB bindings with requestId and add structural drift test 2026-05-23 11:01:50 -07:00
.env update reviewer authentication and API calls 2026-05-11 13:20:30 -07:00
.env.development LLM MCP Flow (#1321) 2026-04-15 17:57:08 +00:00
.eslintrc.cjs LLM MCP Flow (#1321) 2026-04-15 17:57:08 +00:00
next.config.mjs LLM MCP Flow (#1321) 2026-04-15 17:57:08 +00:00
package.json chore: update package versions 2026-05-23 16:45:36 +00:00
postcss.config.js LLM MCP Flow (#1321) 2026-04-15 17:57:08 +00:00
spacetime.json LLM MCP Flow (#1321) 2026-04-15 17:57:08 +00:00
tailwind.config.js LLM MCP Flow (#1321) 2026-04-15 17:57:08 +00:00
tsconfig.json LLM MCP Flow (#1321) 2026-04-15 17:57:08 +00:00