') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); Feat/knowledge cli · modelstudioai/cli@e2efcfd · GitHub
Skip to content

Feat/knowledge cli

Feat/knowledge cli #203

Triggered via pull request July 2, 2026 07:58
StatusFailure
Total duration 1m 3s
Artifacts

ci.yml

on: pull_request
lint + typecheck + test
59s
lint + typecheck + test
Fit to window
Zoom out
Zoom in

Annotations

10 errors
packages/cli/tests/e2e/video-download.e2e.test.ts > e2e: video download(DashScope 视频) > 先生成视频再按 task_id 下载: packages/cli/tests/e2e/video-download.e2e.test.ts#L105
AssertionError: { "error": { "code": 1, "message": "Invalid API-key provided.", "http_status": 401, "api_code": "InvalidApiKey", "request_id": "d8085b42-6b55-94d7-959f-c98cf3c088c4" } } : expected 1 to be +0 // Object.is equality - Expected + Received - 0 + 1 ❯ packages/cli/tests/e2e/video-download.e2e.test.ts:105:40 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_jiti@2.6.1_typescript@6.0.3_vite_0ccee13a25110590f42b651e2950fee7/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/cli/tests/e2e/text-chat.e2e.test.ts > e2e: text chat(DashScope) > 【qwen3.7-max】文本对话: packages/cli/tests/e2e/text-chat.e2e.test.ts#L72
AssertionError: { "error": { "code": 1, "message": "Incorrect API key provided. For details, see: https://help.aliyun.com/zh/model-studio/error-code#apikey-error", "http_status": 401, "api_code": "invalid_request_error", "request_id": "60195cf3-e990-9420-adc7-b477f4fe5612" } } : expected 1 to be +0 // Object.is equality - Expected + Received - 0 + 1 ❯ packages/cli/tests/e2e/text-chat.e2e.test.ts:72:30 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_jiti@2.6.1_typescript@6.0.3_vite_0ccee13a25110590f42b651e2950fee7/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/cli/tests/e2e/speech-synthesize.e2e.test.ts > e2e: speech synthesize(DashScope 媒体) > 【cosyvoice-v3-flash】语音合成: packages/cli/tests/e2e/speech-synthesize.e2e.test.ts#L88
AssertionError: [Model: cosyvoice-v3-flash] [Voice: longxiaochun_v3] { "error": { "code": 1, "message": "Invalid API-key provided.", "http_status": 401, "api_code": "InvalidApiKey", "request_id": "125511fb-1f5a-9aa1-ae43-d59f3ca28616" } } : expected 1 to be +0 // Object.is equality - Expected + Received - 0 + 1 ❯ packages/cli/tests/e2e/speech-synthesize.e2e.test.ts:88:32 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_jiti@2.6.1_typescript@6.0.3_vite_0ccee13a25110590f42b651e2950fee7/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/cli/tests/e2e/speech-recognize.e2e.test.ts > e2e: speech recognize(DashScope 媒体) > 【fun-asr】语音识别: packages/cli/tests/e2e/speech-recognize.e2e.test.ts#L58
AssertionError: [Model: cosyvoice-v3-flash] [Voice: longxiaochun_v3] { "error": { "code": 1, "message": "Invalid API-key provided.", "http_status": 401, "api_code": "InvalidApiKey", "request_id": "fd3e2817-7ed7-9b9a-a7a2-09371708723c" } } : expected 1 to be +0 // Object.is equality - Expected + Received - 0 + 1 ❯ packages/cli/tests/e2e/speech-recognize.e2e.test.ts:58:40 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_jiti@2.6.1_typescript@6.0.3_vite_0ccee13a25110590f42b651e2950fee7/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/cli/tests/e2e/search-web.e2e.test.ts > e2e: search web > 联网搜索返回 JSON 且含搜索结果: packages/cli/tests/e2e/search-web.e2e.test.ts#L91
AssertionError: { "error": { "code": 1, "message": "MCP request failed: 401 Unauthorized - {\"code\":\"InvalidApiKey\",\"message\":\"Invalid API-key provided.\",\"request_id\":\"6344e04e-c78b-9be7-8a1a-456416628f9f\"}" } } : expected 1 to be +0 // Object.is equality - Expected + Received - 0 + 1 ❯ packages/cli/tests/e2e/search-web.e2e.test.ts:91:30 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_jiti@2.6.1_typescript@6.0.3_vite_0ccee13a25110590f42b651e2950fee7/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/cli/tests/e2e/omni.e2e.test.ts > e2e: omni(DashScope 媒体) > 【qwen3.5-omni-flash】本地音频理解: packages/cli/tests/e2e/omni.e2e.test.ts#L117
AssertionError: [Model: cosyvoice-v3-flash] [Voice: longxiaochun_v3] { "error": { "code": 1, "message": "Invalid API-key provided.", "http_status": 401, "api_code": "InvalidApiKey", "request_id": "87b5e02b-7eea-947b-bc10-acb85742a4f2" } } : expected 1 to be +0 // Object.is equality - Expected + Received - 0 + 1 ❯ packages/cli/tests/e2e/omni.e2e.test.ts:117:40 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_jiti@2.6.1_typescript@6.0.3_vite_0ccee13a25110590f42b651e2950fee7/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/cli/tests/e2e/knowledge.e2e.test.ts > e2e: knowledge retrieve errors > 无任何凭证时提示 No credentials found 并非零退出: packages/cli/tests/e2e/knowledge.e2e.test.ts#L91
AssertionError: expected '{\n "error": {\n "code": 1,\n …' to match /no credentials found/i - Expected: /no credentials found/i + Received: "{ \"error\": { \"code\": 1, \"message\": \"Invalid API-key provided.\", \"http_status\": 401, \"api_code\": \"InvalidApiKey\", \"request_id\": \"47082964-f150-9774-928b-11f28fa19e2e\" } } " ❯ packages/cli/tests/e2e/knowledge.e2e.test.ts:91:20 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_jiti@2.6.1_typescript@6.0.3_vite_0ccee13a25110590f42b651e2950fee7/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/cli/tests/e2e/image-generate.e2e.test.ts > e2e: image generate > 【qwen-image-2.0】图片生成: packages/cli/tests/e2e/image-generate.e2e.test.ts#L64
AssertionError: [Model: qwen-image-2.0] [Mode: sync] { "error": { "code": 1, "message": "Invalid API-key provided.", "http_status": 401, "api_code": "InvalidApiKey", "request_id": "e531688d-f1a9-9c9c-a44a-3fe8373d2c34" } } : expected 1 to be +0 // Object.is equality - Expected + Received - 0 + 1 ❯ packages/cli/tests/e2e/image-generate.e2e.test.ts:64:32 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_jiti@2.6.1_typescript@6.0.3_vite_0ccee13a25110590f42b651e2950fee7/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/cli/tests/e2e/image-edit.e2e.test.ts > e2e: image edit > 【qwen-image-2.0】图片编辑: packages/cli/tests/e2e/image-edit.e2e.test.ts#L77
AssertionError: [Model: qwen-image-2.0] [Mode: sync] { "error": { "code": 1, "message": "Invalid API-key provided.", "http_status": 401, "api_code": "InvalidApiKey", "request_id": "06543866-75dc-95ad-8358-8966494da2c5" } } : expected 1 to be +0 // Object.is equality - Expected + Received - 0 + 1 ❯ packages/cli/tests/e2e/image-edit.e2e.test.ts:77:38 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_jiti@2.6.1_typescript@6.0.3_vite_0ccee13a25110590f42b651e2950fee7/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/cli/tests/e2e/file-upload.e2e.test.ts > e2e: file upload(DashScope) > 上传文件成功返回oss临时 URL: packages/cli/tests/e2e/file-upload.e2e.test.ts#L75
AssertionError: { "error": { "code": 1, "message": "Failed to get upload policy (HTTP 401): {\"code\":\"InvalidApiKey\",\"message\":\"Invalid API-key provided.\",\"request_id\":\"37ec352f-017e-9b12-8dcd-ceb296dc80e2\"}" } } : expected 1 to be +0 // Object.is equality - Expected + Received - 0 + 1 ❯ packages/cli/tests/e2e/file-upload.e2e.test.ts:75:30 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_jiti@2.6.1_typescript@6.0.3_vite_0ccee13a25110590f42b651e2950fee7/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22