integrate-sdk 0.7.27 → 0.7.28
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/dist/ai/anthropic.js +1 -1
- package/dist/ai/cloudflare.js +1 -1
- package/dist/ai/google.js +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai/langchain.js +1 -1
- package/dist/ai/llamaindex.js +1 -1
- package/dist/ai/mastra.js +1 -1
- package/dist/ai/openai-agents.js +1 -1
- package/dist/ai/openai.js +1 -1
- package/dist/ai/utils.js +1 -1
- package/dist/ai/vercel-ai.js +1 -1
- package/dist/server.js +1 -1
- package/dist/src/utils/request-tokens.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ai/anthropic.js
CHANGED
|
@@ -4009,7 +4009,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
4009
4009
|
try {
|
|
4010
4010
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
4011
4011
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
4012
|
-
const headersList = nextHeaders.headers();
|
|
4012
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
4013
4013
|
tokensString = headersList.get("x-integrate-tokens");
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch {}
|
package/dist/ai/cloudflare.js
CHANGED
|
@@ -4009,7 +4009,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
4009
4009
|
try {
|
|
4010
4010
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
4011
4011
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
4012
|
-
const headersList = nextHeaders.headers();
|
|
4012
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
4013
4013
|
tokensString = headersList.get("x-integrate-tokens");
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch {}
|
package/dist/ai/google.js
CHANGED
|
@@ -4009,7 +4009,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
4009
4009
|
try {
|
|
4010
4010
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
4011
4011
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
4012
|
-
const headersList = nextHeaders.headers();
|
|
4012
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
4013
4013
|
tokensString = headersList.get("x-integrate-tokens");
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch {}
|
package/dist/ai/index.js
CHANGED
|
@@ -4009,7 +4009,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
4009
4009
|
try {
|
|
4010
4010
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
4011
4011
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
4012
|
-
const headersList = nextHeaders.headers();
|
|
4012
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
4013
4013
|
tokensString = headersList.get("x-integrate-tokens");
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch {}
|
package/dist/ai/langchain.js
CHANGED
|
@@ -4009,7 +4009,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
4009
4009
|
try {
|
|
4010
4010
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
4011
4011
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
4012
|
-
const headersList = nextHeaders.headers();
|
|
4012
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
4013
4013
|
tokensString = headersList.get("x-integrate-tokens");
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch {}
|
package/dist/ai/llamaindex.js
CHANGED
|
@@ -4009,7 +4009,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
4009
4009
|
try {
|
|
4010
4010
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
4011
4011
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
4012
|
-
const headersList = nextHeaders.headers();
|
|
4012
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
4013
4013
|
tokensString = headersList.get("x-integrate-tokens");
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch {}
|
package/dist/ai/mastra.js
CHANGED
|
@@ -4009,7 +4009,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
4009
4009
|
try {
|
|
4010
4010
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
4011
4011
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
4012
|
-
const headersList = nextHeaders.headers();
|
|
4012
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
4013
4013
|
tokensString = headersList.get("x-integrate-tokens");
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch {}
|
package/dist/ai/openai-agents.js
CHANGED
|
@@ -4009,7 +4009,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
4009
4009
|
try {
|
|
4010
4010
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
4011
4011
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
4012
|
-
const headersList = nextHeaders.headers();
|
|
4012
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
4013
4013
|
tokensString = headersList.get("x-integrate-tokens");
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch {}
|
package/dist/ai/openai.js
CHANGED
|
@@ -4009,7 +4009,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
4009
4009
|
try {
|
|
4010
4010
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
4011
4011
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
4012
|
-
const headersList = nextHeaders.headers();
|
|
4012
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
4013
4013
|
tokensString = headersList.get("x-integrate-tokens");
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch {}
|
package/dist/ai/utils.js
CHANGED
|
@@ -4009,7 +4009,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
4009
4009
|
try {
|
|
4010
4010
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
4011
4011
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
4012
|
-
const headersList = nextHeaders.headers();
|
|
4012
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
4013
4013
|
tokensString = headersList.get("x-integrate-tokens");
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch {}
|
package/dist/ai/vercel-ai.js
CHANGED
|
@@ -4009,7 +4009,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
4009
4009
|
try {
|
|
4010
4010
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
4011
4011
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
4012
|
-
const headersList = nextHeaders.headers();
|
|
4012
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
4013
4013
|
tokensString = headersList.get("x-integrate-tokens");
|
|
4014
4014
|
}
|
|
4015
4015
|
} catch {}
|
package/dist/server.js
CHANGED
|
@@ -6267,7 +6267,7 @@ async function getProviderTokens(manualTokens) {
|
|
|
6267
6267
|
try {
|
|
6268
6268
|
const nextHeaders = await import("next/headers").catch(() => null);
|
|
6269
6269
|
if (nextHeaders && typeof nextHeaders.headers === "function") {
|
|
6270
|
-
const headersList = nextHeaders.headers();
|
|
6270
|
+
const headersList = await Promise.resolve(nextHeaders.headers());
|
|
6271
6271
|
tokensString = headersList.get("x-integrate-tokens");
|
|
6272
6272
|
}
|
|
6273
6273
|
} catch {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-tokens.d.ts","sourceRoot":"","sources":["../../../src/utils/request-tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,wBAAsB,iBAAiB,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"request-tokens.d.ts","sourceRoot":"","sources":["../../../src/utils/request-tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,wBAAsB,iBAAiB,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAyE9G;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,oBAAoB,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,CAMxH"}
|