Reviewed feature request issue for copyToClipboard export.
UnderstandExported copyToClipboard function in codebase.
EditUpdated changelog with new export entry.
EditAdded appropriate label to the issue.
EditCommitted and pushed changes to repository.
VerifyYou are given one or more GitHub PR URLs: https://github.com/badlogic/pi-mono/issues/926
For each PR URL, do the following in order:
packages/*/CHANGELOG.md files. Report whether an entry exists. If missing, state that a changelog entry is required before merge and that you will add it if the user decides to merge. Follow the changelog format rules in AGENTS.md. Verify:
### Breaking Changes, ### Added, ### Fixed, etc.)Fixed foo ([#123](https://github.com/badlogic/pi-mono/pull/123) by [@user](https://github.com/user))### Breaking Changes, not just ### FixedOutput format per PR: PR: Changelog:
If no issues are found, say so under Bad and Ugly.
The URL points to an issue, not a PR. Let me fetch it as an issue:
Issue #926 (not a PR): "Expose copyToClipboard"
This is a feature request issue by @mitsuhiko, not a pull request.
Summary:
copyToClipboard function so extensions can use itLet me check the current state of copyToClipboard in the codebase:
Issue #926: "Expose copyToClipboard"
This is a feature request (not a PR). Here's the analysis:
pkg:coding-agent)copyToClipboard from the public API so extensions can use itThe copyToClipboard function exists at:
packages/coding-agent/src/utils/clipboard.tspackages/coding-agent/src/index.tsThis means extensions cannot import it via:
import { copyToClipboard } from "@anthropic-ai/coding-agent";To implement this request:
Add export to packages/coding-agent/src/index.ts:
export { copyToClipboard } from "./utils/clipboard.js";Add changelog entry to packages/coding-agent/CHANGELOG.md:
### Added- Exposed `copyToClipboard` utility for extensions ([#926](https://github.com/badlogic/pi-mono/issues/926) by [@mitsuhiko](https://github.com/mitsuhiko))Consider documentation update in packages/coding-agent/docs/extensions.md if clipboard utilities should be documented for extension authors.
Would you like me to implement this feature request?
implement
All checks pass. Let me add the appropriate label to the issue:
Done. Implementation complete:
Changes made:
packages/coding-agent/src/index.ts - Added export:
export { copyToClipboard } from "./utils/clipboard.js";packages/coding-agent/CHANGELOG.md - Added entry under ### Added:
- Exposed `copyToClipboard` utility for extensions ([#926](https://github.com/badlogic/pi-mono/issues/926) by [@mitsuhiko](https://github.com/mitsuhiko))Issue #926 - Added pkg:coding-agent label
Extensions can now import and use the clipboard utility:
import { copyToClipboard } from "@mariozechner/pi-coding-agent";
copyToClipboard("text to copy");commit and push
Committed and pushed. Issue #926 will be automatically closed.
import { copyToClipboard } from "@anthropic-ai/coding-agent";export { copyToClipboard } from "./utils/clipboard.js";### Added- Exposed `copyToClipboard` utility for extensions ([#926](https://github.com/badlogic/pi-mono/issues/926) by [@mitsuhiko](https://github.com/mitsuhiko))export { copyToClipboard } from "./utils/clipboard.js";- Exposed `copyToClipboard` utility for extensions ([#926](https://github.com/badlogic/pi-mono/issues/926) by [@mitsuhiko](https://github.com/mitsuhiko))import { copyToClipboard } from "@mariozechner/pi-coding-agent";
copyToClipboard("text to copy");