main (scripts/incremental_probe.py)¶
Overview · 3 steps, 2 lanes
All 3 steps
| # | caller | callee | what it does | requirements | frames | call site |
|---|---|---|---|---|---|---|
| 1 | main | target_for | Allocate the Target record for a repo path (pure; no I/O). | REQ-DDB-MCP-001 | — | scripts/incremental_probe.py:925 |
| 2 | target_for | _safe_index_name | Reduce a declared sub-index name to something safe as a directory component. | — | if (line 352) | clew/mcp_server/state.py:352 |
| 3 | target_for | state_home | Per-user state root for built databases and the registry. | REQ-DDB-MCP-001 | — | clew/mcp_server/state.py:353 |
Functions¶
4 functions
_safe_index_nameclew/mcp_server/state.pystate_homeclew/mcp_server/state.pytarget_forclew/mcp_server/state.pymainscripts/incremental_probe.py
This diagram as Mermaid · PlantUML · Graphviz DOT
Quick views¶
4 functions, each with its quick view
- _safe_index_name
Reduce a declared sub-index name to something safe as a directory component.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/state.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- state_home
Per-user state root for built databases and the registry.
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/state.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- target_for
Allocate the Target record for a repo path (pure; no I/O).
Map
Show it on the map, in its block's wedge.
Block
Answer: query engine + MCP server is the block holding
clew/mcp_server/state.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
- main
Entry point.
Map
Show it on the map, in its block's wedge.
Block
Tooling: scripts is the block holding
scripts/incremental_probe.py.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.