codeam-cli 1.4.41 → 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 -6
- 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: {
|
|
@@ -1853,11 +1853,6 @@ except Exception:sys.exit(0)
|
|
|
1853
1853
|
if (historySvc.isQuotaStale()) {
|
|
1854
1854
|
fetchQuotaUsage();
|
|
1855
1855
|
}
|
|
1856
|
-
const currentId = historySvc.getCurrentConversationId();
|
|
1857
|
-
if (currentId) {
|
|
1858
|
-
historySvc.loadConversation(currentId).catch(() => {
|
|
1859
|
-
});
|
|
1860
|
-
}
|
|
1861
1856
|
});
|
|
1862
1857
|
function sendPrompt(prompt) {
|
|
1863
1858
|
outputSvc.newTurn();
|
|
@@ -1926,6 +1921,20 @@ except Exception:sys.exit(0)
|
|
|
1926
1921
|
claude.restart(id, auto);
|
|
1927
1922
|
break;
|
|
1928
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
|
+
}
|
|
1929
1938
|
}
|
|
1930
1939
|
});
|
|
1931
1940
|
ws.addHandler({
|
|
@@ -1970,6 +1979,12 @@ except Exception:sys.exit(0)
|
|
|
1970
1979
|
claude.sendEscape();
|
|
1971
1980
|
} else if (cmdType === "stop_task") {
|
|
1972
1981
|
claude.interrupt();
|
|
1982
|
+
} else if (cmdType === "get_conversation") {
|
|
1983
|
+
const currentId = historySvc.getCurrentConversationId();
|
|
1984
|
+
if (currentId) {
|
|
1985
|
+
historySvc.loadConversation(currentId).catch(() => {
|
|
1986
|
+
});
|
|
1987
|
+
}
|
|
1973
1988
|
} else if (cmdType === "resume_session") {
|
|
1974
1989
|
const id = inner.id;
|
|
1975
1990
|
const auto = inner.auto ?? false;
|