@lifeaitools/clauth 1.5.75 → 1.5.77
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/cli/studio-debug.js +19 -0
- package/package.json +1 -1
package/cli/studio-debug.js
CHANGED
|
@@ -10,6 +10,20 @@ const MAX_EVENT_QUEUE = 100;
|
|
|
10
10
|
const MAX_SNIPPET = 2_000;
|
|
11
11
|
|
|
12
12
|
const APP_TARGETS = {
|
|
13
|
+
studio_test: {
|
|
14
|
+
appSlug: "studio_test",
|
|
15
|
+
brandSlug: "studio_test",
|
|
16
|
+
packageName: "@regen/studio",
|
|
17
|
+
command: "pnpm --filter @regen/studio dev",
|
|
18
|
+
url: "http://localhost:3011/editor/local-test-target",
|
|
19
|
+
},
|
|
20
|
+
"studio-test": {
|
|
21
|
+
appSlug: "studio_test",
|
|
22
|
+
brandSlug: "studio_test",
|
|
23
|
+
packageName: "@regen/studio",
|
|
24
|
+
command: "pnpm --filter @regen/studio dev",
|
|
25
|
+
url: "http://localhost:3011/editor/local-test-target",
|
|
26
|
+
},
|
|
13
27
|
prt: {
|
|
14
28
|
appSlug: "prt",
|
|
15
29
|
brandSlug: "prt",
|
|
@@ -343,6 +357,11 @@ export class StudioDebugSessionStore {
|
|
|
343
357
|
session.stopped = true;
|
|
344
358
|
session.status = "stopped";
|
|
345
359
|
session.updatedAt = nowIso();
|
|
360
|
+
if (session.launch?.process && !session.launch.process.killed) {
|
|
361
|
+
try {
|
|
362
|
+
session.launch.process.kill();
|
|
363
|
+
} catch {}
|
|
364
|
+
}
|
|
346
365
|
for (const poll of session.pendingPolls.splice(0)) poll({ type: "stopped" });
|
|
347
366
|
this.sessions.delete(sessionId);
|
|
348
367
|
return { ok: true, status: "stopped", sessionId };
|