fix(forms): align addQuestion spec with handler — flat args + correct type names#56
fix(forms): align addQuestion spec with handler — flat args + correct type names#56AojdevStudio wants to merge 2 commits intomainfrom
Conversation
… type names
Bug 1: Spec advertised nested { formId, question: { title, type } } but handler
expects flat { formId, title, type, required, ... }. Fixed spec to match handler.
Bug 2: Spec used SHORT_ANSWER/PARAGRAPH/SCALE but handler expects
TEXT/PARAGRAPH_TEXT/LINEAR_SCALE. Fixed spec to use correct type names.
Also fixed listTools.ts which used 'questionType' (wrong param name) and 'SCALE'.
Added Linear team ID to CLAUDE.md for future reference.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughReplaces Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📊 Type Coverage ReportType Coverage: 98.61% This PR's TypeScript type coverage analysis is complete. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gdrive-mcp | 263c6c2 | Commit Preview URL Branch Preview URL |
Mar 29 2026, 12:49 AM |
🔒 Security Scan SummaryGenerated on: Sat Mar 28 19:05:50 UTC 2026 Scan Results
Summary
Recommendations
Security report generated by Claude Code |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/tools/listTools.ts`:
- Around line 141-144: The addQuestion tool signature string is missing the
optional scaleMinLabel?: string and scaleMaxLabel?: string parameters; update
the signature for the addQuestion entry (the string value for "signature" in the
addQuestion tool) to include scaleMinLabel?: string and scaleMaxLabel?: string
(e.g., after scaleMin?: number, scaleMax?: number) so it matches the
AddQuestionOptions interface and the documented spec.
🪄 Autofix (Beta)
✅ Autofix completed
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 2f760c57-25e0-49fc-8a3b-1078282b499b
📒 Files selected for processing (3)
CLAUDE.mdsrc/sdk/spec.tssrc/tools/listTools.ts
Performance Comparison ReportOperation Performance
Memory Usage
Summary
Performance report generated by Claude Code |
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Fixes Applied SuccessfullyFixed 3 file(s) based on 1 unresolved review comment. Files modified:
Commit: The changes have been pushed to the Time taken: |
Fixed 3 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
Bug Fixes
Bug 1 — Arg shape mismatch (type: undefined)
{ formId, question: { title, type } }but both handlers (SDK module + MCP tool) expect flat{ formId, title, type, required, ... }AddQuestionOptionsinterfaceBug 2 — Type name mismatch
Fixed spec to use correct type names.
Also fixed:
listTools.tsusedquestionType(wrong param name) andSCALE(wrong type).Also added: Linear team ID to CLAUDE.md.
Verification
Summary by CodeRabbit
New Features
Documentation
Chores