@vectorize-io/hindsight-coding-agents 0.4.2 → 0.4.3
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 +2 -1
- package/dist/installer.js +19 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -123,7 +123,8 @@ A native plugin via `cline plugin install`, plus MCP and the companion skill.
|
|
|
123
123
|
npx @vectorize-io/hindsight-coding-agents install prime-agent
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
An extension entry in `~/.prime/agent/settings.json` — native tools, no MCP needed
|
|
126
|
+
An extension entry in `~/.prime/agent/settings.json` — native tools, no MCP needed — plus the
|
|
127
|
+
companion skill in `~/.prime/agent/skills`.
|
|
127
128
|
|
|
128
129
|
#### <img src="https://hindsight.vectorize.io/img/harness/dsh.svg" alt="" width="20" height="20" /> DeepSeek Harness
|
|
129
130
|
|
package/dist/installer.js
CHANGED
|
@@ -1038,15 +1038,21 @@ function firstLine(path, cap = 1e6) {
|
|
|
1038
1038
|
closeSync2(fd);
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
+
function listDir(dir) {
|
|
1042
|
+
try {
|
|
1043
|
+
return readdirSync2(dir);
|
|
1044
|
+
} catch {
|
|
1045
|
+
return [];
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1041
1048
|
function jsonlFiles(dir) {
|
|
1042
|
-
|
|
1043
|
-
return readdirSync2(dir).filter((f) => f.endsWith(".jsonl")).map((f) => join11(dir, f));
|
|
1049
|
+
return listDir(dir).filter((f) => f.endsWith(".jsonl")).map((f) => join11(dir, f));
|
|
1044
1050
|
}
|
|
1045
1051
|
function claudeHistory(repoDir, home) {
|
|
1046
1052
|
const root = join11(home, ".claude", "projects");
|
|
1047
1053
|
const exact = claudeProjectDir(repoDir, home);
|
|
1048
1054
|
const prefix = exact + "-";
|
|
1049
|
-
const dirs =
|
|
1055
|
+
const dirs = listDir(root).map((d) => join11(root, d)).filter((d) => d === exact || d.startsWith(prefix));
|
|
1050
1056
|
const sessions = [];
|
|
1051
1057
|
let unattributed = 0;
|
|
1052
1058
|
for (const file of dirs.flatMap(jsonlFiles)) {
|
|
@@ -1542,18 +1548,21 @@ var primeAgent = {
|
|
|
1542
1548
|
const exts = Array.isArray(cfg.extensions) ? cfg.extensions : [];
|
|
1543
1549
|
cfg.extensions = [...exts.filter((p) => !String(p).includes(MARKER)), entry];
|
|
1544
1550
|
writeJson(path, cfg);
|
|
1551
|
+
installSkill(c, "prime-agent", join13(c.home, ".prime", "agent", "skills"));
|
|
1545
1552
|
c.log?.(`prime-agent: extension registered in ${path}`);
|
|
1546
1553
|
},
|
|
1547
1554
|
uninstall(c) {
|
|
1548
1555
|
const path = join13(c.home, ".prime", "agent", "settings.json");
|
|
1549
|
-
if (
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1556
|
+
if (existsSync9(path)) {
|
|
1557
|
+
const cfg = readJson(path);
|
|
1558
|
+
if (Array.isArray(cfg.extensions)) {
|
|
1559
|
+
cfg.extensions = cfg.extensions.filter((p) => !String(p).includes(MARKER));
|
|
1560
|
+
if (!cfg.extensions.length) delete cfg.extensions;
|
|
1561
|
+
writeJson(path, cfg);
|
|
1562
|
+
}
|
|
1555
1563
|
}
|
|
1556
|
-
c.
|
|
1564
|
+
uninstallSkill(c, join13(c.home, ".prime", "agent", "skills"));
|
|
1565
|
+
c.log?.("prime-agent: extension entry + skill removed");
|
|
1557
1566
|
}
|
|
1558
1567
|
};
|
|
1559
1568
|
var KILO_CONFIG_CANDIDATES = ["kilo.jsonc", "kilo.json", "opencode.json"];
|