agentinit 1.4.1 → 1.5.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.
Files changed (173) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +209 -0
  3. package/dist/agentinit-1.5.0.tgz +0 -0
  4. package/dist/agents/Agent.d.ts +110 -0
  5. package/dist/agents/Agent.d.ts.map +1 -0
  6. package/dist/agents/Agent.js +174 -0
  7. package/dist/agents/Agent.js.map +1 -0
  8. package/dist/agents/ClaudeAgent.d.ts +50 -0
  9. package/dist/agents/ClaudeAgent.d.ts.map +1 -0
  10. package/dist/agents/ClaudeAgent.js +249 -0
  11. package/dist/agents/ClaudeAgent.js.map +1 -0
  12. package/dist/agents/ClaudeDesktopAgent.d.ts +49 -0
  13. package/dist/agents/ClaudeDesktopAgent.d.ts.map +1 -0
  14. package/dist/agents/ClaudeDesktopAgent.js +143 -0
  15. package/dist/agents/ClaudeDesktopAgent.js.map +1 -0
  16. package/dist/agents/CodexCliAgent.d.ts +48 -0
  17. package/dist/agents/CodexCliAgent.d.ts.map +1 -0
  18. package/dist/agents/CodexCliAgent.js +262 -0
  19. package/dist/agents/CodexCliAgent.js.map +1 -0
  20. package/dist/agents/CursorAgent.d.ts +44 -0
  21. package/dist/agents/CursorAgent.d.ts.map +1 -0
  22. package/dist/agents/CursorAgent.js +231 -0
  23. package/dist/agents/CursorAgent.js.map +1 -0
  24. package/dist/agents/GeminiCliAgent.d.ts +40 -0
  25. package/dist/agents/GeminiCliAgent.d.ts.map +1 -0
  26. package/dist/agents/GeminiCliAgent.js +195 -0
  27. package/dist/agents/GeminiCliAgent.js.map +1 -0
  28. package/dist/cli.d.ts +3 -0
  29. package/dist/cli.d.ts.map +1 -0
  30. package/dist/cli.js +33191 -0
  31. package/dist/cli.js.map +1 -0
  32. package/dist/commands/apply.d.ts +2 -0
  33. package/dist/commands/apply.d.ts.map +1 -0
  34. package/dist/commands/apply.js +468 -0
  35. package/dist/commands/apply.js.map +1 -0
  36. package/dist/commands/config.d.ts +8 -0
  37. package/dist/commands/config.d.ts.map +1 -0
  38. package/dist/commands/config.js +6 -0
  39. package/dist/commands/config.js.map +1 -0
  40. package/dist/commands/detect.d.ts +6 -0
  41. package/dist/commands/detect.d.ts.map +1 -0
  42. package/dist/commands/detect.js +55 -0
  43. package/dist/commands/detect.js.map +1 -0
  44. package/dist/commands/init.d.ts +7 -0
  45. package/dist/commands/init.d.ts.map +1 -0
  46. package/dist/commands/init.js +105 -0
  47. package/dist/commands/init.js.map +1 -0
  48. package/dist/commands/mcp.d.ts +8 -0
  49. package/dist/commands/mcp.d.ts.map +1 -0
  50. package/dist/commands/mcp.js +127 -0
  51. package/dist/commands/mcp.js.map +1 -0
  52. package/dist/commands/subagents.d.ts +9 -0
  53. package/dist/commands/subagents.d.ts.map +1 -0
  54. package/dist/commands/subagents.js +6 -0
  55. package/dist/commands/subagents.js.map +1 -0
  56. package/dist/commands/sync.d.ts +7 -0
  57. package/dist/commands/sync.d.ts.map +1 -0
  58. package/dist/commands/sync.js +49 -0
  59. package/dist/commands/sync.js.map +1 -0
  60. package/dist/commands/verifyMcp.d.ts +2 -0
  61. package/dist/commands/verifyMcp.d.ts.map +1 -0
  62. package/dist/commands/verifyMcp.js +215 -0
  63. package/dist/commands/verifyMcp.js.map +1 -0
  64. package/dist/constants/index.d.ts +3 -0
  65. package/dist/constants/index.d.ts.map +1 -0
  66. package/dist/constants/index.js +3 -0
  67. package/dist/constants/index.js.map +1 -0
  68. package/dist/constants/mcp.d.ts +9 -0
  69. package/dist/constants/mcp.d.ts.map +1 -0
  70. package/dist/constants/mcp.js +28 -0
  71. package/dist/constants/mcp.js.map +1 -0
  72. package/dist/constants/tokens.d.ts +6 -0
  73. package/dist/constants/tokens.d.ts.map +1 -0
  74. package/dist/constants/tokens.js +5 -0
  75. package/dist/constants/tokens.js.map +1 -0
  76. package/dist/core/agentDetector.d.ts +9 -0
  77. package/dist/core/agentDetector.d.ts.map +1 -0
  78. package/dist/core/agentDetector.js +51 -0
  79. package/dist/core/agentDetector.js.map +1 -0
  80. package/dist/core/agentManager.d.ts +55 -0
  81. package/dist/core/agentManager.d.ts.map +1 -0
  82. package/dist/core/agentManager.js +111 -0
  83. package/dist/core/agentManager.js.map +1 -0
  84. package/dist/core/configMerger.d.ts +49 -0
  85. package/dist/core/configMerger.d.ts.map +1 -0
  86. package/dist/core/configMerger.js +180 -0
  87. package/dist/core/configMerger.js.map +1 -0
  88. package/dist/core/mcpClient.d.ts +38 -0
  89. package/dist/core/mcpClient.d.ts.map +1 -0
  90. package/dist/core/mcpClient.js +416 -0
  91. package/dist/core/mcpClient.js.map +1 -0
  92. package/dist/core/mcpFilter.d.ts +44 -0
  93. package/dist/core/mcpFilter.d.ts.map +1 -0
  94. package/dist/core/mcpFilter.js +126 -0
  95. package/dist/core/mcpFilter.js.map +1 -0
  96. package/dist/core/mcpParser.d.ts +25 -0
  97. package/dist/core/mcpParser.d.ts.map +1 -0
  98. package/dist/core/mcpParser.js +297 -0
  99. package/dist/core/mcpParser.js.map +1 -0
  100. package/dist/core/propagator.d.ts +25 -0
  101. package/dist/core/propagator.d.ts.map +1 -0
  102. package/dist/core/propagator.js +154 -0
  103. package/dist/core/propagator.js.map +1 -0
  104. package/dist/core/rulesApplicator.d.ts +29 -0
  105. package/dist/core/rulesApplicator.d.ts.map +1 -0
  106. package/dist/core/rulesApplicator.js +181 -0
  107. package/dist/core/rulesApplicator.js.map +1 -0
  108. package/dist/core/rulesParser.d.ts +41 -0
  109. package/dist/core/rulesParser.d.ts.map +1 -0
  110. package/dist/core/rulesParser.js +260 -0
  111. package/dist/core/rulesParser.js.map +1 -0
  112. package/dist/core/rulesTemplateLoader.d.ts +31 -0
  113. package/dist/core/rulesTemplateLoader.d.ts.map +1 -0
  114. package/dist/core/rulesTemplateLoader.js +75 -0
  115. package/dist/core/rulesTemplateLoader.js.map +1 -0
  116. package/dist/core/stackDetector.d.ts +16 -0
  117. package/dist/core/stackDetector.d.ts.map +1 -0
  118. package/dist/core/stackDetector.js +234 -0
  119. package/dist/core/stackDetector.js.map +1 -0
  120. package/dist/core/templateEngine.d.ts +15 -0
  121. package/dist/core/templateEngine.d.ts.map +1 -0
  122. package/dist/core/templateEngine.js +260 -0
  123. package/dist/core/templateEngine.js.map +1 -0
  124. package/dist/core/tomlGenerator.d.ts +24 -0
  125. package/dist/core/tomlGenerator.d.ts.map +1 -0
  126. package/dist/core/tomlGenerator.js +185 -0
  127. package/dist/core/tomlGenerator.js.map +1 -0
  128. package/dist/index.d.ts +21 -0
  129. package/dist/index.d.ts.map +1 -0
  130. package/dist/index.js +21 -33195
  131. package/dist/index.js.map +1 -0
  132. package/dist/lib/index.d.ts +39 -0
  133. package/dist/lib/index.d.ts.map +1 -0
  134. package/dist/lib/index.js +40 -0
  135. package/dist/lib/index.js.map +1 -0
  136. package/dist/lib/types/index.d.ts +23 -0
  137. package/dist/lib/types/index.d.ts.map +1 -0
  138. package/dist/lib/types/index.js +23 -0
  139. package/dist/lib/types/index.js.map +1 -0
  140. package/dist/lib/utils/index.d.ts +18 -0
  141. package/dist/lib/utils/index.d.ts.map +1 -0
  142. package/dist/lib/utils/index.js +21 -0
  143. package/dist/lib/utils/index.js.map +1 -0
  144. package/dist/lib/verifier/index.d.ts +22 -0
  145. package/dist/lib/verifier/index.d.ts.map +1 -0
  146. package/dist/lib/verifier/index.js +22 -0
  147. package/dist/lib/verifier/index.js.map +1 -0
  148. package/dist/registry/mcpRegistry.d.ts +12 -0
  149. package/dist/registry/mcpRegistry.d.ts.map +1 -0
  150. package/dist/registry/mcpRegistry.js +114 -0
  151. package/dist/registry/mcpRegistry.js.map +1 -0
  152. package/dist/types/index.d.ts +180 -0
  153. package/dist/types/index.d.ts.map +1 -0
  154. package/dist/types/index.js +21 -0
  155. package/dist/types/index.js.map +1 -0
  156. package/dist/types/rules.d.ts +51 -0
  157. package/dist/types/rules.d.ts.map +1 -0
  158. package/dist/types/rules.js +2 -0
  159. package/dist/types/rules.js.map +1 -0
  160. package/dist/utils/fs.d.ts +12 -0
  161. package/dist/utils/fs.d.ts.map +1 -0
  162. package/dist/utils/fs.js +91 -0
  163. package/dist/utils/fs.js.map +1 -0
  164. package/dist/utils/logger.d.ts +14 -0
  165. package/dist/utils/logger.d.ts.map +1 -0
  166. package/dist/utils/logger.js +36 -0
  167. package/dist/utils/logger.js.map +1 -0
  168. package/dist/utils/paths.d.ts +77 -0
  169. package/dist/utils/paths.d.ts.map +1 -0
  170. package/dist/utils/paths.js +140 -0
  171. package/dist/utils/paths.js.map +1 -0
  172. package/package.json +30 -6
  173. package/dist/agentinit-1.4.1.tgz +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../src/types/rules.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,eAAe,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,WAAW,EAAE,CAAC;CAChC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../src/types/rules.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export declare function fileExists(path: string): Promise<boolean>;
