lua-cli 3.50.0 → 3.52.0

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.
@@ -9929,6 +9929,16 @@ function luaClientMetricLabels(client) {
9929
9929
  }
9930
9930
  __name(luaClientMetricLabels, "luaClientMetricLabels");
9931
9931
  __name4(luaClientMetricLabels, "luaClientMetricLabels");
9932
+ var WEB_APP_ID_PATTERN = /^[A-Za-z0-9_-]{1,64}$/;
9933
+ function webAppPreviewSessionBinding(webAppId, previewId) {
9934
+ const binding = `${webAppId}--p-${previewId}`;
9935
+ if (!WEB_APP_ID_PATTERN.test(binding)) {
9936
+ throw new Error(`Web app preview session binding does not fit WEB_APP_ID_PATTERN: ${binding.length} characters`);
9937
+ }
9938
+ return binding;
9939
+ }
9940
+ __name(webAppPreviewSessionBinding, "webAppPreviewSessionBinding");
9941
+ __name4(webAppPreviewSessionBinding, "webAppPreviewSessionBinding");
9932
9942
  var AUTHZ_PROJECTION_VERSION = 1;
9933
9943
  var ProjectedScopeSchema = z4.string().min(1).max(128);
9934
9944
  var DisplayRoleSchema = z4.object({
@@ -11720,6 +11730,11 @@ function isWebRouteInput(value3) {
11720
11730
  }
11721
11731
  __name(isWebRouteInput, "isWebRouteInput");
11722
11732
  __name4(isWebRouteInput, "isWebRouteInput");
11733
+ function agentPaneEnabled(version) {
11734
+ return version?.agentPane !== false;
11735
+ }
11736
+ __name(agentPaneEnabled, "agentPaneEnabled");
11737
+ __name4(agentPaneEnabled, "agentPaneEnabled");
11723
11738
  var WEB_APP_ENTRY_HTML_MAX_CHARS = 256 * 1024;
11724
11739
  var WEB_APP_MAX_ASSET_BYTES = 8 * 1024 * 1024;
11725
11740
  var EVIDENCE_SESSION_IDLE_MS = 30 * 6e4;