feat(core-file-discovery): build FileNode tree from discovered files [task/03] - #22
Closed
YamiDaisuke wants to merge 7 commits into
Conversation
Replaced .claude/commands/ym/task-runner.md with skeleton version: - Git Workflow section now defers branch naming and stacking rules entirely to .ym/STACKED_PR_WORKFLOW.md - Developer step 1 defers branch creation to Scrum Master instructions - Scrum Master process adds explicit step to derive branch name and PR target from STACKED_PR_WORKFLOW.md before assigning Scripts, templates, STACKED_PR_WORKFLOW.md, PULL_REQUEST_TEMPLATE.md, and restack.yml refreshed from skeleton (no content changes detected). All agent files identical to skeleton — no changes. https://claude.ai/code/session_01BuCBWNQyhdp6BGmAQXik5L
…view [task/04] (#19) * feat(core-markdown-parsing): wire renderer into TUI single-file view TUIRenderer.renderFile(at:) loads a MarkdownDocument and renders it via ANSIRenderer, printing ANSI-styled output to stdout. main.swift now calls this for TUI mode when the path is a single file, replacing the stub info-print with actual rendered markdown. https://claude.ai/code/session_01BuCBWNQyhdp6BGmAQXik5L * chore(tasklin): move ticket 1cc6263d through In Progress → Done https://claude.ai/code/session_01BuCBWNQyhdp6BGmAQXik5L --------- Co-authored-by: Claude <noreply@anthropic.com>
…sk/01] (#20) * feat(core-file-discovery): implement recursive .md file discovery Adds discoverMarkdownFiles(in:) to Core — enumerates a directory tree using FileManager, skips hidden directories via .skipsHiddenFiles, filters for .md files, and returns results sorted alphabetically by path. Throws DiscoveryError.notADirectory if the given URL is not a directory. https://claude.ai/code/session_01BuCBWNQyhdp6BGmAQXik5L * chore(tasklin): move ticket ec0653c4 through In Progress → Done https://claude.ai/code/session_01BuCBWNQyhdp6BGmAQXik5L --------- Co-authored-by: Claude <noreply@anthropic.com>
Adds buildFileTree(at:) which calls discoverMarkdownFiles then constructs a FileNode directory tree: directories sorted alphabetically before files at each level, recursive subdirectories resolved by walking paths upward. Unit tests cover a multi-level nested structure, root-level files, and directory-before-file ordering regardless of alphabetical sort order. https://claude.ai/code/session_01BuCBWNQyhdp6BGmAQXik5L
|
♻️ Branch |
github-actions
Bot
force-pushed
the
core-file-discovery-task/03-build-file-node-tree
branch
from
June 16, 2026 01:30
e55f257 to
036f8af
Compare
YamiDaisuke
deleted the branch
core-file-discovery-task/02-define-file-node-model
June 16, 2026 01:35
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
buildFileTree(at:)toSources/Core/— constructs aFileNodedirectory tree from a folder path, placing directory nodes before file nodes at each level, with unit tests covering a multi-level nested structure.Changes
Sources/Core/FileTreeBuilder.swift(new):buildFileTree(at:)public function and privatebuildNodehelperTests/CoreTests/FileTreeBuilderTests.swift(new): three tests covering multi-level structure, root-level files, and directory-before-file orderingRelated Task
docs/specs/core-file-discovery.md· TASK-03Stack
Target branch:
core-file-discovery-task/02-define-file-node-modelUpstream PR: #21
Checklist
docs/ARCHITECTURE.mddoneGenerated by Claude Code