shiplightai 0.1.89 → 0.1.91
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/cjs/debugger-manager.cjs +4 -3
- package/dist/cjs/debugger-pw.cjs +75 -73
- package/dist/cjs/fixture.cjs +138 -136
- package/dist/cjs/index.cjs +95 -93
- package/dist/cjs/reporter.cjs +42 -42
- package/dist/cli.js +91 -90
- package/dist/debugger-manager.js +4 -3
- package/dist/debugger-pw.d.ts +10 -1
- package/dist/debugger-pw.js +75 -73
- package/dist/fixture.js +138 -136
- package/dist/index.js +67 -65
- package/dist/reporter.js +42 -42
- package/dist/static-embedded/assets/{index-CMdPZNG2.js → index-CzL8SI3t.js} +2 -2
- package/dist/static-embedded/assets/{index-Bcj9zYt-.js → index-Dm1PmCd3.js} +34 -7
- package/dist/static-embedded/index.html +1 -1
- package/package.json +1 -1
|
@@ -40529,7 +40529,10 @@ function actionToYaml(action) {
|
|
|
40529
40529
|
if (actionName === "ai_wait_until") {
|
|
40530
40530
|
const condition = kwargs == null ? void 0 : kwargs.condition;
|
|
40531
40531
|
if (typeof condition === "string") {
|
|
40532
|
-
const
|
|
40532
|
+
const conditionType = (kwargs == null ? void 0 : kwargs.condition_type) === ConditionType.JS_CODE ? ConditionType.JS_CODE : ConditionType.AI_MODE;
|
|
40533
|
+
const result2 = {
|
|
40534
|
+
WAIT_UNTIL: formatCondition({ type: conditionType, expression: condition })
|
|
40535
|
+
};
|
|
40533
40536
|
if (typeof (kwargs == null ? void 0 : kwargs.timeout_seconds) === "number" && kwargs.timeout_seconds !== 60) {
|
|
40534
40537
|
result2.timeout_seconds = kwargs.timeout_seconds;
|
|
40535
40538
|
}
|
|
@@ -40657,13 +40660,16 @@ function yamlToActionEntity(yamlString) {
|
|
|
40657
40660
|
};
|
|
40658
40661
|
}
|
|
40659
40662
|
if ("WAIT_UNTIL" in parsed) {
|
|
40660
|
-
const
|
|
40661
|
-
const kwargs2 = {
|
|
40663
|
+
const cond = parseCondition(String(parsed.WAIT_UNTIL));
|
|
40664
|
+
const kwargs2 = {
|
|
40665
|
+
condition: cond.expression,
|
|
40666
|
+
condition_type: cond.type
|
|
40667
|
+
};
|
|
40662
40668
|
if (typeof parsed.timeout_seconds === "number") kwargs2.timeout_seconds = parsed.timeout_seconds;
|
|
40663
40669
|
return {
|
|
40664
|
-
description: `Wait until ${
|
|
40670
|
+
description: `Wait until ${cond.expression}`,
|
|
40665
40671
|
actionEntity: {
|
|
40666
|
-
action_description: `Wait until ${
|
|
40672
|
+
action_description: `Wait until ${cond.expression}`,
|
|
40667
40673
|
action_data: { action_name: "ai_wait_until", kwargs: kwargs2 }
|
|
40668
40674
|
}
|
|
40669
40675
|
};
|
|
@@ -40717,6 +40723,27 @@ function yamlToActionEntity(yamlString) {
|
|
|
40717
40723
|
locator: yamlLocator
|
|
40718
40724
|
};
|
|
40719
40725
|
}
|
|
40726
|
+
function formatCondition(condition) {
|
|
40727
|
+
if (condition.type === ConditionType.JS_CODE) {
|
|
40728
|
+
return `js:${condition.expression}`;
|
|
40729
|
+
}
|
|
40730
|
+
return condition.expression;
|
|
40731
|
+
}
|
|
40732
|
+
function parseCondition(conditionStr) {
|
|
40733
|
+
if (typeof conditionStr !== "string") {
|
|
40734
|
+
throw new Error(`Condition must be a string, got ${typeof conditionStr}`);
|
|
40735
|
+
}
|
|
40736
|
+
if (conditionStr.startsWith("js:")) {
|
|
40737
|
+
return {
|
|
40738
|
+
type: ConditionType.JS_CODE,
|
|
40739
|
+
expression: conditionStr.slice(3)
|
|
40740
|
+
};
|
|
40741
|
+
}
|
|
40742
|
+
return {
|
|
40743
|
+
type: ConditionType.AI_MODE,
|
|
40744
|
+
expression: conditionStr
|
|
40745
|
+
};
|
|
40746
|
+
}
|
|
40720
40747
|
class NodeJSCodeCommon {
|
|
40721
40748
|
constructor(version, data) {
|
|
40722
40749
|
__publicField(this, "version");
|
|
@@ -188661,7 +188688,7 @@ function dynamic(importFn, _options) {
|
|
|
188661
188688
|
);
|
|
188662
188689
|
return Wrapper;
|
|
188663
188690
|
}
|
|
188664
|
-
const MonacoEditor = dynamic(() => __vitePreload(() => import("./index-
|
|
188691
|
+
const MonacoEditor = dynamic(() => __vitePreload(() => import("./index-CzL8SI3t.js"), true ? [] : void 0), {});
|
|
188665
188692
|
const CodeEditor = ({
|
|
188666
188693
|
initialCode = "",
|
|
188667
188694
|
onConfirm,
|
|
@@ -201683,4 +201710,4 @@ export {
|
|
|
201683
201710
|
We as W,
|
|
201684
201711
|
reactExports as r
|
|
201685
201712
|
};
|
|
201686
|
-
//# sourceMappingURL=index-
|
|
201713
|
+
//# sourceMappingURL=index-Dm1PmCd3.js.map
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
/* Prevent FOUC */
|
|
9
9
|
body { margin: 0; background: #1a1b1e; color: #c1c2c5; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
|
|
10
10
|
</style>
|
|
11
|
-
<script type="module" crossorigin src="/assets/index-
|
|
11
|
+
<script type="module" crossorigin src="/assets/index-Dm1PmCd3.js"></script>
|
|
12
12
|
<link rel="stylesheet" crossorigin href="/assets/index-CrXycucL.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|