opencode-codetime 0.6.2 → 0.6.3

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -211,7 +211,7 @@ export const plugin = async (ctx) => {
211
211
  initState();
212
212
  _projectDir = directory;
213
213
  _worktree = worktree;
214
- _projectName = `${path.basename(directory)} [opencode]`;
214
+ _projectName = `${path.basename(directory)} opencode`;
215
215
  _platform = os.platform();
216
216
  return {
217
217
  event: async ({ event }) => {
@@ -337,7 +337,7 @@ export const plugin = async (ctx) => {
337
337
  }
338
338
  const projectFormatted = formatMinutes(projectMins);
339
339
  const displayName = args.project === "current"
340
- ? _projectName
340
+ ? formatProjectName(_projectName)
341
341
  : projectName;
342
342
  if (totalMins !== null) {
343
343
  const totalFormatted = formatMinutes(totalMins);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codetime",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
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",