Skip to content

Commit 9a439e1

Browse files
committed
Restore vendored modules to the jfrog-agent-hooks copy.
1 parent 5fd46af commit 9a439e1

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

plugins/jfrog/modules/copilot-session-start.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
2-
// GitHub Copilot Chat SessionStart hook runner.
2+
// GitHub Copilot Chat SessionStart hook runner (installed via the VS Code
3+
// Copilot plugin — see jfrog/vscode-plugin).
34
//
45
// Usage: node copilot-session-start.mjs <capability>
56
// Example: node copilot-session-start.mjs package-resolution

plugins/jfrog/modules/package-resolution/scripts/onboarding.mjs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,26 @@ const log = createLogger("onboarding");
3434
const here = path.dirname(fileURLToPath(import.meta.url));
3535
const NUDGE_TEMPLATE = path.join(here, "../onboarding/session-start-nudge.md");
3636

37-
export const ADMIN_GUIDE_URL =
37+
export const CURSOR_ADMIN_GUIDE_URL =
3838
"https://github.com/jfrog/cursor-plugin/blob/main/docs/package-resolution-admin-guide.md";
39+
export const CLAUDE_ADMIN_GUIDE_URL =
40+
"https://github.com/jfrog/claude-plugin/blob/main/docs/package-resolution-admin-guide.md";
41+
export const COPILOT_ADMIN_GUIDE_URL =
42+
"https://github.com/jfrog/vscode-plugin/blob/main/docs/package-resolution-admin-guide.md";
43+
44+
const ADMIN_GUIDE_URL_BY_IDE = {
45+
claude_code: CLAUDE_ADMIN_GUIDE_URL,
46+
cursor: CURSOR_ADMIN_GUIDE_URL,
47+
copilot: COPILOT_ADMIN_GUIDE_URL,
48+
};
3949

4050
/** Human-readable list of APR package types (keeps nudge copy in sync with code). */
4151
export function supportedTypesPhrase() {
4252
return PACKAGE_TYPES.join(", ");
4353
}
4454

45-
function adminGuideUrlForIde(_ide) {
46-
return ADMIN_GUIDE_URL;
55+
function adminGuideUrlForIde(ide) {
56+
return ADMIN_GUIDE_URL_BY_IDE[ide] ?? CLAUDE_ADMIN_GUIDE_URL;
4757
}
4858

4959
function configureCommandPath() {

0 commit comments

Comments
 (0)