Commit graph

28 commits

Author SHA1 Message Date
David Dworken
08b34f4f76
fix: prevent zip slip attacks in DXT unpack function (#74)
* fix: prevent zip slip attacks in DXT unpack function

Add path validation to prevent directory traversal attacks when unpacking DXT files.
The fix validates that extracted file paths remain within the intended output directory
before writing files to disk.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: make zip slip protection cross-platform compatible

Use path.sep instead of hardcoded '/' separator to ensure path validation
works correctly on both Windows and Unix systems. This fixes failing tests
on Windows while maintaining security protection against directory traversal.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-18 09:35:32 -07:00
Felix Rieseberg
a3ba5fc984
v0.2.5 (#69) v0.2.5 2025-07-13 14:31:02 -07:00
Samuel Attard
505c81a258
feat: add clean command to clean manifest and trip dev deps for node (#67)
* feat: add clean command to clean manifest and trip dev deps for node

* fix: lazy import no loop

* Update src/cli/cli.ts

Co-authored-by: Felix Rieseberg <f@anthropic.com>

---------

Co-authored-by: Felix Rieseberg <f@anthropic.com>
2025-07-11 15:30:08 -07:00
Samuel Attard
9523b5af19
fix: strictly validate manifests (#66)
* fix: strictly validate manifests

* spec: align tests with strict schema
2025-07-11 14:36:52 -07:00
Felix Rieseberg
641213ad47
chore: v0.2.4 (#62) v0.2.4 2025-07-10 16:12:59 -07:00
Samuel Attard
2dcc7efe6f
fix: handle invalid values in arrays (#61) 2025-07-10 16:10:48 -07:00
Felix Rieseberg
6f4ed9d662
0.2.3 (#60) v0.2.3
* fix: Go back to zod/v3

* chore: v0.2.3
2025-07-10 15:32:56 -07:00
Felix Rieseberg
e2a87144e9
fix: Go back to zod/v3 (#59) 2025-07-10 15:31:26 -07:00
Felix Rieseberg
a9544e29a7
chore: v0.2.2 (#58) v0.2.2 2025-07-10 09:46:50 -07:00
Erik Brakke
83b5a773ae
fix: preserve file permissions during unpack operation (#43)
- Parse ZIP central directory to extract Unix file permissions
- Restore executable permissions using chmodSync after unpacking files
- Skip permission restoration on Windows (Unix-only feature)
- Add comprehensive test to verify executable and regular file permissions are preserved
- Fix test setup to use npm instead of yarn for consistent build process

Fixes issue where executable files lose their execute permissions after being packed and unpacked, which is critical for extensions containing binary executables or shell scripts.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-10 09:09:07 -07:00
Felix Rieseberg
3c1bb1c25e
chore: 0.2.1 (#53) v0.2.1
* chore: Lint

* chore: 0.2.1
2025-07-08 16:22:47 -07:00
Alex Yang
ac2df7c157
chore: update tsconfig (#51) 2025-07-08 15:49:07 -07:00
Felix Rieseberg
167a20c9ba
feat: Add filesystem as an example (#52) 2025-07-08 15:44:24 -07:00
Samuel Attard
85de8638db
build: test/build in CI (#49) 2025-07-06 21:01:37 -07:00
Samuel Attard
2654e313b9
feat: also emit dxt signature info schema (#44) 2025-07-06 16:35:55 -07:00
Samuel Attard
9ce2d6fd0e
fix: move to standard ignore implementation (#50) 2025-07-06 16:35:24 -07:00
Samuel Attard
7efb9bc8ce
build: ensure examples use public npm registry (#48)
Fixes #46
2025-07-04 10:20:32 -07:00
Alex Yang
9849e046a9
feat: emit json schema in npm package 2025-07-03 15:45:39 -07:00
Felix Rieseberg
8613de6078
chore: v0.2.0 (#25) v0.2.0
* chore: v0.2.0

* chore: Fix
2025-06-28 18:58:42 -07:00
Suyog Sonwalkar
2c1d058085
Adding unpack as cli command and exposing via index.ts for typescript usage. (#5) 2025-06-28 16:41:53 -07:00
Andrew A. Johnson
b22675cef9
fix: maintain unix file permissions from file read to zip options (#14) 2025-06-28 16:41:10 -07:00
Felix Rieseberg
3a2984409e
feat: Ignore .env files, too (#23) 2025-06-28 16:11:39 -07:00
Felix Rieseberg
e192e488c3
feat: Negation patterns (#24) 2025-06-28 16:11:32 -07:00
Bhargav Nookala
bf27cf3d67
fix: lockfile references internal artifactory (#6) 2025-06-27 09:02:45 -07:00
David Dworken
7d2cf34685
Merge pull request #2 from ddworken/ddworken/add-examples-readme
Add README for examples/ directory
2025-06-26 17:19:46 -07:00
Felix Rieseberg
c38b236d83
Merge pull request #1 from anthropics/felixr/0.1.0
v0.1.0
2025-06-26 08:55:56 -07:00
Felix Rieseberg
e33e26cfb1
v0.1.0 v0.1.0 2025-06-26 08:54:12 -07:00
Felix Rieseberg
0172c07623
🚀 Hello World 2025-06-26 08:38:59 -07:00