@theokit/sdk 4.39.0 → 4.39.1
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/CHANGELOG.md +48 -0
- package/dist/{agent-KKZYLY5D.js → agent-6ULDAQT7.js} +5 -5
- package/dist/{agent-KKZYLY5D.js.map → agent-6ULDAQT7.js.map} +1 -1
- package/dist/{agent-I3EZZR6S.cjs → agent-PVUKI3BB.cjs} +6 -6
- package/dist/{agent-I3EZZR6S.cjs.map → agent-PVUKI3BB.cjs.map} +1 -1
- package/dist/{chunk-E2FFG33C.js → chunk-7YSRCQDE.js} +3 -3
- package/dist/{chunk-E2FFG33C.js.map → chunk-7YSRCQDE.js.map} +1 -1
- package/dist/{chunk-INSFS5GT.cjs → chunk-CAFV7WPQ.cjs} +43 -43
- package/dist/{chunk-INSFS5GT.cjs.map → chunk-CAFV7WPQ.cjs.map} +1 -1
- package/dist/{chunk-BPN5ONSW.cjs → chunk-DAXEQELR.cjs} +8 -4
- package/dist/chunk-DAXEQELR.cjs.map +1 -0
- package/dist/{chunk-FRUBE44B.cjs → chunk-FOZC5H7V.cjs} +5 -5
- package/dist/{chunk-FRUBE44B.cjs.map → chunk-FOZC5H7V.cjs.map} +1 -1
- package/dist/{chunk-KWUNN5J2.js → chunk-GTVJIGAH.js} +3 -3
- package/dist/{chunk-KWUNN5J2.js.map → chunk-GTVJIGAH.js.map} +1 -1
- package/dist/{chunk-GIRD3RWH.js → chunk-H3BOKK42.js} +6 -6
- package/dist/{chunk-GIRD3RWH.js.map → chunk-H3BOKK42.js.map} +1 -1
- package/dist/{chunk-ZYB6B7QJ.js → chunk-HSPVMV6T.js} +6 -2
- package/dist/chunk-HSPVMV6T.js.map +1 -0
- package/dist/{chunk-DCXRHCZJ.cjs → chunk-VWI3CDEW.cjs} +3 -3
- package/dist/{chunk-DCXRHCZJ.cjs.map → chunk-VWI3CDEW.cjs.map} +1 -1
- package/dist/{compact-session-PYEC3NZV.js → compact-session-GKA7GFVT.js} +3 -3
- package/dist/{compact-session-PYEC3NZV.js.map → compact-session-GKA7GFVT.js.map} +1 -1
- package/dist/{compact-session-VVT6IBJG.cjs → compact-session-XMP6OGY3.cjs} +11 -11
- package/dist/{compact-session-VVT6IBJG.cjs.map → compact-session-XMP6OGY3.cjs.map} +1 -1
- package/dist/cron.cjs +5 -5
- package/dist/cron.js +4 -4
- package/dist/eval.cjs +4 -4
- package/dist/eval.js +3 -3
- package/dist/index.cjs +27 -27
- package/dist/index.js +6 -6
- package/dist/{inject-session-GQMTDZUN.js → inject-session-7P4CZGDT.js} +3 -3
- package/dist/{inject-session-GQMTDZUN.js.map → inject-session-7P4CZGDT.js.map} +1 -1
- package/dist/{inject-session-LFCYVSLJ.cjs → inject-session-CC4KBYF6.cjs} +4 -4
- package/dist/{inject-session-LFCYVSLJ.cjs.map → inject-session-CC4KBYF6.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-BPN5ONSW.cjs.map +0 -1
- package/dist/chunk-ZYB6B7QJ.js.map +0 -1
|
@@ -739,7 +739,7 @@ async function resolveBedrockToken(region) {
|
|
|
739
739
|
return cachedToken.value;
|
|
740
740
|
}
|
|
741
741
|
try {
|
|
742
|
-
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
742
|
+
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-DAXEQELR.cjs', document.baseURI).href)));
|
|
743
743
|
const gen = r("@aws/bedrock-token-generator");
|
|
744
744
|
if (typeof gen.getToken !== "function") return void 0;
|
|
745
745
|
const providers = r("@aws-sdk/credential-providers");
|
|
@@ -2299,6 +2299,10 @@ var RetryingLlmClient = class {
|
|
|
2299
2299
|
...hint !== void 0 ? { retryAfterMs: hint } : {},
|
|
2300
2300
|
...this.#rng !== void 0 ? { rng: this.#rng } : {}
|
|
2301
2301
|
});
|
|
2302
|
+
const cause = err instanceof Error ? err.name : typeof err;
|
|
2303
|
+
chunkBCQ3E2ZG_cjs.diag(
|
|
2304
|
+
`retry ${attempt + 1}/${MAX_ATTEMPTS} em ${String(ms)}ms \u2014 ${cause}` + (hint !== void 0 ? ` (Retry-After: ${String(hint)}ms)` : "")
|
|
2305
|
+
);
|
|
2302
2306
|
await chunkECW2MLEW_cjs.sleepWithAbort(ms, signal);
|
|
2303
2307
|
}
|
|
2304
2308
|
async *stream(request, signal) {
|
|
@@ -2399,7 +2403,7 @@ async function resolveVertexAccessToken() {
|
|
|
2399
2403
|
async function getAuthClientOrThrow() {
|
|
2400
2404
|
let mod;
|
|
2401
2405
|
try {
|
|
2402
|
-
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
2406
|
+
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-DAXEQELR.cjs', document.baseURI).href)));
|
|
2403
2407
|
mod = r("google-auth-library");
|
|
2404
2408
|
} catch (err) {
|
|
2405
2409
|
const isModuleMissing = err instanceof Error && (err.message.includes("Cannot find module") || err.code === "MODULE_NOT_FOUND");
|
|
@@ -3063,5 +3067,5 @@ exports.shouldAutoCompact = shouldAutoCompact;
|
|
|
3063
3067
|
exports.shouldUseFixtureMode = shouldUseFixtureMode;
|
|
3064
3068
|
exports.shouldUseRealLocalRuntime = shouldUseRealLocalRuntime;
|
|
3065
3069
|
exports.tryFirstEvent = tryFirstEvent;
|
|
3066
|
-
//# sourceMappingURL=chunk-
|
|
3067
|
-
//# sourceMappingURL=chunk-
|
|
3070
|
+
//# sourceMappingURL=chunk-DAXEQELR.cjs.map
|
|
3071
|
+
//# sourceMappingURL=chunk-DAXEQELR.cjs.map
|