@cleocode/caamp 2026.4.13 → 2026.4.15
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.
|
@@ -733,6 +733,7 @@ var PiHarness = class {
|
|
|
733
733
|
constructor(provider) {
|
|
734
734
|
this.provider = provider;
|
|
735
735
|
}
|
|
736
|
+
provider;
|
|
736
737
|
/** Provider id, always `"pi"`. */
|
|
737
738
|
id = "pi";
|
|
738
739
|
// ── Path helpers ────────────────────────────────────────────────────
|
|
@@ -969,13 +970,17 @@ ${MARKER_END}`;
|
|
|
969
970
|
if (stderrRing.length > STDERR_RING_BUFFER_SIZE) stderrRing.shift();
|
|
970
971
|
}
|
|
971
972
|
};
|
|
973
|
+
const pendingWrites = [];
|
|
972
974
|
const writeChildSession = (entry) => {
|
|
973
|
-
|
|
974
|
-
`, "utf8").catch(
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
975
|
+
const writePromise = appendFile(childSessionPath, `${JSON.stringify(entry)}
|
|
976
|
+
`, "utf8").catch(
|
|
977
|
+
() => {
|
|
978
|
+
const synthetic = `[childSession] failed to append entry`;
|
|
979
|
+
stderrRing.push(synthetic);
|
|
980
|
+
if (stderrRing.length > STDERR_RING_BUFFER_SIZE) stderrRing.shift();
|
|
981
|
+
}
|
|
982
|
+
);
|
|
983
|
+
pendingWrites.push(writePromise);
|
|
979
984
|
};
|
|
980
985
|
const flushStdoutBuffer = (final) => {
|
|
981
986
|
let nlIdx = stdoutBuffer.indexOf("\n");
|
|
@@ -1091,8 +1096,10 @@ ${MARKER_END}`;
|
|
|
1091
1096
|
childSessionPath,
|
|
1092
1097
|
durationMs
|
|
1093
1098
|
};
|
|
1094
|
-
|
|
1095
|
-
|
|
1099
|
+
Promise.allSettled(pendingWrites).then(() => {
|
|
1100
|
+
safeOnStream({ kind: "exit", subagentId, payload: result2 });
|
|
1101
|
+
resolve(result2);
|
|
1102
|
+
});
|
|
1096
1103
|
});
|
|
1097
1104
|
child.on("error", () => {
|
|
1098
1105
|
});
|
|
@@ -4686,4 +4693,4 @@ export {
|
|
|
4686
4693
|
discoverSkillsMulti,
|
|
4687
4694
|
validateSkill
|
|
4688
4695
|
};
|
|
4689
|
-
//# sourceMappingURL=chunk-
|
|
4696
|
+
//# sourceMappingURL=chunk-VD2JJXE7.js.map
|