claude-remote-cli 2.15.11 → 2.15.13
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/frontend/index.html
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
12
12
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
13
13
|
<meta name="theme-color" content="#1a1a1a" />
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-DFqFL72e.js"></script>
|
|
15
15
|
<link rel="stylesheet" crossorigin href="/assets/index-DaCEf4Kt.css">
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
@@ -42,7 +42,7 @@ function handleInsert(intent, currentValue) {
|
|
|
42
42
|
const lastWord = lastSpaceIdx >= 0 ? intent.valueBefore.slice(lastSpaceIdx + 1) : intent.valueBefore;
|
|
43
43
|
// Buffer ends with a space — nothing to autocorrect
|
|
44
44
|
if (lastWord.length === 0) {
|
|
45
|
-
return { payload: '', newInputValue: intent.valueBefore };
|
|
45
|
+
return { payload: '', newInputValue: intent.valueBefore, debug: 'CURSOR0: empty lastWord, skip' };
|
|
46
46
|
}
|
|
47
47
|
const prefix = lastSpaceIdx >= 0 ? intent.valueBefore.slice(0, lastSpaceIdx + 1) : '';
|
|
48
48
|
// Gboard sometimes sends the full replacement word (data[0] === firstChar,
|
|
@@ -50,9 +50,11 @@ function handleInsert(intent, currentValue) {
|
|
|
50
50
|
// char (data[0] !== firstChar, e.g. "tsestin" → data="esting ").
|
|
51
51
|
// Evidence from device diagnostics confirms both patterns occur.
|
|
52
52
|
const firstChar = lastWord.charAt(0);
|
|
53
|
-
const
|
|
53
|
+
const isSuffix = data.charAt(0) !== firstChar;
|
|
54
|
+
const replacement = isSuffix ? firstChar + data : data;
|
|
54
55
|
const payload = makeBackspaces(codepointCount(lastWord)) + replacement;
|
|
55
|
-
|
|
56
|
+
const debug = `CURSOR0: lastWord="${lastWord}" firstChar="${firstChar}" data[0]="${data.charAt(0)}" mode=${isSuffix ? 'suffix' : 'fullword'} replacement="${replacement}" del=${codepointCount(lastWord)}`;
|
|
57
|
+
return { payload, newInputValue: prefix + replacement, debug };
|
|
56
58
|
}
|
|
57
59
|
return { payload: data };
|
|
58
60
|
}
|