opencode-codetime 0.6.7 → 0.6.8

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 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -339,11 +339,12 @@ export const plugin = async (ctx) => {
339
339
  const displayName = args.project === "current"
340
340
  ? formatProjectName(_projectName)
341
341
  : projectName;
342
+ const escapedName = displayName.replace(/\[/g, "\\[").replace(/\]/g, "\\]");
342
343
  if (totalMins !== null) {
343
344
  const totalFormatted = formatMinutes(totalMins);
344
- return `Today's coding time for ${displayName}:\n\`\`\`\n ${projectFormatted} (Total across all projects: ${totalFormatted})\n\`\`\``;
345
+ return `Today's coding time for ${escapedName}: ${projectFormatted} (Total across all projects: ${totalFormatted})`;
345
346
  }
346
- return `Today's coding time for ${displayName}:\n\`\`\`\n ${projectFormatted}\n\`\`\``;
347
+ return `Today's coding time for ${escapedName}: ${projectFormatted}`;
347
348
  }
348
349
  // Default: total coding time (original behavior)
349
350
  const minutes = await getTodayMinutes(_token);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codetime",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
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",