pantheon-cli 0.2.4 → 0.2.5
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/pantheon.mjs +15 -7
- package/package.json +1 -1
package/dist/pantheon.mjs
CHANGED
|
@@ -22635,15 +22635,23 @@ function sessionSummaries(root) {
|
|
|
22635
22635
|
}
|
|
22636
22636
|
var SKILL_SCAN_SESSIONS = 20;
|
|
22637
22637
|
function projectDocs(cwd) {
|
|
22638
|
-
|
|
22638
|
+
try {
|
|
22639
|
+
return ["AGENTS.md", "README.md", "CONTRIBUTING.md"].map((name) => readText(join3(cwd, name))).join("\n").slice(0, 4e4);
|
|
22640
|
+
} catch {
|
|
22641
|
+
return "";
|
|
22642
|
+
}
|
|
22639
22643
|
}
|
|
22640
22644
|
function spaceSkillCandidates(root, cwd) {
|
|
22641
|
-
|
|
22642
|
-
|
|
22643
|
-
|
|
22644
|
-
|
|
22645
|
-
|
|
22646
|
-
|
|
22645
|
+
try {
|
|
22646
|
+
const sessions = sessionDirs(root).slice(0, SKILL_SCAN_SESSIONS).map((session) => ({ id: session.id, turns: readSessionTurns(session.dir) }));
|
|
22647
|
+
if (sessions.length < 2) return [];
|
|
22648
|
+
return detectCandidates(sessions, {
|
|
22649
|
+
known: knownSkillKeys(root),
|
|
22650
|
+
docs: cwd ? projectDocs(cwd) : ""
|
|
22651
|
+
});
|
|
22652
|
+
} catch {
|
|
22653
|
+
return [];
|
|
22654
|
+
}
|
|
22647
22655
|
}
|
|
22648
22656
|
var STORY_PACKETS = 8;
|
|
22649
22657
|
var STORY_CHARS = 6e3;
|
package/package.json
CHANGED