Generate or update a repo-specific .hookcode.yml for this HookCode monorepo...
Generate a valid .hookcode.yml tailored to this repository's dependency install workflow and preview dev-server setup, using the latest parser/runtime rules (display, named {{PORT:<instance>}}, and no fixed local ports).
references/hookcode-yml-logic.md for schema rules, allowlists, and preview behavior.package.json uses pnpm workspaces and exposes dev:frontend and dev.frontend/package.json uses vite for dev.version: 1.failureMode: soft unless the user explicitly wants hard failure.install: "pnpm install --frozen-lockfile" at repo root (workdir optional).preview.instances entries with unique name values.name: frontendworkdir: "frontend"command: "pnpm dev --host 127.0.0.1 --port {{PORT:frontend}}"display: webviewreadyPattern: "Local:"name: backendworkdir: "backend"command: "pnpm run prisma:generate && pnpm exec nest start"display: terminalenv.PORT: "{{PORT:backend}}"port: in preview instances (unsupported by schema).-- --port CLI pattern.workdir is relative and inside the repo.PORT must use {{PORT}} or {{PORT:<instance>}}.localhost, 127.0.0.1, 0.0.0.0, and ::1 must not hardcode numeric ports..hookcode.yml at repo root and list assumptions (e.g., pnpm workspace install).Copy assets/hookcode.yml.template to <repo-root>/.hookcode.yml, then adjust if the user wants different commands, additional runtimes, or multiple preview instances.
package.json).frontend/ and optional backend preview in backend/..hookcode.yml includes version: 1.display modes (webview for frontend, terminal for backend when enabled).port: fields.{{PORT}} and {{PORT:<instance>}} target defined instances).