Documentation
¶
Overview ¶
websites_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.
websites_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.
The 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/<name>. 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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var RemedyLines = []string{".memcode/*", "!.memcode/tasks/"}
RemedyLines 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.
Functions ¶
func Execute ¶
func Execute()
Execute 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.
Types ¶
This section is empty.
Source Files
¶
- acceptance.go
- admin.go
- admin_autonomy.go
- admin_tools.go
- agent_context.go
- approve.go
- arch.go
- artifacts.go
- auth.go
- bench.go
- capabilities.go
- claims.go
- context.go
- doctor.go
- engine.go
- eval.go
- explore.go
- gateway.go
- gateway_install.go
- gateway_schedule.go
- index.go
- init.go
- interactive.go
- jobheartbeat.go
- jobs.go
- learn.go
- login.go
- logout.go
- map.go
- mcp.go
- mcp_serve.go
- migrate.go
- objective.go
- ollama.go
- output.go
- overview.go
- personal_tools.go
- plan.go
- predict.go
- prefs.go
- producers.go
- project.go
- protocol.go
- recall.go
- root.go
- run.go
- script.go
- session.go
- session_delete.go
- sources.go
- stack.go
- sync.go
- task.go
- task_eval.go
- task_runtime.go
- task_suggest.go
- todos.go
- upgrade.go
- version.go
- websites.go
- websites_build.go
- websites_builds.go
- websites_create.go
- websites_deps.go
- websites_dev.go
- websites_get.go
- why.go
- wizard.go