diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5043f0c..b80b520 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,6 @@ version: 2 updates: - - package-ecosystem: npm + - package-ecosystem: bun directory: / schedule: interval: monthly diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a63e294..736d0da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,17 +25,21 @@ jobs: - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7 with: node-version: 24 - cache: npm - - run: npm ci - - run: npm test + package-manager-cache: false + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 + with: + bun-version: 1.4.3 + - run: bun install --frozen-lockfile + - run: bun run lint + - run: bun run test - name: Extension host (Linux) if: runner.os == 'Linux' - run: xvfb-run -a npm run test:integration + run: xvfb-run -a bun run test:integration - name: Extension host (Windows) if: runner.os == 'Windows' - run: npm run test:integration - - run: npm audit --audit-level=low - - run: npm run package + run: bun run test:integration + - run: bun audit --audit-level=low + - run: bun run package - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7 with: name: vsix-${{ matrix.os }} @@ -58,8 +62,11 @@ jobs: with: node-version: 24 package-manager-cache: false - - run: npm ci - - run: npm run package + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 + with: + bun-version: 1.4.3 + - run: bun install --frozen-lockfile + - run: bun run package - name: Create draft, attach assets, and publish env: GH_TOKEN: ${{ github.token }} diff --git a/.vscodeignore b/.vscodeignore index 9f38ee7..ba09703 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -11,3 +11,5 @@ integration-test.log .github/** scripts/** *.sha256 +biome.json +bun.lock diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7f3030c..2c728e7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -33,24 +33,25 @@ git checkout -b feature/my-new-feature ### 5. Compile and Test Your Changes -Use Node.js 22.12+ (Node 24 recommended) and Git. Install dependencies and compile the TypeScript sources: +Use [Bun](https://bun.sh) 1.4+, Node.js 22.12+ (Node 24 recommended) and Git. Bun installs dependencies and runs scripts; Node is still needed for packaging and the extension-host tests. Install dependencies and compile the TypeScript sources: ``` -npm ci -npm run compile +bun install --frozen-lockfile +bun run compile ``` -If you made significant changes, also run tests to ensure everything works correctly: +If you made significant changes, also run the linter and tests to ensure everything works correctly: ``` -npm test +bun run lint +bun run test ``` -Unit tests exercise production modules and use temporary Git repositories (Git must be installed). Run `npm run test:integration` for VS Code extension-host tests and `npm run package` to build a VSIX. Compiled output lives in `out/`; do not add generated JavaScript under `src/`. +Unit tests exercise production modules and use temporary Git repositories (Git must be installed). Run `bun run test:integration` for VS Code extension-host tests and `bun run package` to build a VSIX. Formatting and linting use Biome (`bun run lint:fix` applies fixes). Compiled output lives in `out/`; do not add generated JavaScript under `src/`. ### Release maintainers -Update `package.json`, the lockfile, changelog, README and `releases/RELEASE-NOTES-.md`. A commit on `main` whose message starts with `release:` triggers publication **only after both Windows and Linux CI jobs pass**. The release job packages the verified commit, creates a draft with the VSIX and SHA-256 checksum, and publishes it as the latest GitHub release. Ordinary commits and pull requests cannot publish. Existing release tags are not overwritten. Marketplace publication remains a separate explicit action. +Update `package.json`, `bun.lock`, changelog, README and `releases/RELEASE-NOTES-.md`. A commit on `main` whose message starts with `release:` triggers publication **only after both Windows and Linux CI jobs pass**. The release job packages the verified commit, creates a draft with the VSIX and SHA-256 checksum, and publishes it as the latest GitHub release. Ordinary commits and pull requests cannot publish. Existing release tags are not overwritten. Marketplace publication remains a separate explicit action. ### 6. Commit Your Changes diff --git a/README.md b/README.md index ba99e38..d71d409 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ CodebaseMD runs locally. It does not upload your source code or call an AI provi 3. Open a local workspace and run **CodebaseMD: Export Wizard** from the Command Palette. 4. Choose your scope, content mode, output format, and destination. -The Marketplace has its own publication schedule; use the GitHub VSIX for this release. VS Code 1.70 or later is required. Git is needed only for Git exports. +The Marketplace has its own publication schedule; use the GitHub VSIX for this release. VS Code 1.146 or later is required. Git is needed only for Git exports. ## What's new in version 3.0.0 @@ -94,16 +94,17 @@ These rules also apply to explicit selections. See [configuration examples](docs ## Development -Use Node.js 22.12+ (Node 24 recommended) and Git: +Use [Bun](https://bun.sh) 1.4+, Node.js 22.12+ (Node 24 recommended) and Git: ```sh -npm ci -npm test -npm run test:integration -npm run package +bun install --frozen-lockfile +bun run lint +bun run test +bun run test:integration +bun run package ``` -Unit tests import production modules and create temporary Git repositories. Integration tests launch a VS Code host and verify commands, clipboard output, and unsaved content. Linux integration tests require a display (`xvfb-run -a npm run test:integration` in CI). The CI workflow tests Windows and Linux and retains the built VSIX as an artifact. +Unit tests import production modules and create temporary Git repositories. Integration tests launch a VS Code host and verify commands, clipboard output, and unsaved content. Linux integration tests require a display (`xvfb-run -a bun run test:integration` in CI). The CI workflow tests Windows and Linux and retains the built VSIX as an artifact. See [contributing](CONTRIBUTING.md), the [developer module reference](docs/api-reference.md), and the [research and implementation plan](docs/v3-plan.md). The separate [web prototype](CodebaseMD-Web/README.md) is not part of this extension release. diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..3ff82f4 --- /dev/null +++ b/biome.json @@ -0,0 +1,38 @@ +{ + "$schema": "https://biomejs.dev/schemas/2.6.6/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "ignoreUnknown": true, + "includes": ["src/**", "scripts/**", "*.json"] + }, + "formatter": { + "enabled": true, + "indentStyle": "space", + "indentWidth": 2, + "lineWidth": 120, + "lineEnding": "auto" + }, + "linter": { + "enabled": true, + "rules": { + "preset": "recommended" + } + }, + "javascript": { + "formatter": { + "quoteStyle": "single" + } + }, + "assist": { + "enabled": true, + "actions": { + "source": { + "organizeImports": "on" + } + } + } +} diff --git a/bun.lock b/bun.lock new file mode 100644 index 0000000..0dd1ac9 --- /dev/null +++ b/bun.lock @@ -0,0 +1,485 @@ +{ + "lockfileVersion": 2, + "configVersion": 1, + "workspaces": { + "": { + "name": "codebase-md", + "dependencies": { + "ignore": "^7.0.14", + }, + "devDependencies": { + "@biomejs/biome": "^2.6.6", + "@types/mocha": "^10.0.10", + "@types/node": "^26.6.6", + "@types/vscode": "^1.146.0", + "@vscode/test-electron": "^3.1.0", + "@vscode/vsce": "^4.1.0", + "mocha": "^12.0.3", + "typescript": "^7.0.2", + }, + }, + }, + "overrides": { + "glob": "^14.0.5", + "minimatch": "^11.0.8", + }, + "packages": { + "@azure/abort-controller": ["@azure/abort-controller@2.2.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-fNAjWnA/nZ2jz31kxR/AqRaUT8ewHBw/WuBIosK0moMy1C9e5ValbDfFdIxJzVOOYaYkV/b2F1S4H/aHiqfVQg=="], + + "@azure/core-auth": ["@azure/core-auth@1.11.0", "", { "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-util": "^1.13.0", "tslib": "^2.6.2" } }, "sha512-IUZydyTUkDnYdstOW9pFOOUQlBjAepK5teihDE3x6yxsPJs/hsAaaYpeGxdxrgtOiJbBKSjKW7MDk7AEhb4LRg=="], + + "@azure/core-client": ["@azure/core-client@1.11.2", "", { "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.10.0", "@azure/core-rest-pipeline": "^1.22.0", "@azure/core-tracing": "^1.3.0", "@azure/core-util": "^1.13.0", "@azure/logger": "^1.3.0", "tslib": "^2.6.2" } }, "sha512-ajuIU1aMoTs/ERYrKnIqQrV5Vz3RL8mwDC5RdedIXUvR7pi6cWzeYmt0LfNz6+W91CuCO4WJG0zA6+PhU1X+hw=="], + + "@azure/core-process": ["@azure/core-process@1.0.0", "", {}, "sha512-/shnJ+ooO8WPxDhPEeI/2oRQuubn16gZ6CvlbpWbEswZfzwI9tI/sMAHmF3x1LuQ9yZYXfLW3TjzGMLEC5blKg=="], + + "@azure/core-rest-pipeline": ["@azure/core-rest-pipeline@1.25.1", "", { "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.10.0", "@azure/core-tracing": "^1.3.0", "@azure/core-util": "^1.13.0", "@azure/logger": "^1.3.0", "@typespec/ts-http-runtime": "^0.3.10", "tslib": "^2.6.2" } }, "sha512-fTIA3CAm/cdODqiXkO6jYOIkU2Ylld7vq65KGc70gTwl12sLQsC8v7I5t6tp2N2CfUONzZBXyeFw7KEu6Ks2zg=="], + + "@azure/core-tracing": ["@azure/core-tracing@1.4.0", "", { "dependencies": { "tslib": "^2.6.2" } }, "sha512-eGwxD0AtncrxeBM4tG8R55Pc3rdX1hNW2WibJAgYpCVA6E93mvvVH+LcssoVjOBrSKWS55yEIHsk0X8ctHmfOQ=="], + + "@azure/core-util": ["@azure/core-util@1.14.0", "", { "dependencies": { "@azure/abort-controller": "^2.1.2", "@typespec/ts-http-runtime": "^0.3.0", "tslib": "^2.6.2" } }, "sha512-9n2pWK61veAuN0V20t9lOuoV4CFMdyAZ1ygZzvBGk/pBBJRib/PjL9PLXa/aI2CcPpyHfqVsxxqLCYl6uZlfDw=="], + + "@azure/identity": ["@azure/identity@4.14.1", "", { "dependencies": { "@azure/abort-controller": "^2.0.0", "@azure/core-auth": "^1.9.0", "@azure/core-client": "^1.9.2", "@azure/core-process": "^1.0.0", "@azure/core-rest-pipeline": "^1.17.0", "@azure/core-tracing": "^1.0.0", "@azure/core-util": "^1.11.0", "@azure/logger": "^1.0.0", "@azure/msal-browser": "^5.5.0", "@azure/msal-node": "^7.1.0", "open": "^11.0.0", "tslib": "^2.2.0" } }, "sha512-HHuuFrmN1uuF9D5A6aAo5eHzNFNX4Q+P4SksZqDKse5YaJFFy/zDLG3wXHEV2FVGgetZ3QM8jGURNBtnQYf1NQ=="], + + "@azure/logger": ["@azure/logger@1.4.0", "", { "dependencies": { "@typespec/ts-http-runtime": "^0.3.0", "tslib": "^2.6.2" } }, "sha512-rbAE25KUfjU/s3XHUdJgceoCP5dEOpMx85J04kF+QMdta73XkuG9JGHHinch+XIoKpBdqljin+KqURpJriSzLA=="], + + "@azure/msal-browser": ["@azure/msal-browser@5.29.0", "", { "dependencies": { "@azure/msal-common": "16.16.1" } }, "sha512-Ko/Ovw6h+Gu33mp8f0FUyddr/KDWzbGzcgR8HKZaT4wgTYljLPKJP1rcDu0RHj7pkd4CR2hCHK51XFzgvq/Q5Q=="], + + "@azure/msal-common": ["@azure/msal-common@16.16.1", "", {}, "sha512-dSKdL9h/iercb4GumsKFh+wVvLe1ohuDPiviklgnQVHnY2FYNUlbQJ3E1Qd37vkof9CfraK9BQpCW1hoOg0znQ=="], + + "@azure/msal-node": ["@azure/msal-node@7.2.1", "", { "dependencies": { "@azure/msal-common": "16.16.1", "jsonwebtoken": "^9.0.0" } }, "sha512-6mntsfCNq7H1eAPSZik74jT3C5at4nRqiVk7OC+D5Hy3Pe3s76uwE4+J0xvDvlVPmoX2kasf3mSwUmzeq9rW/A=="], + + "@biomejs/biome": ["@biomejs/biome@2.6.6", "", { "optionalDependencies": { "@biomejs/cli-android-arm64": "2.6.6", "@biomejs/cli-android-x64": "2.6.6", "@biomejs/cli-darwin-arm64": "2.6.6", "@biomejs/cli-darwin-x64": "2.6.6", "@biomejs/cli-linux-arm64": "2.6.6", "@biomejs/cli-linux-arm64-musl": "2.6.6", "@biomejs/cli-linux-x64": "2.6.6", "@biomejs/cli-linux-x64-musl": "2.6.6", "@biomejs/cli-win32-arm64": "2.6.6", "@biomejs/cli-win32-x64": "2.6.6" }, "bin": { "biome": "bin/biome" } }, "sha512-NCgVJRyrU1+hsW1ILNaRqNAb9fRL4n49bwyef+wjVJQ488/bXbp0BfnNqTTExkiNQT3ugkgYKR1vK8NxsjlNSQ=="], + + "@biomejs/cli-android-arm64": ["@biomejs/cli-android-arm64@2.6.6", "", { "os": "android", "cpu": "arm64" }, "sha512-bicnqNNxEX7pjkDQaptYvPRIWDfgXJLl/Ok7iZjC+F1AhfReor3FSS7SgPYnOvUy/jf++5U/KYN4T8OKH5rrNA=="], + + "@biomejs/cli-android-x64": ["@biomejs/cli-android-x64@2.6.6", "", { "os": "android", "cpu": "x64" }, "sha512-N443kDSElF4kDMKjarsL+ymj/ewLA5R9VAdawA7fJ7pwgN3JVDZp0K+xhKBglH8EwsKi2+K8xC6WxXSkgziFfw=="], + + "@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.6.6", "", { "os": "darwin", "cpu": "arm64" }, "sha512-/vSAqWx3by3p8w5ew+HVJDgguuaTK3U6Fb5gk/oDUH21iWOopm3gOlhT6tZfy5mTaM5R4CVc3uFWkxBtEDrKyw=="], + + "@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.6.6", "", { "os": "darwin", "cpu": "x64" }, "sha512-lLdOAJKbrAoDs+3GvTyVmMW345D9IhrIE3GgoL2eeHwO1boN4VhrSlALtFYsP0p+Jy4udUp4bTguij0qjKrH8w=="], + + "@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.6.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-UzJdUCg9dbEGpZOuZRyehEPrnwKjx9z4Um7sWLG5x6txu7UjeWdJZuBXVGlyAdD39w2Hx0nZeK1jKC4NFUTCNQ=="], + + "@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.6.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-rw2Vsoi/WZGDyRjMXx9KZH9zsHe79LIzkdWHkLqsIkeKZm6qiGxtiIApxn7cmJSoEPaSvHaH5pRj1FhTcyL/XA=="], + + "@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.6.6", "", { "os": "linux", "cpu": "x64" }, "sha512-l8/aPXc1cz8VpUyd4hb5Pm5zx+X3voQBks4aLYbp5pC8KSchuHyvqDfY5xax39qCHomI/2xn6NKEot+zebG38g=="], + + "@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.6.6", "", { "os": "linux", "cpu": "x64" }, "sha512-DiKejs+GnFbOVQsBnukUpiB+T13tqUDFGwwjsTq51vatAsaflzFzVD0BOgjVUGRrqKgE0K0Xf+wNtkcmdN2chw=="], + + "@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.6.6", "", { "os": "win32", "cpu": "arm64" }, "sha512-DjVXwQAQeHrO1JEZAEus54k40Tnh4glyU3VFLcDBKwoz0xnxCEnqw6TCMXoujcQMQynWd3AY8bLrbR1o0XNqow=="], + + "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.6.6", "", { "os": "win32", "cpu": "x64" }, "sha512-B7KMG26A4I9lAuxwBGMmiVcjMGAeJRoz+pzFt9brRvOAsIrgOu8ptJld5rUWui6tM1uiJwxeJhhDPuAiZtxXdw=="], + + "@isaacs/nonrecursive-glob-match": ["@isaacs/nonrecursive-glob-match@1.1.0", "", {}, "sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw=="], + + "@napi-rs/keyring": ["@napi-rs/keyring@1.3.0", "", { "optionalDependencies": { "@napi-rs/keyring-darwin-arm64": "1.3.0", "@napi-rs/keyring-darwin-x64": "1.3.0", "@napi-rs/keyring-freebsd-x64": "1.3.0", "@napi-rs/keyring-linux-arm-gnueabihf": "1.3.0", "@napi-rs/keyring-linux-arm64-gnu": "1.3.0", "@napi-rs/keyring-linux-arm64-musl": "1.3.0", "@napi-rs/keyring-linux-riscv64-gnu": "1.3.0", "@napi-rs/keyring-linux-x64-gnu": "1.3.0", "@napi-rs/keyring-linux-x64-musl": "1.3.0", "@napi-rs/keyring-win32-arm64-msvc": "1.3.0", "@napi-rs/keyring-win32-ia32-msvc": "1.3.0", "@napi-rs/keyring-win32-x64-msvc": "1.3.0" } }, "sha512-WrOw/bcXm0f9qHkumlT1QlArXSTWqaY9sunsDpOk+yCCorCKMxvWT/a3xko4EYHVdeZoh00yI2TydXn6eyICDA=="], + + "@napi-rs/keyring-darwin-arm64": ["@napi-rs/keyring-darwin-arm64@1.3.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-pl76hJvdYUBn6I24bXiOBMA9nbDapo3I5B+f3OorjDU4dUMSypXeKbOVehJe8fhgTiH24flMyTS3aAIy43xegQ=="], + + "@napi-rs/keyring-darwin-x64": ["@napi-rs/keyring-darwin-x64@1.3.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-YcJtEV5LA3cvA4z3BurgxH5IhTsW1JfIvcAAcqcecwk06Si9F9NqkxbZVIfDwQ8oRHgaBmT3zZJnLAotCrVahw=="], + + "@napi-rs/keyring-freebsd-x64": ["@napi-rs/keyring-freebsd-x64@1.3.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-vlLf31TGhfRAaxLDBhg8b89ss0HHD/lyNmL5F3UjSaz5CUXElsJmKYq9fqA/B+cZKUEUcLHHGhF0I/CqcFdaVw=="], + + "@napi-rs/keyring-linux-arm-gnueabihf": ["@napi-rs/keyring-linux-arm-gnueabihf@1.3.0", "", { "os": "linux", "cpu": "arm" }, "sha512-KiWdMMu/Inz/bHHIAGrnF7r54FZDYXuHO6UFF/rhIrshUsxbMG1Rl9lEymNtqqsVo927G0VYcb02FzWQ3iBQRQ=="], + + "@napi-rs/keyring-linux-arm64-gnu": ["@napi-rs/keyring-linux-arm64-gnu@1.3.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-eyKGpY40lm9Jvs1aD294XRH4y7+TlJM0YVAryZeXA6TX0mb4gMkxVXwSQv7MCwgah7raeUd0dKUb4BPAYIgcMg=="], + + "@napi-rs/keyring-linux-arm64-musl": ["@napi-rs/keyring-linux-arm64-musl@1.3.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-iIK6JWHXAJqDrEyLY3TmswwloVyt2vj+04TZnew+uSJ9gnDO8EwRbp3/iw3LpWaXiDO7VomGO6y8I0Id8uBZSw=="], + + "@napi-rs/keyring-linux-riscv64-gnu": ["@napi-rs/keyring-linux-riscv64-gnu@1.3.0", "", { "os": "linux", "cpu": "none" }, "sha512-/PGqrwn6EwgtK6vccASSXJRfOSP4vN1F4ASsIQ+7MdrK6hNvAJ1FZPrIuD5gGGdxezo3F++To2Wq7DbuGIeuNQ=="], + + "@napi-rs/keyring-linux-x64-gnu": ["@napi-rs/keyring-linux-x64-gnu@1.3.0", "", { "os": "linux", "cpu": "x64" }, "sha512-2PDK1WKWTu9lBGq9VvNEkSlQD3O7YwVpmnyN2M3cy4v7NJ/8gDMd9GXv3G+FVXN13uhp4gnnPBS+ScefmEeD2A=="], + + "@napi-rs/keyring-linux-x64-musl": ["@napi-rs/keyring-linux-x64-musl@1.3.0", "", { "os": "linux", "cpu": "x64" }, "sha512-oJ2HkX8YUo46QBkn0pG+HuIKQNqr523q6vBobCn+P95s4C4K6/kLBqHY/1bg5J4ap31DzsznhnFKcfBNBsjCnw=="], + + "@napi-rs/keyring-win32-arm64-msvc": ["@napi-rs/keyring-win32-arm64-msvc@1.3.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-tOd3c/uAaeoE4ycVlmAdSvygz0Zt3zdca6Y7gokBeIbaRDWpjDIUOpU3MvML59XAaqyuKGsVVu0F/DZb1lHPmw=="], + + "@napi-rs/keyring-win32-ia32-msvc": ["@napi-rs/keyring-win32-ia32-msvc@1.3.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-sPSqeAFZMGqP1R++M2JTza7GQJJ/TpCo6JU6Vcd4jnebvOaEDs9b7eipakU1PJdSvhpC2yXMCNRk9gXfrhuwHQ=="], + + "@napi-rs/keyring-win32-x64-msvc": ["@napi-rs/keyring-win32-x64-msvc@1.3.0", "", { "os": "win32", "cpu": "x64" }, "sha512-4DnCWXwDc0HRKwyRlG5y0VhKZW2tNRQfKKfyj6IX/KWfDNyq9hn4n+GL1auyDcOO/v8PwnhmYo2+rOOqCkvvOg=="], + + "@secretlint/core": ["@secretlint/core@10.2.2", "", { "dependencies": { "@secretlint/profiler": "^10.2.2", "@secretlint/types": "^10.2.2", "debug": "^4.4.1", "structured-source": "^4.0.0" } }, "sha512-6rdwBwLP9+TO3rRjMVW1tX+lQeo5gBbxl1I5F8nh8bgGtKwdlCMhMKsBWzWg1ostxx/tIG7OjZI0/BxsP8bUgw=="], + + "@secretlint/profiler": ["@secretlint/profiler@10.2.2", "", {}, "sha512-qm9rWfkh/o8OvzMIfY8a5bCmgIniSpltbVlUVl983zDG1bUuQNd1/5lUEeWx5o/WJ99bXxS7yNI4/KIXfHexig=="], + + "@secretlint/secretlint-rule-no-dotenv": ["@secretlint/secretlint-rule-no-dotenv@10.2.2", "", { "dependencies": { "@secretlint/types": "^10.2.2" } }, "sha512-KJRbIShA9DVc5Va3yArtJ6QDzGjg3PRa1uYp9As4RsyKtKSSZjI64jVca57FZ8gbuk4em0/0Jq+uy6485wxIdg=="], + + "@secretlint/secretlint-rule-preset-recommend": ["@secretlint/secretlint-rule-preset-recommend@10.2.2", "", {}, "sha512-K3jPqjva8bQndDKJqctnGfwuAxU2n9XNCPtbXVI5JvC7FnQiNg/yWlQPbMUlBXtBoBGFYp08A94m6fvtc9v+zA=="], + + "@secretlint/source-creator": ["@secretlint/source-creator@10.2.2", "", { "dependencies": { "@secretlint/types": "^10.2.2", "istextorbinary": "^9.5.0" } }, "sha512-h6I87xJfwfUTgQ7irWq7UTdq/Bm1RuQ/fYhA3dtTIAop5BwSFmZyrchph4WcoEvbN460BWKmk4RYSvPElIIvxw=="], + + "@secretlint/types": ["@secretlint/types@10.2.2", "", {}, "sha512-Nqc90v4lWCXyakD6xNyNACBJNJ0tNCwj2WNk/7ivyacYHxiITVgmLUFXTBOeCdy79iz6HtN9Y31uw/jbLrdOAg=="], + + "@types/mocha": ["@types/mocha@10.0.10", "", {}, "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q=="], + + "@types/node": ["@types/node@26.6.6", "", { "dependencies": { "undici-types": "~8.9.0" } }, "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog=="], + + "@types/vscode": ["@types/vscode@1.146.0", "", {}, "sha512-OtU25faeM997QQsW+D07FN9cX06j+EEI4aQaPw/UO3HWlCM39N1W7fG8ewhdZKluut31KffyMsmDzJzgMu6t8Q=="], + + "@typescript/typescript-aix-ppc64": ["@typescript/typescript-aix-ppc64@7.0.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ=="], + + "@typescript/typescript-darwin-arm64": ["@typescript/typescript-darwin-arm64@7.0.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA=="], + + "@typescript/typescript-darwin-x64": ["@typescript/typescript-darwin-x64@7.0.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA=="], + + "@typescript/typescript-freebsd-arm64": ["@typescript/typescript-freebsd-arm64@7.0.2", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ=="], + + "@typescript/typescript-freebsd-x64": ["@typescript/typescript-freebsd-x64@7.0.2", "", { "os": "freebsd", "cpu": "x64" }, "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw=="], + + "@typescript/typescript-linux-arm": ["@typescript/typescript-linux-arm@7.0.2", "", { "os": "linux", "cpu": "arm" }, "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ=="], + + "@typescript/typescript-linux-arm64": ["@typescript/typescript-linux-arm64@7.0.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ=="], + + "@typescript/typescript-linux-loong64": ["@typescript/typescript-linux-loong64@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ=="], + + "@typescript/typescript-linux-mips64el": ["@typescript/typescript-linux-mips64el@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA=="], + + "@typescript/typescript-linux-ppc64": ["@typescript/typescript-linux-ppc64@7.0.2", "", { "os": "linux", "cpu": "ppc64" }, "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA=="], + + "@typescript/typescript-linux-riscv64": ["@typescript/typescript-linux-riscv64@7.0.2", "", { "os": "linux", "cpu": "none" }, "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ=="], + + "@typescript/typescript-linux-s390x": ["@typescript/typescript-linux-s390x@7.0.2", "", { "os": "linux", "cpu": "s390x" }, "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw=="], + + "@typescript/typescript-linux-x64": ["@typescript/typescript-linux-x64@7.0.2", "", { "os": "linux", "cpu": "x64" }, "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A=="], + + "@typescript/typescript-netbsd-arm64": ["@typescript/typescript-netbsd-arm64@7.0.2", "", { "os": "none", "cpu": "arm64" }, "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA=="], + + "@typescript/typescript-netbsd-x64": ["@typescript/typescript-netbsd-x64@7.0.2", "", { "os": "none", "cpu": "x64" }, "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA=="], + + "@typescript/typescript-openbsd-arm64": ["@typescript/typescript-openbsd-arm64@7.0.2", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ=="], + + "@typescript/typescript-openbsd-x64": ["@typescript/typescript-openbsd-x64@7.0.2", "", { "os": "openbsd", "cpu": "x64" }, "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg=="], + + "@typescript/typescript-sunos-x64": ["@typescript/typescript-sunos-x64@7.0.2", "", { "os": "sunos", "cpu": "x64" }, "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g=="], + + "@typescript/typescript-win32-arm64": ["@typescript/typescript-win32-arm64@7.0.2", "", { "os": "win32", "cpu": "arm64" }, "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ=="], + + "@typescript/typescript-win32-x64": ["@typescript/typescript-win32-x64@7.0.2", "", { "os": "win32", "cpu": "x64" }, "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g=="], + + "@typespec/ts-http-runtime": ["@typespec/ts-http-runtime@0.3.10", "", { "dependencies": { "http-proxy-agent": "^9.1.0", "https-proxy-agent": "^9.1.0", "tslib": "^2.6.2" } }, "sha512-vddvvtZ7sejSlCv+OIkn2ztjB1O31Fc2JsxI/YK725r3elXXlF/J3o3lbXJFRhoeWRWK1tjdZ+GTi6Fdtrp+EA=="], + + "@vscode/test-electron": ["@vscode/test-electron@3.1.0", "", { "dependencies": { "http-proxy-agent": "^7.0.2", "https-proxy-agent": "^7.0.5", "jszip": "^3.10.1", "ora": "^8.1.0", "semver": "^7.6.2" } }, "sha512-CRqv5u+YYoseuNVJ6Tyo4k0sF0mx4qnKMihRB0PjsUF8Dc0WKtCXo6CNL6nWWm5esfFQsQA/pejMj4ZbpJVLTw=="], + + "@vscode/vsce": ["@vscode/vsce@4.1.0", "", { "dependencies": { "@azure/identity": "^4.13.2", "@napi-rs/keyring": "^1.3.0", "@secretlint/core": "^10.2.2", "@secretlint/secretlint-rule-no-dotenv": "^10.2.2", "@secretlint/secretlint-rule-preset-recommend": "^10.2.2", "@secretlint/source-creator": "^10.2.2", "@secretlint/types": "^10.2.2", "@vscode/vsce-sign": "^2.1.0", "azure-devops-node-api": "^12.5.0", "cockatiel": "^3.2.1", "commander": "^12.1.0", "hosted-git-info": "^4.1.0", "jsonc-parser": "^3.3.1", "marked": "^18.0.11", "mime": "^1.6.0", "minimatch": "^10.2.6", "parse5": "^8.0.1", "proper-lockfile": "^4.1.2", "read": "^1.0.7", "semver": "^7.8.5", "tinyglobby": "^0.2.17", "typed-rest-client": "^1.8.11", "url-join": "^4.0.1", "xml2js": "^0.5.0", "yauzl": "^3.4.0", "yazl": "^2.5.1" }, "bin": { "vsce": "vsce" } }, "sha512-iWNykEfLWTAU7FC2iBiE0vJvnJDpGm3GlL89dsBtRs62F+8tkPtq80Imi0QSFHjNBWu4QIdYII+3F9v/ZQRExw=="], + + "@vscode/vsce-sign": ["@vscode/vsce-sign@2.1.0", "", { "optionalDependencies": { "@vscode/vsce-sign-alpine-arm64": "2.0.6", "@vscode/vsce-sign-alpine-x64": "2.0.6", "@vscode/vsce-sign-darwin-arm64": "2.0.6", "@vscode/vsce-sign-darwin-x64": "2.0.6", "@vscode/vsce-sign-linux-arm": "2.0.6", "@vscode/vsce-sign-linux-arm64": "2.0.6", "@vscode/vsce-sign-linux-x64": "2.0.6", "@vscode/vsce-sign-win32-arm64": "2.0.6", "@vscode/vsce-sign-win32-x64": "2.0.6" } }, "sha512-9AQrqazrBgTgRSuwleLVXUrIUphY02/SFCh2TKYoLV/xifJAdblhdmEmw5gUrYSPQ3sRwNs9iyCMD14sATEE6g=="], + + "@vscode/vsce-sign-alpine-arm64": ["@vscode/vsce-sign-alpine-arm64@2.0.6", "", { "os": "none", "cpu": "arm64" }, "sha512-wKkJBsvKF+f0GfsUuGT0tSW0kZL87QggEiqNqK6/8hvqsXvpx8OsTEc3mnE1kejkh5r+qUyQ7PtF8jZYN0mo8Q=="], + + "@vscode/vsce-sign-alpine-x64": ["@vscode/vsce-sign-alpine-x64@2.0.6", "", { "os": "none", "cpu": "x64" }, "sha512-YoAGlmdK39vKi9jA18i4ufBbd95OqGJxRvF3n6ZbCyziwy3O+JgOpIUPxv5tjeO6gQfx29qBivQ8ZZTUF2Ba0w=="], + + "@vscode/vsce-sign-darwin-arm64": ["@vscode/vsce-sign-darwin-arm64@2.0.6", "", { "os": "darwin", "cpu": "arm64" }, "sha512-5HMHaJRIQuozm/XQIiJiA0W9uhdblwwl2ZNDSSAeXGO9YhB9MH5C4KIHOmvyjUnKy4UCuiP43VKpIxW1VWP4tQ=="], + + "@vscode/vsce-sign-darwin-x64": ["@vscode/vsce-sign-darwin-x64@2.0.6", "", { "os": "darwin", "cpu": "x64" }, "sha512-25GsUbTAiNfHSuRItoQafXOIpxlYj+IXb4/qarrXu7kmbH94jlm5sdWSCKrrREs8+GsXF1b+l3OB7VJy5jsykw=="], + + "@vscode/vsce-sign-linux-arm": ["@vscode/vsce-sign-linux-arm@2.0.6", "", { "os": "linux", "cpu": "arm" }, "sha512-UndEc2Xlq4HsuMPnwu7420uqceXjs4yb5W8E2/UkaHBB9OWCwMd3/bRe/1eLe3D8kPpxzcaeTyXiK3RdzS/1CA=="], + + "@vscode/vsce-sign-linux-arm64": ["@vscode/vsce-sign-linux-arm64@2.0.6", "", { "os": "linux", "cpu": "arm64" }, "sha512-cfb1qK7lygtMa4NUl2582nP7aliLYuDEVpAbXJMkDq1qE+olIw/es+C8j1LJwvcRq1I2yWGtSn3EkDp9Dq5FdA=="], + + "@vscode/vsce-sign-linux-x64": ["@vscode/vsce-sign-linux-x64@2.0.6", "", { "os": "linux", "cpu": "x64" }, "sha512-/olerl1A4sOqdP+hjvJ1sbQjKN07Y3DVnxO4gnbn/ahtQvFrdhUi0G1VsZXDNjfqmXw57DmPi5ASnj/8PGZhAA=="], + + "@vscode/vsce-sign-win32-arm64": ["@vscode/vsce-sign-win32-arm64@2.0.6", "", { "os": "win32", "cpu": "arm64" }, "sha512-ivM/MiGIY0PJNZBoGtlRBM/xDpwbdlCWomUWuLmIxbi1Cxe/1nooYrEQoaHD8ojVRgzdQEUzMsRbyF5cJJgYOg=="], + + "@vscode/vsce-sign-win32-x64": ["@vscode/vsce-sign-win32-x64@2.0.6", "", { "os": "win32", "cpu": "x64" }, "sha512-mgth9Kvze+u8CruYMmhHw6Zgy3GRX2S+Ed5oSokDEK5vPEwGGKnmuXua9tmFhomeAnhgJnL4DCna3TiNuGrBTQ=="], + + "agent-base": ["agent-base@7.1.4", "", {}, "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ=="], + + "ansi-regex": ["ansi-regex@6.6.0", "", {}, "sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g=="], + + "argparse": ["argparse@3.0.4", "", {}, "sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA=="], + + "azure-devops-node-api": ["azure-devops-node-api@12.5.0", "", { "dependencies": { "tunnel": "0.0.6", "typed-rest-client": "^1.8.4" } }, "sha512-R5eFskGvOm3U/GzeAuxRkUsAl0hrAwGgWn6zAd2KrZmrEhWZVqLew4OOupbQlXUuojUzpGtq62SmdhJ06N88og=="], + + "balanced-match": ["balanced-match@4.0.4", "", {}, "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA=="], + + "binaryextensions": ["binaryextensions@6.11.0", "", { "dependencies": { "editions": "^6.21.0" } }, "sha512-sXnYK/Ij80TO3lcqZVV2YgfKN5QjUWIRk/XSm2J/4bd/lPko3lvk0O4ZppH6m+6hB2/GTu+ptNwVFe1xh+QLQw=="], + + "boundary": ["boundary@2.0.0", "", {}, "sha512-rJKn5ooC9u8q13IMCrW0RSp31pxBCHE3y9V/tp3TdWSLf8Em3p6Di4NBpfzbJge9YjjFEsD0RtFEjtvHL5VyEA=="], + + "brace-expansion": ["brace-expansion@5.0.13", "", { "dependencies": { "balanced-match": "^4.0.2" } }, "sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ=="], + + "browser-stdout": ["browser-stdout@1.3.1", "", {}, "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw=="], + + "buffer-crc32": ["buffer-crc32@0.2.13", "", {}, "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ=="], + + "buffer-equal-constant-time": ["buffer-equal-constant-time@1.0.1", "", {}, "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA=="], + + "bundle-name": ["bundle-name@4.1.1", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA=="], + + "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="], + + "call-bound": ["call-bound@1.0.4", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="], + + "chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="], + + "chokidar": ["chokidar@5.0.0", "", { "dependencies": { "readdirp": "^5.0.0" } }, "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw=="], + + "cli-cursor": ["cli-cursor@5.0.0", "", { "dependencies": { "restore-cursor": "^5.0.0" } }, "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw=="], + + "cli-spinners": ["cli-spinners@2.9.2", "", {}, "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg=="], + + "cockatiel": ["cockatiel@3.2.1", "", {}, "sha512-gfrHV6ZPkquExvMh9IOkKsBzNDk6sDuZ6DdBGUBkvFnTCqCxzpuq48RySgP0AnaqQkw2zynOFj9yly6T1Q2G5Q=="], + + "commander": ["commander@12.1.0", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="], + + "core-util-is": ["core-util-is@1.0.3", "", {}, "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="], + + "debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" }, "peerDependencies": { "supports-color": "*" }, "optionalPeers": ["supports-color"] }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], + + "default-browser": ["default-browser@5.5.1", "", { "dependencies": { "bundle-name": "^4.1.0", "default-browser-id": "^5.0.0" } }, "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw=="], + + "default-browser-id": ["default-browser-id@5.0.1", "", {}, "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q=="], + + "define-lazy-prop": ["define-lazy-prop@3.0.0", "", {}, "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg=="], + + "diff": ["diff@9.0.0", "", {}, "sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw=="], + + "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], + + "ecdsa-sig-formatter": ["ecdsa-sig-formatter@1.0.11", "", { "dependencies": { "safe-buffer": "^5.0.1" } }, "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ=="], + + "editions": ["editions@6.22.0", "", { "dependencies": { "version-range": "^4.15.0" } }, "sha512-UgGlf8IW75je7HZjNDpJdCv4cGJWIi6yumFdZ0R7A8/CIhQiWUjyGLCxdHpd8bmyD1gnkfUNK0oeOXqUS2cpfQ=="], + + "emoji-regex": ["emoji-regex@10.6.0", "", {}, "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A=="], + + "entities": ["entities@9.0.0", "", {}, "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg=="], + + "es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="], + + "es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="], + + "es-object-atoms": ["es-object-atoms@1.1.2", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw=="], + + "fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="], + + "find-up-simple": ["find-up-simple@1.0.1", "", {}, "sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ=="], + + "function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="], + + "get-east-asian-width": ["get-east-asian-width@1.7.0", "", {}, "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q=="], + + "get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="], + + "get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="], + + "glob": ["glob@14.0.5", "", { "dependencies": { "minimatch": "^11.0.5", "minipass": "^7.1.3", "path-scurry": "^3.0.0" } }, "sha512-nbKW5Sl53DEM5PkmZ5Jwfeyss1ohuqcgOBjOarSjz1fp8W4ss4EOOvKADQRbApD6JmVBX+HkpZYfBez4wXbeQQ=="], + + "gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="], + + "graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="], + + "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], + + "has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="], + + "hasown": ["hasown@2.0.4", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A=="], + + "hosted-git-info": ["hosted-git-info@4.1.0", "", { "dependencies": { "lru-cache": "^6.0.0" } }, "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA=="], + + "http-proxy-agent": ["http-proxy-agent@7.0.2", "", { "dependencies": { "agent-base": "^7.1.0", "debug": "^4.3.4" } }, "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig=="], + + "https-proxy-agent": ["https-proxy-agent@7.0.6", "", { "dependencies": { "agent-base": "^7.1.2", "debug": "4" } }, "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw=="], + + "ignore": ["ignore@7.0.14", "", {}, "sha512-wCBiZ77u1tuWde6G/nfOtLaCTYcFDU5yCzARzK10y+rLhzYoL7a7yEemcopcc2Mzow7gZOIjnV2ym1NYmdiJOQ=="], + + "immediate": ["immediate@3.0.6", "", {}, "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ=="], + + "inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="], + + "is-docker": ["is-docker@3.0.0", "", { "bin": { "is-docker": "cli.js" } }, "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ=="], + + "is-in-ssh": ["is-in-ssh@1.0.0", "", {}, "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw=="], + + "is-inside-container": ["is-inside-container@1.0.0", "", { "dependencies": { "is-docker": "^3.0.0" }, "bin": { "is-inside-container": "cli.js" } }, "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA=="], + + "is-interactive": ["is-interactive@2.0.0", "", {}, "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ=="], + + "is-path-inside": ["is-path-inside@4.0.0", "", {}, "sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA=="], + + "is-unicode-supported": ["is-unicode-supported@0.1.0", "", {}, "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw=="], + + "is-wsl": ["is-wsl@3.1.1", "", { "dependencies": { "is-inside-container": "^1.0.0" } }, "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw=="], + + "isarray": ["isarray@1.0.0", "", {}, "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="], + + "istextorbinary": ["istextorbinary@9.5.0", "", { "dependencies": { "binaryextensions": "^6.11.0", "editions": "^6.21.0", "textextensions": "^6.11.0" } }, "sha512-5mbUj3SiZXCuRf9fT3ibzbSSEWiy63gFfksmGfdOzujPjW3k+z8WvIBxcJHBoQNlaZaiyB25deviif2+osLmLw=="], + + "js-yaml": ["js-yaml@5.5.0", "", { "dependencies": { "argparse": "^3.0.3" }, "bin": { "js-yaml": "bin/js-yaml.mjs" } }, "sha512-paNr4LFIFPjeeSmwNYdrb8FafLLG/Cr2Af3GjbsHJ5CxIjH4r0c2emlmRdAtpPAieP1gRVzk6buBbVP5gBMGAg=="], + + "jsonc-parser": ["jsonc-parser@3.3.1", "", {}, "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ=="], + + "jsonwebtoken": ["jsonwebtoken@9.0.3", "", { "dependencies": { "jws": "^4.0.1", "lodash.includes": "^4.3.0", "lodash.isboolean": "^3.0.3", "lodash.isinteger": "^4.0.4", "lodash.isnumber": "^3.0.3", "lodash.isplainobject": "^4.0.6", "lodash.isstring": "^4.0.1", "lodash.once": "^4.0.0", "ms": "^2.1.1", "semver": "^7.5.4" } }, "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g=="], + + "jszip": ["jszip@3.10.2", "", { "dependencies": { "lie": "~3.3.0", "pako": "~1.0.2", "readable-stream": "~2.3.6", "setimmediate": "^1.0.5" } }, "sha512-3l+rb15IOWtUhU0H5MFqES/T6Kh7abYwjosBey/vD6hDt8zoEffkSC5Ws5SGtgVw3gBx2NEbhTeSW1+kWkpyTQ=="], + + "jwa": ["jwa@2.0.1", "", { "dependencies": { "buffer-equal-constant-time": "^1.0.1", "ecdsa-sig-formatter": "1.0.11", "safe-buffer": "^5.0.1" } }, "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg=="], + + "jws": ["jws@4.0.1", "", { "dependencies": { "jwa": "^2.0.1", "safe-buffer": "^5.0.1" } }, "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA=="], + + "lie": ["lie@3.3.0", "", { "dependencies": { "immediate": "~3.0.5" } }, "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ=="], + + "lodash.includes": ["lodash.includes@4.3.0", "", {}, "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w=="], + + "lodash.isboolean": ["lodash.isboolean@3.0.3", "", {}, "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg=="], + + "lodash.isinteger": ["lodash.isinteger@4.0.4", "", {}, "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA=="], + + "lodash.isnumber": ["lodash.isnumber@3.0.3", "", {}, "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw=="], + + "lodash.isplainobject": ["lodash.isplainobject@4.0.6", "", {}, "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA=="], + + "lodash.isstring": ["lodash.isstring@4.0.1", "", {}, "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw=="], + + "lodash.once": ["lodash.once@4.1.1", "", {}, "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg=="], + + "log-symbols": ["log-symbols@6.0.0", "", { "dependencies": { "chalk": "^5.3.0", "is-unicode-supported": "^1.3.0" } }, "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw=="], + + "lru-cache": ["lru-cache@6.0.0", "", { "dependencies": { "yallist": "^4.0.0" } }, "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA=="], + + "marked": ["marked@18.2.0", "", { "bin": { "marked": "bin/marked.js" } }, "sha512-KaeL+tAbtvI930q7HE2PN5lYXYdT8EiSmxHlN6F3rsfb57wd5mp5W5TLazpdj4inTQBJdgjYwbs40W/0VUGU+Q=="], + + "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="], + + "mime": ["mime@1.6.0", "", { "bin": { "mime": "cli.js" } }, "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="], + + "mimic-function": ["mimic-function@5.0.1", "", {}, "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA=="], + + "minimatch": ["minimatch@11.0.8", "", { "dependencies": { "@isaacs/nonrecursive-glob-match": "^1.1.0", "brace-expansion": "^5.0.12" } }, "sha512-nFQuYSTVrGvysVBps5Ih+0BdnYFN/Cj3C816r6+p7yK+FHrVLGE4O4N9AFwykrlNlvM2HYt+Rad1Uiro6h88Ig=="], + + "minipass": ["minipass@7.1.3", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="], + + "mocha": ["mocha@12.0.3", "", { "dependencies": { "browser-stdout": "^1.3.1", "chokidar": "^5.0.0", "debug": "^4.3.5", "diff": "^9.0.0", "find-up-simple": "^1.0.1", "glob": "^13.0.0", "is-path-inside": "^4.0.0", "is-unicode-supported": "^0.1.0", "js-yaml": "^5.0.0", "minimatch": "^10.2.2", "ms": "^2.1.3", "picocolors": "^1.1.1", "serialize-javascript": "^7.1.1", "strip-json-comments": "^5.0.3", "supports-color": "^8.1.1", "workerpool": "^10.0.0" }, "bin": { "mocha": "bin/mocha.js" } }, "sha512-beammieDdiWdkjANWeWPpkxUROYGi5FN88fPOkLiticz7HTg3Y+Pho3EYE6SUdcuWnZ3h2WD8EXCA55JF4o6wg=="], + + "ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], + + "mute-stream": ["mute-stream@0.0.8", "", {}, "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA=="], + + "object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="], + + "onetime": ["onetime@7.0.0", "", { "dependencies": { "mimic-function": "^5.0.0" } }, "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ=="], + + "open": ["open@11.0.4", "", { "dependencies": { "default-browser": "^5.5.1", "define-lazy-prop": "^3.0.0", "is-in-ssh": "^1.0.0", "is-inside-container": "^1.0.0", "powershell-utils": "^0.2.1", "wsl-utils": "^1.0.0" } }, "sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg=="], + + "ora": ["ora@8.2.0", "", { "dependencies": { "chalk": "^5.3.0", "cli-cursor": "^5.0.0", "cli-spinners": "^2.9.2", "is-interactive": "^2.0.0", "is-unicode-supported": "^2.0.0", "log-symbols": "^6.0.0", "stdin-discarder": "^0.2.2", "string-width": "^7.2.0", "strip-ansi": "^7.1.0" } }, "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw=="], + + "pako": ["pako@1.0.11", "", {}, "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="], + + "parse5": ["parse5@8.1.1", "", { "dependencies": { "entities": "^9.0.0" } }, "sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w=="], + + "path-scurry": ["path-scurry@3.0.0", "", { "dependencies": { "lru-cache": "^11.0.0", "minipass": "^7.1.2" } }, "sha512-1pTbQqH1wIwMi/eleQ5leFTTCkzFsPcgXNjwOA8YGGW/W4/kHT3dssE7Z6NH+zuqNLOzOB0uaD61yl7cAcVhgg=="], + + "pend": ["pend@1.2.0", "", {}, "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg=="], + + "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], + + "picomatch": ["picomatch@4.0.7", "", {}, "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA=="], + + "powershell-utils": ["powershell-utils@0.2.1", "", {}, "sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A=="], + + "process-nextick-args": ["process-nextick-args@2.0.1", "", {}, "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="], + + "proper-lockfile": ["proper-lockfile@4.1.2", "", { "dependencies": { "graceful-fs": "^4.2.4", "retry": "^0.12.0", "signal-exit": "^3.0.2" } }, "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA=="], + + "proxy-agent-negotiate": ["proxy-agent-negotiate@1.1.0", "", { "peerDependencies": { "kerberos": "^2.0.0" }, "optionalPeers": ["kerberos"] }, "sha512-N8IBcM3UgCVzz2L2Lqv8DVntDnnC8/hiV4nEDUPkqq72TPUgYWjQc+bdZlBPZK9LzPAvOY//gAt0S0DApoOXWQ=="], + + "qs": ["qs@6.17.1", "", { "dependencies": { "es-define-property": "^1.0.1", "side-channel": "^1.1.1" } }, "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA=="], + + "read": ["read@1.0.7", "", { "dependencies": { "mute-stream": "~0.0.4" } }, "sha512-rSOKNYUmaxy0om1BNjMN4ezNT6VKK+2xF4GBhc81mkH7L60i6dp8qPYrkndNLT3QPphoII3maL9PVC9XmhHwVQ=="], + + "readable-stream": ["readable-stream@2.3.8", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="], + + "readdirp": ["readdirp@5.1.1", "", {}, "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA=="], + + "restore-cursor": ["restore-cursor@5.1.0", "", { "dependencies": { "onetime": "^7.0.0", "signal-exit": "^4.1.0" } }, "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA=="], + + "retry": ["retry@0.12.0", "", {}, "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow=="], + + "run-applescript": ["run-applescript@7.1.0", "", {}, "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q=="], + + "safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="], + + "sax": ["sax@1.6.1", "", {}, "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q=="], + + "semver": ["semver@7.8.6", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw=="], + + "serialize-javascript": ["serialize-javascript@7.1.4", "", {}, "sha512-FqlEuoTq/zRmA4Lg6aOqyH3lCHbUtCB0bmHCeFniX2GBdDqMJM3FwdvEhlE5Pim1dlt2FfBdVPmUNNiGhhKqpw=="], + + "setimmediate": ["setimmediate@1.0.5", "", {}, "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA=="], + + "side-channel": ["side-channel@1.1.1", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.4", "side-channel-list": "^1.0.1", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" } }, "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ=="], + + "side-channel-list": ["side-channel-list@1.0.1", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.4" } }, "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w=="], + + "side-channel-map": ["side-channel-map@1.0.1", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3" } }, "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA=="], + + "side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="], + + "signal-exit": ["signal-exit@3.0.7", "", {}, "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="], + + "stdin-discarder": ["stdin-discarder@0.2.2", "", {}, "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ=="], + + "string-width": ["string-width@7.2.0", "", { "dependencies": { "emoji-regex": "^10.3.0", "get-east-asian-width": "^1.0.0", "strip-ansi": "^7.1.0" } }, "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ=="], + + "string_decoder": ["string_decoder@1.1.1", "", { "dependencies": { "safe-buffer": "~5.1.0" } }, "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="], + + "strip-ansi": ["strip-ansi@7.2.0", "", { "dependencies": { "ansi-regex": "^6.2.2" } }, "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w=="], + + "strip-json-comments": ["strip-json-comments@5.0.3", "", {}, "sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw=="], + + "structured-source": ["structured-source@4.0.0", "", { "dependencies": { "boundary": "^2.0.0" } }, "sha512-qGzRFNJDjFieQkl/sVOI2dUjHKRyL9dAJi2gCPGJLbJHBIkyOHxjuocpIEfbLioX+qSJpvbYdT49/YCdMznKxA=="], + + "supports-color": ["supports-color@8.1.1", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q=="], + + "textextensions": ["textextensions@6.11.0", "", { "dependencies": { "editions": "^6.21.0" } }, "sha512-tXJwSr9355kFJI3lbCkPpUH5cP8/M0GGy2xLO34aZCjMXBaK3SoPnZwr/oWmo1FdCnELcs4npdCIOFtq9W3ruQ=="], + + "tinyglobby": ["tinyglobby@0.2.17", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.4" } }, "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g=="], + + "tslib": ["tslib@2.9.1", "", {}, "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA=="], + + "tunnel": ["tunnel@0.0.6", "", {}, "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg=="], + + "typed-rest-client": ["typed-rest-client@1.8.11", "", { "dependencies": { "qs": "^6.9.1", "tunnel": "0.0.6", "underscore": "^1.12.1" } }, "sha512-5UvfMpd1oelmUPRbbaVnq+rHP7ng2cE4qoQkQeAqxRL6PklkxsM0g32/HL0yfvruK6ojQ5x8EE+HF4YV6DtuCA=="], + + "typescript": ["typescript@7.0.2", "", { "optionalDependencies": { "@typescript/typescript-aix-ppc64": "7.0.2", "@typescript/typescript-darwin-arm64": "7.0.2", "@typescript/typescript-darwin-x64": "7.0.2", "@typescript/typescript-freebsd-arm64": "7.0.2", "@typescript/typescript-freebsd-x64": "7.0.2", "@typescript/typescript-linux-arm": "7.0.2", "@typescript/typescript-linux-arm64": "7.0.2", "@typescript/typescript-linux-loong64": "7.0.2", "@typescript/typescript-linux-mips64el": "7.0.2", "@typescript/typescript-linux-ppc64": "7.0.2", "@typescript/typescript-linux-riscv64": "7.0.2", "@typescript/typescript-linux-s390x": "7.0.2", "@typescript/typescript-linux-x64": "7.0.2", "@typescript/typescript-netbsd-arm64": "7.0.2", "@typescript/typescript-netbsd-x64": "7.0.2", "@typescript/typescript-openbsd-arm64": "7.0.2", "@typescript/typescript-openbsd-x64": "7.0.2", "@typescript/typescript-sunos-x64": "7.0.2", "@typescript/typescript-win32-arm64": "7.0.2", "@typescript/typescript-win32-x64": "7.0.2" }, "bin": { "tsc": "bin/tsc" } }, "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA=="], + + "underscore": ["underscore@1.13.8", "", {}, "sha512-DXtD3ZtEQzc7M8m4cXotyHR+FAS18C64asBYY5vqZexfYryNNnDc02W4hKg3rdQuqOYas1jkseX0+nZXjTXnvQ=="], + + "undici-types": ["undici-types@8.9.0", "", {}, "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg=="], + + "url-join": ["url-join@4.0.1", "", {}, "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA=="], + + "util-deprecate": ["util-deprecate@1.0.2", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="], + + "version-range": ["version-range@4.15.0", "", {}, "sha512-Ck0EJbAGxHwprkzFO966t4/5QkRuzh+/I1RxhLgUKKwEn+Cd8NwM60mE3AqBZg5gYODoXW0EFsQvbZjRlvdqbg=="], + + "workerpool": ["workerpool@10.0.3", "", {}, "sha512-6z2Iis68Wqth93/G/wJP9u+R3O+d2XTlgWChGCwuT1qLbBsOYueGRZuJ++v3mtDP5KjYdy+WzvWC+VWETSVXJA=="], + + "wsl-utils": ["wsl-utils@1.0.1", "", { "dependencies": { "is-wsl": "^3.1.0", "powershell-utils": "^0.2.0" } }, "sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ=="], + + "xml2js": ["xml2js@0.5.0", "", { "dependencies": { "sax": ">=0.6.0", "xmlbuilder": "~11.0.0" } }, "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA=="], + + "xmlbuilder": ["xmlbuilder@11.0.1", "", {}, "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA=="], + + "yallist": ["yallist@4.0.0", "", {}, "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="], + + "yauzl": ["yauzl@3.4.0", "", { "dependencies": { "pend": "~1.2.0" } }, "sha512-jIH9yLR9wqr0wOS0TpBvo/g/2UgZH5qePVbjgRliiF0BYvOZyaBknKsF+x9Iht0O6sqgnB93rCICdOZFecJuDw=="], + + "yazl": ["yazl@2.5.1", "", { "dependencies": { "buffer-crc32": "~0.2.3" } }, "sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw=="], + + "@typespec/ts-http-runtime/http-proxy-agent": ["http-proxy-agent@9.1.0", "", { "dependencies": { "agent-base": "9.0.0", "debug": "^4.3.4", "proxy-agent-negotiate": "1.1.0" } }, "sha512-2NxoveTT58mjYT4n3RPTEfCZGLMbidoO8XEieXfpSYxu+PQJ1qpx4ypwH6N+uF9twBPIvRRgvkvW5HUTYWENig=="], + + "@typespec/ts-http-runtime/https-proxy-agent": ["https-proxy-agent@9.1.0", "", { "dependencies": { "agent-base": "9.0.0", "debug": "^4.3.4", "proxy-agent-negotiate": "1.1.0" } }, "sha512-ag87y7cJJ9/3+GxFr8Oy4O5faDsGRGnBGsJj/YjOSsSx/5eadKLYTMPlzuR6obgoCDDm0abAAZitXXQkMOPSpA=="], + + "log-symbols/is-unicode-supported": ["is-unicode-supported@1.3.0", "", {}, "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ=="], + + "ora/is-unicode-supported": ["is-unicode-supported@2.1.0", "", {}, "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ=="], + + "path-scurry/lru-cache": ["lru-cache@11.5.3", "", {}, "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg=="], + + "restore-cursor/signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="], + + "@typespec/ts-http-runtime/http-proxy-agent/agent-base": ["agent-base@9.0.0", "", {}, "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA=="], + + "@typespec/ts-http-runtime/https-proxy-agent/agent-base": ["agent-base@9.0.0", "", {}, "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA=="], + } +} diff --git a/docs/api-reference.md b/docs/api-reference.md index 5e83d7c..fdcbcc7 100644 --- a/docs/api-reference.md +++ b/docs/api-reference.md @@ -20,4 +20,4 @@ CodebaseMD does not expose a stable external programmatic API. Its production mo The original command IDs remain `codebaseMD.exportAll`, `codebaseMD.exportSelected`, `codebaseMD.exportMicro` and `codebaseMD.exportMicroSelected`. New commands are `codebaseMD.exportWizard`, `codebaseMD.exportGitChanges` and `codebaseMD.copyCurrentFile`. Selected commands accept a resource URI and an optional array of selected URIs. -Run `npm test` for production module tests and `npm run test:integration` for extension-host command checks. Build outputs belong in `out/`. +Run `bun run test` for production module tests and `bun run test:integration` for extension-host command checks. Build outputs belong in `out/`. diff --git a/docs/changelog.md b/docs/changelog.md index f073826..dd154aa 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- Minimum supported VS Code is now 1.146 (previously 1.70). +- Development tooling: TypeScript 7, Bun for installs and scripts (`bun.lock` replaces `package-lock.json`), and Biome for linting and formatting. +- Dependency updates, including `ignore` 7. + ## [3.0.0] - 2026-09-18 ### Added diff --git a/docs/contributing.md b/docs/contributing.md index 0dd477e..4cbe0f5 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -2,6 +2,6 @@ See the [repository contribution guide](../CONTRIBUTING.md) for setup, testing, and pull request guidance. -Development requires Node.js 22.12+ (Node 24 recommended) and Git. Run `npm ci`, `npm test`, `npm run test:integration`, and `npm run package`. There is no separate lint command. On headless Linux, run integration tests with `xvfb-run -a`. +Development requires Bun 1.4+, Node.js 22.12+ (Node 24 recommended) and Git. Run `bun install --frozen-lockfile`, `bun run lint`, `bun run test`, `bun run test:integration`, and `bun run package`. `bun run lint:fix` applies Biome formatting and safe lint fixes. On headless Linux, run integration tests with `xvfb-run -a`. Production modules are described in the [developer reference](api-reference.md). Add regression tests that import the actual module being changed. Keep generated JavaScript in `out/` and do not commit VSIX files. diff --git a/docs/installation.md b/docs/installation.md index 1e27271..d9218ef 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -2,7 +2,7 @@ There are two ways to install the CodebaseMD extension for Visual Studio Code: -For v3.0.0, install the VSIX from GitHub Releases. Marketplace publishing is separate and its version may differ. The extension supports VS Code 1.70+ and local filesystem workspaces. +For v3.0.0, install the VSIX from GitHub Releases. Marketplace publishing is separate and its version may differ. The extension supports VS Code 1.146+ and local filesystem workspaces. ## 1. From Visual Studio Marketplace diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 1af95ee..76d31e9 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -2,7 +2,7 @@ ## Commands are missing -Confirm the extension is enabled, reload VS Code, and search for **CodebaseMD: Export Wizard**. The v3 GitHub VSIX may be newer than the Marketplace version. VS Code 1.70 or later is required. +Confirm the extension is enabled, reload VS Code, and search for **CodebaseMD: Export Wizard**. The v3 GitHub VSIX may be newer than the Marketplace version. VS Code 1.146 or later is required. ## No files to export diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index f128f17..0000000 --- a/package-lock.json +++ /dev/null @@ -1,2555 +0,0 @@ -{ - "name": "codebase-md", - "version": "3.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "codebase-md", - "version": "3.0.0", - "license": "MIT", - "dependencies": { - "ignore": "^7.0.9" - }, - "devDependencies": { - "@types/mocha": "^10.0.10", - "@types/node": "^16.18.11", - "@types/vscode": "^1.70.0", - "@vscode/test-electron": "^3.1.0", - "@vscode/vsce": "^4.0.0", - "mocha": "^12.0.2", - "typescript": "^4.8.4" - }, - "engines": { - "node": ">=22.12.0", - "vscode": "^1.70.0" - } - }, - "node_modules/@azure/abort-controller": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.2.0.tgz", - "integrity": "sha512-fNAjWnA/nZ2jz31kxR/AqRaUT8ewHBw/WuBIosK0moMy1C9e5ValbDfFdIxJzVOOYaYkV/b2F1S4H/aHiqfVQg==", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@azure/core-auth": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.11.0.tgz", - "integrity": "sha512-IUZydyTUkDnYdstOW9pFOOUQlBjAepK5teihDE3x6yxsPJs/hsAaaYpeGxdxrgtOiJbBKSjKW7MDk7AEhb4LRg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.1.2", - "@azure/core-util": "^1.13.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@azure/core-client": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/@azure/core-client/-/core-client-1.11.1.tgz", - "integrity": "sha512-2QygG2F76ZpMP2eMztiJvAiFMu71M9rDeU7vO/QKg5Css7MgM4frUOslFjhVjRhbGaCNPtz/S8M6y46/fFKVuQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.1.2", - "@azure/core-auth": "^1.10.0", - "@azure/core-rest-pipeline": "^1.22.0", - "@azure/core-tracing": "^1.3.0", - "@azure/core-util": "^1.13.0", - "@azure/logger": "^1.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@azure/core-process": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@azure/core-process/-/core-process-1.0.0.tgz", - "integrity": "sha512-/shnJ+ooO8WPxDhPEeI/2oRQuubn16gZ6CvlbpWbEswZfzwI9tI/sMAHmF3x1LuQ9yZYXfLW3TjzGMLEC5blKg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@azure/core-rest-pipeline": { - "version": "1.25.0", - "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.25.0.tgz", - "integrity": "sha512-bMs8ekJLjX8wPV+9IPBges1SLPyuDtE9g5gLDWOpxzKcoOFQnpLGkbcT1tdw3FaAmDS1gnPmMmJ6y/T5B96kIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.1.2", - "@azure/core-auth": "^1.10.0", - "@azure/core-tracing": "^1.3.0", - "@azure/core-util": "^1.13.0", - "@azure/logger": "^1.3.0", - "@typespec/ts-http-runtime": "^0.3.4", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@azure/core-tracing": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.4.0.tgz", - "integrity": "sha512-eGwxD0AtncrxeBM4tG8R55Pc3rdX1hNW2WibJAgYpCVA6E93mvvVH+LcssoVjOBrSKWS55yEIHsk0X8ctHmfOQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@azure/core-util": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.14.0.tgz", - "integrity": "sha512-9n2pWK61veAuN0V20t9lOuoV4CFMdyAZ1ygZzvBGk/pBBJRib/PjL9PLXa/aI2CcPpyHfqVsxxqLCYl6uZlfDw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.1.2", - "@typespec/ts-http-runtime": "^0.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@azure/identity": { - "version": "4.13.3", - "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-4.13.3.tgz", - "integrity": "sha512-zGQPtqvXPgSA8yfV2CkIQ1qirqk0p9AIVpC5uEkdXQYcKl07QHvyaGYRnZOk0AsQUmxNb4wfkcwY5di8Z5xa9A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@azure/abort-controller": "^2.0.0", - "@azure/core-auth": "^1.9.0", - "@azure/core-client": "^1.9.2", - "@azure/core-process": "^1.0.0", - "@azure/core-rest-pipeline": "^1.17.0", - "@azure/core-tracing": "^1.0.0", - "@azure/core-util": "^1.11.0", - "@azure/logger": "^1.0.0", - "@azure/msal-browser": "^5.5.0", - "@azure/msal-node": "^6.0.0", - "open": "^10.1.0", - "tslib": "^2.2.0" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@azure/logger": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.4.0.tgz", - "integrity": "sha512-rbAE25KUfjU/s3XHUdJgceoCP5dEOpMx85J04kF+QMdta73XkuG9JGHHinch+XIoKpBdqljin+KqURpJriSzLA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@typespec/ts-http-runtime": "^0.3.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@azure/msal-browser": { - "version": "5.22.0", - "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-5.22.0.tgz", - "integrity": "sha512-5kgu9xeEKgGc2JeidxAtU15NJTqiH/CMCRRQAJ4Rac56kB7KVg91vbNmn+z3RO1vNomPN69UvjKG9h1Pghx6dQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@azure/msal-common": "16.14.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@azure/msal-common": { - "version": "16.14.1", - "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-16.14.1.tgz", - "integrity": "sha512-Or6xhPNyi4zHW25158yxBoyxuCqNSPa5YBVqfF1J5Ks4MJWBo/USXdp05DQIPu1Zli00YZu6t0+h6KvHJealxQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@azure/msal-node": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-6.0.1.tgz", - "integrity": "sha512-ixSO1Y/kCVRthRs+hSx/5qkwaunX1/RAePhlMN0wIpIQ4WEZ6AREGGnGd1AP0qspHVsAwzWQKGubpjh50JyJIQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@azure/msal-common": "16.14.1", - "jsonwebtoken": "^9.0.0" - }, - "engines": { - "node": ">=20" - } - }, - "node_modules/@napi-rs/keyring": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring/-/keyring-1.3.0.tgz", - "integrity": "sha512-WrOw/bcXm0f9qHkumlT1QlArXSTWqaY9sunsDpOk+yCCorCKMxvWT/a3xko4EYHVdeZoh00yI2TydXn6eyICDA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Brooooooklyn" - }, - "optionalDependencies": { - "@napi-rs/keyring-darwin-arm64": "1.3.0", - "@napi-rs/keyring-darwin-x64": "1.3.0", - "@napi-rs/keyring-freebsd-x64": "1.3.0", - "@napi-rs/keyring-linux-arm-gnueabihf": "1.3.0", - "@napi-rs/keyring-linux-arm64-gnu": "1.3.0", - "@napi-rs/keyring-linux-arm64-musl": "1.3.0", - "@napi-rs/keyring-linux-riscv64-gnu": "1.3.0", - "@napi-rs/keyring-linux-x64-gnu": "1.3.0", - "@napi-rs/keyring-linux-x64-musl": "1.3.0", - "@napi-rs/keyring-win32-arm64-msvc": "1.3.0", - "@napi-rs/keyring-win32-ia32-msvc": "1.3.0", - "@napi-rs/keyring-win32-x64-msvc": "1.3.0" - } - }, - "node_modules/@napi-rs/keyring-darwin-arm64": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-darwin-arm64/-/keyring-darwin-arm64-1.3.0.tgz", - "integrity": "sha512-pl76hJvdYUBn6I24bXiOBMA9nbDapo3I5B+f3OorjDU4dUMSypXeKbOVehJe8fhgTiH24flMyTS3aAIy43xegQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@napi-rs/keyring-darwin-x64": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-darwin-x64/-/keyring-darwin-x64-1.3.0.tgz", - "integrity": "sha512-YcJtEV5LA3cvA4z3BurgxH5IhTsW1JfIvcAAcqcecwk06Si9F9NqkxbZVIfDwQ8oRHgaBmT3zZJnLAotCrVahw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@napi-rs/keyring-freebsd-x64": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-freebsd-x64/-/keyring-freebsd-x64-1.3.0.tgz", - "integrity": "sha512-vlLf31TGhfRAaxLDBhg8b89ss0HHD/lyNmL5F3UjSaz5CUXElsJmKYq9fqA/B+cZKUEUcLHHGhF0I/CqcFdaVw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@napi-rs/keyring-linux-arm-gnueabihf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-arm-gnueabihf/-/keyring-linux-arm-gnueabihf-1.3.0.tgz", - "integrity": "sha512-KiWdMMu/Inz/bHHIAGrnF7r54FZDYXuHO6UFF/rhIrshUsxbMG1Rl9lEymNtqqsVo927G0VYcb02FzWQ3iBQRQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@napi-rs/keyring-linux-arm64-gnu": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-arm64-gnu/-/keyring-linux-arm64-gnu-1.3.0.tgz", - "integrity": "sha512-eyKGpY40lm9Jvs1aD294XRH4y7+TlJM0YVAryZeXA6TX0mb4gMkxVXwSQv7MCwgah7raeUd0dKUb4BPAYIgcMg==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@napi-rs/keyring-linux-arm64-musl": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-arm64-musl/-/keyring-linux-arm64-musl-1.3.0.tgz", - "integrity": "sha512-iIK6JWHXAJqDrEyLY3TmswwloVyt2vj+04TZnew+uSJ9gnDO8EwRbp3/iw3LpWaXiDO7VomGO6y8I0Id8uBZSw==", - "cpu": [ - "arm64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@napi-rs/keyring-linux-riscv64-gnu": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-riscv64-gnu/-/keyring-linux-riscv64-gnu-1.3.0.tgz", - "integrity": "sha512-/PGqrwn6EwgtK6vccASSXJRfOSP4vN1F4ASsIQ+7MdrK6hNvAJ1FZPrIuD5gGGdxezo3F++To2Wq7DbuGIeuNQ==", - "cpu": [ - "riscv64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@napi-rs/keyring-linux-x64-gnu": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-x64-gnu/-/keyring-linux-x64-gnu-1.3.0.tgz", - "integrity": "sha512-2PDK1WKWTu9lBGq9VvNEkSlQD3O7YwVpmnyN2M3cy4v7NJ/8gDMd9GXv3G+FVXN13uhp4gnnPBS+ScefmEeD2A==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@napi-rs/keyring-linux-x64-musl": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-x64-musl/-/keyring-linux-x64-musl-1.3.0.tgz", - "integrity": "sha512-oJ2HkX8YUo46QBkn0pG+HuIKQNqr523q6vBobCn+P95s4C4K6/kLBqHY/1bg5J4ap31DzsznhnFKcfBNBsjCnw==", - "cpu": [ - "x64" - ], - "dev": true, - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@napi-rs/keyring-win32-arm64-msvc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-win32-arm64-msvc/-/keyring-win32-arm64-msvc-1.3.0.tgz", - "integrity": "sha512-tOd3c/uAaeoE4ycVlmAdSvygz0Zt3zdca6Y7gokBeIbaRDWpjDIUOpU3MvML59XAaqyuKGsVVu0F/DZb1lHPmw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@napi-rs/keyring-win32-ia32-msvc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-win32-ia32-msvc/-/keyring-win32-ia32-msvc-1.3.0.tgz", - "integrity": "sha512-sPSqeAFZMGqP1R++M2JTza7GQJJ/TpCo6JU6Vcd4jnebvOaEDs9b7eipakU1PJdSvhpC2yXMCNRk9gXfrhuwHQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@napi-rs/keyring-win32-x64-msvc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@napi-rs/keyring-win32-x64-msvc/-/keyring-win32-x64-msvc-1.3.0.tgz", - "integrity": "sha512-4DnCWXwDc0HRKwyRlG5y0VhKZW2tNRQfKKfyj6IX/KWfDNyq9hn4n+GL1auyDcOO/v8PwnhmYo2+rOOqCkvvOg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@secretlint/core": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/@secretlint/core/-/core-10.2.2.tgz", - "integrity": "sha512-6rdwBwLP9+TO3rRjMVW1tX+lQeo5gBbxl1I5F8nh8bgGtKwdlCMhMKsBWzWg1ostxx/tIG7OjZI0/BxsP8bUgw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@secretlint/profiler": "^10.2.2", - "@secretlint/types": "^10.2.2", - "debug": "^4.4.1", - "structured-source": "^4.0.0" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@secretlint/profiler": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/@secretlint/profiler/-/profiler-10.2.2.tgz", - "integrity": "sha512-qm9rWfkh/o8OvzMIfY8a5bCmgIniSpltbVlUVl983zDG1bUuQNd1/5lUEeWx5o/WJ99bXxS7yNI4/KIXfHexig==", - "dev": true, - "license": "MIT" - }, - "node_modules/@secretlint/secretlint-rule-no-dotenv": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/@secretlint/secretlint-rule-no-dotenv/-/secretlint-rule-no-dotenv-10.2.2.tgz", - "integrity": "sha512-KJRbIShA9DVc5Va3yArtJ6QDzGjg3PRa1uYp9As4RsyKtKSSZjI64jVca57FZ8gbuk4em0/0Jq+uy6485wxIdg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@secretlint/types": "^10.2.2" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@secretlint/secretlint-rule-preset-recommend": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/@secretlint/secretlint-rule-preset-recommend/-/secretlint-rule-preset-recommend-10.2.2.tgz", - "integrity": "sha512-K3jPqjva8bQndDKJqctnGfwuAxU2n9XNCPtbXVI5JvC7FnQiNg/yWlQPbMUlBXtBoBGFYp08A94m6fvtc9v+zA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@secretlint/source-creator": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/@secretlint/source-creator/-/source-creator-10.2.2.tgz", - "integrity": "sha512-h6I87xJfwfUTgQ7irWq7UTdq/Bm1RuQ/fYhA3dtTIAop5BwSFmZyrchph4WcoEvbN460BWKmk4RYSvPElIIvxw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@secretlint/types": "^10.2.2", - "istextorbinary": "^9.5.0" - }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@secretlint/types": { - "version": "10.2.2", - "resolved": "https://registry.npmjs.org/@secretlint/types/-/types-10.2.2.tgz", - "integrity": "sha512-Nqc90v4lWCXyakD6xNyNACBJNJ0tNCwj2WNk/7ivyacYHxiITVgmLUFXTBOeCdy79iz6HtN9Y31uw/jbLrdOAg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@types/mocha": { - "version": "10.0.10", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz", - "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "16.18.111", - "resolved": "https://registry.npmjs.org/@types/node/-/node-16.18.111.tgz", - "integrity": "sha512-U1l6itlxU+vrJ9KyowQLKV9X+UuQBRhBF9v/XkGhAGgNHHRWzyY7FfTYRXt3vYOXPrd8UGlbYFK5HdneKCwXPQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/vscode": { - "version": "1.93.0", - "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.93.0.tgz", - "integrity": "sha512-kUK6jAHSR5zY8ps42xuW89NLcBpw1kOabah7yv38J8MyiYuOHxLQBi0e7zeXbQgVefDy/mZZetqEFC+Fl5eIEQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@typespec/ts-http-runtime": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.9.tgz", - "integrity": "sha512-edSdeAqkdxBVzA1yL1LrLCml1YjyCVvPMtMqJpbF+6K609tHe8V6sQUzFQSGcYNhcuhOceZtjvN32+mpIth30A==", - "dev": true, - "license": "MIT", - "dependencies": { - "http-proxy-agent": "^7.0.0", - "https-proxy-agent": "^7.0.0", - "tslib": "^2.6.2" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@vscode/test-electron": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@vscode/test-electron/-/test-electron-3.1.0.tgz", - "integrity": "sha512-CRqv5u+YYoseuNVJ6Tyo4k0sF0mx4qnKMihRB0PjsUF8Dc0WKtCXo6CNL6nWWm5esfFQsQA/pejMj4ZbpJVLTw==", - "dev": true, - "license": "MIT", - "dependencies": { - "http-proxy-agent": "^7.0.2", - "https-proxy-agent": "^7.0.5", - "jszip": "^3.10.1", - "ora": "^8.1.0", - "semver": "^7.6.2" - }, - "engines": { - "node": ">=22" - } - }, - "node_modules/@vscode/vsce": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@vscode/vsce/-/vsce-4.0.0.tgz", - "integrity": "sha512-NImwuLaenMmb5D5Jer9/lzi/F9ZQUBOp8Azhj/BVYcTFgixv8KehFXqEUDjQlD2tAiw2E6dDGyjTuAB//di60A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@azure/identity": "^4.13.2", - "@napi-rs/keyring": "^1.3.0", - "@secretlint/core": "^10.2.2", - "@secretlint/secretlint-rule-no-dotenv": "^10.2.2", - "@secretlint/secretlint-rule-preset-recommend": "^10.2.2", - "@secretlint/source-creator": "^10.2.2", - "@secretlint/types": "^10.2.2", - "@vscode/vsce-sign": "^2.1.0", - "azure-devops-node-api": "^12.5.0", - "cockatiel": "^3.2.1", - "commander": "^12.1.0", - "hosted-git-info": "^4.1.0", - "jsonc-parser": "^3.3.1", - "marked": "^18.0.11", - "mime": "^1.6.0", - "minimatch": "^10.2.6", - "parse5": "^8.0.1", - "proper-lockfile": "^4.1.2", - "read": "^1.0.7", - "semver": "^7.8.5", - "tinyglobby": "^0.2.17", - "typed-rest-client": "^1.8.11", - "url-join": "^4.0.1", - "xml2js": "^0.5.0", - "yauzl": "^3.4.0", - "yazl": "^2.5.1" - }, - "bin": { - "vsce": "vsce" - }, - "engines": { - "node": ">= 22" - } - }, - "node_modules/@vscode/vsce-sign": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@vscode/vsce-sign/-/vsce-sign-2.1.0.tgz", - "integrity": "sha512-9AQrqazrBgTgRSuwleLVXUrIUphY02/SFCh2TKYoLV/xifJAdblhdmEmw5gUrYSPQ3sRwNs9iyCMD14sATEE6g==", - "dev": true, - "hasInstallScript": true, - "license": "SEE LICENSE IN LICENSE.txt", - "optionalDependencies": { - "@vscode/vsce-sign-alpine-arm64": "2.0.6", - "@vscode/vsce-sign-alpine-x64": "2.0.6", - "@vscode/vsce-sign-darwin-arm64": "2.0.6", - "@vscode/vsce-sign-darwin-x64": "2.0.6", - "@vscode/vsce-sign-linux-arm": "2.0.6", - "@vscode/vsce-sign-linux-arm64": "2.0.6", - "@vscode/vsce-sign-linux-x64": "2.0.6", - "@vscode/vsce-sign-win32-arm64": "2.0.6", - "@vscode/vsce-sign-win32-x64": "2.0.6" - } - }, - "node_modules/@vscode/vsce-sign-alpine-arm64": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-alpine-arm64/-/vsce-sign-alpine-arm64-2.0.6.tgz", - "integrity": "sha512-wKkJBsvKF+f0GfsUuGT0tSW0kZL87QggEiqNqK6/8hvqsXvpx8OsTEc3mnE1kejkh5r+qUyQ7PtF8jZYN0mo8Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "SEE LICENSE IN LICENSE.txt", - "optional": true, - "os": [ - "alpine" - ] - }, - "node_modules/@vscode/vsce-sign-alpine-x64": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-alpine-x64/-/vsce-sign-alpine-x64-2.0.6.tgz", - "integrity": "sha512-YoAGlmdK39vKi9jA18i4ufBbd95OqGJxRvF3n6ZbCyziwy3O+JgOpIUPxv5tjeO6gQfx29qBivQ8ZZTUF2Ba0w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "SEE LICENSE IN LICENSE.txt", - "optional": true, - "os": [ - "alpine" - ] - }, - "node_modules/@vscode/vsce-sign-darwin-arm64": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-darwin-arm64/-/vsce-sign-darwin-arm64-2.0.6.tgz", - "integrity": "sha512-5HMHaJRIQuozm/XQIiJiA0W9uhdblwwl2ZNDSSAeXGO9YhB9MH5C4KIHOmvyjUnKy4UCuiP43VKpIxW1VWP4tQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "SEE LICENSE IN LICENSE.txt", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@vscode/vsce-sign-darwin-x64": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-darwin-x64/-/vsce-sign-darwin-x64-2.0.6.tgz", - "integrity": "sha512-25GsUbTAiNfHSuRItoQafXOIpxlYj+IXb4/qarrXu7kmbH94jlm5sdWSCKrrREs8+GsXF1b+l3OB7VJy5jsykw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "SEE LICENSE IN LICENSE.txt", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@vscode/vsce-sign-linux-arm": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-linux-arm/-/vsce-sign-linux-arm-2.0.6.tgz", - "integrity": "sha512-UndEc2Xlq4HsuMPnwu7420uqceXjs4yb5W8E2/UkaHBB9OWCwMd3/bRe/1eLe3D8kPpxzcaeTyXiK3RdzS/1CA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "SEE LICENSE IN LICENSE.txt", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@vscode/vsce-sign-linux-arm64": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-linux-arm64/-/vsce-sign-linux-arm64-2.0.6.tgz", - "integrity": "sha512-cfb1qK7lygtMa4NUl2582nP7aliLYuDEVpAbXJMkDq1qE+olIw/es+C8j1LJwvcRq1I2yWGtSn3EkDp9Dq5FdA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "SEE LICENSE IN LICENSE.txt", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@vscode/vsce-sign-linux-x64": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-linux-x64/-/vsce-sign-linux-x64-2.0.6.tgz", - "integrity": "sha512-/olerl1A4sOqdP+hjvJ1sbQjKN07Y3DVnxO4gnbn/ahtQvFrdhUi0G1VsZXDNjfqmXw57DmPi5ASnj/8PGZhAA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "SEE LICENSE IN LICENSE.txt", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@vscode/vsce-sign-win32-arm64": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-win32-arm64/-/vsce-sign-win32-arm64-2.0.6.tgz", - "integrity": "sha512-ivM/MiGIY0PJNZBoGtlRBM/xDpwbdlCWomUWuLmIxbi1Cxe/1nooYrEQoaHD8ojVRgzdQEUzMsRbyF5cJJgYOg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "SEE LICENSE IN LICENSE.txt", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@vscode/vsce-sign-win32-x64": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-win32-x64/-/vsce-sign-win32-x64-2.0.6.tgz", - "integrity": "sha512-mgth9Kvze+u8CruYMmhHw6Zgy3GRX2S+Ed5oSokDEK5vPEwGGKnmuXua9tmFhomeAnhgJnL4DCna3TiNuGrBTQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "SEE LICENSE IN LICENSE.txt", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/agent-base": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", - "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, - "node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true, - "license": "Python-2.0" - }, - "node_modules/azure-devops-node-api": { - "version": "12.5.0", - "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-12.5.0.tgz", - "integrity": "sha512-R5eFskGvOm3U/GzeAuxRkUsAl0hrAwGgWn6zAd2KrZmrEhWZVqLew4OOupbQlXUuojUzpGtq62SmdhJ06N88og==", - "dev": true, - "license": "MIT", - "dependencies": { - "tunnel": "0.0.6", - "typed-rest-client": "^1.8.4" - } - }, - "node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/binaryextensions": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/binaryextensions/-/binaryextensions-6.11.0.tgz", - "integrity": "sha512-sXnYK/Ij80TO3lcqZVV2YgfKN5QjUWIRk/XSm2J/4bd/lPko3lvk0O4ZppH6m+6hB2/GTu+ptNwVFe1xh+QLQw==", - "dev": true, - "license": "Artistic-2.0", - "dependencies": { - "editions": "^6.21.0" - }, - "engines": { - "node": ">=4" - }, - "funding": { - "url": "https://bevry.me/fund" - } - }, - "node_modules/boundary": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/boundary/-/boundary-2.0.0.tgz", - "integrity": "sha512-rJKn5ooC9u8q13IMCrW0RSp31pxBCHE3y9V/tp3TdWSLf8Em3p6Di4NBpfzbJge9YjjFEsD0RtFEjtvHL5VyEA==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/brace-expansion": { - "version": "5.0.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", - "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" - }, - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true, - "license": "ISC" - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/buffer-equal-constant-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/bundle-name": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", - "integrity": "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "run-applescript": "^7.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/chokidar": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", - "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", - "dev": true, - "license": "MIT", - "dependencies": { - "readdirp": "^5.0.0" - }, - "engines": { - "node": ">= 20.19.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/cli-cursor": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz", - "integrity": "sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==", - "dev": true, - "license": "MIT", - "dependencies": { - "restore-cursor": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cli-spinners": { - "version": "2.9.2", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", - "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/cockatiel": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/cockatiel/-/cockatiel-3.2.1.tgz", - "integrity": "sha512-gfrHV6ZPkquExvMh9IOkKsBzNDk6sDuZ6DdBGUBkvFnTCqCxzpuq48RySgP0AnaqQkw2zynOFj9yly6T1Q2G5Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=16" - } - }, - "node_modules/commander": { - "version": "12.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz", - "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/default-browser": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.1.tgz", - "integrity": "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==", - "dev": true, - "license": "MIT", - "dependencies": { - "bundle-name": "^4.1.0", - "default-browser-id": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/default-browser-id": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", - "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/define-lazy-prop": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", - "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/diff": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-9.0.0.tgz", - "integrity": "sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/ecdsa-sig-formatter": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", - "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "safe-buffer": "^5.0.1" - } - }, - "node_modules/editions": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/editions/-/editions-6.22.0.tgz", - "integrity": "sha512-UgGlf8IW75je7HZjNDpJdCv4cGJWIi6yumFdZ0R7A8/CIhQiWUjyGLCxdHpd8bmyD1gnkfUNK0oeOXqUS2cpfQ==", - "dev": true, - "license": "Artistic-2.0", - "dependencies": { - "version-range": "^4.15.0" - }, - "engines": { - "ecmascript": ">= es5", - "node": ">=4" - }, - "funding": { - "url": "https://bevry.me/fund" - } - }, - "node_modules/emoji-regex": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", - "integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", - "dev": true, - "license": "MIT" - }, - "node_modules/entities": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-8.1.0.tgz", - "integrity": "sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==", - "dev": true, - "license": "BSD-2-Clause", - "engines": { - "node": ">=20.19.0" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", - "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/find-up-simple": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/find-up-simple/-/find-up-simple-1.0.1.tgz", - "integrity": "sha512-afd4O7zpqHeRyg4PfDQsXmlDe2PfdHtJt6Akt8jOWaApLOZk5JXs6VMR29lz03pRe9mpykrRCYIYxaJYcfpncQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-east-asian-width": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz", - "integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", - "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/hosted-git-info": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", - "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==", - "dev": true, - "license": "ISC", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/http-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", - "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.0", - "debug": "^4.3.4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/https-proxy-agent": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", - "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", - "dev": true, - "license": "MIT", - "dependencies": { - "agent-base": "^7.1.2", - "debug": "4" - }, - "engines": { - "node": ">= 14" - } - }, - "node_modules/ignore": { - "version": "7.0.9", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.9.tgz", - "integrity": "sha512-brTTsvFRt5C1gGHtPst/281UjPD5t9fBqbgoMPlVWy11ZLTPfu7HxK4ZYqO9H7o/yC9rSTCI85EaQ4OoY12qYw==", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/immediate": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", - "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/is-docker": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", - "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", - "dev": true, - "license": "MIT", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-inside-container": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", - "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-docker": "^3.0.0" - }, - "bin": { - "is-inside-container": "cli.js" - }, - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-interactive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz", - "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-path-inside": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-4.0.0.tgz", - "integrity": "sha512-lJJV/5dYS+RcL8uQdBDW9c9uWFLLBNRyFhnAKXw5tVqLlKZ4RMGZKv+YQ/IA3OhD+RpbJa1LLFM1FQPGyIXvOA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-wsl": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", - "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-inside-container": "^1.0.0" - }, - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/istextorbinary": { - "version": "9.5.0", - "resolved": "https://registry.npmjs.org/istextorbinary/-/istextorbinary-9.5.0.tgz", - "integrity": "sha512-5mbUj3SiZXCuRf9fT3ibzbSSEWiy63gFfksmGfdOzujPjW3k+z8WvIBxcJHBoQNlaZaiyB25deviif2+osLmLw==", - "dev": true, - "license": "Artistic-2.0", - "dependencies": { - "binaryextensions": "^6.11.0", - "editions": "^6.21.0", - "textextensions": "^6.11.0" - }, - "engines": { - "node": ">=4" - }, - "funding": { - "url": "https://bevry.me/fund" - } - }, - "node_modules/js-yaml": { - "version": "5.4.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-5.4.2.tgz", - "integrity": "sha512-m+aqu+LwO1O6sIopafj8HUVl5aawITwZQe/yHpMCKjaWBaA/d07B/QdMb3529REftiU+RMMHL3Vlsw3hON7vWg==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.mjs" - } - }, - "node_modules/jsonc-parser": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", - "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/jsonwebtoken": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz", - "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==", - "dev": true, - "license": "MIT", - "dependencies": { - "jws": "^4.0.1", - "lodash.includes": "^4.3.0", - "lodash.isboolean": "^3.0.3", - "lodash.isinteger": "^4.0.4", - "lodash.isnumber": "^3.0.3", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "lodash.once": "^4.0.0", - "ms": "^2.1.1", - "semver": "^7.5.4" - }, - "engines": { - "node": ">=12", - "npm": ">=6" - } - }, - "node_modules/jszip": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", - "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", - "dev": true, - "license": "(MIT OR GPL-3.0-or-later)", - "dependencies": { - "lie": "~3.3.0", - "pako": "~1.0.2", - "readable-stream": "~2.3.6", - "setimmediate": "^1.0.5" - } - }, - "node_modules/jszip/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dev": true, - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/jszip/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "license": "MIT" - }, - "node_modules/jszip/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/jwa": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", - "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-equal-constant-time": "^1.0.1", - "ecdsa-sig-formatter": "1.0.11", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/jws": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", - "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", - "dev": true, - "license": "MIT", - "dependencies": { - "jwa": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/lie": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", - "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "immediate": "~3.0.5" - } - }, - "node_modules/lodash.includes": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", - "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.isboolean": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", - "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.isinteger": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", - "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.isnumber": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", - "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.isstring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.once": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", - "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", - "dev": true, - "license": "MIT" - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/marked": { - "version": "18.0.13", - "resolved": "https://registry.npmjs.org/marked/-/marked-18.0.13.tgz", - "integrity": "sha512-xTxVzZsBFwunP6HDmtBkabUQEYArnP7/rMDGmPj9SlrKlQ4i8MdYVow+nJL0eOqwpUqhzBoTBRADGN6uYwPyOw==", - "dev": true, - "license": "MIT", - "bin": { - "marked": "bin/marked.js" - }, - "engines": { - "node": ">= 20" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, - "license": "MIT", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/mimic-function": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", - "integrity": "sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.8" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/minipass": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", - "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/mocha": { - "version": "12.0.2", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-12.0.2.tgz", - "integrity": "sha512-SjAulGHxlMJLCD1bhvJBAiYwYxglydRzA9PDQ5MALq1oLRMMtIhxSQJ0olCFgA7c9YbTdxC0KOV0wl8JEDYVhA==", - "dev": true, - "license": "MIT", - "dependencies": { - "browser-stdout": "^1.3.1", - "chokidar": "^5.0.0", - "debug": "^4.3.5", - "diff": "^9.0.0", - "find-up-simple": "^1.0.1", - "glob": "^13.0.0", - "is-path-inside": "^4.0.0", - "is-unicode-supported": "^0.1.0", - "js-yaml": "^5.0.0", - "minimatch": "^10.2.2", - "ms": "^2.1.3", - "picocolors": "^1.1.1", - "serialize-javascript": "^7.1.1", - "strip-json-comments": "^5.0.3", - "supports-color": "^8.1.1", - "workerpool": "^10.0.0" - }, - "bin": { - "mocha": "bin/mocha.js" - }, - "engines": { - "node": "^20.19.0 || >=22.12.0" - } - }, - "node_modules/mocha/node_modules/glob": { - "version": "13.0.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz", - "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "minimatch": "^10.2.2", - "minipass": "^7.1.3", - "path-scurry": "^2.0.2" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mocha/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/mocha/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, - "license": "MIT" - }, - "node_modules/mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", - "dev": true, - "license": "ISC" - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/onetime": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz", - "integrity": "sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-function": "^5.0.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/open": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/open/-/open-10.2.0.tgz", - "integrity": "sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA==", - "dev": true, - "license": "MIT", - "dependencies": { - "default-browser": "^5.2.1", - "define-lazy-prop": "^3.0.0", - "is-inside-container": "^1.0.0", - "wsl-utils": "^0.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ora": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/ora/-/ora-8.2.0.tgz", - "integrity": "sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^5.3.0", - "cli-cursor": "^5.0.0", - "cli-spinners": "^2.9.2", - "is-interactive": "^2.0.0", - "is-unicode-supported": "^2.0.0", - "log-symbols": "^6.0.0", - "stdin-discarder": "^0.2.2", - "string-width": "^7.2.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ora/node_modules/chalk": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.4.1.tgz", - "integrity": "sha512-zgVZuo2WcZgfUEmsn6eO3kINexW8RAE4maiQ8QNs8CtpPCSyMiYsULR3HQYkm3w8FIA3SberyMJMSldGsW+U3w==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/ora/node_modules/is-unicode-supported": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-2.1.0.tgz", - "integrity": "sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ora/node_modules/log-symbols": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-6.0.0.tgz", - "integrity": "sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^5.3.0", - "is-unicode-supported": "^1.3.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ora/node_modules/log-symbols/node_modules/is-unicode-supported": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", - "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pako": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", - "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", - "dev": true, - "license": "(MIT AND Zlib)" - }, - "node_modules/parse5": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz", - "integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==", - "dev": true, - "license": "MIT", - "dependencies": { - "entities": "^8.0.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/path-scurry": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", - "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^11.0.0", - "minipass": "^7.1.2" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "11.5.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.2.tgz", - "integrity": "sha512-4pfM1Ff0x50o0tQwb5ucw/RzNyD0/YJME6IVcStalZuMWxdt3sR3huStTtxz4PUmvZfRguvDejasvQ2kifR11g==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "dev": true, - "license": "MIT" - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", - "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true, - "license": "MIT" - }, - "node_modules/proper-lockfile": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz", - "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.4", - "retry": "^0.12.0", - "signal-exit": "^3.0.2" - } - }, - "node_modules/proper-lockfile/node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/qs": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.0.tgz", - "integrity": "sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "es-define-property": "^1.0.1", - "side-channel": "^1.1.1" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/read": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz", - "integrity": "sha512-rSOKNYUmaxy0om1BNjMN4ezNT6VKK+2xF4GBhc81mkH7L60i6dp8qPYrkndNLT3QPphoII3maL9PVC9XmhHwVQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "mute-stream": "~0.0.4" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/readdirp": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz", - "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 20.19.0" - }, - "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/restore-cursor": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-5.1.0.tgz", - "integrity": "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==", - "dev": true, - "license": "MIT", - "dependencies": { - "onetime": "^7.0.0", - "signal-exit": "^4.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/retry": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", - "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/run-applescript": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", - "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/sax": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz", - "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=11.0.0" - } - }, - "node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/serialize-javascript": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-7.1.1.tgz", - "integrity": "sha512-k3CMsaIvvdSwm8oLB4MXSl0wH2/cwlH7xGcnRd2DaeRmBkbzYmyT8j0tsX60DwD1eRwHTpNpH8ljKu9oUT1MeQ==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", - "dev": true, - "license": "MIT" - }, - "node_modules/side-channel": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", - "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4", - "side-channel-list": "^1.0.1", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", - "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/stdin-discarder": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz", - "integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-json-comments": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-5.0.3.tgz", - "integrity": "sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/structured-source": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/structured-source/-/structured-source-4.0.0.tgz", - "integrity": "sha512-qGzRFNJDjFieQkl/sVOI2dUjHKRyL9dAJi2gCPGJLbJHBIkyOHxjuocpIEfbLioX+qSJpvbYdT49/YCdMznKxA==", - "dev": true, - "license": "BSD-2-Clause", - "dependencies": { - "boundary": "^2.0.0" - } - }, - "node_modules/textextensions": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/textextensions/-/textextensions-6.11.0.tgz", - "integrity": "sha512-tXJwSr9355kFJI3lbCkPpUH5cP8/M0GGy2xLO34aZCjMXBaK3SoPnZwr/oWmo1FdCnELcs4npdCIOFtq9W3ruQ==", - "dev": true, - "license": "Artistic-2.0", - "dependencies": { - "editions": "^6.21.0" - }, - "engines": { - "node": ">=4" - }, - "funding": { - "url": "https://bevry.me/fund" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", - "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.4" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "dev": true, - "license": "0BSD" - }, - "node_modules/tunnel": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", - "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.6.11 <=0.7.0 || >=0.7.3" - } - }, - "node_modules/typed-rest-client": { - "version": "1.8.11", - "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.11.tgz", - "integrity": "sha512-5UvfMpd1oelmUPRbbaVnq+rHP7ng2cE4qoQkQeAqxRL6PklkxsM0g32/HL0yfvruK6ojQ5x8EE+HF4YV6DtuCA==", - "dev": true, - "license": "MIT", - "dependencies": { - "qs": "^6.9.1", - "tunnel": "0.0.6", - "underscore": "^1.12.1" - } - }, - "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/underscore": { - "version": "1.13.8", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.8.tgz", - "integrity": "sha512-DXtD3ZtEQzc7M8m4cXotyHR+FAS18C64asBYY5vqZexfYryNNnDc02W4hKg3rdQuqOYas1jkseX0+nZXjTXnvQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/url-join": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", - "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", - "dev": true, - "license": "MIT" - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true, - "license": "MIT" - }, - "node_modules/version-range": { - "version": "4.15.0", - "resolved": "https://registry.npmjs.org/version-range/-/version-range-4.15.0.tgz", - "integrity": "sha512-Ck0EJbAGxHwprkzFO966t4/5QkRuzh+/I1RxhLgUKKwEn+Cd8NwM60mE3AqBZg5gYODoXW0EFsQvbZjRlvdqbg==", - "dev": true, - "license": "Artistic-2.0", - "engines": { - "node": ">=4" - }, - "funding": { - "url": "https://bevry.me/fund" - } - }, - "node_modules/workerpool": { - "version": "10.0.3", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-10.0.3.tgz", - "integrity": "sha512-6z2Iis68Wqth93/G/wJP9u+R3O+d2XTlgWChGCwuT1qLbBsOYueGRZuJ++v3mtDP5KjYdy+WzvWC+VWETSVXJA==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/wsl-utils": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-0.1.0.tgz", - "integrity": "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-wsl": "^3.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/xml2js": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz", - "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "sax": ">=0.6.0", - "xmlbuilder": "~11.0.0" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/xmlbuilder": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz", - "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4.0" - } - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true, - "license": "ISC" - }, - "node_modules/yauzl": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-3.4.0.tgz", - "integrity": "sha512-jIH9yLR9wqr0wOS0TpBvo/g/2UgZH5qePVbjgRliiF0BYvOZyaBknKsF+x9Iht0O6sqgnB93rCICdOZFecJuDw==", - "dev": true, - "license": "MIT", - "dependencies": { - "pend": "~1.2.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yazl": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.5.1.tgz", - "integrity": "sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffer-crc32": "~0.2.3" - } - } - } -} diff --git a/package.json b/package.json index 0c4450b..1939102 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "version": "3.0.0", "publisher": "alpha912", "engines": { - "vscode": "^1.70.0", + "vscode": "^1.146.0", "node": ">=22.12.0" }, "categories": [ @@ -170,23 +170,26 @@ "compile": "tsc -p ./", "watch": "tsc -watch -p ./", "test-compile": "tsc -p ./", - "pretest": "npm run test-compile", + "pretest": "bun run test-compile", "test": "mocha --ui tdd --timeout 15000 \"out/test/unit/**/*.test.js\"", "package": "vsce package", "publish": "vsce publish", - "test:integration": "npm run compile && node ./out/test/runTest.js" + "test:integration": "bun run compile && node ./out/test/runTest.js", + "lint": "biome check .", + "lint:fix": "biome check --write ." }, "devDependencies": { + "@biomejs/biome": "^2.6.6", "@types/mocha": "^10.0.10", - "@types/node": "^16.18.11", - "@types/vscode": "^1.70.0", + "@types/node": "^26.6.6", + "@types/vscode": "^1.146.0", "@vscode/test-electron": "^3.1.0", - "@vscode/vsce": "^4.0.0", - "mocha": "^12.0.2", - "typescript": "^4.8.4" + "@vscode/vsce": "^4.1.0", + "mocha": "^12.0.3", + "typescript": "^7.0.2" }, "dependencies": { - "ignore": "^7.0.9" + "ignore": "^7.0.14" }, "capabilities": { "untrustedWorkspaces": { @@ -208,5 +211,9 @@ "context", "export", "llm" - ] + ], + "overrides": { + "minimatch": "^11.0.8", + "glob": "^14.0.5" + } } diff --git a/scripts/publish-release.cjs b/scripts/publish-release.cjs index ec21a41..98e981d 100644 --- a/scripts/publish-release.cjs +++ b/scripts/publish-release.cjs @@ -14,7 +14,19 @@ const notes = `releases/RELEASE-NOTES-${version}.md`; const digest = crypto.createHash('sha256').update(fs.readFileSync(asset)).digest('hex'); fs.accessSync(notes); fs.writeFileSync(checksum, `${digest} ${asset}\n`); -const gh = args => execFileSync('gh', args, { stdio: 'inherit' }); -gh(['release', 'create', tag, asset, checksum, '--draft', '--target', commit, - '--title', `CodebaseMD ${version}`, '--notes-file', notes]); +const gh = (args) => execFileSync('gh', args, { stdio: 'inherit' }); +gh([ + 'release', + 'create', + tag, + asset, + checksum, + '--draft', + '--target', + commit, + '--title', + `CodebaseMD ${version}`, + '--notes-file', + notes, +]); gh(['release', 'edit', tag, '--draft=false', '--latest']); diff --git a/src/analyzer.ts b/src/analyzer.ts index c210b97..0845083 100644 --- a/src/analyzer.ts +++ b/src/analyzer.ts @@ -1,4 +1,4 @@ -import * as path from 'path'; +import * as path from 'node:path'; export function condenseMicroCode(code: string, fileName: string, filePath: string): string { // Extract language based on file extension @@ -27,10 +27,10 @@ export function condenseMicroCode(code: string, fileName: string, filePath: stri // Add exports/public interface summary if (structure.exports && structure.exports.length > 0) { const exportCounts = { - classes: structure.exports.filter(e => e.type === 'class').length, - interfaces: structure.exports.filter(e => e.type === 'interface').length, - functions: structure.exports.filter(e => e.type === 'function').length, - variables: structure.exports.filter(e => e.type === 'variable').length + classes: structure.exports.filter((e) => e.type === 'class').length, + interfaces: structure.exports.filter((e) => e.type === 'interface').length, + functions: structure.exports.filter((e) => e.type === 'function').length, + variables: structure.exports.filter((e) => e.type === 'variable').length, }; condensed += `EXPORT [`; @@ -61,7 +61,7 @@ export function condenseMicroCode(code: string, fileName: string, filePath: stri } export function getLanguageFromExtension(ext: string): string { - const langMap: {[key: string]: string} = { + const langMap: { [key: string]: string } = { '.js': 'javascript', '.jsx': 'javascript', '.ts': 'typescript', @@ -83,13 +83,35 @@ export function getLanguageFromExtension(ext: string): string { '.swift': 'swift', '.kt': 'kotlin', '.dart': 'dart', - '.mjs': 'javascript', '.cjs': 'javascript', '.h': 'c', '.hpp': 'cpp', - '.xml': 'xml', '.yaml': 'yaml', '.yml': 'yaml', '.toml': 'toml', - '.sh': 'bash', '.ps1': 'powershell', '.bat': 'bat', '.sql': 'sql', - '.txt': 'text', '.ini': 'ini', '.lua': 'lua', '.r': 'r', '.pl': 'perl', - '.hs': 'haskell', '.erl': 'erlang', '.ex': 'elixir', '.exs': 'elixir', - '.el': 'lisp', '.jl': 'julia', '.scala': 'scala', '.vue': 'vue', - '.svelte': 'svelte', '.csv': 'csv', '.graphql': 'graphql', '.proto': 'protobuf' + '.mjs': 'javascript', + '.cjs': 'javascript', + '.h': 'c', + '.hpp': 'cpp', + '.xml': 'xml', + '.yaml': 'yaml', + '.yml': 'yaml', + '.toml': 'toml', + '.sh': 'bash', + '.ps1': 'powershell', + '.bat': 'bat', + '.sql': 'sql', + '.txt': 'text', + '.ini': 'ini', + '.lua': 'lua', + '.r': 'r', + '.pl': 'perl', + '.hs': 'haskell', + '.erl': 'erlang', + '.ex': 'elixir', + '.exs': 'elixir', + '.el': 'lisp', + '.jl': 'julia', + '.scala': 'scala', + '.vue': 'vue', + '.svelte': 'svelte', + '.csv': 'csv', + '.graphql': 'graphql', + '.proto': 'protobuf', }; return langMap[ext] || 'unknown'; @@ -97,19 +119,19 @@ export function getLanguageFromExtension(ext: string): string { // Add a helper function to get language for files without extensions export function getLanguageForSpecialFile(fileName: string): string { - const specialFileMap: {[key: string]: string} = { - 'Dockerfile': 'dockerfile', + const specialFileMap: { [key: string]: string } = { + Dockerfile: 'dockerfile', 'docker-compose': 'yaml', - 'Makefile': 'makefile', - 'Jenkinsfile': 'groovy', + Makefile: 'makefile', + Jenkinsfile: 'groovy', '.gitignore': 'gitignore', '.dockerignore': 'gitignore', '.env': 'dotenv', '.babelrc': 'json', '.eslintrc': 'json', '.prettierrc': 'json', - 'Vagrantfile': 'ruby', - 'Procfile': 'procfile' + Vagrantfile: 'ruby', + Procfile: 'procfile', }; return specialFileMap[fileName] || 'plaintext'; @@ -140,7 +162,7 @@ interface FileStructure { patterns: string[]; } -function extractFileMetadata(code: string, language: string, filePath: string): FileMetadata { +function extractFileMetadata(code: string, language: string, _filePath: string): FileMetadata { // Extract top comments for description const lines = code.split('\n'); let description = ''; @@ -149,20 +171,17 @@ function extractFileMetadata(code: string, language: string, filePath: string): // Simple extraction of imports/dependencies based on language if (language === 'javascript' || language === 'typescript') { const importRegex = /import\s+.*?from\s+['"](.+?)['"]/g; - let match; - while ((match = importRegex.exec(code)) !== null) { + for (const match of code.matchAll(importRegex)) { dependencies.push(match[1]); } } else if (language === 'python') { const importRegex = /(?:from|import)\s+([^\s]+)/g; - let match; - while ((match = importRegex.exec(code)) !== null) { + for (const match of code.matchAll(importRegex)) { dependencies.push(match[1]); } } else if (language === 'java') { const importRegex = /import\s+([^;]+);/g; - let match; - while ((match = importRegex.exec(code)) !== null) { + for (const match of code.matchAll(importRegex)) { dependencies.push(match[1]); } } @@ -183,11 +202,11 @@ function extractFileMetadata(code: string, language: string, filePath: string): return { description: description.substring(0, 100), // Limit description length - dependencies: dependencies.slice(0, 5) // Limit to most important dependencies + dependencies: dependencies.slice(0, 5), // Limit to most important dependencies }; } -function analyzeFileStructure(code: string, language: string): FileStructure { +function analyzeFileStructure(code: string, _language: string): FileStructure { // This is a simplified placeholder for what would be a complex AST parsing const components: Component[] = []; @@ -210,7 +229,7 @@ function analyzeFileStructure(code: string, language: string): FileStructure { name: interfaceName, visibility: isExported ? 'public' : 'private', description: `Interface ${interfaceName}`, - subComponents: [] + subComponents: [], }; components.push(component); @@ -224,12 +243,15 @@ function analyzeFileStructure(code: string, language: string): FileStructure { if (classMatch) { for (const match of classMatch) { const className = match.replace('class ', ''); - const isExported = code.includes(`export class ${className}`) || - code.includes(`export default class ${className}`); + const isExported = + code.includes(`export class ${className}`) || code.includes(`export default class ${className}`); // Check for class inheritance const extendsMatch = new RegExp(`class\\s+${className}\\s+extends\\s+(\\w+)`, 'g').exec(code); - const implementsMatch = new RegExp(`class\\s+${className}(?:\\s+extends\\s+\\w+)?\\s+implements\\s+([^{]+)`, 'g').exec(code); + const implementsMatch = new RegExp( + `class\\s+${className}(?:\\s+extends\\s+\\w+)?\\s+implements\\s+([^{]+)`, + 'g', + ).exec(code); const component: Component = { type: 'class', @@ -239,12 +261,12 @@ function analyzeFileStructure(code: string, language: string): FileStructure { subComponents: [], }; - if (extendsMatch && extendsMatch[1]) { + if (extendsMatch?.[1]) { component.extends = extendsMatch[1].trim(); } - if (implementsMatch && implementsMatch[1]) { - component.implementations = implementsMatch[1].split(',').map(impl => impl.trim()); + if (implementsMatch?.[1]) { + component.implementations = implementsMatch[1].split(',').map((impl) => impl.trim()); } // Detect class properties and methods more accurately @@ -268,12 +290,10 @@ function analyzeFileStructure(code: string, language: string): FileStructure { // Find properties (using a more precise approach) // Match class property declaration patterns like: // private tasks: Map; - const propertyRegex = /^\s*(private|public|protected)?\s+(readonly\s+)?(static\s+)?([a-zA-Z_][a-zA-Z0-9_]*)\s*:\s*([^;=\n]+)/gm; - let propertyMatch; - - while ((propertyMatch = propertyRegex.exec(classBody)) !== null) { + const propertyRegex = + /^\s*(private|public|protected)?\s+(readonly\s+)?(static\s+)?([a-zA-Z_][a-zA-Z0-9_]*)\s*:\s*([^;=\n]+)/gm; + for (const propertyMatch of classBody.matchAll(propertyRegex)) { const visibility = propertyMatch[1] || 'public'; - const isReadonly = !!propertyMatch[2]; const isStatic = !!propertyMatch[3]; const propertyName = propertyMatch[4]; const propertyType = propertyMatch[5]?.trim(); @@ -283,8 +303,11 @@ function analyzeFileStructure(code: string, language: string): FileStructure { const methodBracesBeforeMatch = classBody.substring(0, propertyMatch.index).match(/{/g); const methodBracesClosedBeforeMatch = classBody.substring(0, propertyMatch.index).match(/}/g); - if (methodBracesBeforeMatch && methodBracesClosedBeforeMatch && - methodBracesBeforeMatch.length > methodBracesClosedBeforeMatch.length) { + if ( + methodBracesBeforeMatch && + methodBracesClosedBeforeMatch && + methodBracesBeforeMatch.length > methodBracesClosedBeforeMatch.length + ) { continue; // Skip - this is inside a method body } @@ -293,17 +316,16 @@ function analyzeFileStructure(code: string, language: string): FileStructure { name: propertyName, visibility: visibility as 'public' | 'private' | 'protected', description: isStatic ? `Static property ${propertyName}` : `Property ${propertyName}`, - returnType: propertyType + returnType: propertyType, }); } // Find methods (using a more precise approach) // Match class method declaration patterns like: // public async createTask(name: string): Promise { - const methodRegex = /^\s*(private|public|protected)?\s+(static\s+)?(async\s+)?([a-zA-Z_][a-zA-Z0-9_]*)\s*\(\s*([^)]*)\s*\)(?:\s*:\s*([^{;]+))?/gm; - let methodMatch; - - while ((methodMatch = methodRegex.exec(classBody)) !== null) { + const methodRegex = + /^\s*(private|public|protected)?\s+(static\s+)?(async\s+)?([a-zA-Z_][a-zA-Z0-9_]*)\s*\(\s*([^)]*)\s*\)(?:\s*:\s*([^{;]+))?/gm; + for (const methodMatch of classBody.matchAll(methodRegex)) { const visibility = methodMatch[1] || 'public'; const isStatic = !!methodMatch[2]; const isAsync = !!methodMatch[3]; @@ -318,17 +340,21 @@ function analyzeFileStructure(code: string, language: string): FileStructure { const methodBracesBeforeMatch = classBody.substring(0, methodMatch.index).match(/{/g); const methodBracesClosedBeforeMatch = classBody.substring(0, methodMatch.index).match(/}/g); - if (methodBracesBeforeMatch && methodBracesClosedBeforeMatch && - methodBracesBeforeMatch.length > methodBracesClosedBeforeMatch.length) { + if ( + methodBracesBeforeMatch && + methodBracesClosedBeforeMatch && + methodBracesBeforeMatch.length > methodBracesClosedBeforeMatch.length + ) { continue; // Skip - this is inside a method body } - const paramsList = params.split(',') - .map(param => param.trim()) - .filter(param => param) // Remove empty strings - .map(param => { + const paramsList = params + .split(',') + .map((param) => param.trim()) + .filter((param) => param) // Remove empty strings + .map((param) => { // Extract parameter name and type if available - const [paramName, paramType] = param.split(':').map(p => p.trim()); + const [paramName, paramType] = param.split(':').map((p) => p.trim()); return paramType ? `${paramName}:${paramType}` : paramName; }); @@ -354,7 +380,7 @@ function analyzeFileStructure(code: string, language: string): FileStructure { visibility: visibility as 'public' | 'private' | 'protected', description: isStatic ? `Static method ${methodName}` : `Method ${methodName}`, parameters: paramsList.length > 0 ? paramsList : undefined, - returnType: returnType || undefined + returnType: returnType || undefined, }; // Detect flow patterns @@ -395,30 +421,34 @@ function analyzeFileStructure(code: string, language: string): FileStructure { if (functionMatch) { for (const match of functionMatch) { const functionName = match.replace('function ', ''); - const isExported = code.includes(`export function ${functionName}`) || - code.includes(`export default function ${functionName}`); + const isExported = + code.includes(`export function ${functionName}`) || code.includes(`export default function ${functionName}`); // Extract function details - const funcRegex = new RegExp(`(?:export\\s+)?(?:async\\s+)?function\\s+${functionName}\\s*\\(([^)]*)\\)(?:\\s*:\\s*([^{]+))?`, 'g'); + const funcRegex = new RegExp( + `(?:export\\s+)?(?:async\\s+)?function\\s+${functionName}\\s*\\(([^)]*)\\)(?:\\s*:\\s*([^{]+))?`, + 'g', + ); const funcMatch = funcRegex.exec(code); const component: Component = { type: 'function', name: functionName, visibility: isExported ? 'public' : 'private', - description: `Function ${functionName}` + description: `Function ${functionName}`, }; if (funcMatch) { // Extract parameters const params = funcMatch[1]; if (params) { - component.parameters = params.split(',') - .map(param => param.trim()) - .filter(param => param) // Remove empty strings - .map(param => { + component.parameters = params + .split(',') + .map((param) => param.trim()) + .filter((param) => param) // Remove empty strings + .map((param) => { // Extract parameter name and type if available - const [paramName, paramType] = param.split(':').map(p => p.trim()); + const [paramName, paramType] = param.split(':').map((p) => p.trim()); return paramType ? `${paramName}:${paramType}` : paramName; }); } @@ -449,7 +479,11 @@ function analyzeFileStructure(code: string, language: string): FileStructure { component.flows = ['conditional']; } else if (functionBody.includes('switch') && functionBody.includes('case')) { component.flows = ['switch-case']; - } else if (functionBody.includes('for') || functionBody.includes('while') || functionBody.includes('forEach')) { + } else if ( + functionBody.includes('for') || + functionBody.includes('while') || + functionBody.includes('forEach') + ) { component.flows = ['iteration']; } } @@ -463,7 +497,12 @@ function analyzeFileStructure(code: string, language: string): FileStructure { } // Detect common patterns (simplified) - if (code.includes('.subscribe(') || code.includes('addEventListener(') || code.includes('.on(') || code.includes('EventEmitter')) { + if ( + code.includes('.subscribe(') || + code.includes('addEventListener(') || + code.includes('.on(') || + code.includes('EventEmitter') + ) { patterns.push('Observer pattern for events'); } @@ -490,7 +529,7 @@ function analyzeFileStructure(code: string, language: string): FileStructure { return { exports, components, - patterns + patterns, }; } @@ -498,13 +537,11 @@ function generateComponentRepresentation(component: Component): string { let result = ''; // Visibility indicator - const visPrefix = component.visibility === 'public' ? '+' : - component.visibility === 'private' ? '-' : '#'; + const visPrefix = component.visibility === 'public' ? '+' : component.visibility === 'private' ? '-' : '#'; // Component type abbreviation - const typePrefix = component.type === 'class' ? 'C' : - component.type === 'interface' ? 'I' : - component.type === 'function' ? 'F' : 'V'; + const typePrefix = + component.type === 'class' ? 'C' : component.type === 'interface' ? 'I' : component.type === 'function' ? 'F' : 'V'; result += `${typePrefix}${visPrefix} ${component.name}`; diff --git a/src/config.ts b/src/config.ts index fe98912..d8e1e01 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,5 @@ import * as vscode from 'vscode'; -import { defaults, ExportOptions } from './types'; +import { defaults, type ExportOptions } from './types'; export function readConfig(uri: vscode.Uri): ExportOptions { const config = vscode.workspace.getConfiguration('codebaseMD', uri); @@ -7,15 +7,31 @@ export function readConfig(uri: vscode.Uri): ExportOptions { for (const key of Object.keys(defaults) as (keyof ExportOptions)[]) { (options as unknown as Record)[key] = config.get(key, defaults[key]); } - if (!['markdown', 'xml', 'text'].includes(options.format)) { options.format = defaults.format; } - if (!['full', 'micro', 'skeleton'].includes(options.contentMode)) { options.contentMode = defaults.contentMode; } - if (!['file', 'clipboard', 'editor'].includes(options.target)) { options.target = defaults.target; } - if (!Number.isFinite(options.tokenBudget) || options.tokenBudget < 0) { options.tokenBudget = defaults.tokenBudget; } - if (!Number.isFinite(options.maxFileSizeKB) || options.maxFileSizeKB < 1 || options.maxFileSizeKB > 102400) { options.maxFileSizeKB = defaults.maxFileSizeKB; } - if (!Array.isArray(options.exclude) || options.exclude.some(value => typeof value !== 'string')) { options.exclude = []; } - if (typeof options.customHeader !== 'string') { options.customHeader = ''; } + if (!['markdown', 'xml', 'text'].includes(options.format)) { + options.format = defaults.format; + } + if (!['full', 'micro', 'skeleton'].includes(options.contentMode)) { + options.contentMode = defaults.contentMode; + } + if (!['file', 'clipboard', 'editor'].includes(options.target)) { + options.target = defaults.target; + } + if (!Number.isFinite(options.tokenBudget) || options.tokenBudget < 0) { + options.tokenBudget = defaults.tokenBudget; + } + if (!Number.isFinite(options.maxFileSizeKB) || options.maxFileSizeKB < 1 || options.maxFileSizeKB > 102400) { + options.maxFileSizeKB = defaults.maxFileSizeKB; + } + if (!Array.isArray(options.exclude) || options.exclude.some((value) => typeof value !== 'string')) { + options.exclude = []; + } + if (typeof options.customHeader !== 'string') { + options.customHeader = ''; + } for (const key of ['redactSecrets', 'respectGitignore', 'includeDiff', 'lineNumbers'] as const) { - if (typeof options[key] !== 'boolean') { options[key] = defaults[key]; } + if (typeof options[key] !== 'boolean') { + options[key] = defaults[key]; + } } return options; } diff --git a/src/exporter.ts b/src/exporter.ts index 025af11..2a351a7 100644 --- a/src/exporter.ts +++ b/src/exporter.ts @@ -1,56 +1,116 @@ -import * as fs from 'fs'; -import * as path from 'path'; -import { condenseMicroCode, getLanguageFromExtension, getLanguageForSpecialFile } from './analyzer'; -import { collectFiles, createFilters, relativePath } from './fsUtils'; +import * as fs from 'node:fs'; +import * as path from 'node:path'; +import { condenseMicroCode, getLanguageForSpecialFile, getLanguageFromExtension } from './analyzer'; import { formatDocument } from './formatters'; +import { collectFiles, createFilters, relativePath } from './fsUtils'; import { getFileDiff, getGitChanges } from './git'; import { redactSecrets } from './secrets'; import { skeleton } from './skeleton'; import { estimateTokens } from './tokens'; -import { ExportDocument, ExportHooks, ExportOptions, checkCancelled } from './types'; +import { checkCancelled, type ExportDocument, type ExportHooks, type ExportOptions } from './types'; -const extensions = new Set(('.js .jsx .ts .tsx .mjs .cjs .html .css .scss .json .md .txt .py .java .c .h .hpp .cpp .cs .rb .go .php .sh .xml .yaml .yml .ini .bat .ps1 .sql .rs .swift .kt .dart .lua .r .pl .hs .erl .ex .exs .el .jl .scala .toml .vue .svelte .csv .graphql .proto').split(' ')); -const special = new Set(['Dockerfile', 'Makefile', 'Jenkinsfile', 'docker-compose', '.gitignore', '.codebaseignore', '.dockerignore', '.env', '.babelrc', '.eslintrc', '.prettierrc', 'Vagrantfile', 'Procfile']); +const extensions = new Set( + '.js .jsx .ts .tsx .mjs .cjs .html .css .scss .json .md .txt .py .java .c .h .hpp .cpp .cs .rb .go .php .sh .xml .yaml .yml .ini .bat .ps1 .sql .rs .swift .kt .dart .lua .r .pl .hs .erl .ex .exs .el .jl .scala .toml .vue .svelte .csv .graphql .proto'.split( + ' ', + ), +); +const special = new Set([ + 'Dockerfile', + 'Makefile', + 'Jenkinsfile', + 'docker-compose', + '.gitignore', + '.codebaseignore', + '.dockerignore', + '.env', + '.babelrc', + '.eslintrc', + '.prettierrc', + 'Vagrantfile', + 'Procfile', +]); export function isSupportedFile(file: string): boolean { const name = path.basename(file); return extensions.has(path.extname(name).toLowerCase()) || special.has(name) || name.startsWith('.env.'); } -export interface ExportResult { document: ExportDocument; content: string; tokens: number; } -export async function exportCodebase(root: string, options: ExportOptions, - request: { selected?: string[]; git?: boolean } = {}, hooks: ExportHooks = {}): Promise { +export interface ExportResult { + document: ExportDocument; + content: string; + tokens: number; +} +export async function exportCodebase( + root: string, + options: ExportOptions, + request: { selected?: string[]; git?: boolean } = {}, + hooks: ExportHooks = {}, +): Promise { checkCancelled(hooks); const filters = await createFilters(root, options); const changes = request.git ? await getGitChanges(root, hooks) : undefined; const paths = await collectFiles(root, changes?.paths ?? request.selected, filters, hooks); - const doc: ExportDocument = { files: [], mode: options.contentMode, header: options.customHeader, diff: '', redactions: 0 }; - const clean = (text: string) => options.redactSecrets ? redactSecrets(text) : { text, count: 0 }; - const header = clean(doc.header); doc.header = header.text; doc.redactions += header.count; + const doc: ExportDocument = { + files: [], + mode: options.contentMode, + header: options.customHeader, + diff: '', + redactions: 0, + }; + const clean = (text: string) => (options.redactSecrets ? redactSecrets(text) : { text, count: 0 }); + const header = clean(doc.header); + doc.header = header.text; + doc.redactions += header.count; for (const file of paths) { checkCancelled(hooks); const rel = relativePath(root, file); hooks.progress?.(`Reading ${rel}`); const ext = path.extname(file).toLowerCase(); - const language = path.basename(file).startsWith('.env') ? 'dotenv' - : ext ? getLanguageFromExtension(ext) : getLanguageForSpecialFile(path.basename(file)); - const entry = { path: rel, language, content: '', tokens: 0, redactions: 0, omitted: undefined as string | undefined }; - if (filters.contentsExcluded(file)) { entry.omitted = 'File content excluded by .codebaseignore'; } - else if (!isSupportedFile(file)) { entry.omitted = 'Unsupported file type'; } - else { + const language = path.basename(file).startsWith('.env') + ? 'dotenv' + : ext + ? getLanguageFromExtension(ext) + : getLanguageForSpecialFile(path.basename(file)); + const entry = { + path: rel, + language, + content: '', + tokens: 0, + redactions: 0, + omitted: undefined as string | undefined, + }; + if (filters.contentsExcluded(file)) { + entry.omitted = 'File content excluded by .codebaseignore'; + } else if (!isSupportedFile(file)) { + entry.omitted = 'Unsupported file type'; + } else { try { const stat = await fs.promises.lstat(file); - if (!stat.isFile() || stat.isSymbolicLink()) { entry.omitted = 'Not a regular file'; } - else if (stat.size > options.maxFileSizeKB * 1024) { entry.omitted = 'File exceeds configured size limit'; } - else { + if (!stat.isFile() || stat.isSymbolicLink()) { + entry.omitted = 'Not a regular file'; + } else if (stat.size > options.maxFileSizeKB * 1024) { + entry.omitted = 'File exceeds configured size limit'; + } else { const override = await hooks.readText?.(file); const bytes = override === undefined ? await fs.promises.readFile(file) : Buffer.from(override); - if (bytes.length > options.maxFileSizeKB * 1024) { entry.omitted = 'File exceeds configured size limit'; } - else if (bytes.includes(0)) { entry.omitted = 'Binary file'; } - else { + if (bytes.length > options.maxFileSizeKB * 1024) { + entry.omitted = 'File exceeds configured size limit'; + } else if (bytes.includes(0)) { + entry.omitted = 'Binary file'; + } else { const redacted = clean(bytes.toString('utf8')); - entry.redactions = redacted.count; doc.redactions += redacted.count; - entry.content = options.contentMode === 'micro' ? condenseMicroCode(redacted.text, path.basename(file), rel) - : options.contentMode === 'skeleton' ? skeleton(redacted.text, language) : redacted.text; - if (options.lineNumbers) { entry.content = entry.content.split(/\r?\n/).map((line, i) => `${i + 1}: ${line}`).join('\n'); } + entry.redactions = redacted.count; + doc.redactions += redacted.count; + entry.content = + options.contentMode === 'micro' + ? condenseMicroCode(redacted.text, path.basename(file), rel) + : options.contentMode === 'skeleton' + ? skeleton(redacted.text, language) + : redacted.text; + if (options.lineNumbers) { + entry.content = entry.content + .split(/\r?\n/) + .map((line, i) => `${i + 1}: ${line}`) + .join('\n'); + } entry.tokens = estimateTokens(entry.content); } } @@ -64,19 +124,28 @@ export async function exportCodebase(root: string, options: ExportOptions, if (changes) { for (const file of changes.deleted) { checkCancelled(hooks); - if (!await filters.excluded(file)) { - doc.files.push({ path: relativePath(root, file), language: 'text', content: '', tokens: 0, redactions: 0, omitted: 'Deleted relative to HEAD' }); + if (!(await filters.excluded(file))) { + doc.files.push({ + path: relativePath(root, file), + language: 'text', + content: '', + tokens: 0, + redactions: 0, + omitted: 'Deleted relative to HEAD', + }); } } if (options.includeDiff) { // Only diff readable content. Deleted, binary, oversized and content-excluded files never bypass filters. - for (const entry of doc.files.filter(file => !file.omitted)) { + for (const entry of doc.files.filter((file) => !file.omitted)) { checkCancelled(hooks); const diff = await getFileDiff(root, path.join(root, entry.path), changes.hasHead, hooks); if (Buffer.byteLength(diff) > options.maxFileSizeKB * 1024) { doc.diff += `Diff omitted for ${entry.path}: exceeds configured size limit.\n`; } else { - const redacted = clean(diff); doc.diff += redacted.text; doc.redactions += redacted.count; + const redacted = clean(diff); + doc.diff += redacted.text; + doc.redactions += redacted.count; } } } diff --git a/src/extension.ts b/src/extension.ts index d3f2184..b02ce05 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -2,14 +2,22 @@ import * as vscode from 'vscode'; import { readConfig } from './config'; import { exportCodebase } from './exporter'; import { isWithin } from './fsUtils'; -import { ContentMode, ExportCancelled, ExportOptions, ExportTarget, OutputFormat } from './types'; +import { type ContentMode, ExportCancelled, type ExportOptions, type ExportTarget, type OutputFormat } from './types'; type Scope = 'workspace' | 'selected' | 'git' | 'current'; -interface Request { scope: Scope; mode?: ContentMode; legacy?: boolean; wizard?: boolean; } +interface Request { + scope: Scope; + mode?: ContentMode; + legacy?: boolean; + wizard?: boolean; +} async function pick(title: string, values: readonly T[], preferred?: T): Promise { - const ordered = preferred ? [preferred, ...values.filter(value => value !== preferred)] : [...values]; - const result = await vscode.window.showQuickPick(ordered.map(value => ({ label: value, description: value === preferred ? 'Configured default' : undefined })), { title, ignoreFocusOut: true }); + const ordered = preferred ? [preferred, ...values.filter((value) => value !== preferred)] : [...values]; + const result = await vscode.window.showQuickPick( + ordered.map((value) => ({ label: value, description: value === preferred ? 'Configured default' : undefined })), + { title, ignoreFocusOut: true }, + ); return result?.label as T | undefined; } @@ -17,66 +25,158 @@ async function run(request: Request, uri?: vscode.Uri, uris?: vscode.Uri[]): Pro let scope = request.scope; if (request.wizard) { const chosen = await pick('CodebaseMD — 1/4: Choose scope', ['workspace', 'selected', 'git', 'current']); - if (!chosen) { return; } scope = chosen; + if (!chosen) { + return; + } + scope = chosen; } let selected = uris?.length ? uris : uri ? [uri] : []; if (scope === 'current') { const current = vscode.window.activeTextEditor?.document; - if (!current || current.uri.scheme !== 'file') { throw new Error('Open a saved file in a local workspace first. Unsaved edits in that file are supported.'); } + if (current?.uri.scheme !== 'file') { + throw new Error('Open a saved file in a local workspace first. Unsaved edits in that file are supported.'); + } selected = [current.uri]; } if (scope === 'selected' && !selected.length) { - const chosen = await vscode.window.showOpenDialog({ canSelectFiles: true, canSelectFolders: true, canSelectMany: true, openLabel: 'Select files or folders to export' }); - if (!chosen?.length) { return; } selected = chosen; + const chosen = await vscode.window.showOpenDialog({ + canSelectFiles: true, + canSelectFolders: true, + canSelectMany: true, + openLabel: 'Select files or folders to export', + }); + if (!chosen?.length) { + return; + } + selected = chosen; } const folders = vscode.workspace.workspaceFolders; - if (!folders?.length) { throw new Error('Open a workspace folder before exporting.'); } + if (!folders?.length) { + throw new Error('Open a workspace folder before exporting.'); + } const explicit = scope === 'selected' || scope === 'current'; let folder = explicit ? vscode.workspace.getWorkspaceFolder(selected[0]) : undefined; - if (explicit && !folder) { throw new Error('Choose files inside an open workspace folder.'); } - if (!folder) { folder = folders.length === 1 ? folders[0] : await vscode.window.showWorkspaceFolderPick({ placeHolder: 'Choose the workspace folder to export' }); } - if (!folder) { return; } - if (folder.uri.scheme !== 'file') { throw new Error('CodebaseMD supports local filesystem workspaces only.'); } + if (explicit && !folder) { + throw new Error('Choose files inside an open workspace folder.'); + } + if (!folder) { + folder = + folders.length === 1 + ? folders[0] + : await vscode.window.showWorkspaceFolderPick({ placeHolder: 'Choose the workspace folder to export' }); + } + if (!folder) { + return; + } + if (folder.uri.scheme !== 'file') { + throw new Error('CodebaseMD supports local filesystem workspaces only.'); + } const root = folder.uri.fsPath; - if (explicit && selected.some(item => item.scheme !== 'file' || !isWithin(root, item.fsPath))) { + if (explicit && selected.some((item) => item.scheme !== 'file' || !isWithin(root, item.fsPath))) { throw new Error('Select files from one workspace folder per export.'); } const options: ExportOptions = readConfig(folder.uri); - if (request.legacy) { options.format = 'markdown'; options.target = 'file'; options.contentMode = request.mode ?? 'full'; } + if (request.legacy) { + options.format = 'markdown'; + options.target = 'file'; + options.contentMode = request.mode ?? 'full'; + } if (request.wizard) { - const mode = await pick('CodebaseMD — 2/4: Content mode', ['full', 'micro', 'skeleton'], options.contentMode); - if (!mode) { return; } options.contentMode = mode; - const format = await pick('CodebaseMD — 3/4: Output format', ['markdown', 'xml', 'text'], options.format); - if (!format) { return; } options.format = format; - const target = await pick('CodebaseMD — 4/4: Destination', ['file', 'clipboard', 'editor'], options.target); - if (!target) { return; } options.target = target; - } else if (scope === 'current') { options.target = 'clipboard'; } - if (scope === 'git' && !vscode.workspace.isTrusted) { throw new Error('Git export requires a trusted workspace.'); } - const result = await vscode.window.withProgress({ location: vscode.ProgressLocation.Notification, title: 'CodebaseMD: Preparing export', cancellable: true }, async (progress, token) => { - return exportCodebase(root, options, { selected: explicit ? selected.map(item => item.fsPath) : undefined, git: scope === 'git' }, { - cancelled: () => token.isCancellationRequested, - progress: message => progress.report({ message }), - readText: async file => vscode.workspace.textDocuments.find(document => document.uri.scheme === 'file' && document.uri.fsPath === file)?.getText() - }); - }); - if (!result.document.files.length) { void vscode.window.showInformationMessage('No files to export after filtering.'); return; } + const mode = await pick( + 'CodebaseMD — 2/4: Content mode', + ['full', 'micro', 'skeleton'], + options.contentMode, + ); + if (!mode) { + return; + } + options.contentMode = mode; + const format = await pick( + 'CodebaseMD — 3/4: Output format', + ['markdown', 'xml', 'text'], + options.format, + ); + if (!format) { + return; + } + options.format = format; + const target = await pick( + 'CodebaseMD — 4/4: Destination', + ['file', 'clipboard', 'editor'], + options.target, + ); + if (!target) { + return; + } + options.target = target; + } else if (scope === 'current') { + options.target = 'clipboard'; + } + if (scope === 'git' && !vscode.workspace.isTrusted) { + throw new Error('Git export requires a trusted workspace.'); + } + const result = await vscode.window.withProgress( + { location: vscode.ProgressLocation.Notification, title: 'CodebaseMD: Preparing export', cancellable: true }, + async (progress, token) => { + return exportCodebase( + root, + options, + { selected: explicit ? selected.map((item) => item.fsPath) : undefined, git: scope === 'git' }, + { + cancelled: () => token.isCancellationRequested, + progress: (message) => progress.report({ message }), + readText: async (file) => + vscode.workspace.textDocuments + .find((document) => document.uri.scheme === 'file' && document.uri.fsPath === file) + ?.getText(), + }, + ); + }, + ); + if (!result.document.files.length) { + void vscode.window.showInformationMessage('No files to export after filtering.'); + return; + } if (options.tokenBudget > 0 && result.tokens > options.tokenBudget) { - const choice = await vscode.window.showWarningMessage(`Export is approximately ${result.tokens.toLocaleString()} tokens including formatting; your budget is ${options.tokenBudget.toLocaleString()}.`, 'Export anyway'); - if (choice !== 'Export anyway') { return; } + const choice = await vscode.window.showWarningMessage( + `Export is approximately ${result.tokens.toLocaleString()} tokens including formatting; your budget is ${options.tokenBudget.toLocaleString()}.`, + 'Export anyway', + ); + if (choice !== 'Export anyway') { + return; + } } - if (options.target === 'clipboard') { await vscode.env.clipboard.writeText(result.content); } - else if (options.target === 'editor') { - await vscode.window.showTextDocument(await vscode.workspace.openTextDocument({ content: result.content, language: options.format === 'text' ? 'plaintext' : options.format })); + if (options.target === 'clipboard') { + await vscode.env.clipboard.writeText(result.content); + } else if (options.target === 'editor') { + await vscode.window.showTextDocument( + await vscode.workspace.openTextDocument({ + content: result.content, + language: options.format === 'text' ? 'plaintext' : options.format, + }), + ); } else { const extension = options.format === 'markdown' ? 'md' : options.format === 'xml' ? 'xml' : 'txt'; - const destination = await vscode.window.showSaveDialog({ defaultUri: vscode.Uri.joinPath(folder.uri, `codebase-export.${extension}`), filters: { [options.format]: [extension] }, saveLabel: 'Save export' }); - if (!destination) { return; } - if (result.document.files.some(file => vscode.Uri.joinPath(folder!.uri, file.path).toString() === destination.toString())) { + const destination = await vscode.window.showSaveDialog({ + defaultUri: vscode.Uri.joinPath(folder.uri, `codebase-export.${extension}`), + filters: { [options.format]: [extension] }, + saveLabel: 'Save export', + }); + if (!destination) { + return; + } + if ( + result.document.files.some( + (file) => vscode.Uri.joinPath(folder.uri, file.path).toString() === destination.toString(), + ) + ) { throw new Error('Choose a destination other than a source file included in this export.'); } await vscode.workspace.fs.writeFile(destination, Buffer.from(result.content, 'utf8')); } - void vscode.window.showInformationMessage(`Exported ${result.document.files.length} files · ~${result.tokens.toLocaleString()} tokens · ${result.document.redactions} redactions.`); + void vscode.window.showInformationMessage( + `Exported ${result.document.files.length} files · ~${result.tokens.toLocaleString()} tokens · ${result.document.redactions} redactions.`, + ); } export function activate(context: vscode.ExtensionContext): void { @@ -87,17 +187,22 @@ export function activate(context: vscode.ExtensionContext): void { ['exportMicroSelected', { scope: 'selected', mode: 'micro', legacy: true }], ['exportWizard', { scope: 'workspace', wizard: true }], ['exportGitChanges', { scope: 'git' }], - ['copyCurrentFile', { scope: 'current' }] + ['copyCurrentFile', { scope: 'current' }], ]; for (const [name, request] of commands) { - context.subscriptions.push(vscode.commands.registerCommand(`codebaseMD.${name}`, async (uri?: vscode.Uri, uris?: vscode.Uri[]) => { - try { await run(request, uri, uris); } - catch (error) { - if (!(error instanceof ExportCancelled)) { - void vscode.window.showErrorMessage(`CodebaseMD: ${error instanceof Error ? error.message : 'Export failed.'}`); + context.subscriptions.push( + vscode.commands.registerCommand(`codebaseMD.${name}`, async (uri?: vscode.Uri, uris?: vscode.Uri[]) => { + try { + await run(request, uri, uris); + } catch (error) { + if (!(error instanceof ExportCancelled)) { + void vscode.window.showErrorMessage( + `CodebaseMD: ${error instanceof Error ? error.message : 'Export failed.'}`, + ); + } } - } - })); + }), + ); } } export function deactivate(): void {} diff --git a/src/formatters.ts b/src/formatters.ts index 78275af..dba5c51 100644 --- a/src/formatters.ts +++ b/src/formatters.ts @@ -1,26 +1,39 @@ -import { ExportDocument, OutputFormat } from './types'; +import type { ExportDocument, OutputFormat } from './types'; export function xmlEscape(text: string): string { - return text.replace(/[\x00-\x08\x0b\x0c\x0e-\x1f\ufffe\uffff]/g, '\uFFFD') - .replace(/&/g, '&').replace(//g, '>') - .replace(/"/g, '"').replace(/'/g, '''); + return ( + text + // biome-ignore lint/suspicious/noControlCharactersInRegex: control characters are invalid in XML 1.0 and must be replaced + .replace(/[\x00-\x08\x0b\x0c\x0e-\x1f\ufffe\uffff]/g, '\uFFFD') + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, ''') + ); } function md(text: string): string { - return text.replace(/[\\`*_{}\[\]()#+.!|<>~-]/g, '\\$&').replace(/[\r\n]/g, ' '); + return text.replace(/[\\`*_{}[\]()#+.!|<>~-]/g, '\\$&').replace(/[\r\n]/g, ' '); } export function codeFence(text: string, language = ''): string { const runs = text.match(/`+/g) ?? []; - const fence = '`'.repeat(Math.max(3, ...runs.map(run => run.length + 1))); + const fence = '`'.repeat(Math.max(3, ...runs.map((run) => run.length + 1))); return `${fence}${language}\n${text}\n${fence}`; } export function folderTree(paths: string[]): string { - interface Tree { children: Map; } + interface Tree { + children: Map; + } const root: Tree = { children: new Map() }; for (const file of paths) { let current = root; for (const part of file.split('/')) { - if (!current.children.has(part)) { current.children.set(part, { children: new Map() }); } - current = current.children.get(part)!; + let child = current.children.get(part); + if (!child) { + child = { children: new Map() }; + current.children.set(part, child); + } + current = child; } } const lines: string[] = []; @@ -40,34 +53,72 @@ export function formatDocument(doc: ExportDocument, format: OutputFormat): strin const languages = new Map(); for (const file of doc.files) { const stat = languages.get(file.language) ?? { files: 0, tokens: 0 }; - stat.files++; stat.tokens += file.tokens; languages.set(file.language, stat); + stat.files++; + stat.tokens += file.tokens; + languages.set(file.language, stat); } const summary = `${doc.files.length} files | ${tokens} estimated content tokens (characters / 4) | ${doc.redactions} redactions | ${doc.mode} mode`; - const tree = folderTree(doc.files.map(file => file.path)); + const tree = folderTree(doc.files.map((file) => file.path)); const top = [...doc.files].sort((a, b) => b.tokens - a.tokens).slice(0, 5); if (format === 'xml') { - return '\n\n' - + `${xmlEscape(summary)}\n
${xmlEscape(doc.header)}
\n` - + `${xmlEscape(tree)}\n\n` - + [...languages].map(([name, stat]) => ``).join('\n') - + '\n\n\n' - + doc.files.map(file => `${xmlEscape(file.omitted ? `[${file.omitted}]` : file.content)}`).join('\n') - + `\n\n${xmlEscape(doc.diff)}\n
\n`; + return ( + '\n\n' + + `${xmlEscape(summary)}\n
${xmlEscape(doc.header)}
\n` + + `${xmlEscape(tree)}\n\n` + + [...languages] + .map(([name, stat]) => ``) + .join('\n') + + '\n\n\n' + + doc.files + .map( + (file) => + `${xmlEscape(file.omitted ? `[${file.omitted}]` : file.content)}`, + ) + .join('\n') + + `\n\n${xmlEscape(doc.diff)}\n
\n` + ); } if (format === 'text') { - return `CodebaseMD Export\n${summary}\n\n${doc.header}\n\nFolder structure\n${tree}\n\nLanguages\n` - + [...languages].map(([name, stat]) => `${name}: ${stat.files} files, ~${stat.tokens} tokens`).join('\n') - + '\n\nLargest files\n' + top.map(file => `${file.path}: ~${file.tokens} tokens`).join('\n') - + '\n\n' + doc.files.map(file => `=== ${file.path} (~${file.tokens} tokens) ===\n${file.omitted ? `[${file.omitted}]` : file.content}`).join('\n\n') - + (doc.diff ? `\n\nGit diff\n${doc.diff}` : '') + '\n'; + return ( + `CodebaseMD Export\n${summary}\n\n${doc.header}\n\nFolder structure\n${tree}\n\nLanguages\n` + + [...languages].map(([name, stat]) => `${name}: ${stat.files} files, ~${stat.tokens} tokens`).join('\n') + + '\n\nLargest files\n' + + top.map((file) => `${file.path}: ~${file.tokens} tokens`).join('\n') + + '\n\n' + + doc.files + .map( + (file) => + `=== ${file.path} (~${file.tokens} tokens) ===\n${file.omitted ? `[${file.omitted}]` : file.content}`, + ) + .join('\n\n') + + (doc.diff ? `\n\nGit diff\n${doc.diff}` : '') + + '\n' + ); } - return `# ${doc.mode === 'micro' ? 'Micro Codebase' : 'Project'} Export\n\n${summary}\n\n${doc.header}\n\n` - + '## Languages\n\n| Language | Files | Estimated tokens |\n| --- | ---: | ---: |\n' - + [...languages].map(([name, stat]) => `| ${md(name)} | ${stat.files} | ${stat.tokens} |`).join('\n') - + '\n\n## Largest Files\n\n' + top.map(file => `- ${md(file.path)}: ~${file.tokens} tokens`).join('\n') - + '\n\n## Folder Structure\n\n' + codeFence(tree) - + '\n\n## Contents\n\n' + doc.files.map((file, i) => `- [${md(file.path)}](#file-${i + 1}) — ${md(file.language)}, ~${file.tokens} tokens${file.omitted ? ' (omitted)' : ''}`).join('\n') - + '\n\n' + doc.files.map((file, i) => `\n\n### ${md(file.path)}\n\n` - + (file.omitted ? `*${md(file.omitted)}*` : codeFence(file.content, file.language))).join('\n\n') - + (doc.diff ? '\n\n## Git Diff\n\n' + codeFence(doc.diff, 'diff') : '') + '\n'; + return ( + `# ${doc.mode === 'micro' ? 'Micro Codebase' : 'Project'} Export\n\n${summary}\n\n${doc.header}\n\n` + + '## Languages\n\n| Language | Files | Estimated tokens |\n| --- | ---: | ---: |\n' + + [...languages].map(([name, stat]) => `| ${md(name)} | ${stat.files} | ${stat.tokens} |`).join('\n') + + '\n\n## Largest Files\n\n' + + top.map((file) => `- ${md(file.path)}: ~${file.tokens} tokens`).join('\n') + + '\n\n## Folder Structure\n\n' + + codeFence(tree) + + '\n\n## Contents\n\n' + + doc.files + .map( + (file, i) => + `- [${md(file.path)}](#file-${i + 1}) — ${md(file.language)}, ~${file.tokens} tokens${file.omitted ? ' (omitted)' : ''}`, + ) + .join('\n') + + '\n\n' + + doc.files + .map( + (file, i) => + `\n\n### ${md(file.path)}\n\n` + + (file.omitted ? `*${md(file.omitted)}*` : codeFence(file.content, file.language)), + ) + .join('\n\n') + + (doc.diff ? `\n\n## Git Diff\n\n${codeFence(doc.diff, 'diff')}` : '') + + '\n' + ); } diff --git a/src/fsUtils.ts b/src/fsUtils.ts index ea02119..988f20b 100644 --- a/src/fsUtils.ts +++ b/src/fsUtils.ts @@ -1,26 +1,57 @@ -import * as fs from 'fs'; -import * as path from 'path'; -import ignore, { Ignore } from 'ignore'; -import { ExportHooks, ExportOptions, checkCancelled } from './types'; +import * as fs from 'node:fs'; +import * as path from 'node:path'; +import ignore, { type Ignore } from 'ignore'; +import { checkCancelled, type ExportHooks, type ExportOptions } from './types'; -const defaultPatterns = ['node_modules/', 'build/', 'out/', 'dist/', '.git/', '.svn/', '.hg/', - '.vscode/', '.idea/', 'coverage/', 'logs/', '__pycache__/', '*.log', '*.exe', '*.dll', '*.bin', - '*.lock', '*.zip', '*.tar', '*.tar.gz', '*.tgz', '*.jar', '*.class', '*.pyc', '*.vsix', - 'package-lock.json', 'codebase-export.md', 'codebase-export.xml', 'codebase-export.txt']; +const defaultPatterns = [ + 'node_modules/', + 'build/', + 'out/', + 'dist/', + '.git/', + '.svn/', + '.hg/', + '.vscode/', + '.idea/', + 'coverage/', + 'logs/', + '__pycache__/', + '*.log', + '*.exe', + '*.dll', + '*.bin', + '*.lock', + '*.zip', + '*.tar', + '*.tar.gz', + '*.tgz', + '*.jar', + '*.class', + '*.pyc', + '*.vsix', + 'package-lock.json', + 'codebase-export.md', + 'codebase-export.xml', + 'codebase-export.txt', +]; export function relativePath(root: string, file: string): string { return path.relative(root, file).split(path.sep).join('/'); } export function isWithin(root: string, file: string): boolean { const rel = path.relative(root, file); - return rel === '' || (!path.isAbsolute(rel) && rel !== '..' && !rel.startsWith('..' + path.sep)); + return rel === '' || (!path.isAbsolute(rel) && rel !== '..' && !rel.startsWith(`..${path.sep}`)); } async function readRules(file: string): Promise { try { const stat = await fs.promises.lstat(file); - if (!stat.isFile() || stat.isSymbolicLink() || stat.size > 1024 * 1024) { return ''; } + if (!stat.isFile() || stat.isSymbolicLink() || stat.size > 1024 * 1024) { + return ''; + } return await fs.promises.readFile(file, 'utf8'); } catch (error) { - if ((error as NodeJS.ErrnoException).code === 'ENOENT') { return ''; } + if ((error as NodeJS.ErrnoException).code === 'ENOENT') { + return ''; + } throw error; } } @@ -33,18 +64,30 @@ export async function createFilters(root: string, options: ExportOptions): Promi const content = ignore().add(await readRules(path.join(root, '.codebaseignore'))); const cache = new Map(); async function rules(dir: string): Promise { - if (!cache.has(dir)) { cache.set(dir, ignore().add(await readRules(path.join(dir, '.gitignore')))); } - return cache.get(dir)!; + let cached = cache.get(dir); + if (!cached) { + cached = ignore().add(await readRules(path.join(dir, '.gitignore'))); + cache.set(dir, cached); + } + return cached; } return { - contentsExcluded: file => content.ignores(relativePath(root, file)), + contentsExcluded: (file) => content.ignores(relativePath(root, file)), excluded: async (file, directory = false) => { - if (!isWithin(root, file)) { return true; } + if (!isWithin(root, file)) { + return true; + } const rel = relativePath(root, file); - if (!rel) { return false; } + if (!rel) { + return false; + } const candidate = rel + (directory ? '/' : ''); - if (base.ignores(candidate)) { return true; } - if (!options.respectGitignore) { return false; } + if (base.ignores(candidate)) { + return true; + } + if (!options.respectGitignore) { + return false; + } // Test each ancestor so nested negations cannot re-include an ignored directory. const parts = rel.split('/'); for (let i = 0; i < parts.length; i++) { @@ -54,40 +97,70 @@ export async function createFilters(root: string, options: ExportOptions): Promi let ruleDir = root; for (let j = 0; j <= i; j++) { const result = (await rules(ruleDir)).test(relativePath(ruleDir, target) + (isDir ? '/' : '')); - if (result.ignored) { ignored = true; } - if (result.unignored) { ignored = false; } - if (j < i) { ruleDir = path.join(ruleDir, parts[j]); } + if (result.ignored) { + ignored = true; + } + if (result.unignored) { + ignored = false; + } + if (j < i) { + ruleDir = path.join(ruleDir, parts[j]); + } + } + if (ignored) { + return true; } - if (ignored) { return true; } } return false; - } + }, }; } -export async function collectFiles(root: string, selected: string[] | undefined, filters: FileFilters, - hooks: ExportHooks = {}): Promise { +export async function collectFiles( + root: string, + selected: string[] | undefined, + filters: FileFilters, + hooks: ExportHooks = {}, +): Promise { const files = new Set(); const visited = new Set(); async function visit(file: string): Promise { checkCancelled(hooks); file = path.resolve(file); - if (!isWithin(root, file) || visited.has(file)) { return; } + if (!isWithin(root, file) || visited.has(file)) { + return; + } visited.add(file); // Reject links in every component, including explicitly selected descendants of a link. const parts = path.relative(root, file).split(path.sep).filter(Boolean); let candidate = root; for (const part of parts) { candidate = path.join(candidate, part); - try { if ((await fs.promises.lstat(candidate)).isSymbolicLink()) { return; } } - catch (error) { if ((error as NodeJS.ErrnoException).code === 'ENOENT') { return; } throw error; } + try { + if ((await fs.promises.lstat(candidate)).isSymbolicLink()) { + return; + } + } catch (error) { + if ((error as NodeJS.ErrnoException).code === 'ENOENT') { + return; + } + throw error; + } } const stat = await fs.promises.lstat(file); - if (stat.isSymbolicLink() || await filters.excluded(file, stat.isDirectory())) { return; } + if (stat.isSymbolicLink() || (await filters.excluded(file, stat.isDirectory()))) { + return; + } if (stat.isDirectory()) { hooks.progress?.(`Scanning ${relativePath(root, file) || '.'}`); - for (const name of (await fs.promises.readdir(file)).sort()) { await visit(path.join(file, name)); } - } else if (stat.isFile()) { files.add(file); } + for (const name of (await fs.promises.readdir(file)).sort()) { + await visit(path.join(file, name)); + } + } else if (stat.isFile()) { + files.add(file); + } + } + for (const file of selected ?? [root]) { + await visit(file); } - for (const file of selected ?? [root]) { await visit(file); } return [...files].sort(); } diff --git a/src/git.ts b/src/git.ts index f01c680..5796f79 100644 --- a/src/git.ts +++ b/src/git.ts @@ -1,38 +1,94 @@ -import { execFile } from 'child_process'; -import * as path from 'path'; -import { ExportHooks, checkCancelled } from './types'; +import { execFile } from 'node:child_process'; +import * as path from 'node:path'; +import { checkCancelled, type ExportHooks } from './types'; function git(root: string, args: string[], hooks: ExportHooks): Promise { checkCancelled(hooks); return new Promise((resolve, reject) => { - const child = execFile('git', ['--no-pager', '-C', root, ...args], { - encoding: 'utf8', maxBuffer: 32 * 1024 * 1024, windowsHide: true, timeout: 30000, - env: { ...process.env, GIT_TERMINAL_PROMPT: '0', GIT_LITERAL_PATHSPECS: '1' } - }, (error, stdout) => { - clearInterval(timer); - try { checkCancelled(hooks); } catch (cancelled) { reject(cancelled); return; } - if (error) { reject(new Error('Git export failed. Check that Git is installed and this folder is a repository.')); } - else { resolve(stdout); } - }); - const timer = setInterval(() => { if (hooks.cancelled?.()) { child.kill(); } }, 100); + const child = execFile( + 'git', + ['--no-pager', '-C', root, ...args], + { + encoding: 'utf8', + maxBuffer: 32 * 1024 * 1024, + windowsHide: true, + timeout: 30000, + env: { ...process.env, GIT_TERMINAL_PROMPT: '0', GIT_LITERAL_PATHSPECS: '1' }, + }, + (error, stdout) => { + clearInterval(timer); + try { + checkCancelled(hooks); + } catch (cancelled) { + reject(cancelled); + return; + } + if (error) { + reject(new Error('Git export failed. Check that Git is installed and this folder is a repository.')); + } else { + resolve(stdout); + } + }, + ); + const timer = setInterval(() => { + if (hooks.cancelled?.()) { + child.kill(); + } + }, 100); }); } -export interface GitChanges { paths: string[]; deleted: string[]; hasHead: boolean; } +export interface GitChanges { + paths: string[]; + deleted: string[]; + hasHead: boolean; +} export async function getGitChanges(root: string, hooks: ExportHooks = {}): Promise { await git(root, ['rev-parse', '--show-toplevel'], hooks); let hasHead = true; - try { await git(root, ['rev-parse', '--verify', 'HEAD'], hooks); } - catch { checkCancelled(hooks); hasHead = false; } - const args = hasHead ? ['diff', '--relative', '--name-only', '-z', '--no-renames', 'HEAD', '--', '.'] + try { + await git(root, ['rev-parse', '--verify', 'HEAD'], hooks); + } catch { + checkCancelled(hooks); + hasHead = false; + } + const args = hasHead + ? ['diff', '--relative', '--name-only', '-z', '--no-renames', 'HEAD', '--', '.'] : ['ls-files', '--cached', '-z', '--', '.']; const changed = await git(root, args, hooks); const untracked = await git(root, ['ls-files', '--others', '--exclude-standard', '-z', '--', '.'], hooks); - const deleted = hasHead ? await git(root, ['diff', '--relative', '--name-only', '-z', '--no-renames', '--diff-filter=D', 'HEAD', '--', '.'], hooks) : ''; - const parse = (text: string) => text.split('\0').filter(Boolean).map(file => path.resolve(root, file)); + const deleted = hasHead + ? await git( + root, + ['diff', '--relative', '--name-only', '-z', '--no-renames', '--diff-filter=D', 'HEAD', '--', '.'], + hooks, + ) + : ''; + const parse = (text: string) => + text + .split('\0') + .filter(Boolean) + .map((file) => path.resolve(root, file)); return { paths: [...new Set([...parse(changed), ...parse(untracked)])], deleted: parse(deleted), hasHead }; } -export async function getFileDiff(root: string, file: string, hasHead: boolean, hooks: ExportHooks = {}): Promise { +export async function getFileDiff( + root: string, + file: string, + hasHead: boolean, + hooks: ExportHooks = {}, +): Promise { // Disable user-configured external diff/textconv programs. Each file is filtered before this call. - return git(root, ['diff', '--no-ext-diff', '--no-textconv', '--no-renames', '--no-color', - ...(hasHead ? ['HEAD'] : ['--cached']), '--', path.relative(root, file)], hooks); + return git( + root, + [ + 'diff', + '--no-ext-diff', + '--no-textconv', + '--no-renames', + '--no-color', + ...(hasHead ? ['HEAD'] : ['--cached']), + '--', + path.relative(root, file), + ], + hooks, + ); } diff --git a/src/secrets.ts b/src/secrets.ts index 31afb5e..ea31d62 100644 --- a/src/secrets.ts +++ b/src/secrets.ts @@ -1,4 +1,7 @@ -export interface RedactionResult { text: string; count: number; } +export interface RedactionResult { + text: string; + count: number; +} /** Keep matches out of diagnostics; the result contains only sanitized text and a count. */ export function redactSecrets(input: string): RedactionResult { @@ -12,21 +15,34 @@ export function redactSecrets(input: string): RedactionResult { /\bxox[baprs]-[A-Za-z0-9-]{10,}\b/g, /\bAIza[A-Za-z0-9_-]{35}\b/g, /\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{16,}\b/g, - /\beyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\b/g + /\beyJ[A-Za-z0-9_-]+\.eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\b/g, ]; for (const pattern of patterns) { - text = text.replace(pattern, () => { count++; return '***REDACTED***'; }); + text = text.replace(pattern, () => { + count++; + return '***REDACTED***'; + }); } // Handles quoted JSON keys, source assignments, and unquoted dotenv values. - text = text.replace(/((?:["']?[\w.-]*(?:password|passwd|secret|token|api[_-]?key|access[_-]?key)[\w.-]*["']?)\s*[:=]\s*)(["'`])([^\r\n]*?)\2/gi, + text = text.replace( + /((?:["']?[\w.-]*(?:password|passwd|secret|token|api[_-]?key|access[_-]?key)[\w.-]*["']?)\s*[:=]\s*)(["'`])([^\r\n]*?)\2/gi, (whole, prefix: string, quote: string, value: string) => { - if (!value || value.includes('***REDACTED***')) { return whole; } - count++; return `${prefix}${quote}***REDACTED***${quote}`; - }); - text = text.replace(/^([+\- ]?\s*(?:export\s+)?[\w.-]*(?:password|passwd|secret|token|api[_-]?key|access[_-]?key)[\w.-]*\s*=\s*)([^\s"'`#][^\r\n]*)/gim, + if (!value || value.includes('***REDACTED***')) { + return whole; + } + count++; + return `${prefix}${quote}***REDACTED***${quote}`; + }, + ); + text = text.replace( + /^([+\- ]?\s*(?:export\s+)?[\w.-]*(?:password|passwd|secret|token|api[_-]?key|access[_-]?key)[\w.-]*\s*=\s*)([^\s"'`#][^\r\n]*)/gim, (whole, prefix: string, value: string) => { - if (value.includes('***REDACTED***')) { return whole; } - count++; return `${prefix}***REDACTED***`; - }); + if (value.includes('***REDACTED***')) { + return whole; + } + count++; + return `${prefix}***REDACTED***`; + }, + ); return { text, count }; } diff --git a/src/skeleton.ts b/src/skeleton.ts index c4e31e3..214b77c 100644 --- a/src/skeleton.ts +++ b/src/skeleton.ts @@ -1,23 +1,39 @@ /** Best-effort outline. This deliberately does not claim to be a language parser. */ export function skeleton(code: string, language: string): string { const lines = code.split(/\r?\n/); - const outline = lines.filter(line => { + const outline = lines.filter((line) => { const value = line.trim(); if (language === 'python') { return /^(?:from\s|import\s|(?:async\s+)?def\s|class\s|@)/.test(value); } - return /^(?:import\s|from\s|package\s|using\s|#include|(?:export\s+)?(?:default\s+)?(?:abstract\s+)?(?:class|interface|enum|type|struct|trait)\s|(?:export\s+)?(?:async\s+)?function\s|(?:pub\s+)?(?:async\s+)?(?:fn|func)\s)/.test(value) - || /^(?:(?:export|public|private|protected|static|async|override|readonly)\s+)*(?:const|let|var)\s+\w+.*=>/.test(value) - || /^(?:(?:public|private|protected|static|async|override)\s+)*[\w<>\[\]?]+\s+\w+\s*\(/.test(value) - || /^(?:(?:public|private|protected|static|async|override)\s+)*\w+\s*\([^)]*\)\s*(?::[^=]+)?\s*\{/.test(value) && !/^(?:if|for|while|switch|catch|with)\b/.test(value); + return ( + /^(?:import\s|from\s|package\s|using\s|#include|(?:export\s+)?(?:default\s+)?(?:abstract\s+)?(?:class|interface|enum|type|struct|trait)\s|(?:export\s+)?(?:async\s+)?function\s|(?:pub\s+)?(?:async\s+)?(?:fn|func)\s)/.test( + value, + ) || + /^(?:(?:export|public|private|protected|static|async|override|readonly)\s+)*(?:const|let|var)\s+\w+.*=>/.test( + value, + ) || + /^(?:(?:public|private|protected|static|async|override)\s+)*[\w<>[\]?]+\s+\w+\s*\(/.test(value) || + (/^(?:(?:public|private|protected|static|async|override)\s+)*\w+\s*\([^)]*\)\s*(?::[^=]+)?\s*\{/.test(value) && + !/^(?:if|for|while|switch|catch|with)\b/.test(value)) + ); }); - if (!outline.length) { return code; } - return '// Best-effort outline; bodies omitted; multiline signatures may be incomplete.\n' - + outline.map(line => { - if (line.includes('=>')) { return line.slice(0, line.indexOf('=>') + 2) + ' …'; } - const start = line.indexOf('{'); - // Preserve import bindings and type declarations; collapse apparent bodies. - return start >= 0 && !/^\s*(?:import|from|(?:export\s+)?type)\b/.test(line) - ? line.slice(0, start).trimEnd() + ' { … }' : line; - }).join('\n'); + if (!outline.length) { + return code; + } + return ( + '// Best-effort outline; bodies omitted; multiline signatures may be incomplete.\n' + + outline + .map((line) => { + if (line.includes('=>')) { + return `${line.slice(0, line.indexOf('=>') + 2)} …`; + } + const start = line.indexOf('{'); + // Preserve import bindings and type declarations; collapse apparent bodies. + return start >= 0 && !/^\s*(?:import|from|(?:export\s+)?type)\b/.test(line) + ? `${line.slice(0, start).trimEnd()} { … }` + : line; + }) + .join('\n') + ); } diff --git a/src/test/runTest.ts b/src/test/runTest.ts index 4a0e9d0..b0fbbc1 100644 --- a/src/test/runTest.ts +++ b/src/test/runTest.ts @@ -1,31 +1,40 @@ -import * as path from 'path'; -import * as os from 'os'; -import * as fs from 'fs'; +import * as fs from 'node:fs'; +import * as os from 'node:os'; +import * as path from 'node:path'; import { runTests } from '@vscode/test-electron'; async function main() { - const fixture = await fs.promises.mkdtemp(path.join(os.tmpdir(), 'codebasemd-host-')); - try { - // The folder containing the Extension Manifest package.json - // Passed to `--extensionDevelopmentPath` - const extensionDevelopmentPath = path.resolve(__dirname, '../../'); + const fixture = await fs.promises.mkdtemp(path.join(os.tmpdir(), 'codebasemd-host-')); + try { + // The folder containing the Extension Manifest package.json + // Passed to `--extensionDevelopmentPath` + const extensionDevelopmentPath = path.resolve(__dirname, '../../'); - // The path to test runner - // Passed to --extensionTestsPath - const extensionTestsPath = path.resolve(__dirname, './suite/index'); + // The path to test runner + // Passed to --extensionTestsPath + const extensionTestsPath = path.resolve(__dirname, './suite/index'); - // Download VS Code, unzip it and run the integration test - await fs.promises.writeFile(path.join(fixture, 'fixture.ts'), 'export const answer = 42;\n'); - await runTests({ extensionDevelopmentPath, extensionTestsPath, - launchArgs: [fixture, '--disable-extensions', '--skip-welcome', '--skip-release-notes', '--disable-workspace-trust'] }); - } catch (err) { - console.error('Failed to run tests', err); - process.exitCode = 1; - } finally { - if (path.resolve(fixture).startsWith(path.resolve(os.tmpdir()) + path.sep + 'codebasemd-host-')) { - await fs.promises.rm(fixture, { recursive: true, force: true }); - } - } + // Download VS Code, unzip it and run the integration test + await fs.promises.writeFile(path.join(fixture, 'fixture.ts'), 'export const answer = 42;\n'); + await runTests({ + extensionDevelopmentPath, + extensionTestsPath, + launchArgs: [ + fixture, + '--disable-extensions', + '--skip-welcome', + '--skip-release-notes', + '--disable-workspace-trust', + ], + }); + } catch (err) { + console.error('Failed to run tests', err); + process.exitCode = 1; + } finally { + if (path.resolve(fixture).startsWith(`${path.resolve(os.tmpdir()) + path.sep}codebasemd-host-`)) { + await fs.promises.rm(fixture, { recursive: true, force: true }); + } + } } main(); diff --git a/src/test/suite/extension.test.ts b/src/test/suite/extension.test.ts index 358a913..d3fc56e 100644 --- a/src/test/suite/extension.test.ts +++ b/src/test/suite/extension.test.ts @@ -1,52 +1,53 @@ -import * as assert from 'assert'; +import * as assert from 'node:assert'; import * as vscode from 'vscode'; suite('Extension Test Suite', () => { + test('Extension should activate', async () => { + const extension = vscode.extensions.getExtension('alpha912.codebase-md'); + assert.ok(extension, 'Extension must be installed in the test host'); - test('Extension should activate', async () => { - const extension = vscode.extensions.getExtension('alpha912.codebase-md'); - assert.ok(extension, 'Extension must be installed in the test host'); - - await extension?.activate(); - assert.strictEqual(extension?.isActive, true); - }); + await extension.activate(); + assert.strictEqual(extension.isActive, true); + }); - test('Current-file command copies unsaved content with redaction in each format', async () => { - const folder = vscode.workspace.workspaceFolders?.[0]; - assert.ok(folder, 'Test runner must provide a temporary workspace'); - const file = vscode.Uri.joinPath(folder!.uri, 'fixture.ts'); - const config = vscode.workspace.getConfiguration('codebaseMD', folder!.uri); - const clipboard = await vscode.env.clipboard.readText(); - try { - await config.update('tokenBudget', 0, vscode.ConfigurationTarget.Workspace); - const editor = await vscode.window.showTextDocument(await vscode.workspace.openTextDocument(file)); - await editor.edit(edit => edit.insert(new vscode.Position(0, 0), 'const password = "should-not-leak";\n')); - for (const format of ['markdown', 'xml', 'text']) { - await config.update('format', format, vscode.ConfigurationTarget.Workspace); - await vscode.commands.executeCommand('codebaseMD.copyCurrentFile'); - const output = await vscode.env.clipboard.readText(); - assert.ok(output.includes('answer = 42')); - assert.ok(output.includes('***REDACTED***')); - assert.ok(!output.includes('should-not-leak')); - if (format === 'xml') { assert.ok(output.startsWith(' { + const folder = vscode.workspace.workspaceFolders?.[0]; + assert.ok(folder, 'Test runner must provide a temporary workspace'); + const file = vscode.Uri.joinPath(folder.uri, 'fixture.ts'); + const config = vscode.workspace.getConfiguration('codebaseMD', folder.uri); + const clipboard = await vscode.env.clipboard.readText(); + try { + await config.update('tokenBudget', 0, vscode.ConfigurationTarget.Workspace); + const editor = await vscode.window.showTextDocument(await vscode.workspace.openTextDocument(file)); + await editor.edit((edit) => edit.insert(new vscode.Position(0, 0), 'const password = "should-not-leak";\n')); + for (const format of ['markdown', 'xml', 'text']) { + await config.update('format', format, vscode.ConfigurationTarget.Workspace); + await vscode.commands.executeCommand('codebaseMD.copyCurrentFile'); + const output = await vscode.env.clipboard.readText(); + assert.ok(output.includes('answer = 42')); + assert.ok(output.includes('***REDACTED***')); + assert.ok(!output.includes('should-not-leak')); + if (format === 'xml') { + assert.ok(output.startsWith(' { - const commands = await vscode.commands.getCommands(); - - assert.ok(commands.includes('codebaseMD.exportAll')); - assert.ok(commands.includes('codebaseMD.exportSelected')); - assert.ok(commands.includes('codebaseMD.exportMicro')); - assert.ok(commands.includes('codebaseMD.exportMicroSelected')); - assert.ok(commands.includes('codebaseMD.exportWizard')); - assert.ok(commands.includes('codebaseMD.exportGitChanges')); - assert.ok(commands.includes('codebaseMD.copyCurrentFile')); - }); + test('Commands should be registered', async () => { + const commands = await vscode.commands.getCommands(); + + assert.ok(commands.includes('codebaseMD.exportAll')); + assert.ok(commands.includes('codebaseMD.exportSelected')); + assert.ok(commands.includes('codebaseMD.exportMicro')); + assert.ok(commands.includes('codebaseMD.exportMicroSelected')); + assert.ok(commands.includes('codebaseMD.exportWizard')); + assert.ok(commands.includes('codebaseMD.exportGitChanges')); + assert.ok(commands.includes('codebaseMD.copyCurrentFile')); + }); }); diff --git a/src/test/suite/fileProcessing.test.ts b/src/test/suite/fileProcessing.test.ts index 3c46b38..cacb01e 100644 --- a/src/test/suite/fileProcessing.test.ts +++ b/src/test/suite/fileProcessing.test.ts @@ -1,5 +1,6 @@ -import * as assert from 'assert'; +import * as assert from 'node:assert'; import { isSupportedFile } from '../../exporter'; + suite('File processing integration', () => { test('uses production support rules', () => { assert.ok(isSupportedFile('Dockerfile')); diff --git a/src/test/suite/index.ts b/src/test/suite/index.ts index 73783e1..ed21c3d 100644 --- a/src/test/suite/index.ts +++ b/src/test/suite/index.ts @@ -1,37 +1,41 @@ -import * as path from 'path'; -import * as fs from 'fs'; +import * as fs from 'node:fs'; +import * as path from 'node:path'; + import Mocha = require('mocha'); export function run(): Promise { - // Create the mocha test - const mocha = new Mocha({ - ui: 'tdd', - color: true, - timeout: 10000 - }); + // Create the mocha test + const mocha = new Mocha({ + ui: 'tdd', + color: true, + timeout: 10000, + }); - const testsRoot = path.resolve(__dirname, '..'); + const testsRoot = path.resolve(__dirname, '..'); - return new Promise((c, e) => { - try { - function addTests(directory: string): void { - for (const entry of fs.readdirSync(directory, { withFileTypes: true })) { - const file = path.join(directory, entry.name); - if (entry.isDirectory()) { addTests(file); } - else if (entry.name.endsWith('.test.js')) { mocha.addFile(file); } - } - } - addTests(testsRoot); - mocha.run((failures: number) => { - if (failures > 0) { - e(new Error(`${failures} tests failed.`)); - } else { - c(); - } - }); - } catch (err) { - console.error(err); - e(err); - } - }); + return new Promise((c, e) => { + try { + function addTests(directory: string): void { + for (const entry of fs.readdirSync(directory, { withFileTypes: true })) { + const file = path.join(directory, entry.name); + if (entry.isDirectory()) { + addTests(file); + } else if (entry.name.endsWith('.test.js')) { + mocha.addFile(file); + } + } + } + addTests(testsRoot); + mocha.run((failures: number) => { + if (failures > 0) { + e(new Error(`${failures} tests failed.`)); + } else { + c(); + } + }); + } catch (err) { + console.error(err); + e(err); + } + }); } diff --git a/src/test/suite/markdownGeneration.test.ts b/src/test/suite/markdownGeneration.test.ts index c87881e..37c0604 100644 --- a/src/test/suite/markdownGeneration.test.ts +++ b/src/test/suite/markdownGeneration.test.ts @@ -1,5 +1,6 @@ -import * as assert from 'assert'; +import * as assert from 'node:assert'; import { codeFence, folderTree } from '../../formatters'; + suite('Markdown generation integration', () => { test('uses production fence and tree generation', () => { assert.ok(codeFence('```').startsWith('````')); diff --git a/src/test/suite/mockFileSystem.ts b/src/test/suite/mockFileSystem.ts index 2ba4b33..36139bf 100644 --- a/src/test/suite/mockFileSystem.ts +++ b/src/test/suite/mockFileSystem.ts @@ -1,4 +1,4 @@ -import * as path from 'path'; +import * as path from 'node:path'; export interface MockFileSystem { rootPath: string; @@ -14,8 +14,8 @@ export interface MockFileSystem { * Creates a mock file system structure for testing */ export function createMockFileSystem(): MockFileSystem { - const rootPath = path.sep + 'mock-project'; - + const rootPath = `${path.sep}mock-project`; + const files = [ path.join(rootPath, 'src', 'index.ts'), path.join(rootPath, 'src', 'utils', 'helper.ts'), @@ -32,14 +32,17 @@ export function createMockFileSystem(): MockFileSystem { path.join(rootPath, 'public', 'styles.css'), path.join(rootPath, 'Dockerfile'), ]; - + const mockFileContents: Record = { - [path.join(rootPath, 'src', 'index.ts')]: '// Main entry point\nimport React from "react";\nimport ReactDOM from "react-dom";\nimport App from "./components/App";\n\nReactDOM.render(, document.getElementById("root"));', - [path.join(rootPath, 'src', 'components', 'App.tsx')]: '// App component\nimport React from "react";\nimport Button from "./Button";\n\nexport default function App() {\n return (\n
\n

Hello World

\n
\n );\n}', - [path.join(rootPath, 'package.json')]: '{\n "name": "mock-project",\n "version": "1.0.0",\n "dependencies": {\n "react": "^17.0.2",\n "react-dom": "^17.0.2"\n }\n}', + [path.join(rootPath, 'src', 'index.ts')]: + '// Main entry point\nimport React from "react";\nimport ReactDOM from "react-dom";\nimport App from "./components/App";\n\nReactDOM.render(, document.getElementById("root"));', + [path.join(rootPath, 'src', 'components', 'App.tsx')]: + '// App component\nimport React from "react";\nimport Button from "./Button";\n\nexport default function App() {\n return (\n
\n

