glidercli 0.4.34 → 0.4.35

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/README.md CHANGED
@@ -224,8 +224,8 @@ CLI 0.4.18 expects an extension with `listTabs` plus `incognito` on tabs/windows
224
224
  | `glider click` | click |
225
225
  | `glider type` | type |
226
226
  | `glider screenshot` | PNG |
227
- | `glider frozen` | detect frozen tab |
228
- | `glider thaw` | unfreeze tab |
227
+ | `glider frozen` | detect frozen tab (detect only; unknown flags/args fail closed) |
228
+ | `glider thaw` | unfreeze tab (`--verify` / `--all`). Not a subcommand of `frozen` |
229
229
  | `glider explore` | crawl + HAR |
230
230
  | `glider resolve` | host warch |
231
231
  | `glider run` | YAML task |
package/bin/glider.js CHANGED
@@ -3056,6 +3056,9 @@ async function cmdCorsFetch(url, opts = []) {
3056
3056
  // Semantics: 'hidden|true' → macrotasks (setTimeout/fetch/XHR/workers) will not fire.
3057
3057
  // Exit code: 0 if visible, 1 if hidden (chainable in scripts).
3058
3058
  async function cmdFrozen(opts = []) {
3059
+ // Detect only. Unknown flags/positionals fail closed (never silent-ignore).
3060
+ // Wrong form `glider frozen thaw` must die here with the correct verb tip —
3061
+ // no compatibility redirect.
3059
3062
  let sessionId = null;
3060
3063
  for (let i = 0; i < opts.length; i++) {
3061
3064
  const a = opts[i];
@@ -3064,7 +3067,22 @@ async function cmdFrozen(opts = []) {
3064
3067
  console.log('Usage: glider frozen [--session <id>]');
3065
3068
  console.log(' Detect whether the attached tab is macrotask-frozen (hidden).');
3066
3069
  console.log(' Exit code: 0 = visible, 1 = hidden (frozen).');
3070
+ console.log(' Detect only. To unfreeze: glider thaw [--session <id>] [--all] [--verify]');
3067
3071
  return;
3072
+ } else if (a.startsWith('-')) {
3073
+ log.fail(`unknown flag: ${a}`);
3074
+ console.log('Usage: glider frozen [--session <id>]');
3075
+ console.log(' Detect only. To unfreeze: glider thaw [--verify]');
3076
+ process.exit(2);
3077
+ } else {
3078
+ log.fail(`unknown argument: ${a}`);
3079
+ console.log('Usage: glider frozen [--session <id>]');
3080
+ if (a === 'thaw' || a === 'unfreeze' || a === 'wake' || a === 'activate' || a === 'restore') {
3081
+ console.log(` '${a}' is not a frozen subcommand. Use: glider thaw [--session <id>] [--all] [--verify]`);
3082
+ } else {
3083
+ console.log(` '${a}' is not a frozen subcommand. To unfreeze: glider thaw [--verify]`);
3084
+ }
3085
+ process.exit(2);
3068
3086
  }
3069
3087
  }
3070
3088
  if (!await ensureConnected()) process.exit(1);
@@ -3134,6 +3152,14 @@ async function cmdThaw(opts = []) {
3134
3152
  console.log(' --verify re-check visibility + async liveness after thawing');
3135
3153
  console.log(' Reverse of `glider frozen` (detect). Idempotent.');
3136
3154
  return;
3155
+ } else if (a.startsWith('-')) {
3156
+ log.fail(`unknown flag: ${a}`);
3157
+ console.log('Usage: glider thaw [--session <id>] [--all] [--verify]');
3158
+ process.exit(2);
3159
+ } else {
3160
+ log.fail(`unknown argument: ${a}`);
3161
+ console.log('Usage: glider thaw [--session <id>] [--all] [--verify]');
3162
+ process.exit(2);
3137
3163
  }
3138
3164
  }
3139
3165
  if (!await ensureConnected()) process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glidercli",
3
- "version": "0.4.34",
3
+ "version": "0.4.35",
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"