Skip to content

fix: remove debug console.log statements from plugin commands and targets#890

Open
kuishou68 wants to merge 3 commits into
EveryInc:mainfrom
kuishou68:fix/remove-debug-console-logs
Open

fix: remove debug console.log statements from plugin commands and targets#890
kuishou68 wants to merge 3 commits into
EveryInc:mainfrom
kuishou68:fix/remove-debug-console-logs

Conversation

@kuishou68
Copy link
Copy Markdown

Description

Remove debug console.log statements that were accidentally left in the codebase. These produce noisy output during normal plugin operation.

Changes

  • src/commands/list.ts: Removed debug console.log statements
  • src/commands/plugin-path.ts: Removed debug console.log statement
  • src/targets/kiro.ts: Removed debug console.log statement

Motivation

Debug logging via console.log clutters plugin output and should be removed for production use. If structured logging is needed, the project's logging utility should be used instead.

Closes #889

kuishou68 added 3 commits June 1, 2026 16:58
Removed 3 debug console.log statement(s).

Co-authored-by: cocoon <54054995+kuishou68@users.noreply.github.com>
Removed 1 debug console.log statement(s).

Co-authored-by: cocoon <54054995+kuishou68@users.noreply.github.com>
Removed 1 debug console.log statement(s).

Co-authored-by: cocoon <54054995+kuishou68@users.noreply.github.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 78d7dbb97b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 52 to 53
// Plugin path goes to stdout (for scripting); usage hint goes to stderr
console.error(`\nReady. Use with:\n claude --plugin-dir ${pluginPath}\n`)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep printing the plugin path to stdout

When plugin-path succeeds, the only machine-readable result used by documented shell aliases is stdout ($(ce-cli plugin-path ...) in README.md), and the comment immediately above this block still says the path goes to stdout. Removing this line makes stdout empty, so callers pass an empty --plugin-dir even though the clone/update succeeded; tests/plugin-path.test.ts also asserts stdout.trim() is the plugin directory.

Useful? React with 👍 / 👎.

Comment thread src/commands/list.ts
Comment on lines 29 to 33
if (plugins.length === 0) {
console.log("No Claude plugins found under plugins/.")
return
}

console.log(plugins.sort().join("\n"))
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the list command's plugin output

For workspaces that do contain plugin manifests, this command now builds plugins and then exits without printing anything, so bun run ... list always has empty stdout. That breaks the command's purpose and the existing CLI coverage in tests/cli.test.ts, which expects a temp workspace with plugins/demo-plugin/.claude-plugin/plugin.json to output demo-plugin.

Useful? React with 👍 / 👎.

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.

Remove debug console.log statements from source files

1 participant