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

46
package-lock.json generated
View File

@@ -12105,6 +12105,13 @@
"dev": true, "dev": true,
"license": "MIT" "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": { "node_modules/consola": {
"version": "3.4.2", "version": "3.4.2",
"dev": true, "dev": true,
@@ -19658,6 +19665,19 @@
"license": "MIT", "license": "MIT",
"optional": true "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": { "node_modules/mnemonist": {
"version": "0.40.3", "version": "0.40.3",
"resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.40.3.tgz", "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.40.3.tgz",
@@ -21176,6 +21196,13 @@
"node": ">=8" "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": { "node_modules/pathval": {
"version": "2.0.1", "version": "2.0.1",
"dev": true, "dev": true,
@@ -21260,6 +21287,18 @@
"node": ">=8" "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": { "node_modules/pony-cause": {
"version": "1.1.1", "version": "1.1.1",
"dev": true, "dev": true,
@@ -24802,6 +24841,13 @@
"dev": true, "dev": true,
"license": "MIT" "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": { "node_modules/uint8array-extras": {
"version": "1.4.0", "version": "1.4.0",
"license": "MIT", "license": "MIT",

View File

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

View File

@@ -1,7 +1,7 @@
/** /**
* Asset Resolver Module * Asset Resolver Module
* Handles resolving paths to asset files in the package * Handles resolving paths to asset files in the package
* *
* The public/assets folder is copied to dist/assets during build via tsup's publicDir, * 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. * 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 // When installed as npm package - assets at package root
path.join(process.cwd(), 'assets'), path.join(process.cwd(), 'assets'),
// For npx usage - check node_modules // 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') 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 // 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') { export function readAsset(relativePath, encoding = 'utf8') {
const assetPath = getAssetPath(relativePath); const assetPath = getAssetPath(relativePath);
return fs.readFileSync(assetPath, encoding); return fs.readFileSync(assetPath, encoding);
} }

View File

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