@staff0rd/assist 0.364.0 → 0.365.0
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
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.365.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -55,6 +55,8 @@ var package_default = {
|
|
|
55
55
|
entities: "^7.0.1",
|
|
56
56
|
"is-wsl": "^3.1.0",
|
|
57
57
|
"log-update": "^8.0.0",
|
|
58
|
+
marked: "^15.0.12",
|
|
59
|
+
"marked-terminal": "^7.3.0",
|
|
58
60
|
minimatch: "^10.1.1",
|
|
59
61
|
mssql: "^12.5.0",
|
|
60
62
|
"node-notifier": "^10.0.1",
|
|
@@ -99,7 +101,6 @@ var package_default = {
|
|
|
99
101
|
jscpd: "^4.0.5",
|
|
100
102
|
jsdom: "^29.1.1",
|
|
101
103
|
knip: "^5.71.0",
|
|
102
|
-
marked: "^15.0.12",
|
|
103
104
|
oxfmt: "^0.54.0",
|
|
104
105
|
oxlint: "^1.69.0",
|
|
105
106
|
react: "^19.2.4",
|
|
@@ -5821,6 +5822,25 @@ function formatComment(entry) {
|
|
|
5821
5822
|
${entry.text}`;
|
|
5822
5823
|
}
|
|
5823
5824
|
|
|
5825
|
+
// src/shared/renderMarkdownTerminal.ts
|
|
5826
|
+
import { Marked } from "marked";
|
|
5827
|
+
import { markedTerminal } from "marked-terminal";
|
|
5828
|
+
function renderMarkdownTerminal(text9) {
|
|
5829
|
+
const width = process.stdout.columns || 80;
|
|
5830
|
+
const marked = new Marked(markedTerminal({ width, reflowText: true }));
|
|
5831
|
+
marked.use({
|
|
5832
|
+
renderer: {
|
|
5833
|
+
text(token) {
|
|
5834
|
+
if (token && typeof token === "object" && "tokens" in token && token.tokens) {
|
|
5835
|
+
return this.parser.parseInline(token.tokens);
|
|
5836
|
+
}
|
|
5837
|
+
return false;
|
|
5838
|
+
}
|
|
5839
|
+
}
|
|
5840
|
+
});
|
|
5841
|
+
return marked.parse(text9).trimEnd();
|
|
5842
|
+
}
|
|
5843
|
+
|
|
5824
5844
|
// src/commands/backlog/show/printActivity.ts
|
|
5825
5845
|
import chalk48 from "chalk";
|
|
5826
5846
|
|
|
@@ -5954,7 +5974,10 @@ function printSubtasks(item) {
|
|
|
5954
5974
|
const status2 = chalk52.dim(`[${subtask.status}]`);
|
|
5955
5975
|
console.log(` ${i + 1}. ${status2} ${subtask.title}`);
|
|
5956
5976
|
if (subtask.description) {
|
|
5957
|
-
|
|
5977
|
+
const rendered = renderMarkdownTerminal(subtask.description);
|
|
5978
|
+
for (const line of rendered.split("\n")) {
|
|
5979
|
+
console.log(` ${line}`);
|
|
5980
|
+
}
|
|
5958
5981
|
}
|
|
5959
5982
|
}
|
|
5960
5983
|
console.log();
|
|
@@ -5995,7 +6018,7 @@ async function show(id2) {
|
|
|
5995
6018
|
printHeader(item);
|
|
5996
6019
|
if (item.description) {
|
|
5997
6020
|
console.log(chalk53.bold("Description"));
|
|
5998
|
-
console.log(item.description);
|
|
6021
|
+
console.log(renderMarkdownTerminal(item.description));
|
|
5999
6022
|
console.log();
|
|
6000
6023
|
}
|
|
6001
6024
|
printAcceptanceCriteria(item.acceptanceCriteria);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@staff0rd/assist",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.365.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -49,6 +49,8 @@
|
|
|
49
49
|
"entities": "^7.0.1",
|
|
50
50
|
"is-wsl": "^3.1.0",
|
|
51
51
|
"log-update": "^8.0.0",
|
|
52
|
+
"marked": "^15.0.12",
|
|
53
|
+
"marked-terminal": "^7.3.0",
|
|
52
54
|
"minimatch": "^10.1.1",
|
|
53
55
|
"mssql": "^12.5.0",
|
|
54
56
|
"node-notifier": "^10.0.1",
|
|
@@ -93,7 +95,6 @@
|
|
|
93
95
|
"jscpd": "^4.0.5",
|
|
94
96
|
"jsdom": "^29.1.1",
|
|
95
97
|
"knip": "^5.71.0",
|
|
96
|
-
"marked": "^15.0.12",
|
|
97
98
|
"oxfmt": "^0.54.0",
|
|
98
99
|
"oxlint": "^1.69.0",
|
|
99
100
|
"react": "^19.2.4",
|