8000 Shared paths and lane lookup, one line editor, and remove inherited formats by anvk · Pull Request #8 · anvk/lanes · GitHub
[go: up one dir, main page]

Skip to content

Shared paths and lane lookup, one line editor, and remove inherited formats - #8

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

anvk merged 1 commit into
mainfrom
lane-utils

Conversation

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

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

Base automatically changed from lane-tidy to main October 20, 2026 15:36
…ormats

Utils:
- core/paths.ts holds ~/.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); update, plugins and template loading
  use it
- lanesInWorkspace() replaces three copies of "every lane folder with its
  path and base"
- the init wizard's line editor moved into ui/tui.ts beside the rest of
  the raw-mode code; Esc still goes back a question

Removed:
- conversions for config formats lanes never had (warpTabs,
  warpTabsSource, warpTabGroup, setupCommand/teardownCommand tabs,
  baseFolder), and with them the core config's knowledge of the Warp
  plugin's source
- the `tabs` alias for `lanes commands`
- commandSucceeds (unused), and exports nothing outside their file used

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anvk
anvk merged commit cda281e into main Oct 20, 2026
@anvk
anvk deleted the lane-utils branch October 20, 2026 15:38
anvk added a commit that referenced this pull request Oct 22, 2026
…x and macOS (#9)

- A private root `package.json` holds Prettier and ESLint (`@eslint/js`
+ `typescript-eslint` recommended) for the whole repository: `npm run
format`, `format:check` and `lint`.
- `cli` and `plugins/warp` gain `npm run typecheck`, which includes
their tests. Until now the tests ran without type checking.
- A new CI workflow runs two jobs:
  - **style:** formatting check, then lint;
- **test:** on Ubuntu and macOS, the plugin API install, then the Warp
plugin and the CLI (typecheck → build → test). On Linux the macOS-only
clone helper is skipped, as the build already allows.
- The code is formatted once here (Prettier, width 120, no trailing
commas, to match the existing style), so most of the diff is whitespace.
- What the checks found:
  - errors re-thrown from a `catch` now keep the original as `cause`;
  - a needless `\/` escape in a regex;
  - a starting value that was always overwritten;
- a test fixture that still set `warpTabGroup`, which the config dropped
in #8.

CI fails on unformatted code instead of rewriting it; run `npm run
format` at the root to fix.

🤖 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