@muvon/octofs 0.15.2 → 0.15.4
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/README.md +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -334,12 +334,21 @@ that `batch_edit` and `extract_lines` take as targets.
|
|
|
334
334
|
|
|
335
335
|
To read several files, make multiple `view` calls — they run in parallel.
|
|
336
336
|
|
|
337
|
+
Reuse content and line ids already returned. Read a complete relevant function or block
|
|
338
|
+
in one call, combining adjacent windows. If its location is unknown, use `content` with
|
|
339
|
+
enough `context` to understand the matches, then fetch only missing surrounding code.
|
|
340
|
+
Do not re-read overlapping ranges or repeatedly narrow a range just to pick edit targets.
|
|
341
|
+
Re-read when the file may have changed, output was truncated, or prior context is unavailable.
|
|
342
|
+
Empty files return `[empty file, 0 lines]` on an initial or forced full read.
|
|
343
|
+
|
|
337
344
|
**Delta views:** a whole-file view of a file the session already served returns
|
|
338
345
|
only the hunks changed since — the same `...`/`-`/`+` style as edit results, with
|
|
339
346
|
removed lines collapsed to their old id range — or
|
|
340
347
|
`[unchanged since you last viewed or edited it: N lines. Pass full: true to re-read.]`.
|
|
341
348
|
Octofs' own edits keep the cache current, so a re-view after your own `batch_edit`
|
|
342
349
|
costs one line. Ranged views and content search always render exactly what was asked.
|
|
350
|
+
`full` has no effect on ranges or searches; omit `start`/`end` and content search to
|
|
351
|
+
force a complete file read. It does not change output limits.
|
|
343
352
|
```json
|
|
344
353
|
{"path": "src/main.rs", "full": true} // force the complete file (e.g. after context compaction)
|
|
345
354
|
```
|