Commit Graph

143 Commits

Author SHA1 Message Date
刘焱 0ff97fd213 docs(attachment): 子命令描述和注释中文化 2026-06-08 19:58:57 +08:00
刘焱 f5f1a34310 docs(dataset): 子命令描述和注释中文化 2026-06-08 19:58:54 +08:00
刘焱 a8be1a8100 docs(template): 子命令描述和注释中文化 2026-06-08 19:58:48 +08:00
刘焱 46eff83ef5 docs(ci): 子命令描述和注释中文化 2026-06-08 19:58:43 +08:00
刘焱 01e4515cb9 docs(search): 子命令描述和注释中文化 2026-06-08 19:58:36 +08:00
刘焱 fd647b7e75 docs(org): 子命令描述和注释中文化 2026-06-08 19:58:32 +08:00
刘焱 5c8cc3462c docs(util): 子命令描述和注释中文化 2026-06-08 19:58:30 +08:00
刘焱 a31b8e5b11 docs(sshkey): 子命令描述和注释中文化 2026-06-08 19:58:24 +08:00
刘焱 7fa93cb3c1 docs(label): 子命令描述和注释中文化 2026-06-08 19:58:20 +08:00
刘焱 68e7994d08 docs(commit): 子命令描述和注释中文化 2026-06-08 19:58:17 +08:00
刘焱 81cfcfb3e4 docs(file): 子命令描述和注释中文化 2026-06-08 19:58:09 +08:00
刘焱 596fb81a55 docs(milestone): 子命令描述和注释中文化 2026-06-08 19:56:30 +08:00
刘焱 84aae8554b docs(release): 子命令描述和注释中文化 2026-06-08 19:56:26 +08:00
刘焱 be152b9fa1 docs(collaborator): 子命令描述和注释中文化 2026-06-08 19:56:25 +08:00
刘焱 5c9e24c725 docs(tag): 子命令描述和注释中文化 2026-06-08 19:56:24 +08:00
刘焱 59240d18c5 docs(branch): 子命令描述和注释中文化 2026-06-08 19:56:23 +08:00
刘焱 799af5f3cf docs(wiki): 子命令描述和注释中文化 2026-06-08 19:56:21 +08:00
刘焱 cafde7d2f4 docs(user): 子命令描述和注释中文化 2026-06-08 19:56:18 +08:00
刘焱 2aa1b2ffe4 docs(snippet): 子命令描述和注释中文化 2026-06-08 19:56:17 +08:00
刘焱 bc12b43fc0 docs(webhook): 子命令描述和注释中文化 2026-06-08 19:56:15 +08:00
刘焱 30f16b9613 feat(interactive): 默认使用 table 格式输出,提升可读性 2026-06-08 19:53:20 +08:00
刘焱 461b28e6c8 test(interactive): smoke-test all registered commands execute without panic 2026-06-08 19:50:50 +08:00
刘焱 d66c88ecca feat(interactive): add scrollable viewport for long command output 2026-06-08 19:48:17 +08:00
刘焱 295eda5a4e feat(output): improve table readability — truncate values, limit columns, summarize nested maps 2026-06-08 19:44:22 +08:00
刘焱 25ee6cc5fb feat(output): render nested list data as table instead of falling back to JSON
When envelope.Data is a map containing a list of objects (e.g. tag +list
returns {tags: [...], total_count}), printTable previously fell back to
JSON because the map had complex values. Now it scans the map for the
largest []interface{} of map[string]interface{} and renders that list
via printSliceTable, so users see a table again.

- Add findLargestSlice helper to pick the largest table-renderable slice
- Add hasOnlyNestedMaps to distinguish scalar-only maps from nested-map maps
- Keep JSON fallback for genuinely nested (non-list) structures
- Add formatter_test.go covering all 5 branches of printTable
2026-06-08 19:32:06 +08:00
刘焱 f1dc2f8bc9 docs(shortcuts): 给每个命令组添加中文注释和中文描述
GetAllShortcuts 每个命令组加中文行内注释,说明该组用途;
GetDescriptions 描述改为中文,使交互式命令面板直接显示中文。
2026-06-08 19:18:46 +08:00
刘焱 b2136559bf fix(interactive): initialize RuntimeContext via NewRuntimeContext to prevent nil-Client panic
Selecting a command showed no output because Execute built the
RuntimeContext as a bare struct literal (&RuntimeContext{Args: args}),
leaving Client == nil. Any command calling ctx.CallAPI then panicked with
a nil pointer dereference inside the executor goroutine; the panic aborted
the goroutine before w.Close()/stdout restore, so the execResultMsg never
fired and the REPL hung silently.

Fix: use common.NewRuntimeContext(args) (initializes Client/Format/Owner/Repo,
matching runner.go), and wrap s.Run in safeRun() so a panic converts to an
error and stdout is always restored.

