Skip to content

chore(format): organize imports via prettier-plugin-organize-imports#488

Merged
sroussey merged 1 commit into
mainfrom
claude/add-import-reorganization-JjEUS
May 13, 2026
Merged

chore(format): organize imports via prettier-plugin-organize-imports#488
sroussey merged 1 commit into
mainfrom
claude/add-import-reorganization-JjEUS

Conversation

@sroussey
Copy link
Copy Markdown
Collaborator

Adds prettier-plugin-organize-imports so bun run format performs
the same "Organize Imports" reorganization as VS Code's TS Language
Service (sorts, dedupes, removes unused).

Also fixes the format glob: replace the non-existent integrations
directory with providers, which is an actual workspace.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 12, 2026

Open in StackBlitz

@workglow/cli

npm i https://pkg.pr.new/@workglow/cli@488

@workglow/ai

npm i https://pkg.pr.new/@workglow/ai@488

@workglow/job-queue

npm i https://pkg.pr.new/@workglow/job-queue@488

@workglow/knowledge-base

npm i https://pkg.pr.new/@workglow/knowledge-base@488

@workglow/storage

npm i https://pkg.pr.new/@workglow/storage@488

@workglow/task-graph

npm i https://pkg.pr.new/@workglow/task-graph@488

@workglow/tasks

npm i https://pkg.pr.new/@workglow/tasks@488

@workglow/util

npm i https://pkg.pr.new/@workglow/util@488

workglow

npm i https://pkg.pr.new/workglow@488

commit: 8c7789a

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 62.38% 20509 / 32873
🔵 Statements 62.24% 21227 / 34102
🔵 Functions 64.84% 3955 / 6099
🔵 Branches 51.53% 9871 / 19154
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/mcp/src/util.ts 100% 100% 100% 100%
packages/mcp/src/tasks/common.ts 100% 100% 100% 100%
packages/mcp/src/tasks/node.ts 100% 100% 100% 100%
packages/storage/src/migrations/index.ts 100% 100% 100% 100%
providers/huggingface-transformers/src/ai/runtime.ts 100% 100% 100% 100%
Generated in workflow #2209 for commit 8c7789a by the Vitest Coverage Report Action

@sroussey sroussey requested a review from Copilot May 12, 2026 20:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@sroussey sroussey force-pushed the claude/add-import-reorganization-JjEUS branch from 723ac6b to 2960609 Compare May 12, 2026 21:16
Adds prettier-plugin-organize-imports so newly-edited files get the
same "Organize Imports" reorganization as VS Code's TS Language Service
(sorts, dedupes, removes unused). Wires it into a husky pre-commit
hook via lint-staged so only staged source files get reformatted on
commit — no bulk pass across the existing codebase.

To keep barrel re-export order stable (alphabetizing `export *` lines
breaks runtime init order in the bundled outputs), every file
containing top-level `export * from` is marked
`// organize-imports-ignore`. The plugin will leave their order alone,
while still organizing `import` statements inside every other file.

Also fixes the format glob: `integrations` (non-existent) → `providers`.
@sroussey sroussey force-pushed the claude/add-import-reorganization-JjEUS branch from 2960609 to 8c7789a Compare May 12, 2026 21:17
@sroussey sroussey merged commit 6fba1ae into main May 13, 2026
36 of 37 checks passed
@sroussey sroussey deleted the claude/add-import-reorganization-JjEUS branch May 13, 2026 03:57
sroussey added a commit that referenced this pull request May 13, 2026
…main

Rebased onto main (#488 added the prettier-organize-imports plugin +
husky hook). With -X theirs winning conflicts in our favor, three
`export * from` barrels lost main's `// organize-imports-ignore`
header. Re-add the comment so the plugin doesn't alphabetize the barrel
export order (which would break runtime init).

  - packages/ai/src/common.ts (existed pre-PR, comment lost in rebase)
  - packages/ai/src/task/index.ts (existed pre-PR, comment lost in rebase)
  - packages/ai/src/capability/index.ts (new barrel introduced by this PR)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.

3 participants