Stage: pricing buttons, API keys, reasoning note, enterprise contacts #91

Merged
will.anderson merged 6 commits from fix/stage-ci-paths into dev 2026-05-11 18:05:35 +00:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 2b8915bd60 - Show all commits
+4 -4
View File
@@ -295,11 +295,11 @@ fn main() -> Void {
session.messages.push({ role: 'ai', text: reply });
saveSession(session);
} else {
addMsg('ai', 'Hey. What\'s on your mind?', true);
addMsg('ai', \"Hey. What's on your mind?\", true);
}
})
.catch(function() {
addMsg('ai', 'Hey. What\'s on your mind?', true);
addMsg('ai', \"Hey. What's on your mind?\", true);
});
}
@@ -532,7 +532,7 @@ fn main() -> Void {
var ss = secsLeft % 60;
var pad = function(n) { return n < 10 ? '0' + n : '' + n; };
var ts = hh > 0 ? (hh + ':' + pad(mm) + ':' + pad(ss)) : (pad(mm) + ':' + pad(ss));
return 'You\'ve had 10 conversations today. Come back in ' + ts + '.';
return \"You've had 10 conversations today. Come back in \" + ts + \".\";
};
addMsg('ai', _showRateTimer());
// Update the last ai message with a live ticker
@@ -544,7 +544,7 @@ fn main() -> Void {
if (lastAi) { lastAi.textContent = _showRateTimer(); }
if (Math.floor(Date.now() / 1000) >= d.reset_at) {
clearInterval(_timerInterval);
if (lastAi) { lastAi.textContent = 'You\'re all set — conversations reset. Say hello!'; }
if (lastAi) { lastAi.textContent = \"You're all set — conversations reset. Say hello!\"; }
if (input) { input.disabled = false; input.placeholder = 'Ask me anything...'; }
if (btn) { btn.disabled = false; }
}
+1
View File
@@ -1172,6 +1172,7 @@ fn handle_request_inner(method: String, path: String, headers: Map, body: String
|| str_eq(req_origin, "https://www.neurontechnologies.ai")
|| str_starts_with(req_origin, "http://localhost:")
|| str_starts_with(req_origin, "http://127.0.0.1:")
|| str_starts_with(req_origin, "https://marketing-stage-")
if !origin_ok {
return "{\"__status__\":403,\"error\":\"forbidden\"}"
}