replicas-cli 0.3.3 → 0.3.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/dist/index.cjs +11 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -22988,7 +22988,8 @@ var sendChatMessageRequestSchema = external_exports.object({
|
|
|
22988
22988
|
senderDisplayName: external_exports.string().optional(),
|
|
22989
22989
|
senderAvatarUrl: external_exports.string().optional(),
|
|
22990
22990
|
errorNotificationTarget: integrationErrorNotificationTargetSchema.optional(),
|
|
22991
|
-
errorNotificationTargets: external_exports.array(integrationErrorNotificationTargetSchema).optional()
|
|
22991
|
+
errorNotificationTargets: external_exports.array(integrationErrorNotificationTargetSchema).optional(),
|
|
22992
|
+
streamSlackActivity: external_exports.boolean().optional()
|
|
22992
22993
|
}).passthrough();
|
|
22993
22994
|
function normalizeCodexAspTranscriptStatus(status, failed = false) {
|
|
22994
22995
|
if (failed || status === "failed" || status === "declined") return "failed";
|
|
@@ -27453,6 +27454,11 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
27453
27454
|
const completedStreamIds = /* @__PURE__ */ new Set();
|
|
27454
27455
|
const supersededStreamIds = /* @__PURE__ */ new Set();
|
|
27455
27456
|
let liveStreamId = null;
|
|
27457
|
+
const endStreamingTools = (exceptStreamId) => {
|
|
27458
|
+
for (const streamId of streamingTools.keys()) {
|
|
27459
|
+
if (streamId !== exceptStreamId) streamingTools.delete(streamId);
|
|
27460
|
+
}
|
|
27461
|
+
};
|
|
27456
27462
|
let compaction;
|
|
27457
27463
|
const assistantThinking = /* @__PURE__ */ new Map();
|
|
27458
27464
|
const assistantTextCounts = /* @__PURE__ */ new Map();
|
|
@@ -27506,6 +27512,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
27506
27512
|
supersededStreamIds.add(liveStreamId);
|
|
27507
27513
|
}
|
|
27508
27514
|
liveStreamId = payload.streamId;
|
|
27515
|
+
endStreamingTools(payload.streamId);
|
|
27509
27516
|
const existing = partialIndexes.get(payload.streamId) ?? {};
|
|
27510
27517
|
if (payload.thinking && !assistantThinking.has(payload.streamId)) {
|
|
27511
27518
|
const reasoningMessage = {
|
|
@@ -27603,6 +27610,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
27603
27610
|
}
|
|
27604
27611
|
const streamRefs = messageId ? partialIndexes.get(messageId) : void 0;
|
|
27605
27612
|
if (messageId) {
|
|
27613
|
+
endStreamingTools(messageId);
|
|
27606
27614
|
if (liveStreamId !== null && liveStreamId !== messageId) {
|
|
27607
27615
|
supersededStreamIds.add(liveStreamId);
|
|
27608
27616
|
}
|
|
@@ -27717,6 +27725,7 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
27717
27725
|
}
|
|
27718
27726
|
});
|
|
27719
27727
|
}
|
|
27728
|
+
if (event.type === "claude-result" || event.type === CHAT_INTERRUPTED_EVENT_TYPE) endStreamingTools();
|
|
27720
27729
|
if (compaction && (event.type === "claude-result" || event.type === CHAT_INTERRUPTED_EVENT_TYPE)) {
|
|
27721
27730
|
compaction.status = "failed";
|
|
27722
27731
|
compaction.completedAt = event.timestamp;
|
|
@@ -28308,7 +28317,7 @@ var headlessAgentRequestSchema = external_exports.object({
|
|
|
28308
28317
|
});
|
|
28309
28318
|
|
|
28310
28319
|
// ../shared/src/cli-version.ts
|
|
28311
|
-
var CLI_VERSION = "0.3.
|
|
28320
|
+
var CLI_VERSION = "0.3.4";
|
|
28312
28321
|
|
|
28313
28322
|
// ../shared/src/version.ts
|
|
28314
28323
|
function compareVersions(v1, v2) {
|