PageIndex/pageindex
mountain 8f536cb8d7 fix(index): strip node text in the level_based path too (no default leak)
build_tree_from_levels seeds every node's 'text', but the removal was gated on
`strategy != "level_based"`, so a default Markdown index (level_based,
if_add_node_text=False) leaked each node's full text into
get_document_structure / storage — inconsistent with if_add_node_text=False,
the README, and the legacy md_to_tree.

Move the strip to the end of build_index and apply it to BOTH strategies:
summary/description generation runs first and still sees the text, and
create_clean_structure_for_description doesn't depend on text. From Codex
review of PR #272.

Claude-Session: https://claude.ai/code/session_01Kx5DgKbhK1N8autqXH8SmS
2026-07-08 20:02:04 +08:00
..
backend fix: address PR #272 review findings (directly-fixable items) 2026-07-08 18:56:51 +08:00
index fix(index): strip node text in the level_based path too (no default leak) 2026-07-08 20:02:04 +08:00
parser style: give Protocol stubs docstring bodies 2026-07-08 17:33:41 +08:00
storage style: give Protocol stubs docstring bodies 2026-07-08 17:33:41 +08:00
__init__.py fix: address PR #272 review findings (directly-fixable items) 2026-07-08 18:56:51 +08:00
agent.py fix(index): bound LLM concurrency at the leaf, not per gather call 2026-07-08 11:26:36 +08:00
client.py fix: address PR #272 review findings (directly-fixable items) 2026-07-08 18:56:51 +08:00
cloud_api.py fix(cloud_api): restore legacy is_retrieval_ready swallow-on-error contract 2026-07-07 15:48:49 +08:00
collection.py refactor(sdk): typed returns, protocol contract, parser layering 2026-07-07 12:15:34 +08:00
config.py fix(index): bound LLM concurrency at the leaf, not per gather call 2026-07-08 11:26:36 +08:00
errors.py fix: address PR #272 review findings (directly-fixable items) 2026-07-08 18:56:51 +08:00
events.py feat: add PageIndex SDK with local/cloud dual-mode support (#207) 2026-04-08 20:21:58 +08:00
page_index.py refactor(index): dedupe the copied indexing pipeline behind deprecation shims 2026-07-07 10:42:23 +08:00
page_index_md.py refactor(index): dedupe the copied indexing pipeline behind deprecation shims 2026-07-07 10:42:23 +08:00
retrieve.py fix: exact md page selection + restore CHATGPT_API_KEY alias 2026-07-08 17:33:41 +08:00
tokens.py refactor(sdk): typed returns, protocol contract, parser layering 2026-07-07 12:15:34 +08:00
types.py refactor(sdk): typed returns, protocol contract, parser layering 2026-07-07 12:15:34 +08:00
utils.py refactor(index): dedupe the copied indexing pipeline behind deprecation shims 2026-07-07 10:42:23 +08:00