Skip to content

fix: 补齐插件终端与权限档位用例的 mock 参数类型,修 typecheck:node #37

fix: 补齐插件终端与权限档位用例的 mock 参数类型,修 typecheck:node

fix: 补齐插件终端与权限档位用例的 mock 参数类型,修 typecheck:node #37

Triggered via push September 25, 2026 03:44
Status Failure
Total duration 2m 47s
Artifacts –

ci.yml

on: push
Typecheck, lint and test
2m 43s
Typecheck, lint and test
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 5 warnings, and 1 notice
src/main/plugin/__tests__/document-scope.test.ts > documents.* scope > rejects a callId that is no longer running: src/main/plugin/__tests__/document-scope.test.ts#L162
AssertionError: expected { id: 4, ok: false, error: { …(2) } } to match object { ok: false, …(1) } (2 matching properties omitted from actual) - Expected + Received { "error": { - "code": "rejected", + "code": "unknown_method", }, "ok": false, } ❯ src/main/plugin/__tests__/document-scope.test.ts:162:22
src/main/plugin/__tests__/document-scope.test.ts > documents.* scope > uses the foreground workspace for requests without a callId: src/main/plugin/__tests__/document-scope.test.ts#L144
AssertionError: expected undefined to deeply equal { workspaceId: 'fg', …(1) } - Expected: { "workspaceId": "fg", "workspaceRoot": "/ws/foreground", } + Received: undefined ❯ src/main/plugin/__tests__/document-scope.test.ts:144:28
src/main/plugin/__tests__/document-scope.test.ts > documents.* scope > scopes a tool-call document request to the run's workspace, not the foreground one: src/main/plugin/__tests__/document-scope.test.ts#L136
AssertionError: expected { code: 'unknown_method', …(1) } to be undefined - Expected: undefined + Received: { "code": "unknown_method", "message": "unknown method: documents.open", } ❯ src/main/plugin/__tests__/document-scope.test.ts:136:27
src/main/plugin/__tests__/document-rpc.test.ts: src/main/plugin/__tests__/document-rpc.test.ts#L15
Error: Cannot find module '../document-rpc' imported from /home/runner/work/NextCoWork/NextCoWork/src/main/plugin/__tests__/document-rpc.test.ts ❯ src/main/plugin/__tests__/document-rpc.test.ts:15:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' }
src/main/document-engine/__tests__/provider-registry.test.ts: src/main/document-engine/__tests__/provider-registry.test.ts#L8
Error: Cannot find module '../provider-registry' imported from /home/runner/work/NextCoWork/NextCoWork/src/main/document-engine/__tests__/provider-registry.test.ts ❯ src/main/document-engine/__tests__/provider-registry.test.ts:8:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' }
src/main/document-engine/__tests__/native-host.test.ts > NativeHelperConnection > gives the helper only whitelisted environment variables and private HOME/TMP: src/main/document-engine/__tests__/native-host.test.ts#L114
AssertionError: expected undefined to be '1' // Object.is equality - Expected: "1" + Received: undefined ❯ src/main/document-engine/__tests__/native-host.test.ts:114:58
Typecheck, lint and test
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-node@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Typecheck, lint and test: src/main/plugin/__tests__/tools.test.ts#L14
Unexpected any. Specify a different type
Typecheck, lint and test: packages/plugin-api/nextcowork.d.ts#L617
Unexpected any. Specify a different type
Typecheck, lint and test: packages/plugin-api/nextcowork.d.ts#L617
Unexpected any. Specify a different type
Typecheck, lint and test: packages/plugin-api/nextcowork.d.ts#L608
Unexpected any. Specify a different type
Typecheck, lint and test
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"