taskin 4.1.2 → 4.1.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 +16 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1216,7 +1216,11 @@ var init_assignee_identity = __esm({
|
|
|
1216
1216
|
"n\xE3o atribu\xEDdo",
|
|
1217
1217
|
"unassigned",
|
|
1218
1218
|
"tbd",
|
|
1219
|
-
|
|
1219
|
+
// As tres barras: hifen, meia-risca e travessao. Quem escreve a mao usa o
|
|
1220
|
+
// travessao (`—`) com a mesma intencao do hifen, e so o hifen era aceito.
|
|
1221
|
+
"-",
|
|
1222
|
+
"\u2013",
|
|
1223
|
+
"\u2014"
|
|
1220
1224
|
];
|
|
1221
1225
|
foldAssignee = (value) => value.toLowerCase().replace(/[^a-z0-9]/g, "");
|
|
1222
1226
|
fold = foldAssignee;
|
|
@@ -1906,7 +1910,7 @@ async function validateTaskFile(filePath) {
|
|
|
1906
1910
|
const locale = detectLocale(content);
|
|
1907
1911
|
const i18n = getI18n(locale);
|
|
1908
1912
|
const hasTitleSection = lines.some((line) => line.trim().startsWith("# "));
|
|
1909
|
-
const sectionStatusPattern = new RegExp(
|
|
1913
|
+
const sectionStatusPattern = new RegExp(`^#{2,}\\s*(?:Status|${i18n.status})\\s*$`, "im");
|
|
1910
1914
|
const inlineStatus = readMetadataField(content, i18n.status, "Status");
|
|
1911
1915
|
const isMetadataLine = (line) => new RegExp(`^(?:-\\s+)?(?:Status|${i18n.status})\\s*:`, "i").test(line.trim());
|
|
1912
1916
|
const hasInlineStatus = inlineStatus !== void 0;
|
|
@@ -5469,8 +5473,17 @@ async function executeLint(options) {
|
|
|
5469
5473
|
console.log();
|
|
5470
5474
|
}
|
|
5471
5475
|
if (result.valid) {
|
|
5472
|
-
|
|
5476
|
+
if (notices.length === 0) {
|
|
5477
|
+
console.log(chalk5.green(`\u2705 All task files are valid!
|
|
5473
5478
|
`));
|
|
5479
|
+
} else {
|
|
5480
|
+
const partes = [
|
|
5481
|
+
result.warningCount > 0 ? `${result.warningCount} warning(s)` : "",
|
|
5482
|
+
result.infoCount > 0 ? `${result.infoCount} info` : ""
|
|
5483
|
+
].filter(Boolean);
|
|
5484
|
+
console.log(chalk5.green(`\u2705 No errors \u2014 ${partes.join(" and ")} above, listed for a human to decide.
|
|
5485
|
+
`));
|
|
5486
|
+
}
|
|
5474
5487
|
}
|
|
5475
5488
|
if (!result.valid && !options.fix) {
|
|
5476
5489
|
console.log(chalk5.blue(`\u{1F4A1} Run with --fix to automatically fix format issues
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taskin",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.4",
|
|
4
4
|
"description": "Task management system integrated with Git workflows",
|
|
5
5
|
"motivation": "Provide a CLI tool for task management integrated with Git workflows",
|
|
6
6
|
"solve": "Simplifies task tracking and management directly from the command line",
|
|
@@ -79,13 +79,13 @@
|
|
|
79
79
|
"play-sound": "^1.1.6",
|
|
80
80
|
"ws": "^8.18.3",
|
|
81
81
|
"zod": "^3.25.76",
|
|
82
|
-
"@opentask/taskin-
|
|
82
|
+
"@opentask/taskin-git-utils": "3.0.2",
|
|
83
83
|
"@opentask/taskin-task-manager": "3.0.2",
|
|
84
|
-
"@opentask/taskin-
|
|
84
|
+
"@opentask/taskin-file-system-provider": "3.2.3",
|
|
85
|
+
"@opentask/taskin-task-server-mcp": "0.2.4",
|
|
85
86
|
"@opentask/taskin-task-server-ws": "0.3.2",
|
|
86
|
-
"@opentask/taskin-
|
|
87
|
-
"@opentask/taskin-utils": "1.1.1"
|
|
88
|
-
"@opentask/taskin-types": "2.1.1"
|
|
87
|
+
"@opentask/taskin-types": "2.1.1",
|
|
88
|
+
"@opentask/taskin-utils": "1.1.1"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@types/node": "^20.19.24",
|