Enhance refactor commands with controller-aware Route() updates and fix code quality violations

Add semantic token highlighting for 'that' variable and comment file references in VS Code extension
Add Phone_Text_Input and Currency_Input components with formatting utilities
Implement client widgets, form standardization, and soft delete functionality
Add modal scroll lock and update documentation
Implement comprehensive modal system with form integration and validation
Fix modal component instantiation using jQuery plugin API
Implement modal system with responsive sizing, queuing, and validation support
Implement form submission with validation, error handling, and loading states
Implement country/state selectors with dynamic data loading and Bootstrap styling
Revert Rsx::Route() highlighting in Blade/PHP files
Target specific PHP scopes for Rsx::Route() highlighting in Blade
Expand injection selector for Rsx::Route() highlighting
Add custom syntax highlighting for Rsx::Route() and Rsx.Route() calls
Update jqhtml packages to v2.2.165
Add bundle path validation for common mistakes (development mode only)
Create Ajax_Select_Input widget and Rsx_Reference_Data controller
Create Country_Select_Input widget with default country support
Initialize Tom Select on Select_Input widgets
Add Tom Select bundle for enhanced select dropdowns
Implement ISO 3166 geographic data system for country/region selection
Implement widget-based form system with disabled state support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-30 06:21:56 +00:00
parent e678b987c2
commit f6ac36c632
5683 changed files with 5854736 additions and 22329 deletions

View File

@@ -46,6 +46,13 @@ var testServer = __toESM(require("./runner/testServer"));
var import_watchMode = require("./runner/watchMode");
var import_testRunner = require("./runner/testRunner");
var import_reporters = require("./runner/reporters");
var import_exports = require("./mcp/sdk/exports");
var import_testBackend = require("./mcp/test/testBackend");
var import_seed = require("./mcp/test/seed");
var import_program3 = require("./mcp/program");
var import_watchdog = require("./mcp/browser/watchdog");
var import_generateAgents = require("./agents/generateAgents");
const packageJSON = require("../package.json");
function addTestCommand(program3) {
const command = program3.command("test [test-filter...]");
command.description("run tests with Playwright Test");
@@ -139,6 +146,60 @@ Arguments [dir]:
Examples:
$ npx playwright merge-reports playwright-report`);
}
function addBrowserMCPServerCommand(program3) {
const command = program3.command("run-mcp-server", { hidden: true });
command.description("Interact with the browser over MCP");
(0, import_program3.decorateCommand)(command, packageJSON.version);
}
function addTestMCPServerCommand(program3) {
const command = program3.command("run-test-mcp-server", { hidden: true });
command.description("Interact with the test runner over MCP");
command.option("--headless", "run browser in headless mode, headed by default");
command.option("-c, --config <file>", `Configuration file, or a test directory with optional "playwright.config.{m,c}?{js,ts}"`);
command.option("--host <host>", "host to bind server to. Default is localhost. Use 0.0.0.0 to bind to all interfaces.");
command.option("--port <port>", "port to listen on for SSE transport.");
command.action(async (options) => {
(0, import_watchdog.setupExitWatchdog)();
const backendFactory = {
name: "Playwright Test Runner",
nameInConfig: "playwright-test-runner",
version: packageJSON.version,
create: () => new import_testBackend.TestServerBackend(options.config, { muteConsole: options.port === void 0, headless: options.headless })
};
const mdbUrl = await (0, import_exports.runMainBackend)(
backendFactory,
{
port: options.port === void 0 ? void 0 : +options.port
}
);
if (mdbUrl)
console.error("MCP Listening on: ", mdbUrl);
});
}
function addInitAgentsCommand(program3) {
const command = program3.command("init-agents");
command.description("Initialize repository agents");
const option = command.createOption("--loop <loop>", "Agentic loop provider");
option.choices(["vscode", "claude", "opencode"]);
command.addOption(option);
command.option("-c, --config <file>", `Configuration file to find a project to use for seed test`);
command.option("--project <project>", "Project to use for seed test");
command.action(async (opts) => {
if (opts.loop === "opencode") {
await (0, import_generateAgents.initOpencodeRepo)();
} else if (opts.loop === "vscode") {
await (0, import_generateAgents.initVSCodeRepo)();
} else if (opts.loop === "claude") {
await (0, import_generateAgents.initClaudeCodeRepo)();
} else {
command.help();
return;
}
const config = await (0, import_configLoader.loadConfigFromFile)(opts.config);
const project = (0, import_seed.seedProject)(config, opts.project);
await (0, import_seed.ensureSeedTest)(project, true);
});
}
async function runTests(args, opts) {
await (0, import_utils.startProfiling)();
const cliOverrides = overridesFromOptions(opts);
@@ -151,6 +212,8 @@ async function runTests(args, opts) {
config.cliProjectFilter = opts.project || void 0;
config.cliPassWithNoTests = !!opts.passWithNoTests;
config.cliLastFailed = !!opts.lastFailed;
config.cliTestList = opts.testList ? import_path.default.resolve(process.cwd(), opts.testList) : void 0;
config.cliTestListInvert = opts.testListInvert ? import_path.default.resolve(process.cwd(), opts.testListInvert) : void 0;
(0, import_projectUtils.filterProjects)(config.projects, config.cliProjectFilter);
if (opts.ui || opts.uiHost || opts.uiPort) {
if (opts.onlyChanged)
@@ -321,6 +384,8 @@ const testOptions = [
["--reporter <reporter>", { description: `Reporter to use, comma-separated, can be ${import_config.builtInReporters.map((name) => `"${name}"`).join(", ")} (default: "${import_config.defaultReporter}")` }],
["--retries <retries>", { description: `Maximum retry count for flaky tests, zero for no retries (default: no retries)` }],
["--shard <shard>", { description: `Shard tests and execute only the selected shard, specify in the form "current/all", 1-based, for example "3/5"` }],
["--test-list <file>", { description: `Path to a file containing a list of tests to run. See https://playwright.dev/docs/test-cli for more details.` }],
["--test-list-invert <file>", { description: `Path to a file containing a list of tests to skip. See https://playwright.dev/docs/test-cli for more details.` }],
["--timeout <timeout>", { description: `Specify test timeout threshold in milliseconds, zero for unlimited (default: ${import_config.defaultTimeout})` }],
["--trace <mode>", { description: `Force tracing mode`, choices: kTraceModes }],
["--tsconfig <path>", { description: `Path to a single tsconfig applicable to all imported files (default: look up tsconfig for each imported file separately)` }],
@@ -336,8 +401,11 @@ addTestCommand(import_program.program);
addShowReportCommand(import_program.program);
addMergeReportsCommand(import_program.program);
addClearCacheCommand(import_program.program);
addBrowserMCPServerCommand(import_program.program);
addTestMCPServerCommand(import_program.program);
addDevServerCommand(import_program.program);
addTestServerCommand(import_program.program);
addInitAgentsCommand(import_program.program);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
program