pantheon-cli 0.2.3 → 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 +17 -8
- package/package.json +3 -3
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;
|
|
@@ -23866,7 +23874,8 @@ var PRODUCTION_API_URL = "https://pantheon-ui-web.vercel.app";
|
|
|
23866
23874
|
function candidateHosts(explicit) {
|
|
23867
23875
|
if (explicit) return [explicit.replace(/\/$/, "")];
|
|
23868
23876
|
if (process.env.PANTHEON_HOST) return [process.env.PANTHEON_HOST.replace(/\/$/, "")];
|
|
23869
|
-
return [PRODUCTION_API_URL
|
|
23877
|
+
if (PRODUCTION_API_URL) return [PRODUCTION_API_URL];
|
|
23878
|
+
return ["http://localhost:3000"];
|
|
23870
23879
|
}
|
|
23871
23880
|
async function connect(opts) {
|
|
23872
23881
|
const home = opts.home || defaultHome();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pantheon-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
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",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"tsx": "^4.20.3",
|
|
31
31
|
"typescript": "^5",
|
|
32
32
|
"zod": "^3.25.67",
|
|
33
|
-
"@pantheon/
|
|
34
|
-
"@pantheon/
|
|
33
|
+
"@pantheon/core": "0.1.0",
|
|
34
|
+
"@pantheon/mcp": "0.1.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"start": "tsx src/index.ts",
|