shiplightai 0.1.73 → 0.1.75
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 +5 -5
- package/dist/cjs/debugger-pw.cjs +50 -50
- package/dist/cjs/fixture.cjs +1 -1
- package/dist/cjs/index.cjs +72 -72
- package/dist/cjs/reporter.cjs +32 -32
- package/dist/cli.js +122 -115
- package/dist/debugger-manager.d.ts +5 -0
- package/dist/debugger-manager.js +8 -8
- package/dist/debugger-pw.js +50 -50
- package/dist/fixture.js +1 -1
- package/dist/index.js +72 -72
- package/dist/reporter.d.ts +3 -0
- package/dist/reporter.js +33 -33
- package/dist/static-embedded/assets/{index-CoKedfWS.js → index-Dk5ihq1Y.js} +2 -2
- package/dist/static-embedded/assets/{index-BEW7CdFm.js → index-Mg0a6DkO.js} +50 -4
- package/dist/static-embedded/index.html +1 -1
- package/package.json +4 -4
|
@@ -42987,6 +42987,11 @@ const DebuggerProvider = ({
|
|
|
42987
42987
|
setIsDebugging(true);
|
|
42988
42988
|
} catch (error) {
|
|
42989
42989
|
console.error("Failed to start debugging:", error);
|
|
42990
|
+
notifications.show({
|
|
42991
|
+
title: "Failed to start debug session",
|
|
42992
|
+
message: error instanceof Error ? error.message : "Unknown error",
|
|
42993
|
+
color: "red"
|
|
42994
|
+
});
|
|
42990
42995
|
} finally {
|
|
42991
42996
|
setIsStepping(false);
|
|
42992
42997
|
}
|
|
@@ -43320,6 +43325,11 @@ const DebuggerProvider = ({
|
|
|
43320
43325
|
}
|
|
43321
43326
|
} catch (error) {
|
|
43322
43327
|
console.error("Failed to start debugging and run until target:", error);
|
|
43328
|
+
notifications.show({
|
|
43329
|
+
title: "Failed to start debug session",
|
|
43330
|
+
message: error instanceof Error ? error.message : "Unknown error",
|
|
43331
|
+
color: "red"
|
|
43332
|
+
});
|
|
43323
43333
|
setIsDebugging(false);
|
|
43324
43334
|
setIsStepping(false);
|
|
43325
43335
|
throw error;
|
|
@@ -187982,7 +187992,7 @@ function dynamic(importFn, _options) {
|
|
|
187982
187992
|
);
|
|
187983
187993
|
return Wrapper;
|
|
187984
187994
|
}
|
|
187985
|
-
const MonacoEditor = dynamic(() => __vitePreload(() => import("./index-
|
|
187995
|
+
const MonacoEditor = dynamic(() => __vitePreload(() => import("./index-Dk5ihq1Y.js"), true ? [] : void 0), {});
|
|
187986
187996
|
const CodeEditor = ({
|
|
187987
187997
|
initialCode = "",
|
|
187988
187998
|
onConfirm,
|
|
@@ -197605,6 +197615,12 @@ const TestFlowEditorController = ({
|
|
|
197605
197615
|
return debugSession;
|
|
197606
197616
|
} catch (error) {
|
|
197607
197617
|
setSessionInitProgress(null);
|
|
197618
|
+
if (onReceivedLiveviewUrl) {
|
|
197619
|
+
onReceivedLiveviewUrl(void 0, void 0);
|
|
197620
|
+
}
|
|
197621
|
+
if (onModeChange) {
|
|
197622
|
+
onModeChange();
|
|
197623
|
+
}
|
|
197608
197624
|
console.error("Session initialization failed:", error);
|
|
197609
197625
|
throw new Error(`Failed to initialize debug session: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
197610
197626
|
}
|
|
@@ -200236,6 +200252,36 @@ function useInitialConfig() {
|
|
|
200236
200252
|
}, []);
|
|
200237
200253
|
return config2;
|
|
200238
200254
|
}
|
|
200255
|
+
class EditorErrorBoundary extends We.Component {
|
|
200256
|
+
constructor() {
|
|
200257
|
+
super(...arguments);
|
|
200258
|
+
this.state = { error: null };
|
|
200259
|
+
}
|
|
200260
|
+
static getDerivedStateFromError(error) {
|
|
200261
|
+
return { error };
|
|
200262
|
+
}
|
|
200263
|
+
componentDidCatch(error, info) {
|
|
200264
|
+
console.error("Editor render error:", error, info.componentStack);
|
|
200265
|
+
}
|
|
200266
|
+
render() {
|
|
200267
|
+
if (this.state.error) {
|
|
200268
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Center, { style: { flex: 1 }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { align: "center", gap: "sm", children: [
|
|
200269
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "lg", c: "red", children: "Something went wrong" }),
|
|
200270
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", c: "dimmed", style: { maxWidth: 400, textAlign: "center" }, children: this.state.error.message }),
|
|
200271
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
200272
|
+
Button,
|
|
200273
|
+
{
|
|
200274
|
+
variant: "light",
|
|
200275
|
+
color: "blue",
|
|
200276
|
+
onClick: () => this.setState({ error: null }),
|
|
200277
|
+
children: "Retry"
|
|
200278
|
+
}
|
|
200279
|
+
)
|
|
200280
|
+
] }) });
|
|
200281
|
+
}
|
|
200282
|
+
return this.props.children;
|
|
200283
|
+
}
|
|
200284
|
+
}
|
|
200239
200285
|
const DEFAULT_SIDEBAR_WIDTH = 300;
|
|
200240
200286
|
const MIN_SIDEBAR_WIDTH = 180;
|
|
200241
200287
|
const MAX_SIDEBAR_WIDTH = 600;
|
|
@@ -200513,7 +200559,7 @@ function LocalDebuggerPage() {
|
|
|
200513
200559
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", c: "dimmed", children: error || "No test flow data" })
|
|
200514
200560
|
] }) });
|
|
200515
200561
|
}
|
|
200516
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
200562
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(EditorErrorBoundary, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
200517
200563
|
TestFlowEditorController,
|
|
200518
200564
|
{
|
|
200519
200565
|
intRunner: localIntRunnerApi,
|
|
@@ -200532,7 +200578,7 @@ function LocalDebuggerPage() {
|
|
|
200532
200578
|
v2: true
|
|
200533
200579
|
},
|
|
200534
200580
|
selectedFile
|
|
200535
|
-
);
|
|
200581
|
+
) });
|
|
200536
200582
|
};
|
|
200537
200583
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: { height: "100vh", display: "flex", flexDirection: "column" }, children: [
|
|
200538
200584
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Notifications$1, { position: "top-right" }),
|
|
@@ -200710,4 +200756,4 @@ export {
|
|
|
200710
200756
|
We as W,
|
|
200711
200757
|
reactExports as r
|
|
200712
200758
|
};
|
|
200713
|
-
//# sourceMappingURL=index-
|
|
200759
|
+
//# sourceMappingURL=index-Mg0a6DkO.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-Mg0a6DkO.js"></script>
|
|
12
12
|
<link rel="stylesheet" crossorigin href="/assets/index-uF1WN2rG.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shiplightai",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.75",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shiplight CLI for running and debugging .test.yaml files",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -97,9 +97,9 @@
|
|
|
97
97
|
"@types/node": "^24.0.0",
|
|
98
98
|
"tsup": "^8.3.5",
|
|
99
99
|
"typescript": "5.5.4",
|
|
100
|
-
"mcp-tools": "1.0.0",
|
|
101
|
-
"sdk-internal": "0.1.1",
|
|
102
100
|
"sdk-core": "0.1.0",
|
|
101
|
+
"sdk-internal": "0.1.1",
|
|
102
|
+
"mcp-tools": "1.0.0",
|
|
103
103
|
"shiplight-tools": "1.0.0",
|
|
104
104
|
"shiplight-types": "0.1.0",
|
|
105
105
|
"@loggia/common": "1.0.0"
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"dev": "tsup --watch",
|
|
130
130
|
"dev:run": "node --import tsx/esm src/cli.ts",
|
|
131
131
|
"test": "pnpm test:unit && pnpm test:logic",
|
|
132
|
-
"test:unit": "tsx --test '
|
|
132
|
+
"test:unit": "tsx --test $(find src -name '*.test.ts' ! -name '*.e2e.test.ts')",
|
|
133
133
|
"test:logic": "playwright test -c playwright.logic.config.ts",
|
|
134
134
|
"test:e2e": "playwright test -c playwright.config.ts",
|
|
135
135
|
"typecheck": "tsc --noEmit"
|