@tiny-fish/cli 0.53.1-next.446 → 0.53.1-next.447

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.
@@ -195,9 +195,9 @@ function isBelowMin(version, minVersion) {
195
195
  // Flags go unseen for reasons besides age; state facts, not causes.
196
196
  function unavailableMessage(client, version) {
197
197
  const { minVersion } = client.supportCheck;
198
- const found = version ? ` (found ${version})` : '';
199
- const required = minVersion && (isBelowMin(version, minVersion) ?? version === undefined)
200
- ? ` ${client.displayName} ${minVersion} or newer is required${found}.`
198
+ // A known version below the minimum already failed in requireMinVersion.
199
+ const required = minVersion && version === undefined
200
+ ? ` ${client.displayName} ${minVersion} or newer is required.`
201
201
  : '';
202
202
  return (`${client.supportCheck.unavailableMessage}${required}` +
203
203
  ' Set TINYFISH_DEBUG=1 and retry to print the help output TinyFish read.');
@@ -292,8 +292,8 @@ export function requireCommandSupport(client) {
292
292
  }
293
293
  // Old releases can list the flags yet mishandle them; unknown passes.
294
294
  function requireMinVersion(client, harnessVersion) {
295
- const { minVersion, updateCommand, enforceMinVersion } = client.supportCheck;
296
- if (!enforceMinVersion || !isBelowMin(harnessVersion, minVersion))
295
+ const { minVersion, updateCommand } = client.supportCheck;
296
+ if (!isBelowMin(harnessVersion, minVersion))
297
297
  return;
298
298
  const fix = updateCommand ? `Run \`${updateCommand}\`` : `Update ${client.displayName}`;
299
299
  throw new ConnectStepError(`${client.displayName} ${minVersion} or newer is required (found ${harnessVersion}). ` +
@@ -16,8 +16,6 @@ export interface HarnessSupportCheck {
16
16
  timeoutMs?: number;
17
17
  /** First release with the probed flags; bisected upstream, not derivable. */
18
18
  minVersion?: string;
19
- /** Refuse below minVersion even when the probed flags are listed. */
20
- enforceMinVersion?: true;
21
19
  /** Shown in the below-minVersion error as the one-step fix. */
22
20
  updateCommand?: string;
23
21
  unavailableMessage: string;
@@ -233,7 +231,6 @@ export declare const HARNESS_SPECS: {
233
231
  keyAuthPattern: RegExp;
234
232
  timeoutMs: number;
235
233
  minVersion: string;
236
- enforceMinVersion: true;
237
234
  updateCommand: string;
238
235
  unavailableMessage: string;
239
236
  };
@@ -155,7 +155,6 @@ export const HARNESS_SPECS = {
155
155
  timeoutMs: HERMES_COLD_START_TIMEOUT_MS,
156
156
  // Older `config set` saves our JSON entry as an unusable string.
157
157
  minVersion: '0.21.2',
158
- enforceMinVersion: true,
159
158
  updateCommand: 'hermes update',
160
159
  unavailableMessage: HERMES_OAUTH_UNAVAILABLE_MESSAGE,
161
160
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiny-fish/cli",
3
- "version": "0.53.1-next.446",
3
+ "version": "0.53.1-next.447",
4
4
  "description": "TinyFish CLI — run web automations from your terminal",
5
5
  "type": "module",
6
6
  "bin": {