MCPcopy Index your code
hub / github.com/damnever/ChatGPTx.popclipext

github.com/damnever/ChatGPTx.popclipext @v1.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.1.1 ↗ · + Follow
34 symbols 53 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

A PopClip Extension Powered by ChatGPT

NOTE: Installing this extension will trigger a warning as it is not an officially signed extension from Pilotmoon Software. If you have any doubts, please take the time to review the source code.

Download: Buy Me A Coffee | Thanks, Perhaps Next Time

ChatGPTx

Features

  • Chat with ChatGPT using any text you have selected.
    • Per application chat histories (the chat histories are only kept for contextual use and are currently hidden).
    • The histories will expire automatically if there is no interaction with the application for 20 minutes. Click while holding the shift (⇧) key to force clear the history.
  • Opinioned actions:
    • Revising texts with reasons.
    • Polishing texts and correcting the grammar.
    • Translating texts.
    • Summarizing texts.
    • The above functions will use the primary language by default, click while holding the shift (⇧) key to use the secondary languages.
  • Any API that is compatible with the OpenAI chat completions API is supported.
    • Special support for the Microsoft Azure OpenAI service.
      • Base URL format: https://{resource-name}.openai.azure.com/openai/deployments/{deployment-id}?api-version={api-version} (it will trim the /chat/completions suffix by default)

This extension will attempt to paste(append) the result directly into the active application if the paste command is available. If not, it will copy the result and provide a preview(with possible truncation due to the current limitations of PopClip). NOTE that some applications might have the paste command, but nothing was pasted. You can click while holding option(⌥) to force a preview instead of trying to paste first.

NOTE: at the moment, no additional AI services or opinioned actions will be added as there are already too many, making the settings UI too crowded.

Thanks

This extension is inspired by chatGPTBox and ChatGPT.popclipext.

Extension points exported contracts — how you extend this code

Options (Interface)
(no doc)
main.ts
Message (Interface)
(no doc)
main.ts
APIRequestData (Interface)
(no doc)
main.ts
APIResponse (Interface)
(no doc)
main.ts

Core symbols most depended-on inside this repo

push
called by 5
main.ts
doAction
called by 5
main.ts
getChatHistory
called by 3
main.ts
doCleanup
called by 1
main.ts
isActive
called by 1
main.ts
pop
called by 1
main.ts
doCleanup
called by 1
main.ts
beforeRequest
called by 1
main.ts

Shape

Method 17
Class 7
Function 6
Interface 4

Languages

TypeScript100%

Modules by API surface

main.ts34 symbols

For agents

$ claude mcp add ChatGPTx.popclipext \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page