codeam-cli 1.4.40 → 1.4.42
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.js +21 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -116,7 +116,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
|
|
|
116
116
|
// package.json
|
|
117
117
|
var package_default = {
|
|
118
118
|
name: "codeam-cli",
|
|
119
|
-
version: "1.4.
|
|
119
|
+
version: "1.4.42",
|
|
120
120
|
description: "Remote control Claude Code from your mobile device",
|
|
121
121
|
main: "dist/index.js",
|
|
122
122
|
bin: {
|
|
@@ -1921,6 +1921,20 @@ except Exception:sys.exit(0)
|
|
|
1921
1921
|
claude.restart(id, auto);
|
|
1922
1922
|
break;
|
|
1923
1923
|
}
|
|
1924
|
+
case "get_conversation": {
|
|
1925
|
+
const currentId = historySvc.getCurrentConversationId();
|
|
1926
|
+
if (currentId) {
|
|
1927
|
+
try {
|
|
1928
|
+
await historySvc.loadConversation(currentId);
|
|
1929
|
+
await relay.sendResult(cmd.id, "completed", { conversationId: currentId });
|
|
1930
|
+
} catch {
|
|
1931
|
+
await relay.sendResult(cmd.id, "failed", {});
|
|
1932
|
+
}
|
|
1933
|
+
} else {
|
|
1934
|
+
await relay.sendResult(cmd.id, "completed", { conversationId: null });
|
|
1935
|
+
}
|
|
1936
|
+
break;
|
|
1937
|
+
}
|
|
1924
1938
|
}
|
|
1925
1939
|
});
|
|
1926
1940
|
ws.addHandler({
|
|
@@ -1965,6 +1979,12 @@ except Exception:sys.exit(0)
|
|
|
1965
1979
|
claude.sendEscape();
|
|
1966
1980
|
} else if (cmdType === "stop_task") {
|
|
1967
1981
|
claude.interrupt();
|
|
1982
|
+
} else if (cmdType === "get_conversation") {
|
|
1983
|
+
const currentId = historySvc.getCurrentConversationId();
|
|
1984
|
+
if (currentId) {
|
|
1985
|
+
historySvc.loadConversation(currentId).catch(() => {
|
|
1986
|
+
});
|
|
1987
|
+
}
|
|
1968
1988
|
} else if (cmdType === "resume_session") {
|
|
1969
1989
|
const id = inner.id;
|
|
1970
1990
|
const auto = inner.auto ?? false;
|