mirror of
https://github.com/hanzo-apps/hanzo.ai.git
synced 2026-10-29 07:20:43 +00:00
Gen (hanzoai/gen, MIT) runs other coding agents with the Hanzo toolset, Hanzo's metered models on --cloud, and the session linked to the account; Dev is Hanzo's own agent and Gen's default. The standalone gen is not released, so the page offers no install for it and every command it prints is the Hanzo CLI's hanzo dev --<agent>. The agents are hanzoai/gen's list (src/agents/mod.rs plus backend.rs), each flag run against hanzo 8.5.732, which named the agent back. Qwen Code and Kimi Code stay off the page: their names are Zen's upstream bases (lib/brand). Products -> Apps and tools gains Hanzo Dev and Hanzo Gen. Gate: e2e/gates/gen.spec.ts. lib/data/oss.json is read again (sync-oss, 2026-10-16): hanzoai/gen went public after the last snapshot, and the sitemap gate holds every GitHub link to a repository the snapshot calls public.
20 lines
727 B
TypeScript
20 lines
727 B
TypeScript
import type { Page } from '@playwright/test'
|
|
|
|
/**
|
|
* How far a page scrolls sideways, in px, once the clip that would hide it is
|
|
* lifted: walked to its foot first, so every section a reveal holds back has
|
|
* been drawn, then measured with `overflow-x` back to visible. Zero or less is a
|
|
* page no wider than its window.
|
|
*/
|
|
export const sideways = (page: Page): Promise<number> =>
|
|
page.evaluate(async () => {
|
|
for (let y = 0; y < document.body.scrollHeight; y += 700) {
|
|
window.scrollTo(0, y)
|
|
await new Promise((r) => setTimeout(r, 30))
|
|
}
|
|
const d = document.documentElement
|
|
d.style.overflowX = 'visible'
|
|
document.body.style.overflowX = 'visible'
|
|
return d.scrollWidth - d.clientWidth
|
|
})
|