@neyugn/agent-kits 0.2.0 → 0.2.2

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.md CHANGED
@@ -136,11 +136,11 @@ If the installer detects an existing installation, you'll be prompted:
136
136
 
137
137
  Works on **Windows**, **macOS**, and **Linux** with automatic path adaptation:
138
138
 
139
- | Platform | Example Global Path |
140
- | -------- | -------------------------- |
141
- | Windows | `C:\Users\darien\.claude\` |
142
- | macOS | `/Users/darien/.claude/` |
143
- | Linux | `/home/darien/.claude/` |
139
+ | Platform | Example Global Path |
140
+ | -------- | ---------------------------- |
141
+ | Windows | `C:\Users\username\.claude\` |
142
+ | macOS | `/Users/username/.claude/` |
143
+ | Linux | `/home/username/.claude/` |
144
144
 
145
145
  <br/>
146
146
 
package/README.vi.md CHANGED
@@ -128,11 +128,11 @@ Nếu installer phát hiện cài đặt đã tồn tại, bạn sẽ được h
128
128
 
129
129
  Hoạt động trên **Windows**, **macOS**, và **Linux** với đường dẫn được tự động điều chỉnh:
130
130
 
131
- | Nền tảng | Đường dẫn Global ví dụ |
132
- | -------- | -------------------------- |
133
- | Windows | `C:\Users\darien\.claude\` |
134
- | macOS | `/Users/darien/.claude/` |
135
- | Linux | `/home/darien/.claude/` |
131
+ | Nền tảng | Đường dẫn Global ví dụ |
132
+ | -------- | ---------------------------- |
133
+ | Windows | `C:\Users\username\.claude\` |
134
+ | macOS | `/Users/username/.claude/` |
135
+ | Linux | `/home/username/.claude/` |
136
136
 
137
137
  <br/>
138
138
 
package/README.zh.md CHANGED
@@ -128,11 +128,11 @@ npx @neyugn/agent-kits
128
128
 
129
129
  支持 **Windows**、**macOS** 和 **Linux**,路径自动适配:
130
130
 
131
- | 平台 | Global 路径示例 |
132
- | ------- | -------------------------- |
133
- | Windows | `C:\Users\darien\.claude\` |
134
- | macOS | `/Users/darien/.claude/` |
135
- | Linux | `/home/darien/.claude/` |
131
+ | 平台 | Global 路径示例 |
132
+ | ------- | ---------------------------- |
133
+ | Windows | `C:\Users\username\.claude\` |
134
+ | macOS | `/Users/username/.claude/` |
135
+ | Linux | `/home/username/.claude/` |
136
136
 
137
137
  <br/>
138
138
 
package/dist/cli.js CHANGED
@@ -32,7 +32,9 @@ var AI_TOOLS = [
32
32
  globalPathPattern: "~/.claude",
33
33
  // Resolved to home dir at runtime
34
34
  rulesFile: "CLAUDE.md",
35
- kitRulesFile: "CLAUDE.md"
35
+ kitRulesFile: "CLAUDE.md",
36
+ rulesInsideKit: true
37
+ // Claude reads from .claude/CLAUDE.md (2025 standard)
36
38
  },
37
39
  {
38
40
  id: "gemini",
@@ -41,7 +43,9 @@ var AI_TOOLS = [
41
43
  path: ".gemini",
42
44
  globalPathPattern: "~/.gemini",
43
45
  rulesFile: "GEMINI.md",
44
- kitRulesFile: "GEMINI.md"
46
+ kitRulesFile: "GEMINI.md",
47
+ rulesInsideKit: true
48
+ // Gemini reads from .gemini/GEMINI.md
45
49
  },
46
50
  {
47
51
  id: "codex",
@@ -49,8 +53,10 @@ var AI_TOOLS = [
49
53
  icon: "\u{1F7E2}",
50
54
  path: ".codex",
51
55
  globalPathPattern: "~/.codex",
52
- rulesFile: "CODEX.md",
53
- kitRulesFile: "CODEX.md"
56
+ rulesFile: "AGENTS.md",
57
+ kitRulesFile: "AGENTS.md",
58
+ rulesInsideKit: true
59
+ // Codex reads from .codex/AGENTS.md
54
60
  },
55
61
  {
56
62
  id: "antigravity",
@@ -59,16 +65,22 @@ var AI_TOOLS = [
59
65
  path: ".agent",
60
66
  globalPathPattern: "~/.agent",
61
67
  rulesFile: "GEMINI.md",
62
- kitRulesFile: "GEMINI.md"
68
+ kitRulesFile: "GEMINI.md",
69
+ rulesInsideKit: true
70
+ // Antigravity reads GEMINI.md from inside .agent/
63
71
  },
64
72
  {
65
73
  id: "cursor",
66
74
  name: "Cursor",
67
75
  icon: "\u26AA",
68
- path: ".cursor",
69
- globalPathPattern: "~/.cursor",
70
- rulesFile: ".cursorrules",
71
- kitRulesFile: ".cursorrules"
76
+ path: ".cursor/rules",
77
+ // Modern path: .cursor/rules/ (2025 standard)
78
+ globalPathPattern: "~/.cursor/rules",
79
+ rulesFile: "rules.md",
80
+ // Modern: .cursor/rules/rules.md instead of .cursorrules
81
+ kitRulesFile: "CURSOR.md",
82
+ // Source file in kit
83
+ rulesInsideKit: true
72
84
  },
73
85
  {
74
86
  id: "custom",
@@ -129,8 +141,8 @@ import fs from "fs/promises";
129
141
  import path2 from "path";
130
142
  import { fileURLToPath } from "url";
131
143
  var __dirname = path2.dirname(fileURLToPath(import.meta.url));
132
- var KITS_DIR = path2.resolve(__dirname, "../../kits");
133
- var COMMON_DIR = path2.resolve(__dirname, "../../common");
144
+ var KITS_DIR = path2.resolve(__dirname, "../kits");
145
+ var COMMON_DIR = path2.resolve(__dirname, "../common");
134
146
  async function installKit(options) {
135
147
  const { aiTool, kits, targetPath } = options;
136
148
  const results = [];
@@ -144,7 +156,7 @@ async function installKit(options) {
144
156
  await fs.mkdir(kitTargetPath, { recursive: true });
145
157
  await copyDirectory(kitSourcePath, kitTargetPath, ["rules"]);
146
158
  const rulesSource = path2.join(kitSourcePath, "rules", aiTool.kitRulesFile);
147
- const rulesTarget = path2.join(targetPath, aiTool.rulesFile);
159
+ const rulesTarget = options.scope === "global" || aiTool.rulesInsideKit ? path2.join(kitTargetPath, aiTool.rulesFile) : path2.join(targetPath, aiTool.rulesFile);
148
160
  try {
149
161
  let rulesContent = await fs.readFile(rulesSource, "utf-8");
150
162
  rulesContent = rulesContent.replace(
@@ -323,7 +335,7 @@ async function main() {
323
335
  workspacePath = expandPath(pathResult);
324
336
  }
325
337
  const finalInstallPath = getInstallPath(aiTool, scope, workspacePath);
326
- const rulesFilePath = scope === "global" ? path3.join(os2.homedir(), aiTool.rulesFile) : path3.join(workspacePath, aiTool.rulesFile);
338
+ const rulesFilePath = scope === "global" || aiTool.rulesInsideKit ? path3.join(finalInstallPath, aiTool.rulesFile) : path3.join(workspacePath, aiTool.rulesFile);
327
339
  if (directoryExists(finalInstallPath)) {
328
340
  p.log.warn(
329
341
  `${pc.yellow("\u26A0")} Existing toolkit found at: ${pc.cyan(getDisplayPath(finalInstallPath))}`
@@ -413,8 +425,6 @@ async function main() {
413
425
  targetPath: scope === "global" ? os2.homedir() : workspacePath,
414
426
  scope
415
427
  });
416
- const isGlobal = scope === "global";
417
- const rulesFile = isGlobal ? path3.join(os2.homedir(), aiTool.rulesFile) : path3.join(workspacePath, aiTool.rulesFile);
418
428
  s.stop("Installation complete! \u{1F389}");
419
429
  console.log("");
420
430
  console.log(
@@ -427,7 +437,7 @@ async function main() {
427
437
  `${pc.green("\u2714")} Agents Deployed`,
428
438
  "",
429
439
  pc.bold("\u{1F449} NEXT STEPS:"),
430
- `1. Open ${pc.cyan(getDisplayPath(rulesFile))}`,
440
+ `1. Open ${pc.cyan(getDisplayPath(rulesFilePath))}`,
431
441
  `2. Read the instructions`,
432
442
  `3. Type ${pc.magenta("/plan")} or ${pc.magenta("/create")} to start`
433
443
  ].join("\n"),
@@ -2,7 +2,7 @@
2
2
  trigger: manual
3
3
  ---
4
4
 
5
- # CODEX.md - AGT-Kit
5
+ # AGENTS.md - AGT-Kit
6
6
 
7
7
  > AI Agent Capability Expansion Toolkit - This file defines AI behavior in this workspace.
8
8
 
@@ -26,7 +26,7 @@ AGT-Kit is a portable, modular AI agent system consisting of:
26
26
 
27
27
  Agent activated → Check frontmatter `skills:` → Read SKILL.md → Apply.
28
28
 
29
- - **Priority:** P0 (GEMINI.md) > P1 (Agent.md) > P2 (SKILL.md). All binding.
29
+ - **Priority:** P0 (AGENTS.md) > P1 (Agent.md) > P2 (SKILL.md). All binding.
30
30
  - **Enforcement:** Never skip reading. "Read → Understand → Apply" mandatory.
31
31
 
32
32
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neyugn/agent-kits",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Universal AI Agent Toolkit - Skills, Agents, and Workflows for any AI coding assistant",
5
5
  "type": "module",
6
6
  "bin": {
File without changes