@oxygen-agent/cli 1.184.3 → 1.209.23
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 +1 -1
- package/dist/http-client.js +6 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.js +614 -18
- package/node_modules/@oxygen/recipe-sdk/dist/index.d.ts +41 -0
- package/node_modules/@oxygen/shared/dist/billing.d.ts +28 -6
- package/node_modules/@oxygen/shared/dist/billing.js +41 -0
- package/node_modules/@oxygen/shared/dist/index.d.ts +1 -0
- package/node_modules/@oxygen/shared/dist/index.js +1 -0
- package/node_modules/@oxygen/shared/dist/networks.d.ts +21 -0
- package/node_modules/@oxygen/shared/dist/networks.js +25 -0
- package/node_modules/@oxygen/shared/dist/search-vocab.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/sequences.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/sequences.js +9 -1
- package/node_modules/@oxygen/shared/dist/signup-lead-webhook.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/sql-error.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.d.ts +1 -1
- package/node_modules/@oxygen/shared/dist/version.js +1 -1
- package/node_modules/@oxygen/shared/dist/workflow-trigger-metadata.js +2 -5
- package/node_modules/@oxygen/workflows/dist/index.d.ts +1 -0
- package/node_modules/@oxygen/workflows/dist/index.js +39 -5
- package/oxygen.js +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/http-client.js
CHANGED
|
@@ -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
|
-
|
|
127
|
-
|
|
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
|
-
|
|
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