Commit c9d07d7
authored
feat: prepare for npm publish and fix path security validation (#24)
## Changes
### Package Configuration
- Add `files` field to package.json to control npm package contents
- Add `allowedPluginPaths` and `allowedAbsolutePaths` to config schema
- Update `resolveConfig` to preserve security allowlist fields
- Add `--help` flag to CLI for usage information
### Path Security Enhancements
- Fix path validation to support absolute paths in allowlist
- Add case-insensitive, cross-platform path normalization (Windows/Unix)
- Skip traversal warnings for allowed absolute paths
- Update `resolvePluginPath` signature to include `allowedExtensions` parameter
- Forward `allowedAbsolutePaths` from config to extractors (basic-python, basic-node)
### Build & Testing
- Update inspect-pack.js to copy archlette.config.yaml to test directory
- Fix module-loader.ts to pass allowedAbsolutePaths correctly
- Update path-security tests to match new API signature
### Breaking Changes
- `resolvePluginPath` now has 4 parameters: `userPath`, `cliDir`, `allowedExtensions`, `allowedAbsolutePaths`
## Fixes
- Resolves security warnings for absolute paths in allowed directories
- Ensures config allowlists are properly passed through pipeline
- Improves Windows path handling with mixed separators1 parent c71c17a commit c9d07d7
File tree
43 files changed
+1202
-693
lines changed- .github/workflows
- docs
- architecture
- diagrams
- mermaid
- plantuml
- guide
- scripts
- src
- 1-extract
- 5-docs
- core
- docs/builtin
- extractors/builtin
- generators/builtin
- templates
- templates
- test/core
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+1202
-693
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
0 commit comments