opencode-codetime 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +6 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -257,15 +257,12 @@ export const plugin = async (ctx) => {
257
257
  cfg.command = cfg.command || {};
258
258
  cfg.command["codetime"] = {
259
259
  description: "Show today's coding time from CodeTime",
260
- template: "Retrieve current CodeTime coding time stats.\n\n" +
261
- "Immediately call `codetime` with no arguments and return its output verbatim.\n" +
262
- "Do not call other tools.",
263
- };
264
- cfg.command["codetime-breakdown"] = {
265
- description: "Show today's coding time breakdown by project",
266
- template: "Retrieve CodeTime coding time stats broken down by project.\n\n" +
267
- 'Immediately call `codetime` with `breakdown: true` and return its output verbatim.\n' +
268
- "Do not call other tools.",
260
+ template: "Retrieve CodeTime coding time stats.\n\n" +
261
+ "Based on the arguments provided: `$ARGUMENTS`\n\n" +
262
+ '- If no arguments (empty/blank), call `codetime` with `project: "current"` to show current project time.\n' +
263
+ "- If the argument is `breakdown`, call `codetime` with `breakdown: true` to show all projects.\n" +
264
+ "- Otherwise, call `codetime` with `project` set to the argument value to show that specific project's time.\n\n" +
265
+ "Return the output verbatim. Do not call other tools.",
269
266
  };
270
267
  },
271
268
  tool: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codetime",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "CodeTime plugin for OpenCode - Track AI coding activity and time spent with codetime.dev",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",