Skip to content

feat(hooks): add hooks list command#62

Merged
jeff-r2026 merged 1 commit into
Tencent:mainfrom
Yong-yuan-X:hooks-list
Jun 28, 2026
Merged

feat(hooks): add hooks list command#62
jeff-r2026 merged 1 commit into
Tencent:mainfrom
Yong-yuan-X:hooks-list

Conversation

@Yong-yuan-X

Copy link
Copy Markdown
Contributor

Summary

Adds teamai hooks list to show hook installation status for each AI tool configured in teamai.yaml.

The README already documents hooks as supporting list / inject / remove, but the CLI only implemented inject and remove.

The new list command reports whether each tool has the current teamai hook set installed, is missing the expected hook set, or has no settings path configured.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature causing existing behavior to change)
  • Documentation only
  • Refactor / internal cleanup

Test Plan

  • npm.cmd test -- src/__tests__/hooks-cmd.test.ts src/__tests__/hooks.test.ts
  • npm.cmd run typecheck
  • npm.cmd run build
  • Added/updated tests for the change

Targeted hooks tests pass: 44 tests passed.

Related Issues

Refs #19

Notes for Reviewers

teamai hooks list checks for the expected current hook entries rather than treating an existing settings file as installed. This avoids reporting empty, stale, or incomplete settings files as installed.

@jeff-r2026 jeff-r2026 merged commit 301fcfd into Tencent:main Jun 28, 2026
7 checks passed
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