mirror of
https://github.com/hanzoai/build.git
synced 2026-11-21 23:02:14 +00:00
Depends on #54 (0.2.147): this branch is stacked on it, so merge #54 first. Cause - Run now, a task's switch, Try again, Approve and build, Resume, setup, Wake, Fork, Customize > Bots > Add (a 24/7 bot on the default $10 a month budget), a task made from a draft, a template start and Publish again each started a billed run or a cloud computer on one press. A page opening a preview or a door could wake a suspended sandbox, and suggestions were on unless turned off. Change - One way to ask: `Host.confirm(spend)` is the host's own question (the Hanzo app's useSpend); absent, ask.tsx's AlertDialog asks with the safe answer focused. It spends only on a strict `true` while the asking screen is still mounted; a no, a throw or a late yes spends nothing, and two presses spend once. Each question carries `again` (`<kind>.<uses>`), the only key a host may remember a yes under; a 24/7 bot's is null by its type. - api/sandbox.ts resumes nothing without a `Wake`; pages that open a door or a preview never wake one (`stay`). - Suggestions are the account's switch (`suggestions` in /v1/pref), read by useSuggestions itself: off or signed out sends and reads nothing, and off deletes the rows kept. `book` asks and lives in suggest.ts. Customize, Profile and Forge are exported for hosts. Remove project, Cancel plan and Switch to free use the Confirm with the safe answer's words. - README states each contract and what suggestions send. Testing - tsc --noEmit: clean. - vitest run (whole suite): 72 files passed, 1 skipped; 955 tests passed, 2 skipped. - Not run: the Playwright e2e specs under src/e2e, and the change in a window. Risk - 60 files. It adds required props (`onOff` on Suggestions), so hosts that draw them need the matching @hanzo/app change.
112 lines
3.0 KiB
JSON
112 lines
3.0 KiB
JSON
{
|
|
"name": "@hanzo/build",
|
|
"version": "0.2.148",
|
|
"type": "module",
|
|
"license": "Apache-2.0 OR MIT",
|
|
"description": "Hanzo Build — say what you want, watch it built, deployed and running. The builder as a component, mounted by the Hanzo app at hanzo.ai.",
|
|
"packageManager": "[email protected]",
|
|
"engines": {
|
|
"node": ">=22.18"
|
|
},
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc --noEmit && vite build",
|
|
"build:lib": "rm -rf lib && tsc -p tsconfig.lib.json",
|
|
"typecheck": "tsc --noEmit",
|
|
"preview": "vite preview",
|
|
"test": "vitest run",
|
|
"e2e": "HANZO_E2E=1 vitest run src/e2e",
|
|
"prepack": "pnpm run build:lib",
|
|
"site": "playwright test",
|
|
"cover": "node cover/run.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@hanzo/composer": "catalog:",
|
|
"@hanzo/font": "catalog:",
|
|
"@hanzo/gui": "catalog:",
|
|
"@hanzo/i18n": "catalog:",
|
|
"@hanzo/iam": "catalog:",
|
|
"@hanzo/ui": "catalog:",
|
|
"@hanzo/vite": "catalog:",
|
|
"@hanzo/voice": "catalog:",
|
|
"@hanzogui/lucide-icons-2": "catalog:",
|
|
"@hanzogui/next-theme": "catalog:",
|
|
"@playwright/test": "catalog:",
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "catalog:",
|
|
"@vitejs/plugin-react": "catalog:",
|
|
"monocart-coverage-reports": "catalog:",
|
|
"next-themes": "catalog:",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"react-hook-form": "catalog:",
|
|
"react-native-web": "catalog:",
|
|
"react-router": "catalog:",
|
|
"typescript": "catalog:",
|
|
"vite": "catalog:",
|
|
"vitest": "catalog:"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./lib/index.d.ts",
|
|
"import": "./lib/index.js",
|
|
"default": "./lib/index.js"
|
|
},
|
|
"./plan": {
|
|
"types": "./lib/plan.d.ts",
|
|
"import": "./lib/plan.js",
|
|
"default": "./lib/plan.js"
|
|
},
|
|
"./route": {
|
|
"types": "./lib/route.d.ts",
|
|
"import": "./lib/route.js",
|
|
"default": "./lib/route.js"
|
|
},
|
|
"./mind": {
|
|
"types": "./lib/mind.d.ts",
|
|
"import": "./lib/mind.js",
|
|
"default": "./lib/mind.js"
|
|
},
|
|
"./handoff": {
|
|
"types": "./lib/handoff.d.ts",
|
|
"import": "./lib/handoff.js",
|
|
"default": "./lib/handoff.js"
|
|
},
|
|
"./dev-mode": {
|
|
"types": "./lib/dev-mode.d.ts",
|
|
"import": "./lib/dev-mode.js",
|
|
"default": "./lib/dev-mode.js"
|
|
},
|
|
"./names": {
|
|
"types": "./lib/names.d.ts",
|
|
"import": "./lib/names.js",
|
|
"default": "./lib/names.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"lib",
|
|
"LICENSE-APACHE",
|
|
"LICENSE-MIT",
|
|
"NOTICE"
|
|
],
|
|
"sideEffects": false,
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/hanzoai/build.git"
|
|
},
|
|
"peerDependencies": {
|
|
"@hanzo/gui": ">=8.3.5",
|
|
"@hanzo/ui": ">=8.30.3",
|
|
"@hanzogui/lucide-icons-2": ">=8.3.5",
|
|
"react": ">=19.2.8",
|
|
"@hanzo/voice": ">=0.1.19",
|
|
"@hanzo/composer": ">=0.2.0",
|
|
"@hanzo/i18n": ">=0.5.5"
|
|
}
|
|
}
|