From a7569f98ef6e2f7273a0cdf79e87909733cff2a5 Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Mon, 13 Oct 2025 13:24:14 +0900 Subject: [PATCH 1/4] fix(ci): Install project dependencies in Repomix action The pack-repository workflow was failing with "Cannot find module 'picocolors'" error. This occurred because repomix.config.ts imports from ./src/index.js, which requires project dependencies to be installed. Added a conditional step to install dependencies when package.json exists, ensuring that config files can successfully import from local source files. This is particularly necessary for the Repomix project itself, which uses local source imports in its configuration. --- .github/actions/repomix/action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/actions/repomix/action.yml b/.github/actions/repomix/action.yml index 46a691ed6..ae0fcddc7 100644 --- a/.github/actions/repomix/action.yml +++ b/.github/actions/repomix/action.yml @@ -46,7 +46,14 @@ runs: uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: node-version: "24" - cache: "npm" + - name: Install project dependencies + shell: bash + run: | + # Install project dependencies if package.json exists + # This ensures repomix.config.ts can import from local source + if [ -f "package.json" ]; then + npm install + fi - name: Install Repomix shell: bash run: | From a74473760e125d9d4635a36f0b96a78bdfd83a9a Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Mon, 13 Oct 2025 13:28:16 +0900 Subject: [PATCH 2/4] fix(ci): Use local action reference in pack-repository workflow Changed from @main reference to local reference (./.github/actions/repomix) to test action changes in feature branches before merging to main. --- .github/workflows/pack-repository.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pack-repository.yml b/.github/workflows/pack-repository.yml index ab8e42906..af7817eba 100644 --- a/.github/workflows/pack-repository.yml +++ b/.github/workflows/pack-repository.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Pack repository with Repomix - uses: yamadashy/repomix/.github/actions/repomix@main + uses: ./.github/actions/repomix with: output: repomix-output.xml From 49b6ae4c7f86eedfba12e2f13978a8c4fb85e1f5 Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Mon, 13 Oct 2025 13:37:00 +0900 Subject: [PATCH 3/4] fix(ci): Update git-auto-commit-action to v7.0.0 Updated from v6.0.1 to v7.0.0 to fix race condition bug that caused push failures when the remote branch was updated during workflow execution. --- .github/workflows/schema-update.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/schema-update.yml b/.github/workflows/schema-update.yml index b9a79b2bb..917cdf017 100644 --- a/.github/workflows/schema-update.yml +++ b/.github/workflows/schema-update.yml @@ -24,7 +24,7 @@ jobs: cache: npm - run: npm ci - run: npm run website-generate-schema - - uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1 + - uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0 with: commit_message: 'chore(schema): auto generate schema' commit_user_name: "github-actions[bot]" From ca369ec00043af5884ec22d258dbb05b1b6eaab9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 13 Oct 2025 04:37:25 +0000 Subject: [PATCH 4/4] chore(schema): auto generate schema --- .../src/public/schemas/1.7.0/schema.json | 151 ++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 website/client/src/public/schemas/1.7.0/schema.json diff --git a/website/client/src/public/schemas/1.7.0/schema.json b/website/client/src/public/schemas/1.7.0/schema.json new file mode 100644 index 000000000..6fd017740 --- /dev/null +++ b/website/client/src/public/schemas/1.7.0/schema.json @@ -0,0 +1,151 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "$schema": { + "type": "string" + }, + "input": { + "type": "object", + "properties": { + "maxFileSize": { + "type": "number" + } + }, + "additionalProperties": false + }, + "output": { + "type": "object", + "properties": { + "filePath": { + "type": "string" + }, + "style": { + "type": "string", + "enum": [ + "xml", + "markdown", + "json", + "plain" + ] + }, + "parsableStyle": { + "type": "boolean" + }, + "headerText": { + "type": "string" + }, + "instructionFilePath": { + "type": "string" + }, + "fileSummary": { + "type": "boolean" + }, + "directoryStructure": { + "type": "boolean" + }, + "files": { + "type": "boolean" + }, + "removeComments": { + "type": "boolean" + }, + "removeEmptyLines": { + "type": "boolean" + }, + "compress": { + "type": "boolean" + }, + "topFilesLength": { + "type": "number" + }, + "showLineNumbers": { + "type": "boolean" + }, + "truncateBase64": { + "type": "boolean" + }, + "copyToClipboard": { + "type": "boolean" + }, + "includeEmptyDirectories": { + "type": "boolean" + }, + "tokenCountTree": { + "type": [ + "boolean", + "number", + "string" + ] + }, + "git": { + "type": "object", + "properties": { + "sortByChanges": { + "type": "boolean" + }, + "sortByChangesMaxCommits": { + "type": "number" + }, + "includeDiffs": { + "type": "boolean" + }, + "includeLogs": { + "type": "boolean" + }, + "includeLogsCount": { + "type": "number" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "include": { + "type": "array", + "items": { + "type": "string" + } + }, + "ignore": { + "type": "object", + "properties": { + "useGitignore": { + "type": "boolean" + }, + "useDefaultPatterns": { + "type": "boolean" + }, + "customPatterns": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "security": { + "type": "object", + "properties": { + "enableSecurityCheck": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "tokenCount": { + "type": "object", + "properties": { + "encoding": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "title": "Repomix Configuration", + "description": "Schema for repomix.config.json configuration file" +} \ No newline at end of file