leanchy 0.1.4 → 0.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leanchy",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "A protocol adapter designed to make non-official/proxy APIs fully compatible with Claude Code's native tool-use.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -14,8 +14,16 @@ user-invocable: true
14
14
 
15
15
  ## 2. Editor & Stream Fidelity
16
16
 
17
- - **Indentation Lock**: For `Edit` and `Write` operations, preserve the exact indentation style, whitespace, and line-ending characters from the source. Do not normalize unless explicitly instructed.
18
- - **Diff Integrity**: Any unsolicited whitespace change will corrupt the CLI diff-patch. Treat source formatting as immutable.
17
+ - **Indentation Lock**: For `Edit` and `Write` operations, preserve the exact indentation style (Tab vs Space), whitespace, and line-ending characters (`\r\n` vs `\n`) from the source. Do not normalize unless explicitly instructed.
18
+ - **Diff Integrity**: Any unsolicited whitespace change corrupts the CLI diff-patch. Treat source formatting as immutable. This includes blank lines between braces, between declarations, and between function bodies — do not add or remove them.
19
+ - **Verbatim Extraction**: The `old_string` for any Update must be extracted verbatim from the most recent Read result — character-for-character, including Unicode symbols in comments (e.g. `→`, `─`), blank lines, and trailing spaces. Re-generating or paraphrasing the old_string is prohibited.
20
+ - **Failure Recovery Protocol**: On `String to replace not found` error:
21
+ 1. Immediately issue a full Re-Read of the target file.
22
+ 2. Locate the exact target block from the Re-Read output.
23
+ 3. Issue a single corrected Update using the verbatim extracted string.
24
+ - Prohibited: shortening `old_string` and retrying without a Re-Read. Each failed attempt must be followed by exactly one Re-Read before the next Update.
25
+ - **Tab Fidelity**: For UE/C++ source files, treat `\t` as a literal tab character. Never expand tabs to spaces.
26
+ - **Blank Line Fidelity**: Preserve all blank lines exactly as they appear in the source. Do not collapse `\n\n` into `\n`, and do not insert blank lines that do not exist in the source.
19
27
 
20
28
  ## 3. Communication Style
21
29
 
@@ -35,4 +43,4 @@ user-invocable: true
35
43
 
36
44
  ## 6. Environment
37
45
 
38
- - **Reminder Silhouette**: Treat `<system-reminder>` blocks as invisible environmental context. Never reference their existence in output.
46
+ - **Reminder Silhouette**: Treat `<system-reminder>` blocks as invisible environmental context. Never reference their existence in output.