Fix structure formatting to include link indexes#48
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #19
The --structure option was showing link IDs in the formatted output like '(4:(2:(1: ) 1) 2)' instead of the expected simplified format like '((( ) 1) 2)'. Fixed by changing the FormatStructure call parameters from (true, true) to (false, false) to disable showing link IDs in the structure representation. Fixes #19 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Previous solution is wrong. We also need to get latest changes from default branch and resolve conflicts. What I expect to see in that case is like: And that should be covered extensively with tests in both C# and Rust implementation. |
|
🤖 AI Work Session Started Starting automated work session at 2026-05-08T06:08:00.057Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait for the session to finish, and provide your feedback. |
Working session summaryImplemented and finalized PR 48: #48 Resolved the Verification completed:
This summary was automatically extracted from the AI working session output. |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (400.4K + 9.6M cached) input tokens, 34.9K output tokens, $15.164255 cost 🤖 Models used:
📎 Log file uploaded as Repository (40748KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
✅ Ready to mergeThis pull request is now ready to be merged:
Monitored by hive-mind with --auto-restart-until-mergeable flag |
Summary
mainintoissue-19-9de6817band resolved the stale root-level C# conflict.--structureformatting so expanded structure output keeps link indexes and renders zero/non-expanded references explicitly.(4: (3: (2: (1: 0 0) 1) 1) 2).Fixes #19
Reproduction Covered
The previous C# formatter produced output like:
Rust expanded both sides and omitted link indexes. New tests cover the expected indexed output, including the
0 0leaf case and repeated source/target references.Tests
dotnet restore,dotnet build --no-restore --configuration Release,dotnet test --no-build --configuration Release --verbosity normalfromcsharp/cargo fmt --all -- --check,RUSTFLAGS=-Dwarnings cargo clippy --all-targets --all-features,cargo test --all-features --verbose,cargo test --doc --verbosefromrust/npm run test:wasmnpm run build