Fix EC violations

This commit is contained in:
Viktor Szépe
2025-04-19 20:27:03 +00:00
parent daddcfafb2
commit 3ff6202404
50 changed files with 387 additions and 387 deletions

View File

@@ -1,12 +1,12 @@
node_modules node_modules
npm-debug.log npm-debug.log
.git .git
.gitignore .gitignore
.env .env
.env.* .env.*
*.md *.md
.vscode .vscode
coverage coverage
.nyc_output .nyc_output
dist dist
build build

View File

@@ -1,6 +1,6 @@
version: 2 version: 2
updates: updates:
- package-ecosystem: "github-actions" - package-ecosystem: "github-actions"
directory: "/" directory: "/"
schedule: schedule:
interval: "daily" interval: "daily"

View File

@@ -1,69 +1,69 @@
name: Docker name: Docker
on: on:
push: push:
branches: branches:
- "main" - "main"
paths-ignore: paths-ignore:
- "**.md" - "**.md"
- LICENSE - LICENSE
pull_request: pull_request:
branches: branches:
- "*" - "*"
paths: paths:
- "Dockerfile" - "Dockerfile"
- ".dockerignore" - ".dockerignore"
- ".github/workflows/docker.yml" - ".github/workflows/docker.yml"
workflow_dispatch: workflow_dispatch:
release: release:
types: [published, edited] types: [published, edited]
permissions: permissions:
contents: read contents: read
packages: write packages: write
jobs: jobs:
build-and-publish-image: build-and-publish-image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Docker metadata - name: Docker metadata
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: | images: |
ghcr.io/yamadashy/repomix ghcr.io/yamadashy/repomix
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=pr type=ref,event=pr
type=semver,pattern={{version}} type=semver,pattern={{version}}
type=semver,pattern={{major}} type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest,enable=${{ github.event_name == 'release' }} type=raw,value=latest,enable=${{ github.event_name == 'release' }}
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Publish Docker Image - name: Build and Publish Docker Image
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}

View File

@@ -27,4 +27,4 @@
## Git Workflow ## Git Workflow
- Write detailed commit messages focusing on the "why" rather than the "what" - Write detailed commit messages focusing on the "why" rather than the "what"
- Run `npm run lint && npm test` before committing changes - Run `npm run lint && npm test` before committing changes

View File

@@ -1,26 +1,26 @@
FROM node:22-slim FROM node:22-slim
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
git \ git \
ca-certificates \ ca-certificates \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN mkdir /repomix RUN mkdir /repomix
WORKDIR /repomix WORKDIR /repomix
# Install dependencies and build repomix, then link the package to the global scope # Install dependencies and build repomix, then link the package to the global scope
# To reduce the size of the layer, npm ci and npm link are executed in the same RUN command # To reduce the size of the layer, npm ci and npm link are executed in the same RUN command
COPY . . COPY . .
RUN npm ci \ RUN npm ci \
&& npm run build \ && npm run build \
&& npm link \ && npm link \
&& npm ci --omit=dev \ && npm ci --omit=dev \
&& npm cache clean --force && npm cache clean --force
WORKDIR /app WORKDIR /app
# Check the operation of repomix # Check the operation of repomix
RUN repomix --version RUN repomix --version
RUN repomix --help RUN repomix --help
ENTRYPOINT ["repomix"] ENTRYPOINT ["repomix"]

View File

@@ -4,4 +4,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -602,19 +602,19 @@ You can install the Repomix MCP server in VS Code using one of these methods:
1. **Using the Install Badge:** 1. **Using the Install Badge:**
[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=repomix&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D) [![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Server-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=repomix&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=repomix&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D&quality=insiders) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Server-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=repomix&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D&quality=insiders)
2. **Using the Command Line:** 2. **Using the Command Line:**
```bash ```bash
code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
For VS Code Insiders: For VS Code Insiders:
```bash ```bash
code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
**For Cline (VS Code extension):** **For Cline (VS Code extension):**
@@ -686,8 +686,6 @@ When running as an MCP server, Repomix provides the following tools:
- Provides safe directory traversal with proper error handling - Provides safe directory traversal with proper error handling
- Validates paths and ensures they are absolute - Validates paths and ensures they are absolute
## ⚙️ Configuration ## ⚙️ Configuration
Create a `repomix.config.json` file in your project root for custom configurations. Create a `repomix.config.json` file in your project root for custom configurations.
@@ -1012,11 +1010,10 @@ We welcome contributions from the community! To get started, please refer to our
<img alt="contributors" src="https://contrib.rocks/image?repo=yamadashy/repomix"/> <img alt="contributors" src="https://contrib.rocks/image?repo=yamadashy/repomix"/>
</a> </a>
## 🔒 Privacy Policy ## 🔒 Privacy Policy
### Repomix CLI Tool ### Repomix CLI Tool
- **Data Collection**: The Repomix CLI tool does **not** collect, transmit, or store any user data, telemetry, or repository information. - **Data Collection**: The Repomix CLI tool does **not** collect, transmit, or store any user data, telemetry, or repository information.
- **Network Usage**: Repomix CLI operates fully offline after installation. The only cases where an internet connection is needed are: - **Network Usage**: Repomix CLI operates fully offline after installation. The only cases where an internet connection is needed are:
- Installation via npm/yarn. - Installation via npm/yarn.
@@ -1025,13 +1022,14 @@ We welcome contributions from the community! To get started, please refer to our
- **Security Considerations**: Since all processing is local, Repomix CLI is safe to use with private and internal repositories. - **Security Considerations**: Since all processing is local, Repomix CLI is safe to use with private and internal repositories.
### Repomix Website ([repomix.com](https://repomix.com/)) ### Repomix Website ([repomix.com](https://repomix.com/))
- **Data Collection**: The Repomix website uses **Google Analytics** to collect usage data, such as page views and user interactions. This helps us understand how the website is used and improve the user experience. - **Data Collection**: The Repomix website uses **Google Analytics** to collect usage data, such as page views and user interactions. This helps us understand how the website is used and improve the user experience.
### Liability Disclaimer ### Liability Disclaimer
Repomix (both the CLI tool and the website) is provided "as is" without any warranties or guarantees. Repomix (both the CLI tool and the website) is provided "as is" without any warranties or guarantees.
We do not take responsibility for how the generated output is used, including but not limited to its accuracy, legality, or any potential consequences arising from its use. We do not take responsibility for how the generated output is used, including but not limited to its accuracy, legality, or any potential consequences arising from its use.
## 📜 License ## 📜 License
This project is licensed under the [MIT License](LICENSE). This project is licensed under the [MIT License](LICENSE).
@@ -1041,5 +1039,4 @@ This project is licensed under the [MIT License](LICENSE).
<a href="#repo-content-pjax-container" target="_blank"> <a href="#repo-content-pjax-container" target="_blank">
Back To Top Back To Top
</a> </a>
</p> </p>

