@vincentwei1021/synapse-openclaw-plugin 0.5.3 → 0.5.4
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/package.json +1 -1
- package/src/event-router.ts +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincentwei1021/synapse-openclaw-plugin",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "OpenClaw plugin for Synapse research orchestration — SSE notifications, MCP tools, experiment lifecycle, autonomous loop",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/src/event-router.ts
CHANGED
|
@@ -323,9 +323,12 @@ Proposed experiments will enter "pending_review" status and require human approv
|
|
|
323
323
|
);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
private static readonly DEFAULT_DEEP_RESEARCH_MSG = "Generate a deep research literature review for this project.";
|
|
327
|
+
private static readonly DEFAULT_AUTO_SEARCH_MSG = "Search for related papers for this project.";
|
|
328
|
+
|
|
326
329
|
private handleDeepResearchRequested(n: NotificationDetail): void {
|
|
327
330
|
const projectUuid = n.projectUuid ?? n.researchProjectUuid ?? "";
|
|
328
|
-
const hasCustomPrompt = n.message
|
|
331
|
+
const hasCustomPrompt = n.message !== SynapseEventRouter.DEFAULT_DEEP_RESEARCH_MSG;
|
|
329
332
|
|
|
330
333
|
const defaultPrompt = `1. Use synapse_get_related_works with researchProjectUuid "${projectUuid}" to read all collected papers
|
|
331
334
|
2. Use synapse_get_project_full_context with researchProjectUuid "${projectUuid}" to understand the research objectives
|
|
@@ -340,7 +343,7 @@ Proposed experiments will enter "pending_review" status and require human approv
|
|
|
340
343
|
|
|
341
344
|
private handleAutoSearchTriggered(n: NotificationDetail): void {
|
|
342
345
|
const projectUuid = n.projectUuid ?? n.researchProjectUuid ?? "";
|
|
343
|
-
const hasCustomPrompt = n.message
|
|
346
|
+
const hasCustomPrompt = n.message !== SynapseEventRouter.DEFAULT_AUTO_SEARCH_MSG;
|
|
344
347
|
|
|
345
348
|
const defaultPrompt = `Search for academic papers related to this research project:
|
|
346
349
|
1. Use synapse_get_related_works with researchProjectUuid "${projectUuid}" to see what papers are already collected — avoid searching for topics already well-covered
|