@oxygen-agent/cli 1.184.3 → 1.209.6

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
@@ -34,4 +34,4 @@ oxygen update
34
34
 
35
35
  For product documentation, visit https://oxygen-agent.com/docs. For support, visit https://oxygen-agent.com.
36
36
 
37
- Version: 1.184.3
37
+ Version: 1.209.6
@@ -123,9 +123,8 @@ function shouldCheckCliCompatibility(options) {
123
123
  // Tests and local callers often inject a fake fetch implementation for a
124
124
  // single request. Skip the prod health preflight there; the response envelope
125
125
  // still carries the compatibility metadata and is checked below.
126
- if (options.fetch)
127
- return false;
128
- return true;
126
+ const usesInjectedFetch = options.fetch !== undefined;
127
+ return !usesInjectedFetch;
129
128
  }
130
129
  async function readHealthCompatibility(apiUrl, fetchImpl) {
131
130
  if (!isProdApiUrl(apiUrl))
@@ -244,7 +243,10 @@ function createTimeoutSignal(timeoutMs) {
244
243
  };
245
244
  }
246
245
  function isAbortError(error) {
247
- return error instanceof Error && error.name === "AbortError";
246
+ if (!(error instanceof Error))
247
+ return false;
248
+ const abortErrorName = error.name === "AbortError";
249
+ return abortErrorName;
248
250
  }
249
251
  async function readEnvelope(response) {
250
252
  const text = await response.text();
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- #!/usr/bin/env node
2
1
  import { Command } from "commander";
3
2
  export declare function createProgram(): Command;