@neyugn/agent-kits 0.2.1 → 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/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",
@@ -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.1",
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