Skip to content

feat: interactive init prefill, Codex support, self-update, install auto-init#63

Merged
aptend merged 3 commits intomainfrom
my
Mar 20, 2026
Merged

feat: interactive init prefill, Codex support, self-update, install auto-init#63
aptend merged 3 commits intomainfrom
my

Conversation

@aptend
Copy link
Contributor

@aptend aptend commented Mar 20, 2026

What type of PR is this?

  • feat (new feature)
  • fix (bug fix)
  • docs (documentation)
  • style (formatting, no code change)
  • refactor (code change that neither fixes a bug nor adds a feature)
  • perf (performance improvement)
  • test (adding or updating tests)
  • chore (maintenance, tooling)
  • build / ci (build or CI changes)

Which issue(s) this PR fixes

Fixes #

What this PR does / why we need it

memoria init -i prefill support

  • --tool, --api-url, --token can now be passed alongside -i to skip corresponding interactive steps
  • When --api-url + --token are provided, DB and Embedding steps are skipped entirely
  • Summary always shows directory, tool, and connection info
  • API mode runs connectivity check against /health endpoint

Codex support (4th AI tool)

  • MCP written to ~/.codex/config.toml (global, TOML format)
  • Rules written to {project}/AGENTS.md (single merged file)
  • Append-only: preserves existing user content, only replaces the memoria section
  • detect_tools, cmd_status, cmd_rules all updated for Codex

memoria update subcommand

  • Fetches latest release tag from GitHub API
  • Compares with current version, skips if already up to date
  • Downloads with progress display (MB / MB %)
  • Auto-fallback to ghproxy on failure
  • Uses self_replace for in-place binary replacement
  • Permission denied → suggests sudo memoria update

install.sh improvements

  • --tool, --api-url, --token args: auto-runs memoria init after install
  • Auto-detects existing installation, skips download if version matches
  • Auto-fallback to ghproxy (ghfast.top) when GitHub download fails within 10s
  • MEMORIA_GHPROXY env var to override proxy URL
  • Auto-confirms when all init params provided (no need for -y)

@aptend aptend enabled auto-merge (squash) March 20, 2026 06:26
@aptend aptend disabled auto-merge March 20, 2026 06:29
@aptend aptend merged commit 6394d8d into main Mar 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant