@intellectronica/ruler 0.3.14 → 0.3.16
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 +4 -3
- package/dist/agents/AntigravityAgent.js +53 -0
- package/dist/agents/KiroAgent.js +6 -0
- package/dist/agents/index.js +2 -0
- package/dist/paths/mcp.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,6 +66,7 @@ Ruler solves this by providing a **single source of truth** for all your AI agen
|
|
|
66
66
|
| Cline | `.clinerules` | - |
|
|
67
67
|
| Crush | `CRUSH.md` | `.crush.json` |
|
|
68
68
|
| Amp | `AGENTS.md` | - |
|
|
69
|
+
| Antigravity | `.agent/rules/ruler.md` | - |
|
|
69
70
|
| Amazon Q CLI | `.amazonq/rules/ruler_q_rules.md` | `.amazonq/mcp.json` |
|
|
70
71
|
| Aider | `AGENTS.md`, `.aider.conf.yml` | `.mcp.json` |
|
|
71
72
|
| Firebase Studio | `.idx/airules.md` | `.idx/mcp.json` |
|
|
@@ -74,14 +75,14 @@ Ruler solves this by providing a **single source of truth** for all your AI agen
|
|
|
74
75
|
| Junie | `.junie/guidelines.md` | - |
|
|
75
76
|
| AugmentCode | `.augment/rules/ruler_augment_instructions.md` | - |
|
|
76
77
|
| Kilo Code | `.kilocode/rules/ruler_kilocode_instructions.md` | `.kilocode/mcp.json` |
|
|
77
|
-
|
|
|
78
|
+
| OpenCode | `AGENTS.md` | `opencode.json` |
|
|
78
79
|
| Goose | `.goosehints` | - |
|
|
79
80
|
| Qwen Code | `AGENTS.md` | `.qwen/settings.json` |
|
|
80
81
|
| RooCode | `AGENTS.md` | `.roo/mcp.json` |
|
|
81
82
|
| Zed | `AGENTS.md` | `.zed/settings.json` (project root, never $HOME) |
|
|
82
83
|
| Trae AI | `.trae/rules/project_rules.md` | - |
|
|
83
84
|
| Warp | `WARP.md` | - |
|
|
84
|
-
| Kiro | `.kiro/steering/ruler_kiro_instructions.md` |
|
|
85
|
+
| Kiro | `.kiro/steering/ruler_kiro_instructions.md` | `.kiro/settings/mcp.json` |
|
|
85
86
|
| Firebender | `firebender.json` | `firebender.json` (rules and MCP in same file) |
|
|
86
87
|
|
|
87
88
|
## Getting Started
|
|
@@ -131,7 +132,7 @@ This is your central hub for all AI agent instructions:
|
|
|
131
132
|
3. Legacy `.ruler/instructions.md` (only if `.ruler/AGENTS.md` absent; no longer emits a deprecation warning)
|
|
132
133
|
4. Remaining discovered `.md` files under `.ruler/` (and subdirectories) in sorted order
|
|
133
134
|
- **Rule Files (`*.md`)**: Discovered recursively from `.ruler/` or `$XDG_CONFIG_HOME/ruler` and concatenated in the order above
|
|
134
|
-
- **Concatenation Marker**: Each file's content is prepended with
|
|
135
|
+
- **Concatenation Marker**: Each file's content is prepended with `<!-- Source: <relative_path_to_md_file> -->` for traceability
|
|
135
136
|
- **`ruler.toml`**: Master configuration for Ruler's behavior, agent selection, and output paths
|
|
136
137
|
- **`mcp.json`**: Shared MCP server settings
|
|
137
138
|
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.AntigravityAgent = void 0;
|
|
37
|
+
const path = __importStar(require("path"));
|
|
38
|
+
const AbstractAgent_1 = require("./AbstractAgent");
|
|
39
|
+
/**
|
|
40
|
+
* Antigravity agent adapter.
|
|
41
|
+
*/
|
|
42
|
+
class AntigravityAgent extends AbstractAgent_1.AbstractAgent {
|
|
43
|
+
getIdentifier() {
|
|
44
|
+
return 'antigravity';
|
|
45
|
+
}
|
|
46
|
+
getName() {
|
|
47
|
+
return 'Antigravity';
|
|
48
|
+
}
|
|
49
|
+
getDefaultOutputPath(projectRoot) {
|
|
50
|
+
return path.join(projectRoot, '.agent', 'rules', 'ruler.md');
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.AntigravityAgent = AntigravityAgent;
|
package/dist/agents/KiroAgent.js
CHANGED
|
@@ -46,5 +46,11 @@ class KiroAgent extends AbstractAgent_1.AbstractAgent {
|
|
|
46
46
|
getDefaultOutputPath(projectRoot) {
|
|
47
47
|
return path.join(projectRoot, '.kiro', 'steering', 'ruler_kiro_instructions.md');
|
|
48
48
|
}
|
|
49
|
+
supportsMcpStdio() {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
supportsMcpRemote() {
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
49
55
|
}
|
|
50
56
|
exports.KiroAgent = KiroAgent;
|
package/dist/agents/index.js
CHANGED
|
@@ -31,6 +31,7 @@ const RooCodeAgent_1 = require("./RooCodeAgent");
|
|
|
31
31
|
const TraeAgent_1 = require("./TraeAgent");
|
|
32
32
|
const AmazonQCliAgent_1 = require("./AmazonQCliAgent");
|
|
33
33
|
const FirebenderAgent_1 = require("./FirebenderAgent");
|
|
34
|
+
const AntigravityAgent_1 = require("./AntigravityAgent");
|
|
34
35
|
exports.allAgents = [
|
|
35
36
|
new CopilotAgent_1.CopilotAgent(),
|
|
36
37
|
new ClaudeAgent_1.ClaudeAgent(),
|
|
@@ -59,6 +60,7 @@ exports.allAgents = [
|
|
|
59
60
|
new TraeAgent_1.TraeAgent(),
|
|
60
61
|
new AmazonQCliAgent_1.AmazonQCliAgent(),
|
|
61
62
|
new FirebenderAgent_1.FirebenderAgent(),
|
|
63
|
+
new AntigravityAgent_1.AntigravityAgent(),
|
|
62
64
|
];
|
|
63
65
|
/**
|
|
64
66
|
* Generates a comma-separated list of agent identifiers for CLI help text.
|
package/dist/paths/mcp.js
CHANGED
|
@@ -77,6 +77,9 @@ async function getNativeMcpPath(adapterName, projectRoot) {
|
|
|
77
77
|
case 'Kilo Code':
|
|
78
78
|
candidates.push(path.join(projectRoot, '.kilocode', 'mcp.json'));
|
|
79
79
|
break;
|
|
80
|
+
case 'Kiro':
|
|
81
|
+
candidates.push(path.join(projectRoot, '.kiro', 'settings', 'mcp.json'));
|
|
82
|
+
break;
|
|
80
83
|
case 'OpenCode':
|
|
81
84
|
candidates.push(path.join(projectRoot, 'opencode.json'));
|
|
82
85
|
break;
|