@narumitw/pi-subagents 2.0.2 → 2.0.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/README.md +253 -160
- package/dist/chunks/auto-transport-SY2VHUFH.ts +8 -8
- package/dist/chunks/capability-grant-CGEWOEKE.ts +3 -3
- package/dist/chunks/{chunk-F5YWVHQX.ts → chunk-2OUVSORM.ts} +32 -32
- package/dist/chunks/chunk-434NII74.ts +4 -4
- package/dist/chunks/chunk-7QPPBBXZ.ts +3 -3
- package/dist/chunks/chunk-AEUYS7JC.ts +2 -2
- package/dist/chunks/chunk-BFK2Z4ZF.ts +1 -1
- package/dist/chunks/chunk-DQMN4OYM.ts +9 -9
- package/dist/chunks/chunk-DSOOH73Y.ts +1 -1
- package/dist/chunks/chunk-EFBPISNT.ts +5 -5
- package/dist/chunks/chunk-EWWXFU7N.ts +2 -2
- package/dist/chunks/chunk-F4L2UVSK.ts +3 -3
- package/dist/chunks/chunk-G3RSMSXJ.ts +3 -3
- package/dist/chunks/chunk-HA36LPCO.ts +1 -1
- package/dist/chunks/chunk-HKC4ES4B.ts +1 -1
- package/dist/chunks/chunk-I2FAK44T.ts +1 -1
- package/dist/chunks/chunk-NIF42QMF.ts +5 -5
- package/dist/chunks/chunk-O4VO6JUJ.ts +3 -3
- package/dist/chunks/chunk-ONDTY4EL.ts +1 -1
- package/dist/chunks/chunk-OVPHFGKO.ts +1 -1
- package/dist/chunks/chunk-PSK43Y6A.ts +2 -2
- package/dist/chunks/chunk-QBORTI4W.ts +3 -3
- package/dist/chunks/chunk-QDVGH2X7.ts +2 -2
- package/dist/chunks/chunk-RHRQMT7Q.ts +7 -7
- package/dist/chunks/chunk-RSUXZD6S.ts +1 -1
- package/dist/chunks/chunk-RTCVYIZA.ts +1 -1
- package/dist/chunks/chunk-SCZ33MYW.ts +4 -4
- package/dist/chunks/chunk-SWGQLFSD.ts +1 -1
- package/dist/chunks/chunk-UVFVHIOP.ts +12 -12
- package/dist/chunks/completion-delivery-YPOWSSV3.ts +6 -6
- package/dist/chunks/config-status-J4GPWP46.ts +8 -8
- package/dist/chunks/{config-ui-3IBMHTQB.ts → config-ui-7IMI3I4B.ts} +24 -24
- package/dist/chunks/consult-NYXVDN5G.ts +24 -24
- package/dist/chunks/context-QDKLVQXE.ts +1 -1
- package/dist/chunks/{create-stateful-transport-4WKZHRSI.ts → create-stateful-transport-F5OG2LEY.ts} +7 -7
- package/dist/chunks/cwd-policy-NB6XZ5GF.ts +3 -3
- package/dist/chunks/delegation-contract-WJPT4FVS.ts +2 -2
- package/dist/chunks/discovery-K25T3SH4.ts +4 -4
- package/dist/chunks/execution-DS2DEIQZ.ts +23 -23
- package/dist/chunks/in-process-transport-TEYAWSEC.ts +16 -16
- package/dist/chunks/inspect-UOQQ3KNL.ts +14 -14
- package/dist/chunks/peer-communication-KL36Z6CO.ts +2 -2
- package/dist/chunks/persistence-VSGXAW4P.ts +12 -12
- package/dist/chunks/registry-E6XPJB7L.ts +12 -12
- package/dist/chunks/retained-semantic-state-7WXSGRJU.ts +3 -3
- package/dist/chunks/{rpc-transport-Y6LA5BOP.ts → rpc-transport-ZNNBRUSY.ts} +118 -48
- package/dist/chunks/rpc-transport-ZNNBRUSY.ts.map +7 -0
- package/dist/chunks/runtime-policy-5YELCOVC.ts +1 -1
- package/dist/chunks/semantic-snapshot-WPJ3UAFW.ts +1 -1
- package/dist/chunks/spawn-idempotency-QGHO2WKC.ts +1 -1
- package/dist/chunks/stateful-lifecycle-JAR6K55H.ts +1 -1
- package/dist/chunks/subprocess-transport-C2XVR25R.ts +21 -21
- package/dist/chunks/workspace-WDKLN72J.ts +1 -1
- package/dist/index.ts +25 -25
- package/package.json +5 -5
- package/src/rpc-transport.ts +20 -6
- package/src/rpc-turn-capture.ts +98 -23
- package/dist/chunks/rpc-transport-Y6LA5BOP.ts.map +0 -7
- /package/dist/chunks/{chunk-F5YWVHQX.ts.map → chunk-2OUVSORM.ts.map} +0 -0
- /package/dist/chunks/{config-ui-3IBMHTQB.ts.map → config-ui-7IMI3I4B.ts.map} +0 -0
- /package/dist/chunks/{create-stateful-transport-4WKZHRSI.ts.map → create-stateful-transport-F5OG2LEY.ts.map} +0 -0
|
@@ -4,48 +4,48 @@ import {
|
|
|
4
4
|
CHILD_PEER_TOOL_NAMES,
|
|
5
5
|
createInProcessPeerExtension,
|
|
6
6
|
formatPeerMessage
|
|
7
|
-
} from "./chunk-EWWXFU7N.
|
|
7
|
+
} from "./chunk-EWWXFU7N.ts";
|
|
8
8
|
import {
|
|
9
9
|
resolvePiPromptResources
|
|
10
|
-
} from "./chunk-G6VZTCFH.
|
|
10
|
+
} from "./chunk-G6VZTCFH.ts";
|
|
11
11
|
import {
|
|
12
12
|
buildTimeoutFinalizationPrompt,
|
|
13
13
|
resolveTimeoutFinalizationMs
|
|
14
|
-
} from "./chunk-G3RSMSXJ.
|
|
14
|
+
} from "./chunk-G3RSMSXJ.ts";
|
|
15
15
|
import {
|
|
16
16
|
TURN_TERMINATION_VERSION,
|
|
17
17
|
TimeoutProgressJournal,
|
|
18
18
|
formatTimeoutCheckpoint,
|
|
19
19
|
formatTurnTerminationMessage,
|
|
20
20
|
journalMessages
|
|
21
|
-
} from "./chunk-RTCVYIZA.
|
|
21
|
+
} from "./chunk-RTCVYIZA.ts";
|
|
22
22
|
import {
|
|
23
23
|
TurnBudgetMonitor
|
|
24
|
-
} from "./chunk-ONDTY4EL.
|
|
24
|
+
} from "./chunk-ONDTY4EL.ts";
|
|
25
25
|
import {
|
|
26
26
|
discoverAgents
|
|
27
|
-
} from "./chunk-PSK43Y6A.
|
|
27
|
+
} from "./chunk-PSK43Y6A.ts";
|
|
28
28
|
import {
|
|
29
29
|
appendResultInstruction
|
|
30
|
-
} from "./chunk-RSUXZD6S.
|
|
30
|
+
} from "./chunk-RSUXZD6S.ts";
|
|
31
31
|
import {
|
|
32
32
|
readSubagentSettings
|
|
33
|
-
} from "./chunk-QBORTI4W.
|
|
33
|
+
} from "./chunk-QBORTI4W.ts";
|
|
34
34
|
import {
|
|
35
35
|
safeTerminalLine
|
|
36
|
-
} from "./chunk-SWGQLFSD.
|
|
36
|
+
} from "./chunk-SWGQLFSD.ts";
|
|
37
37
|
import {
|
|
38
38
|
appendDelegationContract
|
|
39
|
-
} from "./chunk-I2FAK44T.
|
|
39
|
+
} from "./chunk-I2FAK44T.ts";
|
|
40
40
|
import {
|
|
41
41
|
DEFAULT_MAX_CONTEXT_BYTES,
|
|
42
42
|
DEFAULT_MAX_OUTPUT_BYTES,
|
|
43
43
|
redactPrivateText,
|
|
44
44
|
truncateUtf8
|
|
45
|
-
} from "./chunk-H3FP6DLR.
|
|
45
|
+
} from "./chunk-H3FP6DLR.ts";
|
|
46
46
|
import {
|
|
47
47
|
resolveDefaultSubagentTimeoutMs
|
|
48
|
-
} from "./chunk-RRR66UWR.
|
|
48
|
+
} from "./chunk-RRR66UWR.ts";
|
|
49
49
|
|
|
50
50
|
// src/in-process-transport.ts
|
|
51
51
|
import {
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import {
|
|
4
4
|
CompletionDeliveryBroker,
|
|
5
5
|
buildDetachedCompletionMessage
|
|
6
|
-
} from "./chunk-434NII74.
|
|
7
|
-
import "./chunk-C4L6P266.
|
|
8
|
-
import "./chunk-QDVGH2X7.
|
|
9
|
-
import "./chunk-BFK2Z4ZF.
|
|
10
|
-
import "./chunk-SWGQLFSD.
|
|
11
|
-
import "./chunk-H3FP6DLR.
|
|
6
|
+
} from "./chunk-434NII74.ts";
|
|
7
|
+
import "./chunk-C4L6P266.ts";
|
|
8
|
+
import "./chunk-QDVGH2X7.ts";
|
|
9
|
+
import "./chunk-BFK2Z4ZF.ts";
|
|
10
|
+
import "./chunk-SWGQLFSD.ts";
|
|
11
|
+
import "./chunk-H3FP6DLR.ts";
|
|
12
12
|
export {
|
|
13
13
|
CompletionDeliveryBroker,
|
|
14
14
|
buildDetachedCompletionMessage
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
showSubagentHelp,
|
|
12
12
|
showSubagentStatus,
|
|
13
13
|
statusLines
|
|
14
|
-
} from "./chunk-EFBPISNT.
|
|
15
|
-
import "./chunk-KMGKCEO4.
|
|
16
|
-
import "./chunk-7QPPBBXZ.
|
|
17
|
-
import "./chunk-QBORTI4W.
|
|
18
|
-
import "./chunk-7OBINKFM.
|
|
19
|
-
import "./chunk-DPPVEQAM.
|
|
20
|
-
import "./chunk-SWGQLFSD.
|
|
21
|
-
import "./chunk-H3FP6DLR.
|
|
14
|
+
} from "./chunk-EFBPISNT.ts";
|
|
15
|
+
import "./chunk-KMGKCEO4.ts";
|
|
16
|
+
import "./chunk-7QPPBBXZ.ts";
|
|
17
|
+
import "./chunk-QBORTI4W.ts";
|
|
18
|
+
import "./chunk-7OBINKFM.ts";
|
|
19
|
+
import "./chunk-DPPVEQAM.ts";
|
|
20
|
+
import "./chunk-SWGQLFSD.ts";
|
|
21
|
+
import "./chunk-H3FP6DLR.ts";
|
|
22
22
|
export {
|
|
23
23
|
completionLabel,
|
|
24
24
|
consultResourceLabel,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @generated by scripts/build-runtime.mjs; do not edit.
|
|
2
2
|
// @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
|
|
3
|
-
import "./chunk-SCZ33MYW.
|
|
3
|
+
import "./chunk-SCZ33MYW.ts";
|
|
4
4
|
import {
|
|
5
5
|
formatStatefulAgentLine
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-P7OH4XMF.
|
|
8
|
-
import "./chunk-N7BLVXKK.
|
|
9
|
-
import "./chunk-ONDTY4EL.
|
|
10
|
-
import "./chunk-O4VO6JUJ.
|
|
6
|
+
} from "./chunk-2OUVSORM.ts";
|
|
7
|
+
import "./chunk-P7OH4XMF.ts";
|
|
8
|
+
import "./chunk-N7BLVXKK.ts";
|
|
9
|
+
import "./chunk-ONDTY4EL.ts";
|
|
10
|
+
import "./chunk-O4VO6JUJ.ts";
|
|
11
11
|
import {
|
|
12
12
|
discoverAgents
|
|
13
|
-
} from "./chunk-PSK43Y6A.
|
|
14
|
-
import "./chunk-RSUXZD6S.
|
|
13
|
+
} from "./chunk-PSK43Y6A.ts";
|
|
14
|
+
import "./chunk-RSUXZD6S.ts";
|
|
15
15
|
import {
|
|
16
16
|
applyStatefulLimitSetting,
|
|
17
17
|
completionLabel,
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
statefulLimitListScreen,
|
|
31
31
|
statusLines,
|
|
32
32
|
workflowLabel
|
|
33
|
-
} from "./chunk-EFBPISNT.
|
|
34
|
-
import "./chunk-KMGKCEO4.
|
|
33
|
+
} from "./chunk-EFBPISNT.ts";
|
|
34
|
+
import "./chunk-KMGKCEO4.ts";
|
|
35
35
|
import {
|
|
36
36
|
sameToolSet,
|
|
37
37
|
uniqueToolNames,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
updateCwdPolicySetting,
|
|
44
44
|
updateDelegationWorkflowSetting,
|
|
45
45
|
updateStatefulTransportSetting
|
|
46
|
-
} from "./chunk-7QPPBBXZ.
|
|
46
|
+
} from "./chunk-7QPPBBXZ.ts";
|
|
47
47
|
import {
|
|
48
48
|
hasOwn,
|
|
49
49
|
inspectBlockingParallelLimitSettings,
|
|
@@ -53,26 +53,26 @@ import {
|
|
|
53
53
|
inspectDelegationWorkflowSettings,
|
|
54
54
|
inspectStatefulTransportSettings,
|
|
55
55
|
readSubagentSettings
|
|
56
|
-
} from "./chunk-QBORTI4W.
|
|
56
|
+
} from "./chunk-QBORTI4W.ts";
|
|
57
57
|
import {
|
|
58
58
|
isStatefulLimitField
|
|
59
|
-
} from "./chunk-7OBINKFM.
|
|
60
|
-
import "./chunk-DPPVEQAM.
|
|
61
|
-
import "./chunk-434NII74.
|
|
62
|
-
import "./chunk-C4L6P266.
|
|
63
|
-
import "./chunk-QDVGH2X7.
|
|
64
|
-
import "./chunk-BFK2Z4ZF.
|
|
59
|
+
} from "./chunk-7OBINKFM.ts";
|
|
60
|
+
import "./chunk-DPPVEQAM.ts";
|
|
61
|
+
import "./chunk-434NII74.ts";
|
|
62
|
+
import "./chunk-C4L6P266.ts";
|
|
63
|
+
import "./chunk-QDVGH2X7.ts";
|
|
64
|
+
import "./chunk-BFK2Z4ZF.ts";
|
|
65
65
|
import {
|
|
66
66
|
safeTerminalLine
|
|
67
|
-
} from "./chunk-SWGQLFSD.
|
|
68
|
-
import "./chunk-I2FAK44T.
|
|
67
|
+
} from "./chunk-SWGQLFSD.ts";
|
|
68
|
+
import "./chunk-I2FAK44T.ts";
|
|
69
69
|
import {
|
|
70
70
|
MAX_BLOCKING_PARALLEL_CONCURRENCY,
|
|
71
71
|
MAX_CONFIGURABLE_PARALLEL_TASKS,
|
|
72
72
|
MAX_SUBAGENT_TIMEOUT_MS
|
|
73
|
-
} from "./chunk-H3FP6DLR.
|
|
74
|
-
import "./chunk-RRR66UWR.
|
|
75
|
-
import "./chunk-S2IWVK3J.
|
|
73
|
+
} from "./chunk-H3FP6DLR.ts";
|
|
74
|
+
import "./chunk-RRR66UWR.ts";
|
|
75
|
+
import "./chunk-S2IWVK3J.ts";
|
|
76
76
|
|
|
77
77
|
// src/execution-ui.ts
|
|
78
78
|
function executionAgentPickerScreen(agents) {
|
|
@@ -1143,4 +1143,4 @@ export {
|
|
|
1143
1143
|
showSubagentManager,
|
|
1144
1144
|
showSubagentSettings
|
|
1145
1145
|
};
|
|
1146
|
-
//# sourceMappingURL=config-ui-
|
|
1146
|
+
//# sourceMappingURL=config-ui-7IMI3I4B.ts.map
|
|
@@ -2,66 +2,66 @@
|
|
|
2
2
|
// @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
|
|
3
3
|
import {
|
|
4
4
|
resolveConsultTools
|
|
5
|
-
} from "./chunk-UMBPMVJW.
|
|
5
|
+
} from "./chunk-UMBPMVJW.ts";
|
|
6
6
|
import {
|
|
7
7
|
assertConsultationTargetAllowed,
|
|
8
8
|
resolveSubagentTarget
|
|
9
|
-
} from "./chunk-HA36LPCO.
|
|
9
|
+
} from "./chunk-HA36LPCO.ts";
|
|
10
10
|
import {
|
|
11
11
|
runSingleAgent
|
|
12
|
-
} from "./chunk-DQMN4OYM.
|
|
13
|
-
import "./chunk-IGAMVWFN.
|
|
14
|
-
import "./chunk-47SK2QYC.
|
|
15
|
-
import "./chunk-HKC4ES4B.
|
|
16
|
-
import "./chunk-DSOOH73Y.
|
|
12
|
+
} from "./chunk-DQMN4OYM.ts";
|
|
13
|
+
import "./chunk-IGAMVWFN.ts";
|
|
14
|
+
import "./chunk-47SK2QYC.ts";
|
|
15
|
+
import "./chunk-HKC4ES4B.ts";
|
|
16
|
+
import "./chunk-DSOOH73Y.ts";
|
|
17
17
|
import {
|
|
18
18
|
resolvePiPromptResources
|
|
19
|
-
} from "./chunk-G6VZTCFH.
|
|
20
|
-
import "./chunk-G3RSMSXJ.
|
|
19
|
+
} from "./chunk-G6VZTCFH.ts";
|
|
20
|
+
import "./chunk-G3RSMSXJ.ts";
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_AGENT_CATALOG_MAX_ITEMS,
|
|
23
23
|
SubagentConsultParams,
|
|
24
24
|
registerSubagentConsult
|
|
25
|
-
} from "./chunk-RHRQMT7Q.
|
|
25
|
+
} from "./chunk-RHRQMT7Q.ts";
|
|
26
26
|
import {
|
|
27
27
|
getResultFinalOutput,
|
|
28
28
|
isResultError
|
|
29
|
-
} from "./chunk-AEUYS7JC.
|
|
30
|
-
import "./chunk-RTCVYIZA.
|
|
31
|
-
import "./chunk-ONDTY4EL.
|
|
32
|
-
import "./chunk-HOP5FXDT.
|
|
29
|
+
} from "./chunk-AEUYS7JC.ts";
|
|
30
|
+
import "./chunk-RTCVYIZA.ts";
|
|
31
|
+
import "./chunk-ONDTY4EL.ts";
|
|
32
|
+
import "./chunk-HOP5FXDT.ts";
|
|
33
33
|
import {
|
|
34
34
|
discoverAgents
|
|
35
|
-
} from "./chunk-PSK43Y6A.
|
|
36
|
-
import "./chunk-RSUXZD6S.
|
|
35
|
+
} from "./chunk-PSK43Y6A.ts";
|
|
36
|
+
import "./chunk-RSUXZD6S.ts";
|
|
37
37
|
import {
|
|
38
38
|
resolveSubagentThinkingLevel
|
|
39
|
-
} from "./chunk-7QPPBBXZ.
|
|
39
|
+
} from "./chunk-7QPPBBXZ.ts";
|
|
40
40
|
import {
|
|
41
41
|
DEFAULT_CONSULTATION_CWD_POLICY,
|
|
42
42
|
DEFAULT_CONSULT_RESOURCE_POLICY
|
|
43
|
-
} from "./chunk-QBORTI4W.
|
|
44
|
-
import "./chunk-7OBINKFM.
|
|
43
|
+
} from "./chunk-QBORTI4W.ts";
|
|
44
|
+
import "./chunk-7OBINKFM.ts";
|
|
45
45
|
import {
|
|
46
46
|
isThinkingLevel
|
|
47
|
-
} from "./chunk-DPPVEQAM.
|
|
48
|
-
import "./chunk-BFK2Z4ZF.
|
|
47
|
+
} from "./chunk-DPPVEQAM.ts";
|
|
48
|
+
import "./chunk-BFK2Z4ZF.ts";
|
|
49
49
|
import {
|
|
50
50
|
boundText,
|
|
51
51
|
boundedPrivateText,
|
|
52
52
|
safeDisplayPath,
|
|
53
53
|
safeTerminalLine
|
|
54
|
-
} from "./chunk-SWGQLFSD.
|
|
54
|
+
} from "./chunk-SWGQLFSD.ts";
|
|
55
55
|
import {
|
|
56
56
|
DEFAULT_MAX_CONTEXT_BYTES,
|
|
57
57
|
DEFAULT_MAX_STDERR_BYTES,
|
|
58
58
|
MAX_SUBAGENT_TIMEOUT_MS,
|
|
59
59
|
truncateUtf8
|
|
60
|
-
} from "./chunk-H3FP6DLR.
|
|
60
|
+
} from "./chunk-H3FP6DLR.ts";
|
|
61
61
|
import {
|
|
62
62
|
assertSubagentDepthAllowed,
|
|
63
63
|
resolveDefaultSubagentTimeoutMs
|
|
64
|
-
} from "./chunk-RRR66UWR.
|
|
64
|
+
} from "./chunk-RRR66UWR.ts";
|
|
65
65
|
|
|
66
66
|
// src/consult.ts
|
|
67
67
|
import * as path from "node:path";
|
package/dist/chunks/{create-stateful-transport-4WKZHRSI.ts → create-stateful-transport-F5OG2LEY.ts}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import {
|
|
4
4
|
cachedModuleLoader,
|
|
5
5
|
throwIfAborted
|
|
6
|
-
} from "./chunk-HOP5FXDT.
|
|
6
|
+
} from "./chunk-HOP5FXDT.ts";
|
|
7
7
|
|
|
8
8
|
// src/create-stateful-transport.ts
|
|
9
9
|
function createStatefulTransport(options) {
|
|
@@ -77,7 +77,7 @@ var LazyStatefulTransport = class {
|
|
|
77
77
|
};
|
|
78
78
|
async function loadStatefulTransport(options) {
|
|
79
79
|
const subprocess = async () => {
|
|
80
|
-
const { SubprocessTransport } = await import("./subprocess-transport-C2XVR25R.
|
|
80
|
+
const { SubprocessTransport } = await import("./subprocess-transport-C2XVR25R.ts");
|
|
81
81
|
return new SubprocessTransport({
|
|
82
82
|
getSettings: options.getSettings,
|
|
83
83
|
peerRuntime: options.peerRuntime
|
|
@@ -85,8 +85,8 @@ async function loadStatefulTransport(options) {
|
|
|
85
85
|
};
|
|
86
86
|
const inProcess = async () => {
|
|
87
87
|
const [{ discoverAgents }, { InProcessTransport }] = await Promise.all([
|
|
88
|
-
import("./discovery-K25T3SH4.
|
|
89
|
-
import("./in-process-transport-TEYAWSEC.
|
|
88
|
+
import("./discovery-K25T3SH4.ts"),
|
|
89
|
+
import("./in-process-transport-TEYAWSEC.ts")
|
|
90
90
|
]);
|
|
91
91
|
return new InProcessTransport({
|
|
92
92
|
modelRegistry: options.modelRegistry,
|
|
@@ -99,7 +99,7 @@ async function loadStatefulTransport(options) {
|
|
|
99
99
|
});
|
|
100
100
|
};
|
|
101
101
|
const rpc = async () => {
|
|
102
|
-
const { RpcTransport } = await import("./rpc-transport-
|
|
102
|
+
const { RpcTransport } = await import("./rpc-transport-ZNNBRUSY.ts");
|
|
103
103
|
return new RpcTransport({
|
|
104
104
|
getSettings: options.getSettings,
|
|
105
105
|
getParentRuntime: options.getParentRuntime,
|
|
@@ -114,7 +114,7 @@ async function loadStatefulTransport(options) {
|
|
|
114
114
|
case "rpc":
|
|
115
115
|
return rpc();
|
|
116
116
|
case "auto": {
|
|
117
|
-
const { AutoTransport } = await import("./auto-transport-SY2VHUFH.
|
|
117
|
+
const { AutoTransport } = await import("./auto-transport-SY2VHUFH.ts");
|
|
118
118
|
return new AutoTransport({
|
|
119
119
|
subprocess: new LazyStatefulTransport("subprocess", cachedModuleLoader(subprocess)),
|
|
120
120
|
inProcess: new LazyStatefulTransport("in-process", cachedModuleLoader(inProcess)),
|
|
@@ -127,4 +127,4 @@ async function loadStatefulTransport(options) {
|
|
|
127
127
|
export {
|
|
128
128
|
createStatefulTransport
|
|
129
129
|
};
|
|
130
|
-
//# sourceMappingURL=create-stateful-transport-
|
|
130
|
+
//# sourceMappingURL=create-stateful-transport-F5OG2LEY.ts.map
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
assertDelegationTargetAllowed,
|
|
6
6
|
resolveSubagentTarget,
|
|
7
7
|
targetPolicyAudit
|
|
8
|
-
} from "./chunk-HA36LPCO.
|
|
9
|
-
import "./chunk-SWGQLFSD.
|
|
10
|
-
import "./chunk-H3FP6DLR.
|
|
8
|
+
} from "./chunk-HA36LPCO.ts";
|
|
9
|
+
import "./chunk-SWGQLFSD.ts";
|
|
10
|
+
import "./chunk-H3FP6DLR.ts";
|
|
11
11
|
export {
|
|
12
12
|
assertConsultationTargetAllowed,
|
|
13
13
|
assertDelegationTargetAllowed,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
DelegationContractSchema,
|
|
10
10
|
appendDelegationContract,
|
|
11
11
|
normalizeDelegationContract
|
|
12
|
-
} from "./chunk-I2FAK44T.
|
|
13
|
-
import "./chunk-H3FP6DLR.
|
|
12
|
+
} from "./chunk-I2FAK44T.ts";
|
|
13
|
+
import "./chunk-H3FP6DLR.ts";
|
|
14
14
|
export {
|
|
15
15
|
AUTHORITY_REQUIREMENTS,
|
|
16
16
|
DELEGATION_CONTRACT_LEVELS,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
|
|
3
3
|
import {
|
|
4
4
|
discoverAgents
|
|
5
|
-
} from "./chunk-PSK43Y6A.
|
|
6
|
-
import "./chunk-RSUXZD6S.
|
|
7
|
-
import "./chunk-DPPVEQAM.
|
|
8
|
-
import "./chunk-H3FP6DLR.
|
|
5
|
+
} from "./chunk-PSK43Y6A.ts";
|
|
6
|
+
import "./chunk-RSUXZD6S.ts";
|
|
7
|
+
import "./chunk-DPPVEQAM.ts";
|
|
8
|
+
import "./chunk-H3FP6DLR.ts";
|
|
9
9
|
export {
|
|
10
10
|
discoverAgents
|
|
11
11
|
};
|
|
@@ -8,75 +8,75 @@ import {
|
|
|
8
8
|
createWorkflowVerificationReceipt,
|
|
9
9
|
sameWorkflowTreeIdentity,
|
|
10
10
|
workflowVerificationInstruction
|
|
11
|
-
} from "./chunk-OVPHFGKO.
|
|
11
|
+
} from "./chunk-OVPHFGKO.ts";
|
|
12
12
|
import {
|
|
13
13
|
WorkspaceManager,
|
|
14
14
|
assertWorkspaceIsolationReady
|
|
15
|
-
} from "./chunk-6KJ34M6S.
|
|
15
|
+
} from "./chunk-6KJ34M6S.ts";
|
|
16
16
|
import {
|
|
17
17
|
assertDelegationTargetAllowed,
|
|
18
18
|
resolveSubagentTarget,
|
|
19
19
|
targetPolicyAudit
|
|
20
|
-
} from "./chunk-HA36LPCO.
|
|
20
|
+
} from "./chunk-HA36LPCO.ts";
|
|
21
21
|
import {
|
|
22
22
|
buildFanInContext,
|
|
23
23
|
mapWithConcurrencyLimit,
|
|
24
24
|
runSingleAgent,
|
|
25
25
|
terminateProcess
|
|
26
|
-
} from "./chunk-DQMN4OYM.
|
|
27
|
-
import "./chunk-IGAMVWFN.
|
|
28
|
-
import "./chunk-47SK2QYC.
|
|
26
|
+
} from "./chunk-DQMN4OYM.ts";
|
|
27
|
+
import "./chunk-IGAMVWFN.ts";
|
|
28
|
+
import "./chunk-47SK2QYC.ts";
|
|
29
29
|
import {
|
|
30
30
|
issueCapabilityGrant,
|
|
31
31
|
revokeCapabilityGrant
|
|
32
|
-
} from "./chunk-HKC4ES4B.
|
|
32
|
+
} from "./chunk-HKC4ES4B.ts";
|
|
33
33
|
import {
|
|
34
34
|
acknowledgeExecutionPlan,
|
|
35
35
|
createExecutionPlan,
|
|
36
36
|
evaluateDelegationAdmission,
|
|
37
37
|
resolveContractTools
|
|
38
|
-
} from "./chunk-DSOOH73Y.
|
|
39
|
-
import "./chunk-G3RSMSXJ.
|
|
38
|
+
} from "./chunk-DSOOH73Y.ts";
|
|
39
|
+
import "./chunk-G3RSMSXJ.ts";
|
|
40
40
|
import {
|
|
41
41
|
hasUsableAggregator
|
|
42
|
-
} from "./chunk-NIF42QMF.
|
|
42
|
+
} from "./chunk-NIF42QMF.ts";
|
|
43
43
|
import {
|
|
44
44
|
formatResultFailure,
|
|
45
45
|
getResultFinalOutput,
|
|
46
46
|
isResultError
|
|
47
|
-
} from "./chunk-AEUYS7JC.
|
|
47
|
+
} from "./chunk-AEUYS7JC.ts";
|
|
48
48
|
import {
|
|
49
49
|
TURN_TERMINATION_VERSION,
|
|
50
50
|
TimeoutProgressJournal
|
|
51
|
-
} from "./chunk-RTCVYIZA.
|
|
52
|
-
import "./chunk-ONDTY4EL.
|
|
51
|
+
} from "./chunk-RTCVYIZA.ts";
|
|
52
|
+
import "./chunk-ONDTY4EL.ts";
|
|
53
53
|
import {
|
|
54
54
|
discoverAgents
|
|
55
|
-
} from "./chunk-PSK43Y6A.
|
|
55
|
+
} from "./chunk-PSK43Y6A.ts";
|
|
56
56
|
import {
|
|
57
57
|
appendResultInstruction
|
|
58
|
-
} from "./chunk-RSUXZD6S.
|
|
58
|
+
} from "./chunk-RSUXZD6S.ts";
|
|
59
59
|
import {
|
|
60
60
|
resolveSubagentThinkingLevel
|
|
61
|
-
} from "./chunk-7QPPBBXZ.
|
|
61
|
+
} from "./chunk-7QPPBBXZ.ts";
|
|
62
62
|
import {
|
|
63
63
|
DEFAULT_DELEGATION_CWD_POLICY,
|
|
64
64
|
readSubagentSettings,
|
|
65
65
|
resolveBlockingMaxParallelTasks
|
|
66
|
-
} from "./chunk-QBORTI4W.
|
|
67
|
-
import "./chunk-7OBINKFM.
|
|
66
|
+
} from "./chunk-QBORTI4W.ts";
|
|
67
|
+
import "./chunk-7OBINKFM.ts";
|
|
68
68
|
import {
|
|
69
69
|
resolveAgentToolNames
|
|
70
|
-
} from "./chunk-DPPVEQAM.
|
|
70
|
+
} from "./chunk-DPPVEQAM.ts";
|
|
71
71
|
import {
|
|
72
72
|
boundText,
|
|
73
73
|
boundedPrivateText,
|
|
74
74
|
safeTerminalLine
|
|
75
|
-
} from "./chunk-SWGQLFSD.
|
|
75
|
+
} from "./chunk-SWGQLFSD.ts";
|
|
76
76
|
import {
|
|
77
77
|
appendDelegationContract,
|
|
78
78
|
normalizeDelegationContract
|
|
79
|
-
} from "./chunk-I2FAK44T.
|
|
79
|
+
} from "./chunk-I2FAK44T.ts";
|
|
80
80
|
import {
|
|
81
81
|
DEFAULT_MAX_CONTEXT_BYTES,
|
|
82
82
|
DEFAULT_MAX_OUTPUT_BYTES,
|
|
@@ -85,13 +85,13 @@ import {
|
|
|
85
85
|
appendBounded,
|
|
86
86
|
redactPrivateText,
|
|
87
87
|
truncateUtf8
|
|
88
|
-
} from "./chunk-H3FP6DLR.
|
|
88
|
+
} from "./chunk-H3FP6DLR.ts";
|
|
89
89
|
import {
|
|
90
90
|
FALLBACK_TIMEOUT_MS,
|
|
91
91
|
assertSubagentDepthAllowed,
|
|
92
92
|
parsePositiveInteger,
|
|
93
93
|
resolveDefaultSubagentTimeoutMs
|
|
94
|
-
} from "./chunk-RRR66UWR.
|
|
94
|
+
} from "./chunk-RRR66UWR.ts";
|
|
95
95
|
|
|
96
96
|
// src/adaptive-scheduler.ts
|
|
97
97
|
import * as path from "node:path";
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
resolveChildModel,
|
|
10
10
|
seedChildSessionManager,
|
|
11
11
|
validateInProcessTools
|
|
12
|
-
} from "./chunk-UVFVHIOP.
|
|
13
|
-
import "./chunk-EWWXFU7N.
|
|
14
|
-
import "./chunk-G6VZTCFH.
|
|
15
|
-
import "./chunk-G3RSMSXJ.
|
|
16
|
-
import "./chunk-RTCVYIZA.
|
|
17
|
-
import "./chunk-ONDTY4EL.
|
|
18
|
-
import "./chunk-PSK43Y6A.
|
|
19
|
-
import "./chunk-RSUXZD6S.
|
|
20
|
-
import "./chunk-7QPPBBXZ.
|
|
21
|
-
import "./chunk-QBORTI4W.
|
|
22
|
-
import "./chunk-7OBINKFM.
|
|
23
|
-
import "./chunk-DPPVEQAM.
|
|
24
|
-
import "./chunk-SWGQLFSD.
|
|
25
|
-
import "./chunk-I2FAK44T.
|
|
26
|
-
import "./chunk-H3FP6DLR.
|
|
27
|
-
import "./chunk-RRR66UWR.
|
|
12
|
+
} from "./chunk-UVFVHIOP.ts";
|
|
13
|
+
import "./chunk-EWWXFU7N.ts";
|
|
14
|
+
import "./chunk-G6VZTCFH.ts";
|
|
15
|
+
import "./chunk-G3RSMSXJ.ts";
|
|
16
|
+
import "./chunk-RTCVYIZA.ts";
|
|
17
|
+
import "./chunk-ONDTY4EL.ts";
|
|
18
|
+
import "./chunk-PSK43Y6A.ts";
|
|
19
|
+
import "./chunk-RSUXZD6S.ts";
|
|
20
|
+
import "./chunk-7QPPBBXZ.ts";
|
|
21
|
+
import "./chunk-QBORTI4W.ts";
|
|
22
|
+
import "./chunk-7OBINKFM.ts";
|
|
23
|
+
import "./chunk-DPPVEQAM.ts";
|
|
24
|
+
import "./chunk-SWGQLFSD.ts";
|
|
25
|
+
import "./chunk-I2FAK44T.ts";
|
|
26
|
+
import "./chunk-H3FP6DLR.ts";
|
|
27
|
+
import "./chunk-RRR66UWR.ts";
|
|
28
28
|
export {
|
|
29
29
|
InProcessTransport,
|
|
30
30
|
buildCurrentTurnPrompt,
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
// @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
|
|
3
3
|
import {
|
|
4
4
|
inspectSessionWorkflows
|
|
5
|
-
} from "./chunk-OVPHFGKO.
|
|
5
|
+
} from "./chunk-OVPHFGKO.ts";
|
|
6
6
|
import {
|
|
7
7
|
resolveConsultTools
|
|
8
|
-
} from "./chunk-UMBPMVJW.
|
|
8
|
+
} from "./chunk-UMBPMVJW.ts";
|
|
9
9
|
import {
|
|
10
10
|
resolvePiInvocation
|
|
11
|
-
} from "./chunk-IGAMVWFN.
|
|
11
|
+
} from "./chunk-IGAMVWFN.ts";
|
|
12
12
|
import {
|
|
13
13
|
INSPECT_ACTIONS,
|
|
14
14
|
SubagentInspectParams,
|
|
15
15
|
registerSubagentInspect
|
|
16
|
-
} from "./chunk-F4L2UVSK.
|
|
17
|
-
import "./chunk-HOP5FXDT.
|
|
16
|
+
} from "./chunk-F4L2UVSK.ts";
|
|
17
|
+
import "./chunk-HOP5FXDT.ts";
|
|
18
18
|
import {
|
|
19
19
|
discoverAgents,
|
|
20
20
|
projectCapabilityManifest
|
|
21
|
-
} from "./chunk-PSK43Y6A.
|
|
22
|
-
import "./chunk-RSUXZD6S.
|
|
23
|
-
import "./chunk-7QPPBBXZ.
|
|
21
|
+
} from "./chunk-PSK43Y6A.ts";
|
|
22
|
+
import "./chunk-RSUXZD6S.ts";
|
|
23
|
+
import "./chunk-7QPPBBXZ.ts";
|
|
24
24
|
import {
|
|
25
25
|
inspectBlockingParallelLimitSettings,
|
|
26
26
|
inspectCompletionDeliverySettings,
|
|
@@ -31,20 +31,20 @@ import {
|
|
|
31
31
|
inspectStatefulTransportSettings,
|
|
32
32
|
inspectSubagentSettings,
|
|
33
33
|
resolveDelegationWorkflow
|
|
34
|
-
} from "./chunk-QBORTI4W.
|
|
35
|
-
import "./chunk-7OBINKFM.
|
|
36
|
-
import "./chunk-DPPVEQAM.
|
|
37
|
-
import "./chunk-BFK2Z4ZF.
|
|
34
|
+
} from "./chunk-QBORTI4W.ts";
|
|
35
|
+
import "./chunk-7OBINKFM.ts";
|
|
36
|
+
import "./chunk-DPPVEQAM.ts";
|
|
37
|
+
import "./chunk-BFK2Z4ZF.ts";
|
|
38
38
|
import {
|
|
39
39
|
boundText,
|
|
40
40
|
boundedPrivateText,
|
|
41
41
|
safeDisplayPath,
|
|
42
42
|
safeTerminalLine
|
|
43
|
-
} from "./chunk-SWGQLFSD.
|
|
43
|
+
} from "./chunk-SWGQLFSD.ts";
|
|
44
44
|
import {
|
|
45
45
|
DEFAULT_MAX_CONTEXT_BYTES,
|
|
46
46
|
buildContextSnapshot
|
|
47
|
-
} from "./chunk-H3FP6DLR.
|
|
47
|
+
} from "./chunk-H3FP6DLR.ts";
|
|
48
48
|
|
|
49
49
|
// src/inspect.ts
|
|
50
50
|
import * as path from "node:path";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// @ts-nocheck -- generated JavaScript uses a .ts extension for Pi's Jiti loader.
|
|
3
3
|
import {
|
|
4
4
|
ROOT_TASK_PATH
|
|
5
|
-
} from "./chunk-N7BLVXKK.
|
|
5
|
+
} from "./chunk-N7BLVXKK.ts";
|
|
6
6
|
import {
|
|
7
7
|
redactPrivateText,
|
|
8
8
|
truncateUtf8
|
|
9
|
-
} from "./chunk-H3FP6DLR.
|
|
9
|
+
} from "./chunk-H3FP6DLR.ts";
|
|
10
10
|
|
|
11
11
|
// src/peer-communication.ts
|
|
12
12
|
import { randomBytes, randomUUID } from "node:crypto";
|