supercompat 3.10.2 → 3.10.3
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/dist/index.cjs +1 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2467,7 +2467,7 @@ var post5 = function(param) {
|
|
|
2467
2467
|
stream = new ReadableStream({
|
|
2468
2468
|
start: function start(controller) {
|
|
2469
2469
|
return _async_to_generator(function() {
|
|
2470
|
-
var blockIndexToToolUseId, toolUseIdToIndex, toolUseIdArgumentBuffer, computerToolUseIds, normalizedComputerCalls, nextToolCallIndex, parseJson2, getOrCreateIndexForToolUseId, assignBlockToToolUse, markComputerToolUse, getToolUseIdFromBlock, emitNormalizedToolCall, getOrCreateIndexForBlock, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, _ref, chunk, toolUseId,
|
|
2470
|
+
var blockIndexToToolUseId, toolUseIdToIndex, toolUseIdArgumentBuffer, computerToolUseIds, normalizedComputerCalls, nextToolCallIndex, parseJson2, getOrCreateIndexForToolUseId, assignBlockToToolUse, markComputerToolUse, getToolUseIdFromBlock, emitNormalizedToolCall, getOrCreateIndexForBlock, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, _ref, chunk, toolUseId, _toolUseIdArgumentBuffer_get, buffered, parsed, normalized, toolCallIndex, chunkIndex, _toolUseIdArgumentBuffer_get1, buffered1, toolCallIndex1, chunkIndex1, messageDelta, delta, toolUseId1, _toolUseIdArgumentBuffer_get2, existing, _chunk_delta_partial_json, updated, parsed1, normalized1, toolCallIndex2, chunkIndex2, _toolUseIdArgumentBuffer_get3, existing1, _chunk_delta_partial_json1, index, messageDelta1, delta1, toolName, normalizedToolName, index1, index2, _chunk_content_block_content, outputPayload, _getToolUseIdFromBlock, toolCallId, index3, _getToolUseIdFromBlock1, toolCallId1, _chunk_content_block, _toolUseId, _type, _id, rest, index4, _chunk_content_block_content1, outputPayload1, messageDelta2, messageDelta3, err;
|
|
2471
2471
|
return _ts_generator(this, function(_state) {
|
|
2472
2472
|
switch(_state.label){
|
|
2473
2473
|
case 0:
|
|
@@ -2572,10 +2572,6 @@ var post5 = function(param) {
|
|
|
2572
2572
|
chunk = _ref;
|
|
2573
2573
|
if (chunk.type === "content_block_stop") {
|
|
2574
2574
|
toolUseId = typeof chunk.index === "number" ? blockIndexToToolUseId.get(chunk.index) : void 0;
|
|
2575
|
-
if (!toolUseId && toolUseIdArgumentBuffer.size === 1) {
|
|
2576
|
-
_toolUseIdArgumentBuffer_keys = _sliced_to_array(toolUseIdArgumentBuffer.keys(), 1), firstKey = _toolUseIdArgumentBuffer_keys[0];
|
|
2577
|
-
toolUseId = firstKey;
|
|
2578
|
-
}
|
|
2579
2575
|
if (toolUseId && computerToolUseIds.has(toolUseId) && !normalizedComputerCalls.has(toolUseId)) {
|
|
2580
2576
|
;
|
|
2581
2577
|
buffered = (_toolUseIdArgumentBuffer_get = toolUseIdArgumentBuffer.get(toolUseId)) !== null && _toolUseIdArgumentBuffer_get !== void 0 ? _toolUseIdArgumentBuffer_get : "";
|
|
@@ -2638,10 +2634,6 @@ var post5 = function(param) {
|
|
|
2638
2634
|
delta = void 0;
|
|
2639
2635
|
if (chunk.delta.type === "input_json_delta") {
|
|
2640
2636
|
toolUseId1 = typeof chunk.index === "number" ? blockIndexToToolUseId.get(chunk.index) : void 0;
|
|
2641
|
-
if (!toolUseId1 && toolUseIdArgumentBuffer.size === 1) {
|
|
2642
|
-
_toolUseIdArgumentBuffer_keys1 = _sliced_to_array(toolUseIdArgumentBuffer.keys(), 1), firstKey1 = _toolUseIdArgumentBuffer_keys1[0];
|
|
2643
|
-
toolUseId1 = firstKey1;
|
|
2644
|
-
}
|
|
2645
2637
|
if (toolUseId1 && computerToolUseIds.has(toolUseId1)) {
|
|
2646
2638
|
;
|
|
2647
2639
|
existing = (_toolUseIdArgumentBuffer_get2 = toolUseIdArgumentBuffer.get(toolUseId1)) !== null && _toolUseIdArgumentBuffer_get2 !== void 0 ? _toolUseIdArgumentBuffer_get2 : "";
|