AI ad writer: "Write my ad from my link" on the ad form (Marty 2026-11-17: "okay, let's do it.")
adwriter.js: the server reads the member's page (or follows their LinkSpin spin link, max 5 hops),
SSRF-safe (http/https, ports 80/443, every hop's DNS answer checked and the connection pinned to it,
no private/loopback/link-local/metadata address, 8 s, 1.5 MB, text/html only), extracts title, meta
and og description, h1-h3 and the first paragraphs (about 2,500 tokens), and asks OpenRouter
deepseek/deepseek-v4-flash (reasoning off; fallback anthropic/claude-haiku-5.5) for 3 options
{headline <= 60, line <= 90} written only from the page. Every option goes through the new
safety.checkAdCopy (no dashes, income promises, guarantees, links, shouting; every number must be
on the page) plus the length limits; failing ones are dropped, one retry when none survive. The
member picks one, it fills the form, nothing is posted.
Limits: AI_AD_DAILY (5) per member per Central day, AI_AD_GLOBAL_DAILY (500), 12 an hour per IP,
one at a time, a 24 h cache by page (a repeat is free). Off and hidden without AI_AD_KEY (a dedicated
OpenRouter key, $5 a month). Admin status: writes today, tokens, estimated spend.
safety.privateIp: IPv4-mapped IPv6 in hex form (::ffff:7f00:1) and all of fe80::/10 now count as private.
Chatbot fact added (KNOWLEDGE_DATE 2026-11-17). Server wiring + form markup landed in 828abce.
qa/adwriter.test.mjs 82/82, qa/e2e.mjs 63/63, qa/chatbot.test.mjs 108/108.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -9,7 +9,7 @@
|
||||
const core = require('./chatcore');
|
||||
const C = require('./config').get();
|
||||
|
||||
const KNOWLEDGE_DATE = '2026-11-16';
|
||||
const KNOWLEDGE_DATE = '2026-11-17';
|
||||
const URL_ = 'https://' + C.site;
|
||||
const SUPPORT = 'https://instantadpay.com/support';
|
||||
const B = C.boost, SP = C.split, R = C.reward, CR = C.credits;
|
||||
@@ -57,6 +57,7 @@ const FACTS = () => [
|
||||
'- WHAT IT IS: ViralAdSource (' + URL_ + '): "Every ad has a source. Watch yours travel." One free text ad per network member (headline ' + C.ad.headline + ', two lines of ' + C.ad.line + ', an https link or the member\'s own LinkSpin spin link). Anyone reshares an ad with their own unique reshare link /s/<code>; each reshare is a branch; the owner\'s dashboard shows the family tree: branch, step, reshares under it, views, clicks, sign-ups.',
|
||||
'- REWARDS (results only, never a bare share; members earn for free: no Boost needed, only a network sign-in and a linked wallet): L1 Boost through a branch: resharer cut ' + pct(SP.resharerBps) + ' paid by the VASShop contract in the same transaction. L2 verified brand-new network member through a branch: $' + (R.cents / 100).toFixed(2) + ' in POL from the reward pot, cap ' + R.dailyCap + ' a day per resharer; checks: hub-new, confirmed email, not the resharer\'s device/IP/wallet, no throwaway email, daily cap, fraud score; payouts currently ' + (R.payouts ? 'ON' : 'OFF (rewards wait in the pending ledger)') + '. L3 verified views: ' + CR.per + ' ad credits per ' + CR.views + ' verified views through the resharer\'s links, spent on their own ad, never paid out.',
|
||||
'- BOOST: one-time $' + B.usd + ' = a ' + B.days + '-day board spot (top of the reshare board) per unit, placement only, never needed to earn, 1 to ' + B.maxQty + ' per purchase. Split: resharer ' + pct(SP.resharerBps) + ', reward pot ' + pct(SP.potBps) + ', sponsor levels ' + SP.levelBps.map(pct).join('/') + ' to the 5 nearest eligible people in the sponsor line (network sign-in + linked wallet; the ineligible are skipped and the share passes up), company the rest plus any level or resharer cut with nobody to pay. The split is immutable. The pot can only pay sign-up rewards, never more than it holds, at most $' + (R.potDailyCents / 100).toFixed(2) + ' a day across everyone.',
|
||||
'- AI AD WRITER: on the ad form at ' + URL_ + '/my, put your link in the Your link box (a page or your own LinkSpin spin link) and tap "Write my ad from my link": it reads that page and suggests 3 ads using only what the page says (no made-up claims, numbers or income promises); tapping one fills the headline and first line to edit, nothing is posted until you save; ' + require('./adwriter').dailyCap() + ' writes a day per member (reset at midnight Central), the same page again within 24 hours is free.',
|
||||
'- VERIFIED VIEWS: page visible ' + C.visitSeconds + ' s, one view per visitor per ad per 24 h, never the owner\'s own, max ' + C.perIpDay + ' browsers per connection a day.',
|
||||
'- TRUST: ' + URL_ + '/ledger, ' + URL_ + '/contract, toasts of real events. Terms ' + URL_ + '/terms, Earnings Disclaimer ' + URL_ + '/disclaimer, Privacy ' + URL_ + '/privacy. Run by TrustClickz. SUPPORT: ' + SUPPORT
|
||||
].join('\n');
|
||||
|
||||
Reference in New Issue
Block a user