Adds regression tests: nil-Client assertion, panic-safe stdout restore, and
an end-to-end test that runs the real repo +list shortcut and asserts
Execute never returns (empty output, nil error).
2026-06-08 19:16:40 +08:00
刘焱 16787b8f8c fix(interactive): trigger command palette immediately on '/' keypress
Previously the palette only opened after pressing Enter because the trigger
logic lived in the KeyEnter branch. The spec requires '/' to open the palette
immediately. Now KeyRunes with '/' as the first character of an empty input
switches to statePalette right away, carrying any trailing characters (e.g.
'/iss') as the initial search query.

Adds regression tests covering: immediate '/', '/' with query, and ordinary
text staying in input state.
2026-06-08 19:09:02 +08:00
刘焱 2596d1dc70 fix(interactive): correct Esc behavior and direct-exec for optional flags 2026-06-08 18:59:00 +08:00
刘焱 65a4e60d6d feat(interactive): add REPL with command palette, form, and cobra entry 2026-06-08 18:52:23 +08:00
刘焱 db8f3c7cae feat(interactive): add command executor with stdout capture and flag parsing 2026-06-08 15:55:33 +08:00
刘焱 76cb5be259 chore: add bubbletea, bubbles, huh dependencies 2026-06-08 15:53:30 +08:00
刘焱 cbbec86b49 feat(shortcuts): export GetAllShortcuts and GetDescriptions for interactive mode 2026-06-08 15:51:21 +08:00
刘焱 503a5aeead docs: add interactive REPL implementation plan 2026-06-08 15:49:05 +08:00
刘焱 1d4e177152 docs: add interactive REPL command palette design spec 2026-06-08 14:50:21 +08:00
赵昌 d1cc68b6d9 docs: add workflow examples for issue-triage, project-health, newcomer-guide
CI / test (push) Failing after 2m9s Details
2026-06-08 11:44:09 +08:00
赵昌 6c0ad3b7ae feat: add three new skills - issue triage, project health, newcomer guide
CI / test (push) Has been cancelled Details
2026-06-08 11:39:29 +08:00
赵昌 9a51db0989 feat: add wiki and snippet skills, update webhook skill with new commands
CI / test (push) Waiting to run Details
2026-06-08 11:35:45 +08:00
wqer a4587f95c4 添加Python示例
CI / test (push) Failing after 2m5s Details
2026-06-08 11:07:01 +08:00
赵昌 38658fb7b1 feat: task-view supports both numeric ID and UUID lookup
CI / test (push) Failing after 2m8s Details
2026-06-08 10:01:56 +08:00
赵昌 5eb67055fd feat: add webhook +failed and +task-view commands
CI / test (push) Failing after 2m4s Details
- webhook +failed: list failed deliveries with --limit support
- webhook +task-view: view detailed delivery content
- Original webhook +tasks unchanged
2026-06-08 09:57:13 +08:00
赵昌 dd905fb045 docs: update report - remove hook-runner, update webhook section
CI / test (push) Failing after 2m3s Details
2026-06-04 17:39:03 +08:00
赵昌 e60e876fad merge: integrate hook-runner into webhook commands
CI / test (push) Failing after 2m6s Details
- Add webhook +failed: list failed deliveries
- Add webhook +task-view: view task details
- Enhance webhook +tasks: add --limit, show UUID
- Remove standalone hook-runner package
- Update register.go
2026-06-04 17:33:26 +08:00
赵昌 a115c97dde fix: show uuid instead of numeric id in hook-runner list output
CI / test (push) Failing after 2m6s Details
2026-06-04 17:23:06 +08:00
赵昌 66ec432036 fix: simplify hook-runner list output to essential fields only
CI / test (push) Failing after 2m7s Details
2026-06-04 17:09:59 +08:00
赵昌 cb238f132c feat: add --limit flag to hook-runner list/failed commands
CI / test (push) Failing after 1m3s Details
2026-06-04 16:23:17 +08:00
赵昌 240a4ff6b7 test: add hook-runner unit tests (list/view/failed)
CI / test (push) Failing after 2m3s Details
2026-06-04 16:21:12 +08:00
赵昌 d46a0cc48b feat: add hook-runner shortcut for webhook delivery monitoring
CI / test (push) Failing after 2m7s Details
hook-runner +list   - List webhook delivery tasks
hook-runner +view   - View specific delivery task details
hook-runner +failed - List only failed deliveries

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 16:15:30 +08:00
赵昌 59552d9286 remove: project board shortcut (duplicated with issue commands)
CI / test (push) Failing after 2m7s Details
2026-06-04 16:04:00 +08:00
s2_cc 811bae1cd5 触发流水线
CI / test (push) Failing after 1m2s Details
2026-06-04 14:33:58 +08:00