pantheon-cli 0.2.4 → 0.2.6

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.
Files changed (2) hide show
  1. package/dist/pantheon.mjs +15 -7
  2. 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
- return ["AGENTS.md", "README.md", "CONTRIBUTING.md"].map((name) => readText(join3(cwd, name))).join("\n").slice(0, 4e4);
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
- const sessions = sessionDirs(root).slice(0, SKILL_SCAN_SESSIONS).map((session) => ({ id: session.id, turns: readSessionTurns(session.dir) }));
22642
- if (sessions.length < 2) return [];
22643
- return detectCandidates(sessions, {
22644
- known: knownSkillKeys(root),
22645
- docs: cwd ? projectDocs(cwd) : ""
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Carry agent conscience between AI coding agents. Hand off a conversation in one agent, resume it in another.",
5
5
  "license": "MIT",
6
6
  "type": "module",