plum-e2e 2.6.4 → 2.6.5

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.
@@ -0,0 +1,18 @@
1
+ /*
2
+ This file is part of Plum.
3
+
4
+ Plum is free software: you can redistribute it and/or modify
5
+ it under the terms of the GNU General Public License as published by
6
+ the Free Software Foundation, either version 3 of the License, or
7
+ (at your option) any later version.
8
+
9
+ Plum is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ GNU General Public License for more details.
13
+
14
+ You should have received a copy of the GNU General Public License
15
+ along with Plum. If not, see https://www.gnu.org/licenses/.
16
+ */
17
+ 📂 Loading tests from: /Users/silverlunah/Projects/plum/backend/tests
18
+ Backend running on port 3999 (node/runner mode)
@@ -139,9 +139,8 @@ async function describeRunners() {
139
139
  function statusBadge(r) {
140
140
  const dot = r.online ? pc.green('●') : pc.dim('○');
141
141
  let detail;
142
- if (!r.local) detail = pc.dim('remote');
143
- else if (r.managed) detail = pc.green('running');
144
- else if (r.online) detail = pc.yellow('running (unmanaged)');
142
+ if (r.managed) detail = pc.green('running');
143
+ else if (r.online) detail = pc.yellow(r.local ? 'running (unmanaged)' : 'running (remote)');
145
144
  else detail = pc.dim('stopped');
146
145
  return `${dot} ${detail}`;
147
146
  }
@@ -184,10 +183,15 @@ async function runAction(r) {
184
183
  { value: 'restart', label: pc.yellow('Restart') },
185
184
  { value: 'ping', label: 'Ping' }
186
185
  );
187
- } else if (r.local) {
188
- options.push({ value: 'start', label: pc.green('Start') }, { value: 'ping', label: 'Ping' });
189
186
  } else {
190
- options.push({ value: 'ping', label: 'Ping' });
187
+ // Offline and nothing is listening to control remotely — offer Start
188
+ // unconditionally rather than gating on address-based "is this local"
189
+ // detection. That heuristic breaks the moment this machine's address
190
+ // differs from what was registered (DHCP renewal, VPN, multiple NICs),
191
+ // permanently trapping an offline runner with no way back. Starting
192
+ // here is always safe to attempt: it spawns a managed process this menu
193
+ // can immediately Stop again if the address guess was wrong.
194
+ options.push({ value: 'start', label: pc.green('Start') }, { value: 'ping', label: 'Ping' });
191
195
  }
192
196
 
193
197
  options.push(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plum-e2e",
3
- "version": "2.6.4",
3
+ "version": "2.6.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/silverlunah/plum.git"