@ai-agent-forge/plugin-subagent-delegate 0.88.18 → 0.88.20
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/agent-forge.json +1 -1
- package/dist/delegate.d.ts.map +1 -1
- package/dist/delegate.js +5 -15
- package/dist/delegate.js.map +1 -1
- package/package.json +2 -2
- package/plugin.json +1 -1
package/dist/delegate.js
CHANGED
|
@@ -1115,9 +1115,7 @@ export function createCapability(api, options) {
|
|
|
1115
1115
|
"; task assignment and result acceptance stay with the parent agent, which can audit sibling traffic.",
|
|
1116
1116
|
parameters: Type.Object({
|
|
1117
1117
|
type: Type.Union(messageOps.map((op) => Type.Literal(op)), {
|
|
1118
|
-
description: `Operation: ${messageOps.join(" | ")}.
|
|
1119
|
-
'"escalate" needs non-empty text; "send" needs to and non-empty text; ' +
|
|
1120
|
-
'"inbox" takes only limit; "refuse" needs non-empty text. ' +
|
|
1118
|
+
description: `Operation: ${messageOps.join(" | ")}. ` +
|
|
1121
1119
|
"Parameters belonging to another operation are rejected",
|
|
1122
1120
|
}),
|
|
1123
1121
|
...optionalParams(escalateSpec?.parameters.properties, sendSpec?.parameters.properties, inboxSpec?.parameters.properties,
|
|
@@ -1445,12 +1443,9 @@ export function createCapability(api, options) {
|
|
|
1445
1443
|
"task's settlement is announced to you (agent-task-settled), but notifications are not per-task acceptances: " +
|
|
1446
1444
|
"accept and act on (todos/goals/next steps) only the final assembly task's report; other settled lines are " +
|
|
1447
1445
|
"status only." +
|
|
1448
|
-
//
|
|
1449
|
-
|
|
1450
|
-
'
|
|
1451
|
-
'projection carries taskOutcome "refused", that refusal is final — do not re-dispatch the same task ' +
|
|
1452
|
-
"unchanged; narrow the scope or provide what was missing, or report to the user, and read refusalReason " +
|
|
1453
|
-
'via subagent_task (type "result").' +
|
|
1446
|
+
// 任务级拒绝:投影 taskOutcome "refused" 即终局声明,父侧不得原样重派;细节经 result 回读 refusalReason。
|
|
1447
|
+
' A taskOutcome "refused" settlement is final: do not re-dispatch the same task unchanged; read ' +
|
|
1448
|
+
'refusalReason via subagent_task (type "result").' +
|
|
1454
1449
|
// 死线兜底(设计 §5.7):后台任务缺省 60 分钟死线,挂死任务到点被强制 timed_out。
|
|
1455
1450
|
" Background tasks carry a watchdog deadline by default (60 minutes; override per call with `deadlineMs`): " +
|
|
1456
1451
|
"a task still running when its deadline passes is force-settled timed_out." +
|
|
@@ -2338,12 +2333,7 @@ export function createCapability(api, options) {
|
|
|
2338
2333
|
". Task creation stays in subagent_run.",
|
|
2339
2334
|
parameters: Type.Object({
|
|
2340
2335
|
type: Type.Union(taskOps.map((op) => Type.Literal(op)), {
|
|
2341
|
-
description: `Operation: ${taskOps.join(" | ")}.
|
|
2342
|
-
'"result" needs taskId or sessionId (optional maxMessages, waitMs); ' +
|
|
2343
|
-
'"cancel" needs taskId (optional reason); ' +
|
|
2344
|
-
'"steer" needs taskId and non-empty text; ' +
|
|
2345
|
-
'"resume" needs sessionId and prompt; ' +
|
|
2346
|
-
'"list" takes only limit. ' +
|
|
2336
|
+
description: `Operation: ${taskOps.join(" | ")}. ` +
|
|
2347
2337
|
"Parameters belonging to another operation are rejected, and a missing required parameter is an error",
|
|
2348
2338
|
}),
|
|
2349
2339
|
...optionalParams(resultSpec.parameters.properties, cancelSpec.parameters.properties, steerSpec.parameters.properties, resumeSpec.parameters.properties, listSpec?.parameters.properties),
|