@rubytech/taskmaster 1.0.78 → 1.0.80

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.78",
3
- "commit": "cc4f7066cfec691f8073ad9ad7d188b2c526ff37",
4
- "builtAt": "2026-02-20T21:10:41.087Z"
2
+ "version": "1.0.80",
3
+ "commit": "4b23b81707c4c708452321ea22668367d4337662",
4
+ "builtAt": "2026-02-20T21:20:38.650Z"
5
5
  }
@@ -5,7 +5,6 @@ export function resolveBundledPluginsDir() {
5
5
  return resolveBundledPluginsDirDetailed().dir;
6
6
  }
7
7
  export function resolveBundledPluginsDirDetailed() {
8
- const triedPaths = [];
9
8
  const override = process.env.TASKMASTER_BUNDLED_PLUGINS_DIR?.trim();
10
9
  if (override)
11
10
  return { dir: override, source: "env" };
@@ -13,29 +12,19 @@ export function resolveBundledPluginsDirDetailed() {
13
12
  try {
14
13
  const execDir = path.dirname(process.execPath);
15
14
  const sibling = path.join(execDir, "extensions");
16
- triedPaths.push(sibling);
17
15
  if (fs.existsSync(sibling))
18
16
  return { dir: sibling, source: "exec-sibling" };
19
17
  }
20
18
  catch {
21
19
  // ignore
22
20
  }
23
- // npm/dev: walk up from this module to find `extensions/` at the package root.
24
- try {
25
- let cursor = path.dirname(fileURLToPath(import.meta.url));
26
- for (let i = 0; i < 6; i += 1) {
27
- const candidate = path.join(cursor, "extensions");
28
- triedPaths.push(candidate);
29
- if (fs.existsSync(candidate))
30
- return { dir: candidate, source: "walk-up" };
31
- const parent = path.dirname(cursor);
32
- if (parent === cursor)
33
- break;
34
- cursor = parent;
35
- }
36
- }
37
- catch {
38
- // ignore
21
+ // This file compiles to dist/plugins/bundled-dir.js.
22
+ // extensions/ is at the package root — exactly ../../ from here.
23
+ const thisFile = fileURLToPath(import.meta.url);
24
+ const packageRoot = path.resolve(path.dirname(thisFile), "..", "..");
25
+ const extensions = path.join(packageRoot, "extensions");
26
+ if (fs.existsSync(extensions)) {
27
+ return { dir: extensions, source: "package-relative" };
39
28
  }
40
- return { dir: undefined, triedPaths };
29
+ return { dir: undefined, resolvedPath: extensions };
41
30
  }
@@ -274,8 +274,8 @@ export function discoverTaskmasterPlugins(params) {
274
274
  }
275
275
  else {
276
276
  diagnostics.push({
277
- level: "warn",
278
- message: `bundled extensions dir not resolved${bundled.triedPaths?.length ? ` (tried: ${bundled.triedPaths.join(", ")})` : ""}`,
277
+ level: "error",
278
+ message: `bundled extensions dir not found at ${bundled.resolvedPath ?? "unknown"}`,
279
279
  source: "bundled-dir",
280
280
  });
281
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/taskmaster",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "description": "AI-powered business assistant for small businesses",
5
5
  "publishConfig": {
6
6
  "access": "public"