@sylphai/adal-cli 0.6.1-beta.2 → 0.6.1-beta.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/bin/adal-cli.js CHANGED
@@ -53,7 +53,7 @@ function loadCachedPath() {
53
53
  if (fs.existsSync(cacheFile)) {
54
54
  const cache = JSON.parse(fs.readFileSync(cacheFile, 'utf8'));
55
55
  // Verify the cached path still exists AND points to wrapper (not adal-cli.js)
56
- const expectedWrapper = platform === 'win32' ? 'adal.cmd' : 'adal';
56
+ const expectedWrapper = platform === 'win32' ? 'adal-launcher.cjs' : 'adal';
57
57
  if (cache.path && fs.existsSync(cache.path)) {
58
58
  // CRITICAL: Reject cache if it points to adal-cli.js (stale Bun migration cache)
59
59
  if (cache.path.endsWith('adal-cli.js')) {
@@ -79,7 +79,7 @@ function loadCachedPath() {
79
79
 
80
80
  // Save path to cache
81
81
  function saveCachedPath(platformPath) {
82
- const expectedWrapper = platform === 'win32' ? 'adal.cmd' : 'adal';
82
+ const expectedWrapper = platform === 'win32' ? 'adal-launcher.cjs' : 'adal';
83
83
  try {
84
84
  if (!fs.existsSync(cacheDir)) {
85
85
  fs.mkdirSync(cacheDir, { recursive: true });
@@ -110,7 +110,7 @@ function findPlatformPackage() {
110
110
 
111
111
  // If no cache or cache is stale, search for the package
112
112
  // Look for the 'adal' wrapper script (not adal-cli.js) which uses bundled Bun
113
- const wrapperName = platform === 'win32' ? 'adal.cmd' : 'adal';
113
+ const wrapperName = platform === 'win32' ? 'adal-launcher.cjs' : 'adal';
114
114
  const possiblePaths = [
115
115
  // When installed globally - platform package is in main package's node_modules
116
116
  path.join(__dirname, '..', 'node_modules', packageName, wrapperName),
@@ -36,7 +36,7 @@ const cacheFile = path.join(cacheDir, 'platform-path.json');
36
36
  // Find the platform package during installation
37
37
  function findAndCachePlatformPackage() {
38
38
  // Look for wrapper script (uses bundled Bun), not adal-cli.js
39
- const wrapperName = platform === 'win32' ? 'adal.cmd' : 'adal';
39
+ const wrapperName = platform === 'win32' ? 'adal-launcher.cjs' : 'adal';
40
40
  const possiblePaths = [
41
41
  // When installed globally - platform package is in main package's node_modules
42
42
  path.join(__dirname, '..', 'node_modules', packageName, wrapperName),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylphai/adal-cli",
3
- "version": "0.6.1-beta.2",
3
+ "version": "0.6.1-beta.4",
4
4
  "description": "AI-powered CLI for development and research tasks",
5
5
  "bin": {
6
6
  "adal": "bin/adal-cli.js"
@@ -9,10 +9,10 @@
9
9
  "postinstall": "node lib/setup-cache.js"
10
10
  },
11
11
  "optionalDependencies": {
12
- "@sylphai/adal-cli-darwin-arm64": "0.6.1-beta.2",
13
- "@sylphai/adal-cli-darwin-x64": "0.6.1-beta.2",
14
- "@sylphai/adal-cli-linux-x64": "0.6.1-beta.2",
15
- "@sylphai/adal-cli-win32-x64": "0.6.1-beta.2"
12
+ "@sylphai/adal-cli-darwin-arm64": "0.6.1-beta.4",
13
+ "@sylphai/adal-cli-darwin-x64": "0.6.1-beta.4",
14
+ "@sylphai/adal-cli-linux-x64": "0.6.1-beta.4",
15
+ "@sylphai/adal-cli-win32-x64": "0.6.1-beta.4"
16
16
  },
17
17
  "files": [
18
18
  "bin/",