Skip to content

v0.1.1 — self-maintenance (lens_system) + one-line install

Choose a tag to compare

@segentic-lab segentic-lab released this 06 Jul 16:36
· 2 commits to main since this release

Adds the self-maintenance layer and a one-line install, bringing lens to the periscope family standard.

Added

  • lens_system — one tool, three actions:
    • status — running vs on-disk version, git commit, install type, Node version, and an update-availability check.
    • agents_md — returns the CURRENT AGENTS.md, so an agent can refresh a stale pasted copy of its operating guide (and persist it into CLAUDE.md).
    • update — dry-run by default; apply=true runs update.sh (git pull + npm ci + build + self-test). Honest semantics: restartRequired (a Node stdio server can't hot-reload), force=true stashes local edits, managed (no-.git) installs refuse.
    • It operates on the lens install directory (resolved from the module URL) — not process.cwd(), which is the user's project (the code tools' sandbox). Two separate roots, by design.
  • One-line install.sh + update.sh — no system packages, no native build (tree-sitter is WebAssembly): checks Node 18+, npm ci, build, self-test, writes a per-machine mcp-config.json. git clone … && ./install.sh and you're registered.

138 tests (unit + stdio e2e, incl. driving the server from a foreign cwd to prove the install-dir/​sandbox separation). 12 tools total.

Full changelog: v0.1.0...v0.1.1