theokit 0.60.0 → 0.62.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/dist/{actions-virtual-module-UE5H42GP.js → actions-virtual-module-LXENSB3L.js} +3 -3
- package/dist/{actions-virtual-module-DNOALUTX.js → actions-virtual-module-PBYOQTLB.js} +6 -6
- package/dist/adapters/agent-mount.d.ts +11 -3
- package/dist/adapters/agent-mount.js +3 -3
- package/dist/{agent-VWPSEDXD.js → agent-YNHEKPD6.js} +3 -3
- package/dist/{app-typed-client-MKTSLES3.js → app-typed-client-VZN2ISQX.js} +6 -6
- package/dist/{app-typed-client-4KLNKET6.js → app-typed-client-Z5AKRLSU.js} +3 -3
- package/dist/{build-RG54DH3F.js → build-TFH2T26B.js} +4 -4
- package/dist/{bun-MAAG4MKW.js → bun-DJ6QEFIP.js} +2 -2
- package/dist/{chunk-KQ27YDLG.js → chunk-4BQIJ4HE.js} +3 -3
- package/dist/{chunk-IZTOGKLS.js → chunk-4LQKAWZJ.js} +3 -3
- package/dist/{chunk-JW5UFKQ3.js → chunk-5AGNZXHJ.js} +2 -2
- package/dist/{chunk-XES7ZE2K.js → chunk-BAXPERIV.js} +3 -3
- package/dist/{chunk-DMODPX7P.js → chunk-CY5WKIM5.js} +17 -5
- package/dist/{chunk-DMODPX7P.js.map → chunk-CY5WKIM5.js.map} +1 -1
- package/dist/{chunk-YN4W7LCX.js → chunk-ENRT6DAU.js} +6 -1
- package/dist/chunk-ENRT6DAU.js.map +1 -0
- package/dist/{chunk-45XETXSG.js → chunk-JI365DWM.js} +32 -2
- package/dist/chunk-JI365DWM.js.map +1 -0
- package/dist/{chunk-KZ3PXNPT.js → chunk-MIPHNT4J.js} +3 -3
- package/dist/chunk-MIPHNT4J.js.map +1 -0
- package/dist/{chunk-M2WC5MF7.js → chunk-O55RLSGG.js} +2 -2
- package/dist/chunk-O55RLSGG.js.map +1 -0
- package/dist/{chunk-ETKLM6UN.js → chunk-PGYYVOM3.js} +11 -11
- package/dist/chunk-PGYYVOM3.js.map +1 -0
- package/dist/{chunk-WOANPZBT.js → chunk-Q3UE7WIM.js} +2 -2
- package/dist/{chunk-K3DUUEQ5.js → chunk-UK2WVX5G.js} +13 -13
- package/dist/chunk-UK2WVX5G.js.map +1 -0
- package/dist/{chunk-GZ5YHD5H.js → chunk-UZFOWYAQ.js} +21 -4
- package/dist/chunk-UZFOWYAQ.js.map +1 -0
- package/dist/{chunk-WFIAYPBH.js → chunk-YVHQ35RT.js} +32 -2
- package/dist/chunk-YVHQ35RT.js.map +1 -0
- package/dist/cli/index.js +6 -6
- package/dist/{cloudflare-F5DNYH4B.js → cloudflare-UYKOO6EP.js} +2 -2
- package/dist/{deno-deploy-47E7GIME.js → deno-deploy-W2JWCYPT.js} +2 -2
- package/dist/{dev-5ETOFKOP.js → dev-FUQFN7PQ.js} +5 -5
- package/dist/{index-ADEV6pen.d.ts → index-BXGSBlxf.d.ts} +1 -1
- package/dist/index.js +6 -6
- package/dist/{internal-api-3YDGG5FF.js → internal-api-D4LIZ3S6.js} +6 -6
- package/dist/{internal-api-UM77XDXN.js → internal-api-HXKRFUXR.js} +3 -3
- package/dist/{mcp-B42ISIJG.js → mcp-7MSZDEKX.js} +3 -3
- package/dist/{preview-XP77EPTL.js → preview-CCL7SKCG.js} +3 -3
- package/dist/{provider-resolver-1aWi_WSz.d.ts → provider-resolver-Cc9C3-Rb.d.ts} +8 -0
- package/dist/{registry-APCN3PSJ.js → registry-PAJOMMVV.js} +4 -4
- package/dist/{route-config-Cm_ZMA1C.d.ts → route-config-B7FaTSby.d.ts} +1 -1
- package/dist/{route-policy-BxOycCDq.d.ts → route-policy-BHXQDzBF.d.ts} +20 -1
- package/dist/server/agent/index.d.ts +1 -1
- package/dist/server/agent/index.js +1 -1
- package/dist/server/define/index.d.ts +5 -4
- package/dist/server/define/index.js +1 -1
- package/dist/server/http/index.d.ts +3 -3
- package/dist/server/http/index.js +3 -3
- package/dist/server/index.d.ts +5 -5
- package/dist/server/index.js +4 -4
- package/dist/{server-boundary-X52AMCKI.js → server-boundary-6PGQB5XT.js} +3 -3
- package/dist/{server-boundary-JG53VI6L.js → server-boundary-QHWMBDKT.js} +6 -6
- package/dist/{start-3FYIYTM7.js → start-K4O5J7JA.js} +7 -7
- package/dist/{start-3FYIYTM7.js.map → start-K4O5J7JA.js.map} +1 -1
- package/dist/vite-plugin/index.js +6 -6
- package/dist/{vite-plugin-BG5K3L46.js → vite-plugin-675YOCHV.js} +5 -5
- package/package.json +2 -2
- package/dist/chunk-45XETXSG.js.map +0 -1
- package/dist/chunk-ETKLM6UN.js.map +0 -1
- package/dist/chunk-GZ5YHD5H.js.map +0 -1
- package/dist/chunk-K3DUUEQ5.js.map +0 -1
- package/dist/chunk-KZ3PXNPT.js.map +0 -1
- package/dist/chunk-M2WC5MF7.js.map +0 -1
- package/dist/chunk-WFIAYPBH.js.map +0 -1
- package/dist/chunk-YN4W7LCX.js.map +0 -1
- /package/dist/{actions-virtual-module-UE5H42GP.js.map → actions-virtual-module-LXENSB3L.js.map} +0 -0
- /package/dist/{actions-virtual-module-DNOALUTX.js.map → actions-virtual-module-PBYOQTLB.js.map} +0 -0
- /package/dist/{agent-VWPSEDXD.js.map → agent-YNHEKPD6.js.map} +0 -0
- /package/dist/{app-typed-client-MKTSLES3.js.map → app-typed-client-VZN2ISQX.js.map} +0 -0
- /package/dist/{app-typed-client-4KLNKET6.js.map → app-typed-client-Z5AKRLSU.js.map} +0 -0
- /package/dist/{build-RG54DH3F.js.map → build-TFH2T26B.js.map} +0 -0
- /package/dist/{bun-MAAG4MKW.js.map → bun-DJ6QEFIP.js.map} +0 -0
- /package/dist/{chunk-KQ27YDLG.js.map → chunk-4BQIJ4HE.js.map} +0 -0
- /package/dist/{chunk-IZTOGKLS.js.map → chunk-4LQKAWZJ.js.map} +0 -0
- /package/dist/{chunk-JW5UFKQ3.js.map → chunk-5AGNZXHJ.js.map} +0 -0
- /package/dist/{chunk-XES7ZE2K.js.map → chunk-BAXPERIV.js.map} +0 -0
- /package/dist/{chunk-WOANPZBT.js.map → chunk-Q3UE7WIM.js.map} +0 -0
- /package/dist/{cloudflare-F5DNYH4B.js.map → cloudflare-UYKOO6EP.js.map} +0 -0
- /package/dist/{deno-deploy-47E7GIME.js.map → deno-deploy-W2JWCYPT.js.map} +0 -0
- /package/dist/{dev-5ETOFKOP.js.map → dev-FUQFN7PQ.js.map} +0 -0
- /package/dist/{internal-api-3YDGG5FF.js.map → internal-api-D4LIZ3S6.js.map} +0 -0
- /package/dist/{internal-api-UM77XDXN.js.map → internal-api-HXKRFUXR.js.map} +0 -0
- /package/dist/{mcp-B42ISIJG.js.map → mcp-7MSZDEKX.js.map} +0 -0
- /package/dist/{preview-XP77EPTL.js.map → preview-CCL7SKCG.js.map} +0 -0
- /package/dist/{registry-APCN3PSJ.js.map → registry-PAJOMMVV.js.map} +0 -0
- /package/dist/{server-boundary-X52AMCKI.js.map → server-boundary-6PGQB5XT.js.map} +0 -0
- /package/dist/{server-boundary-JG53VI6L.js.map → server-boundary-QHWMBDKT.js.map} +0 -0
- /package/dist/{vite-plugin-BG5K3L46.js.map → vite-plugin-675YOCHV.js.map} +0 -0
package/dist/server/index.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { R as RouteConfig } from '../route-config-
|
|
1
|
+
import { R as RouteConfig } from '../route-config-B7FaTSby.js';
|
|
2
2
|
export { ActionAccept, ActionBuilder, ActionConfig, ChannelHandler, MiddlewareBuilder, MiddlewareHandler, PluginBuilder, RouteBuilder, ToolBuilder, WebChannelHandler, WebSocketBuilder, action, defineChannel, defineWebChannel, middleware, plugin, route, tool, uiMessageStreamResponse, websocket } from './define/index.js';
|
|
3
3
|
export { W as WebSocketHandler, a as WebSocketHandlerWeb, b as WebSocketLike } from '../define-websocket-DzPn1sR6.js';
|
|
4
4
|
export { C as CustomTool, D as DefineAgentToolSpec, T as ToolContextMessage, a as ToolHandlerContext, b as ToolTransform, c as applyTransform } from '../define-agent-tool-aYYLpMeo.js';
|
|
5
|
-
export { A as AccessDecision, R as RoutePolicy, b as RoutePolicyInput, a as RouteSubject, e as evaluateRoutePolicy, r as requireOwner, s as subjectFromContext } from '../route-policy-
|
|
5
|
+
export { A as AccessDecision, R as RoutePolicy, b as RoutePolicyInput, a as RouteSubject, e as evaluateRoutePolicy, r as requireOwner, s as subjectFromContext } from '../route-policy-BHXQDzBF.js';
|
|
6
|
+
export { b as HookName, H as HookResult, O as OnErrorHook, c as OnRequestHook, d as OnResponseHook, P as PluginContext, e as PluginErrorContext, f as PreHandlerHook, R as RunHookOptions, a as TheoApp, T as TheoPlugin } from '../plugin-types-BUVfUQ0V.js';
|
|
6
7
|
export { H as HEALTH_PATH, a as HealthRouteConfig, b as READY_PATH, c as ReadyRouteConfig, d as ReservedResponse, R as ReservedRoutes, e as defineHealthRoute, f as defineReadyRoute, s as serveReservedRoute } from '../health-route-C0hk64_U.js';
|
|
7
|
-
export { B as BATCH_PATH, a as BatchExecuteFn, b as BatchPathConflictError, c as BatchPayload, d as BatchRequestItem, e as BatchResponse, f as BatchResultItem, g as BodyParserOptions, C as CookieOptions, h as CorsConfig, i as CorsHandler, j as CorsOrigin, k as CorsWebHandler, l as CustomErrorPages, E as ExecuteActionOptions, m as ExecuteRouteContext, F as FileTooLargeError, H as HandleBatchOptions, M as MAX_ERROR_HTML_BYTES, n as MiddlewareResult, N as NotFoundError, O as OpenApiDocsOptions, P as ParsedBody, o as ProcedureInput, p as ProcedureInputError, q as ProcedureOutputError, R as RawRouteInput, r as RouteInputChannel, s as RouteInputSchemas, t as RouteInputValidation, S as STRIPPED_HEADERS, u as SendErrorInput, v as SendErrorOptions, T as TRACE_HEADER, w as TRACE_PARENT_HEADER, x as TheoError, y as TheoTransformer, U as UploadedFile, W as W3CTraceContext, _ as _resetMiddlewareCacheForTests, z as appendCookieToHeaders, A as appendDeleteCookieToHeaders, D as callProcedure, G as createCorsHandler, I as createCorsWebHandler, J as createOpenApiHandler, K as createServerContext, L as deleteCookie, Q as envelopeCodeToStatus, V as executeAction, X as executeRoute, Y as executeWebRequest, Z as extractTraceId, $ as extractTraceIdFromRequest, a0 as extractW3CTraceContext, a1 as fromUnknown, a2 as getCookie, a3 as getCookieFromRequest, a4 as handleBatchRequest, a5 as handleRequestError, a6 as handleWebRequestError, a7 as jsonTransformer, a8 as loadCustomErrorPages, a9 as matchesOrigin, aa as parseCookieHeader, ab as parseRequestBody, ac as parseTraceparent, ad as parseTraceparentContext, ae as resolveTransformer, af as runMiddlewareAndContext, ag as sendError, ah as sendJson, ai as serializeCookie, aj as serveStaticFile, ak as serverErrorToEnvelope, al as setCookie, am as superjsonTransformer, an as validateRouteInput } from '../index-
|
|
8
|
+
export { B as BATCH_PATH, a as BatchExecuteFn, b as BatchPathConflictError, c as BatchPayload, d as BatchRequestItem, e as BatchResponse, f as BatchResultItem, g as BodyParserOptions, C as CookieOptions, h as CorsConfig, i as CorsHandler, j as CorsOrigin, k as CorsWebHandler, l as CustomErrorPages, E as ExecuteActionOptions, m as ExecuteRouteContext, F as FileTooLargeError, H as HandleBatchOptions, M as MAX_ERROR_HTML_BYTES, n as MiddlewareResult, N as NotFoundError, O as OpenApiDocsOptions, P as ParsedBody, o as ProcedureInput, p as ProcedureInputError, q as ProcedureOutputError, R as RawRouteInput, r as RouteInputChannel, s as RouteInputSchemas, t as RouteInputValidation, S as STRIPPED_HEADERS, u as SendErrorInput, v as SendErrorOptions, T as TRACE_HEADER, w as TRACE_PARENT_HEADER, x as TheoError, y as TheoTransformer, U as UploadedFile, W as W3CTraceContext, _ as _resetMiddlewareCacheForTests, z as appendCookieToHeaders, A as appendDeleteCookieToHeaders, D as callProcedure, G as createCorsHandler, I as createCorsWebHandler, J as createOpenApiHandler, K as createServerContext, L as deleteCookie, Q as envelopeCodeToStatus, V as executeAction, X as executeRoute, Y as executeWebRequest, Z as extractTraceId, $ as extractTraceIdFromRequest, a0 as extractW3CTraceContext, a1 as fromUnknown, a2 as getCookie, a3 as getCookieFromRequest, a4 as handleBatchRequest, a5 as handleRequestError, a6 as handleWebRequestError, a7 as jsonTransformer, a8 as loadCustomErrorPages, a9 as matchesOrigin, aa as parseCookieHeader, ab as parseRequestBody, ac as parseTraceparent, ad as parseTraceparentContext, ae as resolveTransformer, af as runMiddlewareAndContext, ag as sendError, ah as sendJson, ai as serializeCookie, aj as serveStaticFile, ak as serverErrorToEnvelope, al as setCookie, am as superjsonTransformer, an as validateRouteInput } from '../index-BXGSBlxf.js';
|
|
8
9
|
export { A as ActionError, a as ActionErrorCode, b as ActionInputError, e as ActionManifestEntry, c as ActionResult, S as SerializedActionResult, U as UniversalZodIssue, f as extractUniversalIssues, i as isActionError, d as isInputError } from '../action-protocol-tGm3NKRg.js';
|
|
9
10
|
export { ACTION_SCHEMAS_DIR, ActionNode, ActionScanError, LoadedManifest, ManifestAction, ManifestAgent, ManifestRoute, ManifestWebSocket, TheoManifest, WebSocketRouteNode, _resetRouteScanCacheForTests, compareRouteSpecificity, generateManifest, loadManifest, scanMiddlewares, scanServerActions, scanServerActionsEnriched, scanServerRoutes, scanWebSocketRoutes, writeManifest } from './scan/index.js';
|
|
10
11
|
export { L as LoadModule, S as ServerRouteNode, c as compilePattern, a as createProductionLoader, b as createViteLoader, m as matchRoute } from '../match-Dw4CNXJH.js';
|
|
11
12
|
export { AcpToolConfig, AppResource, AppResourceInput, ChannelMessage, ChannelWebhookConfig, CodeModeApi, CodeModeConfig, CodeModePermission, CodeModePermissionDeniedError, McpResourceContents, McpResourceDescriptor, NodeAcpTransport, Sandbox, StdioStreams, VendorAgentClient, VendorAgentToolConfig, WorkflowLike, WorkflowToolConfig, buildResourceDescriptors, createACPTool, createCodeMode, createVendorAgentTool, createWorkflowTool, defineAppResource, extractAppResources, handleChannelWebhook, handleMcpStdioLine, isChannelPath, parseChannelPath, readAppResource, serveMcpStdio } from './agent/index.js';
|
|
12
13
|
export { InProcessApprovalRequest, InProcessApprovalRequiredError, InProcessAwaitApproval, StreamAgentTurnDeps, StreamAgentTurnInProcessInput, streamAgentTurnInProcess } from '@theokit/agents';
|
|
13
|
-
export { P as ProviderDescriptor, R as ResolvedProvider, l as listProviders, a as registerProvider, b as resetProviderRegistry, r as resolveProvider, t as tryResolveProvider } from '../provider-resolver-
|
|
14
|
+
export { P as ProviderDescriptor, R as ResolvedProvider, l as listProviders, a as registerProvider, b as resetProviderRegistry, r as resolveProvider, t as tryResolveProvider } from '../provider-resolver-Cc9C3-Rb.js';
|
|
14
15
|
export { AuthRequiredError, BackupCode, BackupCodeOptions, OidcMetadata, PkceChallenge, SessionConfig, SessionManager, SessionManagerWeb, SessionMeta, ThrottleOptions, ThrottleState, TotpAlgorithm, TotpOptions, TotpUriOptions, VerifyTotpOptions, _resetKeyCacheForTests, assertProductionSecret, checkThrottle, clearOidcCache, createSessionManager, createSessionManagerWeb, decrypt, discoverOidcProvider, encrypt, generateBackupCodes, generateOAuthState, generatePkceChallenge, generateTotp, generateTotpSecret, pkceChallengeFromVerifier, recordAttempt, requireAuth, rotateIfNeeded, rotateIfNeededWeb, totpUri, verifyBackupCode, verifyOAuthState, verifyTotp } from './auth/index.js';
|
|
15
16
|
export { g as generateNonce } from '../nonce-BXt7Qu_C.js';
|
|
16
17
|
export { InMemoryUsageStorage, ToolHookEvent, TrackAgentRunInput, TrackAgentRunOptions, TrackAgentToolsHooks, TrackAgentToolsOptions, trackAgentRun, trackAgentTools } from './cost/index.js';
|
|
@@ -36,7 +37,6 @@ export { G as GenericFactory, b as PoolLike, P as PostgresDatabaseConfig, d as R
|
|
|
36
37
|
export { BodyTooLargeError, DEFAULT_MAX_BODY_BYTES, DiscordWebhookOptions, GitHubWebhookOptions, RawBodyResult, ReadRawBodyOptions, SlackWebhookOptions, StripeWebhookOptions, TelegramWebhookOptions, defineWebhook, discord, dispatchWebhook, github, readRawBody, slack, stripe, telegram, timingSafeEqual } from './webhook/index.js';
|
|
37
38
|
export { D as DefineWebhookOptions, S as SubscribeFn, a as SubscribeResult, V as VerifyFn, b as VerifyResult, W as WebhookContext, c as WebhookDefinition, d as WhatsAppSubscribeOptions, e as WhatsAppWebhookOptions, w as whatsapp, f as whatsappSubscribe } from '../whatsapp-D_Fnl1LX.js';
|
|
38
39
|
import { z } from 'zod';
|
|
39
|
-
export { b as HookName, H as HookResult, O as OnErrorHook, c as OnRequestHook, d as OnResponseHook, P as PluginContext, e as PluginErrorContext, f as PreHandlerHook, R as RunHookOptions, a as TheoApp, T as TheoPlugin } from '../plugin-types-BUVfUQ0V.js';
|
|
40
40
|
export { ComposeInstructionsOptions, ComposedInstructions, ConfigLayer, ContextPressure, ContextPressureThresholdError, ContextPressureThresholds, CustomCommand, CustomCommandsResult, DEFAULT_CONTEXT_PRESSURE_THRESHOLDS, InstructionBlock, InstructionSource, InstructionTree, InstructionTreeBudget, LayerOutOfOrderError, LayeredConfig, LayeredConfigInput, LayeredConfigResult, LoadCustomCommandsInput, LoadInstructionTreeInput, ParsedFrontmatter, PrecedenceReport, ProvenancePerKey, TrustRecord, TrustStore, TrustStorePermissionsError, composeInstructions, contextPressure, effectiveContextWindow, frontmatterValue, loadCustomCommands, loadInstructionTree, splitFrontmatter } from '@theokit/agents/config';
|
|
41
41
|
export { a as ServiceDefinition, S as ServicesConfig, b as ServicesConfigInput, c as ServicesConfigOutput } from '../schema-BdakLtuC.js';
|
|
42
42
|
export { C as CspMode, D as DEFAULT_CSP, a as DEFAULT_PERMISSIONS_POLICY, c as SecurityEnv, S as SecurityHeadersConfig, d as SecurityHeadersOptions, b as buildSecurityHeaders } from '../security-headers-C2cByfJn.js';
|
package/dist/server/index.js
CHANGED
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
createOpenApiHandler,
|
|
44
44
|
loadCustomErrorPages,
|
|
45
45
|
serveStaticFile
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-4BQIJ4HE.js";
|
|
47
47
|
import {
|
|
48
48
|
DuplicateJobNameError,
|
|
49
49
|
InMemoryJobBackend,
|
|
@@ -117,7 +117,7 @@ import {
|
|
|
117
117
|
sendError,
|
|
118
118
|
sendJson,
|
|
119
119
|
validateRouteInput
|
|
120
|
-
} from "../chunk-
|
|
120
|
+
} from "../chunk-5AGNZXHJ.js";
|
|
121
121
|
import {
|
|
122
122
|
CSRF_WARN_CODE,
|
|
123
123
|
CSRF_WARN_DOCS_URL,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
evaluateRoutePolicy,
|
|
139
139
|
requireOwner,
|
|
140
140
|
subjectFromContext
|
|
141
|
-
} from "../chunk-
|
|
141
|
+
} from "../chunk-ENRT6DAU.js";
|
|
142
142
|
import {
|
|
143
143
|
DuplicateContextKeyError,
|
|
144
144
|
createOutbox,
|
|
@@ -262,7 +262,7 @@ import {
|
|
|
262
262
|
resetProviderRegistry,
|
|
263
263
|
resolveProvider,
|
|
264
264
|
tryResolveProvider
|
|
265
|
-
} from "../chunk-
|
|
265
|
+
} from "../chunk-JI365DWM.js";
|
|
266
266
|
import {
|
|
267
267
|
AuthRequiredError,
|
|
268
268
|
_resetKeyCacheForTests,
|
|
@@ -3,8 +3,8 @@ import "tsx/esm";
|
|
|
3
3
|
import {
|
|
4
4
|
resolveTheoRootDir
|
|
5
5
|
} from "./chunk-FDOOBTXJ.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-UZFOWYAQ.js";
|
|
7
|
+
import "./chunk-YVHQ35RT.js";
|
|
8
8
|
import "./chunk-L4TB6FXQ.js";
|
|
9
9
|
import "./chunk-VV2VU3LJ.js";
|
|
10
10
|
import "./chunk-5VLP3GQ2.js";
|
|
@@ -131,4 +131,4 @@ export {
|
|
|
131
131
|
ServerOnlyImportError,
|
|
132
132
|
serverOnlyImportBoundary
|
|
133
133
|
};
|
|
134
|
-
//# sourceMappingURL=server-boundary-
|
|
134
|
+
//# sourceMappingURL=server-boundary-6PGQB5XT.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveTheoRootDir
|
|
3
3
|
} from "./chunk-7NRFZBAL.js";
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
import "./chunk-Q3UE7WIM.js";
|
|
5
|
+
import "./chunk-CY5WKIM5.js";
|
|
6
6
|
import "./chunk-EYRWD2AB.js";
|
|
7
7
|
import "./chunk-5GZROLDV.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-5AGNZXHJ.js";
|
|
9
9
|
import "./chunk-P6OS7652.js";
|
|
10
10
|
import "./chunk-ZDUO4IYN.js";
|
|
11
11
|
import "./chunk-D4VP2QPR.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-ENRT6DAU.js";
|
|
13
13
|
import "./chunk-47FFT43U.js";
|
|
14
14
|
import "./chunk-NTDN54XO.js";
|
|
15
15
|
import "./chunk-PVNMLZ5G.js";
|
|
@@ -27,7 +27,7 @@ import "./chunk-DV34VG3N.js";
|
|
|
27
27
|
import "./chunk-V6Y2SMRG.js";
|
|
28
28
|
import "./chunk-ACKBVBUI.js";
|
|
29
29
|
import "./chunk-IZ3TIL6K.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-JI365DWM.js";
|
|
31
31
|
import "./chunk-YSJOZEI6.js";
|
|
32
32
|
import "./chunk-Z4PJMZLM.js";
|
|
33
33
|
import "./chunk-UMNXCU3K.js";
|
|
@@ -147,4 +147,4 @@ export {
|
|
|
147
147
|
ServerOnlyImportError,
|
|
148
148
|
serverOnlyImportBoundary
|
|
149
149
|
};
|
|
150
|
-
//# sourceMappingURL=server-boundary-
|
|
150
|
+
//# sourceMappingURL=server-boundary-QHWMBDKT.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "tsx/esm";
|
|
3
3
|
import {
|
|
4
4
|
CONTROLLER_MANIFEST_FILE
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MIPHNT4J.js";
|
|
6
6
|
import {
|
|
7
7
|
parseCookieHeader
|
|
8
8
|
} from "./chunk-V7MTRM6Q.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
resolveTransformer,
|
|
26
26
|
serveMatchedAuxRoute,
|
|
27
27
|
serveThroughPluginLifecycle
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BAXPERIV.js";
|
|
29
29
|
import "./chunk-2CVV6CNN.js";
|
|
30
30
|
import {
|
|
31
31
|
findRootDiv
|
|
@@ -41,11 +41,11 @@ import {
|
|
|
41
41
|
mountAgent,
|
|
42
42
|
readAgentPolicy,
|
|
43
43
|
writeWebResponseToServerResponse
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-UZFOWYAQ.js";
|
|
45
45
|
import {
|
|
46
46
|
getApprovalRegistry,
|
|
47
47
|
resolveProvider
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-YVHQ35RT.js";
|
|
49
49
|
import {
|
|
50
50
|
createWebRequestSource,
|
|
51
51
|
dispatchControllerRequest,
|
|
@@ -797,7 +797,7 @@ async function tryServeAgentAux(c) {
|
|
|
797
797
|
csrfMode: c.csrfMode,
|
|
798
798
|
// M39 — the thread follow-up route drives the agent; resolve the key on demand.
|
|
799
799
|
// theokit#328 — the thread route drives an agent, so its key follows the model too.
|
|
800
|
-
resolveApiKey: (model) => resolveProvider(model).apiKey,
|
|
800
|
+
resolveApiKey: (model, plugins) => resolveProvider(model, { plugins }).apiKey,
|
|
801
801
|
// usetheokit/theokit#365 — who is asking. Memoized and LAZY: built here, invoked only inside
|
|
802
802
|
// `serveMatchedAuxRoute` and only when the matched agent declares a policy, so the application's
|
|
803
803
|
// `createContext` never runs for a url this branch declines.
|
|
@@ -924,7 +924,7 @@ async function serveAgentTurn(c, agent, method) {
|
|
|
924
924
|
},
|
|
925
925
|
async (request) => {
|
|
926
926
|
const mod = await c.loadModule(agent.filePath);
|
|
927
|
-
const apiKey = (model) => resolveProvider(model).apiKey;
|
|
927
|
+
const apiKey = (model, plugins) => resolveProvider(model, { plugins }).apiKey;
|
|
928
928
|
const response = await mountAgent(mod, request, apiKey, {
|
|
929
929
|
source: agent.filePath,
|
|
930
930
|
csrfMode: c.csrfMode,
|
|
@@ -1396,4 +1396,4 @@ export {
|
|
|
1396
1396
|
resolveSsrEntry,
|
|
1397
1397
|
startCommand
|
|
1398
1398
|
};
|
|
1399
|
-
//# sourceMappingURL=start-
|
|
1399
|
+
//# sourceMappingURL=start-K4O5J7JA.js.map
|