Skip to content

Dev/code style#3

Open
FortiShield wants to merge 8 commits into
masterfrom
dev/code-style
Open

Dev/code style#3
FortiShield wants to merge 8 commits into
masterfrom
dev/code-style

Conversation

@FortiShield

Copy link
Copy Markdown
Contributor

Thinking Path

  • Taskcore orchestrates AI agents for zero-human companies
  • [Which subsystem or capability is involved]
  • [What problem or gap exists]
  • [Why it needs to be addressed]
  • This pull request ...
  • The benefit is ...

What Changed

Verification

Risks

Model Used

Checklist

  • I have included a thinking path that traces from project context to this change
  • I have specified the model used (with version and capability details)
  • I have run tests locally and they pass
  • I have added or updated tests where applicable
  • If this change affects the UI, I have included before/after screenshots
  • I have updated relevant documentation to reflect my changes
  • I have considered and documented any risks above
  • I will address all Greptile and reviewer comments before requesting merge

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry @FortiShield, your pull request is larger than the review limit of 150000 diff characters

@coderabbitai

coderabbitai Bot commented Apr 17, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 160 files, which is 10 over the limit of 150.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: aa3069b1-d152-4248-ae78-3ec0ecffe414

📥 Commits

Reviewing files that changed from the base of the PR and between 81c0acf and 2e14ce0.

