latentcode 0.1.0-alpha.2 → 0.1.0-alpha.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
@@ -3,9 +3,10 @@
3
3
  Terminal coding agent that pays you for its idle time.
4
4
 
5
5
  - **Bring your own model access.** API keys or a provider subscription where the provider allows third-party clients. Connect them inside the app with `/connect`.
6
- - **Earn mode.** While the agent works, one clearly labelled sponsored line sits in the working bar. You earn USDC from it on your Latent wallet, the same wallet the other Latent surfaces use.
6
+ - **Earn mode.** While the agent works, one clearly labelled sponsored line sits in the working bar. You earn Latent Credit from it on your Latent wallet (the same wallet the other Latent surfaces use): $1 of model usage per credit with a bonus when you keep it — spend it with `/key`, or sell it for USDG.
7
7
  - **The model is never for sale.** Ads never enter the model's context or output, and the agent never recommends sponsored tools. The only targeting signal that leaves your machine is a coarse category slug (for example `backend`), classified locally.
8
- - **Real attention.** An impression is billed once, and only after the ad has been on screen for 2 s while the terminal is focused (xterm focus events, DEC 1004).
8
+ - **Real attention.** An impression is billed once, and only after the ad has been on screen for 10 s while the terminal is focused (xterm focus events, DEC 1004) — the ad server's view floor, the same rule as every other Latent surface. A turn that ends earlier keeps the ad for the next turn instead of wasting it. Only impressions the server confirms count toward the session tally.
9
+ - **Clickable.** In terminals with hyperlinks (iTerm2, Ghostty, Kitty, WezTerm, VS Code, Windows Terminal) the sponsored copy itself is a link; elsewhere the short URL is shown beside it. A coloured monogram badge (stable per brand) leads the line in every terminal. `ctrl+o` works everywhere. Every click goes through the ad server's tracked redirect. `LATENTCODE_LINKS=osc8|plain|hybrid` overrides the detection.
9
10
 
10
11
  ## Install (alpha)
11
12
 
@@ -106,7 +107,7 @@ latentcode (this repo) opencode serve (child process, 127.0.0.1, rand
106
107
  - `src/engine/catalog.ts` turns the engine's flat provider and model lists into what the picker shows: providers with a plain connection label, models with size, price and effort levels.
107
108
  - `src/boot.ts` runs start-up as named steps (engine, providers, model, safety, Earn) that the start card displays.
108
109
  - `src/ui/` is the Ink TUI: `App.tsx` (transcript, prompt, palette, status line), `panels/` (model picker, providers and connect, wallet), and the pure helpers `editor.ts`, `markdown.ts`, `commands.ts`, `stdin.ts`.
109
- - `src/ads/controller.ts` holds the ad lifecycle: fetch when work starts, accrue focused visible time, bill once, rotate after 30 s, hide when idle.
110
+ - `src/ads/controller.ts` holds the ad lifecycle: fetch when work starts, accrue focused visible time, bill once at the 10 s view floor, rotate after 10 s, hide when idle (an un-billed ad is held for the next turn while its token is valid). `src/ads/adline.ts` is the shared line format: `Brand — body`, the tracked click link, and the OSC 8 / plain-URL choice per terminal.
110
111
  - `src/ads/{sanitize,classify,killswitch}.ts` are ported from `latent-market/cli/src`. Keep them in sync.
111
112
 
112
113
  ## Tests