修雨
3282957958
Revert "fix(cli): JSON errors to stdout; no interactive confirm on piped stdin ( #413 )" ( #415 )
...
This reverts commit f826375556 .
2026-06-08 17:53:16 +08:00
修雨
ffefc53861
fix(cli): JSON errors to stdout; no interactive confirm on piped stdin ( #413 )
...
- printExecutionError: in JSON mode emit the structured error to stdout
(not stderr) so machine consumers parsing stdout get a parseable result;
update the 3 root_execute tests to assert the new contract.
- requireYesForDelete prompt: when stdin is not a TTY (piped/scripted/JSON
pipelines), do not show an interactive confirm that emits non-JSON and
blocks on stdin; return a structured validation error requiring --yes.
2026-06-08 17:53:16 +08:00
539d10f80f
feat: 合并 pre-mcp-discovery 分支能力到 main(服务发现保持生产) ( #391 )
...
将 test/pre-mcp-discovery 分支上多位同学的能力改动整体合入 main,
服务发现端点保持生产 https://mcp.dingtalk.com,未携带分支上的预发改动 。
主要内容:
- 修雨域(chat / report / todo / contact / mail)对齐 wukong 基线 (#355 )
- DWS 内容生产能力增强 (#387 )、文档导出与 OA 对齐 (#362 #388 #390 )
- envelope 注册 cli.Aliases 为 cobra aliases、命令结构与 JSON 解析优化
- skills 多包同步 wukong 对齐内容(attendance/calendar/minutes/oa/sheet 等)
- product/oa 进一步对齐 wukong
排除项:未携带 566b4e1(test: point service discovery to pre-mcp.dingtalk.com);
以下 4 个常量保持生产:skill_command.go / auth/endpoints.go / cli/loader.go / market/registry.go。
Co-authored-by: john <32427341+wqyenjoy@users.noreply.github.com >
Co-authored-by: wxianfeng <wang.fl1429@gmail.com >
2026-06-02 21:04:12 +08:00
ybcstudy and 猷诺
a5bede3a19
fix: -f json模式下错误JSON从stdout改为输出到stderr ( #133 )
...
修复背景:
CI测试脚本通过检查stderr中是否包含错误关键词来判断命令是否失败。
但-f json模式下,printExecutionError将错误JSON输出到stdout,
导致stderr为空,测试断言失败。
改动:
- root.go:150: apperrors.PrintJSON(stdout, err) → apperrors.PrintJSON(stderr, err)
- root_execute_test.go: 3处断言方向同步调整(stdout↔stderr)
影响范围:
仅影响-f json模式下的错误输出流向,正常输出不受影响。
符合Unix惯例:错误信息输出到stderr,正常结果输出到stdout。
Co-authored-by: 猷诺 <bicheng.ybc@alibaba-inc.com >
2026-04-20 19:38:39 +08:00
wxianfeng
c5decb2f90
error opt
2026-04-16 12:40:57 +08:00
wxianfeng
9fef6a9c43
pat test
2026-04-12 12:14:57 +08:00
wxianfeng
bc7d19cfd8
feat(skill): restore find/get for legacy skill market API
...
- Add skill find (keyword search) and skill get (download to temp dir)
using mcp.dingtalk.com endpoints; keep skill add (aihub download)
- Add hidden skill search hint for old usage
- List utility commands in root help; keep skill visible (not hidden)
- Extend tests for new subcommands and root help
Made-with: Cursor
2026-04-10 10:47:14 +08:00
wxianfeng
93d6fdb17e
feat: edition layer for Wukong overlay; promote shared code to pkg/
...
Introduce a build-time edition hook so downstream overlays (e.g. Wukong)
can customize auth UX, config dir, static server list, visible products,
and extra root commands while keeping the default open-source behavior.
- Add pkg/edition (defaults) and pkg/editiontest contract tests; Makefile
target edition-test; CI job edition-tests.
- Root: optional RegisterExtraCommands with tool caller adapter; inject
static servers to skip market discovery when configured; deduplicate
top-level commands so overlay wins; extend hideNonDirectRuntimeCommands
with edition VisibleProducts and static commands (recovery/schema/mcp).
- Auth/config: gate login subcommand and auth login hints for embedded
editions; optional token auto-purge; edition ConfigDir override.
- version: human-readable multi-line output plus JSON with edition,
architecture, build, commit.
- Relocate internal/{config,convert,validate} to pkg/; add pkg/cli and
pkg/cmdutil (flags/time helpers).
- CI: optional notify-downstream job (GitLab trigger via secrets) on main
push; open_source_policy_test adjusted for new layout.
Secrets (repo settings): WUKONG_TRIGGER_TOKEN, WUKONG_TRIGGER_URL — optional;
if unset, downstream step is skipped.
Made-with: Cursor
2026-03-31 15:29:21 +08:00
wxianfeng
4446a3ad7a
default output json
2026-03-28 21:44:08 +08:00
tianlei.qjb
5f938d3675
init
2026-03-27 17:55:57 +08:00