mrvn-cli 0.5.2 → 0.5.4
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 +19 -19
- package/dist/index.js.map +1 -1
- package/dist/marvin-serve.js +16 -16
- package/dist/marvin-serve.js.map +1 -1
- package/dist/marvin.js +19 -19
- package/dist/marvin.js.map +1 -1
- package/package.json +1 -1
package/dist/marvin-serve.js
CHANGED
|
@@ -6474,13 +6474,13 @@ var error16 = () => {
|
|
|
6474
6474
|
// no unit
|
|
6475
6475
|
};
|
|
6476
6476
|
const typeEntry = (t) => t ? TypeNames[t] : void 0;
|
|
6477
|
-
const
|
|
6477
|
+
const typeLabel4 = (t) => {
|
|
6478
6478
|
const e = typeEntry(t);
|
|
6479
6479
|
if (e)
|
|
6480
6480
|
return e.label;
|
|
6481
6481
|
return t ?? TypeNames.unknown.label;
|
|
6482
6482
|
};
|
|
6483
|
-
const withDefinite = (t) => `\u05D4${
|
|
6483
|
+
const withDefinite = (t) => `\u05D4${typeLabel4(t)}`;
|
|
6484
6484
|
const verbFor = (t) => {
|
|
6485
6485
|
const e = typeEntry(t);
|
|
6486
6486
|
const gender = e?.gender ?? "m";
|
|
@@ -6530,7 +6530,7 @@ var error16 = () => {
|
|
|
6530
6530
|
switch (issue2.code) {
|
|
6531
6531
|
case "invalid_type": {
|
|
6532
6532
|
const expectedKey = issue2.expected;
|
|
6533
|
-
const expected = TypeDictionary[expectedKey ?? ""] ??
|
|
6533
|
+
const expected = TypeDictionary[expectedKey ?? ""] ?? typeLabel4(expectedKey);
|
|
6534
6534
|
const receivedType = parsedType(issue2.input);
|
|
6535
6535
|
const received = TypeDictionary[receivedType] ?? TypeNames[receivedType]?.label ?? receivedType;
|
|
6536
6536
|
if (/^[A-Z]/.test(issue2.expected)) {
|
|
@@ -15672,7 +15672,7 @@ function collectSprintSummaryData(store, sprintId) {
|
|
|
15672
15672
|
});
|
|
15673
15673
|
const sprintTag = `sprint:${fm.id}`;
|
|
15674
15674
|
const workItemDocs = allDocs.filter(
|
|
15675
|
-
(d) => d.frontmatter.type !== "sprint" && d.frontmatter.type !== "epic" && d.frontmatter.type !== "meeting" && d.frontmatter.tags?.includes(sprintTag)
|
|
15675
|
+
(d) => d.frontmatter.type !== "sprint" && d.frontmatter.type !== "epic" && d.frontmatter.type !== "meeting" && d.frontmatter.type !== "decision" && d.frontmatter.type !== "question" && d.frontmatter.tags?.includes(sprintTag)
|
|
15676
15676
|
);
|
|
15677
15677
|
const primaryDocs = workItemDocs.filter((d) => d.frontmatter.type !== "contribution");
|
|
15678
15678
|
const byStatus = {};
|
|
@@ -20130,7 +20130,7 @@ function formatDate(iso) {
|
|
|
20130
20130
|
if (!iso) return "";
|
|
20131
20131
|
return iso.slice(0, 10);
|
|
20132
20132
|
}
|
|
20133
|
-
function
|
|
20133
|
+
function typeLabel(type) {
|
|
20134
20134
|
return type.replace(/-/g, " ").replace(/\b\w/g, (c) => c.toUpperCase());
|
|
20135
20135
|
}
|
|
20136
20136
|
function renderMarkdown(md) {
|
|
@@ -21923,7 +21923,7 @@ tr:hover td {
|
|
|
21923
21923
|
|
|
21924
21924
|
// src/web/templates/pages/documents.ts
|
|
21925
21925
|
function documentsPage(data) {
|
|
21926
|
-
const label =
|
|
21926
|
+
const label = typeLabel(data.type);
|
|
21927
21927
|
const statusOptions = data.statuses.map(
|
|
21928
21928
|
(s) => `<option value="${escapeHtml(s)}"${data.filterStatus === s ? " selected" : ""}>${escapeHtml(s)}</option>`
|
|
21929
21929
|
).join("");
|
|
@@ -21997,7 +21997,7 @@ function documentsPage(data) {
|
|
|
21997
21997
|
// src/web/templates/pages/document-detail.ts
|
|
21998
21998
|
function documentDetailPage(doc) {
|
|
21999
21999
|
const fm = doc.frontmatter;
|
|
22000
|
-
const label =
|
|
22000
|
+
const label = typeLabel(fm.type);
|
|
22001
22001
|
const skipKeys = /* @__PURE__ */ new Set(["title", "type"]);
|
|
22002
22002
|
const entries = Object.entries(fm).filter(
|
|
22003
22003
|
([key]) => !skipKeys.has(key) && fm[key] != null
|
|
@@ -22696,7 +22696,7 @@ function poDashboardPage(ctx) {
|
|
|
22696
22696
|
<tr>
|
|
22697
22697
|
<td><a href="/docs/${d.frontmatter.type}/${escapeHtml(d.frontmatter.id)}">${escapeHtml(d.frontmatter.id)}</a></td>
|
|
22698
22698
|
<td>${escapeHtml(d.frontmatter.title)}</td>
|
|
22699
|
-
<td>${escapeHtml(
|
|
22699
|
+
<td>${escapeHtml(typeLabel(d.frontmatter.type))}</td>
|
|
22700
22700
|
<td>${statusBadge(d.frontmatter.status)}</td>
|
|
22701
22701
|
<td>${formatDate(d.frontmatter.updated ?? d.frontmatter.created)}</td>
|
|
22702
22702
|
</tr>`).join("")}
|
|
@@ -23204,7 +23204,7 @@ function poDeliveryPage(ctx) {
|
|
|
23204
23204
|
<tr>
|
|
23205
23205
|
<td><a href="/docs/${escapeHtml(d.frontmatter.type)}/${escapeHtml(d.frontmatter.id)}">${escapeHtml(d.frontmatter.id)}</a></td>
|
|
23206
23206
|
<td>${escapeHtml(d.frontmatter.title)}</td>
|
|
23207
|
-
<td>${escapeHtml(
|
|
23207
|
+
<td>${escapeHtml(typeLabel(d.frontmatter.type))}</td>
|
|
23208
23208
|
<td>${statusBadge(d.frontmatter.status)}</td>
|
|
23209
23209
|
<td>${formatDate(d.frontmatter.updated ?? d.frontmatter.created)}</td>
|
|
23210
23210
|
</tr>`).join("")}
|
|
@@ -23901,7 +23901,7 @@ function dmRisksPage(ctx) {
|
|
|
23901
23901
|
<tr>
|
|
23902
23902
|
<td><a href="/docs/${escapeHtml(d.frontmatter.type)}/${escapeHtml(d.frontmatter.id)}">${escapeHtml(d.frontmatter.id)}</a></td>
|
|
23903
23903
|
<td>${escapeHtml(d.frontmatter.title)}</td>
|
|
23904
|
-
<td>${escapeHtml(
|
|
23904
|
+
<td>${escapeHtml(typeLabel(d.frontmatter.type))}</td>
|
|
23905
23905
|
<td>${d.frontmatter.owner ? escapeHtml(d.frontmatter.owner) : '<span class="text-dim">\u2014</span>'}</td>
|
|
23906
23906
|
<td>${formatDate(d.frontmatter.created)}</td>
|
|
23907
23907
|
</tr>`).join("")}
|
|
@@ -23925,7 +23925,7 @@ function dmRisksPage(ctx) {
|
|
|
23925
23925
|
<tr>
|
|
23926
23926
|
<td><a href="/docs/${escapeHtml(d.frontmatter.type)}/${escapeHtml(d.frontmatter.id)}">${escapeHtml(d.frontmatter.id)}</a></td>
|
|
23927
23927
|
<td>${escapeHtml(d.frontmatter.title)}</td>
|
|
23928
|
-
<td>${escapeHtml(
|
|
23928
|
+
<td>${escapeHtml(typeLabel(d.frontmatter.type))}</td>
|
|
23929
23929
|
<td>${statusBadge(d.frontmatter.status)}</td>
|
|
23930
23930
|
<td>${formatDate(d.frontmatter.created)}</td>
|
|
23931
23931
|
<td><span class="${ageDays > 30 ? "priority-high" : "priority-medium"}">${ageDays}d</span></td>
|
|
@@ -24497,7 +24497,7 @@ function tlSprintPage(ctx) {
|
|
|
24497
24497
|
<tr>
|
|
24498
24498
|
<td><a href="/docs/${escapeHtml(w.type)}/${escapeHtml(w.id)}">${escapeHtml(w.id)}</a></td>
|
|
24499
24499
|
<td>${escapeHtml(w.title)}</td>
|
|
24500
|
-
<td>${escapeHtml(
|
|
24500
|
+
<td>${escapeHtml(typeLabel(w.type))}</td>
|
|
24501
24501
|
<td>${statusBadge(w.status)}</td>
|
|
24502
24502
|
<td>${w.workFocus ? `<span class="badge badge-subtle">${escapeHtml(w.workFocus)}</span>` : '<span class="text-dim">\u2014</span>'}</td>
|
|
24503
24503
|
</tr>`).join("")}
|
|
@@ -24519,7 +24519,7 @@ function tlSprintPage(ctx) {
|
|
|
24519
24519
|
<tr>
|
|
24520
24520
|
<td><a href="/docs/${escapeHtml(d.frontmatter.type)}/${escapeHtml(d.frontmatter.id)}">${escapeHtml(d.frontmatter.id)}</a></td>
|
|
24521
24521
|
<td>${escapeHtml(d.frontmatter.title)}</td>
|
|
24522
|
-
<td>${escapeHtml(
|
|
24522
|
+
<td>${escapeHtml(typeLabel(d.frontmatter.type))}</td>
|
|
24523
24523
|
<td>${statusBadge(d.frontmatter.status)}</td>
|
|
24524
24524
|
<td>${formatDate(d.frontmatter.updated ?? d.frontmatter.created)}</td>
|
|
24525
24525
|
</tr>`).join("")}
|
|
@@ -24708,7 +24708,7 @@ function timelinePage(diagrams) {
|
|
|
24708
24708
|
// src/web/templates/pages/board.ts
|
|
24709
24709
|
function boardPage(data, basePath = "/board") {
|
|
24710
24710
|
const typeOptions = data.types.map(
|
|
24711
|
-
(t) => `<option value="${escapeHtml(t)}"${data.type === t ? " selected" : ""}>${escapeHtml(
|
|
24711
|
+
(t) => `<option value="${escapeHtml(t)}"${data.type === t ? " selected" : ""}>${escapeHtml(typeLabel(t))}s</option>`
|
|
24712
24712
|
).join("");
|
|
24713
24713
|
const columns = data.columns.map(
|
|
24714
24714
|
(col) => `
|
|
@@ -24865,7 +24865,7 @@ function upcomingPage(data) {
|
|
|
24865
24865
|
<td><span class="trending-rank">${i + 1}</span></td>
|
|
24866
24866
|
<td><a href="/docs/${escapeHtml(t.type)}/${escapeHtml(t.id)}">${escapeHtml(t.id)}</a></td>
|
|
24867
24867
|
<td>${escapeHtml(t.title)}</td>
|
|
24868
|
-
<td>${escapeHtml(
|
|
24868
|
+
<td>${escapeHtml(typeLabel(t.type))}</td>
|
|
24869
24869
|
<td>${statusBadge(t.status)}</td>
|
|
24870
24870
|
<td><span class="trending-score">${t.score}</span></td>
|
|
24871
24871
|
<td>${t.signals.map((s) => `<span class="signal-tag">${escapeHtml(s.factor)} +${s.points}</span>`).join(" ")}</td>
|
|
@@ -24959,7 +24959,7 @@ function buildPersonaLayoutOpts(persona, activePath, navGroups) {
|
|
|
24959
24959
|
const artifactGroupsHtml = navGroups.map((group) => {
|
|
24960
24960
|
const links = group.types.map((type) => {
|
|
24961
24961
|
const href = `/docs/${type}?persona=${persona}`;
|
|
24962
|
-
return `<a href="${href}" class="${isActive(`/docs/${type}`)}">${
|
|
24962
|
+
return `<a href="${href}" class="${isActive(`/docs/${type}`)}">${typeLabel(type)}s</a>`;
|
|
24963
24963
|
}).join("\n ");
|
|
24964
24964
|
const groupActive = group.types.some(
|
|
24965
24965
|
(type) => isActive(`/docs/${type}`) !== ""
|