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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ See [Quick Start guide](https://dyoshikawa.github.io/rulesync/getting-started/qu
| Qwen Code | qwencode | ✅ | ✅ | | | | | |
| Kiro | kiro | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
| Google Antigravity | antigravity | ✅ | | | ✅ | | ✅ 🌏 | |
| JetBrains Junie | junie | ✅ | ✅ | ✅ | | ✅ | ✅ | |
| JetBrains Junie | junie | ✅ | ✅ | ✅ | ✅ 🌏 | ✅ | ✅ | |
| AugmentCode | augmentcode | ✅ | ✅ | | | | | |
| Windsurf | windsurf | ✅ | ✅ | | | | | |
| Warp | warp | ✅ | | | | | | |
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/supported-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Rulesync supports both **generation** and **import** for All of the major AI cod
| Qwen Code | qwencode | ✅ | ✅ | | | | | |
| Kiro | kiro | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
| Google Antigravity | antigravity | ✅ | | | ✅ | | ✅ 🌏 | |
| JetBrains Junie | junie | ✅ | ✅ | ✅ | | ✅ | ✅ | |
| JetBrains Junie | junie | ✅ | ✅ | ✅ | ✅ 🌏 | ✅ | ✅ | |
| AugmentCode | augmentcode | ✅ | ✅ | | | | | |
| Windsurf | windsurf | ✅ | ✅ | | | | | |
| Warp | warp | ✅ | | | | | | |
Expand Down
2 changes: 1 addition & 1 deletion skills/rulesync/supported-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Rulesync supports both **generation** and **import** for All of the major AI cod
| Qwen Code | qwencode | ✅ | ✅ | | | | | |
| Kiro | kiro | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | |
| Google Antigravity | antigravity | ✅ | | | ✅ | | ✅ 🌏 | |
| JetBrains Junie | junie | ✅ | ✅ | ✅ | | ✅ | ✅ | |
| JetBrains Junie | junie | ✅ | ✅ | ✅ | ✅ 🌏 | ✅ | ✅ | |
| AugmentCode | augmentcode | ✅ | ✅ | | | | | |
| Windsurf | windsurf | ✅ | ✅ | | | | | |
| Warp | warp | ✅ | | | | | | |
Expand Down
26 changes: 26 additions & 0 deletions src/features/commands/cline-command.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,32 @@ Step 1`;

expect(command.getFileContent()).toBe("");
});

it("should skip validation when validate is false", () => {
const command = new ClineCommand({
baseDir: testDir,
relativeDirPath: ".clinerules/workflows",
relativeFilePath: "test.md",
fileContent: validContent,
validate: false,
});

expect(command).toBeInstanceOf(ClineCommand);
expect(command.getFileContent()).toBe(validContent);
});
});

describe("getBody", () => {
it("should return the command body", () => {
const command = new ClineCommand({
baseDir: testDir,
relativeDirPath: ".clinerules/workflows",
relativeFilePath: "test.md",
fileContent: validContent,
});

expect(command.getBody()).toBe(validContent);
});
});

describe("toRulesyncCommand", () => {
Expand Down
23 changes: 23 additions & 0 deletions src/features/commands/commands-processor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { ClineCommand } from "./cline-command.js";
import { CommandsProcessor, CommandsProcessorToolTarget } from "./commands-processor.js";
import { CursorCommand } from "./cursor-command.js";
import { GeminiCliCommand } from "./geminicli-command.js";
import { JunieCommand } from "./junie-command.js";
import { KiloCommand } from "./kilo-command.js";
import { OpenCodeCommand } from "./opencode-command.js";
import { RooCommand } from "./roo-command.js";
Expand Down Expand Up @@ -52,6 +53,11 @@ vi.mock("./geminicli-command.js", () => ({
return { ...config, isDeletable: () => true };
}),
}));
vi.mock("./junie-command.js", () => ({
JunieCommand: vi.fn().mockImplementation(function (config) {
return { ...config, isDeletable: () => true };
}),
}));
vi.mock("./kilo-command.js", () => ({
KiloCommand: vi.fn().mockImplementation(function (config) {
return { ...config, isDeletable: () => true };
Expand Down Expand Up @@ -114,6 +120,19 @@ vi.mocked(ClaudecodeCommand).forDeletion = vi.fn().mockImplementation((params) =
getRelativeFilePath: () => params.relativeFilePath,
}));

// Set up static methods after mocking
vi.mocked(JunieCommand).fromFile = vi.fn();
vi.mocked(JunieCommand).fromRulesyncCommand = vi.fn();
vi.mocked(JunieCommand).isTargetedByRulesyncCommand = vi.fn().mockReturnValue(true);
vi.mocked(JunieCommand).getSettablePaths = vi.fn().mockImplementation((_options = {}) => ({
relativeDirPath: join(".junie", "commands"),
}));
vi.mocked(JunieCommand).forDeletion = vi.fn().mockImplementation((params) => ({
...params,
isDeletable: () => true,
getRelativeFilePath: () => params.relativeFilePath,
}));

// Set up static methods after mocking
vi.mocked(GeminiCliCommand).fromFile = vi.fn();
vi.mocked(GeminiCliCommand).fromRulesyncCommand = vi.fn();
Expand Down Expand Up @@ -1168,6 +1187,7 @@ describe("CommandsProcessor", () => {
"copilot",
"cursor",
"geminicli",
"junie",
"kilo",
"kiro",
"opencode",
Expand All @@ -1189,6 +1209,7 @@ describe("CommandsProcessor", () => {
"cursor",
"factorydroid",
"geminicli",
"junie",
"kilo",
"kiro",
"opencode",
Expand All @@ -1209,6 +1230,7 @@ describe("CommandsProcessor", () => {
"cursor",
"factorydroid",
"geminicli",
"junie",
"codexcli",
"kilo",
"opencode",
Expand Down Expand Up @@ -1244,6 +1266,7 @@ describe("CommandsProcessor", () => {
"claudecode-legacy",
"cline",
"geminicli",
"junie",
"kilo",
"roo",
];
Expand Down
15 changes: 15 additions & 0 deletions src/features/commands/commands-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { CopilotCommand } from "./copilot-command.js";
import { CursorCommand } from "./cursor-command.js";
import { FactorydroidCommand } from "./factorydroid-command.js";
import { GeminiCliCommand } from "./geminicli-command.js";
import { JunieCommand } from "./junie-command.js";
import { KiloCommand } from "./kilo-command.js";
import { KiroCommand } from "./kiro-command.js";
import { OpenCodeCommand } from "./opencode-command.js";
Expand Down Expand Up @@ -72,6 +73,7 @@ const commandsProcessorToolTargetTuple = [
"cursor",
"factorydroid",
"geminicli",
"junie",
"kilo",
"kiro",
"opencode",
Expand Down Expand Up @@ -218,6 +220,19 @@ const toolCommandFactories = new Map<CommandsProcessorToolTarget, ToolCommandFac
},
},
],
[
"junie",
{
class: JunieCommand,
meta: {
extension: "md",
supportsProject: true,
supportsGlobal: true,
isSimulated: false,
supportsSubdirectory: false,
},
},
],
[
"kilo",
{
Expand Down
Loading