opencode-codetime 0.6.0 → 0.6.1
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 +1 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -195,32 +195,12 @@ export const plugin = async (ctx) => {
|
|
|
195
195
|
if (!_token) {
|
|
196
196
|
await warn("CODETIME_TOKEN not set. CodeTime tracking disabled. " +
|
|
197
197
|
"Get your token from https://codetime.dev/dashboard/settings").catch(() => { });
|
|
198
|
-
try {
|
|
199
|
-
await client.tui.showToast({
|
|
200
|
-
body: {
|
|
201
|
-
title: "CodeTime",
|
|
202
|
-
message: "CODETIME_TOKEN not set. Tracking disabled.",
|
|
203
|
-
variant: "error",
|
|
204
|
-
},
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
catch { }
|
|
208
198
|
return {};
|
|
209
199
|
}
|
|
210
200
|
// Validate token
|
|
211
201
|
const user = await validateToken(_token);
|
|
212
202
|
if (!user) {
|
|
213
203
|
await error("Invalid CODETIME_TOKEN. Please check your token at https://codetime.dev/dashboard/settings").catch(() => { });
|
|
214
|
-
try {
|
|
215
|
-
await client.tui.showToast({
|
|
216
|
-
body: {
|
|
217
|
-
title: "CodeTime",
|
|
218
|
-
message: "Invalid token. Check https://codetime.dev/dashboard/settings",
|
|
219
|
-
variant: "error",
|
|
220
|
-
},
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
catch { }
|
|
224
204
|
_token = null;
|
|
225
205
|
return {};
|
|
226
206
|
}
|
|
@@ -298,7 +278,7 @@ export const plugin = async (ctx) => {
|
|
|
298
278
|
'- If no arguments (empty/blank), call `codetime` with `project: "current"` to show current project time.\n' +
|
|
299
279
|
"- If the argument is `breakdown`, call `codetime` with `breakdown: true` to show all projects.\n" +
|
|
300
280
|
"- Otherwise, call `codetime` with `project` set to the argument value to show that specific project's time.\n\n" +
|
|
301
|
-
"Return the output
|
|
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.",
|
|
302
282
|
};
|
|
303
283
|
},
|
|
304
284
|
tool: {
|