ptywright 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.mjs +1 -1
- package/dist/bin/ptywright.mjs +1 -1
- package/dist/{cli-uj8xaanE.mjs → cli-DVDqUtha.mjs} +2 -2
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/mcp.mjs +1 -1
- package/dist/{runner-RhWYhus1.mjs → runner-1gYMz8D5.mjs} +42 -2
- package/dist/{server-B4Bbuluz.mjs → server-OujH4CEo.mjs} +1 -1
- package/package.json +1 -1
package/dist/agent.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as formatAgentLaunchPlan, i as runAgentSpecPath, n as replayAgentRecordPath, r as runAgentSpec, t as defaultSpecNameForPath } from "./runner-
|
|
1
|
+
import { a as formatAgentLaunchPlan, i as runAgentSpecPath, n as replayAgentRecordPath, r as runAgentSpec, t as defaultSpecNameForPath } from "./runner-1gYMz8D5.mjs";
|
|
2
2
|
export { defaultSpecNameForPath, formatAgentLaunchPlan, replayAgentRecordPath, runAgentSpec, runAgentSpecPath };
|
package/dist/bin/ptywright.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as loadPtywrightConfig } from "./config-bGg636EW.mjs";
|
|
2
|
-
import { C as writeAgentManifestPath, D as escapeHtml, E as escapeAttribute, O as normalizeAgentFlowSpec, S as validateAgentManifestFiles, T as readAgentCassettePath, _ as formatArgv, b as isAgentManifestLike, c as launchAgentBrowser, d as AGENT_RUN_RECORD_SCHEMA_URL, f as agentRunModeSchema, g as writeAgentRunRecordPath, h as readAgentRunRecordPath, i as runAgentSpecPath, k as sanitizeArtifactName, l as createAgentTemplateSpec, m as isAgentRunRecordLike, n as replayAgentRecordPath, o as resolveAgentLaunchTarget, p as formatAgentArgv, s as normalizeAgentFlowSpecWithConfig, u as loadAgentSpec, v as AGENT_MANIFEST_FILE_NAME, w as isAgentCassetteLike, x as readAgentManifestPath, y as agentManifestPath } from "./runner-
|
|
2
|
+
import { C as writeAgentManifestPath, D as escapeHtml, E as escapeAttribute, O as normalizeAgentFlowSpec, S as validateAgentManifestFiles, T as readAgentCassettePath, _ as formatArgv, b as isAgentManifestLike, c as launchAgentBrowser, d as AGENT_RUN_RECORD_SCHEMA_URL, f as agentRunModeSchema, g as writeAgentRunRecordPath, h as readAgentRunRecordPath, i as runAgentSpecPath, k as sanitizeArtifactName, l as createAgentTemplateSpec, m as isAgentRunRecordLike, n as replayAgentRecordPath, o as resolveAgentLaunchTarget, p as formatAgentArgv, s as normalizeAgentFlowSpecWithConfig, u as loadAgentSpec, v as AGENT_MANIFEST_FILE_NAME, w as isAgentCassetteLike, x as readAgentManifestPath, y as agentManifestPath } from "./runner-1gYMz8D5.mjs";
|
|
3
3
|
import { a as sameArgv, i as diffCommandMaps, r as formatZodIssues } from "./manifest_files-DW80c1H7.mjs";
|
|
4
4
|
import { i as portableCliPath, n as mergeProcessEnv, o as relativeHref, s as samePath } from "./env-DPYHo-zH.mjs";
|
|
5
5
|
import { d as resolvePtyBackend, u as createDefaultPtyAdapter } from "./runner-BHXXwxYp.mjs";
|
|
6
|
-
import { a as resolveScriptManifestPath, c as relocateScriptManifestCommands, d as resolveScriptRunSummaryPath, f as runScriptPath, i as readScriptManifestPath, l as resolveManifestPrimaryPath$1, n as runAllScripts, o as validateScriptManifest, r as findScriptSummaryManifest, t as createPtywrightServer, u as readScriptRunSummaryPath } from "./server-
|
|
6
|
+
import { a as resolveScriptManifestPath, c as relocateScriptManifestCommands, d as resolveScriptRunSummaryPath, f as runScriptPath, i as readScriptManifestPath, l as resolveManifestPrimaryPath$1, n as runAllScripts, o as validateScriptManifest, r as findScriptSummaryManifest, t as createPtywrightServer, u as readScriptRunSummaryPath } from "./server-OujH4CEo.mjs";
|
|
7
7
|
import { c as createPtyCassetteReplay, i as formatPtyCassetteInspectLines, l as readPtyCassettePath, o as inspectPtyCassettePath, r as createPtyCassetteRecorder, t as wrapPtyLike, v as validatePtyCassette } from "./pty_like-DWIlWGgA.mjs";
|
|
8
8
|
import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { basename, dirname, extname, isAbsolute, join, relative, resolve } from "node:path";
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as main } from "./cli-
|
|
1
|
+
import { t as main } from "./cli-DVDqUtha.mjs";
|
|
2
2
|
export { main };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createPtywrightServer } from "./server-
|
|
1
|
+
import { t as createPtywrightServer } from "./server-OujH4CEo.mjs";
|
|
2
2
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
const { server, sessions } = createPtywrightServer();
|
package/dist/mcp.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createPtywrightServer } from "./server-
|
|
1
|
+
import { t as createPtywrightServer } from "./server-OujH4CEo.mjs";
|
|
2
2
|
export { createPtywrightServer };
|
|
@@ -2216,6 +2216,7 @@ function renderAgentReportArtifactsCss() {
|
|
|
2216
2216
|
return ` .artifacts {
|
|
2217
2217
|
display: grid;
|
|
2218
2218
|
gap: 14px;
|
|
2219
|
+
min-width: 0;
|
|
2219
2220
|
}
|
|
2220
2221
|
.artifact {
|
|
2221
2222
|
display: grid;
|
|
@@ -2224,12 +2225,14 @@ function renderAgentReportArtifactsCss() {
|
|
|
2224
2225
|
border-radius: 8px;
|
|
2225
2226
|
padding: 12px;
|
|
2226
2227
|
background: var(--panel);
|
|
2228
|
+
min-width: 0;
|
|
2227
2229
|
}
|
|
2228
2230
|
.artifact-summary {
|
|
2229
2231
|
display: grid;
|
|
2230
|
-
grid-template-columns: auto minmax(0, 1fr) minmax(
|
|
2232
|
+
grid-template-columns: auto minmax(0, 1fr) minmax(0, auto);
|
|
2231
2233
|
gap: 14px;
|
|
2232
2234
|
align-items: start;
|
|
2235
|
+
min-width: 0;
|
|
2233
2236
|
}
|
|
2234
2237
|
.artifact-meta {
|
|
2235
2238
|
display: grid;
|
|
@@ -2240,19 +2243,23 @@ function renderAgentReportArtifactsCss() {
|
|
|
2240
2243
|
display: flex;
|
|
2241
2244
|
flex-wrap: wrap;
|
|
2242
2245
|
gap: 8px 12px;
|
|
2246
|
+
min-width: 0;
|
|
2243
2247
|
}
|
|
2244
2248
|
.artifact a {
|
|
2245
2249
|
color: var(--focus);
|
|
2246
2250
|
font-weight: 700;
|
|
2247
2251
|
text-decoration: none;
|
|
2252
|
+
overflow-wrap: anywhere;
|
|
2248
2253
|
}
|
|
2249
2254
|
.artifact code {
|
|
2250
2255
|
color: var(--muted);
|
|
2251
2256
|
overflow-wrap: anywhere;
|
|
2257
|
+
min-width: 0;
|
|
2252
2258
|
}
|
|
2253
2259
|
.artifact-hash {
|
|
2254
2260
|
justify-self: end;
|
|
2255
2261
|
text-align: right;
|
|
2262
|
+
max-width: 100%;
|
|
2256
2263
|
}
|
|
2257
2264
|
.badge {
|
|
2258
2265
|
justify-self: start;
|
|
@@ -2307,6 +2314,7 @@ function renderAgentReportBaseCss() {
|
|
|
2307
2314
|
margin: 0;
|
|
2308
2315
|
background: var(--bg);
|
|
2309
2316
|
color: var(--ink);
|
|
2317
|
+
overflow-wrap: anywhere;
|
|
2310
2318
|
}
|
|
2311
2319
|
main {
|
|
2312
2320
|
display: grid;
|
|
@@ -2314,6 +2322,10 @@ function renderAgentReportBaseCss() {
|
|
|
2314
2322
|
width: min(1180px, calc(100vw - 32px));
|
|
2315
2323
|
margin: 0 auto;
|
|
2316
2324
|
padding: 32px 0 48px;
|
|
2325
|
+
min-width: 0;
|
|
2326
|
+
}
|
|
2327
|
+
main > * {
|
|
2328
|
+
min-width: 0;
|
|
2317
2329
|
}
|
|
2318
2330
|
header {
|
|
2319
2331
|
display: grid;
|
|
@@ -2322,27 +2334,37 @@ function renderAgentReportBaseCss() {
|
|
|
2322
2334
|
align-items: start;
|
|
2323
2335
|
border-bottom: 1px solid var(--line);
|
|
2324
2336
|
padding-bottom: 24px;
|
|
2337
|
+
min-width: 0;
|
|
2338
|
+
}
|
|
2339
|
+
header > * {
|
|
2340
|
+
min-width: 0;
|
|
2325
2341
|
}
|
|
2326
2342
|
h1 {
|
|
2327
2343
|
margin: 0;
|
|
2328
2344
|
font-size: 28px;
|
|
2329
2345
|
line-height: 1.15;
|
|
2330
2346
|
letter-spacing: 0;
|
|
2347
|
+
max-width: 100%;
|
|
2348
|
+
overflow-wrap: anywhere;
|
|
2331
2349
|
}
|
|
2332
2350
|
h2 {
|
|
2333
2351
|
margin: 0;
|
|
2334
2352
|
font-size: 18px;
|
|
2335
2353
|
line-height: 1.25;
|
|
2354
|
+
overflow-wrap: anywhere;
|
|
2336
2355
|
}
|
|
2337
2356
|
.meta {
|
|
2338
2357
|
display: flex;
|
|
2339
2358
|
flex-wrap: wrap;
|
|
2340
2359
|
gap: 8px;
|
|
2341
2360
|
margin-top: 12px;
|
|
2361
|
+
min-width: 0;
|
|
2342
2362
|
}
|
|
2343
2363
|
.pill,
|
|
2344
2364
|
.status {
|
|
2345
2365
|
display: inline-flex;
|
|
2366
|
+
max-width: 100%;
|
|
2367
|
+
min-width: 0;
|
|
2346
2368
|
min-height: 32px;
|
|
2347
2369
|
align-items: center;
|
|
2348
2370
|
border: 1px solid var(--line);
|
|
@@ -2350,6 +2372,7 @@ function renderAgentReportBaseCss() {
|
|
|
2350
2372
|
padding: 0 12px;
|
|
2351
2373
|
color: var(--muted);
|
|
2352
2374
|
font-size: 13px;
|
|
2375
|
+
overflow-wrap: anywhere;
|
|
2353
2376
|
}
|
|
2354
2377
|
.status {
|
|
2355
2378
|
font-weight: 700;
|
|
@@ -2369,6 +2392,14 @@ function renderAgentReportBaseCss() {
|
|
|
2369
2392
|
border-radius: 8px;
|
|
2370
2393
|
background: var(--panel);
|
|
2371
2394
|
padding: 18px;
|
|
2395
|
+
min-width: 0;
|
|
2396
|
+
}
|
|
2397
|
+
.panel > * {
|
|
2398
|
+
min-width: 0;
|
|
2399
|
+
}
|
|
2400
|
+
.panel p {
|
|
2401
|
+
margin: 0;
|
|
2402
|
+
max-width: 100%;
|
|
2372
2403
|
}
|
|
2373
2404
|
@media (max-width: 720px) {
|
|
2374
2405
|
main {
|
|
@@ -2389,15 +2420,18 @@ function renderAgentReportCommandsCss() {
|
|
|
2389
2420
|
return ` .commands {
|
|
2390
2421
|
display: grid;
|
|
2391
2422
|
gap: 10px;
|
|
2423
|
+
min-width: 0;
|
|
2392
2424
|
}
|
|
2393
2425
|
.command {
|
|
2394
2426
|
display: grid;
|
|
2395
2427
|
gap: 5px;
|
|
2428
|
+
min-width: 0;
|
|
2396
2429
|
}
|
|
2397
2430
|
.command span {
|
|
2398
2431
|
color: var(--muted);
|
|
2399
2432
|
font-size: 13px;
|
|
2400
2433
|
font-weight: 700;
|
|
2434
|
+
overflow-wrap: anywhere;
|
|
2401
2435
|
}
|
|
2402
2436
|
.artifact code,
|
|
2403
2437
|
pre {
|
|
@@ -2405,6 +2439,8 @@ function renderAgentReportCommandsCss() {
|
|
|
2405
2439
|
}
|
|
2406
2440
|
pre {
|
|
2407
2441
|
overflow: auto;
|
|
2442
|
+
max-width: 100%;
|
|
2443
|
+
min-width: 0;
|
|
2408
2444
|
margin: 0;
|
|
2409
2445
|
border-radius: 8px;
|
|
2410
2446
|
background: oklch(20% 0.015 230);
|
|
@@ -2418,25 +2454,29 @@ function renderAgentReportCommandsCss() {
|
|
|
2418
2454
|
function renderAgentReportSummaryCss() {
|
|
2419
2455
|
return ` .summary {
|
|
2420
2456
|
display: grid;
|
|
2421
|
-
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
2457
|
+
grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
|
|
2422
2458
|
gap: 12px;
|
|
2459
|
+
min-width: 0;
|
|
2423
2460
|
}
|
|
2424
2461
|
.metric {
|
|
2425
2462
|
border: 1px solid var(--line);
|
|
2426
2463
|
border-radius: 8px;
|
|
2427
2464
|
padding: 14px;
|
|
2428
2465
|
background: color-mix(in oklch, var(--panel) 82%, var(--bg));
|
|
2466
|
+
min-width: 0;
|
|
2429
2467
|
}
|
|
2430
2468
|
.metric strong {
|
|
2431
2469
|
display: block;
|
|
2432
2470
|
font-size: 24px;
|
|
2433
2471
|
line-height: 1.1;
|
|
2472
|
+
overflow-wrap: anywhere;
|
|
2434
2473
|
}
|
|
2435
2474
|
.metric span {
|
|
2436
2475
|
display: block;
|
|
2437
2476
|
margin-top: 4px;
|
|
2438
2477
|
color: var(--muted);
|
|
2439
2478
|
font-size: 13px;
|
|
2479
|
+
overflow-wrap: anywhere;
|
|
2440
2480
|
}`;
|
|
2441
2481
|
}
|
|
2442
2482
|
//#endregion
|