⛔ Files ignored due to path filters (3)
  • doc/assets/footer.jpg is excluded by !**/*.jpg
  • doc/assets/header.png is excluded by !**/*.png
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (160)
  • .agents/skills/company-creator/SKILL.md
  • .agents/skills/company-creator/references/from-repo-guide.md
  • .agents/skills/create-agent-adapter/SKILL.md
  • .agents/skills/deal-with-security-advisory/SKILL.md
  • .agents/skills/doc-maintenance/SKILL.md
  • .agents/skills/doc-maintenance/references/audit-checklist.md
  • .agents/skills/doc-maintenance/references/section-map.md
  • .agents/skills/pr-report/SKILL.md
  • .agents/skills/prcheckloop/SKILL.md
  • .claude/skills/design-guide/SKILL.md
  • .claude/skills/design-guide/references/component-index.md
  • AGENTS.md
  • README.md
  • adapter-plugin.md
  • cli/README.md
  • cli/package.json
  • cli/src/__tests__/agent-jwt-env.test.ts
  • cli/src/__tests__/allowed-hostname.test.ts
  • cli/src/__tests__/auth-command-registration.test.ts
  • cli/src/__tests__/board-auth.test.ts
  • cli/src/__tests__/common.test.ts
  • cli/src/__tests__/company-delete.test.ts
  • cli/src/__tests__/company-import-export-e2e.test.ts
  • cli/src/__tests__/company-import-url.test.ts
  • cli/src/__tests__/company-import-zip.test.ts
  • cli/src/__tests__/company.test.ts
  • cli/src/__tests__/data-dir.test.ts
  • cli/src/__tests__/feedback.test.ts
  • cli/src/__tests__/helpers/zip.ts
  • cli/src/__tests__/home-paths.test.ts
  • cli/src/__tests__/http.test.ts
  • cli/src/__tests__/network-bind.test.ts
  • cli/src/__tests__/onboard.test.ts
  • cli/src/__tests__/routines.test.ts
  • cli/src/__tests__/telemetry.test.ts
  • cli/src/__tests__/worktree-merge-history.test.ts
  • cli/src/__tests__/worktree.test.ts
  • cli/src/checks/config-check.ts
  • cli/src/checks/database-check.ts
  • cli/src/checks/deployment-auth-check.ts
  • cli/src/checks/llm-check.ts
  • cli/src/checks/log-check.ts
  • cli/src/checks/secrets-check.ts
  • cli/src/checks/storage-check.ts
  • cli/src/client/board-auth.ts
  • cli/src/client/context.ts
  • cli/src/client/http.ts
  • cli/src/commands/allowed-hostname.ts
  • cli/src/commands/auth-bootstrap-ceo.ts
  • cli/src/commands/client/activity.ts
  • cli/src/commands/client/agent.ts
  • cli/src/commands/client/approval.ts
  • cli/src/commands/client/auth.ts
  • cli/src/commands/client/common.ts
  • cli/src/commands/client/company.ts
  • cli/src/commands/client/context.ts
  • cli/src/commands/client/dashboard.ts
  • cli/src/commands/client/feedback.ts
  • cli/src/commands/client/issue.ts
  • cli/src/commands/client/plugin.ts
  • cli/src/commands/client/zip.ts
  • cli/src/commands/configure.ts
  • cli/src/commands/db-backup.ts
  • cli/src/commands/doctor.ts
  • cli/src/commands/env.ts
  • cli/src/commands/heartbeat-run.ts
  • cli/src/commands/onboard.ts
  • cli/src/commands/routines.ts
  • cli/src/commands/run.ts
  • cli/src/commands/worktree-lib.ts
  • cli/src/commands/worktree-merge-history-lib.ts
  • cli/src/commands/worktree.ts
  • cli/src/config/data-dir.ts
  • cli/src/config/env.ts
  • cli/src/config/home.ts
  • cli/src/config/hostnames.ts
  • cli/src/config/server-bind.ts
  • cli/src/config/store.ts
  • cli/src/index.ts
  • cli/src/prompts/database.ts
  • cli/src/prompts/logging.ts
  • cli/src/prompts/secrets.ts
  • cli/src/prompts/server.ts
  • cli/src/prompts/storage.ts
  • cli/src/telemetry.ts
  • cli/src/utils/net.ts
  • cli/src/utils/path-resolver.ts
  • doc/AGENTCOMPANIES_SPEC_INVENTORY.md
  • doc/CLIPHUB.md
  • doc/DATABASE.md
  • doc/DEPLOYMENT-MODES.md
  • doc/DEVELOPING.md
  • doc/DOCKER.md
  • doc/OPENCLAW_ONBOARDING.md
  • doc/SPEC-implementation.md
  • doc/SPEC.md
  • doc/TASKS-mcp.md
  • doc/memory-landscape.md
  • doc/plans/2026-02-16-module-system.md
  • doc/plans/2026-02-18-agent-authentication.md
  • doc/plans/2026-02-19-ceo-agent-creation-and-hiring.md
  • doc/plans/2026-02-20-storage-system-implementation.md
  • doc/plans/2026-02-21-humans-and-permissions-implementation.md
  • doc/plans/2026-02-23-cursor-cloud-adapter.md
  • doc/plans/2026-02-23-deployment-auth-mode-consolidation.md
  • doc/plans/2026-03-10-workspace-strategy-and-git-worktrees.md
  • doc/plans/2026-03-13-company-import-export-v2.md
  • doc/plans/2026-03-13-features.md
  • doc/plans/2026-03-14-adapter-skill-sync-rollout.md
  • doc/plans/2026-03-14-skills-ui-product-plan.md
  • doc/plans/2026-03-17-memory-service-surface-api.md
  • doc/plans/2026-04-06-smart-model-routing.md
  • doc/plans/2026-04-06-subissue-creation-on-issue-detail.md
  • doc/plans/2026-04-07-issue-detail-speed-and-optimistic-inventory.md
  • doc/plugins/PLUGIN_SPEC.md
  • doc/plugins/ideas-from-opencode.md
  • doc/spec/agent-runs.md
  • doc/spec/ui.md
  • docs/adapters/adapter-ui-parser.md
  • docs/adapters/claude-local.md
  • docs/adapters/codex-local.md
  • docs/adapters/creating-an-adapter.md
  • docs/adapters/external-adapters.md
  • docs/adapters/gemini-local.md
  • docs/adapters/http.md
  • docs/adapters/overview.md
  • docs/adapters/process.md
  • docs/api/activity.md
  • docs/api/approvals.md
  • docs/api/companies.md
  • docs/api/costs.md
  • docs/api/issues.md
  • docs/api/overview.md
  • docs/api/routines.md
  • docs/cli/overview.md
  • docs/cli/setup-commands.md
  • docs/companies/companies-spec.md
  • docs/deploy/database.md
  • docs/deploy/environment-variables.md
  • docs/deploy/local-development.md
  • docs/deploy/overview.md
  • docs/deploy/secrets.md
  • docs/deploy/storage.md
  • docs/deploy/tailscale-private-access.md
  • docs/docs.json
  • docs/feedback-voting.md
  • docs/guides/agent-developer/handling-approvals.md
  • docs/guides/agent-developer/how-agents-work.md
  • docs/guides/agent-developer/task-workflow.md
  • docs/guides/board-operator/costs-and-budgets.md
  • docs/guides/board-operator/delegation.md
  • docs/guides/board-operator/importing-and-exporting.md
  • docs/guides/board-operator/managing-agents.md
  • docs/guides/execution-policy.md
  • docs/guides/openclaw-docker-setup.md
  • docs/specs/agent-config-ui.md
  • docs/specs/cliphub-plan.md
  • docs/start/architecture.md
  • eslint.config.mjs
  • package.json

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev/code-style

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@qodo-code-review

