Skip to content

v1.27.7

Choose a tag to compare

@luk384090-cloud luk384090-cloud released this 24 Sep 05:15
· 231 commits to main since this release
2cd356a

v1.27.7

🚀 Features

AgentStudio: Session Agent Override & Environment Variables

  • Session agent override: SessionCreateParams.agent now accepts either a string (Agent ID, backward compatible) or an override mapping (type=agent_with_overrides with system, tools, mcp_servers, skills). This allows sessions to customize agent behavior without creating new agents.
  • New session fields: Added environment_variables and mcp_configs to session create/update APIs, enabling per-session environment configuration and MCP server setup.
  • Session update enhancements: SessionUpdateParams now supports vault_ids, environment_variables, agent (patch), and mcp_configs. Null sub-fields in the agent patch are preserved on the wire (delete-override semantics).
  • Response fields: Session model now returns environment_variables and mcp_configs in API responses.

🐛 Bug Fixes

CLI: Fixed Command Routing

  • Auth commands now work: dashscope auth whoami, login, and logout were previously routed to the expert agent instead of the auth subcommand. This has been fixed — auth commands now dispatch correctly to typer.
  • Malformed commands no longer open chat sessions: Previously, any unrecognized command (e.g., dashscope -w wsid generation create or typos like dashscope generaton create) would be forwarded to the expert agent as a question. Now these commands are properly routed to typer, which reports errors with "Did you mean?" suggestions.
  • Simplified routing: Only dashscope (bare) and dashscope expert ... enter the interactive agent. Everything else goes to typer for proper command parsing.

CLI: Multimodal Model Probing

  • Probe order fixed: The SDK now probes multimodal-generation first (instead of text-generation) and persists the learned service binding across sessions. This prevents the first request of every session from failing with a 400 error when using multimodal-bound models like qwen3.8-max.

acli: Skill Rendering & File Search

  • Skill rendering fixed: render_skill no longer runs str.format() over skill bodies, which caused KeyError for skills containing literal braces (e.g., JSON examples). 6 of the 13 bundled skills were previously unusable through use_skill.
  • search_files improvements: Now matches patterns against paths relative to the search root (not just basename), and skips dot-directories unless the pattern names one. .acli/skills/*.md is now reachable without walking .git trees.
  • Windows compatibility: Child-process output decoding now tries UTF-8 strictly first, then falls back to the Windows OEM code page. Platform information is now stated in the environment section, preventing PowerShell syntax errors on Windows.

acli: Rule 18 Enhancement

  • Cross-reference resolution: Rule 18 now demands cross-reference resolution on transformed output (ETL, CSV/JSON, migrations), not just schema validation. This prevents scenarios where output passes schema validation but contains dangling references.

🧪 Testing

  • Added 11 tests for dashscope auth whoami and login commands, covering key masking, environment keys, validation failures, and round-trip scenarios.
  • Added tests for session create/update body contract and agent patch null-revoke semantics.
  • Added tests for bundled skill rendering (13 skills).
  • All 1011 unit tests pass, 7 skipped.

📚 Documentation

  • Updated README and README_zh to reflect the new CLI routing behavior.
  • Updated the expert's cli.md skill to document the auth command group.
  • Reconciled bundled expert examples with agenticCLI-examples.

👥 Contributors

  • @lzsweb — CLI routing fixes, auth command fixes, acli 0.6.7 sync
  • @foleydang — AgentStudio session override and environment variables feature