theokit 0.61.0 → 0.62.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.
Files changed (72) hide show
  1. package/dist/{actions-virtual-module-345YHSEB.js → actions-virtual-module-AT6HNADR.js} +3 -3
  2. package/dist/{actions-virtual-module-XI5IGBF4.js → actions-virtual-module-XJ6J6T4C.js} +3 -3
  3. package/dist/adapters/agent-mount.d.ts +10 -2
  4. package/dist/adapters/agent-mount.js +2 -2
  5. package/dist/{agent-L45EZWPV.js → agent-G525PHCO.js} +3 -3
  6. package/dist/{app-typed-client-B7QIRDSP.js → app-typed-client-5B3IOU45.js} +3 -3
  7. package/dist/{app-typed-client-GVP4V4X3.js → app-typed-client-NTNYNJTW.js} +3 -3
  8. package/dist/{build-22OMF3NG.js → build-CZAM7K6J.js} +3 -3
  9. package/dist/{bun-MAAG4MKW.js → bun-DJ6QEFIP.js} +2 -2
  10. package/dist/{chunk-H2X5T45M.js → chunk-2BYN7WTW.js} +16 -4
  11. package/dist/{chunk-H2X5T45M.js.map → chunk-2BYN7WTW.js.map} +1 -1
  12. package/dist/{chunk-L2NSHQOY.js → chunk-DRLYKXDD.js} +3 -3
  13. package/dist/{chunk-6R6UR64X.js → chunk-DVJRDY3H.js} +11 -11
  14. package/dist/chunk-DVJRDY3H.js.map +1 -0
  15. package/dist/{chunk-ZXJAI4J7.js → chunk-EB5TYC2Y.js} +10 -10
  16. package/dist/chunk-EB5TYC2Y.js.map +1 -0
  17. package/dist/{chunk-YXEKPMDK.js → chunk-F2LYXOHK.js} +3 -3
  18. package/dist/{chunk-45XETXSG.js → chunk-ICXXHV4V.js} +33 -2
  19. package/dist/chunk-ICXXHV4V.js.map +1 -0
  20. package/dist/{chunk-M2WC5MF7.js → chunk-O55RLSGG.js} +2 -2
  21. package/dist/chunk-O55RLSGG.js.map +1 -0
  22. package/dist/{chunk-WFIAYPBH.js → chunk-UETVDZBE.js} +33 -2
  23. package/dist/chunk-UETVDZBE.js.map +1 -0
  24. package/dist/{chunk-KVZQJ3ZM.js → chunk-USN554EK.js} +16 -4
  25. package/dist/{chunk-KVZQJ3ZM.js.map → chunk-USN554EK.js.map} +1 -1
  26. package/dist/cli/index.js +6 -6
  27. package/dist/{cloudflare-F5DNYH4B.js → cloudflare-UYKOO6EP.js} +2 -2
  28. package/dist/{deno-deploy-47E7GIME.js → deno-deploy-W2JWCYPT.js} +2 -2
  29. package/dist/{dev-BDODXUEA.js → dev-GQ2CDBW2.js} +5 -5
  30. package/dist/index.js +3 -3
  31. package/dist/{internal-api-VRUDDBEG.js → internal-api-G25P4TP2.js} +3 -3
  32. package/dist/{internal-api-QKWTQ2Q7.js → internal-api-UBBHEPVE.js} +3 -3
  33. package/dist/{mcp-WMZSXQQG.js → mcp-W2UGY4II.js} +3 -3
  34. package/dist/{preview-GUEKVBGL.js → preview-3TLURUAL.js} +3 -3
  35. package/dist/{provider-resolver-1aWi_WSz.d.ts → provider-resolver-Cc9C3-Rb.d.ts} +8 -0
  36. package/dist/{registry-APCN3PSJ.js → registry-PAJOMMVV.js} +4 -4
  37. package/dist/server/agent/index.d.ts +1 -1
  38. package/dist/server/agent/index.js +1 -1
  39. package/dist/server/index.d.ts +1 -1
  40. package/dist/server/index.js +1 -1
  41. package/dist/{server-boundary-OEBKNBEP.js → server-boundary-A5JNZ4ND.js} +3 -3
  42. package/dist/{server-boundary-7BRS2CWI.js → server-boundary-JP6VHXAX.js} +3 -3
  43. package/dist/{start-AKMBT3DW.js → start-JEYOON64.js} +6 -6
  44. package/dist/{start-AKMBT3DW.js.map → start-JEYOON64.js.map} +1 -1
  45. package/dist/vite-plugin/index.js +3 -3
  46. package/dist/{vite-plugin-37OQ5RDR.js → vite-plugin-VLDOBVIS.js} +5 -5
  47. package/package.json +1 -1
  48. package/dist/chunk-45XETXSG.js.map +0 -1
  49. package/dist/chunk-6R6UR64X.js.map +0 -1
  50. package/dist/chunk-M2WC5MF7.js.map +0 -1
  51. package/dist/chunk-WFIAYPBH.js.map +0 -1
  52. package/dist/chunk-ZXJAI4J7.js.map +0 -1
  53. /package/dist/{actions-virtual-module-345YHSEB.js.map → actions-virtual-module-AT6HNADR.js.map} +0 -0
  54. /package/dist/{actions-virtual-module-XI5IGBF4.js.map → actions-virtual-module-XJ6J6T4C.js.map} +0 -0
  55. /package/dist/{agent-L45EZWPV.js.map → agent-G525PHCO.js.map} +0 -0
  56. /package/dist/{app-typed-client-B7QIRDSP.js.map → app-typed-client-5B3IOU45.js.map} +0 -0
  57. /package/dist/{app-typed-client-GVP4V4X3.js.map → app-typed-client-NTNYNJTW.js.map} +0 -0
  58. /package/dist/{build-22OMF3NG.js.map → build-CZAM7K6J.js.map} +0 -0
  59. /package/dist/{bun-MAAG4MKW.js.map → bun-DJ6QEFIP.js.map} +0 -0
  60. /package/dist/{chunk-L2NSHQOY.js.map → chunk-DRLYKXDD.js.map} +0 -0
  61. /package/dist/{chunk-YXEKPMDK.js.map → chunk-F2LYXOHK.js.map} +0 -0
  62. /package/dist/{cloudflare-F5DNYH4B.js.map → cloudflare-UYKOO6EP.js.map} +0 -0
  63. /package/dist/{deno-deploy-47E7GIME.js.map → deno-deploy-W2JWCYPT.js.map} +0 -0
  64. /package/dist/{dev-BDODXUEA.js.map → dev-GQ2CDBW2.js.map} +0 -0
  65. /package/dist/{internal-api-VRUDDBEG.js.map → internal-api-G25P4TP2.js.map} +0 -0
  66. /package/dist/{internal-api-QKWTQ2Q7.js.map → internal-api-UBBHEPVE.js.map} +0 -0
  67. /package/dist/{mcp-WMZSXQQG.js.map → mcp-W2UGY4II.js.map} +0 -0
  68. /package/dist/{preview-GUEKVBGL.js.map → preview-3TLURUAL.js.map} +0 -0
  69. /package/dist/{registry-APCN3PSJ.js.map → registry-PAJOMMVV.js.map} +0 -0
  70. /package/dist/{server-boundary-OEBKNBEP.js.map → server-boundary-A5JNZ4ND.js.map} +0 -0
  71. /package/dist/{server-boundary-7BRS2CWI.js.map → server-boundary-JP6VHXAX.js.map} +0 -0
  72. /package/dist/{vite-plugin-37OQ5RDR.js.map → vite-plugin-VLDOBVIS.js.map} +0 -0
