codeam-cli 1.3.0 → 1.3.2
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 +6 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -114,7 +114,7 @@ var import_picocolors = __toESM(require("picocolors"));
|
|
|
114
114
|
// package.json
|
|
115
115
|
var package_default = {
|
|
116
116
|
name: "codeam-cli",
|
|
117
|
-
version: "1.3.
|
|
117
|
+
version: "1.3.2",
|
|
118
118
|
description: "Remote control Claude Code from your mobile device",
|
|
119
119
|
main: "dist/index.js",
|
|
120
120
|
bin: {
|
|
@@ -873,7 +873,7 @@ function renderToLines(raw) {
|
|
|
873
873
|
return screen;
|
|
874
874
|
}
|
|
875
875
|
function detectSelector(lines) {
|
|
876
|
-
if (!lines.some((l) => l.
|
|
876
|
+
if (!lines.some((l) => /^❯\s*\d+\./.test(l.trim()))) return null;
|
|
877
877
|
const optionMap = /* @__PURE__ */ new Map();
|
|
878
878
|
let question = "";
|
|
879
879
|
for (const line of lines) {
|
|
@@ -1090,10 +1090,9 @@ async function start() {
|
|
|
1090
1090
|
const effectivePrompt = prompt ?? "";
|
|
1091
1091
|
if (files && files.length > 0) {
|
|
1092
1092
|
const paths = saveFilesTemp(files);
|
|
1093
|
-
const atRefs = paths.map((p2) => `@${p2}`).join("
|
|
1093
|
+
const atRefs = paths.map((p2) => `@${p2}`).join(" ");
|
|
1094
1094
|
outputSvc.newTurn();
|
|
1095
|
-
claude.sendCommand(`${atRefs}
|
|
1096
|
-
${effectivePrompt}`);
|
|
1095
|
+
claude.sendCommand(`${atRefs} ${effectivePrompt}`.trim());
|
|
1097
1096
|
setTimeout(() => {
|
|
1098
1097
|
for (const p2 of paths) {
|
|
1099
1098
|
try {
|
|
@@ -1138,10 +1137,9 @@ ${effectivePrompt}`);
|
|
|
1138
1137
|
const effectivePrompt = prompt ?? "";
|
|
1139
1138
|
if (files && files.length > 0) {
|
|
1140
1139
|
const paths = saveFilesTemp(files);
|
|
1141
|
-
const atRefs = paths.map((p2) => `@${p2}`).join("
|
|
1140
|
+
const atRefs = paths.map((p2) => `@${p2}`).join(" ");
|
|
1142
1141
|
outputSvc.newTurn();
|
|
1143
|
-
claude.sendCommand(`${atRefs}
|
|
1144
|
-
${effectivePrompt}`);
|
|
1142
|
+
claude.sendCommand(`${atRefs} ${effectivePrompt}`.trim());
|
|
1145
1143
|
setTimeout(() => {
|
|
1146
1144
|
for (const p2 of paths) {
|
|
1147
1145
|
try {
|