@sovovs/bycli 2.1.41 → 2.1.42

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.
@@ -446,7 +446,7 @@ export async function executeCommand(cmd, rawKwargs, debug = false, opts = {}) {
446
446
  : new ObservationSession({
447
447
  scope: {
448
448
  contextId,
449
- session,
449
+ session: adapterSession ? adapterSessionDiagnosticKey(cmd.site, adapterSession) : session,
450
450
  target: page.getActivePage?.(),
451
451
  site: cmd.site,
452
452
  command: fullName(cmd),
@@ -742,6 +742,10 @@ function resolveAdapterBrowserSession(cmd, siteSession, adapterSession) {
742
742
  }
743
743
  return `site:${cmd.site}:${crypto.randomUUID()}`;
744
744
  }
745
+ function adapterSessionDiagnosticKey(site, adapterSession) {
746
+ const digest = crypto.createHash('sha256').update(adapterSession).digest('hex').slice(0, 12);
747
+ return `site:${site}:adapter-${digest}`;
748
+ }
745
749
  function normalizeBooleanOption(name, raw) {
746
750
  if (raw === undefined || raw === '')
747
751
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sovovs/bycli",
3
- "version": "2.1.41",
3
+ "version": "2.1.42",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },