28 Commits

Author SHA1 Message Date
Mplan 55db09c973 feat(config): add interactive config editor and GitLab PR support (#4)
Build / bun-build (push) Successful in 32s
Revamp the configuration UI with an interactive editor that supports inline text editing, navigation, and field validation, replacing the previous sequential prompts. Add GitLab pull request creation support via the `glab` CLI, and extend back navigation to all interactive menus for a consistent user experience.

Reviewed-on: #4
v0.1.2
2026-06-12 09:00:28 +08:00
Mplan c8626ff69a ci(gitea): add build workflow for Gitea CI
Build / bun-build (push) Successful in 1m2s
2026-06-11 18:56:08 +08:00
Mplan 7e9cab5805 docs(readme): add PR creation details and update badges 2026-06-11 18:51:44 +08:00
Mplan 9885096229 feat(cli): add branch push check before PR creation v0.1.1 2026-06-11 18:24:53 +08:00
Mplan 1ea180387c refactor(cli): extract interactive menu into reusable module (#3)
Extract duplicate menu rendering logic from `index.ts` into a new `src/menu.ts` module, providing generic `selectOne` and `selectMany` functions. This reduces code duplication, improves maintainability, and adds consistent UI controls display across the commit flow and platform selection.

Reviewed-on: #3
2026-06-11 18:12:12 +08:00
Mplan 6ff541284e feat(cli): add pull request creation with AI-generated messages (#2)
Add a new `gai pr` subcommand that generates pull request titles and descriptions using AI, then creates the PR via GitHub CLI (`gh`) or Gitea CLI (`tea`). This extends the existing commit-generation system by reusing retry logic and prompt infrastructure, and introduces a `callAI` function that returns raw output (instead of pre-cleaned messages) to support structured PR responses.

Reviewed-on: #2
2026-06-11 00:39:20 +08:00
Mplan 76a5bac11a chore(config): ignore bun.lock v0.1.0 2026-06-11 00:01:40 +08:00
Mplan 0bfde59725 chore(config): rename project to gai 2026-06-10 23:57:25 +08:00
Mplan 890a192157 feat(cli): add help subcommand to show usage information 2026-06-09 18:52:03 +08:00
Mplan a4e0b6f747 feat: implement gai CLI for AI-generated Conventional Commits (#1)
Reviewed-on: #1
2026-06-09 18:21:23 +08:00
Mplan c2e60db196 chore(config): update default model to deepseek-v4-flash 2026-06-09 17:43:00 +08:00
Mplan 647d1096ba refactor(cli): extract commit result display and extend commit return with stats 2026-06-09 17:38:23 +08:00
Mplan 6d007698f9 feat(cli): show commit hash and summary on success 2026-06-09 17:38:00 +08:00
Mplan 68e98be653 refactor(cli): replace external editor with inline terminal editing 2026-06-09 17:31:52 +08:00
Mplan 37916f6c49 feat(cli): use external editor for commit message editing 2026-06-09 17:24:07 +08:00
Mplan 8be9f51532 docs: add comprehensive project documentation 2026-06-09 17:22:03 +08:00
Mplan 455c5d9b41 docs: add MIT license 2026-06-09 17:20:53 +08:00
Mplan de96c8862e feat: add retry logic to AI client and interactive unstaged file selector 2026-06-09 17:13:34 +08:00
Mplan 9f33d0f2ed chore: update default API and model to DeepSeek 2026-06-09 17:09:32 +08:00
Mplan 401f6ccbe0 test: add unit tests for config and prompt modules 2026-06-09 17:09:06 +08:00
Mplan a058881b53 feat: initial project setup with gai tool 2026-06-09 16:41:02 +08:00