Hello World

\n
\n );\n}', + [path.join(rootPath, 'package.json')]: + '{\n "name": "mock-project",\n "version": "1.0.0",\n "dependencies": {\n "react": "^17.0.2",\n "react-dom": "^17.0.2"\n }\n}', [path.join(rootPath, 'README.md')]: '# Mock Project\n\nThis is a mock project for testing.', }; - + return { rootPath, files, @@ -49,13 +52,13 @@ export function createMockFileSystem(): MockFileSystem { }, isDirectory: (filePath: string): boolean => { // Check if any file starts with this path - return files.some(f => f.startsWith(filePath) && f !== filePath); + return files.some((f) => f.startsWith(filePath) && f !== filePath); }, isFile: (filePath: string): boolean => { return files.includes(filePath); }, getRelativePath: (filePath: string): string => { return path.relative(rootPath, filePath); - } + }, }; } diff --git a/src/test/tsconfig.json b/src/test/tsconfig.json index 7a206c0..1b21353 100644 --- a/src/test/tsconfig.json +++ b/src/test/tsconfig.json @@ -10,7 +10,5 @@ "esModuleInterop": true, "skipLibCheck": true }, - "include": [ - "." - ] + "include": ["."] } diff --git a/src/test/unit/exporter.test.ts b/src/test/unit/exporter.test.ts index 90726a8..3255189 100644 --- a/src/test/unit/exporter.test.ts +++ b/src/test/unit/exporter.test.ts @@ -1,14 +1,14 @@ -import * as assert from 'assert'; -import * as fs from 'fs'; -import * as os from 'os'; -import * as path from 'path'; -import { execFileSync } from 'child_process'; +import * as assert from 'node:assert'; +import { execFileSync } from 'node:child_process'; +import * as fs from 'node:fs'; +import * as os from 'node:os'; +import * as path from 'node:path'; import { exportCodebase, isSupportedFile } from '../../exporter'; import { codeFence, folderTree, formatDocument } from '../../formatters'; import { redactSecrets } from '../../secrets'; import { skeleton } from '../../skeleton'; -import { defaults, ExportCancelled, ExportDocument } from '../../types'; import { estimateTokens } from '../../tokens'; +import { defaults, ExportCancelled, type ExportDocument } from '../../types'; suite('Production export pipeline', () => { let root: string; @@ -18,10 +18,13 @@ suite('Production export pipeline', () => { await fs.promises.writeFile(file, content); return file; }; - const git = (...args: string[]) => execFileSync('git', ['-C', root, ...args], { encoding: 'utf8', windowsHide: true }); - setup(async () => { root = await fs.promises.mkdtemp(path.join(os.tmpdir(), 'codebasemd-test-')); }); + const git = (...args: string[]) => + execFileSync('git', ['-C', root, ...args], { encoding: 'utf8', windowsHide: true }); + setup(async () => { + root = await fs.promises.mkdtemp(path.join(os.tmpdir(), 'codebasemd-test-')); + }); teardown(async () => { - assert.ok(path.resolve(root).startsWith(path.resolve(os.tmpdir()) + path.sep + 'codebasemd-test-')); + assert.ok(path.resolve(root).startsWith(`${path.resolve(os.tmpdir()) + path.sep}codebasemd-test-`)); await fs.promises.rm(root, { recursive: true, force: true }); }); test('honors root/nested gitignore, hard exclusions, and content-only exclusions', async () => { @@ -37,16 +40,23 @@ suite('Production export pipeline', () => { await write('extra.txt', 'hidden'); await write('cache.tmp', 'hidden'); const result = await exportCodebase(root, { ...defaults, exclude: ['extra.txt'] }); - const names = result.document.files.map(file => file.path); + const names = result.document.files.map((file) => file.path); assert.ok(names.includes('src/keep.ts')); - for (const name of ['src/omit.ts', 'ignored/child.ts', 'node_modules/dependency.ts', 'extra.txt', 'cache.tmp']) { assert.ok(!names.includes(name), name); } - assert.ok(result.document.files.find(file => file.path === 'private.txt')?.omitted); + for (const name of ['src/omit.ts', 'ignored/child.ts', 'node_modules/dependency.ts', 'extra.txt', 'cache.tmp']) { + assert.ok(!names.includes(name), name); + } + assert.ok(result.document.files.find((file) => file.path === 'private.txt')?.omitted); assert.ok(!result.content.includes('DO_NOT_EXPORT')); }); test('selection deduplicates overlapping directories and rejects paths outside root', async () => { const file = await write('src/a.ts', 'hello'); - const result = await exportCodebase(root, defaults, { selected: [path.join(root, 'src'), file, path.dirname(root)] }); - assert.deepStrictEqual(result.document.files.map(item => item.path), ['src/a.ts']); + const result = await exportCodebase(root, defaults, { + selected: [path.join(root, 'src'), file, path.dirname(root)], + }); + assert.deepStrictEqual( + result.document.files.map((item) => item.path), + ['src/a.ts'], + ); }); test('directory junctions cannot escape the workspace, including explicit child selections', async () => { const outside = await fs.promises.mkdtemp(path.join(os.tmpdir(), 'codebasemd-outside-')); @@ -56,7 +66,7 @@ suite('Production export pipeline', () => { const result = await exportCodebase(root, defaults, { selected: [path.join(root, 'linked', 'secret.txt')] }); assert.strictEqual(result.document.files.length, 0); } finally { - assert.ok(path.resolve(outside).startsWith(path.resolve(os.tmpdir()) + path.sep + 'codebasemd-outside-')); + assert.ok(path.resolve(outside).startsWith(`${path.resolve(os.tmpdir()) + path.sep}codebasemd-outside-`)); await fs.promises.rm(outside, { recursive: true, force: true }); } }); @@ -66,17 +76,22 @@ suite('Production export pipeline', () => { await write('image.png', 'unsupported'); const result = await exportCodebase(root, { ...defaults, maxFileSizeKB: 1 }); assert.strictEqual(result.document.files.length, 3); - assert.ok(result.document.files.every(file => file.omitted && file.content === '')); + assert.ok(result.document.files.every((file) => file.omitted && file.content === '')); }); test('uses unsaved editor text and bounds its size', async () => { await write('a.ts', 'disk'); const result = await exportCodebase(root, defaults, {}, { readText: async () => 'editor' }); assert.strictEqual(result.document.files[0].content, 'editor'); - const large = await exportCodebase(root, { ...defaults, maxFileSizeKB: 1 }, {}, { readText: async () => 'x'.repeat(2048) }); + const large = await exportCodebase( + root, + { ...defaults, maxFileSizeKB: 1 }, + {}, + { readText: async () => 'x'.repeat(2048) }, + ); assert.ok(large.document.files[0].omitted); }); test('redacts before transformation and counts tokens on final output', async () => { - const secret = 'ghp_' + 'a'.repeat(36); + const secret = `ghp_${'a'.repeat(36)}`; await write('key.ts', `export const api_key = '${secret}';`); for (const contentMode of ['full', 'micro', 'skeleton'] as const) { const result = await exportCodebase(root, { ...defaults, contentMode, customHeader: secret, lineNumbers: true }); @@ -96,15 +111,34 @@ suite('Production export pipeline', () => { await assert.rejects(exportCodebase(root, defaults, {}, { cancelled: () => true }), ExportCancelled); await write('a.ts', 'hello'); let cancelled = false; - await assert.rejects(exportCodebase(root, defaults, {}, { cancelled: () => cancelled, progress: () => { cancelled = true; } }), ExportCancelled); + await assert.rejects( + exportCodebase( + root, + defaults, + {}, + { + cancelled: () => cancelled, + progress: () => { + cancelled = true; + }, + }, + ), + ExportCancelled, + ); }); test('Git exports staged, unstaged, untracked, renamed, and deleted files; filters diffs', async () => { - git('init'); git('config', 'user.email', 'test@example.invalid'); git('config', 'user.name', 'Test'); - await write('tracked.ts', 'before\n'); await write('removed.ts', 'deleted-secret\n'); - await write('rename.ts', 'rename\n'); await write('private.txt', 'private-before\n'); + git('init'); + git('config', 'user.email', 'test@example.invalid'); + git('config', 'user.name', 'Test'); + await write('tracked.ts', 'before\n'); + await write('removed.ts', 'deleted-secret\n'); + await write('rename.ts', 'rename\n'); + await write('private.txt', 'private-before\n'); await write('stable.ts', 'unchanged\n'); - git('add', '.'); git('commit', '-m', 'fixture'); - await write('tracked.ts', 'staged\n'); git('add', 'tracked.ts'); + git('add', '.'); + git('commit', '-m', 'fixture'); + await write('tracked.ts', 'staged\n'); + git('add', 'tracked.ts'); await write('tracked.ts', 'unstaged\n'); await fs.promises.unlink(path.join(root, 'removed.ts')); git('mv', 'rename.ts', 'renamed.ts'); @@ -112,42 +146,66 @@ suite('Production export pipeline', () => { await write('private.txt', 'private-after\n'); await write('.codebaseignore', 'private.txt'); const result = await exportCodebase(root, { ...defaults, includeDiff: true }, { git: true }); - const names = result.document.files.map(file => file.path); - for (const name of ['tracked.ts', 'removed.ts', 'rename.ts', 'renamed.ts', 'untracked.ts']) { assert.ok(names.includes(name), name); } + const names = result.document.files.map((file) => file.path); + for (const name of ['tracked.ts', 'removed.ts', 'rename.ts', 'renamed.ts', 'untracked.ts']) { + assert.ok(names.includes(name), name); + } assert.ok(!names.includes('stable.ts')); assert.ok(result.document.diff.includes('+unstaged')); assert.ok(!result.content.includes('private-before') && !result.content.includes('private-after')); assert.ok(!result.content.includes('deleted-secret')); - assert.strictEqual(result.document.files.find(file => file.path === 'removed.ts')?.omitted, 'Deleted relative to HEAD'); + assert.strictEqual( + result.document.files.find((file) => file.path === 'removed.ts')?.omitted, + 'Deleted relative to HEAD', + ); }); test('Git handles a repository without commits', async () => { - git('init'); await write('staged.ts', 'new file'); git('add', '.'); await write('untracked.ts', 'new'); + git('init'); + await write('staged.ts', 'new file'); + git('add', '.'); + await write('untracked.ts', 'new'); const result = await exportCodebase(root, { ...defaults, includeDiff: true }, { git: true }); assert.strictEqual(result.document.files.length, 2); assert.ok(result.document.diff.includes('+new file')); }); test('Git works when workspace is a repository subdirectory', async () => { - git('init'); git('config', 'user.email', 'test@example.invalid'); git('config', 'user.name', 'Test'); - await write('src/a.ts', 'before'); await write('outside.ts', 'before'); git('add', '.'); git('commit', '-m', 'fixture'); - await write('src/a.ts', 'after'); await write('outside.ts', 'after'); + git('init'); + git('config', 'user.email', 'test@example.invalid'); + git('config', 'user.name', 'Test'); + await write('src/a.ts', 'before'); + await write('outside.ts', 'before'); + git('add', '.'); + git('commit', '-m', 'fixture'); + await write('src/a.ts', 'after'); + await write('outside.ts', 'after'); const result = await exportCodebase(path.join(root, 'src'), { ...defaults, includeDiff: true }, { git: true }); - assert.deepStrictEqual(result.document.files.map(file => file.path), ['a.ts']); + assert.deepStrictEqual( + result.document.files.map((file) => file.path), + ['a.ts'], + ); assert.ok(result.document.diff.includes('+after')); assert.ok(!result.document.diff.includes('outside.ts')); }); test('Git diff secrets are redacted', async () => { - git('init'); git('config', 'user.email', 'test@example.invalid'); git('config', 'user.name', 'Test'); - const secret = 'sk-' + 'a'.repeat(48); - await write('a.ts', `const x = '${secret}';\n`); git('add', '.'); git('commit', '-m', 'fixture'); + git('init'); + git('config', 'user.email', 'test@example.invalid'); + git('config', 'user.name', 'Test'); + const secret = `sk-${'a'.repeat(48)}`; + await write('a.ts', `const x = '${secret}';\n`); + git('add', '.'); + git('commit', '-m', 'fixture'); await write('a.ts', 'const x = "removed";\n'); const result = await exportCodebase(root, { ...defaults, includeDiff: true }, { git: true }); - assert.ok(!result.content.includes(secret)); assert.ok(result.document.diff.includes('***REDACTED***')); + assert.ok(!result.content.includes(secret)); + assert.ok(result.document.diff.includes('***REDACTED***')); }); }); suite('Pure production helpers', () => { test('recognizes special names and common extensions', () => { - for (const file of ['a.ts', 'Dockerfile', '.env.local', 'a.toml', '.gitignore']) { assert.ok(isSupportedFile(file)); } + for (const file of ['a.ts', 'Dockerfile', '.env.local', 'a.toml', '.gitignore']) { + assert.ok(isSupportedFile(file)); + } assert.ok(!isSupportedFile('image.png')); }); test('Markdown fences cannot be closed by embedded backticks', () => { @@ -158,29 +216,53 @@ suite('Pure production helpers', () => { assert.ok(tree.includes('a.ts') && tree.includes('b.ts') && tree.includes('└──')); }); test('XML escapes content and attribute injection; all formats retain metadata', () => { - const doc: ExportDocument = { header: '
', mode: 'full', diff: '', redactions: 0, - files: [{ path: 'a"<&.ts', language: 'typescript', content: ' & text', tokens: 4, redactions: 0 }] }; + const doc: ExportDocument = { + header: '
', + mode: 'full', + diff: '', + redactions: 0, + files: [{ path: 'a"<&.ts', language: 'typescript', content: ' & text', tokens: 4, redactions: 0 }], + }; const xml = formatDocument(doc, 'xml'); - assert.ok(xml.includes('a"<&.ts')); assert.ok(xml.includes('</file> & text')); - for (const format of ['markdown', 'xml', 'text'] as const) { assert.ok(formatDocument(doc, format).includes('characters / 4')); } + assert.ok(xml.includes('a"<&.ts')); + assert.ok(xml.includes('</file> & text')); + for (const format of ['markdown', 'xml', 'text'] as const) { + assert.ok(formatDocument(doc, format).includes('characters / 4')); + } }); test('redacts provider tokens, assignments, JWT and private keys', () => { - const examples = ['AKIA' + 'A'.repeat(16), 'ghp_' + 'a'.repeat(36), 'github_pat_' + 'a'.repeat(30), - 'sk-proj-' + 'a'.repeat(30), 'sk-ant-api03-' + 'a'.repeat(30), 'xoxb-' + 'a'.repeat(20), - 'AIza' + 'a'.repeat(35), 'sk_live_' + 'a'.repeat(24), 'eyJabc.eyJdef.signature', + const examples = [ + `AKIA${'A'.repeat(16)}`, + `ghp_${'a'.repeat(36)}`, + `github_pat_${'a'.repeat(30)}`, + `sk-proj-${'a'.repeat(30)}`, + `sk-ant-api03-${'a'.repeat(30)}`, + `xoxb-${'a'.repeat(20)}`, + `AIza${'a'.repeat(35)}`, + `sk_live_${'a'.repeat(24)}`, + 'eyJabc.eyJdef.signature', '-----BEGIN RSA PRIVATE KEY-----\nabc\n-----END RSA PRIVATE KEY-----', - 'password="hunter2"', 'API_KEY=unquoted', '+API_KEY=unquoted', '-PASSWORD=oldsecret', '"client_secret": "secretvalue"']; + 'password="hunter2"', + 'API_KEY=unquoted', + '+API_KEY=unquoted', + '-PASSWORD=oldsecret', + '"client_secret": "secretvalue"', + ]; for (const example of examples) { - const result = redactSecrets(example); assert.ok(result.count > 0, example); assert.ok(result.text.includes('***REDACTED***')); + const result = redactSecrets(example); + assert.ok(result.count > 0, example); + assert.ok(result.text.includes('***REDACTED***')); } assert.strictEqual(redactSecrets('const answer = 42;').count, 0); }); test('skeleton preserves Python declarations and drops bodies; data falls back unchanged', () => { const result = skeleton('import os\nclass A:\n def run(self):\n return 42', 'python'); - assert.ok(result.includes('def run(self):')); assert.ok(!result.includes('return 42')); + assert.ok(result.includes('def run(self):')); + assert.ok(!result.includes('return 42')); assert.strictEqual(skeleton('{"answer":42}', 'json'), '{"answer":42}'); }); test('token estimates round up and handle empty content', () => { - assert.strictEqual(estimateTokens(''), 0); assert.strictEqual(estimateTokens('12345'), 2); + assert.strictEqual(estimateTokens(''), 0); + assert.strictEqual(estimateTokens('12345'), 2); }); }); diff --git a/src/types.ts b/src/types.ts index da19df7..4a1be72 100644 --- a/src/types.ts +++ b/src/types.ts @@ -15,9 +15,17 @@ export interface ExportOptions { customHeader: string; } export const defaults: ExportOptions = { - format: 'markdown', contentMode: 'full', target: 'file', tokenBudget: 32000, - redactSecrets: true, maxFileSizeKB: 1024, exclude: [], respectGitignore: true, - includeDiff: false, lineNumbers: false, customHeader: '' + format: 'markdown', + contentMode: 'full', + target: 'file', + tokenBudget: 32000, + redactSecrets: true, + maxFileSizeKB: 1024, + exclude: [], + respectGitignore: true, + includeDiff: false, + lineNumbers: false, + customHeader: '', }; export interface ExportFile { path: string; @@ -40,8 +48,12 @@ export interface ExportHooks { readText?: (absolutePath: string) => Promise; } export class ExportCancelled extends Error { - constructor() { super('Export cancelled.'); } + constructor() { + super('Export cancelled.'); + } } export function checkCancelled(hooks: ExportHooks): void { - if (hooks.cancelled?.()) { throw new ExportCancelled(); } + if (hooks.cancelled?.()) { + throw new ExportCancelled(); + } } diff --git a/tsconfig.json b/tsconfig.json index 3930ad4..f806084 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,15 @@ { "compilerOptions": { - "target": "es6", - "lib": ["es6"], - "module": "commonjs", + "target": "ES2022", + "lib": ["ES2022"], + "module": "node16", "outDir": "out", "sourceMap": true, "rootDir": "src", "strict": true, "noImplicitAny": true, "types": ["node", "vscode", "mocha"], - "moduleResolution": "node", + "moduleResolution": "node16", "esModuleInterop": true, "allowSyntheticDefaultImports": true, "skipLibCheck": true,