Copy link
Copy Markdown

Review Summary by Qodo

Apply comprehensive code style formatting improvements across CLI codebase

✨ Enhancement

Grey Divider

Walkthroughs

Description
• Applied comprehensive code style formatting improvements across the entire CLI codebase
• Reformatted import statements to break long lines across multiple lines for improved readability
• Split function signatures, type definitions, and complex expressions to adhere to line length
  limits
• Improved indentation and spacing consistency throughout test files and command implementations
• Enhanced readability of object literals, array definitions, and method chains
• Added trailing newline to package.json for consistency with code style standards
• Affected 25+ files including commands, client utilities, tests, and configuration modules
Diagram
flowchart LR
  A["CLI Codebase<br/>commands, clients,<br/>tests, config"] -- "Apply formatting<br/>rules" --> B["Reformatted Code<br/>improved readability<br/>consistent style"]
  B -- "Line breaking" --> C["Long imports &<br/>signatures split"]
  B -- "Indentation" --> D["Consistent spacing<br/>visual hierarchy"]
  B -- "Type definitions" --> E["Union types &<br/>expressions formatted"]
Loading

Grey Divider

File Changes

1. cli/src/commands/worktree.ts Formatting +872/-329

Code style formatting improvements for readability

• Reformatted long import statements and function signatures to break across multiple lines for
 improved readability
• Applied consistent line-breaking to ternary operators, function calls, and conditional expressions
• Adjusted indentation and spacing throughout to follow a stricter code style guide
• Added line breaks to long string concatenations and method chains

cli/src/commands/worktree.ts


2. cli/src/commands/worktree-merge-history-lib.ts Formatting +248/-100

Code style formatting for type definitions and expressions

• Reformatted union type definitions to span multiple lines with proper indentation
• Applied consistent line-breaking to long conditional expressions and variable assignments
• Improved readability of complex type annotations and filter/map chains
• Adjusted spacing in ternary operators and logical expressions

cli/src/commands/worktree-merge-history-lib.ts


3. cli/src/__tests__/http.test.ts Formatting +59/-29

Code style formatting in HTTP client tests

• Reformatted import statements to break across multiple lines
• Applied consistent line-breaking to vi.fn() mock chains and expect() assertions
• Improved readability of nested function calls and Response object creation
• Adjusted indentation for better visual hierarchy in test code

cli/src/tests/http.test.ts


View more (121)
4. cli/package.json Formatting +1/-1

Add trailing newline to package.json

• Added newline at end of file for consistency with code style standards

cli/package.json


5. cli/src/commands/client/company.ts Formatting +582/-181

Code style formatting improvements for readability

• Reformatted function signatures and long lines to break at appropriate points for improved
 readability
• Split multi-line object literals and array elements across multiple lines with consistent
 indentation
• Wrapped long conditional statements and chained method calls to adhere to line length limits
• Reorganized function parameters and return types to separate lines when exceeding line width

cli/src/commands/client/company.ts


6. cli/src/__tests__/worktree.test.ts Formatting +417/-113

Test file code style and formatting updates

• Reformatted long test assertions and function calls to break across multiple lines
• Split array literals and object initializations for better readability
• Wrapped conditional expressions and chained method calls to improve line length compliance
• Adjusted indentation and spacing in test setup and verification blocks

cli/src/tests/worktree.test.ts


7. cli/src/commands/client/feedback.ts Formatting +185/-58

Feedback command formatting and style improvements

• Reformatted import statements to split across multiple lines for clarity
• Wrapped long function signatures and method chains to improve readability
• Split object literals and function arguments across multiple lines with consistent indentation
• Adjusted line breaks in string concatenations and conditional expressions

cli/src/commands/client/feedback.ts


8. cli/src/__tests__/company-delete.test.ts Formatting +33/-11

Company delete test formatting improvements

• Reformatted import statements to split across multiple lines
• Wrapped long function calls and assertions to break at appropriate points
• Improved indentation and spacing in test cases for better readability

cli/src/tests/company-delete.test.ts


9. cli/src/commands/client/activity.ts Formatting +3/-1

Activity command formatting updates

• Reformatted command registration to split method chain across multiple lines
• Improved readability of command description and option setup

cli/src/commands/client/activity.ts


10. cli/src/commands/onboard.ts Formatting +222/-92

Code style improvements for import and function formatting

