ofiere-openclaw-plugin 4.51.0 → 4.52.0
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/src/tools.js +10 -1
- package/package.json +1 -1
- package/src/tools.ts +10 -1
package/dist/src/tools.js
CHANGED
|
@@ -665,7 +665,16 @@ async function handleCreateTask(supabase, userId, resolveAgent, params, fallback
|
|
|
665
665
|
// INSERTed the raw input then reassigned insertData.start_date afterward,
|
|
666
666
|
// which left the DB row with the unconverted value and the response with
|
|
667
667
|
// the converted one — confusing and unsafe for the scheduler.
|
|
668
|
-
|
|
668
|
+
//
|
|
669
|
+
// Cycle 12 fix: when delegating to a staff (subagent_id present) without
|
|
670
|
+
// an explicit start_date, default to now + 5s so the scheduler_event auto-
|
|
671
|
+
// create branch below kicks in. Without this, the task sat PENDING forever
|
|
672
|
+
// because processDirectTasks' date-string filter also skips it (separate
|
|
673
|
+
// bug, fixed in task-dispatcher v21). The 5s buffer ensures the safety
|
|
674
|
+
// net at line ~805 doesn't trip and shift the run to +60s.
|
|
675
|
+
const explicitStartDate = params.start_date || null;
|
|
676
|
+
const rawStartDate = explicitStartDate
|
|
677
|
+
?? (params.subagent_id ? new Date(Date.now() + 5_000).toISOString() : null);
|
|
669
678
|
const normalized = rawStartDate
|
|
670
679
|
? normalizeStartDate(rawStartDate, params.scheduled_time, TZ_OFFSET_HOURS)
|
|
671
680
|
: null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ofiere-openclaw-plugin",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.52.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenClaw plugin for Ofiere PM - 16 meta-tools covering tasks, agents, projects, scheduling, knowledge, workflows, notifications, memory, prompts, constellation, space file management, execution plan builder, SOP management, agent brain, talent management, and corporate frameworks",
|
|
6
6
|
"keywords": ["openclaw", "ofiere", "project-management", "agents", "plugin"],
|
package/src/tools.ts
CHANGED
|
@@ -748,7 +748,16 @@ async function handleCreateTask(
|
|
|
748
748
|
// INSERTed the raw input then reassigned insertData.start_date afterward,
|
|
749
749
|
// which left the DB row with the unconverted value and the response with
|
|
750
750
|
// the converted one — confusing and unsafe for the scheduler.
|
|
751
|
-
|
|
751
|
+
//
|
|
752
|
+
// Cycle 12 fix: when delegating to a staff (subagent_id present) without
|
|
753
|
+
// an explicit start_date, default to now + 5s so the scheduler_event auto-
|
|
754
|
+
// create branch below kicks in. Without this, the task sat PENDING forever
|
|
755
|
+
// because processDirectTasks' date-string filter also skips it (separate
|
|
756
|
+
// bug, fixed in task-dispatcher v21). The 5s buffer ensures the safety
|
|
757
|
+
// net at line ~805 doesn't trip and shift the run to +60s.
|
|
758
|
+
const explicitStartDate = (params.start_date as string) || null;
|
|
759
|
+
const rawStartDate = explicitStartDate
|
|
760
|
+
?? (params.subagent_id ? new Date(Date.now() + 5_000).toISOString() : null);
|
|
752
761
|
const normalized = rawStartDate
|
|
753
762
|
? normalizeStartDate(rawStartDate, params.scheduled_time as string | undefined, TZ_OFFSET_HOURS)
|
|
754
763
|
: null;
|