@kubb/studio 5.3.7 → 5.3.9

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/index.d.ts CHANGED
@@ -291,6 +291,16 @@ type StudioConnectedContext = {
291
291
  */
292
292
  agent: string;
293
293
  };
294
+ /**
295
+ * This agent's slug, refreshed on every connect so a rename in Studio shows up without a
296
+ * re-pair. Absent when Studio predates the field.
297
+ */
298
+ agentSlug?: string;
299
+ /**
300
+ * This agent's organization slug, absent for a sandbox or global agent, which has none, or when
301
+ * Studio predates the field.
302
+ */
303
+ organizationSlug?: string;
294
304
  };
295
305
  /**
296
306
  * Fired once Studio confirms the `agent:connect` handshake was received and the session is fully
@@ -469,6 +479,10 @@ type PairingResult = {
469
479
  * Display name chosen at pairing time.
470
480
  */
471
481
  name: string;
482
+ /**
483
+ * This agent's organization slug, absent for a sandbox or global agent, which has none.
484
+ */
485
+ organizationSlug?: string;
472
486
  };
473
487
  };
474
488
  /**
package/dist/index.js CHANGED
@@ -676,7 +676,7 @@ async function createAgent({ studioUrl, token, name, machineToken }) {
676
676
  }
677
677
  //#endregion
678
678
  //#region package.json
679
- var version = "5.3.7";
679
+ var version = "5.3.9";
680
680
  //#endregion
681
681
  //#region src/hooks.ts
682
682
  /**
@@ -2222,7 +2222,9 @@ var StudioSession = class {
2222
2222
  studio: this.#studioVersion,
2223
2223
  kubb: version,
2224
2224
  agent: this.#options.version
2225
- }
2225
+ },
2226
+ agentSlug: session.agentSlug,
2227
+ organizationSlug: session.organizationSlug
2226
2228
  });
2227
2229
  await this.#connectAck.promise;
2228
2230
  await this.#hooks.callHook("studio:ready", {});