2
+ export declare function isDirectory(path: string): Promise<boolean>;
3
+ export declare function pathExists(path: string, type: 'file' | 'folder'): Promise<boolean>;
4
+ export declare function readFileIfExists(path: string): Promise<string | null>;
5
+ export declare function writeFile(path: string, content: string): Promise<void>;
6
+ export declare function copyFile(src: string, dest: string): Promise<void>;
7
+ export declare function listFiles(dir: string): Promise<string[]>;
8
+ export declare function findFiles(dir: string, pattern: RegExp): Promise<string[]>;
9
+ export declare function ensureAgentInitDir(projectPath: string): Promise<string>;
10
+ export declare function getAgentInitTomlPath(projectPath: string): Promise<string>;
11
+ export declare function ensureDirectoryExists(filePath: string): Promise<void>;
12
+ //# sourceMappingURL=fs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["../../src/utils/fs.ts"],"names":[],"mappings":"AAGA,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAO/D;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAOhE;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAUxF;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAM3E;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAI5E;AAED,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIvE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAM9D;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAqB/E;AAED,wBAAsB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAI7E;AAED,wBAAsB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAG/E;AAED,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAG3E"}
@@ -0,0 +1,91 @@
1
+ import { promises as fs } from 'fs';
2
+ import { join, dirname } from 'path';
3
+ export async function fileExists(path) {
4
+ try {
5
+ await fs.access(path);
6
+ return true;
7
+ }
8
+ catch {
9
+ return false;
10
+ }
11
+ }
12
+ export async function isDirectory(path) {
13
+ try {
14
+ const stat = await fs.stat(path);
15
+ return stat.isDirectory();
16
+ }
17
+ catch {
18
+ return false;
19
+ }
20
+ }
21
+ export async function pathExists(path, type) {
22
+ if (!(await fileExists(path))) {
23
+ return false;
24
+ }
25
+ if (type === 'folder') {
26
+ return await isDirectory(path);
27
+ }
28
+ else {
29
+ return !(await isDirectory(path));
30
+ }
31
+ }
32
+ export async function readFileIfExists(path) {
33
+ try {
34
+ return await fs.readFile(path, 'utf8');
35
+ }
36
+ catch {
37
+ return null;
38
+ }
39
+ }
40
+ export async function writeFile(path, content) {
41
+ const dir = dirname(path);
42
+ await fs.mkdir(dir, { recursive: true });
43
+ await fs.writeFile(path, content, 'utf8');
44
+ }
45
+ export async function copyFile(src, dest) {
46
+ const dir = dirname(dest);
47
+ await fs.mkdir(dir, { recursive: true });
48
+ await fs.copyFile(src, dest);
49
+ }
50
+ export async function listFiles(dir) {
51
+ try {
52
+ return await fs.readdir(dir);
53
+ }
54
+ catch {
55
+ return [];
56
+ }
57
+ }
58
+ export async function findFiles(dir, pattern) {
59
+ const files = [];
60
+ try {
61
+ const entries = await fs.readdir(dir, { withFileTypes: true });
62
+ for (const entry of entries) {
63
+ const fullPath = join(dir, entry.name);
64
+ if (entry.isDirectory()) {
65
+ const subFiles = await findFiles(fullPath, pattern);
66
+ files.push(...subFiles);
67
+ }
68
+ else if (pattern.test(entry.name)) {
69
+ files.push(fullPath);
70
+ }
71
+ }
72
+ }
73
+ catch {
74
+ // Directory doesn't exist or can't be read
75
+ }
76
+ return files;
77
+ }
78
+ export async function ensureAgentInitDir(projectPath) {
79
+ const agentInitDir = join(projectPath, '.agentinit');
80
+ await fs.mkdir(agentInitDir, { recursive: true });
81
+ return agentInitDir;
82
+ }
83
+ export async function getAgentInitTomlPath(projectPath) {
84
+ const agentInitDir = await ensureAgentInitDir(projectPath);
85
+ return join(agentInitDir, 'agentinit.toml');
86
+ }
87
+ export async function ensureDirectoryExists(filePath) {
88
+ const dir = dirname(filePath);
89
+ await fs.mkdir(dir, { recursive: true });
90
+ }
91
+ //# sourceMappingURL=fs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fs.js","sourceRoot":"","sources":["../../src/utils/fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,IAAI,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,IAAY;IAC3C,IAAI,CAAC;QACH,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAY;IAC5C,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,IAAY,EAAE,IAAuB;IACpE,IAAI,CAAC,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,IAAI,KAAK,QAAQ,EAAE,CAAC;QACtB,OAAO,MAAM,WAAW,CAAC,IAAI,CAAC,CA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,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AAC3C,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare class Logger {
2
+ private static instance;
3
+ static getInstance(): Logger;
4
+ info(message: string): void;
5
+ success(message: string): void;
6
+ warning(message: string): void;
7
+ warn(message: string): void;
8
+ error(message: string): void;
9
+ debug(message: string): void;
10
+ title(message: string): void;
11
+ subtitle(message: string): void;
12
+ }
13
+ export declare const logger: Logger;
14
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAEA,qBAAa,MAAM;IACjB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAS;IAEhC,MAAM,CAAC,WAAW,IAAI,MAAM;IAO5B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3B,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI9B,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI9B,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI3B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI5B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI5B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAI5B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAGhC;AAED,eAAO,MAAM,MAAM,QAAuB,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { cyan, green, yellow, red, bold, dim } from 'kleur/colors';
2
+ export class Logger {
3
+ static instance;
4
+ static getInstance() {
5
+ if (!Logger.instance) {
6
+ Logger.instance = new Logger();
7
+ }
8
+ return Logger.instance;
9
+ }
10
+ info(message) {
11
+ console.log(cyan('ℹ'), message);
12
+ }
13
+ success(message) {
14
+ console.log(green('✓'), message);
15
+ }
16
+ warning(message) {
17
+ console.log(yellow('⚠'), message);
18
+ }
19
+ warn(message) {
20
+ this.warning(message);
21
+ }
22
+ error(message) {
23
+ console.log(red('✗'), message);
24
+ }
25
+ debug(message) {
26
+ console.log(dim('•'), dim(message));
27
+ }
28
+ title(message) {
29
+ console.log(bold(cyan(message)));
30
+ }
31
+ subtitle(message) {
32
+ console.log(bold(message));
33
+ }
34
+ }
35
+ export const logger = Logger.getInstance();
36
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnE,MAAM,OAAO,MAAM;IACT,MAAM,CAAC,QAAQ,CAAS;IAEhC,MAAM,CAAC,WAAW;QAChB,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;YACrB,MAAM,CAAC,QAAQ,GAAG,IAAI,MAAM,EAAE,CAAC;QACjC,CAAC;QACD,OAAO,MAAM,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED,IAAI,CAAC,OAAe;QAClB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;IAClC,CAAC;IAED,OAAO,CAAC,OAAe;QACrB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,OAAO,CAAC,OAAe;QACrB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;IACpC,CAAC;IAED,IAAI,CAAC,OAAe;QAClB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,OAAe;QACnB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,OAAe;QACnB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;IACtC,CAAC;IAED,KAAK,CAAC,OAAe;QACnB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC;IAED,QAAQ,CAAC,OAAe;QACtB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7B,CAAC;CACF;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC"}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Cross-platform path utilities for global configuration handling
3
+ */
4
+ /**
5
+ * Get the user's home directory
6
+ */
7
+ export declare function getHomeDirectory(): string;
8
+ /**
9
+ * Get the current platform identifier
10
+ */
11
+ export declare function getPlatform(): 'windows' | 'darwin' | 'linux';
12
+ /**
13
+ * Expand tilde (~) in a path to the home directory
14
+ */
15
+ export declare function expandTilde(path: string): string;
16
+ /**
17
+ * Get platform-specific environment variable values
18
+ */
19
+ export declare function getEnvironmentPath(key: string): string | undefined;
20
+ /**
21
+ * Get the appropriate global config path for the current platform
22
+ * @param globalConfigPath Single global config path (cross-platform)
23
+ * @param globalConfigPaths Platform-specific config paths
24
+ * @returns Resolved global config path or null if not supported
25
+ */
26
+ export declare function resolveGlobalConfigPath(globalConfigPath?: string, globalConfigPaths?: {
27
+ windows?: string;
28
+ darwin?: string;
29
+ linux?: string;
30
+ }): string | null;
31
+ /**
32
+ * Get Windows AppData paths
33
+ */
34
+ export declare function getWindowsAppDataPaths(): {
35
+ roaming: string | undefined;
36
+ local: string | undefined;
37
+ userProfile: string | undefined;
38
+ };
39
+ /**
40
+ * Get macOS application support directory
41
+ */
42
+ export declare function getMacOSApplicationSupportPath(): string;
43
+ /**
44
+ * Get Linux config directory (XDG Base Directory)
45
+ */
46
+ export declare function getLinuxConfigPath(): string;
47
+ /**
48
+ * Common global config path patterns for different agents
49
+ */
50
+ export declare const GLOBAL_CONFIG_PATTERNS: {
51
+ readonly claude: {
52
+ readonly code: "~/.mcp.json";
53
+ readonly desktop: {
54
+ readonly windows: "%APPDATA%/Claude/claude_desktop_config.json";
55
+ readonly darwin: "~/Library/Application Support/Claude/claude_desktop_config.json";
56
+ readonly linux: "~/.config/Claude/claude_desktop_config.json";
57
+ };
58
+ };
59
+ readonly cursor: "~/.cursor/mcp.json";
60
+ readonly codex: "~/.codex/config.toml";
61
+ readonly gemini: "~/.gemini/settings.json";
62
+ };
63
+ /**
64
+ * Resolve environment variables in a path
65
+ * Currently supports %APPDATA%, %LOCALAPPDATA%, %USERPROFILE%
66
+ */
67
+ export declare function resolveEnvironmentVariables(path: string): string;
68
+ /**
69
+ * Get a fully resolved global config path
70
+ * Handles tildes, environment variables, and platform-specific paths
71
+ */
72
+ export declare function getFullGlobalConfigPath(globalConfigPath?: string, globalConfigPaths?: {
73
+ windows?: string;
74
+ darwin?: string;
75
+ linux?: string;
76
+ }): string | null;
77
+ //# sourceMappingURL=paths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/utils/paths.ts"],"names":[],"mappings":"AAGA;;GAEG;AAEH;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,SAAS,GAAG,QAAQ,GAAG,OAAO,CAY5D;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAQhD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAElE;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,gBAAgB,CAAC,EAAE,MAAM,EACzB,iBAAiB,CAAC,EAAE;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GACA,MAAM,GAAG,IAAI,CAiBf;AAED;;GAEG;AACH,wBAAgB,sBAAsB;;;;EAMrC;AAED;;GAEG;AACH,wBAAgB,8BAA8B,IAAI,MAAM,CAEvD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAM3C;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;CAmBzB,CAAC;AAEX;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAWhE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,gBAAgB,CAAC,EAAE,MAAM,EACzB,iBAAiB,CAAC,EAAE;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GACA,MAAM,GAAG,IAAI,CAUf"}
@@ -0,0 +1,140 @@
1
+ import { resolve, join } from 'path';
2
+ import { homedir } from 'os';
3
+ /**
4
+ * Cross-platform path utilities for global configuration handling
5
+ */
6
+ /**
7
+ * Get the user's home directory
8
+ */
9
+ export function getHomeDirectory() {
10
+ return homedir();
11
+ }
12
+ /**
13
+ * Get the current platform identifier
14
+ */
15
+ export function getPlatform() {
16
+ switch (process.platform) {
17
+ case 'win32':
18
+ return 'windows';
19
+ case 'darwin':
20
+ return 'darwin';
21
+ case 'linux':
22
+ return 'linux';
23
+ default:
24
+ // Default to linux for unknown platforms
25
+ return 'linux';
26
+ }
27
+ }
28
+ /**
29
+ * Expand tilde (~) in a path to the home directory
30
+ */
31
+ export function expandTilde(path) {
32
+ if (path.startsWith('~/')) {
33
+ return join(getHomeDirectory(), path.slice(2));
34
+ }
35
+ if (path === '~') {
36
+ return getHomeDirectory();
37
+ }
38
+ return path;
39
+ }
40
+ /**
41
+ * Get platform-specific environment variable values
42
+ */
43
+ export function getEnvironmentPath(key) {
44
+ return process.env[key];
45
+ }
46
+ /**
47
+ * Get the appropriate global config path for the current platform
48
+ * @param globalConfigPath Single global config path (cross-platform)
49
+ * @param globalConfigPaths Platform-specific config paths
50
+ * @returns Resolved global config path or null if not supported
51
+ */
52
+ export function resolveGlobalConfigPath(globalConfigPath, globalConfigPaths) {
53
+ // If single path provided, use it for all platforms
54
+ if (globalConfigPath) {
55
+ return expandTilde(globalConfigPath);
56
+ }
57
+ // Use platform-specific path
58
+ if (globalConfigPaths) {
59
+ const platform = getPlatform();
60
+ const platformPath = globalConfigPaths[platform];
61
+ if (platformPath) {
62
+ return expandTilde(platformPath);
63
+ }
64
+ }
65
+ return null;
66
+ }
67
+ /**
68
+ * Get Windows AppData paths
69
+ */
70
+ export function getWindowsAppDataPaths() {
71
+ return {
72
+ roaming: getEnvironmentPath('APPDATA'), // %APPDATA%
73
+ local: getEnvironmentPath('LOCALAPPDATA'), // %LOCALAPPDATA%
74
+ userProfile: getEnvironmentPath('USERPROFILE') // %USERPROFILE%
75
+ };
76
+ }
77
+ /**
78
+ * Get macOS application support directory
79
+ */
80
+ export function getMacOSApplicationSupportPath() {
81
+ return join(getHomeDirectory(), 'Library', 'Application Support');
82
+ }
83
+ /**
84
+ * Get Linux config directory (XDG Base Directory)
85
+ */
86
+ export function getLinuxConfigPath() {
87
+ const xdgConfigHome = getEnvironmentPath('XDG_CONFIG_HOME');
88
+ if (xdgConfigHome) {
89
+ return xdgConfigHome;
90
+ }
91
+ return join(getHomeDirectory(), '.config');
92
+ }
93
+ /**
94
+ * Common global config path patterns for different agents
95
+ */
96
+ export const GLOBAL_CONFIG_PATTERNS = {
97
+ // Claude patterns
98
+ claude: {
99
+ code: '~/.mcp.json',
100
+ desktop: {
101
+ windows: '%APPDATA%/Claude/claude_desktop_config.json',
102
+ darwin: '~/Library/Application Support/Claude/claude_desktop_config.json',
103
+ linux: '~/.config/Claude/claude_desktop_config.json'
104
+ }
105
+ },
106
+ // Cursor patterns
107
+ cursor: '~/.cursor/mcp.json',
108
+ // Codex CLI patterns
109
+ codex: '~/.codex/config.toml',
110
+ // Gemini CLI patterns
111
+ gemini: '~/.gemini/settings.json'
112
+ };
113
+ /**
114
+ * Resolve environment variables in a path
115
+ * Currently supports %APPDATA%, %LOCALAPPDATA%, %USERPROFILE%
116
+ */
117
+ export function resolveEnvironmentVariables(path) {
118
+ if (getPlatform() === 'windows') {
119
+ const appDataPaths = getWindowsAppDataPaths();
120
+ return path
121
+ .replace(/%APPDATA%/g, appDataPaths.roaming || '')
122
+ .replace(/%LOCALAPPDATA%/g, appDataPaths.local || '')
123
+ .replace(/%USERPROFILE%/g, appDataPaths.userProfile || '');
124
+ }
125
+ return path;
126
+ }
127
+ /**
128
+ * Get a fully resolved global config path
129
+ * Handles tildes, environment variables, and platform-specific paths
130
+ */
131
+ export function getFullGlobalConfigPath(globalConfigPath, globalConfigPaths) {
132
+ const path = resolveGlobalConfigPath(globalConfigPath, globalConfigPaths);
133
+ if (!path) {
134
+ return null;
135
+ }
136
+ // Resolve environment variables and return absolute path
137
+ const resolvedPath = resolveEnvironmentVariables(path);
138
+ return resolve(resolvedPath);
139
+ }
140
+ //# sourceMappingURL=paths.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/utils/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAE7B;;GAEG;AAEH;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO,OAAO,EAAE,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW;IACzB,QAAQ,OAAO,CAAC,QAAQ,EAAE,CAAC;QACzB,KAAK,OAAO;YACV,OAAO,SAAS,CAAC;QACnB,KAAK,Q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BAAyB,EACzB,iBAIC;IAED,MAAM,IAAI,GAAG,uBAAuB,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IAE1E,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO,IAAI,CAAC;IACd,CAAC;IAED,yDAAyD;IACzD,MAAM,YAAY,GAAG,2BAA2B,CAAC,IAAI,CAAC,CAAC;IACvD,OAAO,OAAO,CAAC,YAAY,CAAC,CAAC;AAC/B,CAAC"}
package/package.json CHANGED
@@ -1,15 +1,34 @@
1
1
  {
2
2
  "name": "agentinit",
3
- "version": "1.4.1",
4
- "description": "A CLI tool for managing and configuring AI coding agents",
3
+ "version": "1.5.0",
4
+ "description": "CLI tool and library for managing AI coding agents and verifying MCP servers",
5
5
  "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
6
7
  "type": "module",
7
8
  "bin": {
8
- "agentinit": "dist/index.js"
9
+ "agentinit": "dist/cli.js"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ },
16
+ "./verifier": {
17
+ "import": "./dist/lib/verifier/index.js",
18
+ "types": "./dist/lib/verifier/index.d.ts"
19
+ },
20
+ "./types": {
21
+ "import": "./dist/lib/types/index.js",
22
+ "types": "./dist/lib/types/index.d.ts"
23
+ },
24
+ "./utils": {
25
+ "import": "./dist/lib/utils/index.js",
26
+ "types": "./dist/lib/utils/index.d.ts"
27
+ }
9
28
  },
10
29
  "scripts": {
11
- "build": "bun build src/index.ts --outdir dist --target node --external tiktoken && cp -r src/templates dist/",
12
- "dev": "bun run src/index.ts",
30
+ "build": "npx tsc -p tsconfig.build.json && cp -r src/templates dist/ && bun build dist/cli.js --outfile dist/cli-bundled.js --target node --external tiktoken && mv dist/cli-bundled.js dist/cli.js",
31
+ "dev": "bun run src/cli.ts",
13
32
  "test": "vitest run",
14
33
  "test:watch": "vitest",
15
34
  "test_all": "vitest run && tsc --noEmit",
@@ -22,8 +41,13 @@
22
41
  "ai",
23
42
  "agents",
24
43
  "cli",
44
+ "library",
45
+ "sdk",
46
+ "mcp",
47
+ "model-context-protocol",
25
48
  "configuration",
26
- "automation"
49
+ "automation",
50
+ "verification"
27
51
  ],
28
52
  "author": "AgentInit Team",
29
53
  "license": "MIT",
Binary file