rulesync 0.47.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.ja.md CHANGED
@@ -15,6 +15,7 @@ rulesyncは以下のAI開発ツールの**生成**と**インポート**の両
15
15
  - **Cursor Project Rules** (`.cursor/rules/*.mdc` + `.cursorrules`)
16
16
  - **Cline Rules** (`.clinerules/*.md` + `.cline/instructions.md`)
17
17
  - **Claude Code Memory** (`./CLAUDE.md` + `.claude/memories/*.md`)
18
+ - **AugmentCode Rules** (`.augment/rules/*.md`)
18
19
  - **Roo Code Rules** (`.roo/rules/*.md` + `.roo/instructions.md`)
19
20
  - **Gemini CLI** (`GEMINI.md` + `.gemini/memories/*.md`)
20
21
  - **Kiro IDE カスタムステアリングドキュメント** (`.kiro/steering/*.md`) + **AI除外ファイル** (`.aiignore`)
@@ -66,6 +67,7 @@ yarn global add rulesync
66
67
  npx rulesync import --cursor # .cursorrulesと.cursor/rules/*.mdcから
67
68
  npx rulesync import --copilot # .github/copilot-instructions.mdから
68
69
  npx rulesync import --cline # .cline/instructions.mdから
70
+ npx rulesync import --augmentcode # .augment/rules/*.mdから
69
71
  npx rulesync import --roo # .roo/instructions.mdから
70
72
  npx rulesync import --geminicli # GEMINI.mdと.gemini/memories/*.mdから
