opencode-codetime 0.6.3 → 0.6.5
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.
- package/dist/index.js +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -277,8 +277,7 @@ export const plugin = async (ctx) => {
|
|
|
277
277
|
"Based on the arguments provided: `$ARGUMENTS`\n\n" +
|
|
278
278
|
'- If no arguments (empty/blank), call `codetime` with `project: "current"` to show current project time.\n' +
|
|
279
279
|
"- If the argument is `breakdown`, call `codetime` with `breakdown: true` to show all projects.\n" +
|
|
280
|
-
"- Otherwise, call `codetime` with `project` set to the argument value to show that specific project's time.\n\n"
|
|
281
|
-
"IMPORTANT: Return ONLY the exact output from the codetime tool, with absolutely no additional text, formatting, markdown, explanation, or commentary before or after it. Do not wrap it in code blocks. Do not add any other text.",
|
|
280
|
+
"- Otherwise, call `codetime` with `project` set to the argument value to show that specific project's time.\n\n",
|
|
282
281
|
};
|
|
283
282
|
},
|
|
284
283
|
tool: {
|
|
@@ -341,9 +340,9 @@ export const plugin = async (ctx) => {
|
|
|
341
340
|
: projectName;
|
|
342
341
|
if (totalMins !== null) {
|
|
343
342
|
const totalFormatted = formatMinutes(totalMins);
|
|
344
|
-
return `Today's coding time for
|
|
343
|
+
return `Today's coding time for \`${displayName}\`: ${projectFormatted} (Total across all projects: ${totalFormatted})`;
|
|
345
344
|
}
|
|
346
|
-
return `Today's coding time for
|
|
345
|
+
return `Today's coding time for \`${displayName}\`: ${projectFormatted}`;
|
|
347
346
|
}
|
|
348
347
|
// Default: total coding time (original behavior)
|
|
349
348
|
const minutes = await getTodayMinutes(_token);
|