• Reformatted import statements to split long lines across multiple lines for better readability
• Broke up long type definitions and function signatures into multiple lines
• Improved line wrapping for conditional expressions and function calls
• Added line breaks to complex ternary operators and chained method calls

cli/src/commands/onboard.ts


11. cli/src/__tests__/company-import-export-e2e.test.ts Formatting +137/-63

Test file formatting and import statement cleanup

• Split multi-line imports into properly formatted blocks
• Reformatted function signatures to place parameters on separate lines
• Improved readability of long function calls and type annotations
• Added line breaks to complex array and object literals

cli/src/tests/company-import-export-e2e.test.ts


12. cli/src/commands/heartbeat-run.ts Formatting +95/-34

Heartbeat command formatting and line length improvements

• Reformatted import statements and const array declarations across multiple lines
• Improved line wrapping for function signatures and parameters
• Split long conditional expressions and type checks into multiple lines
• Enhanced readability of complex object property assignments

cli/src/commands/heartbeat-run.ts


13. cli/src/__tests__/company.test.ts Formatting +131/-26

Company test file formatting and assertion cleanup

• Reformatted test assertions to split long lines
• Improved readability of object literals in test cases
• Added line breaks to complex array structures in test data
• Enhanced formatting of expect statements with multiple chained methods

cli/src/tests/company.test.ts


14. cli/src/commands/client/issue.ts Formatting +84/-26

Issue command formatting and option definition improvements

• Split long option definitions across multiple lines
• Reformatted function calls with multiple parameters
• Improved readability of conditional statements and API calls
• Added line breaks to complex type annotations in API requests

cli/src/commands/client/issue.ts


15. cli/src/commands/env.ts Formatting +64/-26

Environment command formatting and import cleanup

• Reformatted import statements to split across multiple lines
• Improved line wrapping for filter and sort operations
• Split long conditional expressions into multiple lines
• Enhanced readability of environment variable collection logic

cli/src/commands/env.ts


16. cli/src/client/board-auth.ts Formatting +55/-25

Board authentication client formatting improvements

• Reformatted function signatures to place parameters on separate lines
• Improved readability of conditional expressions and type checks
• Split long function calls and object literals across multiple lines
• Enhanced formatting of async function definitions

cli/src/client/board-auth.ts


17. cli/src/__tests__/telemetry.test.ts Formatting +99/-61

Telemetry test file formatting and setup cleanup

• Reformatted array constants to split across multiple lines
• Improved readability of JSON object creation in test setup
• Split long function calls and nested structures
• Enhanced formatting of test configuration objects

cli/src/tests/telemetry.test.ts


18. cli/src/__tests__/onboard.test.ts Formatting +47/-13

Onboard test file formatting and assertion improvements

• Reformatted function calls to split parameters across lines
• Improved readability of test assertions and file operations
• Added line breaks to complex path operations
• Enhanced formatting of JSON parsing and config validation

cli/src/tests/onboard.test.ts


19. cli/src/commands/client/common.ts Formatting +75/-30

Client common utilities formatting and import cleanup

• Reformatted import statements to split across multiple lines
• Improved line wrapping for function signatures and parameters
• Split long conditional expressions and async function definitions
• Enhanced readability of API client configuration

cli/src/commands/client/common.ts


20. cli/src/__tests__/worktree-merge-history.test.ts Formatting +47/-13

Worktree merge history test formatting improvements

• Reformatted import statements to split across multiple lines
• Improved readability of test object creation and assertions
• Split long filter and map chain operations
• Enhanced formatting of complex test data structures

cli/src/tests/worktree-merge-history.test.ts


21. cli/src/commands/routines.ts Formatting +47/-18

Routines command formatting and function signature cleanup

• Reformatted function signatures to place parameters on separate lines
• Improved line wrapping for conditional expressions and error messages
• Split long filter operations and variable assignments
• Enhanced readability of database query and routine status checks

cli/src/commands/routines.ts


22. cli/src/commands/client/approval.ts Formatting +51/-15

Approval command formatting and option definition improvements

• Reformatted command registration and option definitions across multiple lines
• Improved readability of API calls and payload construction
• Split long conditional expressions and type checks
• Enhanced formatting of CSV parsing and JSON validation functions

cli/src/commands/client/approval.ts


23. cli/src/commands/auth-bootstrap-ceo.ts Formatting +28/-13

Auth bootstrap CEO command formatting improvements

• Reformatted conditional expressions to split across multiple lines
• Improved readability of configuration resolution logic
• Split long ternary operators and host binding logic
• Enhanced formatting of error messages and log statements

cli/src/commands/auth-bootstrap-ceo.ts


