loki-mode 6.38.0 → 6.38.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.
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: loki-mode
3
3
  description: Multi-agent autonomous startup system. Triggers on "Loki Mode". Takes PRD to deployed product with minimal human intervention. Requires --dangerously-skip-permissions flag.
4
4
  ---
5
5
 
6
- # Loki Mode v6.38.0
6
+ # Loki Mode v6.38.2
7
7
 
8
8
  **You are an autonomous agent. You make decisions. You do not ask questions. You do not stop.**
9
9
 
@@ -267,4 +267,4 @@ The following features are documented in skill modules but not yet fully automat
267
267
  | Quality gates 3-reviewer system | Implemented (v5.35.0) | 5 specialist reviewers in `skills/quality-gates.md`; execution in run.sh |
268
268
  | Benchmarks (HumanEval, SWE-bench) | Infrastructure only | Runner scripts and datasets exist in `benchmarks/`; no published results |
269
269
 
270
- **v6.38.0 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
270
+ **v6.38.2 | [Autonomi](https://www.autonomi.dev/) flagship product | ~260 lines core**
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.38.0
1
+ 6.38.2
@@ -85,13 +85,35 @@ if (results.some(r => !r.ok)) {
85
85
  console.log(` loki setup-skill`);
86
86
  }
87
87
 
88
- // PATH check: warn if npm global bin is not in PATH
88
+ // PATH check: warn if npm global bin is not in PATH, and auto-fix on macOS Homebrew
89
89
  try {
90
90
  const { execSync } = require('child_process');
91
91
  const npmBin = execSync('npm bin -g 2>/dev/null || npm prefix -g', { encoding: 'utf8', stdio: ['pipe', 'pipe', 'pipe'] }).trim();
92
92
  const npmBinDir = npmBin.endsWith('/bin') ? npmBin : npmBin + '/bin';
93
93
  const pathDirs = (process.env.PATH || '').split(':');
94
94
  const lokiBinInPath = pathDirs.some(d => d === npmBinDir || d === npmBin);
95
+
96
+ // On macOS with Homebrew Node, npm global bin path changes on every Node version upgrade.
97
+ // Auto-create stable symlinks in /opt/homebrew/bin/ so `loki` always works.
98
+ if (os.platform() === 'darwin') {
99
+ const stableDir = '/opt/homebrew/bin';
100
+ if (fs.existsSync(stableDir)) {
101
+ for (const bin of ['loki', 'loki-mode']) {
102
+ const src = path.join(npmBinDir, bin);
103
+ const dest = path.join(stableDir, bin);
104
+ try {
105
+ if (fs.existsSync(src)) {
106
+ // Remove stale symlink or existing file
107
+ try { fs.unlinkSync(dest); } catch {}
108
+ fs.symlinkSync(src, dest);
109
+ }
110
+ } catch {
111
+ // Silently skip if no permission (non-root)
112
+ }
113
+ }
114
+ }
115
+ }
116
+
95
117
  if (!lokiBinInPath) {
96
118
  console.log('');
97
119
  console.log('[IMPORTANT] The `loki` command may not be in your PATH.');
@@ -7,7 +7,7 @@ Modules:
7
7
  control: Session control API (start/stop/pause/resume)
8
8
  """
9
9
 
10
- __version__ = "6.38.0"
10
+ __version__ = "6.38.2"
11
11
 
12
12
  # Expose the control app for easy import
13
13
  try:
@@ -2,7 +2,7 @@
2
2
 
3
3
  The flagship product of [Autonomi](https://www.autonomi.dev/). Complete installation instructions for all platforms and use cases.
4
4
 
5
- **Version:** v6.38.0
5
+ **Version:** v6.38.2
6
6
 
7
7
  ---
8
8
 
package/mcp/__init__.py CHANGED
@@ -57,4 +57,4 @@ try:
57
57
  except ImportError:
58
58
  __all__ = ['mcp']
59
59
 
60
- __version__ = '6.38.0'
60
+ __version__ = '6.38.2'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loki-mode",
3
- "version": "6.38.0",
3
+ "version": "6.38.2",
4
4
  "description": "Loki Mode by Autonomi - Multi-agent autonomous startup system for Claude Code, Codex CLI, and Gemini CLI",
5
5
  "keywords": [
6
6
  "agent",