opencode-codetime 0.6.1 → 0.6.2

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 +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -320,7 +320,9 @@ export const plugin = async (ctx) => {
320
320
  }
321
321
  lines.push(` ${"─".repeat(maxNameLen + 2 + maxTimeLen)}`);
322
322
  lines.push(` ${"Total".padEnd(maxNameLen + 2)}${totalTime.padStart(maxTimeLen)}`);
323
- return lines.join("\n");
323
+ const header = lines[0];
324
+ const table = lines.slice(1).join("\n");
325
+ return `${header}\n\`\`\`\n${table}\n\`\`\``;
324
326
  }
325
327
  // Project-specific mode
326
328
  const projectName = args.project === "current" ? _projectName : args.project;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codetime",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
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",