24. .agents/skills/company-creator/SKILL.md Additional files +5/-0

...

.agents/skills/company-creator/SKILL.md


25. .agents/skills/company-creator/references/from-repo-guide.md Additional files +9/-0

...

.agents/skills/company-creator/references/from-repo-guide.md


26. .agents/skills/create-agent-adapter/SKILL.md Additional files +98/-66

...

.agents/skills/create-agent-adapter/SKILL.md


27. .agents/skills/deal-with-security-advisory/SKILL.md Additional files +25/-25

...

.agents/skills/deal-with-security-advisory/SKILL.md


28. .agents/skills/doc-maintenance/SKILL.md Additional files +14/-14

...

.agents/skills/doc-maintenance/SKILL.md


29. .agents/skills/doc-maintenance/references/audit-checklist.md Additional files +17/-0

...

.agents/skills/doc-maintenance/references/audit-checklist.md


30. .agents/skills/doc-maintenance/references/section-map.md Additional files +17/-17

...

.agents/skills/doc-maintenance/references/section-map.md


31. .agents/skills/pr-report/SKILL.md Additional files +1/-1

...

.agents/skills/pr-report/SKILL.md


32. .agents/skills/prcheckloop/SKILL.md Additional files +7/-7

...

.agents/skills/prcheckloop/SKILL.md


33. .claude/skills/design-guide/SKILL.md Additional files +55/-43

...

.claude/skills/design-guide/SKILL.md


34. .claude/skills/design-guide/references/component-index.md Additional files +64/-40

...

.claude/skills/design-guide/references/component-index.md


35. AGENTS.md Additional files +7/-4

...

AGENTS.md


36. README.md Additional files +2/-8

...

README.md


37. adapter-plugin.md Additional files +50/-56

...

adapter-plugin.md


38. cli/README.md Additional files +12/-19

...

cli/README.md


39. cli/src/__tests__/agent-jwt-env.test.ts Additional files +9/-3

...

cli/src/tests/agent-jwt-env.test.ts


40. cli/src/__tests__/allowed-hostname.test.ts Additional files +9/-3

...

cli/src/tests/allowed-hostname.test.ts


41. cli/src/__tests__/auth-command-registration.test.ts Additional files +3/-1

...

cli/src/tests/auth-command-registration.test.ts


42. cli/src/__tests__/board-auth.test.ts Additional files +9/-3

...

cli/src/tests/board-auth.test.ts


43. cli/src/__tests__/common.test.ts Additional files +8/-2

...

cli/src/tests/common.test.ts


44. cli/src/__tests__/company-import-url.test.ts Additional files +3/-1

...

cli/src/tests/company-import-url.test.ts


45. cli/src/__tests__/company-import-zip.test.ts Additional files +3/-1

...

cli/src/tests/company-import-zip.test.ts


46. cli/src/__tests__/data-dir.test.ts Additional files +28/-17

...

cli/src/tests/data-dir.test.ts


47. cli/src/__tests__/feedback.test.ts Additional files +18/-5

...

cli/src/tests/feedback.test.ts


48. cli/src/__tests__/helpers/zip.ts Additional files +14/-4

...

cli/src/tests/helpers/zip.ts


49. cli/src/__tests__/home-paths.test.ts Additional files +12/-2

...

cli/src/tests/home-paths.test.ts


50. cli/src/__tests__/network-bind.test.ts Additional files +7/-2

...

cli/src/tests/network-bind.test.ts


51. cli/src/__tests__/routines.test.ts Additional files +21/-13

...

cli/src/tests/routines.test.ts


52. cli/src/checks/config-check.ts Additional files +7/-2

...

cli/src/checks/config-check.ts


53. cli/src/checks/database-check.ts Additional files +10/-3

...

cli/src/checks/database-check.ts


54. cli/src/checks/deployment-auth-check.ts Additional files +10/-5

...

cli/src/checks/deployment-auth-check.ts


55. cli/src/checks/llm-check.ts Additional files +10/-2

...

cli/src/checks/llm-check.ts


56. cli/src/checks/log-check.ts Additional files +4/-1

...

cli/src/checks/log-check.ts


57. cli/src/checks/secrets-check.ts Additional files +18/-7

...

cli/src/checks/secrets-check.ts


58. cli/src/checks/storage-check.ts Additional files +8/-3

...

cli/src/checks/storage-check.ts


59. cli/src/client/context.ts Additional files +43/-13

...

cli/src/client/context.ts


60. cli/src/client/http.ts Additional files +52/-15

...

cli/src/client/http.ts


