8000 Quote placeholders where they stand, fast-forward the base, and drop agent-specific code by anvk · Pull Request #7 · anvk/lanes · GitHub
[go: up one dir, main page]

Skip to content

Quote placeholders where they stand, fast-forward the base, and drop agent-specific code - #7

Merged
anvk merged 1 commit into
mainfrom
lane-tidy
Oct 20, 2026
Merged

anvk merged 1 commit into
mainfrom
lane-tidy

Conversation

@anvk
@anvk anvk commented Oct 20, 2026
Copy link
Copy Markdown
Owner

Stacked on #6; merge that first.

Summary

  • Placeholders are quoted to fit their place: bare, inside "…" or inside '…'. echo "{path}" used to print literal quote characters for a folder with spaces.
  • Base update: creating a lane fetches only the branch the base's ref names (not all of origin), and moves the base with git merge --ff-only instead of git rebase --autostash. With --force and local commits, the base is left as it is.
  • Layering: core/lifecycle.ts no longer asks questions; the setup prompt and typed confirmations moved to cli/flows.ts.
  • No agent special-casing: the Warp plugin no longer reads ~/.claude to drop --continue. The default template uses claude --continue || claude.
  • npm ci in the installer, self-update, and plugin installs that have a lockfile, so an install never rewrites a lockfile and blocks later updates. New test: each package.json matches its lockfile.

Testing

  • 50 CLI + 5 Warp tests pass, including placeholders run through a real sh with spaces, quotes and $ in the path
  • End to end: a teammate's commit on origin/main was fetched, the base fast-forwarded to it, and the new lane opened at it
  • A fresh clone installs with npm ci, builds, and stays clean

🤖 Generated with Claude Code

Base automatically changed from lane-safety to main October 20, 2026 15:34
…agent-specific code

- {path} and friends are quoted to fit their place: bare, inside "…" or
  inside '…'. `echo "{path}"` used to print literal quote characters for
  a folder with spaces.
- Creating a lane fetches only the branch the base's ref names, and moves
  the base forward with git merge --ff-only instead of rebasing whatever
  it has checked out; with --force and local commits it is left as it is.
- core/lifecycle.ts no longer asks questions: the setup prompt and the
  typed confirmations are in cli/flows.ts.
- The Warp plugin no longer reads ~/.claude to drop --continue. The
  default template says `claude --continue || claude` instead, so no
  agent is special-cased in code.
- The installer and self-update use npm ci, and plugins with a lockfile
  too, so an install never rewrites a lockfile and blocks later updates.
  A test fails when a package.json and its lockfile drift apart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anvk
anvk merged commit 97b7000 into main Oct 20, 2026
@anvk
anvk deleted the lane-tidy branch October 20, 2026 15:36
anvk added a commit that referenced this pull request Oct 20, 2026
…ormats (#8)

Stacked on #7 (which is stacked on #6); merge those first.

## Summary
**Utils**
- `core/paths.ts`: `~/.lanes`, the plugin folder and record, the default
install dir, and `~` expansion (which no longer turns `~other/x` into a
folder in your own home). Used by update, plugins and template loading.
- `lanesInWorkspace()` replaces three copies of "every lane folder with
its path and base".
- The `init` wizard's line editor moved into `ui/tui.ts` with the rest
of the raw-mode code.

**Removed**
- Conversions for config formats lanes never had (`warpTabs`,
`warpTabsSource`, `warpTabGroup`, `setupCommand`/`teardownCommand` tabs,
`baseFolder`), about 100 lines, and with them the core config's
knowledge of the Warp plugin's source.
- The `tabs` alias for `lanes commands`.
- `commandSucceeds` (unused) and needless exports.

## Testing
- 47 CLI tests pass (the removed formats' tests went with them; document
parsing now checks that stray `warpTabs` keys are ignored)
- End to end: `lanes init` with Esc goes back one question;
open/list/remove work, with the stable key `app-1` and `"{path}"` intact

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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

0