agent-planner-mcp 1.5.3 → 1.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/tools/bdi/intentions.js +13 -2
package/package.json
CHANGED
|
@@ -938,7 +938,10 @@ async function formIntentionHandler(args, apiClient) {
|
|
|
938
938
|
continue;
|
|
939
939
|
}
|
|
940
940
|
try {
|
|
941
|
-
|
|
941
|
+
// Plan-scoped route — the bare /dependencies path is unmounted (only
|
|
942
|
+
// /dependencies/cross-plan + /external exist), so it 404s and silently
|
|
943
|
+
// dropped every inline edge. POST /plans/:id/dependencies is canonical.
|
|
944
|
+
await apiClient.axiosInstance.post(`/plans/${plan.id}/dependencies`, {
|
|
942
945
|
source_node_id: sourceId,
|
|
943
946
|
target_node_id: intent.targetId,
|
|
944
947
|
dependency_type: 'blocks',
|
|
@@ -1133,7 +1136,9 @@ async function proposeResearchChainHandler(args, apiClient) {
|
|
|
1133
1136
|
[created.plan.id, created.implement.id],
|
|
1134
1137
|
]) {
|
|
1135
1138
|
try {
|
|
1136
|
-
|
|
1139
|
+
// Plan-scoped route — bare /dependencies 404s (unmounted), which silently
|
|
1140
|
+
// dropped both chain edges and left 3 orphan tasks.
|
|
1141
|
+
await apiClient.axiosInstance.post(`/plans/${plan_id}/dependencies`, {
|
|
1137
1142
|
source_node_id: from,
|
|
1138
1143
|
target_node_id: to,
|
|
1139
1144
|
dependency_type: 'blocks',
|
|
@@ -1144,6 +1149,7 @@ async function proposeResearchChainHandler(args, apiClient) {
|
|
|
1144
1149
|
}
|
|
1145
1150
|
}
|
|
1146
1151
|
|
|
1152
|
+
const edgeFailures = failures.filter((f) => f.step === 'create_edge');
|
|
1147
1153
|
return formatResponse({
|
|
1148
1154
|
as_of: asOf(),
|
|
1149
1155
|
plan_id,
|
|
@@ -1154,6 +1160,11 @@ async function proposeResearchChainHandler(args, apiClient) {
|
|
|
1154
1160
|
implement: { id: created.implement.id, title: created.implement.title },
|
|
1155
1161
|
edges,
|
|
1156
1162
|
failures,
|
|
1163
|
+
// Fail loudly: don't let the caller believe the chain is wired when the
|
|
1164
|
+
// blocking edges didn't get created.
|
|
1165
|
+
...(edgeFailures.length
|
|
1166
|
+
? { warning: `Chain tasks created but ${edgeFailures.length} blocking edge(s) FAILED — the Research→Plan→Implement ordering is NOT wired: ${edgeFailures.map((f) => f.error).join('; ')}` }
|
|
1167
|
+
: {}),
|
|
1157
1168
|
next_step: "Claim the Research task with claim_next_task({plan_id}) to begin investigation.",
|
|
1158
1169
|
});
|
|
1159
1170
|
}
|