nameslink 1.0.5 → 1.0.6

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/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # NamesLink CLI
2
2
 
3
+ Hosted preview receipts are checked against the selected API environment. Production API
4
+ hosts accept production preview URLs; the explicit HTTPS PRE API hosts accept only PRE
5
+ preview URLs. Custom endpoints still require a process-local opt-in; environment admission
6
+ and business login remain separate. Resuming the same preview keeps its original upload.
7
+
3
8
  Agent integrations can set `NAMESLINK_TOUCHPOINT=CODEX_PLUGIN` on an individual CLI process.
4
9
  It uses the existing journey, request headers and OAuth state, preserves an earlier first touch,
5
10
  and labels later touches. This client-reported label is not installation proof or authorization.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nameslink",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "NamesLink command-line client for domains, DNS, intelligent site building, Security Acceleration and automation",
5
5
  "type": "module",
6
6
  "bin": {
@@ -508,7 +508,11 @@ function validateSession(session, expected) {
508
508
  function validatedPreviewUrl(endpoint, apiEndpoint) {
509
509
  let url;
510
510
  try { url = new URL(endpoint.url); } catch { throw failure('InvalidReceipt'); }
511
- const suffix = '.nameslink.site';
511
+ let api;
512
+ try { api = new URL(apiEndpoint); } catch { throw failure('InvalidReceipt'); }
513
+ const pre = api.protocol === 'https:' && !api.port && !api.username && !api.password
514
+ && ['pre.nameslink.com', 'preo.nameslink.com', 'apipre.nameslink.com'].includes(api.hostname);
515
+ const suffix = pre ? '.pre.nameslink.site' : '.nameslink.site';
512
516
  const slug = url.hostname.slice(0, -suffix.length);
513
517
  if (url.protocol !== 'https:' || url.username || url.password || url.search || url.hash
514
518
  || !url.hostname.endsWith(suffix) || !/^[a-z0-9-]{3,48}$/.test(slug)