61. cli/src/commands/allowed-hostname.ts Additional files +21/-6

...

cli/src/commands/allowed-hostname.ts


62. cli/src/commands/client/agent.ts Additional files +33/-9

...

cli/src/commands/client/agent.ts


63. cli/src/commands/client/auth.ts Additional files +22/-6

...

cli/src/commands/client/auth.ts


64. cli/src/commands/client/context.ts Additional files +25/-7

...

cli/src/commands/client/context.ts


65. cli/src/commands/client/dashboard.ts Additional files +6/-2

...

cli/src/commands/client/dashboard.ts


66. cli/src/commands/client/plugin.ts Additional files +57/-23

...

cli/src/commands/client/plugin.ts


67. cli/src/commands/client/zip.ts Additional files +34/-19

...

cli/src/commands/client/zip.ts


68. cli/src/commands/configure.ts Additional files +34/-7

...

cli/src/commands/configure.ts


69. cli/src/commands/db-backup.ts Additional files +21/-6

...

cli/src/commands/db-backup.ts


70. cli/src/commands/doctor.ts Additional files +15/-5

...

cli/src/commands/doctor.ts


71. cli/src/commands/run.ts Additional files +47/-18

...

cli/src/commands/run.ts


72. cli/src/commands/worktree-lib.ts Additional files +26/-9

...

cli/src/commands/worktree-lib.ts


73. cli/src/config/data-dir.ts Additional files +6/-2

...

cli/src/config/data-dir.ts


74. cli/src/config/env.ts Additional files +24/-7

...

cli/src/config/env.ts


75. cli/src/config/home.ts Additional files +21/-5

...

cli/src/config/home.ts


76. cli/src/config/hostnames.ts Additional files +3/-2

...

cli/src/config/hostnames.ts


77. cli/src/config/server-bind.ts Additional files +25/-16

...

cli/src/config/server-bind.ts


78. cli/src/config/store.ts Additional files +36/-18

...

cli/src/config/store.ts


79. cli/src/index.ts Additional files +48/-12

...

cli/src/index.ts


80. cli/src/prompts/database.ts Additional files +22/-8

...

cli/src/prompts/database.ts


81. cli/src/prompts/logging.ts Additional files +9/-2

...

cli/src/prompts/logging.ts


82. cli/src/prompts/secrets.ts Additional files +9/-3

...

cli/src/prompts/secrets.ts


83. cli/src/prompts/server.ts Additional files +9/-3

...

cli/src/prompts/server.ts


84. cli/src/prompts/storage.ts Additional files +9/-4

...

cli/src/prompts/storage.ts


85. cli/src/telemetry.ts Additional files +12/-8

...

cli/src/telemetry.ts


86. cli/src/utils/net.ts Additional files +3/-1

...

cli/src/utils/net.ts


87. cli/src/utils/path-resolver.ts Additional files +7/-2

...

cli/src/utils/path-resolver.ts


88. doc/AGENTCOMPANIES_SPEC_INVENTORY.md Additional files +57/-57

...

doc/AGENTCOMPANIES_SPEC_INVENTORY.md


89. doc/CLIPHUB.md Additional files +46/-44

...

doc/CLIPHUB.md


90. doc/DATABASE.md Additional files +5/-5

...

doc/DATABASE.md


91. doc/DEPLOYMENT-MODES.md Additional files +13/-11

...

doc/DEPLOYMENT-MODES.md


92. doc/DEVELOPING.md Additional files +50/-50

...

doc/DEVELOPING.md


93. doc/DOCKER.md Additional files +10/-10

...

doc/DOCKER.md


94. doc/OPENCLAW_ONBOARDING.md Additional files +19/-0

...

doc/OPENCLAW_ONBOARDING.md


95. doc/SPEC-implementation.md Additional files +29/-29

...

doc/SPEC-implementation.md


96. doc/SPEC.md Additional files +22/-22

...

doc/SPEC.md


97. doc/TASKS-mcp.md Additional files +5/-5

...

doc/TASKS-mcp.md


98. doc/memory-landscape.md Additional files +12/-12

...

doc/memory-landscape.md


99. doc/plans/2026-02-16-module-system.md Additional files +59/-50

...

doc/plans/2026-02-16-module-system.md


100. doc/plans/2026-02-18-agent-authentication.md Additional files +2/-2

...

doc/plans/2026-02-18-agent-authentication.md


101. doc/plans/2026-02-19-ceo-agent-creation-and-hiring.md Additional files +3/-3

...

doc/plans/2026-02-19-ceo-agent-creation-and-hiring.md


