Commit graph

123 commits

Author SHA1 Message Date
e1033398e9 fix(markdown): correct list item whitespace and indentation 2026-06-19 15:14:00 -04:00
5b138df664 refactor(errors): extract isErrorLike and use ExecaError class in tts 2026-06-19 14:33:56 -04:00
bf5e223abf refactor: rename flag variables for improved clarity and intent 2026-06-19 14:28:16 -04:00
d157978d52 docs: update AGENTS.md to reflect Node.js/pnpm migration 2026-06-18 18:24:02 -04:00
e2253b912d chore(deps): update dependencies and configure pnpm minimum release age 2026-06-18 17:47:09 -04:00
4725f148f3 chore: migrate @cliffy/table to native jsr protocol & fix prompt typos 2026-06-18 16:13:39 -04:00
4bccbcc9ee feat(cli): add --file flag for file review and refactor prompt generation
- Inject current date into review prompts to improve LLM context accuracy
- Remove unused `module` field from package.json
2026-06-17 22:48:54 -04:00
7652e62d47 refactor(entries): simplify stdin reading with node:stream/consumers 2026-06-17 12:22:35 -04:00
19272bc0b4 refactor: flatten source directory structure 2026-06-17 01:40:53 -04:00
eec90209d2 refactor(prompts): extract prompt templates to dedicated module 2026-06-17 01:25:27 -04:00
3c3dab1525 chore: move entry files to src/ directory and update paths 2026-06-17 01:12:40 -04:00
f8e0f9a368 refactor(errors): extract top-level error handling into shared utility 2026-06-17 00:48:19 -04:00
56352d87ec fix(entry): improve error message formatting
- Relocate `util.parseArgs()` inside the main function for cleaner
  scoping
- Update `.catch` handlers in `index.ts` and `tts.ts` to wrap text to
  terminal width and colorize errors in red
