cmd

package
v0.47.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 89 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL