myagentmemory 0.4.7 → 0.4.8
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/agent-memory +0 -0
- package/dist/cli.js +11 -1
- package/dist/core.d.ts +5 -0
- package/dist/core.js +8 -0
- package/package.json +1 -1
- package/scripts/install-skills.ps1 +5 -2
- package/scripts/install-skills.sh +5 -2
- package/src/cli.ts +9 -1
- package/src/core.ts +9 -0
package/dist/agent-memory
CHANGED
|
Binary file
|
package/dist/cli.js
CHANGED
|
@@ -332,7 +332,17 @@ function cmdInstallSkills(flags) {
|
|
|
332
332
|
output(report, true);
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
|
-
if (report.
|
|
335
|
+
if (report.checked.length > 0) {
|
|
336
|
+
for (const item of report.checked) {
|
|
337
|
+
if (item.status === "detected") {
|
|
338
|
+
console.log(`Detecting ${item.label}... found`);
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
console.log(`Detecting ${item.label}... not found (${item.reason ?? "unknown"})`);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
else if (report.detected.length === 0) {
|
|
336
346
|
console.log("No supported agent installations detected.");
|
|
337
347
|
}
|
|
338
348
|
else {
|
package/dist/core.d.ts
CHANGED
|
@@ -112,6 +112,11 @@ export interface InstallSkillsReport {
|
|
|
112
112
|
ok: boolean;
|
|
113
113
|
projectDir?: string;
|
|
114
114
|
homeDir?: string;
|
|
115
|
+
checked: Array<{
|
|
116
|
+
label: string;
|
|
117
|
+
status: "detected" | "skipped";
|
|
118
|
+
reason?: string;
|
|
119
|
+
}>;
|
|
115
120
|
detected: Array<{
|
|
116
121
|
label: string;
|
|
117
122
|
homeMarker: string;
|
package/dist/core.js
CHANGED
|
@@ -598,6 +598,7 @@ export function installSkills() {
|
|
|
598
598
|
detected: [],
|
|
599
599
|
installed: [],
|
|
600
600
|
skipped: [],
|
|
601
|
+
checked: [],
|
|
601
602
|
error: "Home directory not found. Set HOME (or USERPROFILE on Windows) and retry.",
|
|
602
603
|
};
|
|
603
604
|
}
|
|
@@ -609,6 +610,7 @@ export function installSkills() {
|
|
|
609
610
|
detected: [],
|
|
610
611
|
installed: [],
|
|
611
612
|
skipped: [],
|
|
613
|
+
checked: [],
|
|
612
614
|
error: "Could not locate the skills directory. Ensure the package includes skills/ (reinstall if needed).",
|
|
613
615
|
};
|
|
614
616
|
}
|
|
@@ -621,6 +623,7 @@ export function installSkills() {
|
|
|
621
623
|
detected: [],
|
|
622
624
|
installed: [],
|
|
623
625
|
skipped: [],
|
|
626
|
+
checked: [],
|
|
624
627
|
error: `Skills directory not found: ${skillsDir}`,
|
|
625
628
|
};
|
|
626
629
|
}
|
|
@@ -660,9 +663,11 @@ export function installSkills() {
|
|
|
660
663
|
const detected = [];
|
|
661
664
|
const installed = [];
|
|
662
665
|
const skipped = [];
|
|
666
|
+
const checked = [];
|
|
663
667
|
for (const target of targets) {
|
|
664
668
|
if (!fs.existsSync(target.homeMarker)) {
|
|
665
669
|
skipped.push({ label: target.label, reason: `${target.homeMarker} not found` });
|
|
670
|
+
checked.push({ label: target.label, status: "skipped", reason: `${target.homeMarker} not found` });
|
|
666
671
|
continue;
|
|
667
672
|
}
|
|
668
673
|
const detectedByFile = (target.detectFiles ?? []).some((file) => fs.existsSync(file));
|
|
@@ -670,9 +675,11 @@ export function installSkills() {
|
|
|
670
675
|
const requiresDetection = (target.detectFiles?.length ?? 0) > 0 || !!target.detectCommand;
|
|
671
676
|
if (requiresDetection && !detectedByFile && !detectedByCommand) {
|
|
672
677
|
skipped.push({ label: target.label, reason: "not detected" });
|
|
678
|
+
checked.push({ label: target.label, status: "skipped", reason: "not detected" });
|
|
673
679
|
continue;
|
|
674
680
|
}
|
|
675
681
|
detected.push({ label: target.label, homeMarker: target.homeMarker });
|
|
682
|
+
checked.push({ label: target.label, status: "detected" });
|
|
676
683
|
const skillFile = path.join(target.srcDir, "SKILL.md");
|
|
677
684
|
if (!fs.existsSync(skillFile)) {
|
|
678
685
|
skipped.push({ label: target.label, reason: `${skillFile} not found` });
|
|
@@ -686,6 +693,7 @@ export function installSkills() {
|
|
|
686
693
|
ok: true,
|
|
687
694
|
projectDir,
|
|
688
695
|
homeDir,
|
|
696
|
+
checked,
|
|
689
697
|
detected,
|
|
690
698
|
installed,
|
|
691
699
|
skipped,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "myagentmemory",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "Persistent memory for coding agents (Claude Code, Codex, Cursor, Agent) with qmd-powered semantic search across daily logs, long-term memory, and scratchpad",
|
|
5
5
|
"main": "./dist/core.js",
|
|
6
6
|
"types": "./dist/core.d.ts",
|
|
@@ -12,19 +12,22 @@ function Install-Skill {
|
|
|
12
12
|
[ScriptBlock]$Detect
|
|
13
13
|
)
|
|
14
14
|
|
|
15
|
+
Write-Host "Detecting $Label..."
|
|
15
16
|
if (-not (Test-Path $HomeMarker)) {
|
|
16
|
-
Write-Host "
|
|
17
|
+
Write-Host "Not found ($HomeMarker not found)"
|
|
17
18
|
return
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
if ($Detect -and -not (& $Detect)) {
|
|
21
|
-
Write-Host "
|
|
22
|
+
Write-Host "Not found (not detected)"
|
|
22
23
|
return
|
|
23
24
|
}
|
|
24
25
|
|
|
26
|
+
Write-Host "Found"
|
|
25
27
|
$SkillSrc = Join-Path $SrcDir "SKILL.md"
|
|
26
28
|
if (Test-Path $SkillSrc) {
|
|
27
29
|
New-Item -ItemType Directory -Force -Path $DestDir | Out-Null
|
|
30
|
+
Write-Host "Installing to $DestDir\\SKILL.md"
|
|
28
31
|
Copy-Item -Force $SkillSrc (Join-Path $DestDir "SKILL.md")
|
|
29
32
|
Write-Host "Installed $Label: $DestDir\\SKILL.md"
|
|
30
33
|
} else {
|
|
@@ -18,18 +18,21 @@ install_skill() {
|
|
|
18
18
|
local home_marker="$4"
|
|
19
19
|
local detect_cmd="$5"
|
|
20
20
|
|
|
21
|
+
echo "Detecting $label..."
|
|
21
22
|
if [ ! -d "$home_marker" ]; then
|
|
22
|
-
echo "
|
|
23
|
+
echo "Not found ($home_marker not found)"
|
|
23
24
|
return
|
|
24
25
|
fi
|
|
25
26
|
|
|
26
27
|
if [ -n "$detect_cmd" ] && ! eval "$detect_cmd"; then
|
|
27
|
-
echo "
|
|
28
|
+
echo "Not found (not detected)"
|
|
28
29
|
return
|
|
29
30
|
fi
|
|
30
31
|
|
|
32
|
+
echo "Found"
|
|
31
33
|
if [ -d "$src_dir" ]; then
|
|
32
34
|
mkdir -p "$dest_dir"
|
|
35
|
+
echo "Installing to $dest_dir/SKILL.md"
|
|
33
36
|
cp "$src_dir/SKILL.md" "$dest_dir/SKILL.md"
|
|
34
37
|
echo "Installed $label: $dest_dir/SKILL.md"
|
|
35
38
|
else
|
package/src/cli.ts
CHANGED
|
@@ -413,7 +413,15 @@ function cmdInstallSkills(flags: Record<string, string | boolean>) {
|
|
|
413
413
|
return;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
if (report.
|
|
416
|
+
if (report.checked.length > 0) {
|
|
417
|
+
for (const item of report.checked) {
|
|
418
|
+
if (item.status === "detected") {
|
|
419
|
+
console.log(`Detecting ${item.label}... found`);
|
|
420
|
+
} else {
|
|
421
|
+
console.log(`Detecting ${item.label}... not found (${item.reason ?? "unknown"})`);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
} else if (report.detected.length === 0) {
|
|
417
425
|
console.log("No supported agent installations detected.");
|
|
418
426
|
} else {
|
|
419
427
|
const detectedLabels = report.detected.map((item) => item.label).join(", ");
|
package/src/core.ts
CHANGED
|
@@ -738,6 +738,7 @@ export interface InstallSkillsReport {
|
|
|
738
738
|
ok: boolean;
|
|
739
739
|
projectDir?: string;
|
|
740
740
|
homeDir?: string;
|
|
741
|
+
checked: Array<{ label: string; status: "detected" | "skipped"; reason?: string }>;
|
|
741
742
|
detected: Array<{ label: string; homeMarker: string }>;
|
|
742
743
|
installed: Array<{ label: string; path: string }>;
|
|
743
744
|
skipped: Array<{ label: string; reason: string }>;
|
|
@@ -752,6 +753,7 @@ export function installSkills(): InstallSkillsReport {
|
|
|
752
753
|
detected: [],
|
|
753
754
|
installed: [],
|
|
754
755
|
skipped: [],
|
|
756
|
+
checked: [],
|
|
755
757
|
error: "Home directory not found. Set HOME (or USERPROFILE on Windows) and retry.",
|
|
756
758
|
};
|
|
757
759
|
}
|
|
@@ -764,6 +766,7 @@ export function installSkills(): InstallSkillsReport {
|
|
|
764
766
|
detected: [],
|
|
765
767
|
installed: [],
|
|
766
768
|
skipped: [],
|
|
769
|
+
checked: [],
|
|
767
770
|
error: "Could not locate the skills directory. Ensure the package includes skills/ (reinstall if needed).",
|
|
768
771
|
};
|
|
769
772
|
}
|
|
@@ -777,6 +780,7 @@ export function installSkills(): InstallSkillsReport {
|
|
|
777
780
|
detected: [],
|
|
778
781
|
installed: [],
|
|
779
782
|
skipped: [],
|
|
783
|
+
checked: [],
|
|
780
784
|
error: `Skills directory not found: ${skillsDir}`,
|
|
781
785
|
};
|
|
782
786
|
}
|
|
@@ -817,10 +821,12 @@ export function installSkills(): InstallSkillsReport {
|
|
|
817
821
|
const detected: Array<{ label: string; homeMarker: string }> = [];
|
|
818
822
|
const installed: Array<{ label: string; path: string }> = [];
|
|
819
823
|
const skipped: Array<{ label: string; reason: string }> = [];
|
|
824
|
+
const checked: Array<{ label: string; status: "detected" | "skipped"; reason?: string }> = [];
|
|
820
825
|
|
|
821
826
|
for (const target of targets) {
|
|
822
827
|
if (!fs.existsSync(target.homeMarker)) {
|
|
823
828
|
skipped.push({ label: target.label, reason: `${target.homeMarker} not found` });
|
|
829
|
+
checked.push({ label: target.label, status: "skipped", reason: `${target.homeMarker} not found` });
|
|
824
830
|
continue;
|
|
825
831
|
}
|
|
826
832
|
const detectedByFile = (target.detectFiles ?? []).some((file) => fs.existsSync(file));
|
|
@@ -828,10 +834,12 @@ export function installSkills(): InstallSkillsReport {
|
|
|
828
834
|
const requiresDetection = (target.detectFiles?.length ?? 0) > 0 || !!target.detectCommand;
|
|
829
835
|
if (requiresDetection && !detectedByFile && !detectedByCommand) {
|
|
830
836
|
skipped.push({ label: target.label, reason: "not detected" });
|
|
837
|
+
checked.push({ label: target.label, status: "skipped", reason: "not detected" });
|
|
831
838
|
continue;
|
|
832
839
|
}
|
|
833
840
|
|
|
834
841
|
detected.push({ label: target.label, homeMarker: target.homeMarker });
|
|
842
|
+
checked.push({ label: target.label, status: "detected" });
|
|
835
843
|
|
|
836
844
|
const skillFile = path.join(target.srcDir, "SKILL.md");
|
|
837
845
|
if (!fs.existsSync(skillFile)) {
|
|
@@ -848,6 +856,7 @@ export function installSkills(): InstallSkillsReport {
|
|
|
848
856
|
ok: true,
|
|
849
857
|
projectDir,
|
|
850
858
|
homeDir,
|
|
859
|
+
checked,
|
|
851
860
|
detected,
|
|
852
861
|
installed,
|
|
853
862
|
skipped,
|