{"modulePath":"github.com/memcode-ai/memcode","version":"v0.56.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cmd\n\nwebsites\\_deps.go — \\`memcode websites deps\\` and \\`memcode websites check\\`: the dependency policy and the production-build check, from the terminal. The hosted builder runs \\`deps check\\` before it installs anything, so the rule a site meets here is the rule it meets on memcode.ai.\n\nwebsites\\_dev.go — \\`memcode websites dev\\` runs a site's REAL vite-react-ssg dev server locally, not a preview iframe: full HMR, real browser devtools, the site's own code exactly as authored.\n\nThe only wrinkle is that the site's build output (draft/) and its durable uploaded assets (assets/) are served from two different places in production (the builder's dist/, and the sibling assets/ prefix) but need to appear at ONE url convention locally too: everything under /assets/\\\u003cname\u003e. Vite only has a single \\`publicDir\\`, so this generates an untracked MERGED public dir every run — symlinks to the project's own public/\\* entries, plus a symlink named \"assets\" pointing at a freshly downloaded cache of the site's uploaded assets — and points an untracked vite.config.js override at it via --config. Nothing here ever touches the tracked source tree.\n\n## Variables\n\n```go\nvar RemedyLines = []string{\".memcode/*\", \"!.memcode/tasks/\"}\n```\nRemedyLines are the ignore rules that expose .memcode/tasks while leaving the rest of .memcode ignored. They REPLACE a \\`.memcode/\\` rule rather than joining it; the second line makes the fix self-sufficient even if memcode's own .memcode/.gitignore is missing or has been edited.\n\n## Functions\n\n```go\nfunc Execute()\n```\nExecute runs the root command and exits non-zero on error. It installs a signal-cancelled context so Ctrl-C / SIGTERM on a NON-interactive command (agent -c, learn, eval, sync) cancels the turn and lets deferred cleanup run (store.Close, jobs.Finish, worktree cleanup, a mid-append events.jsonl flush) instead of hard-killing the process. The interactive TUI runs the terminal in raw mode, where Ctrl-C is delivered as a key event (vaxis handles it), not SIGINT — so this only bites the non-interactive paths, exactly where it's needed.\n\n","path":"github.com/memcode-ai/memcode/cmd","name":"cmd","synopsis":"websites_deps.go — `memcode websites deps` and `memcode websites check`: the dependency policy and the production-build check, from the terminal.","isRedistributable":true}
