replicas-cli 0.2.151 → 0.2.152
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.
|
@@ -8066,6 +8066,37 @@ function parseClaudeEvents(events, parentToolUseId) {
|
|
|
8066
8066
|
}
|
|
8067
8067
|
}
|
|
8068
8068
|
});
|
|
8069
|
+
filteredEvents.forEach((event) => {
|
|
8070
|
+
if (event.type === "replicas-tool-input-request") {
|
|
8071
|
+
const payload = event.payload;
|
|
8072
|
+
if (!payload.toolUseId || !payload.requestId) return;
|
|
8073
|
+
if (!Array.isArray(payload.options) && !Array.isArray(payload.questions)) return;
|
|
8074
|
+
const toolInfo = toolCallMap.get(payload.toolUseId);
|
|
8075
|
+
if (!toolInfo) return;
|
|
8076
|
+
const message = messages[toolInfo.messageIndex];
|
|
8077
|
+
if (!message || message.type !== "tool_call") return;
|
|
8078
|
+
message.inputRequest = {
|
|
8079
|
+
requestId: payload.requestId,
|
|
8080
|
+
status: "pending",
|
|
8081
|
+
options: payload.options,
|
|
8082
|
+
questions: payload.questions
|
|
8083
|
+
};
|
|
8084
|
+
}
|
|
8085
|
+
if (event.type === "replicas-tool-input-resolved") {
|
|
8086
|
+
const payload = event.payload;
|
|
8087
|
+
if (!payload.toolUseId || !payload.selectionId) return;
|
|
8088
|
+
const toolInfo = toolCallMap.get(payload.toolUseId);
|
|
8089
|
+
if (!toolInfo) return;
|
|
8090
|
+
const message = messages[toolInfo.messageIndex];
|
|
8091
|
+
if (!message || message.type !== "tool_call" || !message.inputRequest) return;
|
|
8092
|
+
message.inputRequest = {
|
|
8093
|
+
...message.inputRequest,
|
|
8094
|
+
status: payload.selectionId === "aborted" ? "aborted" : "resolved",
|
|
8095
|
+
selectionId: payload.selectionId,
|
|
8096
|
+
selectionSummary: payload.selectionSummary
|
|
8097
|
+
};
|
|
8098
|
+
}
|
|
8099
|
+
});
|
|
8069
8100
|
filteredEvents.forEach((event) => {
|
|
8070
8101
|
if (event.type === "claude-user") {
|
|
8071
8102
|
const content = event.payload.message?.content || [];
|
package/dist/index.mjs
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
setIdeCommand,
|
|
21
21
|
setOrganizationId,
|
|
22
22
|
writeConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-J347A33R.mjs";
|
|
24
24
|
import "./chunk-FFDYI4OH.mjs";
|
|
25
25
|
|
|
26
26
|
// src/index.ts
|
|
@@ -2554,7 +2554,7 @@ async function interactiveCommand() {
|
|
|
2554
2554
|
);
|
|
2555
2555
|
}
|
|
2556
2556
|
console.log(chalk19.gray("Starting interactive mode..."));
|
|
2557
|
-
const { launchInteractive } = await import("./interactive-
|
|
2557
|
+
const { launchInteractive } = await import("./interactive-C6JPUJ4R.mjs");
|
|
2558
2558
|
await launchInteractive();
|
|
2559
2559
|
}
|
|
2560
2560
|
|
|
@@ -2928,7 +2928,7 @@ Deleted file ${pathOrId}.
|
|
|
2928
2928
|
}
|
|
2929
2929
|
|
|
2930
2930
|
// src/index.ts
|
|
2931
|
-
var CLI_VERSION = "0.2.
|
|
2931
|
+
var CLI_VERSION = "0.2.152";
|
|
2932
2932
|
var program = new Command();
|
|
2933
2933
|
program.name("replicas").description("CLI for managing Replicas workspaces").version(CLI_VERSION);
|
|
2934
2934
|
program.command("login").description("Authenticate with your Replicas account").action(async () => {
|