pantheon-cli 0.2.53 → 0.2.55
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 +18 -5
- package/package.json +1 -1
package/dist/pantheon.mjs
CHANGED
|
@@ -39858,6 +39858,13 @@ var CLIENT_SOURCES = [
|
|
|
39858
39858
|
[/codex|chatgpt/i, "codex"]
|
|
39859
39859
|
];
|
|
39860
39860
|
var UNREADABLE_CLIENTS = /claude[-_. ]?(ai|desktop)|windsurf|replit|continue|cline/i;
|
|
39861
|
+
function resolveCaptureClient(client, claudeProjectDir = process.env.CLAUDE_PROJECT_DIR) {
|
|
39862
|
+
const reported = client?.trim();
|
|
39863
|
+
if (claudeProjectDir?.trim() && (!reported || /claude/i.test(reported))) {
|
|
39864
|
+
return "Claude Code";
|
|
39865
|
+
}
|
|
39866
|
+
return reported;
|
|
39867
|
+
}
|
|
39861
39868
|
function isClaudeDesktopClient(client) {
|
|
39862
39869
|
return /claude[-_. ]?(ai|desktop)/i.test(client?.trim() || "");
|
|
39863
39870
|
}
|
|
@@ -44220,7 +44227,10 @@ ${GUIDE}` }]
|
|
|
44220
44227
|
},
|
|
44221
44228
|
async (input) => safe(async () => {
|
|
44222
44229
|
const request = input;
|
|
44223
|
-
const clientName =
|
|
44230
|
+
const clientName = resolveCaptureClient(
|
|
44231
|
+
server.server.getClientVersion()?.name
|
|
44232
|
+
);
|
|
44233
|
+
const cwd = request.cwd || (clientName === "Claude Code" ? process.env.CLAUDE_PROJECT_DIR : void 0);
|
|
44224
44234
|
const claudeDesktop = isClaudeDesktopClient(clientName);
|
|
44225
44235
|
const captureClient = clientCapture(clientName);
|
|
44226
44236
|
if (!allowCapture) {
|
|
@@ -44241,7 +44251,7 @@ ${GUIDE}` }]
|
|
|
44241
44251
|
const needsClientRoots = Boolean(request.transcriptFile) || Boolean(request.artifacts?.some((item) => "path" in item));
|
|
44242
44252
|
const clientRoots = needsClientRoots ? await clientFileRoots() : [];
|
|
44243
44253
|
const imported = request.transcriptFile ? await readTranscriptExport(request.transcriptFile, {
|
|
44244
|
-
cwd
|
|
44254
|
+
cwd,
|
|
44245
44255
|
allowLocalPaths: allowCapture,
|
|
44246
44256
|
clientRoots
|
|
44247
44257
|
}).then(
|
|
@@ -44252,7 +44262,7 @@ ${GUIDE}` }]
|
|
|
44252
44262
|
)
|
|
44253
44263
|
) : null;
|
|
44254
44264
|
const artifacts = await materializeArtifacts(request.artifacts, {
|
|
44255
|
-
cwd
|
|
44265
|
+
cwd,
|
|
44256
44266
|
allowLocalPaths: allowCapture,
|
|
44257
44267
|
clientRoots
|
|
44258
44268
|
});
|
|
@@ -44262,6 +44272,7 @@ ${GUIDE}` }]
|
|
|
44262
44272
|
(result) => `handoff ${result.slug}`,
|
|
44263
44273
|
() => writeHandoff(home, {
|
|
44264
44274
|
...request,
|
|
44275
|
+
cwd,
|
|
44265
44276
|
artifacts,
|
|
44266
44277
|
transcript: imported?.turns,
|
|
44267
44278
|
transcriptImport: imported ? { sessionId: imported.sessionId, source: imported.source } : void 0,
|
|
@@ -44279,7 +44290,7 @@ ${GUIDE}` }]
|
|
|
44279
44290
|
return skillReview(
|
|
44280
44291
|
home,
|
|
44281
44292
|
written.slug,
|
|
44282
|
-
allowCapture ?
|
|
44293
|
+
allowCapture ? cwd || process.cwd() : void 0
|
|
44283
44294
|
);
|
|
44284
44295
|
} catch {
|
|
44285
44296
|
return null;
|
|
@@ -44606,7 +44617,9 @@ ${GUIDE}` }]
|
|
|
44606
44617
|
argsSchema: { space: external_exports.string() }
|
|
44607
44618
|
},
|
|
44608
44619
|
async ({ space }) => {
|
|
44609
|
-
const clientName =
|
|
44620
|
+
const clientName = resolveCaptureClient(
|
|
44621
|
+
server.server.getClientVersion()?.name
|
|
44622
|
+
);
|
|
44610
44623
|
const client = clientCapture(clientName);
|
|
44611
44624
|
if (!allowCapture) {
|
|
44612
44625
|
return promptText(
|
package/package.json
CHANGED