vibes-diy 14.3.428 → 14.3.429

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.
@@ -125798,6 +125798,45 @@ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
125798
125798
  init_performance2();
125799
125799
  init_esm();
125800
125800
 
125801
+ // ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/svc/intern/client-attribution.ts
125802
+ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
125803
+ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
125804
+ init_performance2();
125805
+ init_esm();
125806
+ var CLIENT_PARAM = "client";
125807
+ var KIND_RE = /^[a-z][a-z0-9-]{0,31}$/;
125808
+ var VERSION_RE = /^[A-Za-z0-9][A-Za-z0-9.+-]{0,63}$/;
125809
+ function parseClientParam(raw) {
125810
+ if (raw === void 0 || raw === null) return void 0;
125811
+ const slash = raw.indexOf("/");
125812
+ const kind = slash < 0 ? raw : raw.slice(0, slash);
125813
+ const version5 = slash < 0 ? void 0 : raw.slice(slash + 1);
125814
+ if (!KIND_RE.test(kind)) return void 0;
125815
+ if (version5 !== void 0 && !VERSION_RE.test(version5)) return void 0;
125816
+ return version5 === void 0 ? { kind } : { kind, version: version5 };
125817
+ }
125818
+ __name(parseClientParam, "parseClientParam");
125819
+ var CLIENT_SHELL_PARAM = "client_shell";
125820
+ function parseClientShellParam(raw) {
125821
+ if (raw === void 0 || raw === null) return void 0;
125822
+ return KIND_RE.test(raw) ? raw : void 0;
125823
+ }
125824
+ __name(parseClientShellParam, "parseClientShellParam");
125825
+ function resolveClientAttribution(input3) {
125826
+ const rParam = exception2Result(() => URI.from(input3.url).getParam(CLIENT_PARAM));
125827
+ const declared = rParam.isOk() ? parseClientParam(rParam.Ok()) : void 0;
125828
+ const rShell = exception2Result(() => URI.from(input3.url).getParam(CLIENT_SHELL_PARAM));
125829
+ const shell = rShell.isOk() ? parseClientShellParam(rShell.Ok()) : void 0;
125830
+ const env3 = input3.environment !== void 0 && input3.environment !== "" ? input3.environment : void 0;
125831
+ if (declared === void 0 && shell === void 0 && env3 === void 0) return void 0;
125832
+ return {
125833
+ ...declared ?? {},
125834
+ ...shell === void 0 ? {} : { shell },
125835
+ ...env3 === void 0 ? {} : { env: env3 }
125836
+ };
125837
+ }
125838
+ __name(resolveClientAttribution, "resolveClientAttribution");
125839
+
125801
125840
  // ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/svc/intern/look-lint.ts
125802
125841
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
125803
125842
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
@@ -145886,45 +145925,6 @@ init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
145886
145925
  init_performance2();
145887
145926
  init_esm();
145888
145927
 
145889
- // ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/api/svc/intern/client-attribution.ts
145890
- init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
145891
- init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
145892
- init_performance2();
145893
- init_esm();
145894
- var CLIENT_PARAM = "client";
145895
- var KIND_RE = /^[a-z][a-z0-9-]{0,31}$/;
145896
- var VERSION_RE = /^[A-Za-z0-9][A-Za-z0-9.+-]{0,63}$/;
145897
- function parseClientParam(raw) {
145898
- if (raw === void 0 || raw === null) return void 0;
145899
- const slash = raw.indexOf("/");
145900
- const kind = slash < 0 ? raw : raw.slice(0, slash);
145901
- const version5 = slash < 0 ? void 0 : raw.slice(slash + 1);
145902
- if (!KIND_RE.test(kind)) return void 0;
145903
- if (version5 !== void 0 && !VERSION_RE.test(version5)) return void 0;
145904
- return version5 === void 0 ? { kind } : { kind, version: version5 };
145905
- }
145906
- __name(parseClientParam, "parseClientParam");
145907
- var CLIENT_SHELL_PARAM = "client_shell";
145908
- function parseClientShellParam(raw) {
145909
- if (raw === void 0 || raw === null) return void 0;
145910
- return KIND_RE.test(raw) ? raw : void 0;
145911
- }
145912
- __name(parseClientShellParam, "parseClientShellParam");
145913
- function resolveClientAttribution(input3) {
145914
- const rParam = exception2Result(() => URI.from(input3.url).getParam(CLIENT_PARAM));
145915
- const declared = rParam.isOk() ? parseClientParam(rParam.Ok()) : void 0;
145916
- const rShell = exception2Result(() => URI.from(input3.url).getParam(CLIENT_SHELL_PARAM));
145917
- const shell = rShell.isOk() ? parseClientShellParam(rShell.Ok()) : void 0;
145918
- const env3 = input3.environment !== void 0 && input3.environment !== "" ? input3.environment : void 0;
145919
- if (declared === void 0 && shell === void 0 && env3 === void 0) return void 0;
145920
- return {
145921
- ...declared ?? {},
145922
- ...shell === void 0 ? {} : { shell },
145923
- ...env3 === void 0 ? {} : { env: env3 }
145924
- };
145925
- }
145926
- __name(resolveClientAttribution, "resolveClientAttribution");
145927
-
145928
145928
  // ../../home/runner/work/vibes.diy/vibes.diy/vibes.diy/vibe/runtime/ssr-tailwind.ts
145929
145929
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
145930
145930
  init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();