View File

@@ -154,13 +154,13 @@ To verify the installation is working:
1. Restart your LLM application (Cline, Claude Desktop, etc.) 1. Restart your LLM application (Cline, Claude Desktop, etc.)
2. Test the connection by running a simple command like: 2. Test the connection by running a simple command like:
``` ```
Please package the local directory /path/to/project for AI analysis using Repomix. Please package the local directory /path/to/project for AI analysis using Repomix.
``` ```
or or
``` ```
Please fetch and package the GitHub repository yamadashy/repomix for AI analysis. Please fetch and package the GitHub repository yamadashy/repomix for AI analysis.
``` ```
## Usage Examples ## Usage Examples
@@ -189,20 +189,20 @@ Please package my project at /path/to/project, but only include TypeScript files
### Common Issues and Solutions ### Common Issues and Solutions
1. **MCP server connection issues** 1. **MCP server connection issues**
- Verify the syntax in your MCP settings file is correct - Verify the syntax in your MCP settings file is correct
- Ensure you have an active internet connection (needed for npx to fetch the package) - Ensure you have an active internet connection (needed for npx to fetch the package)
- Check if any other MCP servers are causing conflicts - Check if any other MCP servers are causing conflicts
2. **Packaging failures** 2. **Packaging failures**
- Verify the specified directory or repository exists - Verify the specified directory or repository exists
- Check if you have sufficient disk space - Check if you have sufficient disk space
- For remote repositories, ensure you have internet connectivity - For remote repositories, ensure you have internet connectivity
- Try with simpler parameters first, then add complexity - Try with simpler parameters first, then add complexity
3. **JSON parsing errors in configuration** 3. **JSON parsing errors in configuration**
- Make sure your MCP settings file is properly formatted - Make sure your MCP settings file is properly formatted
- Verify all paths use forward slashes, even on Windows - Verify all paths use forward slashes, even on Windows
- Check for any missing commas or brackets in the configuration - Check for any missing commas or brackets in the configuration
## Additional Information ## Additional Information

View File

@@ -2,49 +2,49 @@ export const queryCSharp = `
(comment) @comment (comment) @comment
(class_declaration (class_declaration
name: (identifier) @name.definition.class name: (identifier) @name.definition.class
) @definition.class ) @definition.class
(class_declaration (class_declaration
bases: (base_list (_) @name.reference.class) bases: (base_list (_) @name.reference.class)
) @reference.class ) @reference.class
(interface_declaration (interface_declaration
name: (identifier) @name.definition.interface name: (identifier) @name.definition.interface
) @definition.interface ) @definition.interface
(interface_declaration (interface_declaration
bases: (base_list (_) @name.reference.interface) bases: (base_list (_) @name.reference.interface)
) @reference.interface ) @reference.interface
(method_declaration (method_declaration
name: (identifier) @name.definition.method name: (identifier) @name.definition.method
) @definition.method ) @definition.method
(object_creation_expression (object_creation_expression
type: (identifier) @name.reference.class type: (identifier) @name.reference.class
) @reference.class ) @reference.class
(type_parameter_constraints_clause (type_parameter_constraints_clause
target: (identifier) @name.reference.class target: (identifier) @name.reference.class
) @reference.class ) @reference.class
(type_constraint (type_constraint
type: (identifier) @name.reference.class type: (identifier) @name.reference.class
) @reference.class ) @reference.class
(variable_declaration (variable_declaration
type: (identifier) @name.reference.class type: (identifier) @name.reference.class
) @reference.class ) @reference.class
(invocation_expression (invocation_expression
function: function:
(member_access_expression (member_access_expression
name: (identifier) @name.reference.send name: (identifier) @name.reference.send
) )
) @reference.send ) @reference.send
(namespace_declaration (namespace_declaration
name: (identifier) @name.definition.module name: (identifier) @name.definition.module
) @definition.module ) @definition.module
`; `;

View File

@@ -3,9 +3,9 @@ export const queryTypescript = `
(import_clause (identifier) @name.reference.module)) @definition.import (import_clause (identifier) @name.reference.module)) @definition.import
(import_statement (import_statement
(import_clause (import_clause
(named_imports (named_imports
(import_specifier (import_specifier
name: (identifier) @name.reference.module))) @definition.import) name: (identifier) @name.reference.module))) @definition.import)
(comment) @comment (comment) @comment

View File

