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 ./
88# Copy source code
99COPY src ./src
1010
11+ # Copy config files
12+ COPY config.d.ts index.d.ts ./
13+
1114# Install dependencies and build
1215RUN corepack enable && pnpm install --frozen-lockfile && pnpm build
1316
1417# ----- Production Stage -----
1518FROM node:lts-alpine
1619WORKDIR /app
1720
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+
1825# Copy built artifacts and required files
1926COPY --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 ./
2128
2229# Expose HTTP port
2330EXPOSE 8080
Original file line number Diff line number Diff line change 11import type { Cookie } from "playwright-core" ;
2- import type { Config } from "../config.js " ;
2+ import type { Config } from "../config.d.ts " ;
33import { AvailableModelSchema } from "@browserbasehq/stagehand" ;
44
55export type ToolCapability = "core" | string ;
Original file line number Diff line number Diff line change 11import type { Stagehand } from "@browserbasehq/stagehand" ;
22import { Server } from "@modelcontextprotocol/sdk/server/index.js" ;
3- import type { Config } from "../config.js " ;
3+ import type { Config } from "../config.d.ts " ;
44import { CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
55import { listResources , readResource } from "./mcp/resources.js" ;
66import { getSession , defaultSessionId } from "./sessionManager.js" ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { z } from "zod";
66import type { MCPToolsArray } from "./types/types.js" ;
77
88import { Context } from "./context.js" ;
9- import type { Config } from "../config.js " ;
9+ import type { Config } from "../config.d.ts " ;
1010import { TOOLS } from "./tools/index.js" ;
1111import { AvailableModelSchema } from "@browserbasehq/stagehand" ;
1212import { PROMPTS , getPrompt } from "./mcp/prompts.js" ;
Original file line number Diff line number Diff line change 11import { Page } from "playwright-core" ;
22import { BrowserContext } from "@browserbasehq/stagehand" ;
3- import type { Config } from "../config.js " ;
3+ import type { Config } from "../config.d.ts " ;
44import type { Cookie } from "playwright-core" ;
55import { createStagehandInstance } from "./stagehandStore.js" ;
66import type { BrowserSession } from "./types/types.js" ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { randomUUID } from "crypto";
22import { Stagehand , AvailableModel } from "@browserbasehq/stagehand" ;
33import { Page } from "playwright-core" ;
44import { StagehandSession , CreateSessionParams } from "./types/types.js" ;
5- import type { Config } from "../config.js " ;
5+ import type { Config } from "../config.d.ts " ;
66
77// Store for all active sessions
88const store = new Map < string , StagehandSession > ( ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import crypto from "node:crypto";
55import { ServerList } from "./server.js" ;
66import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js" ;
77import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js" ;
8- import type { Config } from "../config.js " ;
8+ import type { Config } from "../config.d.ts " ;
99
1010export async function startStdioTransport (
1111 serverList : ServerList ,
You can’t perform that action at this time.
0 commit comments