Skip to content

@hanzo/build 0.2.139: a web page in a Dev run — critique, redesign, live Preview - #45

Merged
Darkhorse7stars merged 1 commit into
mainfrom
feat/312-url-critique-redesign
Nov 21, 2026
Merged

Darkhorse7stars merged 1 commit into
mainfrom
feat/312-url-critique-redesign

Conversation

@Darkhorse7stars

@Darkhorse7stars Darkhorse7stars commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Fixes the web and cloud half of hanzo-inc/app#312.

What changes for a customer

  • Paste or drop a site's address into New (hanzo.app/dev, a cloud or machine run). Dev offers Critique and redesign acme.com/pricing. That fills the ask with three steps: a page-specific critique; a redesign built in the workspace that keeps the page's facts and invents no prices or claims; and the redesign's dev server, started on localhost and kept running so the run's Preview shows it live while you iterate.
  • The page is read before the run starts. It goes through the platform's guarded reader, POST /v1/crawl, with the person's credential (no new server fetch). The reader refuses private, loopback, link-local and metadata addresses after DNS and on every redirect, caps size and time, and sends no user cookies. The page's text rides the ask as one more attached file (acme.com (web page).md), marked as the page's content and not instructions.
  • A page that can't be read is one sentence under the composer, and no run starts: private or local address, needs a sign-in (401/403), 404, 429, 5xx, a file rather than a page, a host that can't be found, too slow, no readable text.
  • On This computer (Hanzo Desktop):
    • A public page named in the ask is read the same way while signed in, so the agent, which has no network, gets its text.
    • A page that can't be read is said, and the run still goes on without it, because an ask there may only mention a link.
    • A localhost address is left for the agent.
    • Where the host redesigns sites itself (@hanzo/build 0.2.138: redesign a site from its address on Hanzo Desktop #46), the "Critique and redesign" offer is hidden.
  • Preview: the way out is now a labelled Open in browser button (it was an icon-only "Open in a new tab"). It's on the live sandbox preview, its error state and the published site, and opens the live page in the person's own browser.

Tests

  • src/page.test.ts covers:
    • address parsing and local hosts
    • each reader refusal as a Sentence
    • POST /v1/crawl with the bearer and org
    • thin pages and 401
    • readAll
    • the attached file's wording
    • the critique ask
  • pnpm test: 934 passed, 2 skipped. pnpm typecheck clean.
  • Browser specs against the dev server with a stubbed platform:
  • The rest of cov-run-desk.spec.ts: the same 12 tests (desktop door, tickets, terminal) fail on this branch and on main ef9c61a.

@Darkhorse7stars
Darkhorse7stars force-pushed the feat/312-url-critique-redesign branch from f61f1fc to 39abcc5 Compare November 21, 2026 03:44
@Darkhorse7stars Darkhorse7stars changed the title @hanzo/build 0.2.137: a web page in a Dev run — critique, redesign, live Preview @hanzo/build 0.2.138: a web page in a Dev run — critique, redesign, live Preview Nov 21, 2026
@zeekay

zeekay commented Nov 21, 2026

Copy link
Copy Markdown
Member

Heads up from the desktop side of #312 (#46, @hanzo/build 0.2.138, already on main): on This computer, with a host that has Host.site (Hanzo Desktop), landing.tsx now draws redesign.view — Redesign {site}? for an address pasted alone or with a request to redesign it. The window opens the site and saves a copy for the agent, serves redesign/ live and shows it in Chrome, so no /v1/crawl read and no sign-in are needed there. When you rebase, please skip the Critique and redesign offer where redesign.found is set (one address, one offer); the cloud, machine and web paths are unchanged by #46. Version is 0.2.138 on main now, so this one needs the next.

…ive Preview (hanzo-inc/app#312)

- page.ts: an address named in New's ask is read before the run starts,
  through the platform's guarded reader (POST /v1/crawl, the person's
  credential), and rides the ask as one more attached file, said to be the
  page's content and not instructions. A page that cannot be read (private or
  local, HTTP 401/403/404/429/5xx, a file, no such host, too slow, no text) is
  one sentence under the composer, and no run starts.
- New offers "Critique and redesign <page>" for an address in the ask: a
  critique, a redesign built in the workspace, and its dev server kept running
  on localhost so the Preview shows it live while the person iterates.
- On This computer a public page is read the same way while signed in; a
  localhost address is the agent's own to open.
- The Preview's way out is a labelled "Open in browser" (was an icon-only
  "Open in a new tab"), on what the sandbox serves and where a run published.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Darkhorse7stars
Darkhorse7stars force-pushed the feat/312-url-critique-redesign branch from 39abcc5 to 7ad35cb Compare November 21, 2026 04:10
@Darkhorse7stars Darkhorse7stars changed the title @hanzo/build 0.2.138: a web page in a Dev run — critique, redesign, live Preview @hanzo/build 0.2.139: a web page in a Dev run — critique, redesign, live Preview Nov 21, 2026
@Darkhorse7stars
Darkhorse7stars merged commit d911ea1 into main Nov 21, 2026
6 checks passed
@Darkhorse7stars
Darkhorse7stars deleted the feat/312-url-critique-redesign branch November 21, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants