Commit graph

51 commits

Author SHA1 Message Date
Max
890ca3e25a refactor(tests): rename and consolidate input building functions for clarity
- Renamed `buildInput` to `buildLastUserMessageJSONL` to better reflect its purpose of constructing JSONL from the last user message.
- Updated test cases to use the new function, ensuring they accurately verify the behavior of skipping system messages and only including the last user message.
- Removed the now redundant `buildFirstRequestJSONL` function, streamlining the input building process in the Claude command tests.
2026-03-27 09:30:35 +08:00
Max
c6e1c449e1 Enhance Tai service readiness checks and OAuth device flow
- Improve health check logic in CI workflows for both HTTP and gRPC readiness of the Tai service, ensuring clearer error reporting if the service fails to start.
- Update the OAuth Device Flow implementation to support additional claims during device authorization, enhancing the flexibility of the authorization process.
- Refactor the `AuthorizeDevice` method to accept extra claims, allowing for more detailed user context during authorization.
- Introduce a new utility function to extract bearer tokens from requests, streamlining token handling across the OpenAPI service.

These changes enhance the robustness of service readiness checks and improve the OAuth device authorization flow, contributing to a more reliable and flexible authentication mechanism.
2026-03-04 16:55:29 +08:00
Max
44af6ba759 Enhance command structure with MCP and Robot functionalities
- Introduce new MCP and Robot command groups in the CLI, allowing for better organization of package management commands.
- Add corresponding command descriptions for MCP and Robot functionalities to improve user guidance.
- Update the agent command group to include additional commands for enhanced agent management.
- Modify .gitignore to exclude specific design markdown files from version control.
- Add environment variable for test application path in GitHub workflows to streamline testing setup.
2026-03-03 08:11:43 +08:00
Max
ce137b34f5 Enhance tool inspection and remove studio configuration
- Add external tool inspection functionality in the engine, allowing detection of tools like FFmpeg, PDF converters, and Docker.
- Update the `inspect` command to include detected tools in the output.
- Remove the studio configuration from the application, simplifying the configuration structure and related code.
- Clean up unused studio-related code in various files, including login processing and configuration management.
2026-02-14 21:06:59 +08:00
Max
6e68b42128 Enhance Agent Documentation and Add Extract Command Functionality
- Updated README files to include new commands for running tests and extracting results for review.
- Introduced the `yao agent extract` command to facilitate extraction of test results from JSONL files into Markdown or JSON formats.
- Enhanced the `FormatAvailableResources` function to support localization and detailed information for agents and MCP tools.
- Improved output formatting for better readability and usability in test result documentation.
2026-01-27 10:57:27 +08:00
Max
d21f9c3769 Enhance Logging Functionality in RequestLogger
- Added a `noop` check in multiple logging methods (`LLMComplete`, `ToolStart`, `ToolComplete`, `HookStart`, `HookComplete`, and `HistoryLoad`) to prevent logging when the logger is in no-operation mode.
- Improved command handling in `root.go` by removing minimum argument requirements for commands and providing help output when no arguments are given.
- Introduced an `agent` command for better organization of agent-related functionalities in the CLI.
- Implemented automatic detection of the application root directory in `run.go` to streamline the application startup process.
- Cleaned up debug print statements in `config.go` to reduce clutter in the output.
2025-12-17 12:33:34 +08:00
Max
6b6edab97c Refactor network handling and endpoint retrieval; deprecate unused commands in startup 2024-11-29 20:43:29 +08:00
Max
931394b36b feat: Add yao sui trans command for automatic translation support 2024-07-15 10:15:05 +08:00
yflau
a42c556295
export rootCmd as public
export the rootCmd to support customized commands when use yao as lib
2024-05-08 19:51:46 +08:00
Max
38af2dddfc [add] sui build command 2024-01-14 13:18:50 +08:00
Max
8698c42607 [add] SUI Template Engine command 2023-12-07 23:14:39 +08:00
Max
48415db96d [fix] config init 2023-04-24 17:58:06 +08:00
Max
ce4aaf667f [fix] setup & config 2023-04-24 17:38:29 +08:00
Max
082bcf57ff [add] pack & start command support license 2023-04-23 10:57:28 +08:00
Max
49430cf5b3 [add] load application from the package file 2023-04-20 19:39:52 +08:00
Max
68e009ad06 [add] pack command 2023-04-20 17:42:07 +08:00
Max
a807899f95 [*] migrate to gou v0.10.3 (50%) 2023-02-01 17:25:11 +08:00
maimaiti
ec83e66691 [change] optimized version printing 2022-11-22 11:43:38 +08:00
maimaiti
073c512a43 [add] yap upgrade subcommand 2022-11-21 17:59:19 +08:00
Max
990b47f770 [add] yao get command 2022-10-28 22:42:02 +08:00
Max
26d3f8d8a5 [add] Yao Stuido Server & CLI 2022-10-14 21:25:09 +08:00
Max
c921f24ce0 [add] fs support & golang version 1.9.2 2022-10-12 20:31:09 +08:00
Max
7517e4652a [change] Refactoring Watch 2022-08-20 21:25:32 +08:00
Max
ae4529009e [add] websocket command 2022-07-17 09:08:57 +08:00
Max
200fc22e46 [add] yao socket <name> command 2022-07-14 22:19:14 +08:00
Max
e43bc0b612 [add] restore command 2022-06-13 21:32:20 +08:00
Max
c913a62778 [add] dump command 2022-06-13 20:43:36 +08:00
Max
5332efc532 [add] yao service command 2022-03-05 20:06:04 +08:00
k0a1a
3c8385bb6e fix: init config failed 2022-02-25 22:44:36 +08:00
k0a1a
73295cfabd fix: init config failed 2022-02-25 10:39:09 +08:00
Max
b5bcbd2e07 default user login + issuer 2022-02-17 15:34:34 +08:00
Max
fcfdab0498 关闭生产环境 migrate 2022-02-13 09:50:58 +08:00
Max
00f7696368 fix words bug 2022-02-10 17:09:58 +08:00
Max
1056defb31 + FreePort Helper & Auto Session port 2022-02-10 00:06:07 +08:00
Max
1f862380cf 关闭 Session 认知 2022-02-09 22:43:12 +08:00
Max
cf4e2d1f88 + next tips 2022-02-09 22:10:03 +08:00
Max
657d68d477 fix load bug 2022-02-09 21:46:25 +08:00
Max
d763ad1ff4 + init 命令 2022-02-09 21:13:38 +08:00
Max
5407525b75 规范 migrate 输出 2022-02-09 19:35:38 +08:00
Max
385f42c88f 规范run命令输出 2022-02-09 19:21:25 +08:00
Max
2a98f82133 规范服务启动命令输出 2022-02-09 19:07:20 +08:00
Max
7d57145bb2 调整环境变量默认值 2022-02-09 18:06:39 +08:00
Max
95a0d1e159 命令行工具 + 多语言支持 2022-02-09 15:45:18 +08:00
Max
34f4382c19 更新命名空间 2022-02-09 09:17:23 +08:00
Max
ea72f26d5e 调整环境变量 2022-02-09 00:49:57 +08:00
Max
6372faf119 v0.9.3 + socket server support ( yao start alpha ) 2022-01-27 02:51:20 +08:00
Max
9076dfe7f8 v0.8.16 + run command 2021-10-23 10:29:36 +08:00
Max
177cc45d5e v0.8.15 + import 命令 2021-10-21 21:44:24 +08:00
Max
a342cd50b0 升级到 Gou 支持 SQLite 2021-10-07 13:24:41 +08:00
Max
7917f1fcae 调整单元测试 2021-09-14 12:57:03 +08:00