71
73
  ```
@@ -214,6 +216,7 @@ npx rulesync generate --copilot
214
216
  npx rulesync generate --cursor
215
217
  npx rulesync generate --cline
216
218
  npx rulesync generate --claudecode
219
+ npx rulesync generate --augmentcode
217
220
  npx rulesync generate --roo
218
221
  npx rulesync generate --geminicli
219
222
  npx rulesync generate --kiro
@@ -238,7 +241,7 @@ npx rulesync generate --base-dir ./apps/web,./apps/api,./packages/shared
238
241
 
239
242
  - `--delete`: 新しいファイルを作成する前に既存の生成済みファイルをすべて削除
240
243
  - `--verbose`: 生成プロセス中に詳細出力を表示
241
- - `--copilot`, `--cursor`, `--cline`, `--claudecode`, `--roo`, `--geminicli`, `--kiro`: 指定されたツールのみ生成
244
+ - `--copilot`, `--cursor`, `--cline`, `--claudecode`, `--augmentcode`, `--roo`, `--geminicli`, `--kiro`: 指定されたツールのみ生成
242
245
  - `--base-dir <paths>`: 指定されたベースディレクトリに設定ファイルを生成(複数パスの場合はカンマ区切り)。異なるプロジェクトディレクトリにツール固有の設定を生成したいmonorepoセットアップに便利。
243
246
 
244
247
  ### 4. 既存設定のインポート
@@ -251,6 +254,7 @@ npx rulesync import --claudecode # CLAUDE.mdと.claude/memories/*.mdからイン
251
254
  npx rulesync import --cursor # .cursorrulesと.cursor/rules/*.mdからインポート
252
255
  npx rulesync import --copilot # .github/copilot-instructions.mdと.github/instructions/*.instructions.mdからインポート
253
256
  npx rulesync import --cline # .cline/instructions.mdからインポート
257
+ npx rulesync import --augmentcode # .augment/rules/*.mdからインポート
254
258
  npx rulesync import --roo # .roo/instructions.mdからインポート
255
259
  npx rulesync import --geminicli # GEMINI.mdと.gemini/memories/*.mdからインポート
256
260
 
@@ -427,6 +431,7 @@ globs: "**/*.ts,**/*.tsx"
427
431
  | **Cursor** | `.cursor/rules/*.mdc` | MDC (YAMLヘッダー + Markdown) | ルート: `cursorRuleType: always`<br>非ルート: `cursorRuleType: specificFiles` (globs指定時)<br>非ルート: `cursorRuleType: intelligently` (description指定時)<br>非ルート: `cursorRuleType: manual` (デフォルト) |
428
432
  | **Cline** | `.clinerules/*.md` | プレーンMarkdown | 両レベルとも同じフォーマットを使用 |
429
433
  | **Claude Code** | `./CLAUDE.md` (ルート)<br>`.claude/memories/*.md` (非ルート) | プレーンMarkdown | ルートはCLAUDE.mdに移動<br>非ルートは別メモリファイルに移動<br>CLAUDE.mdは`@filename`参照を含む |
434
+ | **AugmentCode** | `.augment/rules/*.md` | YAMLフロントマター + Markdown | ルート: `type: always`<br>非ルート: `type: auto` (description指定時) または `type: manual` (デフォルト) |
430
435
  | **Roo Code** | `.roo/rules/*.md` | プレーンMarkdown | 両レベルとも説明ヘッダー付きの同じフォーマットを使用 |
431
436
  | **Gemini CLI** | `GEMINI.md` (ルート)<br>`.gemini/memories/*.md` (非ルート) | プレーンMarkdown | ルートはGEMINI.mdに移動<br>非ルートは別メモリファイルに移動<br>GEMINI.mdは`@filename`参照を含む |
432
437
  | **Kiro IDE** | `.kiro/steering/*.md` + `.aiignore` | プレーンMarkdown + 除外パターン | カスタムステアリングドキュメントで両レベルとも同じフォーマット使用<br>AI除外ファイルで機密パターンを除外 |
package/README.md CHANGED
@@ -15,6 +15,7 @@ rulesync supports both **generation** and **import** for the following AI develo
15
15
  - **Cursor Project Rules** (`.cursor/rules/*.mdc` + `.cursorrules`)
16
16
  - **Cline Rules** (`.clinerules/*.md` + `.cline/instructions.md`)
17
17
  - **Claude Code Memory** (`./CLAUDE.md` + `.claude/memories/*.md`)
18
+ - **AugmentCode Rules** (`.augment/rules/*.md`)
18
19
  - **Roo Code Rules** (`.roo/rules/*.md` + `.roo/instructions.md`)
19
20
  - **Gemini CLI** (`GEMINI.md` + `.gemini/memories/*.md`)
20
21
  - **Kiro IDE Custom Steering Documents** (`.kiro/steering/*.md`) + **AI Ignore Files** (`.aiignore`)
@@ -66,6 +67,7 @@ If you already have AI tool configurations, you can import them into rulesync fo
66
67
  npx rulesync import --cursor # From .cursorrules and .cursor/rules/*.mdc
67
68
  npx rulesync import --copilot # From .github/copilot-instructions.md
68
69
  npx rulesync import --cline # From .cline/instructions.md
70
+ npx rulesync import --augmentcode # From .augment/rules/*.md
69
71
  npx rulesync import --roo # From .roo/instructions.md
70
72
  npx rulesync import --geminicli # From GEMINI.md and .gemini/memories/*.md
71
73
  ```
@@ -214,6 +216,7 @@ npx rulesync generate --copilot
214
216
  npx rulesync generate --cursor
215
217
  npx rulesync generate --cline
216
218
  npx rulesync generate --claudecode
219
+ npx rulesync generate --augmentcode
217
220
  npx rulesync generate --roo
218
221
  npx rulesync generate --geminicli
219
222
  npx rulesync generate --kiro
@@ -238,7 +241,7 @@ npx rulesync generate --base-dir ./apps/web,./apps/api,./packages/shared
238
241
 
239
242
  - `--delete`: Remove all existing generated files before creating new ones
240
243
  - `--verbose`: Show detailed output during generation process
241
- - `--copilot`, `--cursor`, `--cline`, `--claudecode`, `--roo`, `--geminicli`, `--kiro`: Generate only for specified tools
244
+ - `--copilot`, `--cursor`, `--cline`, `--claudecode`, `--augmentcode`, `--roo`, `--geminicli`, `--kiro`: Generate only for specified tools
242
245
  - `--base-dir <paths>`: Generate configuration files in specified base directories (comma-separated for multiple paths). Useful for monorepo setups where you want to generate tool-specific configurations in different project directories.
243
246
 
244
247
  ### 4. Import Existing Configurations
@@ -251,6 +254,7 @@ npx rulesync import --claudecode # Import from CLAUDE.md and .claude/memories/*.
251
254
  npx rulesync import --cursor # Import from .cursorrules and .cursor/rules/*.md
252
255
  npx rulesync import --copilot # Import from .github/copilot-instructions.md and .github/instructions/*.instructions.md
253
256
  npx rulesync import --cline # Import from .cline/instructions.md
257
+ npx rulesync import --augmentcode # Import from .augment/rules/*.md
254
258
  npx rulesync import --roo # Import from .roo/instructions.md
255
259
  npx rulesync import --geminicli # Import from GEMINI.md and .gemini/memories/*.md
256
260
 
@@ -429,6 +433,7 @@ globs: "**/*.ts,**/*.tsx"
429
433
  | **Cursor** | `.cursor/rules/*.mdc` | MDC (YAML header + Markdown) | Root: `cursorRuleType: always`<br>Non-root: `cursorRuleType: specificFiles` (with globs)<br>Non-root: `cursorRuleType: intelligently` (with description)<br>Non-root: `cursorRuleType: manual` (default) |
430
434
  | **Cline** | `.clinerules/*.md` | Plain Markdown | Both levels use same format |
431
435
  | **Claude Code** | `./CLAUDE.md` (root)<br>`.claude/memories/*.md` (non-root) | Plain Markdown | Root goes to CLAUDE.md<br>Non-root go to separate memory files<br>CLAUDE.md includes `@filename` references |
436
+ | **AugmentCode** | `.augment/rules/*.md` | Markdown with YAML frontmatter | Root: `type: always`<br>Non-root: `type: auto` (with description) or `type: manual` (default) |
432
437
  | **Roo Code** | `.roo/rules/*.md` | Plain Markdown | Both levels use same format with description header |
433
438
  | **Gemini CLI** | `GEMINI.md` (root)<br>`.gemini/memories/*.md` (non-root) | Plain Markdown | Root goes to GEMINI.md<br>Non-root go to separate memory files<br>GEMINI.md includes `@filename` references |
434
439
  | **Kiro IDE** | `.kiro/steering/*.md` + `.aiignore` | Plain Markdown + Ignore patterns | Both levels use same format for custom steering docs<br>AI ignore file excludes sensitive patterns |
@@ -0,0 +1,9 @@
1
+ import {
2
+ generateAugmentcodeMcp,
3
+ generateAugmentcodeMcpConfiguration
4
+ } from "./chunk-6TAURCQP.js";
5
+ import "./chunk-IBJGN3JQ.js";
6
+ export {
7
+ generateAugmentcodeMcp,
8
+ generateAugmentcodeMcpConfiguration
9
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-7ZIUEZZQ.js";
3
+ } from "./chunk-IBJGN3JQ.js";
4
4
 
5
5
  // src/generators/mcp/cursor.ts
6
6
  function generateCursorMcp(config) {
@@ -0,0 +1,111 @@
1
+ import {
2
+ shouldIncludeServer
3
+ } from "./chunk-IBJGN3JQ.js";
4
+
5
+ // src/generators/mcp/augmentcode.ts
6
+ function generateAugmentcodeMcp(config) {
7
+ const augmentSettings = {
8
+ mcpServers: []
9
+ };
10
+ const shouldInclude = (server) => {
11
+ return shouldIncludeServer(server, "augmentcode");
12
+ };
13
+ for (const [serverName, server] of Object.entries(config.mcpServers)) {
14
+ if (!shouldInclude(server)) continue;
15
+ const augmentServer = {
16
+ name: serverName
17
+ };
18
+ if (server.command) {
19
+ augmentServer.command = server.command;
20
+ if (server.args) {
21
+ augmentServer.args = server.args;
22
+ }
23
+ } else if (server.url || server.httpUrl) {
24
+ const url = server.httpUrl || server.url;
25
+ if (url) {
26
+ augmentServer.url = url;
27
+ }
28
+ if (server.httpUrl || server.transport === "http") {
29
+ augmentServer.transport = "http";
30
+ } else if (server.transport === "sse") {
31
+ augmentServer.transport = "sse";
32
+ }
33
+ if (server.env) {
34
+ augmentServer.headers = server.env;
35
+ }
36
+ }
37
+ if (server.env && server.command) {
38
+ augmentServer.env = server.env;
39
+ }
40
+ if (server.timeout) {
41
+ augmentServer.timeout = server.timeout;
42
+ }
43
+ if (server.disabled !== void 0) {
44
+ augmentServer.enabled = !server.disabled;
45
+ }
46
+ if (server.networkTimeout && server.networkTimeout > 0) {
47
+ augmentServer.retries = Math.max(1, Math.floor(server.networkTimeout / 3e4));
48
+ }
49
+ if (augmentSettings.mcpServers) {
50
+ augmentSettings.mcpServers.push(augmentServer);
51
+ }
52
+ }
53
+ return JSON.stringify(augmentSettings, null, 2);
54
+ }
55
+ function generateAugmentcodeMcpConfiguration(mcpServers, baseDir = "") {
56
+ const filepath = baseDir ? `${baseDir}/.mcp.json` : ".mcp.json";
57
+ const settings = {
58
+ mcpServers: {}
59
+ };
60
+ for (const [serverName, server] of Object.entries(mcpServers)) {
61
+ if (!shouldIncludeServer(server, "augmentcode")) {
62
+ continue;
63
+ }
64
+ const { targets: _, ...serverConfig } = server;
65
+ const augmentServer = {};
66
+ if (serverConfig.command) {
67
+ augmentServer.command = serverConfig.command;
68
+ if (serverConfig.args) {
69
+ augmentServer.args = serverConfig.args;
70
+ }
71
+ if (serverConfig.env) {
72
+ augmentServer.env = serverConfig.env;
73
+ }
74
+ } else if (serverConfig.url || serverConfig.httpUrl) {
75
+ const url = serverConfig.httpUrl || serverConfig.url;
76
+ if (url) {
77
+ augmentServer.url = url;
78
+ }
79
+ if (serverConfig.httpUrl || serverConfig.transport === "http") {
80
+ augmentServer.transport = "http";
81
+ } else if (serverConfig.transport === "sse") {
82
+ augmentServer.transport = "sse";
83
+ }
84
+ if (serverConfig.env) {
85
+ augmentServer.headers = serverConfig.env;
86
+ }
87
+ }
88
+ if (serverConfig.timeout) {
89
+ augmentServer.timeout = serverConfig.timeout;
90
+ }
91
+ if (serverConfig.disabled !== void 0) {
92
+ augmentServer.enabled = !serverConfig.disabled;
93
+ }
94
+ if (serverConfig.networkTimeout && serverConfig.networkTimeout > 0) {
95
+ augmentServer.retries = Math.max(1, Math.floor(serverConfig.networkTimeout / 3e4));
96
+ }
97
+ settings.mcpServers[serverName] = augmentServer;
98
+ }
99
+ return [
100
+ {
101
+ filepath,
102
+ content: `${JSON.stringify(settings, null, 2)}
103
+ `
104
+ }
105
+ ];
106
+ }
107
+
108
+ export {
109
+ generateAugmentcodeMcp,
110
+ generateAugmentcodeMcpConfiguration
111
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-7ZIUEZZQ.js";
3
+ } from "./chunk-IBJGN3JQ.js";
4
4
 
5
5
  // src/generators/mcp/copilot.ts
6
6
  function generateCopilotMcp(config, target) {
@@ -1,6 +1,8 @@
1
1
  // src/types/tool-targets.ts
2
2
  import { z } from "zod/mini";
3
3
  var ToolTargetSchema = z.enum([
4
+ "augmentcode",
5
+ "augmentcode-legacy",
4
6
  "copilot",
5
7
  "cursor",
6
8
  "cline",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-7ZIUEZZQ.js";
3
+ } from "./chunk-IBJGN3JQ.js";
4
4
 
5
5
  // src/generators/mcp/roo.ts
6
6
  function generateRooMcp(config) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-7ZIUEZZQ.js";
3
+ } from "./chunk-IBJGN3JQ.js";
4
4
 
5
5
  // src/generators/mcp/geminicli.ts
6
6
  function generateGeminiCliMcp(config) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-7ZIUEZZQ.js";
3
+ } from "./chunk-IBJGN3JQ.js";
4
4
 
5
5
  // src/generators/mcp/kiro.ts
6
6
  function generateKiroMcp(config) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-7ZIUEZZQ.js";
3
+ } from "./chunk-IBJGN3JQ.js";
4
4
 
5
5
  // src/generators/mcp/cline.ts
6
6
  function generateClineMcp(config) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  shouldIncludeServer
3
- } from "./chunk-7ZIUEZZQ.js";
3
+ } from "./chunk-IBJGN3JQ.js";
4
4
 
5
5
  // src/generators/mcp/claudecode.ts
6
6
  function generateClaudeMcp(config) {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generateClaudeMcp,
3
3
  generateClaudeMcpConfiguration
4
- } from "./chunk-OTCCHS7Q.js";
5
- import "./chunk-7ZIUEZZQ.js";
4
+ } from "./chunk-YVRWBSCK.js";
5
+ import "./chunk-IBJGN3JQ.js";
6
6
  export {
7
7
  generateClaudeMcp,
8
8
  generateClaudeMcpConfiguration
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generateClineMcp,
3
3
  generateClineMcpConfiguration
4
- } from "./chunk-BY6RI77W.js";
5
- import "./chunk-7ZIUEZZQ.js";
4
+ } from "./chunk-XHNIEO22.js";
5
+ import "./chunk-IBJGN3JQ.js";
6
6
  export {
7
7
  generateClineMcp,
8
8
  generateClineMcpConfiguration
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generateCopilotMcp,
3
3
  generateCopilotMcpConfiguration
4
- } from "./chunk-P6KQZULZ.js";
5
- import "./chunk-7ZIUEZZQ.js";
4
+ } from "./chunk-G5LLOIO4.js";
5
+ import "./chunk-IBJGN3JQ.js";
6
6
  export {
7
7
  generateCopilotMcp,
8
8
  generateCopilotMcpConfiguration
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generateCursorMcp,
3
3
  generateCursorMcpConfiguration
4
- } from "./chunk-7UVBAWYG.js";
5
- import "./chunk-7ZIUEZZQ.js";
4
+ } from "./chunk-6MFEIYHN.js";
5
+ import "./chunk-IBJGN3JQ.js";
6
6
  export {
7
7
  generateCursorMcp,
8
8
  generateCursorMcpConfiguration
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generateGeminiCliMcp,
3
3
  generateGeminiCliMcpConfiguration
4
- } from "./chunk-JWN6GRG6.js";
5
- import "./chunk-7ZIUEZZQ.js";
4
+ } from "./chunk-QNHGYRJT.js";
5
+ import "./chunk-IBJGN3JQ.js";
6
6
  export {
7
7
  generateGeminiCliMcp,
8
8
  generateGeminiCliMcpConfiguration