Skip to content

[Fix] Resolve lint and knip failures in automation work items tool - #122

Merged
mrubens merged 1 commit into
developfrom
fix/automation-work-items-lint
Jul 10, 2026
Merged

[Fix] Resolve lint and knip failures in automation work items tool#122
mrubens merged 1 commit into
developfrom
fix/automation-work-items-lint

Conversation

@mrubens

@mrubens mrubens commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Develop CI (Lint + Knip) has been red since the "Flatten submit_automation_work_items to one work item" commit landed:

  • automationWorkItemObjectSchema was a value used only in a type position (@typescript-eslint/no-unused-vars at max-warnings=0)
  • AutomationWorkItemToolParams was exported with no external consumers (Knip unused-export)

Infer the params type directly from the input schema shape via z.ZodObject<typeof automationWorkItemInputSchema> and drop the export. No runtime change.

This also unblocks CI on #119, whose merge-ref checks inherit the develop breakage.

Validation

  • pnpm --filter @roomote/worker lint
  • pnpm --filter @roomote/worker check-types
  • pnpm knip
  • pnpm --filter @roomote/worker exec vitest run src/mcp/roomote-mcp-server/__tests__/automation-work-items-tool-schema.test.ts (6 tests)

The flatten commit left automationWorkItemObjectSchema as a value used
only in a type position and exported AutomationWorkItemToolParams with
no external consumers, failing Lint and Knip on develop. Infer the
params type directly from the input schema shape and drop the export.
@mrubens
mrubens merged commit a4b1c54 into develop Jul 10, 2026
@mrubens
mrubens deleted the fix/automation-work-items-lint branch July 10, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants