Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/select-opencode-model/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
elif [[ "$INPUT_TEXT" == *"kimi"* ]]; then
echo "model=openrouter/moonshotai/kimi-k2.5" >> $GITHUB_OUTPUT
else
echo "model=zai-coding-plan/glm-5" >> $GITHUB_OUTPUT
echo "model=zai-coding-plan/glm-5.1" >> $GITHUB_OUTPUT
fi
CLEANED="${INPUT_TEXT//\/oc/}"
CLEANED="${CLEANED//\/opencode/}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Setup mise
uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
experimental: true

Expand Down
185 changes: 0 additions & 185 deletions .github/workflows/comment-to-ai.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Setup mise
uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
experimental: true

Expand All @@ -49,4 +49,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
uses: ./.github/actions/git-config

- name: Setup mise
uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
experimental: true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Setup mise
uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v2
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v2
with:
experimental: true

Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
echo "BINARY_PATH=dist-bun/rulesync-windows-x64.exe" >> "$GITHUB_ENV"

- name: Setup mise
uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v2
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v2
with:
experimental: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
ref: main

- name: Setup mise
uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v2
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v2
with:
experimental: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
ref: main

- name: Setup mise
uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v2
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v2
with:
experimental: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

- name: Setup mise
uses: jdx/mise-action@c1ecc8f748cd28cdeabf76dab3cccde4ce692fe4 # v4.0.0
uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
experimental: true

Expand Down
10 changes: 9 additions & 1 deletion src/cli/commands/gitignore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";

import { createMockLogger } from "../../test-utils/mock-logger.js";
import { fileExists, readFileContent, writeFileContent } from "../../utils/file.js";
import { filterGitignoreEntries } from "./gitignore-entries.js";
import { ALL_GITIGNORE_ENTRIES, filterGitignoreEntries } from "./gitignore-entries.js";
import { gitignoreCommand } from "./gitignore.js";

const buildRulesyncBlock = (): string => {
Expand All @@ -12,6 +12,14 @@ const buildRulesyncBlock = (): string => {

vi.mock("../../utils/file.js");

describe("gitignore entries", () => {
it("should use forward slashes only in all entries for .gitignore compatibility", () => {
for (const entry of ALL_GITIGNORE_ENTRIES) {
expect(entry, `Entry "${entry}" should not contain backslashes`).not.toContain("\\");
}
});
});

describe("gitignoreCommand", () => {
const mockGitignorePath = "/workspace/.gitignore";
let mockLogger: ReturnType<typeof createMockLogger>;
Expand Down
34 changes: 34 additions & 0 deletions src/constants/rulesync-paths.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { describe, expect, it } from "vitest";

import {
RULESYNC_AIIGNORE_RELATIVE_FILE_PATH,
RULESYNC_COMMANDS_RELATIVE_DIR_PATH,
RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH,
RULESYNC_HOOKS_RELATIVE_FILE_PATH,
RULESYNC_MCP_RELATIVE_FILE_PATH,
RULESYNC_PERMISSIONS_RELATIVE_FILE_PATH,
RULESYNC_RULES_RELATIVE_DIR_PATH,
RULESYNC_SKILLS_RELATIVE_DIR_PATH,
RULESYNC_SUBAGENTS_RELATIVE_DIR_PATH,
} from "./rulesync-paths.js";

describe("rulesync-paths constants", () => {
it("should use forward slashes in all path constants for cross-platform compatibility", () => {
const pathConstants = [
RULESYNC_RULES_RELATIVE_DIR_PATH,
RULESYNC_COMMANDS_RELATIVE_DIR_PATH,
RULESYNC_SUBAGENTS_RELATIVE_DIR_PATH,
RULESYNC_MCP_RELATIVE_FILE_PATH,
RULESYNC_HOOKS_RELATIVE_FILE_PATH,
RULESYNC_PERMISSIONS_RELATIVE_FILE_PATH,
RULESYNC_AIIGNORE_RELATIVE_FILE_PATH,
RULESYNC_SKILLS_RELATIVE_DIR_PATH,
RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH,
];

for (const p of pathConstants) {
expect(p, `Path "${p}" should not contain backslashes`).not.toContain("\\");
expect(p, `Path "${p}" should contain forward slashes`).toContain("/");
}
});
});
4 changes: 3 additions & 1 deletion src/constants/rulesync-paths.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { join } from "node:path";
import { posix } from "node:path";

const { join } = posix;

export const RULESYNC_CONFIG_RELATIVE_FILE_PATH = "rulesync.jsonc";
export const RULESYNC_LOCAL_CONFIG_RELATIVE_FILE_PATH = "rulesync.local.jsonc";
Expand Down
Loading
Loading