Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

chore(eve): bundler module resolution for authored code (#643)

Casey Gowrie79df338a9d6d
diff --git a/.changeset/bundler-resolution.md b/.changeset/bundler-resolution.md
new file mode 100644
index 000000000..47112bde1
--- /dev/null
+++ b/.changeset/bundler-resolution.md
@@ -0,0 +1,7 @@
+---
+"eve": patch
+---
+
+feat(eve): scaffold projects with bundler module resolution
+
+`eve init` now writes a `tsconfig.json` using `"moduleResolution": "bundler"` (and `"module": "esnext"`), which matches how eve compiles authored agents and extensions. Relative imports in your agent and extension source no longer need `.js` extensions (e.g. `import extension from "../extension"`).
diff --git a/apps/fixtures/agent-tui-client/tsconfig.json b/apps/fixtures/agent-tui-client/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/apps/fixtures/agent-tui-client/tsconfig.json
+++ b/apps/fixtures/agent-tui-client/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/apps/fixtures/weather-agent/tsconfig.json b/apps/fixtures/weather-agent/tsconfig.json
index 9dfc8a49f..9e204d4a9 100644
--- a/apps/fixtures/weather-agent/tsconfig.json
+++ b/apps/fixtures/weather-agent/tsconfig.json
@@ -3,8 +3,8 @@
"compilerOptions": {
"target": "ES2024",
"lib": ["ES2024"],
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"moduleDetection": "force",
"verbatimModuleSyntax": true,
"noEmit": true,
diff --git a/docs/channels/custom.mdx b/docs/channels/custom.mdx
index 46be90c48..9c4cf62fb 100644
--- a/docs/channels/custom.mdx
+++ b/docs/channels/custom.mdx
@@ -121,7 +121,7 @@ Route handlers can start a session on a different channel via `args.receive(chan
```ts
import { defineChannel, POST } from "eve/channels";
-import slack from "./slack.js";
+import slack from "./slack";
export default defineChannel({
routes: [
@@ -220,7 +220,7 @@ The `context(state, session)` config option builds the per-step `channel` argume
```ts
import { defineChannel } from "eve/channels";
-import { mintRef } from "./refs.js";
+import { mintRef } from "./refs";
defineChannel<{ ref: string | null }>({
state: { ref: null },
diff --git a/docs/channels/linear.mdx b/docs/channels/linear.mdx
index e7bb08b6e..cd2b58a8d 100644
--- a/docs/channels/linear.mdx
+++ b/docs/channels/linear.mdx
@@ -164,7 +164,7 @@ Use the channel's `receive` target to continue an existing Agent Session or crea
```ts
import { defineSchedule } from "eve/schedules";
-import linear from "../channels/linear.js";
+import linear from "../channels/linear";
export default defineSchedule({
cron: "0 14 * * 1",
diff --git a/docs/concepts/context-control.md b/docs/concepts/context-control.md
index 0809905fd..482bfddeb 100644
--- a/docs/concepts/context-control.md
+++ b/docs/concepts/context-control.md
@@ -22,7 +22,7 @@ To build the instructions prompt from typed helpers, lib code, or environment-de
```ts title="agent/instructions.ts"
import { defineInstructions } from "eve/instructions";
-import { buildInstructionsPrompt } from "./lib/prompts.js";
+import { buildInstructionsPrompt } from "./lib/prompts";
export default defineInstructions({
markdown: buildInstructionsPrompt(),
diff --git a/docs/extensions.md b/docs/extensions.md
index 070a340ce..950149d0f 100644
--- a/docs/extensions.md
+++ b/docs/extensions.md
@@ -18,10 +18,10 @@ An extension is an agent-shaped directory without `agent.ts` or `sandbox` (those
connections/api.ts
skills/triage/SKILL.md
hooks/audit.ts
- lib/http.ts # shared helpers, imported as ../lib/http.js
+ lib/http.ts # shared helpers, imported as ../lib/http
```
-Name tools and connections for what they do (`search`, not `crm_search`) — the mount supplies the namespace. Shared code goes in `ext/lib/`, imported by relative path.
+Name tools and connections for what they do (`search`, not `crm_search`) — the mount supplies the namespace. Shared code goes in `ext/lib/`, imported by relative path — eve compiles the source, so relative imports need no `.js` extension.
### Configuration
@@ -44,7 +44,7 @@ Config is optional — `defineExtension()` with no schema. Read it off the handl
```ts title="ext/tools/search.ts"
import { defineTool } from "eve/tools";
-import extension from "../extension.js";
+import extension from "../extension";
export default defineTool({
description: "Search the CRM.",
@@ -79,6 +79,21 @@ Point `eve.extension` at the source directory and run `eve build` (wired to `bui
}
```
+Author the source with `moduleResolution: "bundler"` — eve compiles it, so relative imports need no `.js` extension:
+
+```jsonc title="tsconfig.json"
+{
+ "compilerOptions": {
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "strict": true,
+ "noEmit": true,
+ "types": ["node"],
+ },
+ "include": ["ext/**/*.ts"],
+}
+```
+
`eve build` compiles the package's entry points to plain JavaScript with type declarations — the mount factory (`dist/index.mjs`) and the tool re-exports overrides use (`dist/tools`) — and fills the `exports` map so you never hand-list it. Compiling is what lets an installed extension load directly; local and workspace packages also work without publishing.
### Dependencies
diff --git a/docs/guides/dynamic-capabilities.md b/docs/guides/dynamic-capabilities.md
index cb88410f0..1846a1d72 100644
--- a/docs/guides/dynamic-capabilities.md
+++ b/docs/guides/dynamic-capabilities.md
@@ -30,7 +30,7 @@ The example below builds one tool per warehouse table. A map return names each t
```ts title="agent/tools/query.ts"
import { defineDynamic, defineTool } from "eve/tools";
import { z } from "zod";
-import { listTables, runReadOnly } from "../lib/warehouse.js";
+import { listTables, runReadOnly } from "../lib/warehouse";
export default defineDynamic({
events: {
@@ -89,7 +89,7 @@ A single file can declare handlers for several events, and the most recently fir
```ts title="agent/tools/catalog.ts"
import { defineDynamic, defineTool } from "eve/tools";
import { z } from "zod";
-import { runReadOnly, searchCatalog } from "../lib/catalog.js";
+import { runReadOnly, searchCatalog } from "../lib/catalog";
export default defineDynamic({
events: {
@@ -120,7 +120,7 @@ A dynamic skills file resolves which [skill](../skills) a caller can load, keyed
```ts title="agent/skills/team_playbook.ts"
import { defineDynamic, defineSkill } from "eve/skills";
-import { PLAYBOOKS } from "../lib/playbooks.js";
+import { PLAYBOOKS } from "../lib/playbooks";
export default defineDynamic({
events: {
diff --git a/docs/guides/instrumentation.md b/docs/guides/instrumentation.md
index 7357cb328..e16fd9c35 100644
--- a/docs/guides/instrumentation.md
+++ b/docs/guides/instrumentation.md
@@ -66,7 +66,7 @@ Use it when the values depend on the current session, turn, step, channel, or mo
```ts
import { defineInstrumentation, isChannel } from "eve/instrumentation";
-import supportChannel from "./channels/support.js";
+import supportChannel from "./channels/support";
export default defineInstrumentation({
events: {
diff --git a/docs/guides/state.md b/docs/guides/state.md
index 93532b786..9b4d68a48 100644
--- a/docs/guides/state.md
+++ b/docs/guides/state.md
@@ -27,8 +27,8 @@ export const budget = defineState("my-agent.budget", () => ({ count: 0, cap: 25
```ts title="agent/tools/spend.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { budget } from "../lib/budget.js";
-import { runQuery } from "../lib/warehouse.js";
+import { budget } from "../lib/budget";
+import { runQuery } from "../lib/warehouse";
export default defineTool({
description: "Run a query, counting it against the session budget.",
@@ -50,7 +50,7 @@ State is durable by default and does not reset between turns. If you want a clea
```ts title="agent/hooks/reset-budget.ts"
import { defineHook } from "eve/hooks";
-import { budget } from "../lib/budget.js";
+import { budget } from "../lib/budget";
export default defineHook({
events: {
diff --git a/docs/instructions.mdx b/docs/instructions.mdx
index d4a622803..222e8dccb 100644
--- a/docs/instructions.mdx
+++ b/docs/instructions.mdx
@@ -21,7 +21,7 @@ A static prompt belongs in markdown (`agent/instructions.md`). Switch to a TypeS
```ts title="agent/instructions.ts"
import { defineInstructions } from "eve/instructions";
-import { buildInstructionsPrompt } from "./lib/prompts.js";
+import { buildInstructionsPrompt } from "./lib/prompts";
export default defineInstructions({
markdown: buildInstructionsPrompt(),
diff --git a/docs/patterns/dynamic-scheduling.md b/docs/patterns/dynamic-scheduling.md
index c76978ed6..76ab441c3 100644
--- a/docs/patterns/dynamic-scheduling.md
+++ b/docs/patterns/dynamic-scheduling.md
@@ -30,8 +30,8 @@ This is the only authored schedule. It looks up due application-managed rows and
```ts title="agent/schedules/dynamic.ts"
import { defineSchedule } from "eve/schedules";
-import slack from "../channels/slack.js";
-import { scheduleStore } from "../lib/schedule-store.js";
+import slack from "../channels/slack";
+import { scheduleStore } from "../lib/schedule-store";
export default defineSchedule({
cron: "* * * * *",
@@ -119,8 +119,8 @@ Create a one-time schedule with `everyMinutes: null`, or a recurring one with an
```ts title="agent/tools/create_schedule.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { scheduleStore } from "../lib/schedule-store.js";
-import { requireScheduleOwner } from "../lib/tenant.js";
+import { scheduleStore } from "../lib/schedule-store";
+import { requireScheduleOwner } from "../lib/tenant";
export default defineTool({
description: "Create a one-time or repeating scheduled agent run for this tenant.",
@@ -142,8 +142,8 @@ export default defineTool({
```ts title="agent/tools/list_schedules.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { scheduleStore } from "../lib/schedule-store.js";
-import { requireScheduleOwner } from "../lib/tenant.js";
+import { scheduleStore } from "../lib/schedule-store";
+import { requireScheduleOwner } from "../lib/tenant";
export default defineTool({
description: "List this tenant's dynamic schedules and their latest status.",
@@ -157,8 +157,8 @@ export default defineTool({
```ts title="agent/tools/update_schedule.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { scheduleStore } from "../lib/schedule-store.js";
-import { requireScheduleOwner } from "../lib/tenant.js";
+import { scheduleStore } from "../lib/schedule-store";
+import { requireScheduleOwner } from "../lib/tenant";
export default defineTool({
description: "Change, pause, or resume one of this tenant's schedules.",
@@ -183,8 +183,8 @@ export default defineTool({
import { defineTool } from "eve/tools";
import { always } from "eve/tools/approval";
import { z } from "zod";
-import { scheduleStore } from "../lib/schedule-store.js";
-import { requireScheduleOwner } from "../lib/tenant.js";
+import { scheduleStore } from "../lib/schedule-store";
+import { requireScheduleOwner } from "../lib/tenant";
export default defineTool({
description: "Permanently delete one of this tenant's schedules.",
@@ -232,7 +232,7 @@ export interface ScheduleStore {
release(job: ClaimedSchedule, failure: { error: unknown; retryAt: Date }): Promise<void>;
}
-export { scheduleStore } from "../../lib/schedule-store.js";
+export { scheduleStore } from "../../lib/schedule-store";
```
Implement that adapter with whichever durable store already belongs to your application. It must preserve a few semantics:
diff --git a/docs/patterns/multi-tenant-approvals.md b/docs/patterns/multi-tenant-approvals.md
index 81ff6d011..ad25afa8f 100644
--- a/docs/patterns/multi-tenant-approvals.md
+++ b/docs/patterns/multi-tenant-approvals.md
@@ -22,7 +22,7 @@ The current caller and initiating caller are both available on the session. This
```ts title="agent/lib/tenant-approval.ts"
import type { ApprovalContext, ApprovalStatus } from "eve/tools";
-import { approvalPolicies } from "./approval-policies.js";
+import { approvalPolicies } from "./approval-policies";
type Surface = "connection" | "tool";
@@ -77,8 +77,8 @@ Approval runs before `execute`. The executor must still derive and enforce tenan
```ts title="agent/tools/transfer_funds.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { transferFunds } from "../../lib/payments.js";
-import { decideTenantApproval } from "../lib/tenant-approval.js";
+import { transferFunds } from "../../lib/payments";
+import { decideTenantApproval } from "../lib/tenant-approval";
export default defineTool({
description: "Transfer funds from the current tenant's account.",
@@ -111,7 +111,7 @@ The same callback gates every generated operation. The qualified operation name
```ts title="agent/connections/billing.ts"
import { defineOpenAPIConnection } from "eve/connections";
-import { decideTenantApproval } from "../lib/tenant-approval.js";
+import { decideTenantApproval } from "../lib/tenant-approval";
export default defineOpenAPIConnection({
spec: "https://billing.example.com/openapi.json",
@@ -135,7 +135,7 @@ The allow-list limits what the model can discover. Approval independently decide
```ts title="agent/connections/support.ts"
import { defineMcpClientConnection } from "eve/connections";
-import { decideTenantApproval } from "../lib/tenant-approval.js";
+import { decideTenantApproval } from "../lib/tenant-approval";
export default defineMcpClientConnection({
url: "https://support.example.com/mcp",
@@ -176,7 +176,7 @@ export interface ApprovalPolicyProvider {
decide(request: ApprovalPolicyRequest): Promise<ApprovalPolicyDecision>;
}
-export { approvalPolicies } from "../../lib/approval-policies.js";
+export { approvalPolicies } from "../../lib/approval-policies";
```
Your provider decides the policy model. A common implementation checks active tenant membership, finds an exact resource rule before a connection-wide fallback, evaluates role and input thresholds, and defaults to deny. Keep those choices in application code rather than encoding a database design into the agent.
diff --git a/docs/patterns/multi-tenant-auth.md b/docs/patterns/multi-tenant-auth.md
index 938fc3ec8..f43db80f9 100644
--- a/docs/patterns/multi-tenant-auth.md
+++ b/docs/patterns/multi-tenant-auth.md
@@ -44,7 +44,7 @@ the caller before eve starts a run, then stamp the tenant onto the session:
```ts title="agent/channels/eve.ts"
import { eveChannel } from "eve/channels/eve";
import { localDev, type AuthFn } from "eve/channels/auth";
-import { verifyAgentCaller } from "../../lib/app-auth.js";
+import { verifyAgentCaller } from "../../lib/app-auth";
function tenantAppAuth(): AuthFn<Request> {
return async (request) => {
@@ -92,7 +92,7 @@ cache by that user, and pass the projected principal into `getToken`:
```ts title="agent/lib/tenant-connection-auth.ts"
import type { ConnectionPrincipal, NonInteractiveAuthorizationDefinition } from "eve/connections";
-import { tenantCredentials, type TenantService } from "./tenant-credentials.js";
+import { tenantCredentials, type TenantService } from "./tenant-credentials";
function requireTenantPrincipal(principal: ConnectionPrincipal): {
tenantId: string;
@@ -136,8 +136,8 @@ Derive the tenant inside `execute`, fetch its credential from your application p
```ts title="agent/tools/list_invoices.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { tenantCredentials } from "../lib/tenant-credentials.js";
-import { requireTenantCaller } from "../lib/tenant.js";
+import { tenantCredentials } from "../lib/tenant-credentials";
+import { requireTenantCaller } from "../lib/tenant";
export default defineTool({
description: "List recent invoices from the current tenant's billing account.",
@@ -167,9 +167,9 @@ receive the token at call time without exposing it to the model:
```ts title="agent/connections/billing.ts"
import { defineOpenAPIConnection } from "eve/connections";
-import { tenantCredentials } from "../lib/tenant-credentials.js";
-import { tenantBearerAuth } from "../lib/tenant-connection-auth.js";
-import { requireTenantCaller } from "../lib/tenant.js";
+import { tenantCredentials } from "../lib/tenant-credentials";
+import { tenantBearerAuth } from "../lib/tenant-connection-auth";
+import { requireTenantCaller } from "../lib/tenant";
export default defineOpenAPIConnection({
spec: "https://billing.example.com/openapi.json",
@@ -193,9 +193,9 @@ MCP connections accept the same callbacks:
```ts title="agent/connections/support.ts"
import { defineMcpClientConnection } from "eve/connections";
-import { tenantCredentials } from "../lib/tenant-credentials.js";
-import { tenantBearerAuth } from "../lib/tenant-connection-auth.js";
-import { requireTenantCaller } from "../lib/tenant.js";
+import { tenantCredentials } from "../lib/tenant-credentials";
+import { tenantBearerAuth } from "../lib/tenant-connection-auth";
+import { requireTenantCaller } from "../lib/tenant";
export default defineMcpClientConnection({
url: "https://support.example.com/mcp",
@@ -220,8 +220,8 @@ tenant API key from `headers` instead:
```ts title="agent/connections/support.ts"
import { defineMcpClientConnection } from "eve/connections";
-import { tenantCredentials } from "../lib/tenant-credentials.js";
-import { requireTenantCaller } from "../lib/tenant.js";
+import { tenantCredentials } from "../lib/tenant-credentials";
+import { requireTenantCaller } from "../lib/tenant";
export default defineMcpClientConnection({
url: "https://support.example.com/mcp",
@@ -274,7 +274,7 @@ export interface TenantCredentialProvider {
): Promise<TenantApiKeyCredential>;
}
-export { tenantCredentials } from "../../lib/tenant-credentials.js";
+export { tenantCredentials } from "../../lib/tenant-credentials";
```
Implement the provider with the secret system your application already trusts:
diff --git a/docs/patterns/multi-tenant-memory.md b/docs/patterns/multi-tenant-memory.md
index 8913e9d6f..f6d67e518 100644
--- a/docs/patterns/multi-tenant-memory.md
+++ b/docs/patterns/multi-tenant-memory.md
@@ -53,8 +53,8 @@ Resolve on `turn.started` so later turns in the same session see memories writte
```ts title="agent/instructions/memory.ts"
import { defineDynamic, defineInstructions } from "eve/instructions";
-import { memoryStore } from "../lib/memory-store.js";
-import { requireTenantCaller } from "../lib/tenant.js";
+import { memoryStore } from "../lib/memory-store";
+import { requireTenantCaller } from "../lib/tenant";
export default defineDynamic({
events: {
@@ -88,8 +88,8 @@ The model chooses the memory key and value. The executor chooses the tenant and
```ts title="agent/tools/remember.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { memoryStore } from "../lib/memory-store.js";
-import { requireTenantCaller } from "../lib/tenant.js";
+import { memoryStore } from "../lib/memory-store";
+import { requireTenantCaller } from "../lib/tenant";
export default defineTool({
description: "Remember one stable fact or preference for the current user.",
@@ -110,8 +110,8 @@ export default defineTool({
```ts title="agent/tools/list_memories.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { memoryStore } from "../lib/memory-store.js";
-import { requireTenantCaller } from "../lib/tenant.js";
+import { memoryStore } from "../lib/memory-store";
+import { requireTenantCaller } from "../lib/tenant";
export default defineTool({
description: "List long-term memories saved for the current user.",
@@ -126,8 +126,8 @@ export default defineTool({
import { defineTool } from "eve/tools";
import { always } from "eve/tools/approval";
import { z } from "zod";
-import { memoryStore } from "../lib/memory-store.js";
-import { requireTenantCaller } from "../lib/tenant.js";
+import { memoryStore } from "../lib/memory-store";
+import { requireTenantCaller } from "../lib/tenant";
export default defineTool({
description: "Delete one long-term memory belonging to the current user.",
@@ -165,7 +165,7 @@ export interface MemoryStore {
}
// Implement this with your application's PostgreSQL, KV, or vector-store client.
-export { memoryStore } from "../../lib/memory-store.js";
+export { memoryStore } from "../../lib/memory-store";
```
Whatever backend you choose, preserve these invariants:
diff --git a/docs/schedules.mdx b/docs/schedules.mdx
index 0d5e6cb84..4156b39a3 100644
--- a/docs/schedules.mdx
+++ b/docs/schedules.mdx
@@ -61,7 +61,7 @@ Use a handler when the schedule needs to deliver to a channel, branch on conditi
```ts title="agent/schedules/critical-alerts.ts"
import { defineSchedule } from "eve/schedules";
-import slack from "../channels/slack.js";
+import slack from "../channels/slack";
export default defineSchedule({
cron: "* * * * *",
diff --git a/docs/tutorial/guard-the-spend.mdx b/docs/tutorial/guard-the-spend.mdx
index 895c5817f..a98f01237 100644
--- a/docs/tutorial/guard-the-spend.mdx
+++ b/docs/tutorial/guard-the-spend.mdx
@@ -23,8 +23,8 @@ export function estimateScanGb(sql: string): number {
```ts title="agent/tools/run_sql.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { runReadOnlySql } from "../lib/sample-db.js";
-import { estimateScanGb } from "../lib/cost.js";
+import { runReadOnlySql } from "../lib/sample-db";
+import { estimateScanGb } from "../lib/cost";
const THRESHOLD_GB = 50;
diff --git a/docs/tutorial/query-sample-data.mdx b/docs/tutorial/query-sample-data.mdx
index 8384d1e76..3a3dbfb4a 100644
--- a/docs/tutorial/query-sample-data.mdx
+++ b/docs/tutorial/query-sample-data.mdx
@@ -47,7 +47,7 @@ export async function runReadOnlySql(sql: string) {
```ts title="agent/tools/run_sql.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { runReadOnlySql } from "../lib/sample-db.js";
+import { runReadOnlySql } from "../lib/sample-db";
export default defineTool({
description:
diff --git a/docs/tutorial/remember-definitions.mdx b/docs/tutorial/remember-definitions.mdx
index 03cd84b45..e93cccc50 100644
--- a/docs/tutorial/remember-definitions.mdx
+++ b/docs/tutorial/remember-definitions.mdx
@@ -26,7 +26,7 @@ export const glossary = defineState<Glossary>("analytics.glossary", () => ({
```ts title="agent/tools/define_metric.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { glossary } from "../lib/glossary.js";
+import { glossary } from "../lib/glossary";
export default defineTool({
description: "Record the team's definition of a metric so it persists across turns.",
@@ -41,7 +41,7 @@ export default defineTool({
```ts title="agent/tools/recall_metrics.ts"
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { glossary } from "../lib/glossary.js";
+import { glossary } from "../lib/glossary";
export default defineTool({
description: "Read the team's recorded metric definitions.",
diff --git a/docs/tutorial/ship-it.mdx b/docs/tutorial/ship-it.mdx
index e2c9cfc11..8c557061d 100644
--- a/docs/tutorial/ship-it.mdx
+++ b/docs/tutorial/ship-it.mdx
@@ -98,7 +98,7 @@ Now point the channel at it. Replace the contents of `agent/channels/eve.ts`, wh
```ts title="agent/channels/eve.ts"
import { eveChannel } from "eve/channels/eve";
import { localDev, vercelOidc, type AuthFn } from "eve/channels/auth";
-import { authenticate } from "../lib/auth.js";
+import { authenticate } from "../lib/auth";
const appAuth: AuthFn<Request> = async (request) => {
const user = await authenticate(request); // your cookie/session/provider
diff --git a/e2e/fixtures/agent-basic-runtime/tsconfig.json b/e2e/fixtures/agent-basic-runtime/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-basic-runtime/tsconfig.json
+++ b/e2e/fixtures/agent-basic-runtime/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-channels/agent/channels/webhook.ts b/e2e/fixtures/agent-channels/agent/channels/webhook.ts
index 13e80fd91..2076ff24f 100644
--- a/e2e/fixtures/agent-channels/agent/channels/webhook.ts
+++ b/e2e/fixtures/agent-channels/agent/channels/webhook.ts
@@ -1,5 +1,5 @@
import { defineChannel, POST } from "eve/channels";
-import target from "./target.js";
+import target from "./target";
/**
* Exercises the cross-channel `args.receive(channel, …)` path: the
diff --git a/e2e/fixtures/agent-channels/evals/custom-channels/cross-channel-receive.eval.ts b/e2e/fixtures/agent-channels/evals/custom-channels/cross-channel-receive.eval.ts
index 353d2ce49..4beaab683 100644
--- a/e2e/fixtures/agent-channels/evals/custom-channels/cross-channel-receive.eval.ts
+++ b/e2e/fixtures/agent-channels/evals/custom-channels/cross-channel-receive.eval.ts
@@ -1,7 +1,7 @@
import { defineEval } from "eve/evals";
import { satisfies } from "eve/evals/expect";
-import { postChannel } from "./shared.js";
+import { postChannel } from "./shared";
/**
* Custom-channel eval for cross-channel `args.receive` handoff.
diff --git a/e2e/fixtures/agent-channels/tsconfig.json b/e2e/fixtures/agent-channels/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-channels/tsconfig.json
+++ b/e2e/fixtures/agent-channels/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-model/tsconfig.json b/e2e/fixtures/agent-model/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-model/tsconfig.json
+++ b/e2e/fixtures/agent-model/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-openapi-swagger/tsconfig.json b/e2e/fixtures/agent-openapi-swagger/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-openapi-swagger/tsconfig.json
+++ b/e2e/fixtures/agent-openapi-swagger/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-schedules/agent/schedules/quiet-alerts.ts b/e2e/fixtures/agent-schedules/agent/schedules/quiet-alerts.ts
index 2eb8432d9..cdaf0c64a 100644
--- a/e2e/fixtures/agent-schedules/agent/schedules/quiet-alerts.ts
+++ b/e2e/fixtures/agent-schedules/agent/schedules/quiet-alerts.ts
@@ -1,6 +1,6 @@
import { defineSchedule } from "eve/schedules";
-import quietSink from "../channels/quiet-sink.js";
+import quietSink from "../channels/quiet-sink";
export default defineSchedule({
cron: "* * * * *",
diff --git a/e2e/fixtures/agent-schedules/tsconfig.json b/e2e/fixtures/agent-schedules/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-schedules/tsconfig.json
+++ b/e2e/fixtures/agent-schedules/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-session-limits/tsconfig.json b/e2e/fixtures/agent-session-limits/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-session-limits/tsconfig.json
+++ b/e2e/fixtures/agent-session-limits/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-skills/tsconfig.json b/e2e/fixtures/agent-skills/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-skills/tsconfig.json
+++ b/e2e/fixtures/agent-skills/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-subagents-hitl/tsconfig.json b/e2e/fixtures/agent-subagents-hitl/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-subagents-hitl/tsconfig.json
+++ b/e2e/fixtures/agent-subagents-hitl/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-subagents/tsconfig.json b/e2e/fixtures/agent-subagents/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-subagents/tsconfig.json
+++ b/e2e/fixtures/agent-subagents/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-tools-hitl/evals/hitl/approve-then-no-regate.eval.ts b/e2e/fixtures/agent-tools-hitl/evals/hitl/approve-then-no-regate.eval.ts
index 1adf6dff6..02b55aea0 100644
--- a/e2e/fixtures/agent-tools-hitl/evals/hitl/approve-then-no-regate.eval.ts
+++ b/e2e/fixtures/agent-tools-hitl/evals/hitl/approve-then-no-regate.eval.ts
@@ -1,6 +1,6 @@
import { defineEval } from "eve/evals";
-import { GUARDED_ECHO_TOKEN } from "./shared.js";
+import { GUARDED_ECHO_TOKEN } from "./shared";
/**
* HITL flow: `once()` approval semantics — a grant persists for the session,
diff --git a/e2e/fixtures/agent-tools-hitl/evals/hitl/text-approve.eval.ts b/e2e/fixtures/agent-tools-hitl/evals/hitl/text-approve.eval.ts
index 960650866..5ad2ff85c 100644
--- a/e2e/fixtures/agent-tools-hitl/evals/hitl/text-approve.eval.ts
+++ b/e2e/fixtures/agent-tools-hitl/evals/hitl/text-approve.eval.ts
@@ -1,6 +1,6 @@
import { defineEval } from "eve/evals";
-import { GUARDED_ECHO_TOKEN } from "./shared.js";
+import { GUARDED_ECHO_TOKEN } from "./shared";
/**
* HITL flow: a plain follow-up message whose text matches an approval option
diff --git a/e2e/fixtures/agent-tools-hitl/evals/hitl/unrelated-message-queued.eval.ts b/e2e/fixtures/agent-tools-hitl/evals/hitl/unrelated-message-queued.eval.ts
index 62787885e..2325bd472 100644
--- a/e2e/fixtures/agent-tools-hitl/evals/hitl/unrelated-message-queued.eval.ts
+++ b/e2e/fixtures/agent-tools-hitl/evals/hitl/unrelated-message-queued.eval.ts
@@ -1,6 +1,6 @@
import { defineEval } from "eve/evals";
-import { GUARDED_ECHO_TOKEN } from "./shared.js";
+import { GUARDED_ECHO_TOKEN } from "./shared";
/**
* HITL flow: unrelated text sent while an approval is pending must not deny
diff --git a/e2e/fixtures/agent-tools-hitl/tsconfig.json b/e2e/fixtures/agent-tools-hitl/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-tools-hitl/tsconfig.json
+++ b/e2e/fixtures/agent-tools-hitl/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-tools-sandbox/evals/sandbox/bash-curl-fanout.eval.ts b/e2e/fixtures/agent-tools-sandbox/evals/sandbox/bash-curl-fanout.eval.ts
index dbb89fa08..59bd24f0d 100644
--- a/e2e/fixtures/agent-tools-sandbox/evals/sandbox/bash-curl-fanout.eval.ts
+++ b/e2e/fixtures/agent-tools-sandbox/evals/sandbox/bash-curl-fanout.eval.ts
@@ -1,7 +1,7 @@
import type { HandleMessageStreamEvent } from "eve/client";
import { defineEval } from "eve/evals";
-import { FANOUT_DELAY_SERVER_URL } from "./shared.js";
+import { FANOUT_DELAY_SERVER_URL } from "./shared";
const BASH_TOOL = "bash";
const MINIMUM_CURL_CALLS = 10;
diff --git a/e2e/fixtures/agent-tools-sandbox/evals/sandbox/bootstrap.eval.ts b/e2e/fixtures/agent-tools-sandbox/evals/sandbox/bootstrap.eval.ts
index 7f072fce8..e1f7956fb 100644
--- a/e2e/fixtures/agent-tools-sandbox/evals/sandbox/bootstrap.eval.ts
+++ b/e2e/fixtures/agent-tools-sandbox/evals/sandbox/bootstrap.eval.ts
@@ -1,6 +1,6 @@
import { defineEval } from "eve/evals";
-import { BOOTSTRAP_MARKER_PATH, BOOTSTRAP_MARKER_TOKEN } from "./shared.js";
+import { BOOTSTRAP_MARKER_PATH, BOOTSTRAP_MARKER_TOKEN } from "./shared";
// The prompt directs the model to run the backticked `bash` command; a
// non-error result containing the marker token proves the bootstrap-written
diff --git a/e2e/fixtures/agent-tools-sandbox/evals/sandbox/cli-install.eval.ts b/e2e/fixtures/agent-tools-sandbox/evals/sandbox/cli-install.eval.ts
index 94740b4be..c1c88b27c 100644
--- a/e2e/fixtures/agent-tools-sandbox/evals/sandbox/cli-install.eval.ts
+++ b/e2e/fixtures/agent-tools-sandbox/evals/sandbox/cli-install.eval.ts
@@ -1,6 +1,6 @@
import { defineEval } from "eve/evals";
-import { SANDBOX_CLI_NAME, SANDBOX_CLI_TOKEN } from "./shared.js";
+import { SANDBOX_CLI_NAME, SANDBOX_CLI_TOKEN } from "./shared";
// `bootstrap` installed a custom Python CLI onto the PATH. Invoking it by
// name (no path) through the `bash` tool proves the bootstrap-provisioned
diff --git a/e2e/fixtures/agent-tools-sandbox/evals/sandbox/session-setup.eval.ts b/e2e/fixtures/agent-tools-sandbox/evals/sandbox/session-setup.eval.ts
index d0d743bf0..5b5f7fd9f 100644
--- a/e2e/fixtures/agent-tools-sandbox/evals/sandbox/session-setup.eval.ts
+++ b/e2e/fixtures/agent-tools-sandbox/evals/sandbox/session-setup.eval.ts
@@ -5,7 +5,7 @@ import {
SESSION_MARKER_TOKEN,
WORKSPACE_SEED_PATH,
WORKSPACE_SEED_TOKEN,
-} from "./shared.js";
+} from "./shared";
// Two session-scoped setup surfaces in one bash call:
// 1. `onSession` wrote SESSION_MARKER_PATH into this live session.
diff --git a/e2e/fixtures/agent-tools-sandbox/tsconfig.json b/e2e/fixtures/agent-tools-sandbox/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-tools-sandbox/tsconfig.json
+++ b/e2e/fixtures/agent-tools-sandbox/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-tools/agent/hooks/tool-result-narrowing.ts b/e2e/fixtures/agent-tools/agent/hooks/tool-result-narrowing.ts
index daf3ca4e4..14ff9d9e1 100644
--- a/e2e/fixtures/agent-tools/agent/hooks/tool-result-narrowing.ts
+++ b/e2e/fixtures/agent-tools/agent/hooks/tool-result-narrowing.ts
@@ -1,6 +1,6 @@
import { defineHook, type HookDefinition } from "eve/hooks";
import { toolResultFrom } from "eve/tools";
-import structuredEcho from "../tools/structured-echo.js";
+import structuredEcho from "../tools/structured-echo";
const hook: HookDefinition = defineHook({
events: {
diff --git a/e2e/fixtures/agent-tools/agent/tools/dynamic-channel-action-narration.ts b/e2e/fixtures/agent-tools/agent/tools/dynamic-channel-action-narration.ts
index f22f1fcce..29252d2eb 100644
--- a/e2e/fixtures/agent-tools/agent/tools/dynamic-channel-action-narration.ts
+++ b/e2e/fixtures/agent-tools/agent/tools/dynamic-channel-action-narration.ts
@@ -2,7 +2,7 @@ import { isChannel } from "eve/channels";
import { defineDynamic, defineTool } from "eve/tools";
import { z } from "zod";
-import actionNarration from "../channels/action-narration.js";
+import actionNarration from "../channels/action-narration";
/**
* Exposes the channel-side observation on the next model step after a streamed
diff --git a/e2e/fixtures/agent-tools/agent/tools/dynamic-channel-metadata.ts b/e2e/fixtures/agent-tools/agent/tools/dynamic-channel-metadata.ts
index 7f8f1bb1f..bf9019ec0 100644
--- a/e2e/fixtures/agent-tools/agent/tools/dynamic-channel-metadata.ts
+++ b/e2e/fixtures/agent-tools/agent/tools/dynamic-channel-metadata.ts
@@ -1,7 +1,7 @@
import { isChannel } from "eve/channels";
import { defineDynamic, defineTool } from "eve/tools";
import { z } from "zod";
-import metadataProvider from "../channels/metadata-provider.js";
+import metadataProvider from "../channels/metadata-provider";
/**
* Smoke-test fixture: resolves a tool only when the session was started
diff --git a/e2e/fixtures/agent-tools/evals/channel-metadata/anchored-no-topic.eval.ts b/e2e/fixtures/agent-tools/evals/channel-metadata/anchored-no-topic.eval.ts
index 141425203..09479bb45 100644
--- a/e2e/fixtures/agent-tools/evals/channel-metadata/anchored-no-topic.eval.ts
+++ b/e2e/fixtures/agent-tools/evals/channel-metadata/anchored-no-topic.eval.ts
@@ -2,7 +2,7 @@ import { randomBytes } from "node:crypto";
import { defineEval } from "eve/evals";
-import { METADATA_TOOL, PROMPT, startChannelSession } from "./shared.js";
+import { METADATA_TOOL, PROMPT, startChannelSession } from "./shared";
// The anchored channel's metadata has no `topic`, so the resolver
// returns null and no tool registers: the turn completes without a
diff --git a/e2e/fixtures/agent-tools/evals/dynamic-tools/echo.eval.ts b/e2e/fixtures/agent-tools/evals/dynamic-tools/echo.eval.ts
index 5a998c810..8090cd550 100644
--- a/e2e/fixtures/agent-tools/evals/dynamic-tools/echo.eval.ts
+++ b/e2e/fixtures/agent-tools/evals/dynamic-tools/echo.eval.ts
@@ -1,6 +1,6 @@
import { defineEval } from "eve/evals";
-import { DYNAMIC_ECHO_TOKEN, ECHO_TOOL } from "./shared.js";
+import { DYNAMIC_ECHO_TOKEN, ECHO_TOOL } from "./shared";
// defineDynamic resolves at session.started; the tool is called and
// returns the fixture token.
diff --git a/e2e/fixtures/agent-tools/evals/dynamic-tools/multi-turn.eval.ts b/e2e/fixtures/agent-tools/evals/dynamic-tools/multi-turn.eval.ts
index 8aff6e9b4..53c4dfd71 100644
--- a/e2e/fixtures/agent-tools/evals/dynamic-tools/multi-turn.eval.ts
+++ b/e2e/fixtures/agent-tools/evals/dynamic-tools/multi-turn.eval.ts
@@ -1,6 +1,6 @@
import { defineEval } from "eve/evals";
-import { DYNAMIC_ECHO_TOKEN, ECHO_TOOL } from "./shared.js";
+import { DYNAMIC_ECHO_TOKEN, ECHO_TOOL } from "./shared";
// The dynamic tool must survive serialization/deserialization (lazy
// replay of the resolver): both turns call it and see the token.
diff --git a/e2e/fixtures/agent-tools/evals/static-tools/fanout-authored.eval.ts b/e2e/fixtures/agent-tools/evals/static-tools/fanout-authored.eval.ts
index 30fcbd98b..1a113391b 100644
--- a/e2e/fixtures/agent-tools/evals/static-tools/fanout-authored.eval.ts
+++ b/e2e/fixtures/agent-tools/evals/static-tools/fanout-authored.eval.ts
@@ -5,7 +5,7 @@ import {
FANOUT_SIZE,
fanoutRequestsPrecedeFirstResult,
fanoutRequestsUseExpectedLabels,
-} from "./fanout.js";
+} from "./fanout";
const TOOL_NAME = "streamed-action";
const LABELS = [
diff --git a/e2e/fixtures/agent-tools/tsconfig.json b/e2e/fixtures/agent-tools/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-tools/tsconfig.json
+++ b/e2e/fixtures/agent-tools/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/agent-workflow-stress/tsconfig.json b/e2e/fixtures/agent-workflow-stress/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/agent-workflow-stress/tsconfig.json
+++ b/e2e/fixtures/agent-workflow-stress/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/extensions/tsconfig.json b/e2e/fixtures/extensions/tsconfig.json
index 66f5b1ea5..8e342f89c 100644
--- a/e2e/fixtures/extensions/tsconfig.json
+++ b/e2e/fixtures/extensions/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/gizmo-extension/tsconfig.json b/e2e/fixtures/gizmo-extension/tsconfig.json
index 96effa1f6..0f2d48ef3 100644
--- a/e2e/fixtures/gizmo-extension/tsconfig.json
+++ b/e2e/fixtures/gizmo-extension/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/e2e/fixtures/toolkit-extension/ext/tools/toolkit_budget.ts b/e2e/fixtures/toolkit-extension/ext/tools/toolkit_budget.ts
index e34a95dfc..cc8c33dce 100644
--- a/e2e/fixtures/toolkit-extension/ext/tools/toolkit_budget.ts
+++ b/e2e/fixtures/toolkit-extension/ext/tools/toolkit_budget.ts
@@ -2,7 +2,7 @@ import { defineState } from "eve/context";
import { defineTool } from "eve/tools";
import { z } from "zod";
-import { PROVIDER } from "../lib/brand.js";
+import { PROVIDER } from "../lib/brand";
// Bare "budget" name — eve namespaces it per package so it can't collide with
// another extension's identically-named state.
diff --git a/e2e/fixtures/toolkit-extension/ext/tools/toolkit_forecast.ts b/e2e/fixtures/toolkit-extension/ext/tools/toolkit_forecast.ts
index a0c2ab686..d2c053122 100644
--- a/e2e/fixtures/toolkit-extension/ext/tools/toolkit_forecast.ts
+++ b/e2e/fixtures/toolkit-extension/ext/tools/toolkit_forecast.ts
@@ -1,7 +1,7 @@
import { defineDynamic, defineTool } from "eve/tools";
import { z } from "zod";
-import { stamp } from "../lib/brand.js";
+import { stamp } from "../lib/brand";
// Dynamic capability authored inside an extension: the resolver registers a tool
// at session start that composes and runs once mounted.
diff --git a/e2e/fixtures/toolkit-extension/ext/tools/toolkit_lookup.ts b/e2e/fixtures/toolkit-extension/ext/tools/toolkit_lookup.ts
index ec9dfb95c..84adb43f4 100644
--- a/e2e/fixtures/toolkit-extension/ext/tools/toolkit_lookup.ts
+++ b/e2e/fixtures/toolkit-extension/ext/tools/toolkit_lookup.ts
@@ -1,7 +1,7 @@
import { defineTool } from "eve/tools";
import { z } from "zod";
-import extension from "../extension.js";
+import extension from "../extension";
export default defineTool({
description:
diff --git a/e2e/fixtures/toolkit-extension/tsconfig.json b/e2e/fixtures/toolkit-extension/tsconfig.json
index 96effa1f6..0f2d48ef3 100644
--- a/e2e/fixtures/toolkit-extension/tsconfig.json
+++ b/e2e/fixtures/toolkit-extension/tsconfig.json
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"outDir": "dist",
"rootDir": ".",
"strict": true,
diff --git a/packages/eve/src/internal/testing/scenario-apps/sandbox-bundling.ts b/packages/eve/src/internal/testing/scenario-apps/sandbox-bundling.ts
index 5e3a32a8c..66fa8356f 100644
--- a/packages/eve/src/internal/testing/scenario-apps/sandbox-bundling.ts
+++ b/packages/eve/src/internal/testing/scenario-apps/sandbox-bundling.ts
@@ -31,8 +31,8 @@ export default eveChannel({ auth: none() });
"compilerOptions": {
"target": "ES2024",
"lib": ["ES2024"],
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"moduleDetection": "force",
"verbatimModuleSyntax": true,
"noEmit": true,
diff --git a/packages/eve/src/internal/testing/scenario-apps/tool-overrides.ts b/packages/eve/src/internal/testing/scenario-apps/tool-overrides.ts
index a27a3b977..789676221 100644
--- a/packages/eve/src/internal/testing/scenario-apps/tool-overrides.ts
+++ b/packages/eve/src/internal/testing/scenario-apps/tool-overrides.ts
@@ -80,8 +80,8 @@ export default disableTool();
"compilerOptions": {
"target": "ES2024",
"lib": ["ES2024"],
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"moduleDetection": "force",
"verbatimModuleSyntax": true,
"noEmit": true,
diff --git a/packages/eve/src/internal/testing/scenario-apps/verbose-bundling.ts b/packages/eve/src/internal/testing/scenario-apps/verbose-bundling.ts
index b74debd46..326b90595 100644
--- a/packages/eve/src/internal/testing/scenario-apps/verbose-bundling.ts
+++ b/packages/eve/src/internal/testing/scenario-apps/verbose-bundling.ts
@@ -71,8 +71,8 @@ export default defineTool({
"compilerOptions": {
"target": "ES2024",
"lib": ["ES2024"],
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"moduleDetection": "force",
"verbatimModuleSyntax": true,
"noEmit": true,
diff --git a/packages/eve/src/internal/testing/scenario-apps/weather-agent.ts b/packages/eve/src/internal/testing/scenario-apps/weather-agent.ts
index 99729327b..9df1ccdde 100644
--- a/packages/eve/src/internal/testing/scenario-apps/weather-agent.ts
+++ b/packages/eve/src/internal/testing/scenario-apps/weather-agent.ts
@@ -144,9 +144,9 @@ const WEATHER_TSCONFIG_SOURCE = `${JSON.stringify(
forceConsistentCasingInFileNames: true,
isolatedModules: true,
lib: ["ES2024"],
- module: "NodeNext",
+ module: "esnext",
moduleDetection: "force",
- moduleResolution: "NodeNext",
+ moduleResolution: "bundler",
noEmit: true,
noFallthroughCasesInSwitch: true,
noImplicitOverride: true,
diff --git a/packages/eve/src/setup/scaffold/create/project.ts b/packages/eve/src/setup/scaffold/create/project.ts
index 1b5068686..ceeab2b47 100644
--- a/packages/eve/src/setup/scaffold/create/project.ts
+++ b/packages/eve/src/setup/scaffold/create/project.ts
@@ -229,8 +229,8 @@ const SHARED_TEMPLATE_FILES: Record<string, string> = {
"tsconfig.json": `{
"compilerOptions": {
"target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
+ "module": "esnext",
+ "moduleResolution": "bundler",
"types": ["node"],
"strict": true,
"esModuleInterop": true,