pi-chrome 0.2.1 → 0.2.2

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.
@@ -318,9 +318,12 @@ export default function (pi: ExtensionAPI): void {
318
318
 
319
319
  pi.on("session_start", async (_event, ctx) => {
320
320
  await bridge.start();
321
+ const status = bridge.status();
321
322
  ctx.ui.setStatus("chrome", `Chrome bridge :${DEFAULT_PORT}`);
322
323
  ctx.ui.notify(
323
- `Chrome profile bridge listening at ${bridge.url}. Run /chrome-onboard to load the bundled browser extension in your normal Chrome profile.`,
324
+ status.mode === "client"
325
+ ? `Chrome profile bridge connected to shared bridge at ${bridge.url}.`
326
+ : `Chrome profile bridge listening at ${bridge.url}. Run /chrome-onboard to load the bundled browser extension in your normal Chrome profile.`,
324
327
  "info",
325
328
  );
326
329
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-chrome",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Control your existing authenticated Chrome profile from one or more Pi sessions with tabs, snapshots, clicks, typing, JS evaluation, waits, and screenshots.",
5
5
  "keywords": [
6
6
  "pi-package",