claude-teammate 0.1.150 → 0.1.151
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/package.json +1 -1
- package/src/commands/status.js +13 -2
- package/src/dashboard/ui.html +15 -4
package/package.json
CHANGED
package/src/commands/status.js
CHANGED
|
@@ -66,7 +66,7 @@ export async function runStatusCommand({ projectRoot, args = [] }) {
|
|
|
66
66
|
process.stdout.write("GitHub issues:\n");
|
|
67
67
|
for (const issue of state.githubIssues) {
|
|
68
68
|
process.stdout.write(
|
|
69
|
-
`- ${issue.repoUrl
|
|
69
|
+
`- ${formatForgeQueueLabel(issue.repoUrl, issue.issueNumber)}${issue.title ? ` | ${issue.title}` : ""}${issue.workflowState ? ` | ${issue.workflowState}` : ""}${issue.prUrl ? ` | PR: ${issue.prUrl}` : ""}${issue.branchName ? ` | branch: ${issue.branchName}` : ""}${issue.action ? ` | action: ${issue.action}` : ""}\n`
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -75,9 +75,20 @@ export async function runStatusCommand({ projectRoot, args = [] }) {
|
|
|
75
75
|
process.stdout.write("Draft PRs:\n");
|
|
76
76
|
for (const pullRequest of state.draftPrs) {
|
|
77
77
|
process.stdout.write(
|
|
78
|
-
`- ${pullRequest.
|
|
78
|
+
`- ${formatForgeQueueLabel(pullRequest.repoUrl, pullRequest.pullRequestNumber)}${pullRequest.title ? ` | ${pullRequest.title}` : ""}${pullRequest.branchName ? ` | branch: ${pullRequest.branchName}` : ""}${pullRequest.status ? ` | status: ${pullRequest.status}` : ""}${pullRequest.action ? ` | action: ${pullRequest.action}` : ""}\n`
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
|
|
85
|
+
function formatForgeQueueLabel(repoUrl, itemNumber) {
|
|
86
|
+
try {
|
|
87
|
+
const url = new URL(String(repoUrl || "").trim());
|
|
88
|
+
const parts = url.pathname.split("/").filter(Boolean);
|
|
89
|
+
const repoName = parts[parts.length - 1] || "repo";
|
|
90
|
+
return `${repoName} #${itemNumber}`;
|
|
91
|
+
} catch {
|
|
92
|
+
return `repo #${itemNumber}`;
|
|
93
|
+
}
|
|
94
|
+
}
|
package/src/dashboard/ui.html
CHANGED
|
@@ -1947,6 +1947,15 @@ function renderHeartbeatQueues(data) {
|
|
|
1947
1947
|
const wrap = document.getElementById("heartbeat-queues-wrap");
|
|
1948
1948
|
const s = data.state || {};
|
|
1949
1949
|
const busy = s.pollerBusy || {};
|
|
1950
|
+
const forgeRepoName = (url) => {
|
|
1951
|
+
try {
|
|
1952
|
+
const u = new URL(url || "");
|
|
1953
|
+
const parts = u.pathname.split("/").filter(Boolean);
|
|
1954
|
+
return parts[parts.length - 1] || "repo";
|
|
1955
|
+
} catch {
|
|
1956
|
+
return "repo";
|
|
1957
|
+
}
|
|
1958
|
+
};
|
|
1950
1959
|
|
|
1951
1960
|
const rows = [
|
|
1952
1961
|
{ label: "Jira", items: s.issues || [], busyKey: "jira", type: "jira" },
|
|
@@ -1965,13 +1974,15 @@ function renderHeartbeatQueues(data) {
|
|
|
1965
1974
|
return `<div class="hbq-card${activeClass}" ${onclick}>${key}</div>`;
|
|
1966
1975
|
}
|
|
1967
1976
|
if (type === "github") {
|
|
1968
|
-
const label = esc(item.
|
|
1977
|
+
const label = esc(`${forgeRepoName(item.issueUrl || item.repoUrl)} ${item.issueNumber ? `#${item.issueNumber}` : "issue"}`);
|
|
1969
1978
|
const href = item.issueUrl ? esc(item.issueUrl) : "#";
|
|
1970
|
-
|
|
1979
|
+
const title = esc(item.title || label);
|
|
1980
|
+
return `<a class="hbq-card${activeClass}" href="${href}" target="_blank" style="text-decoration:none" title="${title}">${label}</a>`;
|
|
1971
1981
|
}
|
|
1972
|
-
const label = item.pullRequestNumber ?
|
|
1982
|
+
const label = esc(`${forgeRepoName(item.pullRequestUrl || item.repoUrl)} ${item.pullRequestNumber ? `#${item.pullRequestNumber}` : "PR"}`);
|
|
1973
1983
|
const href = item.pullRequestUrl ? esc(item.pullRequestUrl) : "#";
|
|
1974
|
-
|
|
1984
|
+
const title = esc(item.title || label);
|
|
1985
|
+
return `<a class="hbq-card${activeClass}" href="${href}" target="_blank" style="text-decoration:none" title="${title}">${label}</a>`;
|
|
1975
1986
|
};
|
|
1976
1987
|
|
|
1977
1988
|
wrap.innerHTML = `
|