@theokit/sdk 4.51.1 → 4.52.0
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 +26 -0
- package/dist/{agent-2KSLHB6B.cjs → agent-C66BEJGO.cjs} +7 -6
- package/dist/{agent-2KSLHB6B.cjs.map → agent-C66BEJGO.cjs.map} +1 -1
- package/dist/{agent-QWNWBCQZ.js → agent-HYQGJTIN.js} +6 -5
- package/dist/{agent-QWNWBCQZ.js.map → agent-HYQGJTIN.js.map} +1 -1
- package/dist/auth/index.cjs +5 -0
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.js +1 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/{chunk-2S7IB4O3.cjs → chunk-2CD5XUAG.cjs} +5 -5
- package/dist/{chunk-2S7IB4O3.cjs.map → chunk-2CD5XUAG.cjs.map} +1 -1
- package/dist/{chunk-BVT6LFQ3.js → chunk-DU7PBCAM.js} +3 -3
- package/dist/{chunk-BVT6LFQ3.js.map → chunk-DU7PBCAM.js.map} +1 -1
- package/dist/{chunk-XI4L45SS.cjs → chunk-LLK2RS6I.cjs} +43 -43
- package/dist/{chunk-XI4L45SS.cjs.map → chunk-LLK2RS6I.cjs.map} +1 -1
- package/dist/{chunk-DRRSUUI5.js → chunk-SPZZSAHV.js} +3 -3
- package/dist/{chunk-DRRSUUI5.js.map → chunk-SPZZSAHV.js.map} +1 -1
- package/dist/chunk-U3PAW4PL.js +22 -0
- package/dist/chunk-U3PAW4PL.js.map +1 -0
- package/dist/chunk-WVDH34LK.cjs +24 -0
- package/dist/chunk-WVDH34LK.cjs.map +1 -0
- package/dist/{chunk-3BKWFISQ.cjs → chunk-YARJG3GV.cjs} +3 -3
- package/dist/{chunk-3BKWFISQ.cjs.map → chunk-YARJG3GV.cjs.map} +1 -1
- package/dist/{chunk-QVIUICFM.js → chunk-YBB66SZZ.js} +6 -14
- package/dist/chunk-YBB66SZZ.js.map +1 -0
- package/dist/{chunk-6CSIUJ5W.js → chunk-ZFARZBOX.js} +6 -6
- package/dist/{chunk-6CSIUJ5W.js.map → chunk-ZFARZBOX.js.map} +1 -1
- package/dist/{chunk-N6NUMXAJ.cjs → chunk-ZNEYQ56O.cjs} +8 -16
- package/dist/chunk-ZNEYQ56O.cjs.map +1 -0
- package/dist/{compact-session-AAFICMPQ.cjs → compact-session-AXKDB6FC.cjs} +12 -11
- package/dist/{compact-session-AAFICMPQ.cjs.map → compact-session-AXKDB6FC.cjs.map} +1 -1
- package/dist/{compact-session-LR73ESZX.js → compact-session-DUAUEFRR.js} +4 -3
- package/dist/{compact-session-LR73ESZX.js.map → compact-session-DUAUEFRR.js.map} +1 -1
- package/dist/cron.cjs +6 -5
- package/dist/cron.js +5 -4
- package/dist/eval.cjs +5 -4
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +4 -3
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +28 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-6ZAFN7F7.js → inject-session-RBGOGACE.js} +3 -3
- package/dist/{inject-session-6ZAFN7F7.js.map → inject-session-RBGOGACE.js.map} +1 -1
- package/dist/{inject-session-KOGUD6KM.cjs → inject-session-TASLP5FA.cjs} +4 -4
- package/dist/{inject-session-KOGUD6KM.cjs.map → inject-session-TASLP5FA.cjs.map} +1 -1
- package/dist/internal/auth/api-key-prefix.d.ts +17 -0
- package/package.json +1 -1
- package/dist/chunk-N6NUMXAJ.cjs.map +0 -1
- package/dist/chunk-QVIUICFM.js.map +0 -1
|
@@ -4,6 +4,7 @@ var chunk4JBHSLQO_cjs = require('./chunk-4JBHSLQO.cjs');
|
|
|
4
4
|
var chunkRAACTJ7C_cjs = require('./chunk-RAACTJ7C.cjs');
|
|
5
5
|
var chunkE3OCRJU6_cjs = require('./chunk-E3OCRJU6.cjs');
|
|
6
6
|
var chunk6JSIEDKL_cjs = require('./chunk-6JSIEDKL.cjs');
|
|
7
|
+
var chunkWVDH34LK_cjs = require('./chunk-WVDH34LK.cjs');
|
|
7
8
|
var chunkECPL5RV6_cjs = require('./chunk-ECPL5RV6.cjs');
|
|
8
9
|
var chunkAMYY3JHQ_cjs = require('./chunk-AMYY3JHQ.cjs');
|
|
9
10
|
var chunkT6ZCG5AP_cjs = require('./chunk-T6ZCG5AP.cjs');
|
|
@@ -739,7 +740,7 @@ async function resolveBedrockToken(region) {
|
|
|
739
740
|
return cachedToken.value;
|
|
740
741
|
}
|
|
741
742
|
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-
|
|
743
|
+
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-ZNEYQ56O.cjs', document.baseURI).href)));
|
|
743
744
|
const gen = r("@aws/bedrock-token-generator");
|
|
744
745
|
if (typeof gen.getToken !== "function") return void 0;
|
|
745
746
|
const providers = r("@aws-sdk/credential-providers");
|
|
@@ -2403,7 +2404,7 @@ async function resolveVertexAccessToken() {
|
|
|
2403
2404
|
async function getAuthClientOrThrow() {
|
|
2404
2405
|
let mod;
|
|
2405
2406
|
try {
|
|
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-
|
|
2407
|
+
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-ZNEYQ56O.cjs', document.baseURI).href)));
|
|
2407
2408
|
mod = r("google-auth-library");
|
|
2408
2409
|
} catch (err) {
|
|
2409
2410
|
const isModuleMissing = err instanceof Error && (err.message.includes("Cannot find module") || err.code === "MODULE_NOT_FOUND");
|
|
@@ -2768,18 +2769,9 @@ function selectTransport(profile, apiKey) {
|
|
|
2768
2769
|
|
|
2769
2770
|
// src/internal/local-agent/real-local-run-provider.ts
|
|
2770
2771
|
function inferProviderFromApiKey(apiKey) {
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
{ provider: "anthropic", prefix: "sk-ant-" },
|
|
2775
|
-
{ provider: "openai", prefix: "sk-" }
|
|
2776
|
-
];
|
|
2777
|
-
for (const { provider, prefix } of byPrefix) {
|
|
2778
|
-
if (apiKey.startsWith(prefix) && chunkT6ZCG5AP_cjs.getProviderProfile(provider) !== void 0) {
|
|
2779
|
-
return provider;
|
|
2780
|
-
}
|
|
2781
|
-
}
|
|
2782
|
-
return void 0;
|
|
2772
|
+
const provider = chunkWVDH34LK_cjs.providerFromApiKeyPrefix(apiKey);
|
|
2773
|
+
if (provider === void 0) return void 0;
|
|
2774
|
+
return chunkT6ZCG5AP_cjs.getProviderProfile(provider) === void 0 ? void 0 : provider;
|
|
2783
2775
|
}
|
|
2784
2776
|
function detectPrimaryProvider() {
|
|
2785
2777
|
if (process.env.ANTHROPIC_API_KEY !== void 0 && process.env.ANTHROPIC_API_KEY.length > 0) {
|
|
@@ -3067,5 +3059,5 @@ exports.shouldAutoCompact = shouldAutoCompact;
|
|
|
3067
3059
|
exports.shouldUseFixtureMode = shouldUseFixtureMode;
|
|
3068
3060
|
exports.shouldUseRealLocalRuntime = shouldUseRealLocalRuntime;
|
|
3069
3061
|
exports.tryFirstEvent = tryFirstEvent;
|
|
3070
|
-
//# sourceMappingURL=chunk-
|
|
3071
|
-
//# sourceMappingURL=chunk-
|
|
3062
|
+
//# sourceMappingURL=chunk-ZNEYQ56O.cjs.map
|
|
3063
|
+
//# sourceMappingURL=chunk-ZNEYQ56O.cjs.map
|