Skip empty product resources from trailing newlines#29
Conversation
|
@GHX5T-SOL Hey! Just a heads up - the branch name |
|
Thanks for flagging this. I missed the branch-name convention on this PR; I will use the ticket number as the branch name for future Zerocracy contributions. |
kreinba
left a comment
There was a problem hiding this comment.
The filter removes empty entries split from a trailing newline, the regression test exercises product1\nproduct2\n, jest and eslint pass locally on this branch. Resolves the symptom in #27 without touching unrelated code. 0 inline comments.
|
Please fix the merge conflicts so this pull request can be merged. |
Summary
/productsresponseproducts://resourceproduct1\nproduct2\nresponse bodyFixes #27.
Validation
npm ci --ignore-scripts --no-audit --no-fund --progress=falsenpx jest --config jest.config.ts --no-color --ci test/resources.test.ts --coverage=falsenpx eslint . --config eslint.config.mjsnpx tsc --target es2020 --module nodenext --outDir dist index.ts src/baza.ts src/prompts.ts src/resources.ts src/server.ts src/to_gpt.ts src/tools.tsgit diff --check HEAD~1 HEADgit show --format= --patch HEAD | gitleaks stdin --no-banner --redactNotes
npx jest --config jest.config.ts --no-color --cicurrently fails in the existing livebazaand server tests because the fixture token receives HTTP error responses from the Zerocracy API; the focused resource regression passes.make itwas attempted, but the command hung innpm exec @modelcontextprotocol/inspectorbefore producingtemp/tools.json.