Skip to content

fix(managed-agent): improve project initialization and build validation #511

fix(managed-agent): improve project initialization and build validation

fix(managed-agent): improve project initialization and build validation #511

Triggered via pull request September 8, 2026 07:19
Status Failure
Total duration 7m 8s
Artifacts

ci.yml

on: pull_request
lint + typecheck + test
7m 4s
lint + typecheck + test
Fit to window
Zoom out
Zoom in

Annotations

5 errors
lint + typecheck + test
Process completed with exit code 1.
packages/commands/tests/e2e/managed-agent.e2e.test.ts > e2e: managed-agent > managed-agent project 完成 init、validate、build 与 version status 本地闭环: packages/commands/tests/e2e/managed-agent.e2e.test.ts#L375
AssertionError: { "error": { "code": 2, "message": "Unknown flag \"--yes\". Run with --help to see available options." } } : expected 2 to be +0 // Object.is equality - Expected + Received - 0 + 2 ❯ packages/commands/tests/e2e/managed-agent.e2e.test.ts:375:42 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_tsx@4._ec9abd783a86206326ac7c7e667bf026/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/commands/tests/e2e/managed-agent-project-init.e2e.test.ts > e2e: managed-agent project init directory defaults > nested build and validate explain the project root without changing directories: packages/commands/tests/e2e/managed-agent-project-init.e2e.test.ts#L180
AssertionError: expected '{\n "error": {\n "code": 2,\n …' to contain 'cd \'/tmp/bailian-project-init-jxGv1p…' - Expected + Received - cd '/tmp/bailian-project-init-jxGv1p/managed-agent' + { + "error": { + "code": 2, + "message": "Not a project root: /tmp/bailian-project-init-jxGv1p/managed-agent/agents/assistant/skills (project.json is missing).", + "hint": "Run from the directory containing project.json, or pass --project <directory>." + } + } + ❯ packages/commands/tests/e2e/managed-agent-project-init.e2e.test.ts:180:29 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_tsx@4._ec9abd783a86206326ac7c7e667bf026/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/commands/tests/e2e/managed-agent-project-init.e2e.test.ts > e2e: managed-agent project init directory defaults > build checks directories and writes without confirmation while publish stays gated: packages/commands/tests/e2e/managed-agent-project-init.e2e.test.ts#L126
AssertionError: expected '\nError: Not a project root: /t…' to contain 'cd \'/tmp/bailian-project-init-3X3iFN…' - Expected + Received - cd '/tmp/bailian-project-init-3X3iFN/managed-agent' + + Error: Not a project root: /tmp/bailian-project-init-3X3iFN/managed-agent/agents/assistant/skills (project.json is missing). + Hint: Run from the directory containing project.json, or pass --project <directory>. + Exit code: 2 + ❯ packages/commands/tests/e2e/managed-agent-project-init.e2e.test.ts:126:29 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_tsx@4._ec9abd783a86206326ac7c7e667bf026/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22
packages/commands/tests/e2e/managed-agent-project-init.e2e.test.ts > e2e: managed-agent project init directory defaults > build links copied resources and reports ambiguous environment bindings without writing: packages/commands/tests/e2e/managed-agent-project-init.e2e.test.ts#L87
AssertionError: expected { name: 'Assistant', …(1) } to match object { environment: 'example-env', …(3) } (2 matching properties omitted from actual) - Expected + Received { - "environment": "example-env", - "files": [ - { - "file": "example-file", - "mount_path": "/mnt/example.md", - }, - ], - "skills": [ - "example-skill", - ], - "vault": "example-vault", + "model": "qwen3.7-max", + "name": "Assistant", } ❯ Proxy.<anonymous> node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_tsx@4._ec9abd783a86206326ac7c7e667bf026/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/expect/index.js:1283:13 ❯ Proxy.<anonymous> node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_tsx@4._ec9abd783a86206326ac7c7e667bf026/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/expect/index.js:1156:19 ❯ Proxy.methodWrapper node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_tsx@4._ec9abd783a86206326ac7c7e667bf026/node_modules/@voidzero-dev/vite-plus-test/dist/vendor/chai.mjs:1333:23 ❯ packages/commands/tests/e2e/managed-agent-project-init.e2e.test.ts:87:19 ❯ node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.22_@types+node@25.6.0_esbuild@0.28.1_jiti@2.6.1_tsx@4._ec9abd783a86206326ac7c7e667bf026/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner/chunk-artifact.js:1903:22