chore: fix CI

This commit is contained in:
Ralph Khreish
2025-09-01 21:31:12 +02:00
parent 8f27fd7a69
commit 6a642cf496
5 changed files with 65 additions and 33 deletions

View File

@@ -9,17 +9,9 @@
"engines": {
"vscode": "^1.93.0"
},
"categories": [
"AI",
"Visualization",
"Education",
"Other"
],
"categories": ["AI", "Visualization", "Education", "Other"],
"main": "./dist/extension.js",
"activationEvents": [
"onStartupFinished",
"workspaceContains:.taskmaster/**"
],
"activationEvents": ["onStartupFinished", "workspaceContains:.taskmaster/**"],
"contributes": {
"viewsContainers": {
"activitybar": [
@@ -147,11 +139,7 @@
},
"taskmaster.ui.theme": {
"type": "string",
"enum": [
"auto",
"light",
"dark"
],
"enum": ["auto", "light", "dark"],
"default": "auto",
"description": "UI theme preference"
},
@@ -212,12 +200,7 @@
},
"taskmaster.debug.logLevel": {
"type": "string",
"enum": [
"error",
"warn",
"info",
"debug"
],
"enum": ["error", "warn", "info", "debug"],
"default": "info",
"description": "Logging level"
},

46
package-lock.json generated
View File

@@ -12105,6 +12105,13 @@
"dev": true,
"license": "MIT"
},
"node_modules/confbox": {
"version": "0.1.8",
"resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz",
"integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",
"dev": true,
"license": "MIT"
},
"node_modules/consola": {
"version": "3.4.2",
"dev": true,
@@ -19658,6 +19665,19 @@
"license": "MIT",
"optional": true
},
"node_modules/mlly": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz",
"integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==",
"dev": true,
"license": "MIT",
"dependencies": {
"acorn": "^8.15.0",
"pathe": "^2.0.3",
"pkg-types": "^1.3.1",
"ufo": "^1.6.1"
}
},
"node_modules/mnemonist": {
"version": "0.40.3",
"resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.40.3.tgz",
@@ -21176,6 +21196,13 @@
"node": ">=8"
}
},
"node_modules/pathe": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",
"integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",
"dev": true,
"license": "MIT"
},
"node_modules/pathval": {
"version": "2.0.1",
"dev": true,
@@ -21260,6 +21287,18 @@
"node": ">=8"
}
},
"node_modules/pkg-types": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",
"integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"confbox": "^0.1.8",
"mlly": "^1.7.4",
"pathe": "^2.0.1"
}
},
"node_modules/pony-cause": {
"version": "1.1.1",
"dev": true,
@@ -24802,6 +24841,13 @@
"dev": true,
"license": "MIT"
},
"node_modules/ufo": {
"version": "1.6.1",
"resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.1.tgz",
"integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==",
"dev": true,
"license": "MIT"
},
"node_modules/uint8array-extras": {
"version": "1.4.0",
"license": "MIT",

View File

@@ -109,12 +109,7 @@
"bugs": {
"url": "https://github.com/eyaltoledano/claude-task-master/issues"
},
"files": [
"dist/**",
"README-task-master.md",
"README.md",
"LICENSE"
],
"files": ["dist/**", "README-task-master.md", "README.md", "LICENSE"],
"overrides": {
"node-fetch": "^2.6.12",
"whatwg-url": "^11.0.0"

View File

@@ -1,7 +1,7 @@
/**
* Asset Resolver Module
* Handles resolving paths to asset files in the package
*
*
* The public/assets folder is copied to dist/assets during build via tsup's publicDir,
* so we can reliably find it relative to the bundled files.
*/
@@ -29,7 +29,13 @@ export function getAssetsDir() {
// When installed as npm package - assets at package root
path.join(process.cwd(), 'assets'),
// For npx usage - check node_modules
path.join(process.cwd(), 'node_modules', 'task-master-ai', 'dist', 'assets'),
path.join(
process.cwd(),
'node_modules',
'task-master-ai',
'dist',
'assets'
),
path.join(process.cwd(), 'node_modules', 'task-master-ai', 'assets')
];
@@ -45,7 +51,9 @@ export function getAssetsDir() {
}
// If no assets directory found, throw an error
throw new Error('Assets directory not found. This is likely a packaging issue.');
throw new Error(
'Assets directory not found. This is likely a packaging issue.'
);
}
/**
@@ -81,4 +89,4 @@ export function assetExists(relativePath) {
export function readAsset(relativePath, encoding = 'utf8') {
const assetPath = getAssetPath(relativePath);
return fs.readFileSync(assetPath, encoding);
}
}

View File

@@ -401,7 +401,7 @@ export function removeProfileRules(projectRoot, profile) {
} else if (stats.isDirectory() && !stats.isSymbolicLink()) {
// Only recurse into safe directories
const subFiles = fs.readdirSync(itemPath, { recursive: true });
subFiles.forEach(subFile => {
subFiles.forEach((subFile) => {
allFiles.push(path.join(item, subFile.toString()));
});
}
@@ -413,7 +413,7 @@ export function removeProfileRules(projectRoot, profile) {
// For non-root directories, use normal recursive read
allFiles = fs.readdirSync(targetDir, { recursive: true });
}
const allFilePaths = allFiles
.filter((file) => {
const fullPath = path.join(targetDir, file);