@limeadelabs/launchpad-mcp 1.2.4 → 1.2.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 +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -625,16 +625,19 @@ function registerSessionTools(server2, client2) {
|
|
|
625
625
|
{
|
|
626
626
|
session_id: z9.coerce.number().optional().describe("Session ID"),
|
|
627
627
|
task_id: z9.coerce.number().optional().describe("Task ID to look up session from disk"),
|
|
628
|
-
|
|
628
|
+
message: z9.string().optional().describe("Progress message (use this)"),
|
|
629
|
+
detail: z9.string().optional().describe("Progress message (alias for message)")
|
|
629
630
|
},
|
|
630
|
-
async ({ session_id, task_id, detail }) => {
|
|
631
|
+
async ({ session_id, task_id, message, detail }) => {
|
|
631
632
|
try {
|
|
632
633
|
const resolvedId = session_id ?? (task_id !== void 0 ? getSessionId(task_id) : null);
|
|
633
634
|
if (resolvedId === null) {
|
|
634
635
|
return { content: [{ type: "text", text: "No active session found. Provide session_id or task_id." }] };
|
|
635
636
|
}
|
|
637
|
+
const text = message ?? detail;
|
|
638
|
+
if (!text) return { content: [{ type: "text", text: "message or detail is required" }] };
|
|
636
639
|
const result = await client2.updateSession(resolvedId, {
|
|
637
|
-
activity: { action: "progress", detail }
|
|
640
|
+
activity: { action: "progress", detail: text }
|
|
638
641
|
});
|
|
639
642
|
return {
|
|
640
643
|
content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
|