Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: roll tiny loop to v0.0.10 (#38322)
Pavel Feldman4c65ab3df5f1
diff --git a/package-lock.json b/package-lock.jsonindex b48679fcc8..123cd4290d 100644--- a/package-lock.json+++ b/package-lock.json@@ -54,7 +54,7 @@"react": "^19.1.1","react-dom": "^19.1.1","ssim.js": "^3.5.0",- "tiny-loop": "^0.0.6",+ "tiny-loop": "^0.0.10","typescript": "^5.9.2","vite": "^6.4.1","ws": "^8.17.1",@@ -7391,9 +7391,9 @@}},"node_modules/tiny-loop": {- "version": "0.0.6",- "resolved": "https://registry.npmjs.org/tiny-loop/-/tiny-loop-0.0.6.tgz",- "integrity": "sha512-rzNqgjcNwp/MDh7XDPrgXxqjSpxcKUwDYDHRPDca7QP8FKwH8YSImhtzZkkbASps3JYW5WE1AfAhmaqNOVWrMw==",+ "version": "0.0.10",+ "resolved": "https://registry.npmjs.org/tiny-loop/-/tiny-loop-0.0.10.tgz",+ "integrity": "sha512-fvByv8Q3kaj6RzONh8W9nAkvDx3pjU/J9qc5aLAoZBq382iKL2UiQCMqZF+vorNz9z3GkQkkh4zxGM1A4/h/xQ==","dev": true,"license": "Apache-2.0","engines": {diff --git a/package.json b/package.jsonindex 040d814f77..e5289cf10b 100644--- a/package.json+++ b/package.json@@ -93,7 +93,7 @@"react": "^19.1.1","react-dom": "^19.1.1","ssim.js": "^3.5.0",- "tiny-loop": "^0.0.6",+ "tiny-loop": "^0.0.10","typescript": "^5.9.2","vite": "^6.4.1","ws": "^8.17.1",diff --git a/packages/playwright/ThirdPartyNotices.txt b/packages/playwright/ThirdPartyNotices.txtindex 1c67672f8b..238250e8ba 100644--- a/packages/playwright/ThirdPartyNotices.txt+++ b/packages/playwright/ThirdPartyNotices.txt@@ -207,7 +207,7 @@ This project incorporates components from the projects listed below. The origina- [email protected] (https://github.com/jshttp/statuses)- [email protected] (https://github.com/hunterloftis/stoppable)- [email protected] (https://github.com/chalk/supports-color)-- [email protected] (https://github.com/pavelfeldman/tiny-loop)+- [email protected] (https://github.com/pavelfeldman/tiny-loop)- [email protected] (https://github.com/micromatch/to-regex-range)- [email protected] (https://github.com/component/toidentifier)- [email protected] (https://github.com/jshttp/type-is)@@ -5884,7 +5884,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI=========================================END OF [email protected] AND INFORMATION-%% [email protected] NOTICES AND INFORMATION BEGIN HERE+%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================Apache LicenseVersion 2.0, January 2004@@ -6088,7 +6088,7 @@ Apache LicenseSee the License for the specific language governing permissions andlimitations under the License.=========================================-END OF [email protected] AND INFORMATION+END OF [email protected] AND INFORMATION%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================diff --git a/packages/playwright/bundles/mcp/package-lock.json b/packages/playwright/bundles/mcp/package-lock.jsonindex 4efc9cc345..a41af9efa5 100644--- a/packages/playwright/bundles/mcp/package-lock.json+++ b/packages/playwright/bundles/mcp/package-lock.json@@ -9,7 +9,7 @@"version": "0.0.1","dependencies": {"@modelcontextprotocol/sdk": "^1.17.5",- "tiny-loop": "^0.0.6",+ "tiny-loop": "^0.0.10","zod": "^3.25.76","zod-to-json-schema": "^3.24.6"}@@ -316,6 +316,7 @@"resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz","integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==","license": "MIT",+ "peer": true,"dependencies": {"accepts": "^2.0.0","body-parser": "^2.2.0",@@ -960,9 +961,9 @@}},"node_modules/tiny-loop": {- "version": "0.0.6",- "resolved": "https://registry.npmjs.org/tiny-loop/-/tiny-loop-0.0.6.tgz",- "integrity": "sha512-rzNqgjcNwp/MDh7XDPrgXxqjSpxcKUwDYDHRPDca7QP8FKwH8YSImhtzZkkbASps3JYW5WE1AfAhmaqNOVWrMw==",+ "version": "0.0.10",+ "resolved": "https://registry.npmjs.org/tiny-loop/-/tiny-loop-0.0.10.tgz",+ "integrity": "sha512-fvByv8Q3kaj6RzONh8W9nAkvDx3pjU/J9qc5aLAoZBq382iKL2UiQCMqZF+vorNz9z3GkQkkh4zxGM1A4/h/xQ==","license": "Apache-2.0","engines": {"node": ">=20"@@ -1044,6 +1045,7 @@"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz","integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==","license": "MIT",+ "peer": true,"funding": {"url": "https://github.com/sponsors/colinhacks"}diff --git a/packages/playwright/bundles/mcp/package.json b/packages/playwright/bundles/mcp/package.jsonindex 785e006301..1a31390c90 100644--- a/packages/playwright/bundles/mcp/package.json+++ b/packages/playwright/bundles/mcp/package.json@@ -4,7 +4,7 @@"private": true,"dependencies": {"@modelcontextprotocol/sdk": "^1.17.5",- "tiny-loop": "^0.0.6",+ "tiny-loop": "^0.0.10","zod": "^3.25.76","zod-to-json-schema": "^3.24.6"}diff --git a/packages/playwright/src/agents/agent.ts b/packages/playwright/src/agents/agent.tsindex c7f7a97e99..923a674ae3 100644--- a/packages/playwright/src/agents/agent.ts+++ b/packages/playwright/src/agents/agent.ts@@ -18,8 +18,8 @@ import { Loop } from '../mcp/sdk/bundle';import type z from 'zod';import type { Client } from '@modelcontextprotocol/sdk/client/index.js';-import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types.js';-import type { Loop as LoopType } from 'tiny-loop';+import type { Tool } from '@modelcontextprotocol/sdk/types.js';+import type * as tinyLoop from 'tiny-loop';type Logger = (category: string, text: string, details?: string) => void;@@ -34,7 +34,7 @@ export type AgentSpec = {};export class Agent<T extends z.ZodSchema<any>> {- readonly loop: LoopType;+ readonly loop: tinyLoop.Loop;readonly spec: AgentSpec;readonly clients: Map<string, Client>;readonly resultSchema: Tool['inputSchema'];@@ -80,12 +80,12 @@ export class Agent<T extends z.ZodSchema<any>> {if (agentToolNames.size > 0)throw new Error(`Required tools not found: ${Array.from(agentToolNames).join(', ')}`);- const callTool: (params: { name: string, arguments: any}) => Promise<CallToolResult> = async params => {+ const callTool: (params: { name: string, arguments: any}) => Promise<tinyLoop.ToolResult> = async params => {const [serverName, toolName] = params.name.split('__');const client = clients[serverName];if (!client)throw new Error(`Unknown server: ${serverName}`);- return await client.callTool({ name: toolName, arguments: params.arguments }) as CallToolResult;+ return await client.callTool({ name: toolName, arguments: params.arguments }) as tinyLoop.ToolResult;};return { clients, tools, callTool };}diff --git a/packages/playwright/src/agents/performTask.ts b/packages/playwright/src/agents/performTask.tsindex 78aecebd54..df11ef6378 100644--- a/packages/playwright/src/agents/performTask.ts+++ b/packages/playwright/src/agents/performTask.ts@@ -23,15 +23,15 @@ import { Loop } from '../mcp/sdk/bundle';import { wrapInClient } from '../mcp/sdk/server';import type * as playwright from 'playwright-core';-import type { CallToolResult } from '@modelcontextprotocol/sdk/types';+import type * as tinyLoop from 'tiny-loop';export async function performTask(context: playwright.BrowserContext, task: string) {const backend = new BrowserServerBackend(defaultConfig, identityBrowserContextFactory(context));const client = await wrapInClient(backend, { name: 'Internal', version: '0.0.0' });const loop = new Loop('copilot');- const callTool: (params: { name: string, arguments: any}) => Promise<CallToolResult> = async params => {- return await client.callTool(params) as CallToolResult;+ const callTool: (params: { name: string, arguments: any}) => Promise<tinyLoop.ToolResult> = async params => {+ return await client.callTool(params) as tinyLoop.ToolResult;};try {