@zhushanwen/pi-subagent-cli 0.1.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/bin/pi-subagent-cli.mjs +41 -0
- package/dist/chunk-SDXGJXQR.js +2502 -0
- package/dist/index.cjs +2538 -0
- package/dist/index.d.cts +784 -0
- package/dist/index.d.ts +784 -0
- package/dist/index.js +90 -0
- package/dist/main.cjs +2425 -0
- package/dist/main.d.cts +2 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +20 -0
- package/package.json +79 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChatSessionRegistry,
|
|
3
|
+
DETERMINISTIC_SCHEMA_FAILURE_PREFIX,
|
|
4
|
+
EPIPE_FAILURE_THRESHOLD,
|
|
5
|
+
EngineProtocolServer,
|
|
6
|
+
PI_ADAPTER_VERSION,
|
|
7
|
+
PI_ENGINE_ID,
|
|
8
|
+
PI_POOL_KEY,
|
|
9
|
+
PiEngine,
|
|
10
|
+
STALE_CONTEXT_PATTERNS,
|
|
11
|
+
WRAP_UP_HINT,
|
|
12
|
+
applySchemaEnvToChildEnv,
|
|
13
|
+
buildEnvBlock,
|
|
14
|
+
buildSpawnArgs,
|
|
15
|
+
classifyFailureKind,
|
|
16
|
+
clearEpipeFailure,
|
|
17
|
+
collectOutcome,
|
|
18
|
+
createDefaultPiEngine,
|
|
19
|
+
createTurnLimiter,
|
|
20
|
+
createUiRequestQueue,
|
|
21
|
+
deriveSessionFilePath,
|
|
22
|
+
describeMissingParsedOutput,
|
|
23
|
+
extractParsedOutput,
|
|
24
|
+
findSessionFileByHeaderId,
|
|
25
|
+
getActiveChild,
|
|
26
|
+
getPiInvocation,
|
|
27
|
+
isDeterministicSchemaFailureMsg,
|
|
28
|
+
isStaleContextErrorMsg,
|
|
29
|
+
killAllActiveChildren,
|
|
30
|
+
mapAssistantMessageDelta,
|
|
31
|
+
mirrorMainProcessFlags,
|
|
32
|
+
neutralizeStalePatterns,
|
|
33
|
+
parseChannel,
|
|
34
|
+
parseSpawnLine,
|
|
35
|
+
parseSpawnModelRef,
|
|
36
|
+
performGetStateHandshake,
|
|
37
|
+
recordEpipeFailure,
|
|
38
|
+
replayJournalToSessionView,
|
|
39
|
+
requestGetStateOnce,
|
|
40
|
+
resetAllEpipeFailures,
|
|
41
|
+
respond,
|
|
42
|
+
runSpawnOnce,
|
|
43
|
+
sendGetStateCommand,
|
|
44
|
+
sendPromptCommand
|
|
45
|
+
} from "./chunk-SDXGJXQR.js";
|
|
46
|
+
export {
|
|
47
|
+
ChatSessionRegistry,
|
|
48
|
+
DETERMINISTIC_SCHEMA_FAILURE_PREFIX,
|
|
49
|
+
EPIPE_FAILURE_THRESHOLD,
|
|
50
|
+
EngineProtocolServer,
|
|
51
|
+
PI_ADAPTER_VERSION,
|
|
52
|
+
PI_ENGINE_ID,
|
|
53
|
+
PI_POOL_KEY,
|
|
54
|
+
PiEngine,
|
|
55
|
+
STALE_CONTEXT_PATTERNS,
|
|
56
|
+
WRAP_UP_HINT,
|
|
57
|
+
applySchemaEnvToChildEnv,
|
|
58
|
+
buildEnvBlock,
|
|
59
|
+
buildSpawnArgs,
|
|
60
|
+
classifyFailureKind,
|
|
61
|
+
clearEpipeFailure,
|
|
62
|
+
collectOutcome,
|
|
63
|
+
createDefaultPiEngine,
|
|
64
|
+
createTurnLimiter,
|
|
65
|
+
createUiRequestQueue,
|
|
66
|
+
deriveSessionFilePath,
|
|
67
|
+
describeMissingParsedOutput,
|
|
68
|
+
extractParsedOutput,
|
|
69
|
+
findSessionFileByHeaderId,
|
|
70
|
+
getActiveChild,
|
|
71
|
+
getPiInvocation,
|
|
72
|
+
isDeterministicSchemaFailureMsg,
|
|
73
|
+
isStaleContextErrorMsg,
|
|
74
|
+
killAllActiveChildren,
|
|
75
|
+
mapAssistantMessageDelta,
|
|
76
|
+
mirrorMainProcessFlags,
|
|
77
|
+
neutralizeStalePatterns,
|
|
78
|
+
parseChannel,
|
|
79
|
+
parseSpawnLine,
|
|
80
|
+
parseSpawnModelRef,
|
|
81
|
+
performGetStateHandshake,
|
|
82
|
+
recordEpipeFailure,
|
|
83
|
+
replayJournalToSessionView,
|
|
84
|
+
requestGetStateOnce,
|
|
85
|
+
resetAllEpipeFailures,
|
|
86
|
+
respond,
|
|
87
|
+
runSpawnOnce,
|
|
88
|
+
sendGetStateCommand,
|
|
89
|
+
sendPromptCommand
|
|
90
|
+
};
|