hamster-wheel-cli 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  本项目遵循语义化版本,变更日志以时间倒序记录。
4
4
 
5
+ ## [0.3.5] - 2025-12-25
6
+ ### Fixed
7
+ - 修复参数没有透传的问题
8
+
5
9
  ## [0.3.4] - 2025-12-25
6
10
  ### Fixed
7
11
  - `agent set` 允许透传包含 `--` 的子命令参数,避免 `unknown option` 报错。
package/dist/cli.js CHANGED
@@ -4688,8 +4688,8 @@ async function runCli(argv) {
4688
4688
  program.command("logs").description("\u67E5\u770B\u5386\u53F2\u65E5\u5FD7").action(async () => {
4689
4689
  await runLogsViewer();
4690
4690
  });
4691
- const agentCommand = program.command("agent").description("\u7BA1\u7406 AI CLI agent \u914D\u7F6E");
4692
- agentCommand.command("add <name> [command...]").description("\u65B0\u589E agent").allowUnknownOption(true).allowExcessArguments(true).action(async (name) => {
4691
+ const agentCommand = program.command("agent").description("\u7BA1\u7406 AI CLI agent \u914D\u7F6E").enablePositionalOptions();
4692
+ agentCommand.command("add <name> [command...]").description("\u65B0\u589E agent").passThroughOptions().allowUnknownOption(true).allowExcessArguments(true).action(async (name) => {
4693
4693
  const normalized = normalizeAgentName(name);
4694
4694
  if (!normalized) {
4695
4695
  throw new Error("agent \u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\u4E14\u4E0D\u80FD\u5305\u542B\u7A7A\u767D\u5B57\u7B26");