@korso/shepherd 0.4.0 → 0.4.1
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/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -468,7 +468,9 @@ function canonicalizeRepo(input) {
|
|
|
468
468
|
const s = input.trim();
|
|
469
469
|
const looksLikeUrl = /:\/\//.test(s) || /^[^/@]+@[^:]+:/.test(s);
|
|
470
470
|
const base = looksLikeUrl ? normalizeRemoteUrl(s) ?? s : s.replace(/\.git$/, "").replace(/^\/+|\/+$/g, "");
|
|
471
|
-
|
|
471
|
+
const segments = base.split("/").filter(Boolean);
|
|
472
|
+
const name = segments.length > 0 ? segments[segments.length - 1] : base;
|
|
473
|
+
return name.toLowerCase();
|
|
472
474
|
}
|
|
473
475
|
function detectRepo(cwd = process.cwd()) {
|
|
474
476
|
const origin = runGit(cwd, ["config", "--get", "remote.origin.url"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@korso/shepherd",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Shepherd MCP server — gives any MCP-capable agent (Claude Code, Codex, etc.) four advisory cross-session coordination tools (work/done/announce/sync) backed by the shared Shepherd hub. Joins the workspace automatically and ships standing instructions so the agent self-coordinates.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|