102. doc/plans/2026-02-20-storage-system-implementation.md Additional files +0/-1

...

doc/plans/2026-02-20-storage-system-implementation.md


103. doc/plans/2026-02-21-humans-and-permissions-implementation.md Additional files +26/-0

...

doc/plans/2026-02-21-humans-and-permissions-implementation.md


104. doc/plans/2026-02-23-cursor-cloud-adapter.md Additional files +19/-19

...

doc/plans/2026-02-23-cursor-cloud-adapter.md


105. doc/plans/2026-02-23-deployment-auth-mode-consolidation.md Additional files +10/-0

...

doc/plans/2026-02-23-deployment-auth-mode-consolidation.md


106. doc/plans/2026-03-10-workspace-strategy-and-git-worktrees.md Additional files +14/-3

...

doc/plans/2026-03-10-workspace-strategy-and-git-worktrees.md


107. doc/plans/2026-03-13-company-import-export-v2.md Additional files +2/-0

...

doc/plans/2026-03-13-company-import-export-v2.md


108. doc/plans/2026-03-13-features.md Additional files +0/-3

...

doc/plans/2026-03-13-features.md


109. doc/plans/2026-03-14-adapter-skill-sync-rollout.md Additional files +1/-0

...

doc/plans/2026-03-14-adapter-skill-sync-rollout.md


110. doc/plans/2026-03-14-skills-ui-product-plan.md Additional files +1/-0

...

doc/plans/2026-03-14-skills-ui-product-plan.md


111. doc/plans/2026-03-17-memory-service-surface-api.md Additional files +18/-4

...

doc/plans/2026-03-17-memory-service-surface-api.md


112. doc/plans/2026-04-06-smart-model-routing.md Additional files +1/-0

...

doc/plans/2026-04-06-smart-model-routing.md


113. doc/plans/2026-04-06-subissue-creation-on-issue-detail.md Additional files +1/-0

...

doc/plans/2026-04-06-subissue-creation-on-issue-detail.md


114. doc/plans/2026-04-07-issue-detail-speed-and-optimistic-inventory.md Additional files +1/-0

...

doc/plans/2026-04-07-issue-detail-speed-and-optimistic-inventory.md


115. doc/plugins/PLUGIN_SPEC.md Additional files +80/-30

...

doc/plugins/PLUGIN_SPEC.md


116. doc/plugins/ideas-from-opencode.md Additional files +48/-30

...

doc/plugins/ideas-from-opencode.md


117. doc/spec/agent-runs.md Additional files +32/-11

...

doc/spec/agent-runs.md


118. doc/spec/ui.md Additional files +91/-55

...

doc/spec/ui.md


119. docs/adapters/adapter-ui-parser.md Additional files +41/-23

...

docs/adapters/adapter-ui-parser.md


120. docs/adapters/claude-local.md Additional files +17/-17

...

docs/adapters/claude-local.md


121. docs/adapters/codex-local.md Additional files +10/-10

...

docs/adapters/codex-local.md


122. docs/adapters/creating-an-adapter.md Additional files +50/-33

...

docs/adapters/creating-an-adapter.md


123. docs/adapters/external-adapters.md Additional files +34/-32

...

docs/adapters/external-adapters.md


124. Additional files not shown Additional files +0/-0

...

Additional files not shown


Grey Divider

Qodo Logo

@qodo-code-review

qodo-code-review Bot commented Apr 17, 2026

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Action required

1. Broken ESLint flat config 🐞 Bug ☼ Reliability
Description
eslint.config.mjs imports globals and configures react-hooks/exhaustive-deps without
installing/registering the needed packages/plugins, so eslint . will fail (module/rule-not-found).
This breaks the newly added root lint/lint:fix scripts and can block CI/dev workflows.
Code

eslint.config.mjs[R1-36]

