refactor: streamline file handling in HttpCommand#14
Merged
Conversation
…s.readdir and improving error handling for streams
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 77e197d. Configure here.
…p, including installation instructions and core exports
…cation, and WebSocketApplication, including usage examples, configuration options, and connection management details
…including minimal setup, shared state management, CRUD operations, logging, and testing strategies
…mples, validation rules, and model serialization methods
…sage examples for response helpers, error handling, and custom headers
…ring route definitions, path parameters, validators, nested routers, and middleware usage
…ng usage patterns for Server-Sent Events, including progress updates, live logs, and authentication
…Claude, including source resolution, skill copying, and user prompts
…stallation and usage, including project and user scope options, bundled skills overview, and uninstall instructions
… symlink resolution and improve content type setting for Koa responses
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.

Note
Medium Risk
Moderate risk because it changes runtime behavior of the
httpCLI (directory reads, response headers, streaming lifecycle, and disables Koa static), which could affect file serving compatibility and edge cases.Overview
Adds a new
skillsCLI command to install bundled AI “Skill” docs into Cursor/Claude skill directories, including logic to source skills from a localnode_modules/@axiosleo/koapp/assets/skillswhen available (or fall back to thenpxrunner) and optional overwrite prompts/--force.Bundles a large set of framework skills under
assets/skills/*and documents usage inREADME.md.Refactors
HttpCommandfile handling to usefs.promises.readdirwithDirents +statfor accurate directory detection (incl. symlinks), improves file responses (MIME handling viactx.type, attachment fallback,Content-Length), adds stream error/close cleanup, prints a startup message, and disables the built-in Koa static server (static: false).Reviewed by Cursor Bugbot for commit c8d87a5. Bugbot is set up for automated code reviews on this repo. Configure here.