glidercli 0.4.9 → 0.4.10

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.
Files changed (2) hide show
  1. package/bin/glider.js +9 -5
  2. package/package.json +1 -1
package/bin/glider.js CHANGED
@@ -3545,6 +3545,7 @@ ${B5}STATUS${NC}
3545
3545
  ${BW}status${NC} Check server, extension, tabs
3546
3546
  ${BW}doctor${NC} Relay + SW + targets + next action ${DIM}(--json)${NC}
3547
3547
  ${BW}heal${NC} [--clear-pin] Ensure relay, wake SW best-effort, reattach
3548
+ ${BW}reload${NC} Reload/pin Glider extension ${DIM}(alias: reload-ext, rex; page: history reload)${NC}
3548
3549
  ${BW}browser${NC} Show browser config ${DIM}(name, path, processName, or use key)${NC}
3549
3550
  ${BW}use${NC} <key> Set browser by registry key ${DIM}(e.g. arc, brave, chrome)${NC}
3550
3551
  ${BW}test${NC} Run diagnostics
@@ -5064,16 +5065,18 @@ async function main() {
5064
5065
  loadPlugins(); // hydrate ~/.glider/plugins/*.plugin.{json,js} - verb-agnostic core
5065
5066
  let cmd = args[0];
5066
5067
 
5067
- // v0.3.15: reload-ext command aliases -
5068
- // Accept common natural-language variants + typos for high-frequency commands.
5068
+ // reload-ext command aliases -
5069
+ // Bare `reload` pins the extension (page refresh stays `history reload`).
5069
5070
  // Rewrites args in place so downstream switch stays clean.
5070
5071
  const RELOAD_EXT_ALIASES = new Set(['rex', 'reloadext', 'reloadExt']);
5071
5072
  if (cmd === 'ext' && args[1] === 'reload') {
5072
5073
  cmd = 'reload-ext';
5073
5074
  args.splice(0, 2, 'reload-ext');
5074
- } else if (cmd === 'reload' && (args[1] === 'ext' || args[1] === 'extension')) {
5075
+ } else if (cmd === 'reload' && (!args[1] || args[1] === 'ext' || args[1] === 'extension')) {
5076
+ // Bare `reload` = pin extension. Page refresh stays `history reload`.
5075
5077
  cmd = 'reload-ext';
5076
- args.splice(0, 2, 'reload-ext');
5078
+ if (args[1]) args.splice(0, 2, 'reload-ext');
5079
+ else args[0] = 'reload-ext';
5077
5080
  } else if (RELOAD_EXT_ALIASES.has(cmd)) {
5078
5081
  cmd = 'reload-ext';
5079
5082
  args[0] = 'reload-ext';
@@ -5133,6 +5136,7 @@ async function main() {
5133
5136
  case 'restart':
5134
5137
  await cmdRestart();
5135
5138
  break;
5139
+ case 'reload':
5136
5140
  case 'reload-ext':
5137
5141
  case 'reload-extension':
5138
5142
  await cmdReloadExt();
@@ -5404,7 +5408,7 @@ async function main() {
5404
5408
  }
5405
5409
  log.fail(`Unknown command: ${cmd}`);
5406
5410
  // v0.3.15: typo suggest (Levenshtein <=2) before dumping full help.
5407
- const KNOWN_CMDS = ['status','start','stop','restart','reload-ext','attach-all','install','uninstall',
5411
+ const KNOWN_CMDS = ['status','start','stop','restart','reload','reload-ext','attach-all','install','uninstall',
5408
5412
  'update','version','connect','browser','use','test','doctor','heal','domains','resolve','goto','eval','click','type',
5409
5413
  'screenshot','snapshot','text','html','title','url','tabs','targets','use-session','fetch','spawn',
5410
5414
  'extract','explore','favicon','window','reg','run','loop','ralph',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glidercli",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "Browser automation CLI. Control a configured Chromium browser through an extension CDP relay, run YAML tasks, and execute bounded autonomous loops.",
5
5
  "bin": {
6
6
  "glider": "bin/glider.js"