@agent-native/core 0.66.1 → 0.66.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.
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding-html.d.ts","sourceRoot":"","sources":["../../src/server/onboarding-html.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AA2C/B,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QACxB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,qBAA0B,GAAG,MAAM,CAi+D1E;AAED,kDAAkD;AAClD,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CA0G7C"}
1
+ {"version":3,"file":"onboarding-html.d.ts","sourceRoot":"","sources":["../../src/server/onboarding-html.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AA2C/B,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE;QACV,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;QACxB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACF;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,qBAA0B,GAAG,MAAM,CAogE1E;AAED,kDAAkD;AAClD,eAAO,MAAM,eAAe,QAAsB,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CA0G7C"}
@@ -624,7 +624,7 @@ ${hasMarketing
624
624
  .btn-secondary:hover { color: #bbb; border-color: rgba(255,255,255,0.2); }
625
625
  .msg { margin-top: 0.75rem; font-size: 0.8125rem; display: none; }
626
626
  .msg.error { color: #f87171; }
627
- .msg.success { color: #4ade80; }
627
+ .msg.success { color: #33C4FF; }
628
628
  .msg.show { display: block; }
629
629
  .step-progress {
630
630
  display: grid;
@@ -670,9 +670,9 @@ ${hasMarketing
670
670
  .progress-step.complete,
671
671
  .progress-step.current { color: #e5e5e5; }
672
672
  .progress-step.complete span {
673
- background: #d9f99d;
674
- border-color: #d9f99d;
675
- color: #111;
673
+ background: rgba(0,181,255,0.16);
674
+ border-color: rgba(0,181,255,0.55);
675
+ color: #dff7ff;
676
676
  }
677
677
  .progress-step.current span {
678
678
  background: #fff;
@@ -689,7 +689,7 @@ ${hasMarketing
689
689
  }
690
690
  .verification-kicker {
691
691
  margin-bottom: 0.5rem;
692
- color: #bef264;
692
+ color: #33C4FF;
693
693
  font-size: 0.75rem;
694
694
  font-weight: 500;
695
695
  }
@@ -1509,6 +1509,19 @@ ${googleOnly
1509
1509
  var signupPassword = document.getElementById('s-pass');
1510
1510
  return pendingSignupPassword || (signupPassword && signupPassword.value) || '';
1511
1511
  }
1512
+ function __anNormalizeAuthEmail(value) {
1513
+ return String(value || '').trim().toLowerCase();
1514
+ }
1515
+ function __anIsValidAuthEmail(value) {
1516
+ return /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(__anNormalizeAuthEmail(value));
1517
+ }
1518
+ function __anShowEmailValidationError(input, msg) {
1519
+ if (msg) {
1520
+ msg.textContent = 'Enter a valid email address, like you@example.com.';
1521
+ msg.classList.add('show', 'error');
1522
+ }
1523
+ if (input && typeof input.focus === 'function') input.focus();
1524
+ }
1512
1525
  function movePendingSignupToLogin(message) {
1513
1526
  var email = getPendingSignupEmail();
1514
1527
  setActiveTab('login', { persist: true });
@@ -1712,7 +1725,14 @@ ${googleOnly
1712
1725
  btn.disabled = true;
1713
1726
  btn.textContent = 'Creating account…';
1714
1727
  try {
1715
- var email = document.getElementById('s-email').value;
1728
+ var emailInput = document.getElementById('s-email');
1729
+ var email = __anNormalizeAuthEmail(emailInput && emailInput.value);
1730
+ if (!__anIsValidAuthEmail(email)) {
1731
+ btn.disabled = false;
1732
+ btn.textContent = originalLabel;
1733
+ __anShowEmailValidationError(emailInput, msg);
1734
+ return;
1735
+ }
1716
1736
  var res = await fetch(__anPath('/_agent-native/auth/register'), {
1717
1737
  method: 'POST',
1718
1738
  headers: { 'Content-Type': 'application/json' },
@@ -1811,7 +1831,14 @@ ${googleOnly
1811
1831
  btn.disabled = true;
1812
1832
  btn.textContent = 'Sending…';
1813
1833
  try {
1814
- var email = document.getElementById('f-email').value;
1834
+ var emailInput = document.getElementById('f-email');
1835
+ var email = __anNormalizeAuthEmail(emailInput && emailInput.value);
1836
+ if (!__anIsValidAuthEmail(email)) {
1837
+ btn.disabled = false;
1838
+ btn.textContent = original;
1839
+ __anShowEmailValidationError(emailInput, msg);
1840
+ return;
1841
+ }
1815
1842
  var res = await fetch(__anPath('/_agent-native/auth/ba/request-password-reset'), {
1816
1843
  method: 'POST',
1817
1844
  headers: { 'Content-Type': 'application/json' },
@@ -1847,11 +1874,19 @@ ${googleOnly
1847
1874
  btn.disabled = true;
1848
1875
  btn.textContent = 'Signing in…';
1849
1876
  try {
1877
+ var emailInput = document.getElementById('l-email');
1878
+ var email = __anNormalizeAuthEmail(emailInput && emailInput.value);
1879
+ if (!__anIsValidAuthEmail(email)) {
1880
+ btn.disabled = false;
1881
+ btn.textContent = originalLabel;
1882
+ __anShowEmailValidationError(emailInput, msg);
1883
+ return;
1884
+ }
1850
1885
  var res = await fetch(__anPath('/_agent-native/auth/login'), {
1851
1886
  method: 'POST',
1852
1887
  headers: { 'Content-Type': 'application/json' },
1853
1888
  body: JSON.stringify({
1854
- email: document.getElementById('l-email').value,
1889
+ email: email,
1855
1890
  password: document.getElementById('l-pass').value,
1856
1891
  }),
1857
1892
  });
@@ -2053,7 +2088,7 @@ export function getResetPasswordHtml() {
2053
2088
  button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }
2054
2089
  .msg { margin-top: 0.75rem; font-size: 0.8125rem; display: none; }
2055
2090
  .msg.error { color: #f87171; }
2056
- .msg.success { color: #4ade80; }
2091
+ .msg.success { color: #33C4FF; }
2057
2092
  .msg.show { display: block; }
2058
2093
  .back { display: inline-block; margin-top: 1rem; font-size: 0.75rem; color: #888; text-decoration: none; }
2059
2094
  .back:hover { color: #bbb; }