Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Replace wakatime CLI as ingestion for heartbeats from plugins #52

Open
rphovley opened this issue Jul 28, 2024 · 11 comments
Open

CLI: Replace wakatime CLI as ingestion for heartbeats from plugins #52

rphovley opened this issue Jul 28, 2024 · 11 comments
Labels
enhancement New feature or request important not urgent Will be impactful to our users but not urgent

Comments

@rphovley
Copy link
Member

Our project currently just acts as a secondary proxy from the wakatime CLI from the plugins that wakatime supports.

We want to upgrade our CLI so that the wakatime CLI is no longer used and our CLI supports all of the essential commands for backwards compatiblity with wakatime plugins. This will allow us to make improvements to our CLI and extensions independent of wakatime's direction going forward.

https://github.com/wakatime/wakatime-cli

@rphovley rphovley converted this from a draft issue Jul 28, 2024
@JorgeDuranAlcala
Copy link
Contributor

JorgeDuranAlcala commented Jul 28, 2024

Hi, I have a question, you no longer want to use oclif/core ?

@rphovley
Copy link
Member Author

Still want to use oclif for the CLI foundation

@JorgeDuranAlcala
Copy link
Contributor

JorgeDuranAlcala commented Jul 29, 2024

Ok so you wannna do something like this https://wakatime.com/help/creating-plugin or you wanna create something to seggregate the business logic from the implementation of wakatime ?

@rphovley
Copy link
Member Author

So, no change to the interface between a plugin and the CLI it sends the activity to. Right now the pass of data looks something like this:
plugin -> wakatime CLI -> CodeClimbers CLI

This change would update the pass of data to remove the wakatime CLI so that it looks like:
plugin -> CodeClimbers CLI

There's other processing that the wakatime CLI does, but that can be an augmentation in the future. Goal in first implementation is to keep it simple

@JorgeDuranAlcala
Copy link
Contributor

Is the plugin a nodejs client or lives in a browser ? because we can just create a special endpoint to communicate with it

@rphovley
Copy link
Member Author

The plugins are from a variety of places. Here's all of the wakatime plugins: https://wakatime.com/plugins.

There are browser plugins for chrome, firefox, safari, etc... but yeah, each application gets its own plugin to communicate application activity. For example, to track VSCode, I install the VSCode plugin and it sends data to the Wakatime CLI (and eventually after we get this worked on, just directly to the CodeClimbers CLI). If I wanted to also track browsing time, I would install the chrome plugin to my browser through the chrome store.

@charlesnnanna
Copy link
Collaborator

Hi everyone.

@JorgeDuranAlcala, have you started working on this issue or should I pick it up?

@JorgeDuranAlcala
Copy link
Contributor

@charlesnnanna No, I haven't, you can take it if you want bro

@charlesnnanna
Copy link
Collaborator

Alright... I'm already on it.

@rphovley rphovley added enhancement New feature or request important not urgent Will be impactful to our users but not urgent labels Aug 7, 2024
@rphovley rphovley assigned rphovley and charlesnnanna and unassigned rphovley Aug 8, 2024
Copy link
Contributor

Due to inactivity you will be unassigned soon and the issue be freed.

Copy link
Contributor

Due to longer inactivity, this issue has been unassigned automatically.

@github-actions github-actions bot removed the Stale label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request important not urgent Will be impactful to our users but not urgent
Projects
Status: Todo
Development

No branches or pull requests

3 participants