opencode-codetime 0.6.5 → 0.6.6
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 +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -277,7 +277,8 @@ 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"
|
|
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.",
|
|
281
282
|
};
|
|
282
283
|
},
|
|
283
284
|
tool: {
|
|
@@ -340,9 +341,9 @@ export const plugin = async (ctx) => {
|
|
|
340
341
|
: projectName;
|
|
341
342
|
if (totalMins !== null) {
|
|
342
343
|
const totalFormatted = formatMinutes(totalMins);
|
|
343
|
-
return `Today's coding time for
|
|
344
|
+
return `Today's coding time for ${displayName}: ${projectFormatted} (Total across all projects: ${totalFormatted})`;
|
|
344
345
|
}
|
|
345
|
-
return `Today's coding time for
|
|
346
|
+
return `Today's coding time for ${displayName}: ${projectFormatted}`;
|
|
346
347
|
}
|
|
347
348
|
// Default: total coding time (original behavior)
|
|
348
349
|
const minutes = await getTodayMinutes(_token);
|