+import js from '@eslint/js';
+import tseslint from 'typescript-eslint';
+import globals from 'globals';
+
+export default tseslint.config(
+  { ignores: ['**/dist/**', '**/node_modules/**', '**/.pnpm-store/**', '**/coverage/**'] },
+  js.configs.recommended,
+  ...tseslint.configs.recommended,
+  {
+    files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.mjs', '**/*.cjs'],
+    languageOptions: {
+      globals: {
+        ...globals.browser,
+        ...globals.node,
+        ...globals.es2021,
+      },
+    },
+    rules: {
+      '@typescript-eslint/no-unused-vars': ['off'],
+      '@typescript-eslint/no-explicit-any': 'off',
+      '@typescript-eslint/explicit-function-return-type': 'off',
+      '@typescript-eslint/no-empty-object-type': 'off',
+      '@typescript-eslint/no-namespace': 'off',
+      '@typescript-eslint/no-require-imports': 'off',
+      '@typescript-eslint/triple-slash-reference': 'off',
+      'no-console': 'off',
+      'no-useless-catch': 'off',
+      'no-useless-escape': 'off',
+      'prefer-const': 'warn',
+      'no-empty': 'warn',
+      'no-dupe-else-if': 'warn',
+      'no-constant-binary-expression': 'warn',
+      'no-control-regex': 'off',
+      'no-regex-spaces': 'warn',
+      'react-hooks/exhaustive-deps': 'off',
+    },
Evidence
The ESLint flat config imports globals and sets a react-hooks/... rule, but the root
package.json devDependencies do not include globals or eslint-plugin-react-hooks, and the
config does not register a react-hooks plugin. With pnpm’s strict module layout, importing
undeclared dependencies commonly fails, and ESLint will error if a configured rule’s plugin is not
loaded (even if set to "off").

eslint.config.mjs[1-36]
package.json[40-55]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
`eslint.config.mjs` currently:
- `import`s `globals` but the root package does not declare it as a dependency.
- references the rule `react-hooks/exhaustive-deps` but does not install or register the `react-hooks` plugin.

This causes `pnpm lint` / `eslint .` to fail at runtime.

### Issue Context
- The PR adds root scripts `lint` and `lint:fix`, so this config will be exercised.
- In flat config, plugin rules require explicitly registering `plugins: { ... }`.

### Fix Focus Areas
- eslint.config.mjs[1-36]
- package.json[40-55]

### Suggested changes
Option A (recommended if you want the rule present):
1. Add devDependencies:
  - `globals`
  - `eslint-plugin-react-hooks`
2. Update `eslint.config.mjs`:
  - `import reactHooks from 'eslint-plugin-react-hooks'`
  - add `plugins: { 'react-hooks': reactHooks }`

Option B (if you don't need it):
- Remove the `react-hooks/exhaustive-deps` rule line entirely.

(Also consider adding `globals` as a direct devDependency even if it happens to be transitive today, to keep pnpm resolution stable.)

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

Comment thread eslint.config.mjs
Comment on lines +1 to +36
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import globals from 'globals';

export default tseslint.config(
{ ignores: ['**/dist/**', '**/node_modules/**', '**/.pnpm-store/**', '**/coverage/**'] },
js.configs.recommended,
...tseslint.configs.recommended,
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.mjs', '**/*.cjs'],
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.es2021,
},
},
rules: {
'@typescript-eslint/no-unused-vars': ['off'],
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'no-console': 'off',
'no-useless-catch': 'off',
'no-useless-escape': 'off',
'prefer-const': 'warn',
'no-empty': 'warn',
'no-dupe-else-if': 'warn',
'no-constant-binary-expression': 'warn',
'no-control-regex': 'off',
'no-regex-spaces': 'warn',
'react-hooks/exhaustive-deps': 'off',
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Action required

1. Broken eslint flat config 🐞 Bug ☼ Reliability

eslint.config.mjs imports globals and configures react-hooks/exhaustive-deps without
installing/registering the needed packages/plugins, so eslint . will fail (module/rule-not-found).
This breaks the newly added root lint/lint:fix scripts and can block CI/dev workflows.
Agent Prompt
### Issue description
`eslint.config.mjs` currently:
- `import`s `globals` but the root package does not declare it as a dependency.
- references the rule `react-hooks/exhaustive-deps` but does not install or register the `react-hooks` plugin.

This causes `pnpm lint` / `eslint .` to fail at runtime.

### Issue Context
- The PR adds root scripts `lint` and `lint:fix`, so this config will be exercised.
- In flat config, plugin rules require explicitly registering `plugins: { ... }`.

### Fix Focus Areas
- eslint.config.mjs[1-36]
- package.json[40-55]

### Suggested changes
Option A (recommended if you want the rule present):
1. Add devDependencies:
   - `globals`
   - `eslint-plugin-react-hooks`
2. Update `eslint.config.mjs`:
   - `import reactHooks from 'eslint-plugin-react-hooks'`
   - add `plugins: { 'react-hooks': reactHooks }`

Option B (if you don't need it):
- Remove the `react-hooks/exhaustive-deps` rule line entirely.

(Also consider adding `globals` as a direct devDependency even if it happens to be transitive today, to keep pnpm resolution stable.)

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

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.

1 participant