replicas-cli 0.2.572 → 0.2.574
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 +9 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24455,7 +24455,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
|
|
|
24455
24455
|
});
|
|
24456
24456
|
|
|
24457
24457
|
// ../shared/src/cli-version.ts
|
|
24458
|
-
var CLI_VERSION = "0.2.
|
|
24458
|
+
var CLI_VERSION = "0.2.574";
|
|
24459
24459
|
|
|
24460
24460
|
// ../shared/src/version.ts
|
|
24461
24461
|
function compareVersions(v1, v2) {
|
|
@@ -24778,7 +24778,6 @@ var HOSTED_COMPOSIO_PLUGIN_DEFINITIONS = [
|
|
|
24778
24778
|
["xero", "xero", "OAUTH2", false, "business", "Xero"],
|
|
24779
24779
|
["brex", "brex", "API_KEY", false, "business", "Brex"],
|
|
24780
24780
|
["buffer", "buffer", "OAUTH2", false, "business", "Buffer"],
|
|
24781
|
-
["docusign", "docusign", "OAUTH2", false, "business", "DocuSign"],
|
|
24782
24781
|
["canva", "canva", "OAUTH2", true, "productivity", "Canva"],
|
|
24783
24782
|
["webflow", "webflow", "API_KEY", false, "business", "Webflow"],
|
|
24784
24783
|
["firecrawl", "firecrawl", "API_KEY", false, "data", "Firecrawl"],
|
|
@@ -25567,7 +25566,7 @@ function parseCursorEvents(events) {
|
|
|
25567
25566
|
const message = event.payload.message;
|
|
25568
25567
|
if (typeof message === "string" && message.trim()) {
|
|
25569
25568
|
messages.push({
|
|
25570
|
-
id: `cursor-user-${event.timestamp}-${messages.length}`,
|
|
25569
|
+
id: getUserMessageId(event) ?? `cursor-user-${event.timestamp}-${messages.length}`,
|
|
25571
25570
|
type: "user",
|
|
25572
25571
|
content: message,
|
|
25573
25572
|
timestamp: event.timestamp
|
|
@@ -26147,7 +26146,7 @@ function parsePiEvents(events) {
|
|
|
26147
26146
|
let activeMessageId = "assistant";
|
|
26148
26147
|
for (const event of events) {
|
|
26149
26148
|
if (event.type === "event_msg" && event.payload.type === "user_message" && typeof event.payload.message === "string") {
|
|
26150
|
-
messages.push({ id: `pi-user-${event.timestamp}-${messages.length}`, type: "user", content: event.payload.message, timestamp: event.timestamp });
|
|
26149
|
+
messages.push({ id: getUserMessageId(event) ?? `pi-user-${event.timestamp}-${messages.length}`, type: "user", content: event.payload.message, timestamp: event.timestamp });
|
|
26151
26150
|
if (typeof event.payload.skillName === "string" && event.payload.skillName) {
|
|
26152
26151
|
messages.push({
|
|
26153
26152
|
id: `pi-skill-${event.timestamp}-${messages.length}`,
|
|
@@ -27186,7 +27185,12 @@ function parseAgentEvents(events, agentType) {
|
|
|
27186
27185
|
function parseDisplayMessages(events, agentType, codexAspTranscript, options = {}) {
|
|
27187
27186
|
const shouldFilter = options.filter ?? true;
|
|
27188
27187
|
const parsedEvents = agentType === "claude" || agentType === "relay" ? parseClaudeEvents(events, options.parentToolUseId) : parseAgentEvents(events, agentType);
|
|
27189
|
-
const
|
|
27188
|
+
const reconciledEvents = [];
|
|
27189
|
+
for (const message of parsedEvents) {
|
|
27190
|
+
if (message.type === "user") upsertDisplayMessage(reconciledEvents, message);
|
|
27191
|
+
else reconciledEvents.push(message);
|
|
27192
|
+
}
|
|
27193
|
+
const legacyMessages = shouldFilter ? filterDisplayMessages(reconciledEvents, agentType) : reconciledEvents;
|
|
27190
27194
|
const applySyntheticNotices = (messages) => shouldFilter ? applyAuthFallbackNotices(applyInterruptions(messages, events), events) : messages;
|
|
27191
27195
|
if (agentType !== "codex" || !codexAspTranscript) {
|
|
27192
27196
|
return applySyntheticNotices(legacyMessages);
|