memorix 0.9.25 → 0.9.26
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 +36 -32
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +36 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -40695,44 +40695,48 @@ function generateKiroHookFiles() {
|
|
|
40695
40695
|
return [
|
|
40696
40696
|
{
|
|
40697
40697
|
filename: "memorix-agent-stop.kiro.hook",
|
|
40698
|
-
content:
|
|
40699
|
-
|
|
40700
|
-
|
|
40701
|
-
|
|
40702
|
-
|
|
40703
|
-
|
|
40704
|
-
|
|
40705
|
-
|
|
40706
|
-
|
|
40707
|
-
|
|
40698
|
+
content: JSON.stringify({
|
|
40699
|
+
enabled: true,
|
|
40700
|
+
name: "Memorix Session Memory",
|
|
40701
|
+
description: "Record session context when agent completes a turn",
|
|
40702
|
+
version: "1",
|
|
40703
|
+
when: { type: "agentStop" },
|
|
40704
|
+
then: {
|
|
40705
|
+
type: "askAgent",
|
|
40706
|
+
prompt: "Call memorix MCP tools to store important context from this conversation:\n1. Use memorix_store to record any decisions, bug fixes, gotchas, or configuration changes\n2. Include relevant file paths and concepts for searchability"
|
|
40707
|
+
}
|
|
40708
|
+
}, null, 2)
|
|
40708
40709
|
},
|
|
40709
40710
|
{
|
|
40710
40711
|
filename: "memorix-prompt-submit.kiro.hook",
|
|
40711
|
-
content:
|
|
40712
|
-
|
|
40713
|
-
|
|
40714
|
-
|
|
40715
|
-
|
|
40716
|
-
|
|
40717
|
-
|
|
40718
|
-
|
|
40719
|
-
|
|
40720
|
-
|
|
40721
|
-
|
|
40712
|
+
content: JSON.stringify({
|
|
40713
|
+
enabled: true,
|
|
40714
|
+
name: "Memorix Context Loader",
|
|
40715
|
+
description: "Load relevant memories when user submits a prompt",
|
|
40716
|
+
version: "1",
|
|
40717
|
+
when: { type: "promptSubmit" },
|
|
40718
|
+
then: {
|
|
40719
|
+
type: "askAgent",
|
|
40720
|
+
prompt: "Before responding, search for relevant context:\n1. Call memorix_search with a query related to the user's prompt\n2. If results are found, use memorix_detail to fetch the most relevant ones\n3. Reference relevant memories naturally in your response"
|
|
40721
|
+
}
|
|
40722
|
+
}, null, 2)
|
|
40722
40723
|
},
|
|
40723
40724
|
{
|
|
40724
40725
|
filename: "memorix-file-save.kiro.hook",
|
|
40725
|
-
content:
|
|
40726
|
-
|
|
40727
|
-
|
|
40728
|
-
|
|
40729
|
-
|
|
40730
|
-
|
|
40731
|
-
|
|
40732
|
-
|
|
40733
|
-
|
|
40734
|
-
|
|
40735
|
-
|
|
40726
|
+
content: JSON.stringify({
|
|
40727
|
+
enabled: true,
|
|
40728
|
+
name: "Memorix File Change Tracker",
|
|
40729
|
+
description: "Track significant file changes for cross-session memory",
|
|
40730
|
+
version: "1",
|
|
40731
|
+
when: {
|
|
40732
|
+
type: "fileEdited",
|
|
40733
|
+
patterns: ["**/*.ts", "**/*.js", "**/*.tsx", "**/*.jsx", "**/*.py", "**/*.rs", "**/*.go", "**/*.java", "**/*.md"]
|
|
40734
|
+
},
|
|
40735
|
+
then: {
|
|
40736
|
+
type: "runCommand",
|
|
40737
|
+
command: cmd
|
|
40738
|
+
}
|
|
40739
|
+
}, null, 2)
|
|
40736
40740
|
}
|
|
40737
40741
|
];
|
|
40738
40742
|
}
|