@yemi33/minions 0.1.119 → 0.1.120

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.120 (2026-04-01)
4
+
5
+ ### Dashboard
6
+ - dashboard/js/settings.js
7
+
3
8
  ## 0.1.119 (2026-04-01)
4
9
 
5
10
  ### Dashboard
@@ -100,8 +100,10 @@ function settingsField(label, id, value, unit, hint) {
100
100
 
101
101
  async function saveSettings() {
102
102
  const status = document.getElementById('settings-status');
103
+ const saveBtn = document.getElementById('modal-settings-save');
103
104
  status.textContent = 'Saving...';
104
105
  status.style.color = 'var(--blue)';
106
+ if (saveBtn) { saveBtn.disabled = true; saveBtn.style.opacity = '0.6'; saveBtn.innerHTML = 'Saving...'; }
105
107
 
106
108
  try {
107
109
  const enginePayload = {
@@ -152,11 +154,18 @@ async function saveSettings() {
152
154
  });
153
155
  if (!rRes.ok) { const d = await rRes.json(); throw new Error(d.error); }
154
156
 
155
- status.textContent = 'Saved. Restart engine for full effect.';
157
+ status.textContent = 'Saved. Engine picks up changes on next tick.';
156
158
  status.style.color = 'var(--green)';
159
+ if (saveBtn) { saveBtn.innerHTML = '<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"/></svg> Saved'; saveBtn.style.color = 'var(--green)'; saveBtn.style.borderColor = 'var(--green)'; }
160
+ showToast('cmd-toast', 'Settings saved', true);
161
+ setTimeout(function() {
162
+ if (saveBtn) { saveBtn.disabled = false; saveBtn.style.opacity = ''; saveBtn.innerHTML = '<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"/></svg> Save'; }
163
+ }, 2000);
157
164
  } catch (e) {
158
165
  status.textContent = 'Error: ' + e.message;
159
166
  status.style.color = 'var(--red)';
167
+ if (saveBtn) { saveBtn.disabled = false; saveBtn.style.opacity = ''; saveBtn.innerHTML = '<svg width="12" height="12" viewBox="0 0 16 16" fill="currentColor"><path d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"/></svg> Save'; }
168
+ showToast('cmd-toast', 'Settings save failed: ' + e.message, false);
160
169
  }
161
170
  }
162
171
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.119",
3
+ "version": "0.1.120",
4
4
  "description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
5
5
  "bin": {
6
6
  "minions": "bin/minions.js"