memorix 0.9.26 → 0.9.28
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/index.js +18 -16
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +18 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -40644,17 +40644,18 @@ function generateCopilotConfig() {
|
|
|
40644
40644
|
}
|
|
40645
40645
|
function generateGeminiConfig() {
|
|
40646
40646
|
const cmd = `${resolveHookCommand()} hook`;
|
|
40647
|
-
|
|
40648
|
-
|
|
40649
|
-
|
|
40650
|
-
|
|
40651
|
-
|
|
40647
|
+
function entry(name, desc) {
|
|
40648
|
+
return {
|
|
40649
|
+
matcher: "*",
|
|
40650
|
+
hooks: [{ name, type: "command", command: cmd, description: desc }]
|
|
40651
|
+
};
|
|
40652
|
+
}
|
|
40652
40653
|
return {
|
|
40653
40654
|
hooks: {
|
|
40654
|
-
SessionStart: [
|
|
40655
|
-
AfterTool: [
|
|
40656
|
-
AfterAgent: [
|
|
40657
|
-
PreCompress: [
|
|
40655
|
+
SessionStart: [entry("memorix-session-start", "Load memorix context at session start")],
|
|
40656
|
+
AfterTool: [entry("memorix-after-tool", "Record tool usage in memorix")],
|
|
40657
|
+
AfterAgent: [entry("memorix-after-agent", "Record agent response in memorix")],
|
|
40658
|
+
PreCompress: [entry("memorix-pre-compress", "Save context before compression")]
|
|
40658
40659
|
}
|
|
40659
40660
|
};
|
|
40660
40661
|
}
|
|
@@ -40797,13 +40798,11 @@ async function detectInstalledAgents() {
|
|
|
40797
40798
|
agents.push("cursor");
|
|
40798
40799
|
} catch {
|
|
40799
40800
|
}
|
|
40800
|
-
|
|
40801
|
-
|
|
40802
|
-
|
|
40803
|
-
|
|
40804
|
-
|
|
40805
|
-
} catch {
|
|
40806
|
-
}
|
|
40801
|
+
const vscodeDir = path7.join(home, ".vscode");
|
|
40802
|
+
try {
|
|
40803
|
+
await fs5.access(vscodeDir);
|
|
40804
|
+
agents.push("copilot");
|
|
40805
|
+
} catch {
|
|
40807
40806
|
}
|
|
40808
40807
|
const kiroConfig = path7.join(home, ".kiro");
|
|
40809
40808
|
try {
|
|
@@ -40930,6 +40929,9 @@ async function installAgentRules(agent, projectRoot) {
|
|
|
40930
40929
|
case "kiro":
|
|
40931
40930
|
rulesPath = path7.join(projectRoot, ".kiro", "steering", "memorix.md");
|
|
40932
40931
|
break;
|
|
40932
|
+
case "antigravity":
|
|
40933
|
+
rulesPath = path7.join(projectRoot, ".gemini", "rules", "memorix.md");
|
|
40934
|
+
break;
|
|
40933
40935
|
default:
|
|
40934
40936
|
rulesPath = path7.join(projectRoot, ".agent", "rules", "memorix.md");
|
|
40935
40937
|
break;
|