File tree Expand file tree Collapse file tree 7 files changed +14
-7
lines changed Expand file tree Collapse file tree 7 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,23 @@ COPY package.json pnpm-lock.yaml tsconfig.json ./
8
8
# Copy source code
9
9
COPY src ./src
10
10
11
+ # Copy config files
12
+ COPY config.d.ts index.d.ts ./
13
+
11
14
# Install dependencies and build
12
15
RUN corepack enable && pnpm install --frozen-lockfile && pnpm build
13
16
14
17
# ----- Production Stage -----
15
18
FROM node:lts-alpine
16
19
WORKDIR /app
17
20
21
+ # Copy package.json and install production dependencies
22
+ COPY package.json pnpm-lock.yaml ./
23
+ RUN corepack enable && pnpm install --prod --frozen-lockfile --ignore-scripts
24
+
18
25
# Copy built artifacts and required files
19
26
COPY --from=builder /app/dist ./dist
20
- COPY index.js config.d.ts index.d.ts cli.js ./
27
+ COPY index.js config.d.ts index.d.ts cli.js ./
21
28
22
29
# Expose HTTP port
23
30
EXPOSE 8080
Original file line number Diff line number Diff line change 1
1
import type { Cookie } from "playwright-core" ;
2
- import type { Config } from "../config.js " ;
2
+ import type { Config } from "../config.d.ts " ;
3
3
import { AvailableModelSchema } from "@browserbasehq/stagehand" ;
4
4
5
5
export type ToolCapability = "core" | string ;
Original file line number Diff line number Diff line change 1
1
import type { Stagehand } from "@browserbasehq/stagehand" ;
2
2
import { Server } from "@modelcontextprotocol/sdk/server/index.js" ;
3
- import type { Config } from "../config.js " ;
3
+ import type { Config } from "../config.d.ts " ;
4
4
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
5
5
import { listResources , readResource } from "./mcp/resources.js" ;
6
6
import { getSession , defaultSessionId } from "./sessionManager.js" ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { z } from "zod";
6
6
import type { MCPToolsArray } from "./types/types.js" ;
7
7
8
8
import { Context } from "./context.js" ;
9
- import type { Config } from "../config.js " ;
9
+ import type { Config } from "../config.d.ts " ;
10
10
import { TOOLS } from "./tools/index.js" ;
11
11
import { AvailableModelSchema } from "@browserbasehq/stagehand" ;
12
12
import { PROMPTS , getPrompt } from "./mcp/prompts.js" ;
Original file line number Diff line number Diff line change 1
1
import { Page } from "playwright-core" ;
2
2
import { BrowserContext } from "@browserbasehq/stagehand" ;
3
- import type { Config } from "../config.js " ;
3
+ import type { Config } from "../config.d.ts " ;
4
4
import type { Cookie } from "playwright-core" ;
5
5
import { createStagehandInstance } from "./stagehandStore.js" ;
6
6
import type { BrowserSession } from "./types/types.js" ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { randomUUID } from "crypto";
2
2
import { Stagehand , AvailableModel } from "@browserbasehq/stagehand" ;
3
3
import { Page } from "playwright-core" ;
4
4
import { StagehandSession , CreateSessionParams } from "./types/types.js" ;
5
- import type { Config } from "../config.js " ;
5
+ import type { Config } from "../config.d.ts " ;
6
6
7
7
// Store for all active sessions
8
8
const store = new Map < string , StagehandSession > ( ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import crypto from "node:crypto";
5
5
import { ServerList } from "./server.js" ;
6
6
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js" ;
7
7
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js" ;
8
- import type { Config } from "../config.js " ;
8
+ import type { Config } from "../config.d.ts " ;
9
9
10
10
export async function startStdioTransport (
11
11
serverList : ServerList ,
You can’t perform that action at this time.
0 commit comments