@poe-platform/safe-bash 0.1.703 → 0.1.705
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/safe-bash/playwright/help.d.ts +1 -1
- package/dist/safe-bash/playwright/help.d.ts.map +1 -1
- package/dist/safe-bash/playwright/help.js +7 -4
- package/dist/safe-bash/playwright/help.js.map +1 -1
- package/dist/safe-playwright-cloudflare/browser-run-code-guest.generated.js +1 -1
- package/dist/safe-playwright-cloudflare/browser-screenshot.generated.js +35 -0
- package/dist/safe-playwright-cloudflare/browser-screenshot.js +7 -0
- package/dist/safe-playwright-cloudflare/shell-playwright.js +4 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PlaywrightCommand } from './catalog.js';
|
|
2
2
|
import type { RegisteredPlaywrightAbility } from './abilities.js';
|
|
3
3
|
/** The command vocabulary is stable even when a provider cannot perform an operation. */
|
|
4
|
-
export declare function formatPlaywrightHelp(topic?: PlaywrightCommand | 'tab',
|
|
4
|
+
export declare function formatPlaywrightHelp(topic?: PlaywrightCommand | 'tab', abilities?: ReadonlyMap<PlaywrightCommand, RegisteredPlaywrightAbility>): string;
|
|
5
5
|
//# sourceMappingURL=help.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/playwright/help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAIlE,yFAAyF;AACzF,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/playwright/help.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAIlE,yFAAyF;AACzF,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,KAAK,EAAE,SAAS,CAAC,EAAE,WAAW,CAAC,iBAAiB,EAAE,2BAA2B,CAAC,GAAG,MAAM,CAKvJ"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { playwrightCommandReference } from './command-reference.js';
|
|
2
2
|
import { playwrightHelpReference } from './help-reference.js';
|
|
3
3
|
/** The command vocabulary is stable even when a provider cannot perform an operation. */
|
|
4
|
-
export function formatPlaywrightHelp(topic,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
export function formatPlaywrightHelp(topic, abilities) {
|
|
5
|
+
const reference = topic === undefined || topic === 'tab' ? playwrightHelpReference : playwrightCommandReference[topic].help + '\n';
|
|
6
|
+
if (!abilities || topic !== undefined && topic !== 'attach')
|
|
7
|
+
return reference;
|
|
8
|
+
if (abilities.get('attach')?.execute)
|
|
9
|
+
return reference + '\nHost attachment capability\n attach: supported through the configured authenticated attachment broker.\n';
|
|
10
|
+
return reference + '\nHost attachment capability\n attach: unsupported; an authenticated browser attachment broker is unavailable in this host.\n Do not retry attach after a provider failure. Run playwright-cli list, then use an explicit existing owned session alias:\n playwright-cli -s=<existing-alias> snapshot\n playwright-cli -s=<existing-alias> tab-list\n playwright-cli -s=<existing-alias> goto <url>\n Only sessions belonging to the authenticated owner are available; a session alias does not grant access to another owner.\n';
|
|
8
11
|
}
|
|
9
12
|
//# sourceMappingURL=help.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/playwright/help.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,yFAAyF;AACzF,MAAM,UAAU,oBAAoB,CAAC,KAAiC,EAAE,
|
|
1
|
+
{"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/playwright/help.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,yFAAyF;AACzF,MAAM,UAAU,oBAAoB,CAAC,KAAiC,EAAE,SAAuE;IAC7I,MAAM,SAAS,GAAG,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;IACnI,IAAI,CAAC,SAAS,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAC9E,IAAI,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,OAAO;QAAE,OAAO,SAAS,GAAG,6GAA6G,CAAC;IACvK,OAAO,SAAS,GAAG,ygBAAygB,CAAC;AAC/hB,CAAC"}
|