-
Notifications
You must be signed in to change notification settings - Fork 4
fix: auto-fix ESLint errors across 87 files #379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ | |
| * - id (required): The unique identifier of the account (UUID) | ||
| * | ||
| * @param request - The request object | ||
| * @param params.params | ||
|
Check failure on line 26 in app/api/accounts/[id]/route.ts
|
||
| * @param params - Route params containing the account ID | ||
| * @returns A NextResponse with account data | ||
| */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,19 +2,21 @@ | |
| import { getCorsHeaders } from "@/lib/networking/getCorsHeaders"; | ||
| import { getSlackTagsHandler } from "@/lib/admins/slack/getSlackTagsHandler"; | ||
|
|
||
| /** | ||
|
Check failure on line 5 in app/api/admins/coding/slack/route.ts
|
||
| * GET /api/admins/coding/slack | ||
| * | ||
| * Returns Slack tagging analytics for the Recoup Coding Agent bot. | ||
| * Pulls directly from the Slack API as the source of truth. | ||
| * Supports period filtering: all (default), daily, weekly, monthly. | ||
| * Requires admin authentication. | ||
| * | ||
| * @param request | ||
|
Check failure on line 13 in app/api/admins/coding/slack/route.ts
|
||
| */ | ||
| export async function GET(request: NextRequest): Promise<NextResponse> { | ||
| return getSlackTagsHandler(request); | ||
| } | ||
|
|
||
| /** CORS preflight handler. */ | ||
|
Check failure on line 19 in app/api/admins/coding/slack/route.ts
|
||
| export async function OPTIONS(): Promise<NextResponse> { | ||
| return new NextResponse(null, { status: 204, headers: getCorsHeaders() }); | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,6 +12,8 @@ type PrepareStepOptions = { | |||||||||||||||||
| /** | ||||||||||||||||||
| * Returns the next tool to run based on timeline progression through tool chains. | ||||||||||||||||||
| * Uses toolCallsContent to track exact execution order and position in sequence. | ||||||||||||||||||
| * | ||||||||||||||||||
| * @param options | ||||||||||||||||||
|
Comment on lines
+15
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Complete the JSDoc parameter documentation. The 📝 Suggested enhancement for JSDoc completeness * Returns the next tool to run based on timeline progression through tool chains.
* Uses toolCallsContent to track exact execution order and position in sequence.
*
- * `@param` options
+ * `@param` options - The preparation step configuration containing steps, model, and messagesOr for more detailed documentation: * Returns the next tool to run based on timeline progression through tool chains.
* Uses toolCallsContent to track exact execution order and position in sequence.
*
- * `@param` options
+ * `@param` options - The preparation step configuration
+ * `@param` options.steps - Array of previous step results from the tool chain
+ * `@param` options.stepNumber - Current step number in the execution sequence
+ * `@param` options.model - Language model being used for this conversation
+ * `@param` options.messages - Array of model messages in the conversation
+ * `@returns` The next tool to execute in the chain, or undefined if sequence is complete📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| */ | ||||||||||||||||||
| const getPrepareStepResult = (options: PrepareStepOptions): PrepareStepResult | undefined => { | ||||||||||||||||||
| const { steps } = options; | ||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant and confusing
@param params.paramsentry.Line 26's
@param params.paramsis incorrect for the destructured parameter syntax{ params }. Line 27 already correctly documents theparamsobject. The duplicate entry on line 26 should be removed to avoid confusion.🧹 Proposed fix
* `@param` request - The request object - * `@param` params.params * `@param` params - Route params containing the account ID * `@returns` A NextResponse with account data📝 Committable suggestion
🤖 Prompt for AI Agents