Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions docs/agents/cli-e2e-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,16 @@ describe.skipIf(<ready>)("e2e: <topic>(DashScope …)", () => {

## skip 条件(`e2e/gating`,commands helpers re-export)

| 场景 | 条件 |
| ----------------------- | ---------------------------------------------------------------------------------------------------------- |
| 文本/搜索/配置 | `isDashScopeE2EReady()`(`.env` 中的 `DASHSCOPE_API_KEY`) |
| 图像/语音 | `isBailianE2EMediaEnabled() && isDashScopeE2EReady()` |
| 视频 | `isBailianE2EVideoEnabled() && isDashScopeE2EReady()` |
| OpenAPI AK/SK | `isOpenApiE2EReady()`(`.env` 中必须同时提供完整 AK/SK) |
| 视频 download/task | 另需 `BAILIAN_E2E_VIDEO_TASK_ID` |
| 知识库 chat/search live | `isChatE2EReady()` / `isSearchE2EReady()`(`knowledge chat/search`,需 `BAILIAN_WORKSPACE_ID` + agent ID) |
| 记忆 live | `isMemoryE2EReady()`(另需 `BAILIAN_E2E_MEMORY_LIBRARY_ID`;记忆服务需账号单独开通) |
| 场景 | 条件 |
| ----------------------- | ----------------------------------------------------------------------------------------------------------- |
| 文本/搜索/配置 | `isDashScopeE2EReady()`(`.env` 中的 `DASHSCOPE_API_KEY`) |
| 图像/语音 | `isBailianE2EMediaEnabled() && isDashScopeE2EReady()` |
| `speech generate` live | `isSpeechGenerateE2EReady()`(另需 `BAILIAN_WORKSPACE_ID`;缺 workspace 必须 skip,禁止 early-return 假绿) |
| 视频 | `isBailianE2EVideoEnabled() && isDashScopeE2EReady()` |
| OpenAPI AK/SK | `isOpenApiE2EReady()`(`.env` 中必须同时提供完整 AK/SK) |
| 视频 download/task | 另需 `BAILIAN_E2E_VIDEO_TASK_ID` |
| 知识库 chat/search live | `isChatE2EReady()` / `isSearchE2EReady()`(`knowledge chat/search`,需 `BAILIAN_WORKSPACE_ID` + agent ID) |
| 记忆 live | `isMemoryE2EReady()`(另需 `BAILIAN_E2E_MEMORY_LIBRARY_ID`;记忆服务需账号单独开通) |

## 用例类型

Expand Down
22 changes: 22 additions & 0 deletions packages/cli/src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ import {
authLogout,
authGenerateAccessToken,
textChat,
textTranslate,
batchConvert,
batchCreate,
batchList,
batchGet,
batchCancel,
batchDownload,
textOmni,
omniTranslate,
imageGenerate,
imageEdit,
imageTranslate,
videoGenerate,
videoEdit,
videoRef,
Expand Down Expand Up @@ -103,11 +106,19 @@ import {
searchWeb,
speechSynthesize,
speechRecognize,
speechGenerate,
speechVocabularyCreate,
speechVocabularyList,
speechVocabularyGet,
speechVocabularyUpdate,
speechVocabularyDelete,
speechVoiceClone,
speechVoiceDesign,
speechVoiceList,
speechVoiceGet,
speechVoiceUpdate,
speechVoiceDelete,
speechVoicePreview,
fileUpload,
fileUrl,
consoleCall,
Expand Down Expand Up @@ -380,15 +391,18 @@ export const commands: Record<string, AnyCommand> = {
"auth logout": authLogout,
"auth generate-access-token": authGenerateAccessToken,
"text chat": textChat,
"text translate": textTranslate,
"batch convert": batchConvert,
"batch create": batchCreate,
"batch list": batchList,
"batch get": batchGet,
"batch cancel": batchCancel,
"batch download": batchDownload,
omni: textOmni,
"omni translate": omniTranslate,
"image generate": imageGenerate,
"image edit": imageEdit,
"image translate": imageTranslate,
"video generate": videoGenerate,
"video edit": videoEdit,
"video ref": videoRef,
Expand Down Expand Up @@ -482,11 +496,19 @@ export const commands: Record<string, AnyCommand> = {
"search web": searchWeb,
"speech synthesize": speechSynthesize,
"speech recognize": speechRecognize,
"speech generate": speechGenerate,
"speech vocabulary create": speechVocabularyCreate,
"speech vocabulary list": speechVocabularyList,
"speech vocabulary get": speechVocabularyGet,
"speech vocabulary update": speechVocabularyUpdate,
"speech vocabulary delete": speechVocabularyDelete,
"speech voice clone": speechVoiceClone,
"speech voice design": speechVoiceDesign,
"speech voice list": speechVoiceList,
"speech voice get": speechVoiceGet,
"speech voice update": speechVoiceUpdate,
"speech voice delete": speechVoiceDelete,
"speech voice preview": speechVoicePreview,
"file upload": fileUpload,
"file url": fileUrl,
"console call": consoleCall,
Expand Down
Loading