2026-06-16 19:02:23 -04:00
f3146ab087 feat(lmc): add --git-message and --review modes, standardize args casing 2026-06-16 16:57:51 -04:00
fc7d9101e9 refactor(tts): remove InputError class and use native Error 2026-06-16 16:45:17 -04:00
710d2e7593 build: switch binary bundler to esbuild
- Add explicit `--format=esm` flag to `build`
- Update `rolldown` to ^1.1.1 and add `esbuild` ^0.28.1 as a dependency
- Create `pnpm-workspace.yaml` with `allowBuilds: esbuild` to support native prebuilt binaries across platforms
2026-06-15 02:42:20 -04:00
dd6df6dd6d refactor(tts): CLI argument parsing and input handling 2026-06-15 02:21:40 -04:00
749559e19c fix(tts): sox combination order; refactor input logic flow
- Replace manual `process.stdin` listeners with `events.once()`
- Switch from `process.exit()` to `return` for cleaner async execution paths
- Update Node.js module imports to use default exports consistently
2026-06-12 19:43:24 -04:00
0e07268bfb chore(docs): update README.md 2026-06-12 03:32:28 -04:00
4674cca337 refactor(tts): replace execa shell command with native fs.rm iteration 2026-06-12 02:39:15 -04:00
32f9dd5495 refactor(tts): replace string interpolation with path.join() 2026-06-09 23:30:42 -04:00
7bf8951b62 fix(tts): --edit file handling and file globbing 2026-06-09 23:30:42 -04:00
574ebdc8a1 fix(markdown): handle <br> tokens and adjust codespan text color 2026-06-09 23:30:35 -04:00
21dac683a2 refactor: migrate from bun to node types and fix discrepancies 2026-06-08 20:17:22 -04:00
a03e6e94a9 feat(tts): add --edit flag and fix CLI argument parsing
- Improved input trimming and console output formatting in `tts.ts`
- Updated codespan colors in the markdown renderer for better visual contrast
- Disabled `noPropertyAccessFromIndexSignature` in tsconfig.json
2026-06-08 16:10:45 -04:00
39cb573619 refactor(tts): make cjs compatible and add sea config 2026-06-08 15:17:07 -04:00
3235a08633 refactor(tts): replace Bun-specific APIs with execa and Node.js stdlib
- Replace `$` and `Bun.spawn` with `execa` for process execution
- Swap `Bun.JSONL.parse` for native `JSON.parse` and use `node:readline` for stdin handling
2026-06-07 22:13:19 -04:00
4912864a75 chore: update build scripts and refine markdown rendering 2026-06-07 22:01:29 -04:00
bbee38be80 refactor(build): switch from esbuild to rolldown 2026-06-05 23:02:25 -04:00
6392cf3b76 chore: update package.json to reflect reality 2026-06-04 02:24:53 -04:00
43c3402931 chore(deps): consolidate all dependencies into devDependencies and clear production fields
- Move runtime packages from `dependencies` to `devDependencies`
- Remove `peerDependencies` as it is no longer required
2026-06-04 02:24:53 -04:00
f668037582 chore(config): pin @types/bun, tighten TypeScript strictness, and refactor config logic
- Pin `@types/bun` to `^1.3.14` for reproducible builds instead of using `latest`
- Update `tsconfig.json` with stricter type-checking flags and reorganize compiler options
- Refactor `initConfig` to DRY up the model default logic and add a null guard before process exit
2026-06-04 02:24:53 -04:00
d98ddb3ca7 build: migrate to commonjs and add node single executable app support
- Switch module type to commonjs in package.json
- Update esbuild target to node22 and remove explicit ESM format flag
- Add `bin` script for building a native binary using `node --build-sea`
- Introduce sea-config.json with code cache enabled for faster startup
2026-06-04 02:24:53 -04:00
cd3749b07e build: replace bun install/build with pnpm/esbuild 2026-06-04 02:24:32 -04:00
3e96007f1f refactor: migrate shiki to core API with dynamic language/theme loading
- Update code block regex to support symbols/numbers in language identifiers
- Adjust codespan background color to a softer shade
2026-06-03 16:50:44 -04:00
6372dfc41f refactor: extract latex symbol replacement into private method 2026-05-31 00:20:05 -04:00
fc4934af4a refactor: move wrapAnsi from blockquote/listitem to text tokens 2026-05-31 00:20:05 -04:00
c277418349 fix: list/blockquote newlines and table width 2026-05-26 16:56:52 -04:00
a887e1b185 fix: improve markdown rendering whitespace and list numbering 2026-05-25 23:21:24 -04:00
0c71e2cd54 refactor: replace Bun APIs with Node.js equivalents
Replace Bun.argv with process.argv, Bun.file() with fs/promises,
Bun.stringWidth with string-width package, and Bun.wrapAnsi with
wrap-ansi package for better compatibility.
2026-05-25 23:13:16 -04:00
b212fee200 refactor: replace Bun.markdown with marked library and custom renderer 2026-05-25 19:35:47 -04:00
4f9e7a7a1a style: enhance markdown inline formatting colors 2026-05-24 02:01:11 -04:00
03dee78e0c fix: change URL flag from boolean to string type for proper URL passing 2026-05-14 04:34:01 -04:00
7441a9fc19 docs: update README with new flags, examples, and dependencies 2026-05-14 03:08:01 -04:00
0ed6a23334 refactor: simplify renderer drain handling and expand LaTeX arrow replacements 2026-05-14 02:52:49 -04:00
7367cfdfe3 fix: blockquote and list whitespace handling in markdown rendering 2026-05-12 16:34:32 -04:00
af52e89928 fix: improve markdown rendering with proper wide character support 2026-05-12 14:16:07 -04:00
91175c70b6 feat: add URL support to TTS for fetching web page text 2026-05-12 00:32:48 -04:00
8cb1191fde refactor: simplify model selection in config initialization 2026-05-11 19:42:32 -04:00
7578e0ed2a fix: improve markdown rendering and codespan styling 2026-05-11 19:42:10 -04:00