package/dist/cli/index.js CHANGED
@@ -15,12 +15,12 @@ function cliVersion() {
15
15
  // src/cli/index.ts
16
16
  var cli = cac("theokit");
17
17
  cli.command("dev", "Start development server").option("--port <port>", "Port number").action(async (options) => {
18
- const { devCommand } = await import("../dev-BDODXUEA.js");
18
+ const { devCommand } = await import("../dev-GQ2CDBW2.js");
19
19
  await devCommand({ port: options.port ? Number(options.port) : void 0 });
20
20
  });
21
21
  cli.command("build", "Build for production").option("--target <target>", "Deploy target (node, vercel, cloudflare)").action(async (options) => {
22
22
  try {
23
- const { buildCommand } = await import("../build-22OMF3NG.js");
23
+ const { buildCommand } = await import("../build-CZAM7K6J.js");
24
24
  await buildCommand({ target: options.target });
25
25
  } catch (err) {
26
26
  const msg = err instanceof Error ? err.message : String(err);
@@ -32,7 +32,7 @@ cli.command("build", "Build for production").option("--target <target>", "Deploy
32
32
  });
33
33
  cli.command("start", "Start production server").option("--port <port>", "Port number").action(async (options) => {
34
34
  try {
35
- const { startCommand } = await import("../start-AKMBT3DW.js");
35
+ const { startCommand } = await import("../start-JEYOON64.js");
36
36
  await startCommand({ port: options.port ? Number(options.port) : void 0 });
37
37
  } catch (err) {
38
38
  const msg = err instanceof Error ? err.message : String(err);
@@ -44,7 +44,7 @@ cli.command("start", "Start production server").option("--port <port>", "Port nu
44
44
  });
45
45
  cli.command("preview", "Build for production, then serve it \u2014 one step (B-030)").option("--port <port>", "Port number").option("--target <target>", "Deploy target (node, vercel, cloudflare)").action(async (options) => {
46
46
  try {
47
- const { previewCommand } = await import("../preview-GUEKVBGL.js");
47
+ const { previewCommand } = await import("../preview-3TLURUAL.js");
48
48
  await previewCommand({
49
49
  port: options.port ? Number(options.port) : void 0,
50
50
  target: options.target
@@ -77,7 +77,7 @@ cli.command(
77
77
  "Run an agent in the terminal (stream + tool calls + approval)"
78
78
  ).action(async (name, message) => {
79
79
  try {
80
- const { agentCommand } = await import("../agent-L45EZWPV.js");
80
+ const { agentCommand } = await import("../agent-G525PHCO.js");
81
81
  const { sawError } = await agentCommand(name, message);
82
82
  if (sawError) process.exit(1);
83
83
  } catch (err) {
@@ -108,7 +108,7 @@ cli.command("agent sessions gc", "Collect old transcripts for this project (dry
108
108
  });
109
109
  cli.command("mcp <agent>", "Serve an agent as an MCP server over stdio (for desktop MCP clients)").action(async (agent) => {
110
110
  try {
111
- const { mcpCommand } = await import("../mcp-WMZSXQQG.js");
111
+ const { mcpCommand } = await import("../mcp-W2UGY4II.js");
112
112
  await mcpCommand(agent);
113
113
  } catch (err) {
114
114
  const msg = err instanceof Error ? err.message : String(err);
@@ -3,7 +3,7 @@ import "tsx/esm";
3
3
  import {
4
4
  deployedAgentsFragment,
5
5
  planDeployedPlugins
6
- } from "./chunk-M2WC5MF7.js";
6
+ } from "./chunk-O55RLSGG.js";
7
7
  import {
8
8
  deployedCorsFragment,
9
9
  deployedCsrfFragment,
@@ -332,4 +332,4 @@ export {
332
332
  renderCloudflareWorkerEntry,
333
333
  renderWranglerToml
334
334
  };
335
- //# sourceMappingURL=cloudflare-F5DNYH4B.js.map
335
+ //# sourceMappingURL=cloudflare-UYKOO6EP.js.map
@@ -3,7 +3,7 @@ import "tsx/esm";
3
3
  import {
4
4
  deployedAgentsFragment,
5
5
  planDeployedPlugins
6
- } from "./chunk-M2WC5MF7.js";
6
+ } from "./chunk-O55RLSGG.js";
7
7
  import {
8
8
  deployedCorsFragment,
9
9
  deployedCsrfFragment,
@@ -193,4 +193,4 @@ export {
193
193
  denoDeployAdapter,
194
194
  renderDenoEntry
195
195
  };
196
- //# sourceMappingURL=deno-deploy-47E7GIME.js.map
196
+ //# sourceMappingURL=deno-deploy-W2JWCYPT.js.map
@@ -11,14 +11,14 @@ import {
11
11
  } from "./chunk-KTMQUYED.js";
12
12
  import {
13
13
  theoPluginAsync
14
- } from "./chunk-6R6UR64X.js";
15
- import "./chunk-L2NSHQOY.js";
14
+ } from "./chunk-DVJRDY3H.js";
15
+ import "./chunk-DRLYKXDD.js";
16
16
  import "./chunk-2CVV6CNN.js";
17
17
  import "./chunk-3PWQQWT6.js";
18
18
  import "./chunk-FDOOBTXJ.js";
19
19
  import "./chunk-47MM2JUK.js";
20
- import "./chunk-KVZQJ3ZM.js";
21
- import "./chunk-WFIAYPBH.js";
20
+ import "./chunk-USN554EK.js";
21
+ import "./chunk-UETVDZBE.js";
22
22
  import "./chunk-L4TB6FXQ.js";
23
23
  import "./chunk-VV2VU3LJ.js";
24
24
  import "./chunk-5VLP3GQ2.js";
@@ -128,4 +128,4 @@ export {
128
128
  devCommand,
129
129
  startDevServer
130
130
  };
131
- //# sourceMappingURL=dev-BDODXUEA.js.map
131
+ //# sourceMappingURL=dev-GQ2CDBW2.js.map
package/dist/index.js CHANGED
@@ -8,11 +8,11 @@ import {
8
8
  scanRoutes,
9
9
  theoConfigSchema,
10
10
  theoPlugin
11
- } from "./chunk-ZXJAI4J7.js";
11
+ } from "./chunk-EB5TYC2Y.js";
12
12
  import "./chunk-7NRFZBAL.js";
13
13
  import "./chunk-SSYDEKWF.js";
14
14
  import "./chunk-Q3UE7WIM.js";
15
- import "./chunk-H2X5T45M.js";
15
+ import "./chunk-2BYN7WTW.js";
16
16
  import "./chunk-OIGJOYX6.js";
17
17
  import "./chunk-U3SPBLJF.js";
18
18
  import "./chunk-EYRWD2AB.js";
@@ -39,7 +39,7 @@ import "./chunk-V6Y2SMRG.js";
39
39
  import "./chunk-ACKBVBUI.js";
40
40
  import "./chunk-IZ3TIL6K.js";
41
41
  import "./chunk-YOIVCCZT.js";
42
- import "./chunk-45XETXSG.js";
42
+ import "./chunk-ICXXHV4V.js";
43
43
  import "./chunk-YSJOZEI6.js";
44
44
  import "./chunk-Z4PJMZLM.js";
45
45
  import "./chunk-UMNXCU3K.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-Q3UE7WIM.js";
4
4
  import {
5
5
  mountAgent
6
- } from "./chunk-H2X5T45M.js";
6
+ } from "./chunk-2BYN7WTW.js";
7
7
  import {
8
8
  CSP_REPORT_PATH,
9
9
  CsrfReadinessStore,
@@ -64,7 +64,7 @@ import "./chunk-ACKBVBUI.js";
64
64
  import "./chunk-IZ3TIL6K.js";
65
65
  import {
66
66
  resolveProvider
67
- } from "./chunk-45XETXSG.js";
67
+ } from "./chunk-ICXXHV4V.js";
68
68
  import "./chunk-YSJOZEI6.js";
69
69
  import {
70
70
  generateNonce
@@ -107,4 +107,4 @@ export {
107
107
  scanWebSocketRoutes,
108
108
  sendError
109
109
  };
110
- //# sourceMappingURL=internal-api-VRUDDBEG.js.map
110
+ //# sourceMappingURL=internal-api-G25P4TP2.js.map
@@ -16,10 +16,10 @@ import {
16
16
  handleCspReport,
17
17
  handleCsrfReadiness,
18
18
  mountAgent
19
- } from "./chunk-KVZQJ3ZM.js";
19
+ } from "./chunk-USN554EK.js";
20
20
  import {
21
21
  resolveProvider
22
- } from "./chunk-WFIAYPBH.js";
22
+ } from "./chunk-UETVDZBE.js";
23
23
  import {
24
24
  dispatchControllerRequest,
25
25
  incomingMessageToHandlerRequest,
@@ -87,4 +87,4 @@ export {
87
87
  scanWebSocketRoutes,
88
88
  sendError
89
89
  };
90
- //# sourceMappingURL=internal-api-QKWTQ2Q7.js.map
90
+ //# sourceMappingURL=internal-api-UBBHEPVE.js.map
@@ -2,12 +2,12 @@
2
2
  import "tsx/esm";
3
3
  import {
4
4
  createAgentSsrLoader
5
- } from "./chunk-YXEKPMDK.js";
5
+ } from "./chunk-F2LYXOHK.js";
6
6
  import {
7
7
  extractAppResources,
8
8
  handleMcpJsonRpc
9
9
  } from "./chunk-2CVV6CNN.js";
10
- import "./chunk-WFIAYPBH.js";
10
+ import "./chunk-UETVDZBE.js";
11
11
  import {
12
12
  scanAgents
13
13
  } from "./chunk-5NNFO7R7.js";
@@ -75,4 +75,4 @@ async function mcpCommand(name, deps = {}) {
75
75
  export {
76
76
  mcpCommand
77
77
  };
78
- //# sourceMappingURL=mcp-WMZSXQQG.js.map
78
+ //# sourceMappingURL=mcp-W2UGY4II.js.map
@@ -4,8 +4,8 @@ import "tsx/esm";
4
4
  // src/cli/commands/preview.ts
5
5
  async function defaultSteps() {
6
6
  const [{ buildCommand }, { startCommand }] = await Promise.all([
7
- import("./build-22OMF3NG.js"),
8
- import("./start-AKMBT3DW.js")
7
+ import("./build-CZAM7K6J.js"),
8
+ import("./start-JEYOON64.js")
9
9
  ]);
10
10
  return {
11
11
  build: (opts) => buildCommand(opts),
@@ -20,4 +20,4 @@ async function previewCommand(options = {}, steps) {
20
20
  export {
21
21
  previewCommand
22
22
  };
23
- //# sourceMappingURL=preview-GUEKVBGL.js.map
23
+ //# sourceMappingURL=preview-3TLURUAL.js.map
@@ -94,6 +94,14 @@ interface ResolvedProvider {
94
94
  interface ResolveOptions {
95
95
  /** Receives one line per provider, at most once. NEVER receives the key. */
96
96
  announce?: (line: string) => void;
97
+ /**
98
+ * The plugins the agent declared (`compiled.plugins`), consulted for a `model-provider` one when
99
+ * this project's registry does not know the model's prefix (#579).
100
+ *
101
+ * Absent ⇒ registry-only, byte-unchanged. This is what keeps `.plugins(Provider.builtins())`
102
+ * meaning something at resolution time without making every SDK builtin nameable by every app.
103
+ */
104
+ plugins?: readonly unknown[];
97
105
  }
98
106
  /**
99
107
  * Register a new provider (Registry pattern — runtime extension point).
@@ -5,10 +5,10 @@ import "tsx/esm";
5
5
  var adapterRegistry = {
6
6
  node: async () => (await import("./node-OSVPYQ3D.js")).nodeAdapter,
7
7
  vercel: async () => (await import("./vercel-BEDGUVXX.js")).vercelAdapter,
8
- cloudflare: async () => (await import("./cloudflare-F5DNYH4B.js")).cloudflareAdapter,
8
+ cloudflare: async () => (await import("./cloudflare-UYKOO6EP.js")).cloudflareAdapter,
9
9
  static: async () => (await import("./static-SVDWIOXJ.js")).staticAdapter,
10
- bun: async () => (await import("./bun-MAAG4MKW.js")).bunAdapter,
11
- "deno-deploy": async () => (await import("./deno-deploy-47E7GIME.js")).denoDeployAdapter,
10
+ bun: async () => (await import("./bun-DJ6QEFIP.js")).bunAdapter,
11
+ "deno-deploy": async () => (await import("./deno-deploy-W2JWCYPT.js")).denoDeployAdapter,
12
12
  netlify: async () => (await import("./netlify-BJQGPMGY.js")).netlifyAdapter,
13
13
  "aws-lambda": async () => (await import("./aws-lambda-2R77AV5F.js")).awsLambdaAdapter,
14
14
  "theo-cloud": async () => (await import("./theo-cloud-3ET4G5T6.js")).theoCloudAdapter
@@ -20,4 +20,4 @@ async function resolveAdapter(target) {
20
20
  export {
21
21
  resolveAdapter
22
22
  };
23
- //# sourceMappingURL=registry-APCN3PSJ.js.map
23
+ //# sourceMappingURL=registry-PAJOMMVV.js.map
@@ -4,7 +4,7 @@ import { AcpTransport } from '@theokit/agents';
4
4
  export { InProcessApprovalRequest, InProcessApprovalRequiredError, InProcessAwaitApproval, StreamAgentTurnDeps, StreamAgentTurnInProcessInput, streamAgentTurnInProcess } from '@theokit/agents';
5
5
  import { CustomTool as CustomTool$1 } from '@theokit/sdk';
6
6
  import { V as VerifyFn, S as SubscribeFn } from '../../whatsapp-D_Fnl1LX.js';
7
- 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-1aWi_WSz.js';
7
+ 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';
8
8
 
9
9
  /**
10
10
  * M26 (ADR-0041) — `createWorkflowTool`: wrap an SDK `Workflow` as a `CustomTool`.
@@ -26,7 +26,7 @@ import {
26
26
  resetProviderRegistry,
27
27
  resolveProvider,
28
28
  tryResolveProvider
29
- } from "../../chunk-45XETXSG.js";
29
+ } from "../../chunk-ICXXHV4V.js";
30
30
  import "../../chunk-XTHN6JBX.js";
31
31
  export {
32
32
  CodeModePermissionDeniedError,
@@ -11,7 +11,7 @@ export { ACTION_SCHEMAS_DIR, ActionNode, ActionScanError, LoadedManifest, Manife
11
11
  export { L as LoadModule, S as ServerRouteNode, c as compilePattern, a as createProductionLoader, b as createViteLoader, m as matchRoute } from '../match-Dw4CNXJH.js';
12
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';
13
13
  export { InProcessApprovalRequest, InProcessApprovalRequiredError, InProcessAwaitApproval, StreamAgentTurnDeps, StreamAgentTurnInProcessInput, streamAgentTurnInProcess } from '@theokit/agents';
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-1aWi_WSz.js';
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';
15
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';
16
16
  export { g as generateNonce } from '../nonce-BXt7Qu_C.js';
17
17
  export { InMemoryUsageStorage, ToolHookEvent, TrackAgentRunInput, TrackAgentRunOptions, TrackAgentToolsHooks, TrackAgentToolsOptions, trackAgentRun, trackAgentTools } from './cost/index.js';
@@ -262,7 +262,7 @@ import {
262
262
  resetProviderRegistry,
263
263
  resolveProvider,
264
264
  tryResolveProvider
265
- } from "../chunk-45XETXSG.js";
265
+ } from "../chunk-ICXXHV4V.js";
266
266
  import {
267
267
  AuthRequiredError,
268
268
  _resetKeyCacheForTests,
@@ -2,7 +2,7 @@ import {
2
2
  resolveTheoRootDir
3
3
  } from "./chunk-7NRFZBAL.js";
4
4
  import "./chunk-Q3UE7WIM.js";
5
- import "./chunk-H2X5T45M.js";
5
+ import "./chunk-2BYN7WTW.js";
6
6
  import "./chunk-EYRWD2AB.js";
7
7
  import "./chunk-5GZROLDV.js";
8
8
  import "./chunk-5AGNZXHJ.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-45XETXSG.js";
30
+ import "./chunk-ICXXHV4V.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-OEBKNBEP.js.map
150
+ //# sourceMappingURL=server-boundary-A5JNZ4ND.js.map
@@ -3,8 +3,8 @@ import "tsx/esm";
3
3
  import {
4
4
  resolveTheoRootDir
5
5
  } from "./chunk-FDOOBTXJ.js";
6
- import "./chunk-KVZQJ3ZM.js";
7
- import "./chunk-WFIAYPBH.js";
6
+ import "./chunk-USN554EK.js";
7
+ import "./chunk-UETVDZBE.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-7BRS2CWI.js.map
134
+ //# sourceMappingURL=server-boundary-JP6VHXAX.js.map
@@ -25,7 +25,7 @@ import {
25
25
  resolveTransformer,
26
26
  serveMatchedAuxRoute,
27
27
  serveThroughPluginLifecycle
28
- } from "./chunk-L2NSHQOY.js";
28
+ } from "./chunk-DRLYKXDD.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-KVZQJ3ZM.js";
44
+ } from "./chunk-USN554EK.js";
45
45
  import {
46
46
  getApprovalRegistry,
47
47
  resolveProvider
48
- } from "./chunk-WFIAYPBH.js";
48
+ } from "./chunk-UETVDZBE.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-AKMBT3DW.js.map
1399
+ //# sourceMappingURL=start-JEYOON64.js.map