pi-subagents 0.89.0 → 0.89.1
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/CHANGELOG.md +15 -0
- package/bundle/agents.js +3 -3
- package/bundle/child-tool-plan.js +2 -2
- package/bundle/{chunk-WW6GQBBS.js → chunk-4FFKVLBG.js} +4 -4
- package/bundle/{chunk-JRO2CU4D.js → chunk-5TXWZB73.js} +1 -1
- package/bundle/{chunk-CHEABMO2.js → chunk-6D54VW3E.js} +19 -19
- package/bundle/{chunk-S77ZKDLS.js → chunk-77VQEATI.js} +1 -1
- package/bundle/{chunk-443LPCRI.js → chunk-BERAWSQQ.js} +5 -5
- package/bundle/{chunk-7W2IQFP4.js → chunk-C22YEYFZ.js} +4 -4
- package/bundle/{chunk-2I6YN6ET.js → chunk-CASL47ST.js} +8 -8
- package/bundle/{chunk-YX7R55CR.js → chunk-F6PTAPQ3.js} +12 -12
- package/bundle/{chunk-AZW4HXNU.js → chunk-IGZTXGPG.js} +98 -29
- package/bundle/{chunk-SLLZJ5EC.js → chunk-KCDPTXHT.js} +2 -2
- package/bundle/{chunk-X5ZOTDHO.js → chunk-LUNVS6KP.js} +11 -11
- package/bundle/{chunk-GHJ6BH5U.js → chunk-LWH7IGI3.js} +8 -0
- package/bundle/{chunk-NQ26PJSQ.js → chunk-MIX3MCIF.js} +4 -4
- package/bundle/{chunk-JFACGAJT.js → chunk-OUM6SEVD.js} +2 -2
- package/bundle/{chunk-UQT2EQ4U.js → chunk-Q4VH72JI.js} +2 -2
- package/bundle/{chunk-HZDLR73C.js → chunk-R3NH5XAL.js} +1 -1
- package/bundle/{chunk-PPPAEFRA.js → chunk-ROJH7KPK.js} +2 -2
- package/bundle/{chunk-6JD4XCA4.js → chunk-SG3NCWZW.js} +14 -6
- package/bundle/{chunk-KOLLMZ2X.js → chunk-SWGB2P5J.js} +1 -1
- package/bundle/{chunk-TGABNSG5.js → chunk-TDXVQPZW.js} +4 -4
- package/bundle/{chunk-4ALRHKGE.js → chunk-TRN65L4F.js} +1 -1
- package/bundle/{chunk-ZSCIHMUI.js → chunk-TXC7WIPL.js} +3 -2
- package/bundle/{chunk-HSHLPYCQ.js → chunk-URKQZHVH.js} +9 -9
- package/bundle/{chunk-A3INCQ6Z.js → chunk-UUW7P6KJ.js} +1 -1
- package/bundle/{chunk-EPMRDKQT.js → chunk-VEEUXJDO.js} +1 -1
- package/bundle/{chunk-NONHDYXE.js → chunk-YJIU5WF4.js} +1 -1
- package/bundle/{chunk-ETDE2VYK.js → chunk-YLU5JFW2.js} +2 -2
- package/bundle/control-channel.js +2 -2
- package/bundle/index.js +1 -1
- package/bundle/intercom-bridge.js +2 -2
- package/bundle/preflight.js +8 -8
- package/bundle/project-panes.js +3 -3
- package/docs/agents.md +2 -2
- package/package.json +1 -1
- package/src/extension/herdr-pi-bridge.js +1 -1
- package/src/runs/background/async-job-tracker.js +85 -9
- package/src/runs/background/async-status.d.ts +2 -0
- package/src/runs/background/async-status.js +8 -3
- package/src/runs/shared/herdr-machine.js +3 -1
- package/src/runs/shared/subagent-prompt-runtime.js +6 -5
- package/src/shared/utils.d.ts +2 -0
- package/src/shared/utils.js +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.89.1] - 2026-11-18
|
|
6
|
+
|
|
7
|
+
### Highlights
|
|
8
|
+
|
|
9
|
+
- Subagents limited to a list of `tools` work again alongside extensions that keep a tool switched off on purpose, such as pi-web-access.
|
|
10
|
+
- A background subagent keeps showing as running when its status file can't be read, instead of being marked failed and dropped.
|
|
11
|
+
- Stopping a subagent in a Herdr or Rex pane now actually stops it.
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- A subagent limited to a list of `tools` no longer stops before its first request when an extension keeps one of those tools inactive on purpose, as pi-web-access does with `web_enable`. 0.89.0 treated that tool as replaced by another extension and failed the child with a misleading error. The check now fails the child only when a tool it can call is missing from the request, so a child whose tools pi-fabric's code mode swapped out still stops early. Thanks to [@chpock](https://github.com/chpock) for the report (#3296).
|
|
16
|
+
- A background subagent whose status file can't be read, for example after its permissions changed, now still counts as running. Before, a session that reopened while the subagent was working showed no active subagents and told hosts such as pi-web it was idle, and a session already open marked the subagent failed and dropped it about 10 seconds later. The run is kept until its status can be read again, then tracked normally, or dropped if it belongs to another session. Thanks to [@jordan-quan](https://github.com/jordan-quan) for the report (#3295).
|
|
17
|
+
- Stopping a subagent that runs in a Herdr or Rex pane now stops its current turn. Before, the stop request failed in the subagent's Pi with `api.abort is not a function`. Thanks to [@guneriu](https://github.com/guneriu) for the report (#3300).
|
|
18
|
+
- `machine: "local"` from a Pi running in a Herdr Core terminal (`hc`, the Herdr app's terminal server) now fails with an error that says Herdr Core is not supported. Before, the error said Pi was not running in Herdr, which was confusing inside the Herdr app. Only the herdr terminal multiplexer and Rex are supported. Thanks to [@guneriu](https://github.com/guneriu) for the report (#3300).
|
|
19
|
+
|
|
5
20
|
## [0.89.0] - 2026-11-16
|
|
6
21
|
|
|
7
22
|
### Highlights
|
package/bundle/agents.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
RUNTIME_AGENT_REGISTER_EVENT,
|
|
3
3
|
RUNTIME_AGENT_REGISTER_VERSION,
|
|
4
4
|
registerAgentViaEvents
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5TXWZB73.js";
|
|
6
6
|
import {
|
|
7
7
|
registerRuntimeAgent
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-SWGB2P5J.js";
|
|
9
|
+
import "./chunk-LWH7IGI3.js";
|
|
10
10
|
import "./chunk-JEZOSEWG.js";
|
|
11
11
|
import "./chunk-YFCK7H2S.js";
|
|
12
12
|
import "./chunk-QXASAHIA.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolvePiLaunchToolPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R3NH5XAL.js";
|
|
4
4
|
import "./chunk-YARY7JWU.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-LWH7IGI3.js";
|
|
6
6
|
import "./chunk-JEZOSEWG.js";
|
|
7
7
|
import "./chunk-YFCK7H2S.js";
|
|
8
8
|
import "./chunk-QXASAHIA.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildWorkflowChatProgressRows
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C22YEYFZ.js";
|
|
4
4
|
import {
|
|
5
5
|
aggregateStepStatus,
|
|
6
6
|
contextModeBadge,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
projectAsyncWorkflowRows,
|
|
23
23
|
projectWorkflowChecklist,
|
|
24
24
|
workflowGraphStageNodes
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SG3NCWZW.js";
|
|
26
26
|
import {
|
|
27
27
|
isStaleExtensionContextError,
|
|
28
28
|
isUnboundExtensionRuntimeError,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
formatWorkflowJsonPreview,
|
|
35
35
|
hostStepReportName,
|
|
36
36
|
hostStepVerdictLabel
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KCDPTXHT.js";
|
|
38
38
|
import {
|
|
39
39
|
snapshotExternalRuns
|
|
40
40
|
} from "./chunk-UKG4V45O.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
getSingleResultOutput,
|
|
53
53
|
shortenPath,
|
|
54
54
|
unresolvedChildWatchdogBlockers
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-LWH7IGI3.js";
|
|
56
56
|
import {
|
|
57
57
|
MAX_WIDGET_JOBS,
|
|
58
58
|
WIDGET_ANIMATION_INTERVAL_MS,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
projectRuntimeAcknowledgedExtensions,
|
|
4
4
|
registerSubagentPromptBoundary,
|
|
5
5
|
registerSubagentPromptRuntime
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CASL47ST.js";
|
|
7
7
|
import {
|
|
8
8
|
INSPECTOR_ACTIONS,
|
|
9
9
|
canQueueRetainedAsyncFollowUp,
|
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
updateSteeringTarget,
|
|
26
26
|
waitForSteeringAction,
|
|
27
27
|
workflowAsyncChildSteeringGuidance
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BERAWSQQ.js";
|
|
29
29
|
import {
|
|
30
30
|
PLACED_RESTORE_UNSUPPORTED,
|
|
31
31
|
formatHerdrMachineRunnerUnsupported,
|
|
32
32
|
resolveMachinePlacement
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-TXC7WIPL.js";
|
|
34
34
|
import {
|
|
35
35
|
COMPLETION_ACTION,
|
|
36
36
|
DEFAULT_CONTROL_CONFIG,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
workflowScriptDigest,
|
|
120
120
|
workflowStopCause,
|
|
121
121
|
writeWorkflowReceipt
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-LUNVS6KP.js";
|
|
123
123
|
import {
|
|
124
124
|
SUBAGENT_PARENT_SESSION_ENV,
|
|
125
125
|
applyWatchdogLaunchRules,
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
resolveWatchdogConfig,
|
|
133
133
|
sendRuleViolationWarning,
|
|
134
134
|
writeWatchdogModelSettings
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-TDXVQPZW.js";
|
|
136
136
|
import {
|
|
137
137
|
MAX_REMEMBERED_FOREGROUND_RUNS,
|
|
138
138
|
discardRunningForegroundRun,
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
resolveSubagentRunId,
|
|
146
146
|
resolveWorkflowChatProgress,
|
|
147
147
|
stopAsyncRun
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-C22YEYFZ.js";
|
|
149
149
|
import {
|
|
150
150
|
RunFanoutLimitError,
|
|
151
151
|
annotateWorkflowPreflightTrace,
|
|
@@ -209,12 +209,12 @@ import {
|
|
|
209
209
|
writeRunFanoutBudgetDescriptor,
|
|
210
210
|
writeWorkflowLaunchRecord,
|
|
211
211
|
writeWorktreeSetupHandoff
|
|
212
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-SG3NCWZW.js";
|
|
213
213
|
import {
|
|
214
214
|
NATIVE_SUPERVISOR_TOOL_NAME,
|
|
215
215
|
createNativeSupervisorChannel,
|
|
216
216
|
resolveSupervisorChannelDir
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-VEEUXJDO.js";
|
|
218
218
|
import {
|
|
219
219
|
MODEL_ONLY_TOOL,
|
|
220
220
|
inheritedSessionIds,
|
|
@@ -237,10 +237,10 @@ import {
|
|
|
237
237
|
canPreferFork,
|
|
238
238
|
createForkContextResolver,
|
|
239
239
|
resolveSubagentLaunchContext
|
|
240
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-ROJH7KPK.js";
|
|
241
241
|
import {
|
|
242
242
|
handleRefinementAction
|
|
243
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-Q4VH72JI.js";
|
|
244
244
|
import {
|
|
245
245
|
ActiveAsyncCapacityError,
|
|
246
246
|
acquireActiveAsyncCapacity,
|
|
@@ -256,7 +256,7 @@ import {
|
|
|
256
256
|
resolveDisabledFeatureSurface,
|
|
257
257
|
resolveMaxActiveAsyncRunsPerSession,
|
|
258
258
|
transferActiveAsyncCapacity
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-YLU5JFW2.js";
|
|
260
260
|
import {
|
|
261
261
|
DEFAULT_STALE_TERMINAL_ACTIVE_MARKER_MS,
|
|
262
262
|
MACHINE_DIFF_OPTIONS,
|
|
@@ -343,7 +343,7 @@ import {
|
|
|
343
343
|
writeNestedControlRequest,
|
|
344
344
|
writeNestedControlResult,
|
|
345
345
|
writeNestedEvent
|
|
346
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-KCDPTXHT.js";
|
|
347
347
|
import {
|
|
348
348
|
closeSteerInbox,
|
|
349
349
|
consumeSteerRequests,
|
|
@@ -351,7 +351,7 @@ import {
|
|
|
351
351
|
readRevivalBriefs,
|
|
352
352
|
requestAsyncSteer,
|
|
353
353
|
watchAsyncControlInbox
|
|
354
|
-
} from "./chunk-
|
|
354
|
+
} from "./chunk-UUW7P6KJ.js";
|
|
355
355
|
import "./chunk-NIXWDZZV.js";
|
|
356
356
|
import {
|
|
357
357
|
INTERCOM_BRIDGE_MARKER,
|
|
@@ -360,7 +360,7 @@ import {
|
|
|
360
360
|
resolveIntercomBridge,
|
|
361
361
|
resolveIntercomSessionTarget,
|
|
362
362
|
resolveSubagentIntercomTarget
|
|
363
|
-
} from "./chunk-
|
|
363
|
+
} from "./chunk-YJIU5WF4.js";
|
|
364
364
|
import {
|
|
365
365
|
agentDefinitionDigest,
|
|
366
366
|
resolveLaunchBinding,
|
|
@@ -375,7 +375,7 @@ import {
|
|
|
375
375
|
resolvePiLaunchToolPlan,
|
|
376
376
|
resolveRuntimeModulePath,
|
|
377
377
|
supervisorChannelDir
|
|
378
|
-
} from "./chunk-
|
|
378
|
+
} from "./chunk-R3NH5XAL.js";
|
|
379
379
|
import {
|
|
380
380
|
assertRequiredChildExtensionsAdmitted,
|
|
381
381
|
createRequiredChildExtensionIdentity,
|
|
@@ -387,7 +387,7 @@ import {
|
|
|
387
387
|
import {
|
|
388
388
|
HERDR_PROJECT_PANE_ACTIONS,
|
|
389
389
|
handleHerdrProjectPaneAction
|
|
390
|
-
} from "./chunk-
|
|
390
|
+
} from "./chunk-OUM6SEVD.js";
|
|
391
391
|
import "./chunk-7J4ZXMY7.js";
|
|
392
392
|
import {
|
|
393
393
|
PROJECT_SUBAGENTS_RELATIVE_DIR,
|
|
@@ -401,12 +401,12 @@ import {
|
|
|
401
401
|
missingForkCopyNote,
|
|
402
402
|
writeArtifact,
|
|
403
403
|
writeMetadata
|
|
404
|
-
} from "./chunk-
|
|
404
|
+
} from "./chunk-77VQEATI.js";
|
|
405
405
|
import "./chunk-XA3DY6UG.js";
|
|
406
406
|
import {
|
|
407
407
|
getExternalJobProvider
|
|
408
408
|
} from "./chunk-YYREO77V.js";
|
|
409
|
-
import "./chunk-
|
|
409
|
+
import "./chunk-SWGB2P5J.js";
|
|
410
410
|
import {
|
|
411
411
|
ChainOutputValidationError,
|
|
412
412
|
DEFAULT_WAIT_TOOL_NAME,
|
|
@@ -560,7 +560,7 @@ import {
|
|
|
560
560
|
writeAtomicJson,
|
|
561
561
|
writeInitialProgressFile,
|
|
562
562
|
writePrivateAtomicJson
|
|
563
|
-
} from "./chunk-
|
|
563
|
+
} from "./chunk-LWH7IGI3.js";
|
|
564
564
|
import {
|
|
565
565
|
CHAIN_RUNS_DIR,
|
|
566
566
|
DEFAULT_ARTIFACT_CONFIG,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTrustedRecordedSessionFile,
|
|
3
3
|
resolveSubagentRunId
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C22YEYFZ.js";
|
|
5
5
|
import {
|
|
6
6
|
agentStreamOptions,
|
|
7
7
|
opencodeSessionHeaders,
|
|
8
8
|
resolveAsyncResumeTarget
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SG3NCWZW.js";
|
|
10
10
|
import {
|
|
11
11
|
ownsRun
|
|
12
12
|
} from "./chunk-HXRB42AF.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
reconcileAsyncRun,
|
|
19
19
|
resolveAuthorityDecision,
|
|
20
20
|
resolveMissionStoreLocation
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KCDPTXHT.js";
|
|
22
22
|
import {
|
|
23
23
|
deliverInterruptRequest,
|
|
24
24
|
queueRevivalBrief,
|
|
25
25
|
requestAsyncSteer
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UUW7P6KJ.js";
|
|
27
27
|
import {
|
|
28
28
|
formatShellCommand
|
|
29
29
|
} from "./chunk-7J4ZXMY7.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
tryLease,
|
|
35
35
|
writeAtomicJson,
|
|
36
36
|
writePrivateAtomicJson
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LWH7IGI3.js";
|
|
38
38
|
import {
|
|
39
39
|
DIRS
|
|
40
40
|
} from "./chunk-JEZOSEWG.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
summarizeContextModes,
|
|
13
13
|
utf8Tail,
|
|
14
14
|
workflowPreflightLaneForRuntimeKey
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-SG3NCWZW.js";
|
|
16
16
|
import {
|
|
17
17
|
ownsRun
|
|
18
18
|
} from "./chunk-HXRB42AF.js";
|
|
@@ -34,11 +34,11 @@ import {
|
|
|
34
34
|
updateActiveRunIndex,
|
|
35
35
|
validateModelResponseAliases,
|
|
36
36
|
writeAsyncResultFile
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-KCDPTXHT.js";
|
|
38
38
|
import {
|
|
39
39
|
deliverStopRequest,
|
|
40
40
|
stopInboxClosedPath
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-UUW7P6KJ.js";
|
|
42
42
|
import {
|
|
43
43
|
SUBAGENT_STOPPED_MESSAGE,
|
|
44
44
|
formatDuration,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
waitToolName,
|
|
51
51
|
writeAtomicJson,
|
|
52
52
|
writePrivateAtomicJson
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-LWH7IGI3.js";
|
|
54
54
|
import {
|
|
55
55
|
DIRS
|
|
56
56
|
} from "./chunk-JEZOSEWG.js";
|
|
@@ -14,20 +14,20 @@ import {
|
|
|
14
14
|
resolveCurrentSessionId,
|
|
15
15
|
resolveWatchdogReviewModel,
|
|
16
16
|
startWatchdogDiffBaselineCapture
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TDXVQPZW.js";
|
|
18
18
|
import {
|
|
19
19
|
agentStreamOptions,
|
|
20
20
|
opencodeSessionHeaders
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SG3NCWZW.js";
|
|
22
22
|
import {
|
|
23
23
|
registerNativeSupervisorClient
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VEEUXJDO.js";
|
|
25
25
|
import {
|
|
26
26
|
MODEL_ONLY_TOOL
|
|
27
27
|
} from "./chunk-HXRB42AF.js";
|
|
28
28
|
import {
|
|
29
29
|
inheritedNestedRouteOf
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KCDPTXHT.js";
|
|
31
31
|
import {
|
|
32
32
|
CHILD_WATCHDOG_STATUS_EVENT,
|
|
33
33
|
DEFAULT_WAIT_TOOL_NAME,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
toolBudgetSoftNudge,
|
|
47
47
|
validateAcceptanceReport,
|
|
48
48
|
validateStructuredOutputValue
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-LWH7IGI3.js";
|
|
50
50
|
import {
|
|
51
51
|
INTERCOM_SESSION_IDENTITY_EVENT
|
|
52
52
|
} from "./chunk-JEZOSEWG.js";
|
|
@@ -544,10 +544,10 @@ function registerDeclaredToolCheck(pi, config, required) {
|
|
|
544
544
|
pi.on("context_with_system", (event, ctx) => {
|
|
545
545
|
const declared = new Set(getCurrentTools(event.messages).map((tool) => tool.name));
|
|
546
546
|
if (required.every((name) => declared.has(name))) return void 0;
|
|
547
|
-
const registered = new Set(pi.getAllTools().map((tool) => tool.name));
|
|
548
|
-
const undeclared = required.filter((name) => registered.has(name) && !declared.has(name));
|
|
549
|
-
if (undeclared.length === 0) return void 0;
|
|
550
547
|
const active = new Set(pi.getActiveTools());
|
|
548
|
+
const undeclared = required.filter((name) => active.has(name) && !declared.has(name));
|
|
549
|
+
if (undeclared.length === 0) return void 0;
|
|
550
|
+
const registered = new Set(pi.getAllTools().map((tool) => tool.name));
|
|
551
551
|
const uncallable = config.forkCacheKey ? [] : [...declared].filter((name) => !active.has(name));
|
|
552
552
|
config.toolDiagnostic?.({
|
|
553
553
|
...config.agent ? { agent: config.agent } : {},
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rewriteSubagentPrompt
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CASL47ST.js";
|
|
4
4
|
import {
|
|
5
5
|
package_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TRN65L4F.js";
|
|
7
7
|
import {
|
|
8
8
|
WATCHDOG_DIFF_TOOL_NAME,
|
|
9
9
|
captureWatchdogDiffBaseline,
|
|
10
10
|
createWatchdogDiffTool
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-TDXVQPZW.js";
|
|
12
|
+
import "./chunk-SG3NCWZW.js";
|
|
13
|
+
import "./chunk-VEEUXJDO.js";
|
|
14
14
|
import {
|
|
15
15
|
MODEL_ONLY_TOOL
|
|
16
16
|
} from "./chunk-HXRB42AF.js";
|
|
17
17
|
import "./chunk-W2BZS6UC.js";
|
|
18
18
|
import {
|
|
19
19
|
appendAgentRefinementOverlay
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-Q4VH72JI.js";
|
|
21
|
+
import "./chunk-KCDPTXHT.js";
|
|
22
22
|
import "./chunk-NIXWDZZV.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-YJIU5WF4.js";
|
|
24
24
|
import "./chunk-7F6RKT6W.js";
|
|
25
25
|
import {
|
|
26
26
|
assertNoToolModifierEntries
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-R3NH5XAL.js";
|
|
28
28
|
import "./chunk-YARY7JWU.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-77VQEATI.js";
|
|
30
30
|
import {
|
|
31
31
|
HERDR_PI_MAX_ACCEPTANCE_PROMPT_BYTES,
|
|
32
32
|
HERDR_PI_MAX_FRAME_BYTES,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
discoverAgents,
|
|
45
45
|
resolveExistingReadPaths,
|
|
46
46
|
resolveSkills
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-LWH7IGI3.js";
|
|
48
48
|
import "./chunk-JEZOSEWG.js";
|
|
49
49
|
import "./chunk-YFCK7H2S.js";
|
|
50
50
|
import "./chunk-QXASAHIA.js";
|
|
@@ -188,7 +188,7 @@ ${answer}` }], details };
|
|
|
188
188
|
api.sendUserMessage(request.text ?? "");
|
|
189
189
|
} else if (request.operation === "steer") api.sendUserMessage(request.text ?? "", { deliverAs: "steer" });
|
|
190
190
|
else if (request.operation === "follow-up") api.sendUserMessage(request.text ?? "", { deliverAs: "followUp" });
|
|
191
|
-
else if (request.operation === "abort")
|
|
191
|
+
else if (request.operation === "abort") ctx.abort();
|
|
192
192
|
else {
|
|
193
193
|
const entry = request.supervisorId ? supervisor.get(request.supervisorId) : void 0;
|
|
194
194
|
if (!entry) throw new Error("Unknown supervisor request.");
|