clixad 0.0.1-beta.39 → 0.0.1-beta.40

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.
@@ -281,6 +281,7 @@ function premiumUnlockHint(unlockUsd) {
281
281
  function premiumHeadline(unlockUsd) {
282
282
  return typeof unlockUsd === "number" && unlockUsd > 0 ? `Premium: complete an offer-wall survey or buy credits from ${usd(unlockUsd)}.` : "Premium: complete an offer-wall survey to unlock it.";
283
283
  }
284
+ var NO_PREMIUM_CREDITS = "You have no credits from offer-wall surveys or purchases right now. A survey that screens you out pays little or nothing.";
284
285
  function usd(v) {
285
286
  return Number.isInteger(v) ? `$${v}` : `$${v.toFixed(2)}`;
286
287
  }
@@ -6231,6 +6232,7 @@ export {
6231
6232
  premiumLocked,
6232
6233
  premiumUnlockHint,
6233
6234
  premiumHeadline,
6235
+ NO_PREMIUM_CREDITS,
6234
6236
  usd,
6235
6237
  packsFromClause,
6236
6238
  parseSpendable,
package/dist/clixad.mjs CHANGED
@@ -4,6 +4,7 @@ import {
4
4
  GatewayClient,
5
5
  IDENTITY_KEYS,
6
6
  MaintenanceError,
7
+ NO_PREMIUM_CREDITS,
7
8
  NO_SEARCH_INSTRUCTION,
8
9
  PaywallError,
9
10
  PremiumLockedError,
@@ -46,7 +47,7 @@ import {
46
47
  takeConfigNotices,
47
48
  toolSchemaFor,
48
49
  usd
49
- } from "./chunk-HB4BPQH4.mjs";
50
+ } from "./chunk-APM2R6WI.mjs";
50
51
 
51
52
  // src/tui/load.ts
52
53
  import * as nodeModule from "node:module";
@@ -125,7 +126,7 @@ async function withProductionReact(load) {
125
126
  }
126
127
  function loadTui() {
127
128
  boundInkCaches();
128
- return withProductionReact(() => import("./tui-57KDGV6V.mjs"));
129
+ return withProductionReact(() => import("./tui-HNQYPDC2.mjs"));
129
130
  }
130
131
 
131
132
  // src/title.ts
@@ -337,13 +338,11 @@ function printPremiumRefusal(err) {
337
338
  console.log(
338
339
  c.yellow(`${err.model} is a premium model. It runs on credits from offer-wall surveys or purchases.`)
339
340
  );
340
- if (err.premiumCredits > 0) {
341
- console.log(
342
- c.yellow(
343
- `This turn needs about ${err.neededCredits.toLocaleString("en-US")} of those credits, and you have ${err.premiumCredits.toLocaleString("en-US")}.`
344
- )
345
- );
346
- }
341
+ console.log(
342
+ c.yellow(
343
+ err.premiumCredits > 0 ? `This turn needs about ${err.neededCredits.toLocaleString("en-US")} of those credits, and you have ${err.premiumCredits.toLocaleString("en-US")}.` : NO_PREMIUM_CREDITS
344
+ )
345
+ );
347
346
  console.log(c.yellow(`Run \`clixad earn\` for a survey on the offer walls. Offers pay ${grantLabel(err.grantPerAd)}.`));
348
347
  if (err.unlockUsd) {
349
348
  console.log(
@@ -12,6 +12,7 @@ import {
12
12
  MODE_LABEL,
13
13
  MaintenanceError,
14
14
  McpHub,
15
+ NO_PREMIUM_CREDITS,
15
16
  NO_SEARCH_INSTRUCTION,
16
17
  PaywallError,
17
18
  PremiumLockedError,
@@ -84,7 +85,7 @@ import {
84
85
  usd,
85
86
  visibleLength,
86
87
  welcomeBanner
87
- } from "./chunk-HB4BPQH4.mjs";
88
+ } from "./chunk-APM2R6WI.mjs";
88
89
 
89
90
  // src/tui/index.tsx
90
91
  import "react";
@@ -1807,7 +1808,8 @@ ${preferencesText}` : ""),
1807
1808
  pendingPremiumRef.current = err;
1808
1809
  setPremium({ unlocked: false, credits: err.premiumCredits });
1809
1810
  const short = err.premiumCredits > 0 ? ` This turn needs about ${err.neededCredits.toLocaleString("en-US")} of those credits, and you have ${err.premiumCredits.toLocaleString("en-US")}.
1810
- ` : "";
1811
+ ` : ` ${NO_PREMIUM_CREDITS}
1812
+ `;
1811
1813
  push({
1812
1814
  kind: "notice",
1813
1815
  tone: "warn",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clixad",
3
- "version": "0.0.1-beta.39",
3
+ "version": "0.0.1-beta.40",
4
4
  "description": "Free AI coding agent in your terminal, funded by rewarded ads.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",