edsger 0.55.0 → 0.55.2

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.
@@ -12,6 +12,7 @@
12
12
  import fs from 'node:fs/promises';
13
13
  import os from 'node:os';
14
14
  import path from 'node:path';
15
+ import { fileURLToPath } from 'node:url';
15
16
  import matter from 'gray-matter';
16
17
  import { logDebug } from '../utils/logger.js';
17
18
  import { loadSkillFile } from './phase-hooks/plugin-loader.js';
@@ -23,9 +24,10 @@ let _bundledSkillsDir = null;
23
24
  function getBundledSkillsDir() {
24
25
  if (!_bundledSkillsDir) {
25
26
  // dist/services/skill-resolver.js → dist/skills/
26
- const thisDir = path.dirname(
27
- // @ts-ignore -- import.meta.url is available in ESM
28
- new URL(import.meta.url).pathname);
27
+ // Use fileURLToPath, not URL.pathname — the latter is percent-encoded,
28
+ // which breaks fs.readFile when the install path contains spaces (e.g.
29
+ // macOS `~/Library/Application Support/edsger-desktop/...`).
30
+ const thisDir = path.dirname(fileURLToPath(import.meta.url));
29
31
  _bundledSkillsDir = path.resolve(thisDir, '..', 'skills');
30
32
  }
31
33
  return _bundledSkillsDir;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edsger",
3
- "version": "0.55.0",
3
+ "version": "0.55.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "edsger": "dist/index.js"