@@ -113,7 +113,7 @@ describe('TokenCounter', () => {
## Subheading ## Subheading
* List item 1 * List item 1
* List item 2 * List item 2
**Bold text** and _italic text_ **Bold text** and _italic text_
`; `;
const mockTokens = Array(15).fill(1); // 15 tokens const mockTokens = Array(15).fill(1); // 15 tokens

View File

@@ -6,11 +6,12 @@
type="submit" type="submit"
> >
{{ loading ? 'Processing...' : 'Pack' }} {{ loading ? 'Processing...' : 'Pack' }}
<svg v-if="!loading" <svg
class="pack-button-icon" v-if="!loading"
width="20" class="pack-button-icon"
height="20" width="20"
viewBox="96.259 93.171 300 300" height="20"
viewBox="96.259 93.171 300 300"
> >
<g transform="matrix(1.160932, 0, 0, 1.160932, 97.635941, 94.725143)"> <g transform="matrix(1.160932, 0, 0, 1.160932, 97.635941, 94.725143)">
<path <path

View File

@@ -55,12 +55,13 @@ function triggerFileInput() {
<template> <template>
<div class="upload-wrapper"> <div class="upload-wrapper">
<div class="upload-container" <div
:class="{ 'drag-active': dragActive, 'has-error': errorMessage }" class="upload-container"
@dragover.prevent="dragActive = true" :class="{ 'drag-active': dragActive, 'has-error': errorMessage }"
@dragleave="dragActive = false" @dragover.prevent="dragActive = true"
@drop.prevent="handleFileSelect($event.dataTransfer?.files || null)" @dragleave="dragActive = false"
@click="triggerFileInput" @drop.prevent="handleFileSelect($event.dataTransfer?.files || null)"
@click="triggerFileInput"
> >
<input <input
ref="fileInput" ref="fileInput"

View File

@@ -174,12 +174,13 @@ const triggerFileInput = () => {
<template> <template>
<div class="upload-wrapper"> <div class="upload-wrapper">
<div class="upload-container" <div
:class="{ 'drag-active': dragActive, 'has-error': errorMessage }" class="upload-container"
@dragover.prevent="dragActive = true" :class="{ 'drag-active': dragActive, 'has-error': errorMessage }"
@dragleave="dragActive = false" @dragover.prevent="dragActive = true"
@drop.prevent="handleFolderDrop($event)" @dragleave="dragActive = false"
@click="triggerFileInput" @drop.prevent="handleFolderDrop($event)"
@click="triggerFileInput"
> >
<input <input
ref="fileInput" ref="fileInput"
@@ -337,4 +338,4 @@ const triggerFileInput = () => {
font-size: 13px; font-size: 13px;
} }
} }
</style> </style>

View File

@@ -109,4 +109,4 @@ Die Code-Komprimierung ist besonders nützlich wenn:
Sie können die Komprimierung mit anderen Optionen kombinieren: Sie können die Komprimierung mit anderen Optionen kombinieren:
- `--remove-comments`: Code-Kommentare entfernen - `--remove-comments`: Code-Kommentare entfernen
- `--remove-empty-lines`: Leere Zeilen entfernen - `--remove-empty-lines`: Leere Zeilen entfernen
- `--output-show-line-numbers`: Zeilennummern zur Ausgabe hinzufügen - `--output-show-line-numbers`: Zeilennummern zur Ausgabe hinzufügen

View File

@@ -125,16 +125,16 @@ pnpm publish
### Häufige Probleme ### Häufige Probleme
1. **Node.js Version** 1. **Node.js Version**
- Stellen Sie sicher, dass Sie Node.js ≥ 18.0.0 verwenden - Stellen Sie sicher, dass Sie Node.js ≥ 18.0.0 verwenden
- Überprüfen Sie mit `node --version` - Überprüfen Sie mit `node --version`
2. **Abhängigkeitsprobleme** 2. **Abhängigkeitsprobleme**
- Löschen Sie `node_modules` und den Lock-File - Löschen Sie `node_modules` und den Lock-File
- Führen Sie `pnpm install` erneut aus - Führen Sie `pnpm install` erneut aus
3. **Build-Fehler** 3. **Build-Fehler**
- Führen Sie `pnpm run clean` aus - Führen Sie `pnpm run clean` aus
- Bauen Sie das Projekt neu mit `pnpm run build` - Bauen Sie das Projekt neu mit `pnpm run build`
### Support ### Support

View File

@@ -25,19 +25,19 @@ Sie können den Repomix MCP-Server in VS Code mit einer dieser Methoden installi
1. **Über das Installations-Badge:** 1. **Über das Installations-Badge:**
[![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br> [![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br>
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)
2. **Über die Kommandozeile:** 2. **Über die Kommandozeile:**
```bash ```bash
code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
Für VS Code Insiders: Für VS Code Insiders:
```bash ```bash
code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
### Für Cline (VS Code-Erweiterung) ### Für Cline (VS Code-Erweiterung)
@@ -115,16 +115,16 @@ Dieses Tool holt, klont und verpackt ein GitHub-Repository in eine konsolidierte
Der Repomix MCP-Server bietet zwei Dateisystemwerkzeuge, die es KI-Assistenten ermöglichen, sicher mit dem lokalen Dateisystem zu interagieren: Der Repomix MCP-Server bietet zwei Dateisystemwerkzeuge, die es KI-Assistenten ermöglichen, sicher mit dem lokalen Dateisystem zu interagieren:
1. `file_system_read_file` 1. `file_system_read_file`
- Liest Dateiinhalte unter Verwendung absoluter Pfade - Liest Dateiinhalte unter Verwendung absoluter Pfade
- Implementiert Sicherheitsvalidierung mit [Secretlint](https://github.com/secretlint/secretlint) - Implementiert Sicherheitsvalidierung mit [Secretlint](https://github.com/secretlint/secretlint)
- Verhindert den Zugriff auf Dateien mit sensiblen Informationen - Verhindert den Zugriff auf Dateien mit sensiblen Informationen
- Liefert klare Fehlermeldungen für ungültige Pfade und Sicherheitsprobleme - Liefert klare Fehlermeldungen für ungültige Pfade und Sicherheitsprobleme
2. `file_system_read_directory` 2. `file_system_read_directory`
- Listet Verzeichnisinhalte unter Verwendung absoluter Pfade - Listet Verzeichnisinhalte unter Verwendung absoluter Pfade
- Zeigt Dateien und Verzeichnisse mit klaren Indikatoren (`[FILE]` oder `[DIR]`) - Zeigt Dateien und Verzeichnisse mit klaren Indikatoren (`[FILE]` oder `[DIR]`)
- Bietet sichere Verzeichnisnavigation mit angemessener Fehlerbehandlung - Bietet sichere Verzeichnisnavigation mit angemessener Fehlerbehandlung
- Validiert Pfade und stellt sicher, dass sie absolut sind - Validiert Pfade und stellt sicher, dass sie absolut sind
Beide Werkzeuge beinhalten robuste Sicherheitsmaßnahmen: Beide Werkzeuge beinhalten robuste Sicherheitsmaßnahmen:
- Validierung absoluter Pfade zur Verhinderung von Directory Traversal-Angriffen - Validierung absoluter Pfade zur Verhinderung von Directory Traversal-Angriffen

View File

@@ -32,10 +32,10 @@ Oder in `repomix.config.json`:
1. **Ausschluss von Binärdateien**: Binärdateien werden nicht in die Ausgabe aufgenommen 1. **Ausschluss von Binärdateien**: Binärdateien werden nicht in die Ausgabe aufgenommen
2. **Git-bewusst**: Berücksichtigt `.gitignore`-Muster 2. **Git-bewusst**: Berücksichtigt `.gitignore`-Muster
3. **Automatische Erkennung**: Sucht nach häufigen Sicherheitsproblemen: 3. **Automatische Erkennung**: Sucht nach häufigen Sicherheitsproblemen:
- AWS-Anmeldedaten - AWS-Anmeldedaten
- Datenbankverbindungszeichenfolgen - Datenbankverbindungszeichenfolgen
- Authentifizierungstoken - Authentifizierungstoken
- Private Schlüssel - Private Schlüssel
## Wenn die Sicherheitsprüfung Probleme findet ## Wenn die Sicherheitsprüfung Probleme findet
@@ -45,9 +45,9 @@ Beispielausgabe:
────────────────── ──────────────────
2 verdächtige Datei(en) erkannt und ausgeschlossen: 2 verdächtige Datei(en) erkannt und ausgeschlossen:
1. config/credentials.json 1. config/credentials.json
- AWS-Zugriffsschlüssel gefunden - AWS-Zugriffsschlüssel gefunden
2. .env.local 2. .env.local
- Datenbank-Passwort gefunden - Datenbank-Passwort gefunden
``` ```
## Best Practices ## Best Practices

View File

@@ -25,19 +25,19 @@ You can install the Repomix MCP server in VS Code using one of these methods:
1. **Using the Install Badge:** 1. **Using the Install Badge:**
[![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br> [![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br>
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)
2. **Using the Command Line:** 2. **Using the Command Line:**
```bash ```bash
code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
For VS Code Insiders: For VS Code Insiders:
```bash ```bash
code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
### For Cline (VS Code extension) ### For Cline (VS Code extension)
@@ -134,16 +134,16 @@ This tool reads the contents of a Repomix output file in environments where dire
Repomix's MCP server provides two file system tools that allow AI assistants to safely interact with the local file system: Repomix's MCP server provides two file system tools that allow AI assistants to safely interact with the local file system:
1. `file_system_read_file` 1. `file_system_read_file`
- Reads file contents using absolute paths - Reads file contents using absolute paths
- Implements security validation using [Secretlint](https://github.com/secretlint/secretlint) - Implements security validation using [Secretlint](https://github.com/secretlint/secretlint)
- Prevents access to files containing sensitive information - Prevents access to files containing sensitive information
- Returns formatted content with clear error messages for invalid paths or security issues - Returns formatted content with clear error messages for invalid paths or security issues
2. `file_system_read_directory` 2. `file_system_read_directory`
- Lists directory contents using absolute paths - Lists directory contents using absolute paths
- Shows both files and directories with clear indicators (`[FILE]` or `[DIR]`) - Shows both files and directories with clear indicators (`[FILE]` or `[DIR]`)
- Provides safe directory traversal with proper error handling - Provides safe directory traversal with proper error handling
- Validates paths and ensures they are absolute - Validates paths and ensures they are absolute
Both tools incorporate robust security measures: Both tools incorporate robust security measures:
- Absolute path validation to prevent directory traversal attacks - Absolute path validation to prevent directory traversal attacks

View File

@@ -32,10 +32,10 @@ Or in `repomix.config.json`:
1. **Binary File Exclusion**: Binary files are not included in output 1. **Binary File Exclusion**: Binary files are not included in output
2. **Git-Aware**: Respects `.gitignore` patterns 2. **Git-Aware**: Respects `.gitignore` patterns
3. **Automated Detection**: Scans for common security issues: 3. **Automated Detection**: Scans for common security issues:
- AWS credentials - AWS credentials
- Database connection strings - Database connection strings
- Authentication tokens - Authentication tokens
- Private keys - Private keys
## When Security Check Finds Issues ## When Security Check Finds Issues
@@ -45,9 +45,9 @@ Example output:
────────────────── ──────────────────
2 suspicious file(s) detected and excluded: 2 suspicious file(s) detected and excluded:
1. config/credentials.json 1. config/credentials.json
- Found AWS access key - Found AWS access key
2. .env.local 2. .env.local
- Found database password - Found database password
``` ```
## Best Practices ## Best Practices

View File

@@ -109,4 +109,4 @@ La compresión de código es particularmente útil cuando:
Puedes combinar la compresión con otras opciones: Puedes combinar la compresión con otras opciones:
- `--remove-comments`: Eliminar comentarios del código - `--remove-comments`: Eliminar comentarios del código
- `--remove-empty-lines`: Eliminar líneas vacías - `--remove-empty-lines`: Eliminar líneas vacías
- `--output-show-line-numbers`: Agregar números de línea a la salida - `--output-show-line-numbers`: Agregar números de línea a la salida

View File

@@ -25,19 +25,19 @@ Puedes instalar el servidor MCP de Repomix en VS Code usando uno de estos métod
1. **Usando la insignia de instalación:** 1. **Usando la insignia de instalación:**
[![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br> [![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br>
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)
2. **Usando la línea de comandos:** 2. **Usando la línea de comandos:**
```bash ```bash
code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
Para VS Code Insiders: Para VS Code Insiders:
```bash ```bash
code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
### Para Cline (extensión de VS Code) ### Para Cline (extensión de VS Code)
@@ -134,16 +134,16 @@ Esta herramienta lee el contenido de un archivo de salida de Repomix en entornos
El servidor MCP de Repomix proporciona dos herramientas de sistema de archivos que permiten a los asistentes de IA interactuar de manera segura con el sistema de archivos local: El servidor MCP de Repomix proporciona dos herramientas de sistema de archivos que permiten a los asistentes de IA interactuar de manera segura con el sistema de archivos local:
1. `file_system_read_file` 1. `file_system_read_file`
- Lee contenido de archivos usando rutas absolutas - Lee contenido de archivos usando rutas absolutas
- Implementa validación de seguridad usando [Secretlint](https://github.com/secretlint/secretlint) - Implementa validación de seguridad usando [Secretlint](https://github.com/secretlint/secretlint)
- Previene el acceso a archivos que contienen información sensible - Previene el acceso a archivos que contienen información sensible
- Devuelve mensajes de error claros para rutas inválidas y problemas de seguridad - Devuelve mensajes de error claros para rutas inválidas y problemas de seguridad
2. `file_system_read_directory` 2. `file_system_read_directory`
- Lista contenidos de directorios usando rutas absolutas - Lista contenidos de directorios usando rutas absolutas
- Muestra archivos y directorios con indicadores claros (`[FILE]` o `[DIR]`) - Muestra archivos y directorios con indicadores claros (`[FILE]` o `[DIR]`)
- Proporciona navegación segura de directorios con manejo apropiado de errores - Proporciona navegación segura de directorios con manejo apropiado de errores
- Valida rutas y asegura que sean absolutas - Valida rutas y asegura que sean absolutas
Ambas herramientas incorporan medidas de seguridad robustas: Ambas herramientas incorporan medidas de seguridad robustas:
- Validación de rutas absolutas para prevenir ataques de traversal de directorios - Validación de rutas absolutas para prevenir ataques de traversal de directorios

View File

@@ -45,9 +45,9 @@ Ejemplo de salida:
────────────────── ──────────────────
2 archivo(s) sospechoso(s) detectado(s) y excluido(s): 2 archivo(s) sospechoso(s) detectado(s) y excluido(s):
1. config/credentials.json 1. config/credentials.json
- Se encontró la clave de acceso de AWS - Se encontró la clave de acceso de AWS
2. .env.local 2. .env.local
- Se encontró la contraseña de la base de datos - Se encontró la contraseña de la base de datos
``` ```
## Mejores prácticas ## Mejores prácticas

View File

@@ -107,4 +107,4 @@ La compression de code est particulièrement utile pour:
Vous pouvez combiner la compression avec d'autres options: Vous pouvez combiner la compression avec d'autres options:
- `--remove-comments`: Supprimer les commentaires du code - `--remove-comments`: Supprimer les commentaires du code
- `--remove-empty-lines`: Supprimer les lignes vides - `--remove-empty-lines`: Supprimer les lignes vides
- `--output-show-line-numbers`: Ajouter les numéros de ligne à la sortie - `--output-show-line-numbers`: Ajouter les numéros de ligne à la sortie

View File

@@ -51,4 +51,4 @@ function test() {
## Remarques ## Remarques
- La suppression des commentaires est effectuée avant les autres étapes de traitement, comme l'ajout de numéros de ligne. - La suppression des commentaires est effectuée avant les autres étapes de traitement, comme l'ajout de numéros de ligne.
- Certains commentaires, comme les commentaires JSDoc, peuvent être préservés selon le langage et le contexte. - Certains commentaires, comme les commentaires JSDoc, peuvent être préservés selon le langage et le contexte.

View File

@@ -117,4 +117,4 @@ Exemple de configuration:
Lorsque `output.removeComments` est défini sur `true`, Repomix supprimera les commentaires des types de fichiers pris en charge pour réduire la taille de sortie et se concentrer sur le contenu essentiel du code. Lorsque `output.removeComments` est défini sur `true`, Repomix supprimera les commentaires des types de fichiers pris en charge pour réduire la taille de sortie et se concentrer sur le contenu essentiel du code.
Pour les langages pris en charge et des exemples détaillés, consultez le [Guide de suppression des commentaires](comment-removal). Pour les langages pris en charge et des exemples détaillés, consultez le [Guide de suppression des commentaires](comment-removal).

View File

@@ -36,4 +36,4 @@ Ce dépôt contient le code source de l'outil Repomix. Veuillez suivre ces direc
2. Portez une attention particulière aux vérifications de sécurité dans `src/core/security`. 2. Portez une attention particulière aux vérifications de sécurité dans `src/core/security`.
3. Ignorez tous les fichiers dans le répertoire `tests`. 3. Ignorez tous les fichiers dans le répertoire `tests`.
</instruction> </instruction>
``` ```

View File

@@ -37,4 +37,4 @@ npm run lint
## Besoin d'aide? ## Besoin d'aide?
- [Ouvrir un ticket](https://github.com/yamadashy/repomix/issues) - [Ouvrir un ticket](https://github.com/yamadashy/repomix/issues)
- [Rejoindre Discord](https://discord.gg/wNYzTwZFku) - [Rejoindre Discord](https://discord.gg/wNYzTwZFku)

View File

@@ -66,4 +66,4 @@ npm run build
3. Publier 3. Publier
```bash ```bash
npm publish npm publish
``` ```

View File

@@ -57,4 +57,4 @@ Rejoignez notre [communauté Discord](https://discord.gg/wNYzTwZFku) pour:
Vous avez trouvé un bug ou besoin d'aide? Vous avez trouvé un bug ou besoin d'aide?
- [Ouvrez un ticket sur GitHub](https://github.com/yamadashy/repomix/issues) - [Ouvrez un ticket sur GitHub](https://github.com/yamadashy/repomix/issues)
- Rejoignez notre serveur Discord - Rejoignez notre serveur Discord
- Consultez la [documentation](https://repomix.com) - Consultez la [documentation](https://repomix.com)

View File

@@ -63,4 +63,4 @@ Après l'installation, vérifiez que Repomix fonctionne:
```bash ```bash
repomix --version repomix --version
repomix --help repomix --help
``` ```

View File

@@ -24,19 +24,19 @@ Vous pouvez installer le serveur MCP Repomix dans VS Code en utilisant l'une de
1. **Utilisation du badge d'installation :** 1. **Utilisation du badge d'installation :**
[![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br> [![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br>
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)
2. **Utilisation de la ligne de commande :** 2. **Utilisation de la ligne de commande :**
```bash ```bash
code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
Pour VS Code Insiders : Pour VS Code Insiders :
```bash ```bash
code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
### Pour Cline (extension VS Code) ### Pour Cline (extension VS Code)
@@ -113,16 +113,16 @@ Cet outil récupère, clone et package un dépôt GitHub dans un fichier consoli
Le serveur MCP de Repomix fournit deux outils système de fichiers qui permettent aux assistants IA d'interagir en toute sécurité avec le système de fichiers local: Le serveur MCP de Repomix fournit deux outils système de fichiers qui permettent aux assistants IA d'interagir en toute sécurité avec le système de fichiers local:
1. `file_system_read_file` 1. `file_system_read_file`
- Lit le contenu des fichiers en utilisant des chemins absolus - Lit le contenu des fichiers en utilisant des chemins absolus
- Implémente la validation de sécurité avec [Secretlint](https://github.com/secretlint/secretlint) - Implémente la validation de sécurité avec [Secretlint](https://github.com/secretlint/secretlint)
- Empêche l'accès aux fichiers contenant des informations sensibles - Empêche l'accès aux fichiers contenant des informations sensibles
- Renvoie du contenu formaté avec des messages d'erreur clairs pour les chemins invalides ou les problèmes de sécurité - Renvoie du contenu formaté avec des messages d'erreur clairs pour les chemins invalides ou les problèmes de sécurité
2. `file_system_read_directory` 2. `file_system_read_directory`
- Liste le contenu des répertoires en utilisant des chemins absolus - Liste le contenu des répertoires en utilisant des chemins absolus
- Affiche les fichiers et répertoires avec des indicateurs clairs (`[FILE]` ou `[DIR]`) - Affiche les fichiers et répertoires avec des indicateurs clairs (`[FILE]` ou `[DIR]`)
- Fournit une traversée sécurisée des répertoires avec une gestion appropriée des erreurs - Fournit une traversée sécurisée des répertoires avec une gestion appropriée des erreurs
- Valide les chemins et s'assure qu'ils sont absolus - Valide les chemins et s'assure qu'ils sont absolus
Les deux outils intègrent des mesures de sécurité robustes: Les deux outils intègrent des mesures de sécurité robustes:
- Validation des chemins absolus pour prévenir les attaques par traversée de répertoire - Validation des chemins absolus pour prévenir les attaques par traversée de répertoire

View File

@@ -109,4 +109,4 @@ Fichiers
Fichier: src/index.ts Fichier: src/index.ts
================ ================
// Contenu du fichier ici // Contenu du fichier ici
``` ```

View File

@@ -116,4 +116,4 @@ Fournissez des exemples spécifiques de modèles bons et problématiques.
### Gemini ### Gemini
- Fonctionne avec tous les formats - Fonctionne avec tous les formats
- Concentrez-vous sur des domaines spécifiques par demande - Concentrez-vous sur des domaines spécifiques par demande
- Utilisez une analyse étape par étape - Utilisez une analyse étape par étape

View File

@@ -59,4 +59,4 @@ docker run -v ./output:/app -it --rm ghcr.io/yamadashy/repomix \
### Dépôts volumineux ### Dépôts volumineux
- Utilisez `--include` pour sélectionner des chemins spécifiques - Utilisez `--include` pour sélectionner des chemins spécifiques
- Activez `--remove-comments` - Activez `--remove-comments`
- Traitez les branches séparément - Traitez les branches séparément

View File

@@ -45,9 +45,9 @@ Exemple de sortie:
──────────────────────────── ────────────────────────────
2 fichier(s) suspect(s) détecté(s) et exclu(s): 2 fichier(s) suspect(s) détecté(s) et exclu(s):
1. config/credentials.json 1. config/credentials.json
- Clé d'accès AWS trouvée - Clé d'accès AWS trouvée
2. .env.local 2. .env.local
- Mot de passe de base de données trouvé - Mot de passe de base de données trouvé
``` ```
## Meilleures pratiques ## Meilleures pratiques
@@ -62,4 +62,4 @@ Exemple de sortie:
Vous avez trouvé une vulnérabilité de sécurité? Veuillez: Vous avez trouvé une vulnérabilité de sécurité? Veuillez:
1. Ne pas ouvrir un ticket public 1. Ne pas ouvrir un ticket public
2. Envoyer un email à: koukun0120@gmail.com 2. Envoyer un email à: koukun0120@gmail.com
3. Ou utiliser les [Avis de sécurité GitHub](https://github.com/yamadashy/repomix/security/advisories/new) 3. Ou utiliser les [Avis de sécurité GitHub](https://github.com/yamadashy/repomix/security/advisories/new)

View File

@@ -32,4 +32,4 @@ Il est essentiel que les humains examinent la sortie de l'IA et fassent des ajus
## Conclusion ## Conclusion
En suivant ces pratiques, vous pouvez exploiter les points forts de l'IA tout en construisant une base de code cohérente et de haute qualité. Même lorsque votre projet grandit en taille, chaque composant reste bien défini et gérable. En suivant ces pratiques, vous pouvez exploiter les points forts de l'IA tout en construisant une base de code cohérente et de haute qualité. Même lorsque votre projet grandit en taille, chaque composant reste bien défini et gérable.

View File

@@ -104,4 +104,4 @@ Initialiser le fichier de configuration:
repomix --init repomix --init
``` ```
Consultez le [Guide de configuration](/fr/guide/configuration) pour les options détaillées. Consultez le [Guide de configuration](/fr/guide/configuration) pour les options détaillées.

View File

@@ -25,19 +25,19 @@ VS CodeにRepomix MCPサーバーをインストールするには、以下の
1. **インストールバッジを使用:** 1. **インストールバッジを使用:**
[![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br> [![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br>
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)
2. **コマンドラインを使用:** 2. **コマンドラインを使用:**
```bash ```bash
code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
VS Code Insiders の場合: VS Code Insiders の場合:
```bash ```bash
code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
### ClineVS Code拡張機能の場合 ### ClineVS Code拡張機能の場合
@@ -134,16 +134,16 @@ MCPサーバーとして実行すると、Repomixは以下のツールを提供
RepomixのMCPサーバーは、AIアシスタントがローカルファイルシステムと安全にやり取りするための2つのファイルシステムツールを提供しています RepomixのMCPサーバーは、AIアシスタントがローカルファイルシステムと安全にやり取りするための2つのファイルシステムツールを提供しています
1. `file_system_read_file` 1. `file_system_read_file`
- 絶対パスを使用してファイルの内容を読み取り - 絶対パスを使用してファイルの内容を読み取り
- [Secretlint](https://github.com/secretlint/secretlint)を使用したセキュリティ検証を実装 - [Secretlint](https://github.com/secretlint/secretlint)を使用したセキュリティ検証を実装
- 機密情報を含むファイルへのアクセスを防止 - 機密情報を含むファイルへのアクセスを防止
- 無効なパスやセキュリティの問題に対する明確なエラーメッセージを返す - 無効なパスやセキュリティの問題に対する明確なエラーメッセージを返す
2. `file_system_read_directory` 2. `file_system_read_directory`
- 絶対パスを使用してディレクトリの内容を一覧表示 - 絶対パスを使用してディレクトリの内容を一覧表示
- ファイルとディレクトリを明確な指標(`[FILE]`または`[DIR]`)で表示 - ファイルとディレクトリを明確な指標(`[FILE]`または`[DIR]`)で表示
- 適切なエラー処理による安全なディレクトリ走査を提供 - 適切なエラー処理による安全なディレクトリ走査を提供
- パスの検証と絶対パスの確認を実施 - パスの検証と絶対パスの確認を実施
両ツールは堅牢なセキュリティ対策を組み込んでいます: 両ツールは堅牢なセキュリティ対策を組み込んでいます:
- ディレクトリトラバーサル攻撃を防ぐための絶対パス検証 - ディレクトリトラバーサル攻撃を防ぐための絶対パス検証

View File

@@ -45,9 +45,9 @@ repomix --no-security-check
────────────────── ──────────────────
2 suspicious file(s) detected and excluded: 2 suspicious file(s) detected and excluded:
1. config/credentials.json 1. config/credentials.json
- Found AWS access key - Found AWS access key
2. .env.local 2. .env.local
- Found database password - Found database password
``` ```
## ベストプラクティス ## ベストプラクティス

View File

@@ -109,4 +109,4 @@ interface Item {
압축은 다음 옵션들과 함께 사용할 수 있습니다: 압축은 다음 옵션들과 함께 사용할 수 있습니다:
- `--remove-comments`: 코드 주석 제거 - `--remove-comments`: 코드 주석 제거
- `--remove-empty-lines`: 빈 줄 제거 - `--remove-empty-lines`: 빈 줄 제거
- `--output-show-line-numbers`: 출력에 줄 번호 추가 - `--output-show-line-numbers`: 출력에 줄 번호 추가

View File

@@ -25,19 +25,19 @@ VS Code에 Repomix MCP 서버를 설치하는 방법은 다음과 같습니다:
1. **설치 배지 사용:** 1. **설치 배지 사용:**
[![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br> [![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br>
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)
2. **명령줄 사용:** 2. **명령줄 사용:**
```bash ```bash
code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
VS Code Insiders의 경우: VS Code Insiders의 경우:
```bash ```bash
code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
### Cline(VS Code 확장)의 경우 ### Cline(VS Code 확장)의 경우
@@ -134,16 +134,16 @@ MCP 서버로 실행할 때 Repomix는 다음 도구를 제공합니다:
Repomix의 MCP 서버는 AI 어시스턴트가 로컬 파일 시스템과 안전하게 상호 작용할 수 있는 두 가지 파일 시스템 도구를 제공합니다: Repomix의 MCP 서버는 AI 어시스턴트가 로컬 파일 시스템과 안전하게 상호 작용할 수 있는 두 가지 파일 시스템 도구를 제공합니다:
1. `file_system_read_file` 1. `file_system_read_file`
- 절대 경로를 사용하여 파일 내용 읽기 - 절대 경로를 사용하여 파일 내용 읽기
- [Secretlint](https://github.com/secretlint/secretlint)를 사용한 보안 검증 구현 - [Secretlint](https://github.com/secretlint/secretlint)를 사용한 보안 검증 구현
- 민감한 정보가 포함된 파일에 대한 접근 방지 - 민감한 정보가 포함된 파일에 대한 접근 방지
- 잘못된 경로나 보안 문제에 대한 명확한 오류 메시지 반환 - 잘못된 경로나 보안 문제에 대한 명확한 오류 메시지 반환
2. `file_system_read_directory` 2. `file_system_read_directory`
- 절대 경로를 사용하여 디렉토리 내용 나열 - 절대 경로를 사용하여 디렉토리 내용 나열
- 파일과 디렉토리를 명확한 지표(`[FILE]` 또는 `[DIR]`)로 표시 - 파일과 디렉토리를 명확한 지표(`[FILE]` 또는 `[DIR]`)로 표시
- 안전한 디렉토리 탐색과 적절한 오류 처리 제공 - 안전한 디렉토리 탐색과 적절한 오류 처리 제공
- 경로 검증 및 절대 경로 확인 - 경로 검증 및 절대 경로 확인
두 도구 모두 강력한 보안 조치를 포함하고 있습니다: 두 도구 모두 강력한 보안 조치를 포함하고 있습니다:
- 디렉토리 순회 공격을 방지하기 위한 절대 경로 검증 - 디렉토리 순회 공격을 방지하기 위한 절대 경로 검증

View File

@@ -45,9 +45,9 @@ repomix --no-security-check
────────────────── ──────────────────
2 suspicious file(s) detected and excluded: 2 suspicious file(s) detected and excluded:
1. config/credentials.json 1. config/credentials.json
- Found AWS access key - Found AWS access key
2. .env.local 2. .env.local
- Found database password - Found database password
``` ```
## 모범 사례 ## 모범 사례

View File

@@ -25,19 +25,19 @@ Você pode instalar o servidor MCP do Repomix no VS Code usando um destes métod
1. **Usando o distintivo de instalação:** 1. **Usando o distintivo de instalação:**
[![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br> [![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br>
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)
2. **Usando a linha de comando:** 2. **Usando a linha de comando:**
```bash ```bash
code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
Para VS Code Insiders: Para VS Code Insiders:
```bash ```bash
code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
### Para o Cline (extensão do VS Code) ### Para o Cline (extensão do VS Code)
@@ -134,16 +134,16 @@ Esta ferramenta lê o conteúdo de um arquivo de saída do Repomix em ambientes
O servidor MCP do Repomix fornece duas ferramentas de sistema de arquivos que permitem que os assistentes de IA interajam com segurança com o sistema de arquivos local: O servidor MCP do Repomix fornece duas ferramentas de sistema de arquivos que permitem que os assistentes de IA interajam com segurança com o sistema de arquivos local:
1. `file_system_read_file` 1. `file_system_read_file`
- Lê conteúdo de arquivos usando caminhos absolutos - Lê conteúdo de arquivos usando caminhos absolutos
- Implementa validação de segurança usando [Secretlint](https://github.com/secretlint/secretlint) - Implementa validação de segurança usando [Secretlint](https://github.com/secretlint/secretlint)
- Previne acesso a arquivos contendo informações sensíveis - Previne acesso a arquivos contendo informações sensíveis
- Retorna mensagens de erro claras para caminhos inválidos e problemas de segurança - Retorna mensagens de erro claras para caminhos inválidos e problemas de segurança
2. `file_system_read_directory` 2. `file_system_read_directory`
- Lista conteúdos de diretórios usando caminhos absolutos - Lista conteúdos de diretórios usando caminhos absolutos
- Mostra arquivos e diretórios com indicadores claros (`[FILE]` ou `[DIR]`) - Mostra arquivos e diretórios com indicadores claros (`[FILE]` ou `[DIR]`)
- Fornece navegação segura de diretórios com tratamento apropriado de erros - Fornece navegação segura de diretórios com tratamento apropriado de erros
- Valida caminhos e garante que sejam absolutos - Valida caminhos e garante que sejam absolutos
Ambas as ferramentas incorporam medidas de segurança robustas: Ambas as ferramentas incorporam medidas de segurança robustas:
- Validação de caminhos absolutos para prevenir ataques de travessia de diretórios - Validação de caminhos absolutos para prevenir ataques de travessia de diretórios

View File

@@ -45,9 +45,9 @@ Exemplo de saída:
────────────────── ──────────────────
2 arquivo(s) suspeito(s) detectados e excluídos: 2 arquivo(s) suspeito(s) detectados e excluídos:
1. config/credentials.json 1. config/credentials.json
- Chave de acesso da AWS encontrada - Chave de acesso da AWS encontrada
2. .env.local 2. .env.local
- Senha do banco de dados encontrada - Senha do banco de dados encontrada
``` ```
## Melhores Práticas ## Melhores Práticas

View File

@@ -108,4 +108,4 @@ interface Item {
你可以将压缩与其他选项结合使用: 你可以将压缩与其他选项结合使用:
- `--remove-comments`: 移除代码注释 - `--remove-comments`: 移除代码注释
- `--remove-empty-lines`: 移除空行 - `--remove-empty-lines`: 移除空行
- `--output-show-line-numbers`: 在输出中添加行号 - `--output-show-line-numbers`: 在输出中添加行号

View File

@@ -56,13 +56,13 @@ function test() {
## 建议用法 ## 建议用法
1. **选择性使用** 1. **选择性使用**
- 对于需要向 AI 展示实现细节的代码,保留注释 - 对于需要向 AI 展示实现细节的代码,保留注释
- 对于主要关注代码结构的分析,移除注释 - 对于主要关注代码结构的分析,移除注释
2. **配合其他功能** 2. **配合其他功能**
-`--remove-empty-lines` 选项组合使用,获得更简洁的输出 -`--remove-empty-lines` 选项组合使用,获得更简洁的输出
- 使用自定义指令提供额外的上下文信息 - 使用自定义指令提供额外的上下文信息
3. **性能考虑** 3. **性能考虑**
- 移除注释可以减少输出文件大小 - 移除注释可以减少输出文件大小
- 对于大型代码库特别有用 - 对于大型代码库特别有用

View File

@@ -105,16 +105,16 @@ pnpm run website:build
### 常见问题 ### 常见问题
1. **Node.js 版本** 1. **Node.js 版本**
- 确保使用 Node.js ≥ 18.0.0 - 确保使用 Node.js ≥ 18.0.0
- 使用 `node --version` 检查版本 - 使用 `node --version` 检查版本
2. **依赖问题** 2. **依赖问题**
- 删除 `node_modules` 和锁定文件 - 删除 `node_modules` 和锁定文件
- 重新运行 `pnpm install` - 重新运行 `pnpm install`
3. **构建错误** 3. **构建错误**
- 运行 `pnpm run clean` - 运行 `pnpm run clean`
- 重新构建项目 `pnpm run build` - 重新构建项目 `pnpm run build`
### 支持 ### 支持

View File

@@ -25,19 +25,19 @@ repomix --mcp
1. **使用安装徽章:** 1. **使用安装徽章:**
[![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br> [![Install in VS Code](https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF)](vscode:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)<br>
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D) [![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=Install%20Server&color=24bfa5)](vscode-insiders:mcp/install?%7B%22name%22%3A%22repomix%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22repomix%22%2C%22--mcp%22%5D%7D)
2. **使用命令行:** 2. **使用命令行:**
```bash ```bash
code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
对于 VS Code Insiders 对于 VS Code Insiders
```bash ```bash
code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}' code-insiders --add-mcp '{"name":"repomix","command":"npx","args":["-y","repomix","--mcp"]}'
``` ```
### 对于 ClineVS Code 扩展) ### 对于 ClineVS Code 扩展)
@@ -134,16 +134,16 @@ repomix --mcp
Repomix的MCP服务器提供了两个文件系统工具允许AI助手安全地与本地文件系统交互 Repomix的MCP服务器提供了两个文件系统工具允许AI助手安全地与本地文件系统交互
1. `file_system_read_file` 1. `file_system_read_file`
- 使用绝对路径读取文件内容 - 使用绝对路径读取文件内容
- 使用[Secretlint](https://github.com/secretlint/secretlint)实现安全验证 - 使用[Secretlint](https://github.com/secretlint/secretlint)实现安全验证
- 防止访问包含敏感信息的文件 - 防止访问包含敏感信息的文件
- 对无效路径和安全问题返回清晰的错误消息 - 对无效路径和安全问题返回清晰的错误消息
2. `file_system_read_directory` 2. `file_system_read_directory`
- 使用绝对路径列出目录内容 - 使用绝对路径列出目录内容
- 使用清晰的指示符(`[FILE]`或`[DIR]`)显示文件和目录 - 使用清晰的指示符(`[FILE]`或`[DIR]`)显示文件和目录
- 提供安全的目录遍历和适当的错误处理 - 提供安全的目录遍历和适当的错误处理
- 验证路径并确保使用绝对路径 - 验证路径并确保使用绝对路径
这两个工具都包含了强大的安全措施: 这两个工具都包含了强大的安全措施:
- 绝对路径验证以防止目录遍历攻击 - 绝对路径验证以防止目录遍历攻击

View File

@@ -45,9 +45,9 @@ repomix --no-security-check
────────────────── ──────────────────
2 suspicious file(s) detected and excluded: 2 suspicious file(s) detected and excluded:
1. config/credentials.json 1. config/credentials.json
- Found AWS access key - Found AWS access key
2. .env.local 2. .env.local
- Found database password - Found database password
``` ```
## 最佳实践 ## 最佳实践