Skip to content

add check and fix test failed #2

add check and fix test failed

add check and fix test failed #2

Triggered via pull request June 3, 2026 06:05
@phantom5099phantom5099
synchronize #68
workflow
Status Failure
Total duration 53s
Artifacts

pr-check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 15 warnings
typecheck: packages/codingcode/src/core/workspace.ts#L32
'arg' is possibly 'undefined'.
typecheck: packages/codingcode/src/core/workspace.ts#L5
Cannot find module '@codingcode/infra' or its corresponding type declarations.
typecheck: packages/codingcode/src/context/config.ts#L4
Cannot find module '@codingcode/infra' or its corresponding type declarations.
typecheck: packages/codingcode/src/context/config.ts#L2
Cannot find module '@codingcode/infra' or its corresponding type declarations.
typecheck: packages/codingcode/src/checkpoint/checkpoint-service.ts#L431
Type 'number | undefined' is not assignable to type 'number'.
typecheck: packages/codingcode/src/checkpoint/checkpoint-service.ts#L409
Argument of type 'number | undefined' is not assignable to parameter of type 'number'.
typecheck: packages/codingcode/src/checkpoint/checkpoint-service.ts#L399
Type 'number | undefined' is not assignable to type 'number'.
typecheck: packages/codingcode/src/checkpoint/checkpoint-service.ts#L398
Argument of type 'number | undefined' is not assignable to parameter of type 'number'.
typecheck: packages/codingcode/src/checkpoint/checkpoint-service.ts#L397
Argument of type 'number | undefined' is not assignable to parameter of type 'number'.
typecheck: packages/codingcode/src/agent/agent.ts#L23
Cannot find module '@codingcode/infra' or its corresponding type declarations.
packages/codingcode/test/agent/agent.test.ts: packages/codingcode/src/hooks/registry.ts#L4
Error: Cannot find package '@codingcode/infra' imported from '/home/runner/work/coding-code/coding-code/packages/codingcode/src/hooks/registry.ts' ❯ packages/codingcode/src/hooks/registry.ts:4:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' } Caused by: Error: Failed to load url @codingcode/infra (resolved id: @codingcode/infra) in /home/runner/work/coding-code/coding-code/packages/codingcode/src/session/io.ts. Does the file exist? ❯ loadAndTransform node_modules/.pnpm/vite@6.4.2_@types+node@22.19.19_tsx@4.22.3_yaml@2.9.0/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js:35730:17
packages/codingcode/test/agent/agent-todo-event.test.ts: packages/codingcode/src/hooks/registry.ts#L4
Error: Cannot find package '@codingcode/infra' imported from '/home/runner/work/coding-code/coding-code/packages/codingcode/src/hooks/registry.ts' ❯ packages/codingcode/src/hooks/registry.ts:4:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' } Caused by: Error: Failed to load url @codingcode/infra (resolved id: @codingcode/infra) in /home/runner/work/coding-code/coding-code/packages/codingcode/src/session/io.ts. Does the file exist? ❯ loadAndTransform node_modules/.pnpm/vite@6.4.2_@types+node@22.19.19_tsx@4.22.3_yaml@2.9.0/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js:35730:17
packages/codingcode/test/agent/agent-concurrent.test.ts: packages/codingcode/src/hooks/registry.ts#L4
Error: Cannot find package '@codingcode/infra' imported from '/home/runner/work/coding-code/coding-code/packages/codingcode/src/hooks/registry.ts' ❯ packages/codingcode/src/hooks/registry.ts:4:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' } Caused by: Error: Failed to load url @codingcode/infra (resolved id: @codingcode/infra) in /home/runner/work/coding-code/coding-code/packages/codingcode/src/session/io.ts. Does the file exist? ❯ loadAndTransform node_modules/.pnpm/vite@6.4.2_@types+node@22.19.19_tsx@4.22.3_yaml@2.9.0/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js:35730:17
packages/desktop/test/todo-panel-state.test.ts: packages/desktop/src/stores/global.store.ts#L1
Error: Cannot find package 'zustand' imported from '/home/runner/work/coding-code/coding-code/packages/desktop/src/stores/global.store.ts' ❯ packages/desktop/src/stores/global.store.ts:1:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' } Caused by: Error: Failed to load url zustand (resolved id: zustand) in /home/runner/work/coding-code/coding-code/packages/desktop/src/stores/global.store.ts. Does the file exist? ❯ loadAndTransform node_modules/.pnpm/vite@6.4.2_@types+node@22.19.19_tsx@4.22.3_yaml@2.9.0/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js:35730:17
packages/desktop/test/global.store.test.ts: packages/desktop/test/global.store.test.ts#L2
Error: Cannot find package 'zustand' imported from '/home/runner/work/coding-code/coding-code/packages/desktop/test/global.store.test.ts' ❯ packages/desktop/test/global.store.test.ts:2:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' } Caused by: Caused by: Error: Failed to load url zustand (resolved id: zustand) in /home/runner/work/coding-code/coding-code/packages/desktop/src/stores/global.store.ts. Does the file exist? ❯ loadAndTransform node_modules/.pnpm/vite@6.4.2_@types+node@22.19.19_tsx@4.22.3_yaml@2.9.0/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js:35730:17
packages/desktop/test/global-store.test.ts: packages/desktop/src/stores/global.store.ts#L1
Error: Cannot find package 'zustand' imported from '/home/runner/work/coding-code/coding-code/packages/desktop/src/stores/global.store.ts' ❯ packages/desktop/src/stores/global.store.ts:1:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' } Caused by: Error: Failed to load url zustand (resolved id: zustand) in /home/runner/work/coding-code/coding-code/packages/desktop/src/stores/global.store.ts. Does the file exist? ❯ loadAndTransform node_modules/.pnpm/vite@6.4.2_@types+node@22.19.19_tsx@4.22.3_yaml@2.9.0/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js:35730:17
packages/desktop/test/global-store-rollback-state.test.ts: packages/desktop/src/stores/global.store.ts#L1
Error: Cannot find package 'zustand' imported from '/home/runner/work/coding-code/coding-code/packages/desktop/src/stores/global.store.ts' ❯ packages/desktop/src/stores/global.store.ts:1:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' } Caused by: Error: Failed to load url zustand (resolved id: zustand) in /home/runner/work/coding-code/coding-code/packages/desktop/src/stores/global.store.ts. Does the file exist? ❯ loadAndTransform node_modules/.pnpm/vite@6.4.2_@types+node@22.19.19_tsx@4.22.3_yaml@2.9.0/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js:35730:17
packages/desktop/test/global-store-diff.test.ts: packages/desktop/src/stores/global.store.ts#L1
Error: Cannot find package 'zustand' imported from '/home/runner/work/coding-code/coding-code/packages/desktop/src/stores/global.store.ts' ❯ packages/desktop/src/stores/global.store.ts:1:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' } Caused by: Caused by: Error: Failed to load url zustand (resolved id: zustand) in /home/runner/work/coding-code/coding-code/packages/desktop/src/stores/global.store.ts. Does the file exist? ❯ loadAndTransform node_modules/.pnpm/vite@6.4.2_@types+node@22.19.19_tsx@4.22.3_yaml@2.9.0/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js:35730:17
packages/codingcode/test/orchestrate.test.ts: packages/codingcode/src/hooks/registry.ts#L4
Error: Cannot find package '@codingcode/infra' imported from '/home/runner/work/coding-code/coding-code/packages/codingcode/src/hooks/registry.ts' ❯ packages/codingcode/src/hooks/registry.ts:4:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' } Caused by: Caused by: Error: Failed to load url @codingcode/infra (resolved id: @codingcode/infra) in /home/runner/work/coding-code/coding-code/packages/codingcode/src/session/io.ts. Does the file exist? ❯ loadAndTransform node_modules/.pnpm/vite@6.4.2_@types+node@22.19.19_tsx@4.22.3_yaml@2.9.0/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js:35730:17
packages/codingcode/test/agent-event.test.ts > AgentEvent type > should be importable from the public index: packages/codingcode/src/hooks/registry.ts#L4
Error: Cannot find package '@codingcode/infra' imported from '/home/runner/work/coding-code/coding-code/packages/codingcode/src/hooks/registry.ts' ❯ packages/codingcode/src/hooks/registry.ts:4:1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' } Caused by: Caused by: Error: Failed to load url @codingcode/infra (resolved id: @codingcode/infra) in /home/runner/work/coding-code/coding-code/packages/codingcode/src/session/io.ts. Does the file exist? ❯ loadAndTransform node_modules/.pnpm/vite@6.4.2_@types+node@22.19.19_tsx@4.22.3_yaml@2.9.0/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js:35730:17
changes
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, dorny/paths-filter@v3. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
format-check
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v3. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
typecheck
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v3. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
lint
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v3. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
lint: packages/codingcode/src/client/direct/sessions.ts#L58
'initialPermissionMode' is defined but never used. Allowed unused args must match /^_/u
lint: packages/codingcode/src/client/direct/models.ts#L3
'getLLMClient' is defined but never used. Allowed unused vars must match /^_/u
lint: packages/codingcode/src/client/direct/agent-runtime.ts#L9
'getWorkspaceCwd' is defined but never used. Allowed unused vars must match /^_/u
lint: packages/codingcode/src/client/direct/agent-runtime.ts#L6
'AppLayer' is defined but never used. Allowed unused vars must match /^_/u
lint: packages/codingcode/src/client/direct.ts#L8
'switchActiveModel' is defined but never used. Allowed unused vars must match /^_/u
lint: packages/codingcode/src/client/direct.ts#L5
'parseApprovalResponse' is defined but never used. Allowed unused vars must match /^_/u
lint: packages/codingcode/src/client/direct.ts#L4
'ApprovalWaitService' is defined but never used. Allowed unused vars must match /^_/u
lint: packages/codingcode/src/approval/pipeline.ts#L4
'ConfirmResult' is defined but never used. Allowed unused vars must match /^_/u
lint: packages/codingcode/src/approval/index.ts#L216
'opts3' is defined but never used. Allowed unused args must match /^_/u
lint: packages/codingcode/src/approval/async-confirm.ts#L38
This generator function does not have 'yield'
test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v3. Actions will be forced to run with Node.js 24 by default starting June 16th, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/