From 07dc2d41cccc244a387a1d182f31bad365f53355 Mon Sep 17 00:00:00 2001 From: Yao Jingxi <23722032@bjtu.edu.cn> Date: Sat, 14 Nov 2026 00:43:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor(desktop):=20=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=A5=91=E7=BA=A6=E4=B8=8E=20fixture=20=E5=8F=AA=E5=9C=A8=20Ru?= =?UTF-8?q?st=20Core=EF=BC=8C=E5=88=A0=E9=99=A4=20shared/contracts=20?= =?UTF-8?q?=E4=B8=8E=20shared/fixtures=20=E5=89=AF=E6=9C=AC=20(#1853)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 桌面测试改用 contractfixture.CoreFixture 读取所链接 Core 检出的 rust/fixtures, desktop-go.sh 导出 LITHE_CORE_FIXTURE_DIR - 删除 shared/contracts(28 个文件)和 shared/fixtures(295 个文件), i18n 格式样例移到 shared/i18n/fixtures - PINNED_CORE_REVISION 升到 Core main f113e9e(含 #23、#24、#25) - .gitignore 只放行 shared/i18n 和 shared/platform-feature-matrix - 资源复用清单删除 phpunit-fixture,功能矩阵删除无法本地校验的证据路径 - Note、Skill 和文档的引用改指 Core,新增 Note 记录决策 --- ...09-12-git-execution-and-project-console.md | 8 +- ...guage-tooling-and-lsp-runtime-ownership.md | 2 +- ...-java-project-build-and-launch-boundary.md | 8 +- ...-php-support-plugin-ownership-and-plans.md | 2 +- ...aven-settings-reach-the-language-server.md | 2 +- ...22-editor-run-markers-and-test-outcomes.md | 2 +- ...09-26-maven-dependency-tree-output-file.md | 4 +- ...26-09-30-ide-capabilities-and-local-mcp.md | 2 +- ...2026-10-08-windows-git-status-ownership.md | 2 +- .../2026-10-12-workbench-ui-contributions.md | 2 +- ...-16-windows-project-commit-panel-parity.md | 2 +- ...2026-10-17-build-system-plugin-contract.md | 4 +- .../2026-10-20-modular-application-logging.md | 6 +- .../2026-10-20-plugin-function-contract.md | 2 +- .../2026-10-23-shared-i18n-generation.md | 4 +- ...026-10-26-build-provider-task-execution.md | 6 +- ...026-10-27-debug-tcp-transport-lifecycle.md | 8 +- ...026-10-28-workspace-indexing-exclusions.md | 2 +- .../2026-11-03-structured-logging-channels.md | 6 +- ...6-11-03-windows-markdown-core-rendering.md | 2 +- .../2026-11-05-core-rules-wasm-sync-bridge.md | 6 +- .../2026-11-08-viva-line-edit-core-bridge.md | 2 +- .../2026-11-08-viva-plugin-backend-bridge.md | 2 +- ...sitory-ownership-and-sharing-boundaries.md | 4 +- .../2026-11-09-viva-plugin-build-run.md | 2 +- ...9-viva-plugin-preference-native-storage.md | 8 +- ...toolchain-settings-and-build-resolution.md | 4 +- ...-11-14-core-app-contracts-single-source.md | 94 + ...ernal-document-changes-and-guarded-save.md | 6 +- ...026-09-22-run-panel-fingerprint-loading.md | 2 +- ...dtls-project-metadata-outside-workspace.md | 2 +- ...me-bundle-immutability-and-update-delta.md | 2 +- .../2026-09-27-windows-git-path-identity.md | 4 +- ...-git-repository-discovery-and-selection.md | 4 +- .../2026-10-08-remote-checkout-fetched-tip.md | 6 +- ...-10-14-child-processes-end-with-the-ide.md | 4 +- ...7-git-push-target-and-upstream-tracking.md | 2 +- ...6-10-22-project-tree-natural-name-order.md | 4 +- ...-proxy-credential-and-session-ownership.md | 2 +- .../2026-11-01-markdown-html-inline-images.md | 2 +- ...2026-11-03-git-history-author-timezones.md | 4 +- ...26-11-03-saved-stash-core-file-sections.md | 2 +- ...03-structured-log-evidence-preservation.md | 2 +- ...indows-code-action-diagnostic-roundtrip.md | 2 +- .../2026-11-03-windows-core-text-edits.md | 2 +- ...11-03-windows-keymap-context-validation.md | 2 +- ...04-github-device-authorization-deadline.md | 2 +- ...-04-github-pull-request-checkout-safety.md | 2 +- .../2026-11-04-lsp-document-uri-identity.md | 2 +- .../2026-11-04-shared-go-to-line-input.md | 2 +- ...lugin-host-method-service-authorization.md | 2 +- .../2026-11-06-save-all-editor-drain.md | 2 +- .../2026-11-09-viva-debug-session-cleanup.md | 2 +- ...6-09-13-macos-git-graph-intellij-layout.md | 8 +- ...-09-17-standalone-java-compile-then-run.md | 2 +- ...-20-run-configuration-discovery-quality.md | 2 +- .../2026-09-22-windows-ai-commit-design.md | 4 +- .../2026-09-24-document-encoding-switch.md | 2 +- ...6-09-25-windows-git-graph-branch-colors.md | 6 +- .../2026-09-27-windows-spring-endpoints.md | 2 +- .../2026-09-27-workspace-git-commit-plans.md | 2 +- .../2026-10-03-local-git-changelists.md | 4 +- .../2026-10-24-remote-ssh-connections.md | 2 +- ...-python-environments-in-workspace-scans.md | 2 +- ...arkdown-offline-chemistry-and-subscript.md | 2 +- ...026-11-03-structured-logging-log-window.md | 4 +- ...6-11-12-viva-agent-conversation-removed.md | 4 +- ...13-ci-build-cache-and-artifact-strategy.md | 4 +- ...cos-update-signing-and-release-strategy.md | 4 +- ...24-cross-platform-feature-parity-matrix.md | 2 +- .../2026-09-30-macos-shared-dropdown-style.md | 2 +- ...6-10-16-unified-child-process-lifecycle.md | 6 +- .../2026-10-17-build-system-provider-api.md | 2 +- .../2026-10-22-unified-vcs-provider-model.md | 6 +- ...10-24-remote-development-workspace-host.md | 2 +- .../2026-10-25-optional-debug-extensions.md | 6 +- ...ified-debug-engine-and-adapter-registry.md | 10 +- ...0-26-maven-java-domain-plugin-migration.md | 4 +- .../2026-10-31-plugin-injected-toolchains.md | 2 +- ...ingle-repository-git-status-observation.md | 2 +- ...2026-09-13-windows-tauri-product-parity.md | 6 +- .agents/skills/develop-lithe/SKILL.md | 10 +- .../references/local-review.md | 2 +- .gitignore | 6 +- .../contractfixture/contractfixture.go | 35 +- .../internal/core/ai_configuration_test.go | 4 +- desktop/internal/core/ai_generation.go | 2 +- desktop/internal/core/ai_generation_test.go | 13 +- desktop/internal/core/ai_pull_request.go | 2 +- desktop/internal/core/changelists_test.go | 4 +- desktop/internal/core/debug_state_test.go | 5 +- desktop/internal/core/document_text_test.go | 5 +- desktop/internal/core/file_encoding_test.go | 4 +- desktop/internal/core/git_checkout_test.go | 5 +- desktop/internal/core/gitconsole_test.go | 6 +- desktop/internal/core/github.go | 2 +- desktop/internal/core/github_checkout.go | 2 +- desktop/internal/core/history.go | 2 +- desktop/internal/core/line_edit_test.go | 5 +- desktop/internal/core/markdown_test.go | 4 +- .../internal/core/navigation_history_test.go | 4 +- desktop/internal/core/navigation_test.go | 4 +- .../internal/core/plugin_diagnostics_test.go | 2 +- .../internal/core/plugin_documents_test.go | 6 +- .../internal/core/plugin_installed_test.go | 4 +- .../core/plugin_setting_actions_test.go | 2 +- desktop/internal/core/plugin_settings_test.go | 4 +- desktop/internal/core/plugin_symbols_test.go | 6 +- desktop/internal/core/problems_test.go | 4 +- .../internal/core/process_lifecycle_test.go | 5 +- desktop/internal/core/rank_names_test.go | 4 +- .../core/repository_discovery_test.go | 4 +- desktop/internal/core/run_config_test.go | 4 +- desktop/internal/core/run_discovery_test.go | 4 +- .../internal/core/settings_surfaces_test.go | 4 +- .../internal/core/toolchain_sources_test.go | 4 +- desktop/internal/core/toolchain_test.go | 4 +- .../core/workspace_everywhere_test.go | 4 +- desktop/internal/core/workspace_tree_test.go | 4 +- desktop/internal/githubapi/transport.go | 2 +- desktop/internal/githubapi/types.go | 2 +- .../pluginservice/settings_editor_test.go | 5 +- .../pluginservice/settings_start_test.go | 2 +- desktop/internal/pluginsettings/store_test.go | 3 +- .../plugin_settings_actions_view_test.go | 3 +- .../plugin_settings_model_test.go | 5 +- .../plugin_settings_view_test.go | 3 +- .../settingswindow/settings_surfaces_test.go | 5 +- desktop/internal/workbench/aicommit_http.go | 2 +- desktop/internal/workbench/build.go | 2 +- .../workbench/settings_plugin_restart_test.go | 3 +- .../workbench/settings_publication_test.go | 3 +- desktop/internal/workbench/startup_test.go | 3 +- docs/ci-builds.md | 2 +- docs/development/document-encoding.md | 2 +- docs/development/macos-plugin-api-plan.md | 2 +- docs/development/windows-ai-commit.md | 2 +- .../development/windows-plugin-parity-plan.md | 4 +- docs/viva-migration.md | 4 +- scripts/desktop/build-desktop-core.sh | 9 +- scripts/desktop/desktop-go.sh | 7 +- scripts/i18n/test-i18n.mjs | 4 +- .../generate-platform-feature-matrix.mjs | 2 +- .../verify-platform-feature-matrix-change.mjs | 2 +- scripts/resources/worktree-resources.json | 10 - shared/contracts/agent-turn-policy.json | 3 - shared/contracts/ai-commit.md | 122 - shared/contracts/ai-generation-requests.md | 108 - shared/contracts/application-boundary.md | 938 --- .../build-local-options-v1.schema.json | 32 - .../build-project-options-v1.schema.json | 82 - .../editor-syntax-theme-v1.schema.json | 128 - .../contracts/git-commit-message-context.md | 44 - shared/contracts/git-patch-exchange.md | 117 - shared/contracts/git-rebase-session.md | 141 - shared/contracts/git-repository-setup.md | 28 - shared/contracts/github.md | 121 - shared/contracts/ide-api/v1.md | 232 - .../maven-launch-context-v1.schema.json | 21 - ...aven-portable-configuration-v1.schema.json | 22 - .../contracts/project-manifest-v1.schema.json | 12 - .../contracts/remote-workspace-protocol-v1.md | 285 - .../run-configuration-v1.schema.json | 48 - .../run-configuration-v2.schema.json | 272 - shared/contracts/rust-core-api.md | 6490 ----------------- shared/contracts/terminal-profiles.md | 36 - ...lchain-consumer-preferences-v1.schema.json | 220 - .../contracts/toolchain-local-v1.schema.json | 23 - .../toolchain-requirements-v1.schema.json | 30 - shared/contracts/update-v1.md | 34 - shared/contracts/update-v1.schema.json | 96 - shared/contracts/vcs-provider-v1.md | 368 - .../workbench-background-v1.schema.json | 28 - shared/fixtures/agent/acp-events-v1.json | 547 -- .../fixtures/agent/agent-instructions-v1.json | 40 - .../fixtures/agent/agent-management-v1.json | 212 - .../agent/attachment-retention-v1.json | 359 - .../agent/claude-desktop-cards-v1.json | 540 -- shared/fixtures/agent/edit-review-v1.json | 1087 --- .../fixtures/agent/history-activity-v1.json | 164 - .../agent/hook-draft-validation-v1.json | 806 -- .../fixtures/agent/hooks-management-v1.json | 64 - .../agent/model-call-statistics-v1.json | 409 -- .../agent/next-turn-configuration-v1.json | 1118 --- .../agent/shared-instructions-v1.json | 43 - .../fixtures/agent/skills-management-v1.json | 144 - shared/fixtures/ai/cli-configuration-v1.json | 278 - shared/fixtures/ai/commit-generation-v1.json | 23 - shared/fixtures/ai/inline-edit-v1.json | 323 - .../ai/pull-request-description-v1.json | 190 - .../build-project-options/local-edits.json | 14 - .../shared-defaults.json | 25 - .../build-project-options/validation.json | 25 - .../build-provider/test-results-v1.json | 39 - .../fixtures/build/native-tool-context.json | 13 - .../fixtures/build/test-outcome-merge-v1.json | 264 - .../fixtures/build/test-run-outcome-v1.json | 137 - .../fixtures/community/discourse-auth-v1.json | 34 - shared/fixtures/core/cancellation.json | 20 - .../fixtures/debug/adapter-endpoints-v1.json | 33 - .../fixtures/debug/adapter-selection-v1.json | 118 - .../fixtures/debug/breakpoint-binding-v1.json | 21 - .../debug/breakpoint-relocation-v1.json | 387 - shared/fixtures/debug/dap-session-v1.json | 140 - .../fixtures/debug/disassembly-paging-v1.json | 868 --- .../fixtures/debug/disconnect-policy-v1.json | 29 - shared/fixtures/debug/exception-info-v1.json | 51 - .../fixtures/debug/hot-code-replace-v1.json | 10 - shared/fixtures/debug/launch-event-order.json | 25 - shared/fixtures/debug/memory-window-v1.json | 78 - shared/fixtures/debug/node-source-map-v1.json | 28 - .../debug/projection-v2-examples.json | 152 - shared/fixtures/debug/run-in-terminal-v1.json | 54 - shared/fixtures/debug/stale-reference-v1.json | 8 - shared/fixtures/debug/start-debugging-v1.json | 28 - .../fixtures/debug/stepping-filters-v1.json | 32 - .../debug/transport-lifecycle-v1.json | 3149 -------- shared/fixtures/debug/v1-baseline.json | 514 -- .../fixtures/debug/variable-page-plan-v1.json | 1573 ---- shared/fixtures/debug/variable-paging-v1.json | 55 - .../diagnostics/build-manifest-v1.json | 43 - .../diagnostics/engine-logging-v2.json | 137 - .../fixtures/diagnostics/logging-ui-v1.json | 14 - shared/fixtures/diagnostics/logging-v1.json | 79 - shared/fixtures/diagnostics/logging-v2.json | 1559 ---- .../fixtures/diagnostics/redact-text-v1.json | 63 - shared/fixtures/diff/compare-texts-v1.json | 697 -- .../encoding-explicit-reopen-v1.json | 14 - shared/fixtures/documents/lifecycle-v1.json | 104 - shared/fixtures/documents/save-batch-v1.json | 410 -- shared/fixtures/editor-themes/lithe-v1.json | 59 - .../editor/basic-file-highlighting-v1.json | 40 - shared/fixtures/editor/diff-review-v1.json | 86 - shared/fixtures/editor/file-encoding-v1.json | 148 - shared/fixtures/editor/line-edit-v1.json | 430 -- shared/fixtures/editor/markdown-html-v1.json | 3 - .../fixtures/editor/markdown-render-v1.json | 109 - .../editor/markdown-rich-content-v1.json | 3 - .../editor/navigation-history-v1.json | 531 -- .../fixtures/editor/navigation-input-v1.json | 104 - shared/fixtures/editor/svg-preview-v1.json | 16 - shared/fixtures/editor/text-content-v1.json | 65 - shared/fixtures/editor/text-edit-plan-v1.json | 841 --- .../fixtures/editor/workbench-state-v1.json | 398 - .../execution/framework-identity.json | 114 - shared/fixtures/execution/gradle.json | 92 - .../execution/launch-environment-v1.json | 82 - .../maven-java-main-source-sets-v1.json | 28 - .../execution/maven-runtime-versions.json | 10 - shared/fixtures/execution/maven.json | 245 - shared/fixtures/execution/search-path-v1.json | 39 - .../standalone-java-compile-run-v1.json | 40 - .../git/authentication-failure-v1.json | 15 - .../fixtures/git/branch-name-preview-v1.json | 219 - shared/fixtures/git/change-targets-v1.json | 69 - .../fixtures/git/changelists-reducer-v1.json | 99 - shared/fixtures/git/checkout-metadata-v1.json | 11 - .../git/command-error-response-v1.json | 19 - shared/fixtures/git/command-response-v1.json | 21 - .../git/commit-lookup-response-v1.json | 14 - .../git/commit-message-context-v1.json | 20 - .../git/commit-selection-plan-v1.json | 9 - .../fixtures/git/comparison-untracked-v1.json | 10 - shared/fixtures/git/console-command-v1.json | 301 - shared/fixtures/git/console-lifecycle-v1.json | 439 -- .../fixtures/git/console-presentation-v1.json | 4455 ----------- shared/fixtures/git/diff-blocks-v1.json | 324 - shared/fixtures/git/diff.json | 22 - shared/fixtures/git/execution-events-v1.json | 97 - shared/fixtures/git/execution-policy-v1.json | 119 - shared/fixtures/git/fetch-behavior-v1.json | 863 --- shared/fixtures/git/fetch-plan-v1.json | 211 - .../fixtures/git/fetch-skip-boolean-v1.json | 17 - shared/fixtures/git/graph-idea/NOTICE.txt | 12 - .../elementGenerator/longEdges_in.txt | 13 - .../elementGenerator/longEdges_out.txt | 207 - .../elementGenerator/manyNodes_in.txt | 8 - .../elementGenerator/manyNodes_out.txt | 44 - .../elementGenerator/oneNode_in.txt | 1 - .../elementGenerator/oneNode_out.txt | 1 - .../elementGenerator/oneUpOneDown1_in.txt | 16 - .../elementGenerator/oneUpOneDown1_out.txt | 78 - .../elementGenerator/oneUpOneDown2_in.txt | 23 - .../elementGenerator/oneUpOneDown2_out.txt | 115 - .../graph-idea/layoutBuilder/manyNodes_in.txt | 9 - .../layoutBuilder/manyNodes_out.txt | 9 - .../layoutBuilder/notFullGraph_in.txt | 5 - .../layoutBuilder/notFullGraph_out.txt | 5 - .../layoutBuilder/oneNodeNotFullGraph_in.txt | 1 - .../layoutBuilder/oneNodeNotFullGraph_out.txt | 1 - .../graph-idea/layoutBuilder/oneNode_in.txt | 1 - .../graph-idea/layoutBuilder/oneNode_out.txt | 1 - shared/fixtures/git/graph-projection-v1.json | 3851 ---------- shared/fixtures/git/graph.json | 30 - .../git/history-action-capabilities-v1.json | 19 - .../fixtures/git/history-date-query-v1.json | 16 - shared/fixtures/git/history-locate-v1.json | 51 - .../git/history-page-date-request-v1.json | 6 - .../git/history-page-response-v1.json | 17 - shared/fixtures/git/history-response-v1.json | 62 - shared/fixtures/git/history-rewrite-v1.json | 46 - shared/fixtures/git/history-window-v1.json | 280 - .../git/local-changelist-scope-v1.json | 10 - .../git/metadata-classification-v1.json | 42 - shared/fixtures/git/parsed-diff-v1.json | 12 - shared/fixtures/git/patch-exchange-v1.json | 78 - shared/fixtures/git/push-preview-v1.json | 30 - .../fixtures/git/rebase-plan-preview-v1.json | 153 - shared/fixtures/git/rebase-session-v1.json | 58 - shared/fixtures/git/reference-tree-v1.json | 235 - .../fixtures/git/references-response-v1.json | 48 - shared/fixtures/git/remote-checkout-v1.json | 23 - .../fixtures/git/remote-tag-catalog-v1.json | 10 - shared/fixtures/git/remote-url-v1.json | 23 - shared/fixtures/git/repository-colors-v1.json | 142 - shared/fixtures/git/repository-setup-v1.json | 18 - shared/fixtures/git/rollback-plan-v1.json | 16 - shared/fixtures/git/saved-stash-v1.json | 71 - shared/fixtures/git/shelf-v1.json | 5 - shared/fixtures/git/tag-names.json | 35 - shared/fixtures/git/tag-write-v1.json | 95 - shared/fixtures/git/update-plan-v1.json | 625 -- shared/fixtures/git/windows-paths.json | 59 - shared/fixtures/git/workspace-commit-v1.json | 13 - .../git/workspace-commit-workflow-v1.json | 156 - shared/fixtures/git/worktree-creation-v1.json | 32 - shared/fixtures/git/worktrees-v1.json | 31 - shared/fixtures/git/write.json | 264 - .../device-authorization-transition-v1.json | 16 - .../fixtures/github/pr-checkout-plan-v1.json | 9 - shared/fixtures/github/pull-request-v1.json | 45 - shared/fixtures/history/basic.json | 11 - shared/fixtures/history/event-plan-v1.json | 90 - shared/fixtures/history/relocation-v1.json | 9 - shared/fixtures/ide-api/calls.json | 115 - .../fixtures/ide-api/host-tool-exposure.json | 91 - shared/fixtures/ide-api/mcp-protocol.json | 21 - shared/fixtures/java/basic.json | 21 - shared/fixtures/java/run-markers-v1.json | 216 - .../fixtures/keymap/binding-conflicts-v1.json | 164 - shared/fixtures/keymap/context-v1.json | 278 - shared/fixtures/keymap/import-plan-v1.json | 67 - .../fixtures/keymap/import-provider-v1.json | 86 - .../fixtures/keymap/modifier-gesture-v1.json | 612 -- .../keymap/provider-negotiation-v1.json | 14 - shared/fixtures/keymap/source-plans-v1.json | 18 - shared/fixtures/lsp/activation-policy-v1.json | 182 - shared/fixtures/lsp/completion-merge-v1.json | 206 - .../fixtures/lsp/completion-refresh-v1.json | 48 - .../lsp/diagnostic-code-actions-v1.json | 34 - shared/fixtures/lsp/document-identity-v1.json | 258 - shared/fixtures/lsp/document-save-v1.json | 10 - shared/fixtures/lsp/document-symbols-v1.json | 89 - shared/fixtures/lsp/document-uri-v1.json | 29 - shared/fixtures/lsp/java-build-report-v1.json | 31 - shared/fixtures/lsp/java-completion-v1.json | 23 - .../lsp/java-launch-preparation-v1.json | 80 - shared/fixtures/lsp/java-navigation-v1.json | 58 - .../lsp/java-project-runtimes-v1.json | 78 - .../lsp/java-workspace-policy-v1.json | 79 - .../fixtures/lsp/jdt-cache-retention-v1.json | 52 - shared/fixtures/lsp/jdt-direct-launch-v1.json | 34 - shared/fixtures/lsp/jdt-readiness-v1.json | 74 - .../lsp/jdt-workspace-fingerprint-v1.json | 35 - shared/fixtures/lsp/jdt-workspace-key-v1.json | 17 - .../fixtures/lsp/maven-profile-events-v1.json | 11 - shared/fixtures/lsp/navigation-target-v1.json | 305 - shared/fixtures/lsp/problems-query-v1.json | 1244 ---- .../fixtures/lsp/project-preparation-v1.json | 12 - shared/fixtures/lsp/semantic-tokens-v1.json | 71 - shared/fixtures/lsp/text-edits-v1.json | 382 - .../fixtures/lsp/workspace-edit-plan-v1.json | 613 -- shared/fixtures/maven/basic.json | 49 - shared/fixtures/maven/dependency-tree-v2.json | 140 - shared/fixtures/maven/diagnostics.json | 28 - shared/fixtures/maven/launch-plan-v1.json | 88 - .../fixtures/maven/platform-contract-v1.json | 30 - shared/fixtures/maven/source-roots-v1.json | 57 - shared/fixtures/maven/test-results-v1.json | 304 - .../fixtures/maven/testcase-durations-v1.json | 72 - shared/fixtures/modules/built-in-v1.json | 155 - shared/fixtures/mybatis/basic.json | 25 - shared/fixtures/network/proxy-policy-v1.json | 285 - shared/fixtures/phpunit-project/.gitignore | 3 - shared/fixtures/phpunit-project/composer.json | 5 - shared/fixtures/phpunit-project/phpunit.xml | 1 - shared/fixtures/phpunit-project/src/Store.php | 6 - .../phpunit-project/tests/StoreTest.php | 12 - shared/fixtures/plugins/host-api-v1.json | 34 - .../fixtures/plugins/installed-versions.json | 172 - .../fixtures/plugins/publisher-signature.json | 30 - shared/fixtures/plugins/settings-actions.json | 140 - .../fixtures/plugins/settings-documents.json | 559 -- .../plugins/settings-function-provider.json | 212 - .../fixtures/plugins/settings-surfaces.json | 1669 ----- .../process-lifecycle/exit-plan-v1.json | 325 - .../process-lifecycle/inventory-v1.json | 1304 ---- .../fixtures/process-lifecycle/settle-v1.json | 85 - .../lithe-spring-boot-git-graph/.classpath | 57 - .../lithe-spring-boot-git-graph/.project | 34 - .../org.eclipse.core.resources.prefs | 4 - .../.settings/org.eclipse.jdt.apt.core.prefs | 2 - .../.settings/org.eclipse.jdt.core.prefs | 10 - .../.settings/org.eclipse.m2e.core.prefs | 4 - .../lithe-spring-boot-git-graph/README.md | 17 - .../history/OrderController-feature.java | 14 - .../history/UserService-feature.java | 18 - .../lithe-spring-boot-git-graph/pom.xml | 46 - .../com/example/demo/DemoApplication.java | 11 - .../com/example/demo/user/UserController.java | 27 - .../com/example/demo/user/UserRepository.java | 17 - .../com/example/demo/user/UserService.java | 18 - .../src/main/resources/application.yml | 5 - .../run-configuration/argument-text.json | 40 - .../automatic-java-selection.json | 284 - shared/fixtures/run-configuration/basic.json | 23 - .../build-provider-options.json | 70 - .../build-provider-stable-identities.json | 17 - .../run-configuration/build-provider.json | 36 - .../configuration-toolchain-selection.json | 446 -- .../run-configuration/context-selection.json | 66 - .../run-configuration/editor-save.json | 28 - .../run-configuration/hybrid-spring-vue.json | 43 - .../run-configuration/invalid-version.json | 7 - .../maven-module-ownership.json | 91 - .../run-configuration/multi-module.json | 39 - .../fixtures/run-configuration/no-entry.json | 7 - .../project-environment.json | 22 - .../project-toolchain-selection.json | 328 - .../provider-prepared-java.json | 17 - .../provider-project-ownership.json | 156 - .../run-configuration/single-module.json | 23 - .../subproject-toolchains.json | 45 - .../run-configuration/title-action-v1.json | 217 - .../run-configuration/toolchain-mismatch.json | 15 - shared/fixtures/search/actions-v1.json | 43 - shared/fixtures/search/advanced.json | 37 - shared/fixtures/search/basic.json | 74 - shared/fixtures/search/exclusions.json | 165 - shared/fixtures/search/name-matching.json | 11 - shared/fixtures/search/path-fallback.json | 8 - shared/fixtures/search/rank-names-v1.json | 74 - .../search/search-everywhere-context-v1.json | 26 - shared/fixtures/search/text-snapshot-v1.json | 104 - .../fixtures/search/unicode-contiguous.json | 54 - .../settings/workbench-background-v1.json | 8 - shared/fixtures/spring/basic.json | 45 - shared/fixtures/terminal/link-target-v1.json | 89 - .../fixtures/terminal/shell-selection-v1.json | 37 - shared/fixtures/toolchain-pin-edit.json | 56 - shared/fixtures/toolchain-pin-storage.json | 450 -- .../toolchains/consumer-preferences.json | 100 - shared/fixtures/toolchains/rpc-id-cases.json | 44 - shared/fixtures/updates/build-time-v1.json | 9 - .../updates/channel-selection-v1.json | 15 - shared/fixtures/updates/update-v1.json | 45 - shared/fixtures/vcs/model-v1.json | 663 -- .../fixtures/workspace/change-filter-v1.json | 25 - .../workspace/directory-actions-v1.json | 275 - .../workspace/directory-rules-v1.json | 118 - shared/fixtures/workspace/entry-order-v1.json | 95 - .../workspace/file-copy-names-v1.json | 25 - .../workspace/file-name-order-v1.json | 47 - .../workspace/indexing-policy-v1.json | 69 - .../workspace/recent-projects-v1.json | 197 - .../fixtures/workspace/repositories-v1.json | 16 - .../workspace/repository-visibility-v1.json | 16 - shared/fixtures/workspace/visibility-v1.json | 589 -- shared/i18n/README.md | 2 + .../i18n => i18n/fixtures}/format-v1.json | 0 .../i18n => i18n/fixtures}/native-abi-v1.json | 0 .../features/ai-commit-generation.json | 6 - .../features/ai-inline-edit.json | 8 +- .../features/debug-disassembly.json | 4 +- .../features/debug-state.json | 4 +- .../features/debug-tcp-transport.json | 6 +- .../features/declarative-plugin-settings.json | 6 - .../features/editor-go-to-line.json | 6 +- .../features/editor-ide-settings-import.json | 6 +- .../editor-unicode-text-classification.json | 6 +- .../features/lsp-diagnostics.json | 2 - .../features/lsp-document-identity.json | 8 +- .../features/plugin-debug-adapters.json | 2 +- .../features/plugin-injected-toolchains.json | 2 - .../features/process-termination-policy.json | 4 - .../features/run-java-test.json | 2 +- .../features/run-node-launch-path.json | 6 +- .../features/viva-debug-session.json | 2 - 488 files changed, 431 insertions(+), 63491 deletions(-) create mode 100644 .agents/notes/implemented/architecture/2026-11-14-core-app-contracts-single-source.md delete mode 100644 shared/contracts/agent-turn-policy.json delete mode 100644 shared/contracts/ai-commit.md delete mode 100644 shared/contracts/ai-generation-requests.md delete mode 100644 shared/contracts/application-boundary.md delete mode 100644 shared/contracts/build-local-options-v1.schema.json delete mode 100644 shared/contracts/build-project-options-v1.schema.json delete mode 100644 shared/contracts/editor-syntax-theme-v1.schema.json delete mode 100644 shared/contracts/git-commit-message-context.md delete mode 100644 shared/contracts/git-patch-exchange.md delete mode 100644 shared/contracts/git-rebase-session.md delete mode 100644 shared/contracts/git-repository-setup.md delete mode 100644 shared/contracts/github.md delete mode 100644 shared/contracts/ide-api/v1.md delete mode 100644 shared/contracts/maven-launch-context-v1.schema.json delete mode 100644 shared/contracts/maven-portable-configuration-v1.schema.json delete mode 100644 shared/contracts/project-manifest-v1.schema.json delete mode 100644 shared/contracts/remote-workspace-protocol-v1.md delete mode 100644 shared/contracts/run-configuration-v1.schema.json delete mode 100644 shared/contracts/run-configuration-v2.schema.json delete mode 100644 shared/contracts/rust-core-api.md delete mode 100644 shared/contracts/terminal-profiles.md delete mode 100644 shared/contracts/toolchain-consumer-preferences-v1.schema.json delete mode 100644 shared/contracts/toolchain-local-v1.schema.json delete mode 100644 shared/contracts/toolchain-requirements-v1.schema.json delete mode 100644 shared/contracts/update-v1.md delete mode 100644 shared/contracts/update-v1.schema.json delete mode 100644 shared/contracts/vcs-provider-v1.md delete mode 100644 shared/contracts/workbench-background-v1.schema.json delete mode 100644 shared/fixtures/agent/acp-events-v1.json delete mode 100644 shared/fixtures/agent/agent-instructions-v1.json delete mode 100644 shared/fixtures/agent/agent-management-v1.json delete mode 100644 shared/fixtures/agent/attachment-retention-v1.json delete mode 100644 shared/fixtures/agent/claude-desktop-cards-v1.json delete mode 100644 shared/fixtures/agent/edit-review-v1.json delete mode 100644 shared/fixtures/agent/history-activity-v1.json delete mode 100644 shared/fixtures/agent/hook-draft-validation-v1.json delete mode 100644 shared/fixtures/agent/hooks-management-v1.json delete mode 100644 shared/fixtures/agent/model-call-statistics-v1.json delete mode 100644 shared/fixtures/agent/next-turn-configuration-v1.json delete mode 100644 shared/fixtures/agent/shared-instructions-v1.json delete mode 100644 shared/fixtures/agent/skills-management-v1.json delete mode 100644 shared/fixtures/ai/cli-configuration-v1.json delete mode 100644 shared/fixtures/ai/commit-generation-v1.json delete mode 100644 shared/fixtures/ai/inline-edit-v1.json delete mode 100644 shared/fixtures/ai/pull-request-description-v1.json delete mode 100644 shared/fixtures/build-project-options/local-edits.json delete mode 100644 shared/fixtures/build-project-options/shared-defaults.json delete mode 100644 shared/fixtures/build-project-options/validation.json delete mode 100644 shared/fixtures/build-provider/test-results-v1.json delete mode 100644 shared/fixtures/build/native-tool-context.json delete mode 100644 shared/fixtures/build/test-outcome-merge-v1.json delete mode 100644 shared/fixtures/build/test-run-outcome-v1.json delete mode 100644 shared/fixtures/community/discourse-auth-v1.json delete mode 100644 shared/fixtures/core/cancellation.json delete mode 100644 shared/fixtures/debug/adapter-endpoints-v1.json delete mode 100644 shared/fixtures/debug/adapter-selection-v1.json delete mode 100644 shared/fixtures/debug/breakpoint-binding-v1.json delete mode 100644 shared/fixtures/debug/breakpoint-relocation-v1.json delete mode 100644 shared/fixtures/debug/dap-session-v1.json delete mode 100644 shared/fixtures/debug/disassembly-paging-v1.json delete mode 100644 shared/fixtures/debug/disconnect-policy-v1.json delete mode 100644 shared/fixtures/debug/exception-info-v1.json delete mode 100644 shared/fixtures/debug/hot-code-replace-v1.json delete mode 100644 shared/fixtures/debug/launch-event-order.json delete mode 100644 shared/fixtures/debug/memory-window-v1.json delete mode 100644 shared/fixtures/debug/node-source-map-v1.json delete mode 100644 shared/fixtures/debug/projection-v2-examples.json delete mode 100644 shared/fixtures/debug/run-in-terminal-v1.json delete mode 100644 shared/fixtures/debug/stale-reference-v1.json delete mode 100644 shared/fixtures/debug/start-debugging-v1.json delete mode 100644 shared/fixtures/debug/stepping-filters-v1.json delete mode 100644 shared/fixtures/debug/transport-lifecycle-v1.json delete mode 100644 shared/fixtures/debug/v1-baseline.json delete mode 100644 shared/fixtures/debug/variable-page-plan-v1.json delete mode 100644 shared/fixtures/debug/variable-paging-v1.json delete mode 100644 shared/fixtures/diagnostics/build-manifest-v1.json delete mode 100644 shared/fixtures/diagnostics/engine-logging-v2.json delete mode 100644 shared/fixtures/diagnostics/logging-ui-v1.json delete mode 100644 shared/fixtures/diagnostics/logging-v1.json delete mode 100644 shared/fixtures/diagnostics/logging-v2.json delete mode 100644 shared/fixtures/diagnostics/redact-text-v1.json delete mode 100644 shared/fixtures/diff/compare-texts-v1.json delete mode 100644 shared/fixtures/documents/encoding-explicit-reopen-v1.json delete mode 100644 shared/fixtures/documents/lifecycle-v1.json delete mode 100644 shared/fixtures/documents/save-batch-v1.json delete mode 100644 shared/fixtures/editor-themes/lithe-v1.json delete mode 100644 shared/fixtures/editor/basic-file-highlighting-v1.json delete mode 100644 shared/fixtures/editor/diff-review-v1.json delete mode 100644 shared/fixtures/editor/file-encoding-v1.json delete mode 100644 shared/fixtures/editor/line-edit-v1.json delete mode 100644 shared/fixtures/editor/markdown-html-v1.json delete mode 100644 shared/fixtures/editor/markdown-render-v1.json delete mode 100644 shared/fixtures/editor/markdown-rich-content-v1.json delete mode 100644 shared/fixtures/editor/navigation-history-v1.json delete mode 100644 shared/fixtures/editor/navigation-input-v1.json delete mode 100644 shared/fixtures/editor/svg-preview-v1.json delete mode 100644 shared/fixtures/editor/text-content-v1.json delete mode 100644 shared/fixtures/editor/text-edit-plan-v1.json delete mode 100644 shared/fixtures/editor/workbench-state-v1.json delete mode 100644 shared/fixtures/execution/framework-identity.json delete mode 100644 shared/fixtures/execution/gradle.json delete mode 100644 shared/fixtures/execution/launch-environment-v1.json delete mode 100644 shared/fixtures/execution/maven-java-main-source-sets-v1.json delete mode 100644 shared/fixtures/execution/maven-runtime-versions.json delete mode 100644 shared/fixtures/execution/maven.json delete mode 100644 shared/fixtures/execution/search-path-v1.json delete mode 100644 shared/fixtures/execution/standalone-java-compile-run-v1.json delete mode 100644 shared/fixtures/git/authentication-failure-v1.json delete mode 100644 shared/fixtures/git/branch-name-preview-v1.json delete mode 100644 shared/fixtures/git/change-targets-v1.json delete mode 100644 shared/fixtures/git/changelists-reducer-v1.json delete mode 100644 shared/fixtures/git/checkout-metadata-v1.json delete mode 100644 shared/fixtures/git/command-error-response-v1.json delete mode 100644 shared/fixtures/git/command-response-v1.json delete mode 100644 shared/fixtures/git/commit-lookup-response-v1.json delete mode 100644 shared/fixtures/git/commit-message-context-v1.json delete mode 100644 shared/fixtures/git/commit-selection-plan-v1.json delete mode 100644 shared/fixtures/git/comparison-untracked-v1.json delete mode 100644 shared/fixtures/git/console-command-v1.json delete mode 100644 shared/fixtures/git/console-lifecycle-v1.json delete mode 100644 shared/fixtures/git/console-presentation-v1.json delete mode 100644 shared/fixtures/git/diff-blocks-v1.json delete mode 100644 shared/fixtures/git/diff.json delete mode 100644 shared/fixtures/git/execution-events-v1.json delete mode 100644 shared/fixtures/git/execution-policy-v1.json delete mode 100644 shared/fixtures/git/fetch-behavior-v1.json delete mode 100644 shared/fixtures/git/fetch-plan-v1.json delete mode 100644 shared/fixtures/git/fetch-skip-boolean-v1.json delete mode 100644 shared/fixtures/git/graph-idea/NOTICE.txt delete mode 100644 shared/fixtures/git/graph-idea/elementGenerator/longEdges_in.txt delete mode 100644 shared/fixtures/git/graph-idea/elementGenerator/longEdges_out.txt delete mode 100644 shared/fixtures/git/graph-idea/elementGenerator/manyNodes_in.txt delete mode 100644 shared/fixtures/git/graph-idea/elementGenerator/manyNodes_out.txt delete mode 100644 shared/fixtures/git/graph-idea/elementGenerator/oneNode_in.txt delete mode 100644 shared/fixtures/git/graph-idea/elementGenerator/oneNode_out.txt delete mode 100644 shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown1_in.txt delete mode 100644 shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown1_out.txt delete mode 100644 shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown2_in.txt delete mode 100644 shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown2_out.txt delete mode 100644 shared/fixtures/git/graph-idea/layoutBuilder/manyNodes_in.txt delete mode 100644 shared/fixtures/git/graph-idea/layoutBuilder/manyNodes_out.txt delete mode 100644 shared/fixtures/git/graph-idea/layoutBuilder/notFullGraph_in.txt delete mode 100644 shared/fixtures/git/graph-idea/layoutBuilder/notFullGraph_out.txt delete mode 100644 shared/fixtures/git/graph-idea/layoutBuilder/oneNodeNotFullGraph_in.txt delete mode 100644 shared/fixtures/git/graph-idea/layoutBuilder/oneNodeNotFullGraph_out.txt delete mode 100644 shared/fixtures/git/graph-idea/layoutBuilder/oneNode_in.txt delete mode 100644 shared/fixtures/git/graph-idea/layoutBuilder/oneNode_out.txt delete mode 100644 shared/fixtures/git/graph-projection-v1.json delete mode 100644 shared/fixtures/git/graph.json delete mode 100644 shared/fixtures/git/history-action-capabilities-v1.json delete mode 100644 shared/fixtures/git/history-date-query-v1.json delete mode 100644 shared/fixtures/git/history-locate-v1.json delete mode 100644 shared/fixtures/git/history-page-date-request-v1.json delete mode 100644 shared/fixtures/git/history-page-response-v1.json delete mode 100644 shared/fixtures/git/history-response-v1.json delete mode 100644 shared/fixtures/git/history-rewrite-v1.json delete mode 100644 shared/fixtures/git/history-window-v1.json delete mode 100644 shared/fixtures/git/local-changelist-scope-v1.json delete mode 100644 shared/fixtures/git/metadata-classification-v1.json delete mode 100644 shared/fixtures/git/parsed-diff-v1.json delete mode 100644 shared/fixtures/git/patch-exchange-v1.json delete mode 100644 shared/fixtures/git/push-preview-v1.json delete mode 100644 shared/fixtures/git/rebase-plan-preview-v1.json delete mode 100644 shared/fixtures/git/rebase-session-v1.json delete mode 100644 shared/fixtures/git/reference-tree-v1.json delete mode 100644 shared/fixtures/git/references-response-v1.json delete mode 100644 shared/fixtures/git/remote-checkout-v1.json delete mode 100644 shared/fixtures/git/remote-tag-catalog-v1.json delete mode 100644 shared/fixtures/git/remote-url-v1.json delete mode 100644 shared/fixtures/git/repository-colors-v1.json delete mode 100644 shared/fixtures/git/repository-setup-v1.json delete mode 100644 shared/fixtures/git/rollback-plan-v1.json delete mode 100644 shared/fixtures/git/saved-stash-v1.json delete mode 100644 shared/fixtures/git/shelf-v1.json delete mode 100644 shared/fixtures/git/tag-names.json delete mode 100644 shared/fixtures/git/tag-write-v1.json delete mode 100644 shared/fixtures/git/update-plan-v1.json delete mode 100644 shared/fixtures/git/windows-paths.json delete mode 100644 shared/fixtures/git/workspace-commit-v1.json delete mode 100644 shared/fixtures/git/workspace-commit-workflow-v1.json delete mode 100644 shared/fixtures/git/worktree-creation-v1.json delete mode 100644 shared/fixtures/git/worktrees-v1.json delete mode 100644 shared/fixtures/git/write.json delete mode 100644 shared/fixtures/github/device-authorization-transition-v1.json delete mode 100644 shared/fixtures/github/pr-checkout-plan-v1.json delete mode 100644 shared/fixtures/github/pull-request-v1.json delete mode 100644 shared/fixtures/history/basic.json delete mode 100644 shared/fixtures/history/event-plan-v1.json delete mode 100644 shared/fixtures/history/relocation-v1.json delete mode 100644 shared/fixtures/ide-api/calls.json delete mode 100644 shared/fixtures/ide-api/host-tool-exposure.json delete mode 100644 shared/fixtures/ide-api/mcp-protocol.json delete mode 100644 shared/fixtures/java/basic.json delete mode 100644 shared/fixtures/java/run-markers-v1.json delete mode 100644 shared/fixtures/keymap/binding-conflicts-v1.json delete mode 100644 shared/fixtures/keymap/context-v1.json delete mode 100644 shared/fixtures/keymap/import-plan-v1.json delete mode 100644 shared/fixtures/keymap/import-provider-v1.json delete mode 100644 shared/fixtures/keymap/modifier-gesture-v1.json delete mode 100644 shared/fixtures/keymap/provider-negotiation-v1.json delete mode 100644 shared/fixtures/keymap/source-plans-v1.json delete mode 100644 shared/fixtures/lsp/activation-policy-v1.json delete mode 100644 shared/fixtures/lsp/completion-merge-v1.json delete mode 100644 shared/fixtures/lsp/completion-refresh-v1.json delete mode 100644 shared/fixtures/lsp/diagnostic-code-actions-v1.json delete mode 100644 shared/fixtures/lsp/document-identity-v1.json delete mode 100644 shared/fixtures/lsp/document-save-v1.json delete mode 100644 shared/fixtures/lsp/document-symbols-v1.json delete mode 100644 shared/fixtures/lsp/document-uri-v1.json delete mode 100644 shared/fixtures/lsp/java-build-report-v1.json delete mode 100644 shared/fixtures/lsp/java-completion-v1.json delete mode 100644 shared/fixtures/lsp/java-launch-preparation-v1.json delete mode 100644 shared/fixtures/lsp/java-navigation-v1.json delete mode 100644 shared/fixtures/lsp/java-project-runtimes-v1.json delete mode 100644 shared/fixtures/lsp/java-workspace-policy-v1.json delete mode 100644 shared/fixtures/lsp/jdt-cache-retention-v1.json delete mode 100644 shared/fixtures/lsp/jdt-direct-launch-v1.json delete mode 100644 shared/fixtures/lsp/jdt-readiness-v1.json delete mode 100644 shared/fixtures/lsp/jdt-workspace-fingerprint-v1.json delete mode 100644 shared/fixtures/lsp/jdt-workspace-key-v1.json delete mode 100644 shared/fixtures/lsp/maven-profile-events-v1.json delete mode 100644 shared/fixtures/lsp/navigation-target-v1.json delete mode 100644 shared/fixtures/lsp/problems-query-v1.json delete mode 100644 shared/fixtures/lsp/project-preparation-v1.json delete mode 100644 shared/fixtures/lsp/semantic-tokens-v1.json delete mode 100644 shared/fixtures/lsp/text-edits-v1.json delete mode 100644 shared/fixtures/lsp/workspace-edit-plan-v1.json delete mode 100644 shared/fixtures/maven/basic.json delete mode 100644 shared/fixtures/maven/dependency-tree-v2.json delete mode 100644 shared/fixtures/maven/diagnostics.json delete mode 100644 shared/fixtures/maven/launch-plan-v1.json delete mode 100644 shared/fixtures/maven/platform-contract-v1.json delete mode 100644 shared/fixtures/maven/source-roots-v1.json delete mode 100644 shared/fixtures/maven/test-results-v1.json delete mode 100644 shared/fixtures/maven/testcase-durations-v1.json delete mode 100644 shared/fixtures/modules/built-in-v1.json delete mode 100644 shared/fixtures/mybatis/basic.json delete mode 100644 shared/fixtures/network/proxy-policy-v1.json delete mode 100644 shared/fixtures/phpunit-project/.gitignore delete mode 100644 shared/fixtures/phpunit-project/composer.json delete mode 100644 shared/fixtures/phpunit-project/phpunit.xml delete mode 100644 shared/fixtures/phpunit-project/src/Store.php delete mode 100644 shared/fixtures/phpunit-project/tests/StoreTest.php delete mode 100644 shared/fixtures/plugins/host-api-v1.json delete mode 100644 shared/fixtures/plugins/installed-versions.json delete mode 100644 shared/fixtures/plugins/publisher-signature.json delete mode 100644 shared/fixtures/plugins/settings-actions.json delete mode 100644 shared/fixtures/plugins/settings-documents.json delete mode 100644 shared/fixtures/plugins/settings-function-provider.json delete mode 100644 shared/fixtures/plugins/settings-surfaces.json delete mode 100644 shared/fixtures/process-lifecycle/exit-plan-v1.json delete mode 100644 shared/fixtures/process-lifecycle/inventory-v1.json delete mode 100644 shared/fixtures/process-lifecycle/settle-v1.json delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/.classpath delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/.project delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.core.resources.prefs delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.jdt.apt.core.prefs delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.jdt.core.prefs delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.m2e.core.prefs delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/README.md delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/history/OrderController-feature.java delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/history/UserService-feature.java delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/pom.xml delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/DemoApplication.java delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserController.java delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserRepository.java delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserService.java delete mode 100644 shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/resources/application.yml delete mode 100644 shared/fixtures/run-configuration/argument-text.json delete mode 100644 shared/fixtures/run-configuration/automatic-java-selection.json delete mode 100644 shared/fixtures/run-configuration/basic.json delete mode 100644 shared/fixtures/run-configuration/build-provider-options.json delete mode 100644 shared/fixtures/run-configuration/build-provider-stable-identities.json delete mode 100644 shared/fixtures/run-configuration/build-provider.json delete mode 100644 shared/fixtures/run-configuration/configuration-toolchain-selection.json delete mode 100644 shared/fixtures/run-configuration/context-selection.json delete mode 100644 shared/fixtures/run-configuration/editor-save.json delete mode 100644 shared/fixtures/run-configuration/hybrid-spring-vue.json delete mode 100644 shared/fixtures/run-configuration/invalid-version.json delete mode 100644 shared/fixtures/run-configuration/maven-module-ownership.json delete mode 100644 shared/fixtures/run-configuration/multi-module.json delete mode 100644 shared/fixtures/run-configuration/no-entry.json delete mode 100644 shared/fixtures/run-configuration/project-environment.json delete mode 100644 shared/fixtures/run-configuration/project-toolchain-selection.json delete mode 100644 shared/fixtures/run-configuration/provider-prepared-java.json delete mode 100644 shared/fixtures/run-configuration/provider-project-ownership.json delete mode 100644 shared/fixtures/run-configuration/single-module.json delete mode 100644 shared/fixtures/run-configuration/subproject-toolchains.json delete mode 100644 shared/fixtures/run-configuration/title-action-v1.json delete mode 100644 shared/fixtures/run-configuration/toolchain-mismatch.json delete mode 100644 shared/fixtures/search/actions-v1.json delete mode 100644 shared/fixtures/search/advanced.json delete mode 100644 shared/fixtures/search/basic.json delete mode 100644 shared/fixtures/search/exclusions.json delete mode 100644 shared/fixtures/search/name-matching.json delete mode 100644 shared/fixtures/search/path-fallback.json delete mode 100644 shared/fixtures/search/rank-names-v1.json delete mode 100644 shared/fixtures/search/search-everywhere-context-v1.json delete mode 100644 shared/fixtures/search/text-snapshot-v1.json delete mode 100644 shared/fixtures/search/unicode-contiguous.json delete mode 100644 shared/fixtures/settings/workbench-background-v1.json delete mode 100644 shared/fixtures/spring/basic.json delete mode 100644 shared/fixtures/terminal/link-target-v1.json delete mode 100644 shared/fixtures/terminal/shell-selection-v1.json delete mode 100644 shared/fixtures/toolchain-pin-edit.json delete mode 100644 shared/fixtures/toolchain-pin-storage.json delete mode 100644 shared/fixtures/toolchains/consumer-preferences.json delete mode 100644 shared/fixtures/toolchains/rpc-id-cases.json delete mode 100644 shared/fixtures/updates/build-time-v1.json delete mode 100644 shared/fixtures/updates/channel-selection-v1.json delete mode 100644 shared/fixtures/updates/update-v1.json delete mode 100644 shared/fixtures/vcs/model-v1.json delete mode 100644 shared/fixtures/workspace/change-filter-v1.json delete mode 100644 shared/fixtures/workspace/directory-actions-v1.json delete mode 100644 shared/fixtures/workspace/directory-rules-v1.json delete mode 100644 shared/fixtures/workspace/entry-order-v1.json delete mode 100644 shared/fixtures/workspace/file-copy-names-v1.json delete mode 100644 shared/fixtures/workspace/file-name-order-v1.json delete mode 100644 shared/fixtures/workspace/indexing-policy-v1.json delete mode 100644 shared/fixtures/workspace/recent-projects-v1.json delete mode 100644 shared/fixtures/workspace/repositories-v1.json delete mode 100644 shared/fixtures/workspace/repository-visibility-v1.json delete mode 100644 shared/fixtures/workspace/visibility-v1.json rename shared/{fixtures/i18n => i18n/fixtures}/format-v1.json (100%) rename shared/{fixtures/i18n => i18n/fixtures}/native-abi-v1.json (100%) diff --git a/.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md b/.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md index d8c6c29ab2..97853f2583 100644 --- a/.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md +++ b/.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md @@ -160,7 +160,7 @@ prune、仓库覆盖关闭时,重置提示应为开启;子模块只有选择 删除远程没有的本地标签。部分或排除型标签 refspec 显示为自定义,不猜测完整 结果。无可用远程或 Git 拒绝的布尔配置显示不可确定,原始配置仍可编辑。 例如,`--no-tags --no-prune` 配合 `fetch.pruneTags=true` 时显示“获取全部”, -不要只回显 Lithe 选中的“不获取”。`shared/fixtures/git/fetch-behavior-v1.json` +不要只回显 Lithe 选中的“不获取”。`Lithe-core-rust/rust/fixtures/git/fetch-behavior-v1.json` 覆盖来源和多远程规则,Core 的真实 Git 测试对照标签 refspec、无效布尔值与实际 Fetch。 普通 Fetch 仍是一项直接操作,可选的设置预览留在现有 Git 菜单中。控制台 @@ -227,7 +227,7 @@ stdout/stderr 分开,复制原始输出时不混入提示。没有完整变化 可以展开恢复。向上滚动暂停跟随,回到底部恢复;macOS 在控制台容器内处理 滚动状态,避免每个指针事件重建 Git 页面。控制台历史只存在于有界内存, 不定义磁盘保存和长期保留策略。字段和容量的正式契约见 -[Rust Core API](../../../../shared/contracts/rust-core-api.md)。 +[Rust Core API](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md)。 ## 考虑过的备选方案 @@ -325,8 +325,8 @@ Windows ARM64 本地对比从 1.799 秒降到 1.362 秒,但这不代表托管 - `desktop/internal/core/client.go` - `desktop/internal/core/events_bridge.go` - `desktop/internal/workbench/` -- `shared/fixtures/git/` -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/fixtures/git/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` - [旧客户端执行链、测试及原适用范围(历史版本)](https://github.com/1lck/Lithe-IDEA/blob/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md) ### macOS Console 左侧工具栏样式 diff --git a/.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md b/.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md index 768f8033f9..20463a3ce0 100644 --- a/.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md +++ b/.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md @@ -386,7 +386,7 @@ Linux 的模拟验证不能代替 Windows WebView2 或报告者项目的实机 Windows 语义颜色使用 `lsp-core-adapter.test.ts` 和 `semantic-token-provider.test.ts` 消费同一份 -`shared/fixtures/lsp/semantic-tokens-v1.json`,覆盖命令路由、图例转换、刷新通知、 +`Lithe-core-rust/rust/fixtures/lsp/semantic-tokens-v1.json`,覆盖命令路由、图例转换、刷新通知、 取消、归属替换、同步先后顺序及过期模型。Linux 可运行这些确定性前端测试; 真实 JDTLS 与 WebView2 上色、大文件降级仍需 Windows 验收。 diff --git a/.agents/notes/implemented/architecture/2026-09-18-java-project-build-and-launch-boundary.md b/.agents/notes/implemented/architecture/2026-09-18-java-project-build-and-launch-boundary.md index c6a1092ae1..271bf6cb5d 100644 --- a/.agents/notes/implemented/architecture/2026-09-18-java-project-build-and-launch-boundary.md +++ b/.agents/notes/implemented/architecture/2026-09-18-java-project-build-and-launch-boundary.md @@ -179,7 +179,7 @@ JDT LS 1.61 的 `BaseDocumentLifeCycleHandler.handleSaved` 会刷新并重建工 重新读取缓冲区;例如等待 A 文件时用户保存了 B,就发送 B 的新内容,不能把遍历开始时 捕获的旧文本重新同步。已关闭或变脏的文件跳过通知,未保存修改仍阻止启动。 共享保存夹具为 -`shared/fixtures/lsp/document-save-v1.json`。这不保证未打开文件的外部修改立即 +`Lithe-core-rust/rust/fixtures/lsp/document-save-v1.json`。这不保证未打开文件的外部修改立即 完成 JDT watcher 同步;真实测试仍观察到这种情况下运行旧输出,不能将本次修复 宣称为所有外部文件变更的同步屏障。 @@ -288,7 +288,7 @@ JDK 是插件声明、用户选定的工具链安装(`toolchains.*`),宿 环境(例如 JAVA_HOME)和 PATH 前缀加进去(Viva 中是 `desktop/internal/workbench/toolchains.go` 的 `applyToolchainSelection`)。 execution.resolveEnvironment 只剩“继承环境低于显式值”的合并,不认识任何工具; -契约和 `shared/fixtures/execution/launch-environment-v1.json` 已在 +契约和 `Lithe-core-rust/rust/fixtures/execution/launch-environment-v1.json` 已在 Lithe-core-rust#10 改成这个语义并由 Core 测试执行。Windows 环境键按不区分 大小写处理。 @@ -386,8 +386,8 @@ Maven JDK、显式覆盖及资源步骤;#1133 的 Maven 原生资源步骤保 终态测试覆盖同一次启动继续、按工作区记忆选择和索引恢复。 - Windows:Run Store 把准备结果传入 Core,并分别用 `;` 拼 classpath/module-path; Run/Debug 共用的 Store 测试覆盖同一次启动继续、取消、记忆选择和索引恢复。 -- 共享契约:`shared/contracts/rust-core-api.md` 与 - `shared/contracts/application-boundary.md`,跨平台样例为 +- 共享契约:`Lithe-core-rust/rust/contracts/rust-core-api.md` 与 + `Lithe-core-rust/rust/contracts/application-boundary.md`,跨平台样例为 `shared/fixtures/lsp/java-build-report-v1.json`。 ## 适用范围 diff --git a/.agents/notes/implemented/architecture/2026-09-18-php-support-plugin-ownership-and-plans.md b/.agents/notes/implemented/architecture/2026-09-18-php-support-plugin-ownership-and-plans.md index ba8f0b831e..b6b9a4e8a5 100644 --- a/.agents/notes/implemented/architecture/2026-09-18-php-support-plugin-ownership-and-plans.md +++ b/.agents/notes/implemented/architecture/2026-09-18-php-support-plugin-ownership-and-plans.md @@ -93,5 +93,5 @@ Windows 休眠的 Run Actions 宿主不再扫描其他语言的 manifest 或自 - ~~`windows/tauri/src/extensions/`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/run-actions/`~~(已随 #1794 移除) - ~~`windows/tauri/src-tauri/src/language_tools.rs`~~(已随 #1794 移除) -- `shared/contracts/application-boundary.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/application-boundary.md` - `shared/platform-feature-matrix/features/` diff --git a/.agents/notes/implemented/architecture/2026-09-21-maven-settings-reach-the-language-server.md b/.agents/notes/implemented/architecture/2026-09-21-maven-settings-reach-the-language-server.md index 308b91072a..c1fc000d13 100644 --- a/.agents/notes/implemented/architecture/2026-09-21-maven-settings-reach-the-language-server.md +++ b/.agents/notes/implemented/architecture/2026-09-21-maven-settings-reach-the-language-server.md @@ -558,7 +558,7 @@ JDK 和未知偏好;非空值成为本机 Build 默认值,空值继续表示 - 项目环境与运行配置设置入口: - Rust Core:`rust/lithe-core/src/execution/configuration.rs`(`runConfig.inspect`、 `runConfig.updateOptions` 工具链分支) - - 共享契约:`shared/contracts/rust-core-api.md`、 + - 共享契约:`Lithe-core-rust/rust/contracts/rust-core-api.md`、 `shared/fixtures/run-configuration/project-environment.json` - macOS:`macos/Sources/Lithe/Views/App/RunConfigurationSettingsView.swift`、 `macos/Sources/Lithe/Views/App/ProjectRuntimeSettingsView.swift`、 diff --git a/.agents/notes/implemented/architecture/2026-09-22-editor-run-markers-and-test-outcomes.md b/.agents/notes/implemented/architecture/2026-09-22-editor-run-markers-and-test-outcomes.md index 1611c7e682..31507a2f12 100644 --- a/.agents/notes/implemented/architecture/2026-09-22-editor-run-markers-and-test-outcomes.md +++ b/.agents/notes/implemented/architecture/2026-09-22-editor-run-markers-and-test-outcomes.md @@ -155,4 +155,4 @@ intellij-community 的 `runConfigurations/testState` 图标(Apache 2.0)。 - ~~`frontend/editor/src/run-markers.ts`~~(已随 #1794 移除) - 已迁出:原 `macos/Sources/Lithe/Models/AppModel/AppModel+JavaRunMarkers.swift`。宿主侧 Java 专属代码已删除(#1495);运行、调试、入口标记与工具链改走通用插件 API(`run/start`、`debug/start`、`editor/registerActions`、`toolDefinitions`),实现见 [lithe-plugin-java](https://github.com/Lithe-IDEA/lithe-plugin-java)。 - ~~`macos/Sources/LitheExecutionModule/Services/LanguageTestService.swift`~~(已随 #1794 移除) -- `shared/fixtures/build-provider/test-results-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/build-provider/test-results-v1.json` diff --git a/.agents/notes/implemented/architecture/2026-09-26-maven-dependency-tree-output-file.md b/.agents/notes/implemented/architecture/2026-09-26-maven-dependency-tree-output-file.md index 88a9876e69..9ab582d3d4 100644 --- a/.agents/notes/implemented/architecture/2026-09-26-maven-dependency-tree-output-file.md +++ b/.agents/notes/implemented/architecture/2026-09-26-maven-dependency-tree-output-file.md @@ -145,8 +145,8 @@ m2e 内嵌的 Maven,而不是用户配置的 Maven 或 mvnd,违反“依赖 - 已迁出:原 `rust/lithe-core/src/project/maven_dependency_tree.rs`。Maven 专属逻辑已从 Core 与宿主移入 Maven 插件([lithe-plugin-maven](https://github.com/Lithe-IDEA/lithe-plugin-maven))(#1495)。 - 已迁出:原 `rust/lithe-core/src/project/maven.rs`。Maven 专属逻辑已从 Core 与宿主移入 Maven 插件([lithe-plugin-maven](https://github.com/Lithe-IDEA/lithe-plugin-maven))(#1495)。 -- `shared/contracts/rust-core-api.md` -- `shared/fixtures/maven/dependency-tree-v2.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/65cf82343c5e315aae2e335b2e8f0217b703e89a/rust/fixtures/maven/dependency-tree-v2.json` - ~~`windows/tauri/src-tauri/src/maven.rs`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/maven/`~~(已随 #1794 移除) - ~~`macos/Sources/LitheExecutionModule/Services/BuildSystemService.swift`~~(已随 #1794 移除) diff --git a/.agents/notes/implemented/architecture/2026-09-30-ide-capabilities-and-local-mcp.md b/.agents/notes/implemented/architecture/2026-09-30-ide-capabilities-and-local-mcp.md index 8a77627d7d..3e0c0c5f8a 100644 --- a/.agents/notes/implemented/architecture/2026-09-30-ide-capabilities-and-local-mcp.md +++ b/.agents/notes/implemented/architecture/2026-09-30-ide-capabilities-and-local-mcp.md @@ -194,7 +194,7 @@ Agent 的查询先执行只读目录检测,返回已准入清单、Core 校验 ## 适用范围 - Lithe-core-rust 锁定修订:[rust/lithe-ide-host/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-ide-host) -- `shared/contracts/ide-api/v1.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/ide-api/v1.md` - ~~`macos/Sources/Lithe/Application/Features/IdeCapabilitiesFeatureModel.swift`~~(已随 #1794 移除) - ~~`macos/Sources/LitheModuleAPI/Plugins/IDECapabilities.swift`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/host-api/`~~(已随 #1794 移除) diff --git a/.agents/notes/implemented/architecture/2026-10-08-windows-git-status-ownership.md b/.agents/notes/implemented/architecture/2026-10-08-windows-git-status-ownership.md index 897cffd54b..250c2c250c 100644 --- a/.agents/notes/implemented/architecture/2026-10-08-windows-git-status-ownership.md +++ b/.agents/notes/implemented/architecture/2026-10-08-windows-git-status-ownership.md @@ -107,7 +107,7 @@ worktree 列表;macOS 的既有状态读取仍会附带 stash 等查询。合 ## 适用范围 - Lithe-core-rust 锁定修订:[rust/lithe-core/src/git/metadata_watch.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/git/metadata_watch.rs) -- `shared/fixtures/git/metadata-classification-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/git/metadata-classification-v1.json` - `desktop/internal/workbench/git.go` - `desktop/internal/workbench/commit.go` - `desktop/internal/workbench/filetree_watch.go` diff --git a/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md b/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md index 34fc52a789..a02c417604 100644 --- a/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md +++ b/.agents/notes/implemented/architecture/2026-10-12-workbench-ui-contributions.md @@ -62,7 +62,7 @@ Agent 的配置入口由同一个目录补齐,移动到任何已有停靠区 ## 验证 -- `WorkbenchContributionHostTests.chineseActionSearchFindsAndRestoresHiddenTerminal` 使用实际中英资源验证中文标题、中文说明和英文别名,执行后恢复终端入口,切换回英文后不再沿用旧语言;修复前中文查询确认为空。Core 的 `shared/fixtures/search/actions-v1.json` 验证排序、Unicode、插件原文和输入预算。 动作匹配实现位于 `rust/lithe-core/src/action_search/mod.rs`,遵循 Core 根目录仅保留 `lib.rs` 的既有布局规则;模块路径和 `search.actions` 协议不变。 +- `WorkbenchContributionHostTests.chineseActionSearchFindsAndRestoresHiddenTerminal` 使用实际中英资源验证中文标题、中文说明和英文别名,执行后恢复终端入口,切换回英文后不再沿用旧语言;修复前中文查询确认为空。Core 的 `Lithe-core-rust/rust/fixtures/search/actions-v1.json` 验证排序、Unicode、插件原文和输入预算。 动作匹配实现位于 `rust/lithe-core/src/action_search/mod.rs`,遵循 Core 根目录仅保留 `lib.rs` 的既有布局规则;模块路径和 `search.actions` 协议不变。 - `WorkbenchContributionHostTests.toolWindowsMenuRestoresHiddenTerminalAtItsSavedDockWithoutToggling` 覆盖隐藏入口恢复、原停靠组、重复 Show 不关闭、模块禁用及旧菜单动作;已安装声明式插件流程补充从同一菜单恢复。`ContextMenuCoverageTests.rightClickOnSubmenuKeepsThePopupAndShowRemainsKeyboardAccessible` 用原生右键事件验证父弹层保持可见,再用方向键和 Return 执行显示;模型回归确认菜单构造不激活模块或创建终端会话。实际产品还需在深浅主题检查左侧“…”、菜单打开/关闭、快捷键与终端已有会话。 diff --git a/.agents/notes/implemented/architecture/2026-10-16-windows-project-commit-panel-parity.md b/.agents/notes/implemented/architecture/2026-10-16-windows-project-commit-panel-parity.md index 18d96207ac..2e7bb1654d 100644 --- a/.agents/notes/implemented/architecture/2026-10-16-windows-project-commit-panel-parity.md +++ b/.agents/notes/implemented/architecture/2026-10-16-windows-project-commit-panel-parity.md @@ -79,4 +79,4 @@ Shelf 存储在平台 `app_data_dir()/git-shelves/<规范化根路径哈希>`, - ~~`windows/tauri/src-tauri/src/shelf_storage.rs`~~(已随 #1794 移除) - ~~`windows/tauri/src-tauri/src/file_publication.rs`~~(已随 #1794 移除) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/git/patch_exchange.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/git/patch_exchange.rs) -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` diff --git a/.agents/notes/implemented/architecture/2026-10-17-build-system-plugin-contract.md b/.agents/notes/implemented/architecture/2026-10-17-build-system-plugin-contract.md index 9c6ec6785d..4b65a00409 100644 --- a/.agents/notes/implemented/architecture/2026-10-17-build-system-plugin-contract.md +++ b/.agents/notes/implemented/architecture/2026-10-17-build-system-plugin-contract.md @@ -76,7 +76,7 @@ Rust Core 负责校验声明、识别工程、展开每一条命令行,并把 | Rust Core | 校验声明;识别实例;读取静态模型;展开模板得到 argv 计划;解码模型、测试、诊断和依赖输出;计算指纹 | 启动进程;写文件;保存用户选择 | | 宿主 | 选定可执行文件并探测版本;启动进程并负责取消、期限和输出上限;分配输出文件;监听文件;保存选项;信任确认 | 生态知识;拼 argv;按构建系统名写分支 | -宿主通过 13 个命令使用 Core,请求和结果形状见 `shared/contracts/rust-core-api.md` 的 “Build systems” 一节: +宿主通过 13 个命令使用 Core,请求和结果形状见 `Lithe-core-rust/rust/contracts/rust-core-api.md` 的 “Build systems” 一节: | 用途 | 命令 | | --- | --- | @@ -396,7 +396,7 @@ macOS 接入规则(2026-10-18): - Lithe-core-rust 锁定修订:[rust/lithe-core/src/runtime/dispatcher.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/runtime/dispatcher.rs) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/tests/build_systems.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/tests/build_systems.rs) - `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/` -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` - ~~scripts/architecture/verify-shared-contracts.sh~~(脚本已随旧客户端移除) diff --git a/.agents/notes/implemented/architecture/2026-10-20-modular-application-logging.md b/.agents/notes/implemented/architecture/2026-10-20-modular-application-logging.md index c02fb92e3b..d4d449964b 100644 --- a/.agents/notes/implemented/architecture/2026-10-20-modular-application-logging.md +++ b/.agents/notes/implemented/architecture/2026-10-20-modular-application-logging.md @@ -66,7 +66,7 @@ macOS 已删除这个设置页,改用独立日志窗口,见[结构化日志 清理影响有效目录中所有模块和会话的托管文件,不受查看筛选限制;确认文案必须 明确这点。目录切换成功后才保存 macOS 偏好,切换与清理后刷新时间线。失败保持 可重试状态,不让过期结果覆盖新筛选条件,也不让按钮一直停留在忙碌状态。 -共享界面验收数据见 `shared/fixtures/diagnostics/logging-ui-v1.json`。 +共享界面验收数据见 `Lithe-core-rust/rust/fixtures/diagnostics/logging-ui-v1.json`。 ### 先脱敏,再序列化 @@ -142,8 +142,8 @@ Windows 预览只保存已经脱敏的内存快照,最多四份、五分钟有 ## 适用范围 - Lithe-core-rust 锁定修订:[rust/lithe-core/src/diagnostics/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/diagnostics) -- `shared/contracts/rust-core-api.md` -- `shared/fixtures/diagnostics/logging-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/diagnostics/logging-v1.json` - `desktop/internal/logstore/` - `desktop/internal/logwindow/` - `desktop/internal/core/logging.go` diff --git a/.agents/notes/implemented/architecture/2026-10-20-plugin-function-contract.md b/.agents/notes/implemented/architecture/2026-10-20-plugin-function-contract.md index bdf27e93b6..9294a82ead 100644 --- a/.agents/notes/implemented/architecture/2026-10-20-plugin-function-contract.md +++ b/.agents/notes/implemented/architecture/2026-10-20-plugin-function-contract.md @@ -202,5 +202,5 @@ Maven 插件窗口的“刷新快照”按钮 - Lithe-core-rust 锁定修订:[rust/lithe-core/src/runtime/dispatcher.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/runtime/dispatcher.rs) - `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/README.md` - `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/fixtures/backend/function-protocol.json` -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` - ~~scripts/architecture/verify-shared-contracts.sh~~(脚本已随旧客户端移除) diff --git a/.agents/notes/implemented/architecture/2026-10-23-shared-i18n-generation.md b/.agents/notes/implemented/architecture/2026-10-23-shared-i18n-generation.md index 4400769ad0..09b4c4367d 100644 --- a/.agents/notes/implemented/architecture/2026-10-23-shared-i18n-generation.md +++ b/.agents/notes/implemented/architecture/2026-10-23-shared-i18n-generation.md @@ -91,7 +91,7 @@ Viva 使用同一共享词条生成 Go 字典。`verify-app-language-localizatio - ~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除)、~~./scripts/windows/verify/verify-windows-boundaries.sh~~(随旧客户端移除) 和 `./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh`:共享边界与能力记录。 -生成器测试与原生测试共同消费 `shared/fixtures/i18n/format-v1.json` 和 `native-abi-v1.json`,覆盖32位有符号、64位无符号参数及参数重排、重复、 +生成器测试与原生测试共同消费 `shared/i18n/fixtures/format-v1.json` 和 `native-abi-v1.json`,覆盖32位有符号、64位无符号参数及参数重排、重复、 大整数、零、Unicode 和用户值中的格式符。独立 CI 在 Linux、macOS、Windows 执行生成器 测试并输出单项计时;Draft PR 只运行 Linux,转为 ready 后再触发三系统校验, 同一 PR 的旧 i18n 校验会取消。macOS 才运行原生打包用例。完整产品在中英文设置中切换、关闭重开并 @@ -104,7 +104,7 @@ Node 22 会把命令行超时同时应用到整份文件。词条增加后,mac ## 适用范围 - `shared/i18n/` -- `shared/fixtures/i18n/format-v1.json` +- `shared/i18n/fixtures/format-v1.json` - `scripts/i18n/generate-i18n.mjs` - `scripts/i18n/verify-app-language-localization.mjs` - `scripts/i18n/test-i18n.mjs` diff --git a/.agents/notes/implemented/architecture/2026-10-26-build-provider-task-execution.md b/.agents/notes/implemented/architecture/2026-10-26-build-provider-task-execution.md index 23c5b8e6a0..eab0dababe 100644 --- a/.agents/notes/implemented/architecture/2026-10-26-build-provider-task-execution.md +++ b/.agents/notes/implemented/architecture/2026-10-26-build-provider-task-execution.md @@ -583,9 +583,9 @@ SDK 端到端直接测试 Core 当前工作树,不生成源码快照。构建 - `desktop/internal/workbench/` - `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/` - `shared/platform-feature-matrix/features/build-system-plugins.json` -- `shared/contracts/run-configuration-v2.schema.json` -- `shared/fixtures/run-configuration/build-provider.json` -- `shared/fixtures/debug/adapter-selection-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/run-configuration-v2.schema.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/run-configuration/build-provider.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/debug/adapter-selection-v1.json` - [旧客户端执行链与原适用范围(历史版本)](https://github.com/1lck/Lithe-IDEA/blob/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/.agents/notes/implemented/architecture/2026-10-26-build-provider-task-execution.md) diff --git a/.agents/notes/implemented/architecture/2026-10-27-debug-tcp-transport-lifecycle.md b/.agents/notes/implemented/architecture/2026-10-27-debug-tcp-transport-lifecycle.md index e212e73513..2f79b453b6 100644 --- a/.agents/notes/implemented/architecture/2026-10-27-debug-tcp-transport-lifecycle.md +++ b/.agents/notes/implemented/architecture/2026-10-27-debug-tcp-transport-lifecycle.md @@ -56,7 +56,7 @@ macOS 的普通 TCP 调试连接现在共用一个传输实现:语言服务器 - `./.agents/skills/write-stable-tests/scripts/verify-test-stability.sh`。 - `./.agents/skills/write-stable-tests/scripts/test-stability-macos.sh -- --filter 'TCPDebugAdapterTests|PluginDebugAdapterTests|DebugModuleTests'`:覆盖可控时钟、队列预算、取消与晚到回调、确认顺序、会话选路、外部表单初始化成功/失败/超时与按会话取消、桥接故障的立即清理和重新登记后的旧回调隔离;临时回环监听器验证双向字节以及真实 Core 的 initialize/attach 帧往返,监听服务不随客户端停止;真实连接到已释放的回环端口必须在远小于建连期限的时间内以系统原因结束,发现与建连的两段期限由可控时钟分别断言。 - `cargo test --manifest-path rust/Cargo.toml -p lithe-core debug_adapter_endpoint` 和 `cargo test --manifest-path rust/Cargo.toml -p lithe-core dap_endpoint_contract`:共享 fixture 校验及 JSON dispatcher 边界。 -- `cargo test --manifest-path rust/Cargo.toml -p lithe-core transport_lifecycle`:状态机单元测试,并逐步回放 `shared/fixtures/debug/transport-lifecycle-v1.json` 中的场景(启动与取消、过期代次、只结束一次、各段期限、预算超限、单个在途写入、排空)。新平台实现同一份 fixture 即可证明规则一致;`protocol` 测试覆盖 `debug.transport.*` 命令的 JSON 边界。 +- `cargo test --manifest-path rust/Cargo.toml -p lithe-core transport_lifecycle`:状态机单元测试,并逐步回放 `Lithe-core-rust/rust/fixtures/debug/transport-lifecycle-v1.json` 中的场景(启动与取消、过期代次、只结束一次、各段期限、预算超限、单个在途写入、排空)。新平台实现同一份 fixture 即可证明规则一致;`protocol` 测试覆盖 `debug.transport.*` 命令的 JSON 边界。 - ~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除)、`./scripts/desktop/verify/verify-runtime-bundle-immutability.sh`、`./scripts/agent-notes/verify-agent-notes.sh`。 ## 适用范围 @@ -68,6 +68,6 @@ macOS 的普通 TCP 调试连接现在共用一个传输实现:语言服务器 - ~~`macos/Sources/Lithe/Core/Rust/RustDebugTransportCore.swift`~~(已随 #1794 移除) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/debug/endpoint.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/debug/endpoint.rs) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/debug/transport_lifecycle.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/debug/transport_lifecycle.rs) -- `shared/fixtures/debug/adapter-endpoints-v1.json` -- `shared/fixtures/debug/transport-lifecycle-v1.json` -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/debug/adapter-endpoints-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/debug/transport-lifecycle-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` diff --git a/.agents/notes/implemented/architecture/2026-10-28-workspace-indexing-exclusions.md b/.agents/notes/implemented/architecture/2026-10-28-workspace-indexing-exclusions.md index 4e10693125..0ba0fceb2a 100644 --- a/.agents/notes/implemented/architecture/2026-10-28-workspace-indexing-exclusions.md +++ b/.agents/notes/implemented/architecture/2026-10-28-workspace-indexing-exclusions.md @@ -425,4 +425,4 @@ macOS 使用最新构建的可执行及 Swift 资源,组装独立 QA bundle, - Lithe-core-rust 锁定修订:[rust/lithe-core/src/project/search_index.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/project/search_index.rs) - ~~`macos/Sources/LitheWorkspaceModule/Application/WorkspaceFeatureModel.swift`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/file-explorer/stores/workspace-indexing.ts`~~(已随 #1794 移除) -- `shared/fixtures/workspace/indexing-policy-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/workspace/indexing-policy-v1.json` diff --git a/.agents/notes/implemented/architecture/2026-11-03-structured-logging-channels.md b/.agents/notes/implemented/architecture/2026-11-03-structured-logging-channels.md index 3186a4ae50..3c512e2508 100644 --- a/.agents/notes/implemented/architecture/2026-11-03-structured-logging-channels.md +++ b/.agents/notes/implemented/architecture/2026-11-03-structured-logging-channels.md @@ -136,7 +136,7 @@ Core 在队列旁保留一个唤醒回调槽位。drain 之后的第一条事实 时间统一为 UTC 毫秒。级别封闭为 DEBUG、INFO、WARN、ERROR。字段顺序为时间、级别、`seq`、`event`、可选的 `op`、`msg`,其余字段按键排序。`seq` 是宿主分配的会话内单调序号,不补零;无状态的编码器无法证明跨批次单调。`op` 是操作关联身份,不是事件字段,也不是路径段。 -编码器和查询复用结构化字段脱敏:先检查完整字段名(包括 `client_secret`、`auth_token` 这类前缀形式),再处理文本。不能把字段拼成字符串后,只依赖文本正则的单词边界。编码器负责转义和 8 KiB 的单行预算,换行只作为转义值出现。超长时先缩短上下文字段,再缩短消息,并标记 `truncated=1`;身份和键的开销仍放不下时返回错误,不能悄悄删键。重复聚合和队列丢弃使用普通的 `log.repeated`、`log.dropped` 事件。精确语法、错误码和边界由 `shared/contracts/rust-core-api.md` 和 `shared/fixtures/diagnostics/logging-v2.json` 持有,本 Note 不另建字段手册。 +编码器和查询复用结构化字段脱敏:先检查完整字段名(包括 `client_secret`、`auth_token` 这类前缀形式),再处理文本。不能把字段拼成字符串后,只依赖文本正则的单词边界。编码器负责转义和 8 KiB 的单行预算,换行只作为转义值出现。超长时先缩短上下文字段,再缩短消息,并标记 `truncated=1`;身份和键的开销仍放不下时返回错误,不能悄悄删键。重复聚合和队列丢弃使用普通的 `log.repeated`、`log.dropped` 事件。精确语法、错误码和边界由 `Lithe-core-rust/rust/contracts/rust-core-api.md` 和 `Lithe-core-rust/rust/fixtures/diagnostics/logging-v2.json` 持有,本 Note 不另建字段手册。 ### 事件目录与生成类型约束接入 @@ -333,8 +333,8 @@ fixture 覆盖往返、转义、非法输入、路径段、轮转与保留、共 - Lithe-core-rust 锁定修订:[rust/lithe-remote/src/failure_log.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-remote/src/failure_log.rs) - ~~`shared/logging/`~~(已随 #1794 移除) - ~~`scripts/logging/`~~(已随 #1794 移除) -- `shared/contracts/rust-core-api.md` -- `shared/fixtures/diagnostics/logging-v2.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/diagnostics/logging-v2.json` - ~~`macos/Sources/LitheModuleAPI/Logging/`~~(已随 #1794 移除) - ~~`macos/Sources/Lithe/Core/Rust/RustCoreBridge.swift`~~(已随 #1794 移除) - ~~`macos/Sources/Lithe/Platform/MacOS/Logging/`~~(已随 #1794 移除) diff --git a/.agents/notes/implemented/architecture/2026-11-03-windows-markdown-core-rendering.md b/.agents/notes/implemented/architecture/2026-11-03-windows-markdown-core-rendering.md index af0668ef50..33cc2aea40 100644 --- a/.agents/notes/implemented/architecture/2026-11-03-windows-markdown-core-rendering.md +++ b/.agents/notes/implemented/architecture/2026-11-03-windows-markdown-core-rendering.md @@ -67,5 +67,5 @@ Windows 的数学公式与图表展示没有因此自动达到 macOS 的能力 - ~~`windows/tauri/src/features/editor/markdown/`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/github/components/github-markdown.tsx`~~(已随 #1794 移除) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/project/markdown.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/project/markdown.rs) -- `shared/fixtures/editor/markdown-render-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/editor/markdown-render-v1.json` - `shared/platform-feature-matrix/features/markdown-rendering.json` diff --git a/.agents/notes/implemented/architecture/2026-11-05-core-rules-wasm-sync-bridge.md b/.agents/notes/implemented/architecture/2026-11-05-core-rules-wasm-sync-bridge.md index ac922db118..103e68572e 100644 --- a/.agents/notes/implemented/architecture/2026-11-05-core-rules-wasm-sync-bridge.md +++ b/.agents/notes/implemented/architecture/2026-11-05-core-rules-wasm-sync-bridge.md @@ -36,7 +36,7 @@ Issue #1662 要求把两端重复的确定性逻辑下沉到 Core。Windows 前 返回新状态和 `removedGroupIds`。macOS 把 `items`、`placements`、`groupSelections` 转成规范状态(MRU、固定、预览传空值), Windows 把每个 `PaneGroup` 转成规范组,两端旧规则已删除;布局树、拆分方向和比例仍在各自平台,只按 `removedGroupIds` 修剪。 两端在“选中项离开分组”时的既有行为不同(macOS 回落到第一个标签,Windows 选中相邻标签),用请求里的 `selectionFallback` - (`first` / `adjacent`)保留,不改用户可见行为。fixture 为 `shared/fixtures/editor/workbench-state-v1.json`。 + (`first` / `adjacent`)保留,不改用户可见行为。fixture 为 `Lithe-core-rust/rust/fixtures/editor/workbench-state-v1.json`。 - **WS-04 隐藏路径规则**(已迁移规则):内置默认列表、glob 匹配和“目录名/文件”的区别只在 `rust/lithe-core-rules/src/visibility.rs`。Core 的 `files.rs` 直接复用这份代码,不再有第二份;macOS 经 `workspace.classifyVisibility`(按一批路径一次调用)和 `workspace.visibilityDefaults` 同步 FFI 调用,Windows 同样经 wasm。 @@ -45,7 +45,7 @@ Issue #1662 要求把两端重复的确定性逻辑下沉到 Core。Windows 前 用户只保存自己的条目,内置规则由 Core 补上;`!` 条目关闭内置规则。结果里的 `watchedDespiteHiding` 表示 `.lithe` 配置目录“树里隐藏、事件仍要监听”。Windows 文件树按目录批量分类,结果按“目录 + 规则版本”缓存。 `workspace.classifyVisibility` 和 `workspace.visibilityDefaults` 不进请求追踪。 - 共享 fixture:`shared/fixtures/workspace/visibility-v1.json`。 + 共享 fixture:`Lithe-core-rust/rust/fixtures/workspace/visibility-v1.json`。 ## 边界 @@ -85,7 +85,7 @@ Issue #1662 要求把两端重复的确定性逻辑下沉到 Core。Windows 前 - `cargo test -p lithe-core-rules` 与 `cargo test -p lithe-core --lib protocol`:同一份 fixture 经 JSON envelope 逐步驱动。 - `cargo build -p lithe-core-rules --target wasm32-unknown-unknown --release` 成功,且产物经 bun 测试真实加载。 - `bun` 测试 `double-shift-recognizer.test.ts` 与 `core-rules.test.ts` 通过 wasm 跑同一份 - `shared/fixtures/keymap/modifier-gesture-v1.json`;macOS `KeymapTerminalCoreFixtureTests` 通过真实 FFI 跑它。 + `Lithe-core-rust/rust/fixtures/keymap/modifier-gesture-v1.json`;macOS `KeymapTerminalCoreFixtureTests` 通过真实 FFI 跑它。 - `bun run build` 产物中包含 `core-rules/lithe_core_rules.wasm`。真实 Windows WebView2 加载需在 Windows 机器上确认。 ## 适用范围 diff --git a/.agents/notes/implemented/architecture/2026-11-08-viva-line-edit-core-bridge.md b/.agents/notes/implemented/architecture/2026-11-08-viva-line-edit-core-bridge.md index 033e01a6af..778654c6e9 100644 --- a/.agents/notes/implemented/architecture/2026-11-08-viva-line-edit-core-bridge.md +++ b/.agents/notes/implemented/architecture/2026-11-08-viva-line-edit-core-bridge.md @@ -35,6 +35,6 @@ Viva 的 Core 适配层可以取得语言的行注释符号,并调用共享的 - `desktop/internal/core/line_edit.go` - `desktop/internal/core/line_edit_test.go` -- `shared/fixtures/editor/line-edit-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/editor/line-edit-v1.json` - `shared/platform-feature-matrix/features/editor-line-operations.json` - [固定 Core 的行变换实现](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/editor/line_edit.rs) diff --git a/.agents/notes/implemented/architecture/2026-11-08-viva-plugin-backend-bridge.md b/.agents/notes/implemented/architecture/2026-11-08-viva-plugin-backend-bridge.md index 7ac12ef718..6e0d3fe677 100644 --- a/.agents/notes/implemented/architecture/2026-11-08-viva-plugin-backend-bridge.md +++ b/.agents/notes/implemented/architecture/2026-11-08-viva-plugin-backend-bridge.md @@ -44,4 +44,4 @@ Core 校验后的语言、原始语法与配置,不读取插件文件、认证 - `desktop/internal/core/plugin_session.go` - `desktop/internal/core/plugin_session_test.go` -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` diff --git a/.agents/notes/implemented/architecture/2026-11-08-viva-repository-ownership-and-sharing-boundaries.md b/.agents/notes/implemented/architecture/2026-11-08-viva-repository-ownership-and-sharing-boundaries.md index 022ea37c99..7891b74676 100644 --- a/.agents/notes/implemented/architecture/2026-11-08-viva-repository-ownership-and-sharing-boundaries.md +++ b/.agents/notes/implemented/architecture/2026-11-08-viva-repository-ownership-and-sharing-boundaries.md @@ -13,7 +13,7 @@ Viva 桌面客户端使用同一套 Go 界面代码适配 macOS、Windows 和 Li ## 决策 - `desktop/` 持有 Viva 界面、桌面组合和平台适配器;`desktop/internal/core/` 是调用 Core 的类型化桥接。具体功能的完成度以 `shared/platform-feature-matrix/` 和实际验证为准。 -- Rust Core 位于 [Lithe-core-rust](https://github.com/Lithe-IDEA/Lithe-core-rust),桌面构建脚本固定源码修订并链接其 C ABI。Core 命令的共享契约和夹具位于 `shared/`。插件源码和插件市场由对应的 Lithe-IDEA 组织仓库持有,不因为客户端重构而在本仓库重新维护一份。 +- Rust Core 位于 [Lithe-core-rust](https://github.com/Lithe-IDEA/Lithe-core-rust),桌面构建脚本固定源码修订并链接其 C ABI。Core 命令的契约和 fixture 只在 Core 仓库的 `rust/contracts/` 与 `rust/fixtures/` 维护,本仓库不留副本,桌面测试读取所链接的 Core 检出,见 [应用契约与 fixture 只在 Rust Core](2026-11-14-core-app-contracts-single-source.md)。插件源码和插件市场由对应的 Lithe-IDEA 组织仓库持有,不因为客户端重构而在本仓库重新维护一份。 - 调用操作系统、Viva 或文件监听 API 的代码留在平台适配器;视图可以持有焦点、悬停、滚动偏移等短暂呈现状态。其余可共享规则,包括解析、过滤、排序、树和列表投影、选择规则及业务状态转换,放在 Rust Core。具体判断和 Rust Core 注释要求以 `develop-lithe` Skill 为准。 - 欢迎页最近项目菜单捕获项目路径而非列表位置;移除只调用 Core 的最近项目归约并保存结果,不删除用户目录。保存成功后才替换显示的列表;保存失败时保留旧列表并报告错误。定位文件夹由平台接口执行。菜单的悬停、键盘焦点、Tab 循环和 Esc 后的焦点恢复属于短暂界面状态,不能用它们重建最近项目的排序或持久化规则。 - 欢迎页显示分支时,平台在后台读取最多 4 KiB 的 `.git` 指针和 `HEAD`,由 Core 解释分支与 worktree 指针;非 Git 目录不显示分支。只允许一个读取任务,最近列表变化时取消旧任务并丢弃旧结果,避免退出或移除项目后出现过期分支。普通文件适配器拒绝最终符号链接、设备和超限文件;文件系统调用本身仍可能被底层网络挂载延迟,不能声称它拥有硬实时退出保证。工作台项目切换菜单目前仍通过完整 Git 状态获取分支,跟踪 [#1808](https://github.com/1lck/Lithe-IDEA/issues/1808)。 @@ -55,7 +55,7 @@ Viva 桌面客户端使用同一套 Go 界面代码适配 macOS、Windows 和 Li - `desktop/internal/workbench/` - `desktop/internal/core/` -- `shared/contracts/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/contracts/` - `shared/platform-feature-matrix/` - `scripts/desktop/` - [Lithe-core-rust 固定修订](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust) diff --git a/.agents/notes/implemented/architecture/2026-11-09-viva-plugin-build-run.md b/.agents/notes/implemented/architecture/2026-11-09-viva-plugin-build-run.md index f95578c876..2530eb2899 100644 --- a/.agents/notes/implemented/architecture/2026-11-09-viva-plugin-build-run.md +++ b/.agents/notes/implemented/architecture/2026-11-09-viva-plugin-build-run.md @@ -80,4 +80,4 @@ Windows 没有运行本切片;真实执行证据是 macOS 上用未修改的 - `desktop/internal/plugininstall/` - `desktop/internal/workbench/official_cargo_test.go` -共享协议和 Rust Core 的构建模型仍以 `shared/contracts/` 和固定 Core 修订为准;本笔记不定义新的插件协议。 +共享协议和 Rust Core 的构建模型仍以 `Lithe-core-rust/rust/contracts/` 和固定 Core 修订为准;本笔记不定义新的插件协议。 diff --git a/.agents/notes/implemented/architecture/2026-11-09-viva-plugin-preference-native-storage.md b/.agents/notes/implemented/architecture/2026-11-09-viva-plugin-preference-native-storage.md index 2a8fcbf37e..d84f2c62d3 100644 --- a/.agents/notes/implemented/architecture/2026-11-09-viva-plugin-preference-native-storage.md +++ b/.agents/notes/implemented/architecture/2026-11-09-viva-plugin-preference-native-storage.md @@ -104,7 +104,7 @@ scripts/desktop/desktop-go.sh test -p=1 -count=1 -timeout=90s ./internal/workben scripts/desktop/desktop-go.sh test -p=1 -count=1 -timeout=45s ./internal/pluginservice ./internal/pluginbackend ./internal/core -run 'TestLanguageServerReads|TestSavedProjectSetting|TestLanguageServerStartPreserves|TestPluginWorkspaceConfiguration' ``` -Core 和 C ABI 共享同一份 `shared/fixtures/plugins/settings-documents.json`,覆盖类型、作用范围、整批拒绝、重复键、重置、其他插件保留和原字节不变。macOS 原生测试验证真实 ACL、扩展属性及空属性;Lithe-dev 已验证完整 Windows 安全描述符保持不变。项目显式调试路径用例修复前因忽略真实来源而失败,修复后通过。平台计时与后续完整生效链路以对应运行报告为准。 +Core 和 C ABI 共享同一份 `Lithe-core-rust/rust/fixtures/plugins/settings-documents.json`,覆盖类型、作用范围、整批拒绝、重复键、重置、其他插件保留和原字节不变。macOS 原生测试验证真实 ACL、扩展属性及空属性;Lithe-dev 已验证完整 Windows 安全描述符保持不变。项目显式调试路径用例修复前因忽略真实来源而失败,修复后通过。平台计时与后续完整生效链路以对应运行报告为准。 ## 适用范围 @@ -122,15 +122,15 @@ Core 和 C ABI 共享同一份 `shared/fixtures/plugins/settings-documents.json` - `desktop/internal/workbench/startup.go` - `desktop/cmd/lithe/main.go` - `desktop/internal/pluginservice/backends.go` -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` 本节点的动作入口与证据还包括 `desktop/internal/core/plugin_setting_actions.go`、 `desktop/internal/workbench/settings_plugin_actions.go`、`desktop/internal/settingswindow/plugin_settings_actions_view.go`, 以及对应 `*_test.go`。共享动作和会话选择向量分别为 -`shared/fixtures/plugins/settings-actions.json` 与 `settings-function-provider.json`。 +`Lithe-core-rust/rust/fixtures/plugins/settings-actions.json` 与 `settings-function-provider.json`。 真实 Core/提供方回归覆盖确认不调用、调用复用原进程、取消终态、关闭提供方后不可用,以及显示元数据不能覆盖私有安装版本;后者先失败后修复。macOS 在本地 Core 覆盖模式下,全量消费者 2544 项通过、8 项条件跳过;该源码随后提交为 Core `737e62b`,Core 插件 57 项与会话选择 1 项通过。Windows Lithe-dev 固定该提交、Core 干净且无覆盖的全量消费者通过;完整清单和结果随节点归档。固定提交后的 macOS 复验还遇到脚本入口和测试程序自身停在系统 `_dyld_start`,因此不把这些复验记作通过。原生隔离应用两次启动后窗口读取均返回 `cgWindowNotFound`;没有把这次启动当作按钮流程验收。竞态整包遇到提供方停在系统 `_dyld_start` 的启动失败,保留失败、采样与复验报告,不声称根因已修复。 -动态页面与通知的共享向量为 `shared/fixtures/plugins/settings-surfaces.json`; +动态页面与通知的共享向量为 `Lithe-core-rust/rust/fixtures/plugins/settings-surfaces.json`; 桌面桥接、界面和工作台回归分别在 `desktop/internal/core/settings_surfaces_test.go`、 `desktop/internal/settingswindow/settings_surfaces_test.go` 和 `desktop/internal/workbench/settings_publication_test.go`。 diff --git a/.agents/notes/implemented/architecture/2026-11-09-viva-toolchain-settings-and-build-resolution.md b/.agents/notes/implemented/architecture/2026-11-09-viva-toolchain-settings-and-build-resolution.md index 691748ff0a..0f5776654f 100644 --- a/.agents/notes/implemented/architecture/2026-11-09-viva-toolchain-settings-and-build-resolution.md +++ b/.agents/notes/implemented/architecture/2026-11-09-viva-toolchain-settings-and-build-resolution.md @@ -79,7 +79,7 @@ node scripts/i18n/generate-i18n.mjs --check ./scripts/agent-notes/verify-agent-notes.sh ``` -`desktop/internal/toolchain/toolchain_test.go` 用真实 Core 和两个语义不同的虚构工具验证声明式发现、版本探测、生效环境、项目/子目录 pin、争用、保存冲突、未知顶层字段拒绝、页面批量保存;另外用可控 kernel 阻塞校验后取消,断言 `local.json` 与 `.gitignore` 字节均不变、无临时文件,并覆盖 ignore 写失败时文档不变。新增可控 kernel 在 Core 编辑期间写入外部修改,回归先失败、补齐二次基线检查后通过;Core 与 Go 桥接共同消费 `shared/fixtures/toolchain-pin-edit.json`。`settingswindow/toolchains_view_test.go` 验证草稿、显式保存和取消不写;`workbench/toolchains_test.go` 验证 Build 使用解析结果并在工具链不可用时按 Core 顺序回退。这些是组件与真实 Core 证据;Windows 相关组件也已在 Lithe-dev 逐项计时通过,不代替完整 GUI 或发行包验收。 +`desktop/internal/toolchain/toolchain_test.go` 用真实 Core 和两个语义不同的虚构工具验证声明式发现、版本探测、生效环境、项目/子目录 pin、争用、保存冲突、未知顶层字段拒绝、页面批量保存;另外用可控 kernel 阻塞校验后取消,断言 `local.json` 与 `.gitignore` 字节均不变、无临时文件,并覆盖 ignore 写失败时文档不变。新增可控 kernel 在 Core 编辑期间写入外部修改,回归先失败、补齐二次基线检查后通过;Core 与 Go 桥接共同消费 `Lithe-core-rust/rust/fixtures/toolchain-pin-edit.json`。`settingswindow/toolchains_view_test.go` 验证草稿、显式保存和取消不写;`workbench/toolchains_test.go` 验证 Build 使用解析结果并在工具链不可用时按 Core 顺序回退。这些是组件与真实 Core 证据;Windows 相关组件也已在 Lithe-dev 逐项计时通过,不代替完整 GUI 或发行包验收。 `settings_toolchains_test.go` 的三个行为回归在修复前失败:切换项目写入错误来源、关闭项目误报成功、保存中切换后的回读来源错误;修复后与设置页冲突草稿保留用例通过逐项计时。 @@ -92,4 +92,4 @@ node scripts/i18n/generate-i18n.mjs --check - `desktop/internal/pluginservice/toolchains.go` - `shared/platform-feature-matrix/features/plugin-injected-toolchains.json` -原生存储回归位于 `toolchain/storage_test.go` 与 `configfile/configfile_test.go`:先复现外部链接写入和空重置创建状态,再验证有界读取、重复键/未知字段的 dormant 来源拒绝、后续否定规则、权限保留、私有基线与原生根身份。`core/toolchain_sources_test.go` 与 Core 同用 `shared/fixtures/toolchain-pin-storage.json`;设置页另外先复现保存后回读失败仍可重试,再验证草稿保留和强制 Reload。组件证据不等于原生 GUI 或发行包验收。 +原生存储回归位于 `toolchain/storage_test.go` 与 `configfile/configfile_test.go`:先复现外部链接写入和空重置创建状态,再验证有界读取、重复键/未知字段的 dormant 来源拒绝、后续否定规则、权限保留、私有基线与原生根身份。`core/toolchain_sources_test.go` 与 Core 同用 `Lithe-core-rust/rust/fixtures/toolchain-pin-storage.json`;设置页另外先复现保存后回读失败仍可重试,再验证草稿保留和强制 Reload。组件证据不等于原生 GUI 或发行包验收。 diff --git a/.agents/notes/implemented/architecture/2026-11-14-core-app-contracts-single-source.md b/.agents/notes/implemented/architecture/2026-11-14-core-app-contracts-single-source.md new file mode 100644 index 0000000000..a80b055b23 --- /dev/null +++ b/.agents/notes/implemented/architecture/2026-11-14-core-app-contracts-single-source.md @@ -0,0 +1,94 @@ +# Agent 笔记:应用契约与 fixture 只在 Rust Core + +状态:已实现 + +## 先说结论 + +Core 命令的契约文档、schema 和 fixture 只有一份,放在 Lithe-core-rust 仓库的 `rust/contracts/` 与 `rust/fixtures/`。本仓库删除了 `shared/contracts/` 和 `shared/fixtures/` 两个目录,`shared/` 下只剩 `i18n/` 和 `platform-feature-matrix/`。插件契约早已按同样的方式只放在 Core,见 [插件契约与开发资料只在 Rust Core](2026-11-11-plugin-contract-single-source-in-core.md)。 + +对日常开发的直接影响: + +- 新增或修改 Core 命令的契约和 fixture,只在 Core 的 PR 里改,和命令代码一起合入。本仓库没有要同步的副本。 +- 桌面测试用 `contractfixture.CoreFixture("<相对 rust/fixtures 的路径>")` 读取 fixture。目录由 `scripts/desktop/desktop-go.sh` 导出的 `LITHE_CORE_FIXTURE_DIR` 给出,和本次链接的 Core 是同一份检出。直接运行 `go test` 会因为没有这个变量而报错,这是有意的。 +- Core 改了 fixture 以后,把 `scripts/desktop/build-desktop-core.sh` 的 `PINNED_CORE_REVISION` 升到包含该改动的 commit,桌面测试就会读到新版本。本地联调时用 `LITHE_CORE_RUST_DIR` 指向自己的 Core 检出。 +- i18n 生成器的格式样例(`format-v1.json`、`native-abi-v1.json`)只给本仓库的 `scripts/i18n/test-i18n.mjs` 使用,Core 不读取它们,所以移到了 `shared/i18n/fixtures/`。 + +## 问题 + +Rust Core 拆成独立仓库后,应用契约和 fixture 在两个仓库各有一份: + +1. Core 的 `rust/contracts/`、`rust/fixtures/`,由执行契约的 Core 代码和它的测试读取。 +2. 本仓库的 `shared/contracts/`、`shared/fixtures/`,由桌面端 Go 测试按 `../../../shared/fixtures/...` 这样的相对路径读取。 + +两份之间没有同步机制,已经分叉(#1853): + +- Lithe-core-rust#19 把契约迁进 Core 时,`rust-core-api.md` 少了命令总表和 AI configuration 章节,本仓库的副本里还在。 +- Lithe-core-rust#18、#19、#23 删除 Agent、MCP 和 Java/Maven/JDT 专属命令时,Core 删掉了对应的 fixture,本仓库还留着 `shared/fixtures/agent/`、`shared/fixtures/lsp/java-*.json`、`shared/fixtures/maven/`、`shared/fixtures/phpunit-project` 等没有读者的副本。 +- 桌面测试读本仓库的副本,链接的却是 Core 的代码。fixture 和代码可能来自不同的时间点,测试仍然会通过,验证不到真实的契约。 + +## 决策 + +### 1. Core 的 `rust/contracts/` 和 `rust/fixtures/` 是唯一来源 + +| 内容 | 位置 | +| --- | --- | +| Core 命令契约、接口说明和 schema | Lithe-core-rust 的 `rust/contracts/` | +| Core 命令 fixture | Lithe-core-rust 的 `rust/fixtures/` | +| 插件契约、插件开发资料和 SDK | Lithe-core-rust 的 `shared/plugins/` | +| i18n 生成器格式样例 | 本仓库的 `shared/i18n/fixtures/` | +| 跨平台功能矩阵 | 本仓库的 `shared/platform-feature-matrix/` | + +删除副本之前,Lithe-core-rust#24 先补齐了 Core 一侧:补回命令总表和 AI configuration 章节,并新增测试 `api_command_table_lists_exactly_the_parsed_commands`,命令表和 `CoreCommand::parse` 不一致时直接失败。 + +### 2. 桌面测试读所链接的 Core 检出 + +`scripts/desktop/desktop-go.sh` 从同一份 Core 检出导出两个目录:设置了 `LITHE_CORE_RUST_DIR` 时用该目录,否则用 `build-desktop-core.sh` 按 `PINNED_CORE_REVISION` 克隆的检出。 + +| 变量 | 目录 | 读取接口 | +| --- | --- | --- | +| `LITHE_PLUGIN_CONTRACT_DIR` | `shared/plugins/contract/v1` | `contractfixture.Path` | +| `LITHE_CORE_FIXTURE_DIR` | `rust/fixtures` | `contractfixture.CoreFixture` | + +变量没有设置时两个接口都 panic,避免测试什么都没读到却照样通过。这样测试读到的 fixture 和链接进来的 Core 代码一定来自同一个 commit。 + +### 3. 文档和功能矩阵的引用方式 + +- Agent Note 的 `## 适用范围` 和 Markdown 链接使用 Core 的绝对 URL,例如 `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md`;正文写成 `Lithe-core-rust/rust/contracts/rust-core-api.md`。 +- 已经从 Core 删除的文件,适用范围和链接固定到删除前的 Core commit,正文保留原路径作为历史记录。Java/Maven/JDT 相关 Note 的归档由 #1787 跟踪。 +- 功能矩阵的当前证据必须是本仓库里存在的路径,所以删除了指向 `shared/contracts`、`shared/fixtures` 的证据条目;需要说明 Core 一侧的验证时,写进 `verification` 文字。`legacy` 证据固定在旧修订,保持原样。 + +### 4. 副本不再进入 git + +`.gitignore` 忽略 `/shared/*`,只放行 `shared/i18n/` 和 `shared/platform-feature-matrix/`。从旧分支切过来时留在磁盘上的 `shared/contracts/`、`shared/fixtures/` 不会出现在 `git status` 里,也不会被误提交。 + +## 考虑过的备选方案 + +- **保留本仓库的副本,加一致性检查。** 不需要 Core 检出就能跑测试,但仍然是两份真源。每次改契约都要在两个仓库各提一个 PR,检查只能在事后发现不一致。被否。 +- **以本仓库为真源,让 Core 读本仓库。** 执行契约的代码在 Core,Core 的测试会依赖另一个仓库的检出,方向与插件契约的决策相反。被否。 +- **只把桌面测试用到的 fixture 复制到 `desktop/` 的测试目录。** 改动看起来小,本质上仍是副本。Core 改了 fixture 而本仓库没跟上时,测试会验证旧契约并且照样通过。被否。 +- **用 git submodule 挂载 Core 的 `rust/`。** 引用的 commit 和 `PINNED_CORE_REVISION` 会变成两处要一起升的版本号。`desktop-go.sh` 本来就会准备 Core 检出,直接复用更简单。被否。 + +## 后果 + +- 桌面测试必须通过 `scripts/desktop/desktop-go.sh` 运行;插件契约测试本来就有这个要求。 +- 升级 `PINNED_CORE_REVISION` 时,桌面测试读到的 fixture 也一起升级。Core fixture 变化导致本仓库测试失败时,在升级固定版本的同一个 PR 里修宿主。 +- 功能矩阵不能再用本地路径把 Core fixture 列为证据。 +- 历史 Note 和迁移文档正文里的 `shared/contracts/...`、`shared/fixtures/...` 路径保留原样,作为当时的记录;新写的引用一律指向 Core。 + +## 验证 + +- `scripts/desktop/desktop-go.sh test ./...` 用链接的 Core 检出里的 fixture 运行桌面测试。 +- `./scripts/agent-notes/verify-agent-notes.sh` 检查 Note 的适用范围和相对链接。 +- `./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh` 和 `node scripts/platform-feature-matrix/test-platform-feature-matrix.mjs` 检查功能矩阵证据。 +- `node --test --test-timeout=60000 scripts/i18n/test-i18n.mjs` 读取 `shared/i18n/fixtures/` 的格式样例。 +- `node --test scripts/resources/test-reuse-worktree-resources.mjs` 检查删除 PHPUnit 夹具后的资源复用清单。 + +## 适用范围 + +- `desktop/internal/contractfixture/contractfixture.go` +- `scripts/desktop/desktop-go.sh` +- `scripts/desktop/build-desktop-core.sh` +- `.gitignore` +- `shared/i18n/fixtures/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/contracts` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/fixtures` diff --git a/.agents/notes/implemented/bug-fix/2026-09-15-external-document-changes-and-guarded-save.md b/.agents/notes/implemented/bug-fix/2026-09-15-external-document-changes-and-guarded-save.md index fe3e39bdac..f8a81c7fad 100644 --- a/.agents/notes/implemented/bug-fix/2026-09-15-external-document-changes-and-guarded-save.md +++ b/.agents/notes/implemented/bug-fix/2026-09-15-external-document-changes-and-guarded-save.md @@ -255,7 +255,7 @@ Windows 是独立前端实现,写入进行中到期的那次延迟自动保存 ## 验证 -共享 fixture 位于 `shared/fixtures/documents/lifecycle-v1.json`。运行 +共享 fixture 位于 `Lithe-core-rust/rust/fixtures/documents/lifecycle-v1.json`。运行 `scripts/desktop/desktop-go.sh test ./internal/documentio ./internal/workbench` 和 `scripts/desktop/verify/verify-runtime-bundle-immutability.sh`。 @@ -273,7 +273,7 @@ Viva 适配器的 `desktop/internal/documentio` 测试已在 Windows Server 2022 以下命令和测试针对迁移前的 Swift、Tauri 和仓内 Rust 源码,保留为历史记录, 不能当作当前 Viva 产品的运行验证。 -共享 fixture 位于 `shared/fixtures/documents/lifecycle-v1.json`。 +共享 fixture 位于 `Lithe-core-rust/rust/fixtures/documents/lifecycle-v1.json`。 运行 ~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除)、~~./scripts/rust-core/verify-rust-core.sh~~(随旧客户端移除)、 `./scripts/architecture/verify-core.sh` 和 ~~./scripts/rust-core/verify-rust-core-comments.sh~~(随旧客户端移除)。 @@ -329,4 +329,4 @@ WindowsRust 范围单独运行 `lithe-project`;只运行宿主不会执行依 - `desktop/internal/workbench/documents.go` - `desktop/internal/workbench/document_observation.go` - `desktop/internal/editorview/view.go` -- `shared/contracts/application-boundary.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/application-boundary.md` diff --git a/.agents/notes/implemented/bug-fix/2026-09-22-run-panel-fingerprint-loading.md b/.agents/notes/implemented/bug-fix/2026-09-22-run-panel-fingerprint-loading.md index 7c83812e29..154b0bfedb 100644 --- a/.agents/notes/implemented/bug-fix/2026-09-22-run-panel-fingerprint-loading.md +++ b/.agents/notes/implemented/bug-fix/2026-09-22-run-panel-fingerprint-loading.md @@ -141,6 +141,6 @@ JDT 就绪后才出现,JDT 不可用时这一项没有提示(其他输入照 - ~~`windows/tauri/src/features/run/stores/run-project-load.test.ts`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/run/api/run-core-api.ts`~~(已随 #1794 移除) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/execution/configuration.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/execution/configuration.rs) -- `shared/contracts/run-configuration-v2.schema.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/run-configuration-v2.schema.json` - ~~`macos/Sources/LitheExecutionModule/Services/RunService.swift`~~(已随 #1794 移除) - 已迁出:原 `macos/Sources/Lithe/Models/AppModel/AppModel+JavaEntrypoints.swift`。宿主侧 Java 专属代码已删除(#1495);运行、调试、入口标记与工具链改走通用插件 API(`run/start`、`debug/start`、`editor/registerActions`、`toolDefinitions`),实现见 [lithe-plugin-java](https://github.com/Lithe-IDEA/lithe-plugin-java)。 diff --git a/.agents/notes/implemented/bug-fix/2026-09-24-jdtls-project-metadata-outside-workspace.md b/.agents/notes/implemented/bug-fix/2026-09-24-jdtls-project-metadata-outside-workspace.md index 40329e3ebd..687177af7a 100644 --- a/.agents/notes/implemented/bug-fix/2026-09-24-jdtls-project-metadata-outside-workspace.md +++ b/.agents/notes/implemented/bug-fix/2026-09-24-jdtls-project-metadata-outside-workspace.md @@ -111,5 +111,5 @@ JDT LS 自带一个文件系统插件 `org.eclipse.jdt.ls.filesystem`。它根 - 已迁出:原 `rust/lithe-core/src/lsp/languages/jdt_project_metadata.rs`。Java/JDT LS/Spring 专属逻辑已从 Core 移入 Java 插件后端([lithe-plugin-java](https://github.com/Lithe-IDEA/lithe-plugin-java) 的 `backend/`),Core 只保留通用能力(#1495);Windows 过渡期副本在 `windows/tauri/crates/lithe-legacy-tooling/`。 - Lithe-core-rust 锁定修订:[rust/lithe-core/src/lsp/interface/engine.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/lsp/interface/engine.rs) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/git/mod.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/git/mod.rs) -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` - ~~`macos/Sources/Lithe/Views/App/SettingsView.swift`~~(已随 #1794 移除) diff --git a/.agents/notes/implemented/bug-fix/2026-09-25-runtime-bundle-immutability-and-update-delta.md b/.agents/notes/implemented/bug-fix/2026-09-25-runtime-bundle-immutability-and-update-delta.md index f0eaa8ac9b..7ebec94ea0 100644 --- a/.agents/notes/implemented/bug-fix/2026-09-25-runtime-bundle-immutability-and-update-delta.md +++ b/.agents/notes/implemented/bug-fix/2026-09-25-runtime-bundle-immutability-and-update-delta.md @@ -132,7 +132,7 @@ Equinox(JDT LS 使用的 OSGi 框架,负责加载插件)会往 `-configura - 已迁出:原 `rust/lithe-core/src/lsp/languages/jdt_configuration.rs`。Java/JDT LS/Spring 专属逻辑已从 Core 移入 Java 插件后端([lithe-plugin-java](https://github.com/Lithe-IDEA/lithe-plugin-java) 的 `backend/`),Core 只保留通用能力(#1495);Windows 过渡期副本在 `windows/tauri/crates/lithe-legacy-tooling/`。 - Lithe-core-rust 锁定修订:[rust/lithe-core/src/lsp/interface/engine.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/lsp/interface/engine.rs) - 已迁出:原 `rust/lithe-core/src/lsp/interface/engine_real_jdt_tests.rs`。Java/JDT LS/Spring 专属逻辑已从 Core 移入 Java 插件后端([lithe-plugin-java](https://github.com/Lithe-IDEA/lithe-plugin-java) 的 `backend/`),Core 只保留通用能力(#1495);Windows 过渡期副本在 `windows/tauri/crates/lithe-legacy-tooling/`。 -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` - `scripts/desktop/verify/verify-runtime-bundle-immutability.sh` - ~~`scripts/macos/verify/verify-macos-app-build-safety.sh`~~(已随 #1794 移除) - ~~`scripts/macos/test/test-macos.sh`~~(已随 #1794 移除) diff --git a/.agents/notes/implemented/bug-fix/2026-09-27-windows-git-path-identity.md b/.agents/notes/implemented/bug-fix/2026-09-27-windows-git-path-identity.md index d38d2086dc..3f9d60fd40 100644 --- a/.agents/notes/implemented/bug-fix/2026-09-27-windows-git-path-identity.md +++ b/.agents/notes/implemented/bug-fix/2026-09-27-windows-git-path-identity.md @@ -31,7 +31,7 @@ Issue #627 中,前端先判断绝对路径再替换反斜杠,把原生 UNC ## 验证 -- `shared/fixtures/git/windows-paths.json` 由前端与 Rust 测试共同读取。 +- `Lithe-core-rust/rust/fixtures/git/windows-paths.json` 由前端与 Rust 测试共同读取。 - `git_path_roundtrip` 原生集成测试使用真实 Git 仓库,把发现结果交给实际前端 TypeScript 规范化函数后回传 Core,核对提交、分支、stash 和链接工作树的监听目录。它需要 Git 和 Node.js 22.6+,子进程通过现有 Git Host 设置本地期限并清理进程树。 - Windows CI 39933419913 的超长路径用例在 Node 子进程十秒截止时返回 `Cancelled`,没有产生路径结果不匹配。测试仅将 Windows 的真实 Node/TypeScript 加载期限改为二十秒,Git 夹具命令仍为十秒、Core 请求仍为五秒;SharedRust 与真实 JDT 两个入口为 `git_paths_roundtrip_` 设置单例六十秒上限,容纳多次进程交换,不调整其他测试或总套件期限。超时仍走原生进程树清理,并在失败诊断保留进程状态与 stderr;不能通过重试断言、复制前端逻辑或跳过长路径用例来绕开验证。 - 长路径用例先在短路径建立真实仓库,再移入超长目录。Windows CI 已观察到文件系统可访问但创建 Git 进程的工作目录被 `ERROR_DIRECTORY` 拒绝;用例仅接受成功读到原提交,或带原生错误 267 的 `process_start_failed`,不能返回空仓库或访问其他目录。 @@ -49,4 +49,4 @@ Issue #627 中,前端先判断绝对路径再替换反斜杠,把原生 UNC - ~~`windows/tauri/src/features/git/api/git-repo-api.ts`~~(已随 #1794 移除) - 迁移前测试:[rust/lithe-core/tests/git_path_roundtrip.rs](https://github.com/1lck/Lithe-IDEA/blob/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/rust/lithe-core/tests/git_path_roundtrip.rs);当前 Core 修订不含该路径,Viva 的对应验收仍待补齐。 - ~~`windows/tauri/crates/project/src/git_watcher.rs`~~(已随 #1794 移除) -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` diff --git a/.agents/notes/implemented/bug-fix/2026-10-04-git-repository-discovery-and-selection.md b/.agents/notes/implemented/bug-fix/2026-10-04-git-repository-discovery-and-selection.md index 80a67418b5..a3bfb81e0e 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-04-git-repository-discovery-and-selection.md +++ b/.agents/notes/implemented/bug-fix/2026-10-04-git-repository-discovery-and-selection.md @@ -67,5 +67,5 @@ macOS 点击另一仓库的分支时,先刷新目标仓库,再设置目标 - ~~`macos/Sources/LitheGitModule/Application/GitFeatureModel.swift`~~(已随 #1794 移除) - ~~`macos/Sources/Lithe/Views/Git/GitLogView.swift`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/git/api/git-repo-api.ts`~~(已随 #1794 移除) -- `shared/contracts/rust-core-api.md` -- `shared/fixtures/workspace/repository-visibility-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/workspace/repository-visibility-v1.json` diff --git a/.agents/notes/implemented/bug-fix/2026-10-08-remote-checkout-fetched-tip.md b/.agents/notes/implemented/bug-fix/2026-10-08-remote-checkout-fetched-tip.md index 98fa33a286..7e0e915c35 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-08-remote-checkout-fetched-tip.md +++ b/.agents/notes/implemented/bug-fix/2026-10-08-remote-checkout-fetched-tip.md @@ -36,7 +36,7 @@ IntelliJ Community `fb72b4df43aba102479eb0502d20b03586b9c5b8` 的 `GitRemoteBran ## 验证 -- 共享场景 `shared/fixtures/git/remote-checkout-v1.json` 由真实 Git 集成测试驱动,覆盖当前/其他分支、缺失本地分支、工作区/暂存区/未跟踪文件、Force、Smart Checkout、本地独有提交和其他工作树占用。 +- 共享场景 `Lithe-core-rust/rust/fixtures/git/remote-checkout-v1.json` 由真实 Git 集成测试驱动,覆盖当前/其他分支、缺失本地分支、工作区/暂存区/未跟踪文件、Force、Smart Checkout、本地独有提交和其他工作树占用。 - `rust/lithe-core/src/tests/git_remote_checkout.rs` 验证真实 Fetch 后 HEAD、本地引用、跟踪关系与文件内容一致,并验证失败保留引用、文件、暂存区和 stash;另覆盖旧请求格式、普通本地 Checkout 与 Checkout and Rebase。 - ~~`windows/tauri/src/features/git/components/log/git-log-branch-actions.test.tsx`~~(已随 #1794 移除) 使用实际 API 的空成功 `message`,验证本地/远程 Checkout 在中英文下仍显示完整成功文案与所选引用名称,并刷新 Git Log。 - 运行 `.agents/skills/write-stable-tests/scripts/verify-test-stability.ps1` 和共享 Rust 的单测试计时工具;运行 ~~scripts/rust-core/verify-rust-core-comments.sh~~(随旧客户端移除)、`scripts/agent-notes/verify-agent-notes.sh`、`scripts/platform-feature-matrix/verify-platform-feature-matrix.sh`、`scripts/desktop/verify/verify-runtime-bundle-immutability.sh`。 @@ -46,8 +46,8 @@ IntelliJ Community `fb72b4df43aba102479eb0502d20b03586b9c5b8` 的 `GitRemoteBran - Lithe-core-rust 锁定修订:[rust/lithe-core/src/git/mod.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/git/mod.rs) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/tests/git_remote_checkout.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/tests/git_remote_checkout.rs) -- `shared/contracts/rust-core-api.md` -- `shared/fixtures/git/remote-checkout-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/git/remote-checkout-v1.json` - ~~`windows/tauri/src/features/git/api/git-branches-api.ts`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/git/components/log/git-log-tool-window.tsx`~~(已随 #1794 移除) - ~~`macos/Sources/LitheGitModule/Application/GitFeatureModel.swift`~~(已随 #1794 移除) diff --git a/.agents/notes/implemented/bug-fix/2026-10-14-child-processes-end-with-the-ide.md b/.agents/notes/implemented/bug-fix/2026-10-14-child-processes-end-with-the-ide.md index 0ac3e10a93..b68aa1ac90 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-14-child-processes-end-with-the-ide.md +++ b/.agents/notes/implemented/bug-fix/2026-10-14-child-processes-end-with-the-ide.md @@ -117,7 +117,7 @@ Viva 客户端(`desktop/internal/workbench/process_exit.go`)把关闭时要 - Windows CI 39919376382 在关闭窗口和丢弃会话两例中,根进程已退出,但立即读取的 `sysinfo` 快照仍包含后代 PID。测试改为停止前打开后代的只等待句柄,停止后分别在两秒内等待根进程和后代的退出信号;另一窗口的后代用零等待确认仍在运行。依据 [Windows 进程终止语义](https://learn.microsoft.com/en-us/windows/win32/procthread/terminating-a-process),退出进程的对象可以因尚未关闭的句柄而继续存在,进程退出信号才是结束依据。保留原来的窗口隔离、重复关闭和崩溃清理断言,不改产品停止流程。夹具的首字节就绪信号有两秒期限,失败路径和断言展开时也按所属会话清理进程树、等待退出并释放管道和句柄;不依赖任意睡眠或 PID 重查。 - Windows CI 41268131032 暴露了另一处夹具身份缺口:Job 已确认清空,但测试从同父 PID 的无序快照中任取第一个进程,无法证明所等句柄属于夹具启动的 `ping.exe`。现在要求父 PID 与进程名同时匹配且候选唯一;没有或有多个匹配时携带候选 PID、名称报错,不跳过断言。`cmd /D` 禁用用户 AutoRun,首字节仍由 ping 提供;确定性回归覆盖快照顺序、名称大小写、缺失及歧义。停止前持有句柄、窗口隔离、崩溃回收与全部等待期限不变;原日志未记录候选身份,不能据此断言误选了哪一个进程。本机不执行 Windows 测试,三个原生生命周期用例及身份选择回归由 Windows CI 验证。 - `rust/lithe-core/src/lsp/interface/process.rs` 测试(仅 Windows):结束批处理启动的语言服务器时,脚本启动的子进程一起结束。 -- `shared/fixtures/process-lifecycle/exit-plan-v1.json`、`settle-v1.json`:运行服务在退出、关闭项目、直接停止设置和崩溃恢复下的动作;macOS `ProcessLifecycleFixtureTests` 用 Swift 类型解码同一批 fixture,并覆盖提问顺序、取消和规则失败时仍询问。 +- `Lithe-core-rust/rust/fixtures/process-lifecycle/exit-plan-v1.json`、`settle-v1.json`:运行服务在退出、关闭项目、直接停止设置和崩溃恢复下的动作;macOS `ProcessLifecycleFixtureTests` 用 Swift 类型解码同一批 fixture,并覆盖提问顺序、取消和规则失败时仍询问。 - ~~`windows/tauri/src/features/window/services/run-services-exit.test.ts`~~(已随 #1794 移除):询问、取消、停止失败后重试、直接停止、后台任务不询问、Core 不可用时询问。 ## 适用范围 @@ -127,5 +127,5 @@ Viva 客户端(`desktop/internal/workbench/process_exit.go`)把关闭时要 - `shared/platform-feature-matrix/features/run-processes-end-with-ide.json` - Lithe-core-rust 锁定修订:[rust/lithe-git-host/src/lib.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-git-host/src/lib.rs)(`ProcessTree`) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/process/lifecycle.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/process/lifecycle.rs)、[rust/lithe-core/src/lsp/interface/process.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/lsp/interface/process.rs) -- `shared/fixtures/process-lifecycle/`、`shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/fixtures/process-lifecycle/`、`Lithe-core-rust/rust/contracts/rust-core-api.md` - [旧版退出协调、窗口守卫及测试的原适用范围](https://github.com/1lck/Lithe-IDEA/blob/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/.agents/notes/implemented/bug-fix/2026-10-14-child-processes-end-with-the-ide.md) diff --git a/.agents/notes/implemented/bug-fix/2026-10-17-git-push-target-and-upstream-tracking.md b/.agents/notes/implemented/bug-fix/2026-10-17-git-push-target-and-upstream-tracking.md index 43c19a8e6b..f2f68a2f78 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-17-git-push-target-and-upstream-tracking.md +++ b/.agents/notes/implemented/bug-fix/2026-10-17-git-push-target-and-upstream-tracking.md @@ -53,7 +53,7 @@ macOS 的界面(推送弹窗与提交并推送审阅单)已接入,但**尚 - `rust/lithe-core/tests/git_push.rs` 覆盖:新建分支无 upstream、检出远端分支仍建立跟踪、本地起点不产生 upstream、异名未确认被拒、确认 `publish` 与 `upstream` 各自的落点、旧调用方省略 `targetKind` 仍可推送、`targetKind` 给错仍被拒、无 upstream 分支的预览仍列出自身提交;以及按选择预览的目标分支、跟踪 OID 与 `createsRemoteBranch`、确认后 upstream 被改指另一分支时已审阅的推送被判过期、选择与预览不一致被判过期、`--force-with-lease` 作用在所选 upstream 分支及其 OID 上、对非异名分支忽略 `pushTarget`。 - `rust/lithe-core/src/tests/git_workspace_commit.rs` 覆盖:异名分支在提交前被询问且不产生提交、确认值随计划传递并在 `/` 分隔的 upstream 上保持原配置、多仓库逐个提问与确认、重试时恢复并重新校验确认值、upstream 在确认后移动会再次提问。 - ~~`windows/tauri`~~(已随 #1794 移除) 的 `git-push-api.test.ts`、`git-push-target-prompt.test.tsx`、`git-workspace-commit-workflow.test.ts`、`git-commit-panel.test.tsx`、`git-commit-panel-push-target.test.tsx` 覆盖:预览携带 `pushTarget`、普通“提交并推送”直接到达工作流、提问先于审阅与提交、答案累加与取消、逐仓库回答并绑定远端分支。 -- `shared/contracts/rust-core-api.md` 记录 `targetKind`、`createsRemoteBranch`、预览与推送的 `pushTarget`、`pushTargetQuestions` 与 `pushTargets`。 +- `Lithe-core-rust/rust/contracts/rust-core-api.md` 记录 `targetKind`、`createsRemoteBranch`、预览与推送的 `pushTarget`、`pushTargetQuestions` 与 `pushTargets`。 - ~~`macos/Tests/LitheTests/GitPushReviewBridgeTests.swift`~~(已随 #1794 移除) 用真实 Core 和本地裸远端覆盖:异名上游的预览为 `divergent`;选 `publish` 后目的地是同名远端分支并创建它、远端 `main` 不变;选 `upstream` 只更新异名分支;预览之后仓库又有新提交时推送被拒绝并带 Core 的“预览已过期”信息(Core 把拒绝放在 `operationError` 而不是退出码里,原生层必须检查它);“提交并推送”先返回问题、带 `pushTargets` 重新 prepare 后问题消失,逐步执行后只更新所选分支。 - ~~`macos/Tests/LitheTests/GitPushDialogPresentationTests.swift`~~(已随 #1794 移除) 覆盖弹窗状态:异名上游在选择前不可推送、选择绑定到看到的目的地并在目的地变化时作废、推送发出的恰是审阅的预览与选择、被拒绝后重新加载并显示原因、没有新提交的发布分支仍可推送、无内容时不可推送、选中提交会加载其改动文件。 - ~~`macos/Tests/LitheGitModuleTests/GitModuleTests.swift`~~(已随 #1794 移除) 覆盖:预览与审阅后的推送经服务层透传,推送失败显示原因并清除忙碌状态;“提交并推送”在 Core 不要求确认时也先停在审阅单、不执行任何步骤;异名问题阻止继续、答案随请求与后续确认一起发给 Core、问题被再次提出时旧答案作废;`pushTargets` 与 `pushTargetQuestions` 的线格式往返。 diff --git a/.agents/notes/implemented/bug-fix/2026-10-22-project-tree-natural-name-order.md b/.agents/notes/implemented/bug-fix/2026-10-22-project-tree-natural-name-order.md index 428c6d989c..bbab58dff1 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-22-project-tree-natural-name-order.md +++ b/.agents/notes/implemented/bug-fix/2026-10-22-project-tree-natural-name-order.md @@ -26,7 +26,7 @@ IDEA 的项目视图用 `AlphaComparator` 比较同级节点,而它调用的 - Rust Core 在 `rust/lithe-core/src/project/file_name_order.rs` 提供 `FileNameKey`,`visible_children` 在 `ChildOrder::Tree` 下用 `sort_by_cached_key` 排序;每个名字只转换一次,大目录排序不会按比较次数分配内存。 - `visible_children` 必须由调用方说明要哪种顺序(`ChildOrder`):只有 `workspace.listDirectories` 使用 `Tree`;快照(`scan_node`、`collect_snapshot_files`)和搜索索引使用 `Traversal`,仍按小写名字排序。 - Swift 在 `NaturalNameOrder`(`LitheCoreContracts`)里持有算法。兜底扫描用 `sortedAsProjectTreeSiblings`,插入文件用 `compareFileNames`;Git 的分支名排序(`GitGraphHeadOrdering.naturalCompare`,不带 `likeFileNames`)也委托给它,不再保留第二份拷贝。 -- 新增或调整规则时先改 `shared/fixtures/workspace/file-name-order-v1.json`,再让 Rust 和 Swift 测试一起通过。 +- 新增或调整规则时先改 `Lithe-core-rust/rust/fixtures/workspace/file-name-order-v1.json`,再让 Rust 和 Swift 测试一起通过。 ### 树行顺序与遍历顺序分开 @@ -68,7 +68,7 @@ macOS 项目树的主路径是 Rust Core 的目录列表,兜底扫描只在 Co - `desktop/internal/core/workspace.go` - `desktop/internal/core/workspace_tree_test.go` - `desktop/internal/workbench/filetree.go` -- `shared/fixtures/workspace/file-name-order-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/workspace/file-name-order-v1.json` ## 迁移前的实现与验证记录 diff --git a/.agents/notes/implemented/bug-fix/2026-10-30-network-proxy-credential-and-session-ownership.md b/.agents/notes/implemented/bug-fix/2026-10-30-network-proxy-credential-and-session-ownership.md index 0a39526272..5876a0f60b 100644 --- a/.agents/notes/implemented/bug-fix/2026-10-30-network-proxy-credential-and-session-ownership.md +++ b/.agents/notes/implemented/bug-fix/2026-10-30-network-proxy-credential-and-session-ownership.md @@ -46,4 +46,4 @@ macOS 会话缓存与每个请求分别持有一个会话入口。请求租约 - ~~`macos/Sources/Lithe/Views/App/NetworkSettingsView.swift`~~(已随 #1794 移除) - ~~`macos/Sources/Lithe/Platform/MacOS/Updates/MacStableRollback.swift`~~(已随 #1794 移除) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/network/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/network) -- `shared/fixtures/network/proxy-policy-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/network/proxy-policy-v1.json` diff --git a/.agents/notes/implemented/bug-fix/2026-11-01-markdown-html-inline-images.md b/.agents/notes/implemented/bug-fix/2026-11-01-markdown-html-inline-images.md index 89bddd8444..1603526aed 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-01-markdown-html-inline-images.md +++ b/.agents/notes/implemented/bug-fix/2026-11-01-markdown-html-inline-images.md @@ -58,5 +58,5 @@ Issue #1623 中 README 徽章纵向堆叠、标题丢失居中,看起来像是 - Lithe-core-rust 锁定修订:[rust/lithe-core/src/project/markdown.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/project/markdown.rs) - ~~`macos/Sources/Lithe/Resources/MarkdownPreview/preview.css`~~(已随 #1794 移除) - ~~`macos/Tests/LitheTests/MarkdownPreviewHTMLTests.swift`~~(已随 #1794 移除) -- `shared/fixtures/editor/markdown-html-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/editor/markdown-html-v1.json` - `shared/platform-feature-matrix/features/markdown-rendering.json` diff --git a/.agents/notes/implemented/bug-fix/2026-11-03-git-history-author-timezones.md b/.agents/notes/implemented/bug-fix/2026-11-03-git-history-author-timezones.md index 0ac026ebb9..7bd4d63f6c 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-03-git-history-author-timezones.md +++ b/.agents/notes/implemented/bug-fix/2026-11-03-git-history-author-timezones.md @@ -29,7 +29,7 @@ Core 一次处理最多 4,096 条,macOS 在后台分批并丢弃过期结果 ## 验证 -- `rust/lithe-core/src/tests/git.rs` 与 `shared/fixtures/git/history-date-query-v1.json`:东西时区同一瞬间、边界包含/排除、未知偏移回退、夏令时重复小时。 +- `rust/lithe-core/src/tests/git.rs` 与 `Lithe-core-rust/rust/fixtures/git/history-date-query-v1.json`:东西时区同一瞬间、边界包含/排除、未知偏移回退、夏令时重复小时。 - ~~`macos/Tests/LitheTests/GitStatusObservationTests.swift`~~(已随 #1794 移除)、`GitLogDatePresetTests.swift` 与 `GitGraphInteractionTests.swift`:真实 Git 时间、功能模型筛选、23/25 小时日和缓存身份。 - ~~`windows/tauri/src/platform/core-result-adapter.history.test.ts`~~(已随 #1794 移除) 与 `windows/tauri/src/features/git/utils/git-log-date.test.ts`:历史首页、分页及日期显示使用 Core 的绝对时间。 - ~~./scripts/rust-core/verify-rust-core.sh~~(随旧客户端移除)、~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除)、`./scripts/agent-notes/verify-agent-notes.sh` 和 `./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh`;原生工作台与 Windows 系统格式实机验收仍 pending。 @@ -40,4 +40,4 @@ Core 一次处理最多 4,096 条,macOS 在后台分批并丢弃过期结果 - ~~`macos/Sources/LitheGitModule/Application/GitFeatureModel.swift`~~(已随 #1794 移除) - ~~`macos/Sources/Lithe/Views/Git/GitGraphView.swift`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/git/utils/git-log-date.ts`~~(已随 #1794 移除) -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` diff --git a/.agents/notes/implemented/bug-fix/2026-11-03-saved-stash-core-file-sections.md b/.agents/notes/implemented/bug-fix/2026-11-03-saved-stash-core-file-sections.md index 4d81214717..97ea940da7 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-03-saved-stash-core-file-sections.md +++ b/.agents/notes/implemented/bug-fix/2026-11-03-saved-stash-core-file-sections.md @@ -42,4 +42,4 @@ macOS 和 Windows 的 Stash、Shelf 及 Windows 普通 Git 差异使用 Rust Cor - ~~`macos/Sources/Lithe/Core/Rust/RustGitOperations.swift`~~(已随 #1794 移除) - ~~`windows/tauri/src/platform/core-result-adapter.ts`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/git/api/git-shelf-api.ts`~~(已随 #1794 移除) -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` diff --git a/.agents/notes/implemented/bug-fix/2026-11-03-structured-log-evidence-preservation.md b/.agents/notes/implemented/bug-fix/2026-11-03-structured-log-evidence-preservation.md index eed8a6deb7..ad1fdf40fe 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-03-structured-log-evidence-preservation.md +++ b/.agents/notes/implemented/bug-fix/2026-11-03-structured-log-evidence-preservation.md @@ -47,4 +47,4 @@ macOS 切到结构化日志后,不能继续用文件名倒序分配读取预 - Lithe-core-rust 锁定修订:[rust/lithe-core/src/diagnostics/channel.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/diagnostics/channel.rs) - ~~`macos/Sources/Lithe/Platform/MacOS/Logging/MacLogStore.swift`~~(已随 #1794 移除) - ~~`macos/Sources/Lithe/Application/Features/PluginEditorLanguages.swift`~~(已随 #1794 移除) -- `shared/fixtures/diagnostics/logging-v2.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/diagnostics/logging-v2.json` diff --git a/.agents/notes/implemented/bug-fix/2026-11-03-windows-code-action-diagnostic-roundtrip.md b/.agents/notes/implemented/bug-fix/2026-11-03-windows-code-action-diagnostic-roundtrip.md index b0e7a64885..7b3e6f698e 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-03-windows-code-action-diagnostic-roundtrip.md +++ b/.agents/notes/implemented/bug-fix/2026-11-03-windows-code-action-diagnostic-roundtrip.md @@ -39,7 +39,7 @@ Issue #1662 的 LSP-01 / BUG-3 指出 `severity`(诊断等级)从整数变 ## 验证 -- `shared/fixtures/lsp/diagnostic-code-actions-v1.json` 同时供 Rust 与 Windows 回归测试使用,覆盖 1~4 级和空等级、未知标签、关联位置。 +- `Lithe-core-rust/rust/fixtures/lsp/diagnostic-code-actions-v1.json` 同时供 Rust 与 Windows 回归测试使用,覆盖 1~4 级和空等级、未知标签、关联位置。 - ~~`windows/tauri/src/features/editor/lsp/lsp-client-code-actions.test.ts`~~(已随 #1794 移除) 覆盖批次接收、store 与请求数据。 - ~~`windows/tauri/src/platform/lsp-core-adapter.test.ts`~~(已随 #1794 移除) 覆盖 Core 事件与请求边界。 - `rust/lithe-core/src/lsp/tests.rs` 的 `client_diagnostic_code_action_fixture_preserves_core_fields` 验证 Core 反序列化以及协议往返。 diff --git a/.agents/notes/implemented/bug-fix/2026-11-03-windows-core-text-edits.md b/.agents/notes/implemented/bug-fix/2026-11-03-windows-core-text-edits.md index f8a4bdc5e3..966e8b3539 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-03-windows-core-text-edits.md +++ b/.agents/notes/implemented/bug-fix/2026-11-03-windows-core-text-edits.md @@ -54,4 +54,4 @@ UTF-8 字节;自行换算容易在中文、emoji 和 Windows 换行处产生 - ~~`windows/tauri/src/features/editor/lsp/workspace-edit.ts`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/editor/lsp/lsp-client.ts`~~(已随 #1794 移除) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/lsp/lightweight/edits.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/lsp/lightweight/edits.rs) -- `shared/fixtures/lsp/text-edits-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/lsp/text-edits-v1.json` diff --git a/.agents/notes/implemented/bug-fix/2026-11-03-windows-keymap-context-validation.md b/.agents/notes/implemented/bug-fix/2026-11-03-windows-keymap-context-validation.md index a4db15bea3..d00be8e313 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-03-windows-keymap-context-validation.md +++ b/.agents/notes/implemented/bug-fix/2026-11-03-windows-keymap-context-validation.md @@ -69,7 +69,7 @@ Windows 每个窗口最多缓存 256 条条件,最多同时保留 16 个原生 ## 适用范围 - Lithe-core-rust 锁定修订:[rust/lithe-core/src/keymap/mod.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/keymap/mod.rs) -- `shared/fixtures/keymap/context-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/keymap/context-v1.json` - ~~`windows/tauri/src/features/keymaps/utils/context.ts`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/keymaps/utils/keybinding-import-export.ts`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/keymaps/stores/keymaps.store.ts`~~(已随 #1794 移除) diff --git a/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md b/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md index a4de83d965..2d925c899b 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md +++ b/.agents/notes/implemented/bug-fix/2026-11-04-github-device-authorization-deadline.md @@ -26,7 +26,7 @@ GitHub 设备授权的下一步、退避间隔和过期判定由 Core 计算, ## 验证 -`shared/fixtures/github/device-authorization-transition-v1.json` 由 Core 和 Swift 桥接测试共同验证。`GitHubServiceTests/deviceFlowSlowDown`、`deviceFlowDeadline` 和 `deviceFlowDisplayedTooLong` 用可控时钟检查完整服务流程,无需真实等待或网络。 +`Lithe-core-rust/rust/fixtures/github/device-authorization-transition-v1.json` 由 Core 和 Swift 桥接测试共同验证。`GitHubServiceTests/deviceFlowSlowDown`、`deviceFlowDeadline` 和 `deviceFlowDisplayedTooLong` 用可控时钟检查完整服务流程,无需真实等待或网络。 ## 适用范围 diff --git a/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md b/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md index befdfaf9a9..5aaa7c4daa 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md +++ b/.agents/notes/implemented/bug-fix/2026-11-04-github-pull-request-checkout-safety.md @@ -26,7 +26,7 @@ Core 生成安全的本地名称并检查同名、父级及子级引用;预览 ## 验证 -`GitHubServiceTests/checkoutDoesNotResetExistingBranch` 在临时仓库复现旧实现重置分支,并检查冲突、过期预览和正常检出。Core 的 `github_pr_checkout` 测试还验证 origin 变更和地址脱敏。`shared/fixtures/github/pr-checkout-plan-v1.json` 由 Core 和 Swift 桥接测试共同验证。 +`GitHubServiceTests/checkoutDoesNotResetExistingBranch` 在临时仓库复现旧实现重置分支,并检查冲突、过期预览和正常检出。Core 的 `github_pr_checkout` 测试还验证 origin 变更和地址脱敏。`Lithe-core-rust/rust/fixtures/github/pr-checkout-plan-v1.json` 由 Core 和 Swift 桥接测试共同验证。 ## 适用范围 diff --git a/.agents/notes/implemented/bug-fix/2026-11-04-lsp-document-uri-identity.md b/.agents/notes/implemented/bug-fix/2026-11-04-lsp-document-uri-identity.md index 12c769a9ef..20af44c54b 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-04-lsp-document-uri-identity.md +++ b/.agents/notes/implemented/bug-fix/2026-11-04-lsp-document-uri-identity.md @@ -37,7 +37,7 @@ Core 比较文档身份时规范化百分号转义的写法与 Windows 盘符, ## 验证 -- `shared/fixtures/lsp/document-uri-v1.json` 覆盖保留字符、Unicode、盘符、UNC 和诊断身份。 +- `Lithe-core-rust/rust/fixtures/lsp/document-uri-v1.json` 覆盖保留字符、Unicode、盘符、UNC 和诊断身份。 - Core 模拟服务器检查真正发送的 `didOpen` URI;macOS 真实桥接与启动测试覆盖目录斜杠和 `#`。 - Windows 适配器测试覆盖现有请求内传路径、虚拟 URI 与旧附着结果;云服务器运行对应前端与 Core 测试。 - 两端真实产品中的语言服务器、远程工作区及 UNC 路径人工验收仍待完成。 diff --git a/.agents/notes/implemented/bug-fix/2026-11-04-shared-go-to-line-input.md b/.agents/notes/implemented/bug-fix/2026-11-04-shared-go-to-line-input.md index e3163446da..892be7720d 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-04-shared-go-to-line-input.md +++ b/.agents/notes/implemented/bug-fix/2026-11-04-shared-go-to-line-input.md @@ -38,7 +38,7 @@ macOS 确认按钮暂不可用;已过期的校验结果不会覆盖新输入 ## 验证 -- `shared/fixtures/editor/navigation-input-v1.json` 覆盖行列、空格、零、负数、 +- `Lithe-core-rust/rust/fixtures/editor/navigation-input-v1.json` 覆盖行列、空格、零、负数、 尾随字符和溢出;Core 与 Windows 命令回归消费同一 fixture。 - `GoToLineInputTests` 和 `GoToLineDialogValidationTests` 覆盖原生桥接、迟到结果和 原生模态循环;Windows 的导航命令和行选择测试覆盖列号、CRLF 与 UTF-16 列。 diff --git a/.agents/notes/implemented/bug-fix/2026-11-05-plugin-host-method-service-authorization.md b/.agents/notes/implemented/bug-fix/2026-11-05-plugin-host-method-service-authorization.md index 45f10871c4..657b1a555b 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-05-plugin-host-method-service-authorization.md +++ b/.agents/notes/implemented/bug-fix/2026-11-05-plugin-host-method-service-authorization.md @@ -26,7 +26,7 @@ Core 的宿主方法表是方法和服务关系的真源。macOS 在分发前调 ## 验证 -`PluginPublicHostAPITests.aMethodCannotBeDispatchedUnderADifferentService` 在旧分发器上失败、修复后通过。`shared/fixtures/plugins/host-api-v1.json` 覆盖旧版聚合授权、独立方法授权、未知方法和服务不匹配。 +`PluginPublicHostAPITests.aMethodCannotBeDispatchedUnderADifferentService` 在旧分发器上失败、修复后通过。`Lithe-core-rust/rust/fixtures/plugins/host-api-v1.json` 覆盖旧版聚合授权、独立方法授权、未知方法和服务不匹配。 ## 适用范围 diff --git a/.agents/notes/implemented/bug-fix/2026-11-06-save-all-editor-drain.md b/.agents/notes/implemented/bug-fix/2026-11-06-save-all-editor-drain.md index 3f27b78744..bc9ac50df1 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-06-save-all-editor-drain.md +++ b/.agents/notes/implemented/bug-fix/2026-11-06-save-all-editor-drain.md @@ -26,7 +26,7 @@ ## 验证 -`cancellingSaveAllDuringRemoteDrainDoesNotWrite` 覆盖正常保存、取消和重置;`shared/fixtures/documents/save-batch-v1.json` 覆盖 Core 对未同步文档的选择。全量测试暴露了修复前不会进入同步回调的问题。 +`cancellingSaveAllDuringRemoteDrainDoesNotWrite` 覆盖正常保存、取消和重置;`Lithe-core-rust/rust/fixtures/documents/save-batch-v1.json` 覆盖 Core 对未同步文档的选择。全量测试暴露了修复前不会进入同步回调的问题。 ## 适用范围 diff --git a/.agents/notes/implemented/bug-fix/2026-11-09-viva-debug-session-cleanup.md b/.agents/notes/implemented/bug-fix/2026-11-09-viva-debug-session-cleanup.md index 2a21cddb3d..d011955b80 100644 --- a/.agents/notes/implemented/bug-fix/2026-11-09-viva-debug-session-cleanup.md +++ b/.agents/notes/implemented/bug-fix/2026-11-09-viva-debug-session-cleanup.md @@ -27,7 +27,7 @@ 原生进程句柄原子发布,停止可以发生在后台进程创建之前。启动任务、接收、断点和检查操作各自串行完成 Core 调用、发送帧和发布界面结果,避免不同 goroutine(并发任务)重排同一会话的传输。启动完成后,清理只销毁真正创建过的 Core 会话,再等待原生退出并删除本次会话独占的可写状态目录。目录由原生 `MkdirTemp` 分配,位于插件可写根 `.state///desktop-debug-/`,不会与另一应用进程的会话计数器碰撞;包和应用安装资源只读,不影响签名或增量更新。 -真实 LLDB 可以先发送暂停或结束事件,再确认启动请求。Core 的确认只能把仍处于 launching 的状态改为 running,不能覆盖更新的 paused/terminated;成功确认仍报告操作完成。正确做法是保留用户已经看到的暂停状态,不要用稍后收到的确认把目标显示成运行中。共享 fixture `shared/fixtures/debug/launch-event-order.json` 固定这条边界。 +真实 LLDB 可以先发送暂停或结束事件,再确认启动请求。Core 的确认只能把仍处于 launching 的状态改为 running,不能覆盖更新的 paused/terminated;成功确认仍报告操作完成。正确做法是保留用户已经看到的暂停状态,不要用稍后收到的确认把目标显示成运行中。共享 fixture `Lithe-core-rust/rust/fixtures/debug/launch-event-order.json` 固定这条边界。 ## 考虑过的备选方案 diff --git a/.agents/notes/implemented/feature/2026-09-13-macos-git-graph-intellij-layout.md b/.agents/notes/implemented/feature/2026-09-13-macos-git-graph-intellij-layout.md index 468dbd913a..7d6f472f9e 100644 --- a/.agents/notes/implemented/feature/2026-09-13-macos-git-graph-intellij-layout.md +++ b/.agents/notes/implemented/feature/2026-09-13-macos-git-graph-intellij-layout.md @@ -589,7 +589,7 @@ Lithe 在工作台视图中持有 `WorkbenchToolContentStore`,本次用于 Git - `git diff --check` 上游对照 fixture 固定保存在 -[`shared/fixtures/git/graph-idea/`](../../../../shared/fixtures/git/graph-idea/) +[`Lithe-core-rust/rust/fixtures/git/graph-idea/`](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/fixtures/git/graph-idea/) (4 个布局 fixture 比较完整 layout index 向量,5 个打印 fixture 比较 节点列、半边端点、箭头与实/虚线,只排除颜色值);真实历史回归数据 冻结在 @@ -625,7 +625,7 @@ Lithe 在工作台视图中持有 `WorkbenchToolContentStore`,本次用于 Git - ~~`macos/Tests/LitheTests/GitCommitFileTreeLayoutTests.swift`~~(已随 #1794 移除) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/git/history.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/git/history.rs) - ~~`macos/Sources/Lithe/Core/Rust/RustGitOperations.swift`~~(已随 #1794 移除) -- `shared/fixtures/git/graph-idea/` +- `Lithe-core-rust/rust/fixtures/git/graph-idea/` - ~~`macos/Tests/LitheTests/Fixtures/GitGraph/`~~(已随 #1794 移除) - ~~`macos/Resources/GitGraph/`~~(已随 #1794 移除) @@ -635,9 +635,9 @@ Lithe 在工作台视图中持有 `WorkbenchToolContentStore`,本次用于 Git - `desktop/internal/workbench/gitgraph.go` - `desktop/internal/workbench/gitlog.go` - `desktop/internal/workbench/gitlog_view.go` -- `shared/fixtures/git/graph-idea/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/fixtures/git/graph-idea/` - Lithe-core-rust 锁定修订:[rust/lithe-core/src/git/graph.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/git/graph.rs) ## 后续:布局下沉到 Rust Core(#1662 GIT-18/19) -本文描述的 DFS、head 排序、定色、过滤后的虚线拓扑和 missing parents 算法已搬进 `rust/lithe-core/src/git/graph.rs`,由 `git.graphProjection` 统一提供,规则以 `shared/fixtures/git/graph-projection-v1.json` 为准。文中提到的 Swift/TS 实现文件已删除;两端只保留绘制、像素和颜色 ID 到主题色的映射。 +本文描述的 DFS、head 排序、定色、过滤后的虚线拓扑和 missing parents 算法已搬进 `rust/lithe-core/src/git/graph.rs`,由 `git.graphProjection` 统一提供,规则以 `Lithe-core-rust/rust/fixtures/git/graph-projection-v1.json` 为准。文中提到的 Swift/TS 实现文件已删除;两端只保留绘制、像素和颜色 ID 到主题色的映射。 diff --git a/.agents/notes/implemented/feature/2026-09-17-standalone-java-compile-then-run.md b/.agents/notes/implemented/feature/2026-09-17-standalone-java-compile-then-run.md index bb72be662d..8b753d5db3 100644 --- a/.agents/notes/implemented/feature/2026-09-17-standalone-java-compile-then-run.md +++ b/.agents/notes/implemented/feature/2026-09-17-standalone-java-compile-then-run.md @@ -103,7 +103,7 @@ - Rust 核心:`rust/lithe-core/src/execution/configuration.rs`(`create_launch_plan`)、 `rust/lithe-core/src/languages/java.rs`(`standalone_launch_class`) -- 契约:`shared/contracts/rust-core-api.md`(createLaunchPlan 段) +- 契约:`Lithe-core-rust/rust/contracts/rust-core-api.md`(createLaunchPlan 段) - macOS 宿主:`RunService`、`RustCoreBridge`、`ProjectRuntimeService`、 `RunExecutableResolver`、`RunToolchainProviders`、`MacRunConfigurationStore` - Windows 宿主:`windows/tauri/src-tauri/src/run.rs`、 diff --git a/.agents/notes/implemented/feature/2026-09-20-run-configuration-discovery-quality.md b/.agents/notes/implemented/feature/2026-09-20-run-configuration-discovery-quality.md index f303d5cb8c..7d1dd60422 100644 --- a/.agents/notes/implemented/feature/2026-09-20-run-configuration-discovery-quality.md +++ b/.agents/notes/implemented/feature/2026-09-20-run-configuration-discovery-quality.md @@ -176,7 +176,7 @@ Swift、PHP 等已有明确 provider 的配置可归类,但这不代表增加 拖动折叠与展开、阈值附近防抖、保存宽度及窄栏键盘恢复、窗口变窄与卸载清理, 以及输出会话隔离。 - 共享契约:~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除),契约文本与 - `shared/contracts/run-configuration-v2.schema.json` 同步更新。 + `Lithe-core-rust/rust/contracts/run-configuration-v2.schema.json` 同步更新。 ## 适用范围 diff --git a/.agents/notes/implemented/feature/2026-09-22-windows-ai-commit-design.md b/.agents/notes/implemented/feature/2026-09-22-windows-ai-commit-design.md index 509dc8966b..607c52c98e 100644 --- a/.agents/notes/implemented/feature/2026-09-22-windows-ai-commit-design.md +++ b/.agents/notes/implemented/feature/2026-09-22-windows-ai-commit-design.md @@ -96,5 +96,5 @@ Codex/Claude 的 OAuth 登录不等同于可用 API 密钥,本次不实现 CLI - ~~`windows/tauri/src-tauri/src/ai_commit.rs`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/git/`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/settings/components/ai-commit-settings-panel.tsx`~~(已随 #1794 移除) -- `shared/contracts/ai-commit.md` -- `shared/fixtures/ai/commit-generation-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/ai-commit.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/ai/commit-generation-v1.json` diff --git a/.agents/notes/implemented/feature/2026-09-24-document-encoding-switch.md b/.agents/notes/implemented/feature/2026-09-24-document-encoding-switch.md index 49a13cc08c..03f47ca6e9 100644 --- a/.agents/notes/implemented/feature/2026-09-24-document-encoding-switch.md +++ b/.agents/notes/implemented/feature/2026-09-24-document-encoding-switch.md @@ -57,7 +57,7 @@ macOS 和 Windows 编辑器都在状态栏提供编码入口,并支持“以 - `scripts/desktop/desktop-go.sh test -race ./internal/core ./internal/workbench -run 'Test(DocumentTextClassificationUsesSharedFixtures|OpenRejectsUnsupportedEncodingWithoutChangingTheFile|ReadDocumentUsesWholeFileClassification|UnsupportedEncodingReasonFollowsLanguage|ExternalUnsupportedEncodingKeepsOpenBufferAndDiskBytes)' -count=3`:覆盖共享 Core fixture、非法字节、正常 UTF-8、提示语言与外部变化,不代表编码转换已实现。 - 本地热缓存的 16 MiB 中英文混合文件读取微基准:原来只检查前 8 KiB 时约 1.07 ms,接入 Core 完整判定后约 122.43 ms;两者均为 5 次分配、约 16 MiB。测量使用未优化的 Core debug 构建,校验在后台读取线程执行;这不是生产构建、冷磁盘、完整应用启动或 Windows 性能验收。 - `./scripts/platform-feature-matrix/verify-platform-feature-matrix.sh` -- `shared/fixtures/editor/text-content-v1.json` 是 Core 正文判定夹具;当前判定不包含多编码识别与转换。 +- `Lithe-core-rust/rust/fixtures/editor/text-content-v1.json` 是 Core 正文判定夹具;当前判定不包含多编码识别与转换。 ## 适用范围 diff --git a/.agents/notes/implemented/feature/2026-09-25-windows-git-graph-branch-colors.md b/.agents/notes/implemented/feature/2026-09-25-windows-git-graph-branch-colors.md index 9e59c57d11..0b7161ff09 100644 --- a/.agents/notes/implemented/feature/2026-09-25-windows-git-graph-branch-colors.md +++ b/.agents/notes/implemented/feature/2026-09-25-windows-git-graph-branch-colors.md @@ -279,7 +279,7 @@ ResizeObserver(浏览器按帧合并的尺寸观察器)服务已挂载行, - HEAD 回归在 `git-graph-geometry.test.ts` 固定五种 DPI 的外径、圈宽与实点尺寸;`git-graph-row.test.ts` 检查真实 SVG 的同心结构、边裁剪和普通节点不受影响。浏览器需核对圈内没有穿线,明暗主题的普通、当前分支、悬停和焦点/失焦选中背景自然透出;浏览器结果不代替 WebView2 原生截图验收。 - `git-commit-table.navigation.test.tsx` 在 5,000 条线性历史的四行视口验证首部、中部、尾部及返回后的节点、路径数量和 SVG 高度有界;单行视口检查换列分叉在滚动边界的完整拼接,空范围等待挂载后恢复。HEAD 裁剪在非零全局偏移下仍使用窗口内坐标。可控视口验证资源数量与几何,不作为真实滚动帧率或 WebView2 验收结论。 - 外观回归计时使用同一 Windows Frontend harness,加入 `src/features/git/utils/git-graph-colors.test.ts`、`src/features/git/utils/git-graph-geometry.test.ts` 和 `src/features/git/hooks/use-git-graph-paint.test.tsx`。浏览器验证使用真实行组件和测量 hook,检查明暗主题、五种 DPI 和用户字号;平台调用在独立页面中替代,不视为原生产品验收。 -- 仓库上下文读取现有 `issue410-context-idea.txt` 和 `issue410-date-idea.txt`,比较真实 IDEA 的 200 条拓扑页与 300 条日期页,不用 Windows 输出生成预期。API 测试复用 `shared/fixtures/git/history-page-date-request-v1.json`,确认首批与后续页都传相同顺序。 +- 仓库上下文读取现有 `issue410-context-idea.txt` 和 `issue410-date-idea.txt`,比较真实 IDEA 的 200 条拓扑页与 300 条日期页,不用 Windows 输出生成预期。API 测试复用 `Lithe-core-rust/rust/fixtures/git/history-page-date-request-v1.json`,确认首批与后续页都传相同顺序。 - 上述两份 IDEA 输出的 `Width` 也参与建议宽度回归;几何与真实行组件检查单线、建议基线六列上限、斜边中点、超过六列的密集行与后续简单行、筛选重算和标签呈现。浏览器用真实表格与虚拟滚动核对文字按行避让图形;目标 WebView2 设备验收仍单独记录。 - `use-git-log-controller.integration.test.tsx` 通过可控异步事件验证首批不等待上下文、切仓库和刷新取消、分页独立、卸载与迟到游标清理以及失败回退;`git-commit-table.navigation.test.tsx` 验证真实行与工具栏、屏幕外双向导航、延迟挂载、选择/焦点及普通 Diff。浏览器再用真实虚拟列表和原生 Enter/空格检查同一序列,不把 viewport mock 当作原生内核证明。 - 原生验收:在包含交错分支和合并的 Windows Git Log 中,分别使用文本、作者、分支名称筛选,确认跨过隐藏提交的连接为虚线,直接父子为实线,无关分支不误连,清空筛选恢复原图和选择行为。 @@ -292,9 +292,9 @@ ResizeObserver(浏览器按帧合并的尺寸观察器)服务已挂载行, - `desktop/internal/core/gitlog.go` - `desktop/internal/workbench/gitgraph.go` - `desktop/internal/workbench/gitlog_view.go` -- `shared/fixtures/git/graph-idea/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/fixtures/git/graph-idea/` - [旧客户端图形实现及原适用范围(历史版本)](https://github.com/1lck/Lithe-IDEA/blob/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/.agents/notes/implemented/feature/2026-09-25-windows-git-graph-branch-colors.md) ## 后续:布局下沉到 Rust Core(#1662 GIT-18/19) -本文描述的 DFS、head 排序、定色、过滤后的虚线拓扑和 missing parents 算法已搬进 `rust/lithe-core/src/git/graph.rs`,由 `git.graphProjection` 统一提供,规则以 `shared/fixtures/git/graph-projection-v1.json` 为准。文中提到的 Swift/TS 实现文件已删除;两端只保留绘制、像素和颜色 ID 到主题色的映射。 +本文描述的 DFS、head 排序、定色、过滤后的虚线拓扑和 missing parents 算法已搬进 `rust/lithe-core/src/git/graph.rs`,由 `git.graphProjection` 统一提供,规则以 `Lithe-core-rust/rust/fixtures/git/graph-projection-v1.json` 为准。文中提到的 Swift/TS 实现文件已删除;两端只保留绘制、像素和颜色 ID 到主题色的映射。 diff --git a/.agents/notes/implemented/feature/2026-09-27-windows-spring-endpoints.md b/.agents/notes/implemented/feature/2026-09-27-windows-spring-endpoints.md index 04d36ec50a..f7db9337e5 100644 --- a/.agents/notes/implemented/feature/2026-09-27-windows-spring-endpoints.md +++ b/.agents/notes/implemented/feature/2026-09-27-windows-spring-endpoints.md @@ -90,4 +90,4 @@ Windows Quick Open(双击 Shift)也复用同一份索引:在默认搜索 - ~~`windows/tauri/src/features/quick-open/`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/file-system/services/file-watcher-listener.ts`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/layout/components/bottom-pane/bottom-pane.tsx`~~(已随 #1794 移除) -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` diff --git a/.agents/notes/implemented/feature/2026-09-27-workspace-git-commit-plans.md b/.agents/notes/implemented/feature/2026-09-27-workspace-git-commit-plans.md index 90ceed2d6c..0522951f66 100644 --- a/.agents/notes/implemented/feature/2026-09-27-workspace-git-commit-plans.md +++ b/.agents/notes/implemented/feature/2026-09-27-workspace-git-commit-plans.md @@ -88,5 +88,5 @@ Git 的多个仓库没有跨仓库原子事务,已成功的提交不会因后 - `desktop/internal/core/repository_discovery_test.go` - Lithe-core-rust 锁定修订:[rust/lithe-core/src/git/commit_state.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/git/commit_state.rs) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/git/workspace_commit.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/git/workspace_commit.rs) -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` - `shared/platform-feature-matrix/features/git-submodule-commit-plan.json` diff --git a/.agents/notes/implemented/feature/2026-10-03-local-git-changelists.md b/.agents/notes/implemented/feature/2026-10-03-local-git-changelists.md index ed375f71ce..3fc3a982cb 100644 --- a/.agents/notes/implemented/feature/2026-10-03-local-git-changelists.md +++ b/.agents/notes/implemented/feature/2026-10-03-local-git-changelists.md @@ -67,7 +67,7 @@ Windows 提供两个独立的 Git 设置:`showGitChangelists` 和 `showGitPare - ~~`windows/tauri/src/features/git/components/git-commit-panel.test.tsx`~~(已随 #1794 移除):按钮、快捷键与范围传递。 - `rust/lithe-core/src/git/workspace_commit/tests.rs`:列表限制、父引用、确认变化、重试和续接校验。 - `rust/lithe-core/src/tests/git_workspace_commit.rs`:真实 Git 拦截范围外暂存、不改变索引和工作树、保留部分暂存、刷新前重命名。 -- `shared/fixtures/git/changelists-reducer-v1.json`:Core 和两端适配器验证同一归属及范围结果;旧 `local-changelist-scope-v1.json` 保留旧客户端契约。 +- `Lithe-core-rust/rust/fixtures/git/changelists-reducer-v1.json`:Core 和两端适配器验证同一归属及范围结果;旧 `local-changelist-scope-v1.json` 保留旧客户端契约。 - `scripts/desktop/desktop-go.sh test -race ./internal/core -run 'Test(ChangeListsUseSharedMembershipAndScope|WorkspaceCommitScopeProtectsStagedChanges)' -count=3 -timeout=90s`:macOS 使用共享 fixture 和临时 Git 仓库验证 Core 范围、未出现在快照中的已分配文件、准备后暂存变化与 HEAD/索引不变;不是 Viva 界面或 Windows 验收。 - `scripts/desktop/desktop-go.sh test ./internal/workbench -run TestChangeLists -count=1`:Viva 界面用真实 Git 验证只提交当前列表、其他列表已暂存时拦截并提示、重名被拒后弹窗保持、删除归还默认列表、列表文件损坏时停用且不覆盖;不是 Windows 实机验收。 - 异步投影、跨窗口锁、过期状态和关闭后结果丢弃有受控回归;真实 Git 测试覆盖投影后新暂存的目录文件及显式默认覆盖。 @@ -84,5 +84,5 @@ Windows 提供两个独立的 Git 设置:`showGitChangelists` 和 `showGitPare - `shared/platform-feature-matrix/features/git-local-changelists.json` - Lithe-core-rust 锁定修订:[rust/lithe-core/src/git/workspace_commit/path_scope.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/git/workspace_commit/path_scope.rs) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/git/commit_state.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/git/commit_state.rs) -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` - [旧客户端的列表实现与原适用范围(历史版本)](https://github.com/1lck/Lithe-IDEA/blob/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/.agents/notes/implemented/feature/2026-10-03-local-git-changelists.md) diff --git a/.agents/notes/implemented/feature/2026-10-24-remote-ssh-connections.md b/.agents/notes/implemented/feature/2026-10-24-remote-ssh-connections.md index 86c27c2bc1..287cddf9e4 100644 --- a/.agents/notes/implemented/feature/2026-10-24-remote-ssh-connections.md +++ b/.agents/notes/implemented/feature/2026-10-24-remote-ssh-connections.md @@ -67,7 +67,7 @@ ## 后果 -- 新增 Core 命令 `remote.probe`、`remote.connect`、`remote.readDir`、`remote.readFile`、`remote.writeFile`、`remote.disconnect`、`remote.authRespond`,契约见 `shared/contracts/rust-core-api.md` 的“Remote connections”一节。 +- 新增 Core 命令 `remote.probe`、`remote.connect`、`remote.readDir`、`remote.readFile`、`remote.writeFile`、`remote.disconnect`、`remote.authRespond`,契约见 `Lithe-core-rust/rust/contracts/rust-core-api.md` 的“Remote connections”一节。 - 三个打包 workflow 需要安装 `x86_64-unknown-linux-musl` 和 `aarch64-unknown-linux-musl` 目标。 - 连接打开后由 Core 持有,直到 `remote.disconnect` 或 App 退出;断线不会自动重连:Core 返回 `connection_closed`,传输层首次发现时通知所属窗口,弹出远程开发窗口并预选原连接,用户重新认证后恢复同一个远程文件夹,工作区随之重新加载。关闭项目会释放连接。 diff --git a/.agents/notes/implemented/feature/2026-10-29-skip-python-environments-in-workspace-scans.md b/.agents/notes/implemented/feature/2026-10-29-skip-python-environments-in-workspace-scans.md index e6f4faa522..92be2169f0 100644 --- a/.agents/notes/implemented/feature/2026-10-29-skip-python-environments-in-workspace-scans.md +++ b/.agents/notes/implemented/feature/2026-10-29-skip-python-environments-in-workspace-scans.md @@ -69,7 +69,7 @@ IntelliJ 把 `.venv` 登记成外部库:保留补全和跳转,但不算项 - `desktop/internal/core/workspace.go` - `desktop/internal/core/workspace_tree_test.go` - `desktop/internal/workbench/filetree.go` -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` ## 迁移前的实现与验证记录 diff --git a/.agents/notes/implemented/feature/2026-11-01-markdown-offline-chemistry-and-subscript.md b/.agents/notes/implemented/feature/2026-11-01-markdown-offline-chemistry-and-subscript.md index b79802fd50..6f4c3236df 100644 --- a/.agents/notes/implemented/feature/2026-11-01-markdown-offline-chemistry-and-subscript.md +++ b/.agents/notes/implemented/feature/2026-11-01-markdown-offline-chemistry-and-subscript.md @@ -65,5 +65,5 @@ GitHub 特有媒体及 Windows 方言对齐不是本批已交付能力;macOS P - Lithe-core-rust 锁定修订:[rust/lithe-core/src/project/markdown.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/project/markdown.rs) - ~~`macos/Sources/Lithe/Resources/MarkdownPreview/`~~(已随 #1794 移除) - ~~`macos/Tests/LitheTests/MarkdownPreviewRichContentTests.swift`~~(已随 #1794 移除) -- `shared/fixtures/editor/markdown-rich-content-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/editor/markdown-rich-content-v1.json` - `scripts/resources/worktree-resources.json` diff --git a/.agents/notes/implemented/feature/2026-11-03-structured-logging-log-window.md b/.agents/notes/implemented/feature/2026-11-03-structured-logging-log-window.md index 4396c6790c..4f4e1e2831 100644 --- a/.agents/notes/implemented/feature/2026-11-03-structured-logging-log-window.md +++ b/.agents/notes/implemented/feature/2026-11-03-structured-logging-log-window.md @@ -230,8 +230,8 @@ Swift 只负责读日志文件尾部、订阅 `MacLogStore` 的实时批次、 ## 适用范围 - Lithe-core-rust 锁定修订:[rust/lithe-core/src/diagnostics/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/diagnostics) -- `shared/contracts/rust-core-api.md` -- `shared/fixtures/diagnostics/logging-v2.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/diagnostics/logging-v2.json` - `desktop/internal/logstore/` - `desktop/internal/logwindow/` - `desktop/internal/core/logging.go` diff --git a/.agents/notes/implemented/feature/2026-11-12-viva-agent-conversation-removed.md b/.agents/notes/implemented/feature/2026-11-12-viva-agent-conversation-removed.md index a650312da6..e45a71380d 100644 --- a/.agents/notes/implemented/feature/2026-11-12-viva-agent-conversation-removed.md +++ b/.agents/notes/implemented/feature/2026-11-12-viva-agent-conversation-removed.md @@ -14,6 +14,8 @@ Rust Core 的 Agent 宿主(`lithe-agent-host` 和 C ABI 里的 Agent 入口) 后续清理又删掉了 Core 侧全部 Agent 代码(Lithe-core-rust#18)。`shared/fixtures/mcp` 与 `shared/contracts/mcp-registry-page.json` 随后随 MCP 管理整块删除一起移除(Lithe-core-rust#19),历史决策见 `.agents/notes/archived/feature/2026-10-17-mcp-server-library.md`。 +本仓库剩下的 `shared/fixtures/agent/` 与 `shared/contracts/agent-turn-policy.json` 已没有读者,在 #1853 删除整个 `shared/contracts`、`shared/fixtures` 副本时一并删除,原因见 [应用契约与 fixture 只在 Rust Core](../architecture/2026-11-14-core-app-contracts-single-source.md)。 + ## 问题 Agent 对话是迁移中剩余最大的一块:旧客户端的历史、订阅登录、附件、工具卡片、计划、用量和 MCP 管理都还没迁,Viva 又没有 WebView,回复只能用简化的 Markdown 视图。半成品面板会让用户以为功能可用,还要维护 ACP 适配器子进程的启动、退出清理和凭据传递。 @@ -72,5 +74,5 @@ Agent 对话是迁移中剩余最大的一块:旧客户端的历史、订阅 - `shared/platform-feature-matrix/features/` - `.agents/notes/archived/` - `docs/viva-migration.md` -- `shared/fixtures/ai/cli-configuration-v1.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/ai/cli-configuration-v1.json` - [删除前的桌面端 Agent 实现(历史版本)](https://github.com/1lck/Lithe-IDEA/tree/e2737bf7b48285a59191943d8af926ab5aa4df4a/desktop/internal/workbench) diff --git a/.agents/notes/implemented/process/2026-09-13-ci-build-cache-and-artifact-strategy.md b/.agents/notes/implemented/process/2026-09-13-ci-build-cache-and-artifact-strategy.md index a3416657e2..4e0e94eed3 100644 --- a/.agents/notes/implemented/process/2026-09-13-ci-build-cache-and-artifact-strategy.md +++ b/.agents/notes/implemented/process/2026-09-13-ci-build-cache-and-artifact-strategy.md @@ -263,8 +263,8 @@ macOS runner(GitHub 托管的 Mac 构建机)按组织共享,Free 计划同 Platform Feature Matrix 工作流单独校验。几乎每个功能 PR 都要更新它;过去它 落入 `shared/*` 规则,只改 macOS 界面的 PR 也会触发 Windows CI 和 macOS 上 17 分钟的 Rust Core 测试。现在矩阵文件和 Markdown 一样走文本流程:只做 - `git diff --check` 和矩阵自身校验,不选择任何 runner lane。`shared/contracts/` - 下的 JSON schema 与 `shared/fixtures/` 会被各平台代码和测试读取,仍按共享 + `git diff --check` 和矩阵自身校验,不选择任何 runner lane。`Lithe-core-rust/rust/contracts/` + 下的 JSON schema 与 `Lithe-core-rust/rust/fixtures/` 会被各平台代码和测试读取,仍按共享 契约选择 Swift、Rust Core 和 Windows lane。 - 高频改动路径按真实消费方选择 lane,不落入“未知路径全量验证”的兜底分支: `frontend/editor/` 与根目录 `package.json`、`bun.lock` 只被 macOS 打包 lane diff --git a/.agents/notes/implemented/process/2026-09-13-macos-update-signing-and-release-strategy.md b/.agents/notes/implemented/process/2026-09-13-macos-update-signing-and-release-strategy.md index 955c5735d2..7b428541f5 100644 --- a/.agents/notes/implemented/process/2026-09-13-macos-update-signing-and-release-strategy.md +++ b/.agents/notes/implemented/process/2026-09-13-macos-update-signing-and-release-strategy.md @@ -327,8 +327,8 @@ GitHub 固定 tag 的多文件替换不是原子操作,失败可能留下部 Stable 和组织插件 release 不受清理影响。release 风险说明使用中英双语,明确 普通用户应使用 Stable,自动构建可能包含缺陷或造成数据丢失。 -共享场景位于 `shared/fixtures/updates/channel-selection-v1.json` 和 -`shared/fixtures/updates/build-time-v1.json`,两个客户端分别验证渠道路径和严格时间格式。 +共享场景位于 `Lithe-core-rust/rust/fixtures/updates/channel-selection-v1.json` 和 +`Lithe-core-rust/rust/fixtures/updates/build-time-v1.json`,两个客户端分别验证渠道路径和严格时间格式。 ### 从 Preview 回到 Stable 只走全量、且不信任下载来源的 key diff --git a/.agents/notes/implemented/process/2026-09-24-cross-platform-feature-parity-matrix.md b/.agents/notes/implemented/process/2026-09-24-cross-platform-feature-parity-matrix.md index 7e95ce5250..1893d77c1c 100644 --- a/.agents/notes/implemented/process/2026-09-24-cross-platform-feature-parity-matrix.md +++ b/.agents/notes/implemented/process/2026-09-24-cross-platform-feature-parity-matrix.md @@ -59,7 +59,7 @@ CSV 方便筛选,Excel 对非开发者更友好,但二进制 Excel 不利于 ### 把所有差异都强行抽到 Rust Core -这会把 UI 和原生平台行为错误地塞进共享层。矩阵只记录产品行为和验证边界,不改变 `shared/contracts/`、Rust Core、macOS adapter 或 Windows Tauri 的现有所有权。 +这会把 UI 和原生平台行为错误地塞进共享层。矩阵只记录产品行为和验证边界,不改变 `Lithe-core-rust/rust/contracts/`、Rust Core、macOS adapter 或 Windows Tauri 的现有所有权。 ## 收益和代价 diff --git a/.agents/notes/implemented/simplification/2026-09-30-macos-shared-dropdown-style.md b/.agents/notes/implemented/simplification/2026-09-30-macos-shared-dropdown-style.md index 75443e06a3..6b76311198 100644 --- a/.agents/notes/implemented/simplification/2026-09-30-macos-shared-dropdown-style.md +++ b/.agents/notes/implemented/simplification/2026-09-30-macos-shared-dropdown-style.md @@ -347,7 +347,7 @@ Tab 键导航。深浅主题原生用例检查打开时的真实 firstResponder 目录规则:`.lithe/`、`.lithe/*` 或 `.lithe/**`。末尾的 `/*` 与 `/**` 同样按目录规则处理, 这样文件夹本身随内容一起消失,不会留下一个空文件夹;写成 `**/.lithe/*` 可以覆盖嵌套副本。 曾尝试让普通名称同时隐藏同名文件夹,因为“同一个名字到底指文件还是文件夹”要靠猜、规则行为 -不再由模式本身决定,所以放弃,改为全部走显式模式匹配。`shared/fixtures/search/exclusions.json` +不再由模式本身决定,所以放弃,改为全部走显式模式匹配。`Lithe-core-rust/rust/fixtures/search/exclusions.json` 的 `generated/*`、`docs/**` 与 `notes` 用例固定这些行为。真实列目录探针验证排除目录未被枚举。 隐藏路径设置页把原来的“目录”与“文件模式”两个列表合并成一个模式列表(键 diff --git a/.agents/notes/proposed/architecture/2026-10-16-unified-child-process-lifecycle.md b/.agents/notes/proposed/architecture/2026-10-16-unified-child-process-lifecycle.md index f433ee92d4..6b15400a7d 100644 --- a/.agents/notes/proposed/architecture/2026-10-16-unified-child-process-lifecycle.md +++ b/.agents/notes/proposed/architecture/2026-10-16-unified-child-process-lifecycle.md @@ -110,7 +110,7 @@ Agent 侧: 账本是现有 `ModuleResourceScope` 的下层实现,不另起一套模块生命周期:模块 仍然通过资源 scope 登记资源,资源 scope 再向平台进程端口申请进程。账本的 记录结构、分类规则、停止阶段和结果报告是两个平台共享的确定性语义,放进 -`rust/lithe-core/`,并在 `shared/contracts/` 增加契约与 fixture;发信号、 +`rust/lithe-core/`,并在 `Lithe-core-rust/rust/contracts/` 增加契约与 fixture;发信号、 Job Object、监护进程等平台能力留在各自的 adapter。 #### 四种退出策略 @@ -713,8 +713,8 @@ Windows 仍未完成的部分:终端(ConPTY)和 Agent 进程树还没有 J - `desktop/internal/settingswindow/` - Lithe-core-rust 锁定修订:[rust/lithe-agent-host/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-agent-host) - Lithe-core-rust 锁定修订:[rust/lithe-core/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core) -- `shared/contracts/` -- `shared/fixtures/process-lifecycle/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/contracts/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/fixtures/process-lifecycle/` - `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/` - [旧客户端实现与原适用范围(历史版本)](https://github.com/1lck/Lithe-IDEA/blob/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/.agents/notes/proposed/architecture/2026-10-16-unified-child-process-lifecycle.md) - 相关决策:[模块运行时边界与生命周期](../../implemented/architecture/2026-09-13-module-runtime-boundaries-and-lifecycle.md) diff --git a/.agents/notes/proposed/architecture/2026-10-17-build-system-provider-api.md b/.agents/notes/proposed/architecture/2026-10-17-build-system-provider-api.md index 675eb23b9f..353a711c71 100644 --- a/.agents/notes/proposed/architecture/2026-10-17-build-system-provider-api.md +++ b/.agents/notes/proposed/architecture/2026-10-17-build-system-provider-api.md @@ -346,7 +346,7 @@ Core 契约部分的验收已在已实现的 Note 里完成。剩下的工作按 - Lithe-core-rust 锁定修订:[rust/lithe-core/src/execution/configuration.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/execution/configuration.rs) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/lsp/interface/engine.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/lsp/interface/engine.rs) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/runtime/dispatcher.rs](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/runtime/dispatcher.rs) -- `shared/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` - 已迁出:原 `macos/Sources/Lithe/Platform/MacOS/Runtime/MacRuntimeDiscovery.swift`。宿主侧 Java 专属代码已删除(#1495);运行、调试、入口标记与工具链改走通用插件 API(`run/start`、`debug/start`、`editor/registerActions`、`toolDefinitions`),实现见 [lithe-plugin-java](https://github.com/Lithe-IDEA/lithe-plugin-java)。 - 已迁出:原 `macos/Sources/Lithe/Platform/MacOS/Persistence/MacLegacyMavenConfigurationMigration.swift`。Maven 专属逻辑已从 Core 与宿主移入 Maven 插件([lithe-plugin-maven](https://github.com/Lithe-IDEA/lithe-plugin-maven))(#1495)。 - [旧版 macOS 构建服务与测试 Provider](https://github.com/1lck/Lithe-IDEA/tree/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/macos/Sources/LitheExecutionModule/Services) diff --git a/.agents/notes/proposed/architecture/2026-10-22-unified-vcs-provider-model.md b/.agents/notes/proposed/architecture/2026-10-22-unified-vcs-provider-model.md index fa65b45ae1..a9ffe3b506 100644 --- a/.agents/notes/proposed/architecture/2026-10-22-unified-vcs-provider-model.md +++ b/.agents/notes/proposed/architecture/2026-10-22-unified-vcs-provider-model.md @@ -94,7 +94,7 @@ Git Log 图、Rebase、Worktree、Stash、Push 和 Fetch 对话框、历史改 - 进程启动后,宿主在 `initialize` 里通过 `capabilities.experimental.litheVcs` 协商版本,Provider 在回复里给出自己的能力集。能力集描述的是运行中的进程,所以不写进清单,这遵守[插件契约从统一基线 0 开始](../../implemented/architecture/2026-11-11-plugin-contract-single-baseline.md)第 4 节的规则。 - 请求方法统一以 `lithe/vcs/` 开头。宿主不按 Provider ID 写分支;进程按“插件 ID + VCS ID + 工作区”隔离,生命周期规则与构建 Provider 相同。 -字段和方法见 [VCS Provider 契约](../../../../shared/contracts/vcs-provider-v1.md),示例数据见 [`shared/fixtures/vcs/model-v1.json`](../../../../shared/fixtures/vcs/model-v1.json)。Core 已按契约实现(见第 9 节的进度),但还没有宿主声明 `vcsProviders`,所以插件市场不会列出这类插件;宿主接入前契约仍可以修改,改动要同时更新 fixtures 和 Core 测试。 +字段和方法见 [VCS Provider 契约](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/vcs-provider-v1.md),示例数据见 [`Lithe-core-rust/rust/fixtures/vcs/model-v1.json`](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/vcs/model-v1.json)。Core 已按契约实现(见第 9 节的进度),但还没有宿主声明 `vcsProviders`,所以插件市场不会列出这类插件;宿主接入前契约仍可以修改,改动要同时更新 fixtures 和 Core 测试。 ### 7. SVN 作为社区插件 @@ -237,5 +237,5 @@ P2 的第一版就是这样:插件放在 `Plugins/mac/Official/SvnSupport/`, - `desktop/internal/workbench/` - `desktop/internal/core/plugin_session.go` - `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/` -- `shared/contracts/vcs-provider-v1.md` -- `shared/fixtures/vcs/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/vcs-provider-v1.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/fixtures/vcs/` diff --git a/.agents/notes/proposed/architecture/2026-10-24-remote-development-workspace-host.md b/.agents/notes/proposed/architecture/2026-10-24-remote-development-workspace-host.md index 96db89dc00..3aaa92ba6c 100644 --- a/.agents/notes/proposed/architecture/2026-10-24-remote-development-workspace-host.md +++ b/.agents/notes/proposed/architecture/2026-10-24-remote-development-workspace-host.md @@ -362,5 +362,5 @@ M2 接入“打开远程文件夹”时,SSH 连接的配置界面参考用户 - Lithe-core-rust 锁定修订:[rust/lithe-remote/src/protocol/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-remote/src/protocol) - Lithe-core-rust 锁定修订:[rust/lithe-remote/src/server/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-remote/src/server) - Lithe-core-rust 锁定修订:[rust/lithe-remote/src/client/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-remote/src/client) -- `shared/contracts/remote-workspace-protocol-v1.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/remote-workspace-protocol-v1.md` - [旧版远程持续集成工作流](https://github.com/1lck/Lithe-IDEA/blob/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/.github/workflows/ci-remote.yml);Viva 的对应远端构建与验收仍需重建。 diff --git a/.agents/notes/proposed/architecture/2026-10-25-optional-debug-extensions.md b/.agents/notes/proposed/architecture/2026-10-25-optional-debug-extensions.md index 74bfe92dce..efb4f3ad85 100644 --- a/.agents/notes/proposed/architecture/2026-10-25-optional-debug-extensions.md +++ b/.agents/notes/proposed/architecture/2026-10-25-optional-debug-extensions.md @@ -66,7 +66,7 @@ GDB、LLDB 可以调试 C、C++、Rust 和汇编,但二进制不一定有源 寄存器、反汇编、只读内存、指令步进与指令断点按上面的顺序一次落地,`writeMemory` 保持关闭。边界如下: -- **内核**:`debug.inspect` 新增 `disassemble`、`readMemory` 两个 kind;`debug.execute` 新增可选 `granularity`;新增命令 `debug.setInstructionBreakpoints`。四项适配器能力 `supportsDisassembleRequest`、`supportsReadMemoryRequest`、`supportsSteppingGranularity`、`supportsInstructionBreakpoints` 都已注册为扩展,所以 `initialize` 现在声明 `supportsMemoryReferences`;能力快照里 `supported = 适配器 ∧ 已注册 ∧ 已授权` 不变。栈帧新增 `instructionPointerReference`,没有 `source` 也没有 `sourceReference` 的帧行号为 0,不再补成第 1 行。两个新 kind 都是引用型请求,受 `stopGeneration` 约束,继续执行后到达的旧回复按 `StaleReference` 丢弃。字段细节见 `shared/contracts/rust-core-api.md`。 +- **内核**:`debug.inspect` 新增 `disassemble`、`readMemory` 两个 kind;`debug.execute` 新增可选 `granularity`;新增命令 `debug.setInstructionBreakpoints`。四项适配器能力 `supportsDisassembleRequest`、`supportsReadMemoryRequest`、`supportsSteppingGranularity`、`supportsInstructionBreakpoints` 都已注册为扩展,所以 `initialize` 现在声明 `supportsMemoryReferences`;能力快照里 `supported = 适配器 ∧ 已注册 ∧ 已授权` 不变。栈帧新增 `instructionPointerReference`,没有 `source` 也没有 `sourceReference` 的帧行号为 0,不再补成第 1 行。两个新 kind 都是引用型请求,受 `stopGeneration` 约束,继续执行后到达的旧回复按 `StaleReference` 丢弃。字段细节见 `Lithe-core-rust/rust/contracts/rust-core-api.md`。 - **地址不透明**:宿主任何一层都不把地址解析成整数,也不做加减。反汇编向前后翻页用 `instructionOffset` 加上当前首尾指令的地址;内存分页用相对 `memoryReference` 的字节偏移,行首标签显示偏移而不是算出的地址。判断两个地址写法是否同一个地址,只做文本规范化(小写、去 `0x`、去前导零),所以 `0x0000000100003f50` 与 `0x100003f50` 视为同一个地址,超过 2^53 的地址不会被舍入。 - **界面**:只有 `supportsDisassembleRequest` 为真才出现“反汇编”标签。选中的栈帧没有源码时标签自动打开,选中有源码的帧时自动关闭;用户自己打开的反汇编不会被自动关闭。标签下方是辅助区:变量、寄存器(只在适配器给出 `presentationHint: "registers"` 的 scope 时出现)、内存(只在 `supportsReadMemoryRequest` 为真时出现)。无源码栈帧的行内显示等宽的指令地址,右键菜单可复制地址、打开反汇编;变量右键可以按其值读取内存。 - **指令步进**:反汇编标签打开期间,单步(步过)和步入带 `granularity: "instruction"`;工具栏按钮的悬停提示同步变为“按指令单步跳过 / 按指令单步进入”,反汇编头部显示“按指令单步”,当前行随单步最小幅度滚动,不整列表跳动。步出仍按适配器默认处理,因为“跑完当前函数”没有指令粒度的含义。关闭标签后回到适配器默认的按行单步。适配器没有声明 `supportsSteppingGranularity` 时不带该字段,头部改为明确提示“该适配器不支持按指令单步,单步仍按源码行前进”:静默回退会让用户以为是反汇编视图的缺陷。 @@ -122,12 +122,12 @@ GDB、LLDB 可以调试 C、C++、Rust 和汇编,但二进制不一定有源 ## 验证 -本次只修改文档,运行 `./scripts/agent-notes/verify-agent-notes.sh`,不提供运行时证据。实施时加载 `write-stable-tests`,增加 `shared/fixtures/debug/*-v2.json`,运行 ~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除)、~~./scripts/rust-core/verify-rust-core.sh~~(随旧客户端移除) 和对应平台测试;更新功能矩阵,真实调试流程结束后清理本次启动的进程和资源。 +本次只修改文档,运行 `./scripts/agent-notes/verify-agent-notes.sh`,不提供运行时证据。实施时加载 `write-stable-tests`,增加 `Lithe-core-rust/rust/fixtures/debug/*-v2.json`,运行 ~~./scripts/architecture/verify-shared-contracts.sh~~(随旧客户端移除)、~~./scripts/rust-core/verify-rust-core.sh~~(随旧客户端移除) 和对应平台测试;更新功能矩阵,真实调试流程结束后清理本次启动的进程和资源。 ## 适用范围 - Lithe-core-rust 锁定修订:[rust/lithe-core/src/debug/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/debug) -- `shared/fixtures/debug/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/fixtures/debug/` - ~~`macos/Sources/LitheCoreContracts/Debug/`~~(已随 #1794 移除) - ~~`macos/Sources/LitheDebugModule/`~~(已随 #1794 移除) - ~~`windows/tauri/src/features/debugger/`~~(已随 #1794 移除) diff --git a/.agents/notes/proposed/architecture/2026-10-25-unified-debug-engine-and-adapter-registry.md b/.agents/notes/proposed/architecture/2026-10-25-unified-debug-engine-and-adapter-registry.md index 8504a31065..18a35e7793 100644 --- a/.agents/notes/proposed/architecture/2026-10-25-unified-debug-engine-and-adapter-registry.md +++ b/.agents/notes/proposed/architecture/2026-10-25-unified-debug-engine-and-adapter-registry.md @@ -49,7 +49,7 @@ ### 2. 会话模型 v2:第一版就为扩展留位置 -会话投影版本 2 已在 Rust Core 落地,类型与校验见 `projection_v2.rs`(已随 #1794 移除),共享回归样例见 [`projection-v2-examples.json`](../../../../shared/fixtures/debug/projection-v2-examples.json)。实现与共享 fixture 是当前真源,不再维护独立的评审 schema。与 v1 相比: +会话投影版本 2 已在 Rust Core 落地,类型与校验见 `projection_v2.rs`(已随 #1794 移除),共享回归样例见 [`projection-v2-examples.json`](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/fixtures/debug/projection-v2-examples.json)。实现与共享 fixture 是当前真源,不再维护独立的评审 schema。与 v1 相比: | 预留 | 规则 | 为什么第一版就要定 | | --- | --- | --- | @@ -61,7 +61,7 @@ | 能力快照 | 有效支持 = 适配器协商结果 ∧ 本平台已注册的扩展 ∧ 授权;带递增 `revision` | 界面只看快照,不看插件名或清单 | | 未知值不丢弃 | DAP 新增的枚举值、未知 `presentationHint`、未知停止原因原样保留 | 上游升级时不必先改三端解码器 | -v1 投影和命令保留到两端都迁到 v2 为止,然后在同一个 PR 里删除 v1、Swift 会话和按语言的工厂。Rust、Swift、TypeScript 共用 `shared/fixtures/debug/*-v2.json`。 +v1 投影和命令保留到两端都迁到 v2 为止,然后在同一个 PR 里删除 v1、Swift 会话和按语言的工厂。Rust、Swift、TypeScript 共用 `Lithe-core-rust/rust/fixtures/debug/*-v2.json`。 ### 3. 能力分三层 @@ -126,7 +126,7 @@ Registry 注册时不启动程序做验证。一个适配器在接入验收中 | P4 第三方纵向验收 | 两个平台各用一个真实第三方适配器(GDB DAP `gdb -i=dap` 或 `lldb-dap`)完成安装、选择、launch / attach、必选层全流程和资源回收 | | P5 删除旧路径 | 所有消费者迁到 v2 之后,在同一个 PR 里删除 Swift 会话、按语言的工厂和 v1 投影 | -P0 的清单落在 `shared/fixtures/debug/v1-baseline.json`:每一项指向 Rust、macOS 上现有的测试和 fixture(Windows 不在当前阶段范围内),并标明 `covered` / `partial` / `gap`。`scripts/architecture/verify-debug-v1-baseline.mjs` 曾检查引用的测试仍然存在(该脚本和接入它的 `verify-shared-contracts.sh` 都已不存在),防止重命名或删除悄悄缩小基线。 +P0 的清单落在 `Lithe-core-rust/rust/fixtures/debug/v1-baseline.json`:每一项指向 Rust、macOS 上现有的测试和 fixture(Windows 不在当前阶段范围内),并标明 `covered` / `partial` / `gap`。`scripts/architecture/verify-debug-v1-baseline.mjs` 曾检查引用的测试仍然存在(该脚本和接入它的 `verify-shared-contracts.sh` 都已不存在),防止重命名或删除悄悄缩小基线。 P1 已在 Rust Core 落地:v2 投影类型与校验(`debug/projection_v2.rs`,共用 `projection-v2-examples.json`)、DAP `startDebugging` 反向请求(`debug.startDebuggingResponse`,仅在宿主声明 `supportsStartDebuggingRequest` 时启用)、Node source map 位置透传。macOS 的 `DebugProjectionV2` 与 Core 会话读同一份 fixture。旧的 Swift `DebugAdapterProtocolSession` 已删除:Java、Python、Rust 全部走 Core 会话(Python、Rust 经 `DebugAdapterRuntimeFactory` 用 stdio 传输)。宿主同时移除了内置的 Go(Delve)和 Node(js-debug)调试,TCP 传输、会话工厂、启动配置解析和语言包调试入口都已删除,之后由对应语言插件按 Registry 契约补上。P1 之后基础层逻辑也已在 Core 落地(`debug/capabilities.rs`、`engine.rs`):能力快照 `supported = 适配器协商 ∧ 扩展注册 ∧ 已授权`,带单调递增 `revision`,只在变化时发出;插件只能通过 `disabledCapabilities` 关闭标准能力,`supportsConfigurationDoneRequest` 不可关闭。停止代数(`stopGeneration`)在停止、继续、终止时递增,旧代数发出的引用型请求的回复被丢弃并报 `StaleReference`(`stale-reference-v1.json`)。evaluate 的 context 受校验。Core 记录父子会话树,随父会话停止发出 `ChildSessionStopRequested`。子会话生命周期与父会话统一:销毁父会话会级联销毁整棵子树(叶子在前),`debug.destroySession` 返回 `destroyedChildSessionIds` 供宿主关闭对应传输,Core 里不会留下孤儿子会话。栈帧与作用域响应同时发出 v2 `Projection` 事件,v1 仍为准,校验失败的 v2 投影不下发。 macOS 多会话(本阶段):宿主在 `DebugAdapterSessionManager` 里实现 `startDebugging`。父会话收到反向请求后,管理器通过 `makeChildSession` 向 provider 要一个子会话,把父会话的 Core 会话 ID 设为子会话的 `parentSessionId`,登记为带 `parentID` 的会话并用请求里的配置启动。子会话不会替换 provider 的当前会话(兼容目标仍是父会话),所以单会话的断点、状态和按钮行为不变。生命周期由宿主统一:停止父会话先停子会话;父会话进入 `terminated` 或 `failed` 也会关闭它的子会话;功能模型同步清理快照、Java 热更新目标,并在当前会话消失时改选剩余会话,没有剩余会话就回到空闲。 @@ -326,8 +326,8 @@ P0–P5 完成后关闭 #1210。可选扩展、插件依赖和私有 resolver - Lithe-core-rust 锁定修订:[rust/lithe-core/src/debug/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/debug) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/plugins/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/plugins) - `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/` -- `shared/contracts/rust-core-api.md` -- `shared/fixtures/debug/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/fixtures/debug/` - ~~`macos/Sources/LitheCoreContracts/Debug/`~~(已随 #1794 移除) - ~~`macos/Sources/LitheDebugModule/`~~(已随 #1794 移除) - ~~`macos/Sources/Lithe/Services/Debug/`~~(已随 #1794 移除) diff --git a/.agents/notes/proposed/architecture/2026-10-26-maven-java-domain-plugin-migration.md b/.agents/notes/proposed/architecture/2026-10-26-maven-java-domain-plugin-migration.md index 8d25519132..557cc9c37d 100644 --- a/.agents/notes/proposed/architecture/2026-10-26-maven-java-domain-plugin-migration.md +++ b/.agents/notes/proposed/architecture/2026-10-26-maven-java-domain-plugin-migration.md @@ -145,7 +145,7 @@ Maven 插件单独使用 [`Lithe-IDEA/lithe-plugin-maven@bfa56dc80914df22ab60967 | `debug.javaTestLaunch`;`debug.steppingFilters` 中的 Java 默认值 | `RustDebugProtocolCore`、Debug resolver | 本次未检出这两个命令的 Windows 直接字面量调用;Windows debugger 仍有平台会话/调试端口 API | 随 J7 迁移 Java 专属默认值/启动配置;保留通用调试协议、端口与会话管理,删除前复核间接调用。 | | 通用 `build.*` / `lsp.*` / `debug.*` | 两类服务与通用调试 | 依据各端当前接入情况;本基线 Windows 构建窗口并未等同于 macOS Provider 接入 | 保留通用能力,移除其中 Maven/Java 专属策略;任何新第二平台行为先补 shared fixture。 | -`shared/contracts/application-boundary.md`、`rust-core-api.md` 中的当前 Java/Maven Core 归属描述仍反映旧实现;随对应命令/路径真正迁移而更新,不能在阶段 A 把现存契约直接改成未来事实。 +`Lithe-core-rust/rust/contracts/application-boundary.md`、`rust-core-api.md` 中的当前 Java/Maven Core 归属描述仍反映旧实现;随对应命令/路径真正迁移而更新,不能在阶段 A 把现存契约直接改成未来事实。 ### 七、上游复用与未决选型 @@ -222,7 +222,7 @@ git diff --check - ~~`macos/Sources/Lithe/Platform/MacOS/`~~(已随 #1794 移除)、`macos/Sources/LitheExecutionModule/`、`macos/Sources/LitheLanguageIntelligenceModule/` - Lithe-core-rust 锁定修订:[rust/lithe-core/src/build/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/build)、`rust/lithe-core/src/project/`、`rust/lithe-core/src/execution/`、`rust/lithe-core/src/lsp/`、`rust/lithe-core/src/debug/` - 已迁出:原 `Plugins/mac/Official/JavaSupport/`。官方插件的源码、组装与发布已移出本仓库(#1495),改由各插件仓库自行构建发布([lithe-plugin-java](https://github.com/Lithe-IDEA/lithe-plugin-java)、[lithe-plugin-maven](https://github.com/Lithe-IDEA/lithe-plugin-maven)、[lithe-plugin-gradle](https://github.com/Lithe-IDEA/lithe-plugin-gradle)),Store 索引由 Lithe Store 维护。 -- `shared/contracts/`、`shared/fixtures/`、`shared/platform-feature-matrix/features/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/contracts/`、`Lithe-core-rust/rust/fixtures/`、`shared/platform-feature-matrix/features/` - ~~`windows/tauri/src/features/`~~(已随 #1794 移除)、`windows/tauri/src/platform/`、`windows/tauri/src-tauri/src/` - 外部 Maven 后端:[`Lithe-IDEA/lithe-plugin-maven`][maven-plugin] - 关联决策:[Java 声明式资源插件][java-note]、[通用 LSP Runtime][lsp-note]、[Build System 当前契约][build-note]、[Java 独立分发提案][distribution-note]、[真实配置读写][settings-note]、[#1210 调试提案][debug-note] diff --git a/.agents/notes/proposed/architecture/2026-10-31-plugin-injected-toolchains.md b/.agents/notes/proposed/architecture/2026-10-31-plugin-injected-toolchains.md index 59660f42c1..968ee5eaa7 100644 --- a/.agents/notes/proposed/architecture/2026-10-31-plugin-injected-toolchains.md +++ b/.agents/notes/proposed/architecture/2026-10-31-plugin-injected-toolchains.md @@ -188,7 +188,7 @@ macOS 的声明式路线由 `MacToolchainDiscovery` 执行,宿主不认识任 ## 适用范围 - `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/` -- `shared/contracts/toolchain-local-v1.schema.json` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/toolchain-local-v1.schema.json` - Lithe-core-rust 锁定修订:[rust/lithe-core/src/plugins/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/plugins) - Lithe-core-rust 锁定修订:[rust/lithe-core/src/execution/](https://github.com/Lithe-IDEA/Lithe-core-rust/tree/0ffd327b4329261e393b08ed76fbd134b4dd17e9/rust/lithe-core/src/execution) - 已迁出:原 `macos/Sources/Lithe/Services/Java/ProjectRuntimeService.swift`。宿主侧 Java 专属代码已删除(#1495);运行、调试、入口标记与工具链改走通用插件 API(`run/start`、`debug/start`、`editor/registerActions`、`toolDefinitions`),实现见 [lithe-plugin-java](https://github.com/Lithe-IDEA/lithe-plugin-java)。 diff --git a/.agents/notes/proposed/bug-fix/2026-09-13-single-repository-git-status-observation.md b/.agents/notes/proposed/bug-fix/2026-09-13-single-repository-git-status-observation.md index 29cdecec2b..f40d73b280 100644 --- a/.agents/notes/proposed/bug-fix/2026-09-13-single-repository-git-status-observation.md +++ b/.agents/notes/proposed/bug-fix/2026-09-13-single-repository-git-status-observation.md @@ -291,4 +291,4 @@ separate git-dir 均通过验收;Git-only 事件不触发项目树/编辑器/ - ~~`macos/Sources/LitheWorkspaceModule/Application/WorkspaceFeatureModel.swift`~~(已随 #1794 移除) - ~~`macos/Sources/LitheGitModule/Application/GitFeatureModel.swift`~~(已随 #1794 移除) - ~~`macos/Sources/LitheCoreContracts/Workspace/FileVisibilityRules.swift`~~(已随 #1794 移除) -- `shared/contracts/` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/tree/main/rust/contracts/` diff --git a/.agents/notes/rejected/architecture/2026-09-13-windows-tauri-product-parity.md b/.agents/notes/rejected/architecture/2026-09-13-windows-tauri-product-parity.md index 1060466aad..f35880977c 100644 --- a/.agents/notes/rejected/architecture/2026-09-13-windows-tauri-product-parity.md +++ b/.agents/notes/rejected/architecture/2026-09-13-windows-tauri-product-parity.md @@ -46,7 +46,7 @@ Core 契约,也还没有在真实 Windows 机器上跑过完整回归。继续 的行为,因此改为"没有共享实现就显式失败"而不是伪造成功。 - **不等 Rust 实现 Windows 专属的进程/调试/更新/安全存储,先用 Tauri/Node 生态的第三方库垫上**:能更快让功能可用。但会绕开 - `shared/contracts/` 的错误码、取消、超时和陈旧结果语义,且这些 + `Lithe-core-rust/rust/contracts/` 的错误码、取消、超时和陈旧结果语义,且这些 库的行为很难和 macOS 对应能力保持一致,因此仍然要求这些流程落在 Rust 里、复用共享契约的语义。 - **在真实 Windows 机器上的回归推迟到功能全部迁移完成后再一次性 @@ -66,7 +66,7 @@ Core 契约,也还没有在真实 Windows 机器上跑过完整回归。继续 - Windows CI 能构建出真实可执行文件,并同时测试 `lithe-core` 和 Tauri host。 - 产品工作流按 - [`shared/contracts/application-boundary.md`](../../../../shared/contracts/application-boundary.md) + [`Lithe-core-rust/rust/contracts/application-boundary.md`](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/application-boundary.md) 的要求暴露错误、取消、超时和陈旧结果处理。 - 上述"提案"里的 5 项工作全部完成,且在真实 Windows 机器上跑过一轮 完整回归。 @@ -87,6 +87,6 @@ Core 契约,也还没有在真实 Windows 机器上跑过完整回归。继续 ## 适用范围 - `desktop/` -- `shared/contracts/application-boundary.md` +- `https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/application-boundary.md` - `shared/platform-feature-matrix/` - [旧 Windows 客户端(历史版本)](https://github.com/1lck/Lithe-IDEA/tree/5a54c41aa37a4e6e6b68918a4b05765b9dd07a36/windows/tauri) diff --git a/.agents/skills/develop-lithe/SKILL.md b/.agents/skills/develop-lithe/SKILL.md index e854a4c76e..9062c80ecc 100644 --- a/.agents/skills/develop-lithe/SKILL.md +++ b/.agents/skills/develop-lithe/SKILL.md @@ -17,7 +17,7 @@ description: 在 Lithe 仓库进行实现、重构、缺陷修复、审查、调 | Core | Lithe-core-rust 仓库的 `rust/lithe-core/`,由桌面构建脚本固定修订。 | | 平台层 | `desktop/` 中的 Viva 呈现、系统适配和桥接。 | | 原生适配器 | 直接调用操作系统 API 的桌面适配器,以及 Lithe-core-rust 的 `rust/lithe-git-host/` 等进程执行 crate。 | -| 共享契约 | `shared/contracts/` 下的接口文档与 schema,以及 `shared/fixtures/` 下的 fixture。 | +| 共享契约 | Lithe-core-rust 仓库 `rust/contracts/` 下的接口文档与 schema,以及 `rust/fixtures/` 下的 fixture。这是唯一的一份,本仓库不保存副本;桌面测试通过 `contractfixture.CoreFixture` 读取所链接的 Core 检出。 | | 主线程 | Viva 窗口的 UI 线程,以及平台原生窗口要求使用的线程。 | 路径除特别说明外都相对于仓库根目录;本文件中的 Markdown 链接相对于本文件。 @@ -41,7 +41,7 @@ description: 在 Lithe 仓库进行实现、重构、缺陷修复、审查、调 | 任务 | 必须读取 | | --- | --- | | 调整模块归属、依赖方向或架构边界 | `.agents/notes/implemented/architecture/` 中与该模块相关的 Note | -| 跨平台行为或共享接口 | `shared/contracts/application-boundary.md`、`shared/contracts/rust-core-api.md` 和相关 fixture | +| 跨平台行为或共享接口 | Lithe-core-rust 仓库的 `rust/contracts/application-boundary.md`、`rust/contracts/rust-core-api.md` 和 `rust/fixtures/` 下的相关 fixture | | 新增插件 API,或把内置工具迁移为插件 | `.agents/notes/implemented/architecture/2026-10-31-plugin-capability-and-domain-boundaries.md` | | 创建插件,或为已有插件新增提供者 | `.agents/skills/create-lithe-plugin/SKILL.md` | | macOS 界面、控件或视觉交互 | [macOS 共享控件规范](references/macos-ui.md),以及其中与本次改动相关的 Note | @@ -70,7 +70,7 @@ description: 在 Lithe 仓库进行实现、重构、缺陷修复、审查、调 | Lithe-core-rust 的 `rust/lithe-git-host/` | 原生子进程执行、管道、临时输入、进程树归属与有界清理 | | `desktop/` | Viva(Go)统一客户端:窗口、工作台呈现、平台适配和 Core C ABI 调用。功能仍在迁移,不能因代码存在就视为已验收 | | Lithe-IDEA 组织的插件仓库 | 插件源码、工具专属知识和插件包;不要在本仓库维护第二份 SDK 或插件业务 | -| `shared/` | 共享契约、fixture 和 i18n 词条;不放编译实现 | +| `shared/` | i18n 词条(`shared/i18n/`)和跨平台功能矩阵(`shared/platform-feature-matrix/`);不放编译实现。应用契约与 fixture 只在 Lithe-core-rust 的 `rust/contracts/`、`rust/fixtures/`,本仓库不保存副本 | | `scripts/`、`.github/` | 仓库级脚本和 CI 工作流;脚本按[脚本放置与分类](references/scripts.md)放置 | macOS 旧客户端是视觉与行为对照基线;新客户端共用 Viva 界面,macOS、Windows 和 Linux 的系统适配仍需分别验证。旧 Swift、React/Tauri 和 Monaco 目录已经从本分支移除,历史决策不能当作当前代码位置。 @@ -151,7 +151,7 @@ Lithe 自己负责的是:有界生命周期、取消、过期结果隔离、 - 失败返回稳定的错误码和面向用户的消息;平台专属细节放在契约的 `details` 字段。 - 新增 API 的每个数值错误码(例如 JSON-RPC 的 `error.code`)只对应一种错误,调用方只凭数值码就能分支。方法不存在、参数错误、取消等标准语义使用 JSON-RPC/LSP 标准码;其余错误各自占用服务端自定义区间内的独立码,并在契约文档和 fixture 中列出映射。已发布协议版本中的旧码保持不变,从新版本起区分。 - 进程型功能保留 `operationID`、取消、超时和过期结果丢弃语义。 -- 新的 Core 命令或字段接入任一平台之前,必须先补充或更新共享 fixture。 +- 新的 Core 命令或字段接入任一平台之前,必须先在 Core 仓库的 `rust/fixtures/` 补充或更新 fixture,与命令在同一个 Core PR 里合入;桌面端再把 `PINNED_CORE_REVISION` 升到包含它的 commit。 - 以下内容是兼容面,修改时必须同步更新契约文档和所有消费者:命令名、JSON 字段、错误码、C ABI 符号,以及 Core 的公开 Rust 类型、结构体字段和函数签名。除 Viva 桥接外还要检查 Core 仓库及插件等真实消费者;只改 Core 也必须修正受影响调用点。 ## 四、性能与内存 @@ -438,7 +438,7 @@ git diff --name-only origin/preview...HEAD | 日志事件、日志调用、界面警告或错误、会丢弃错误的代码 | 按共享日志契约检查目录与使用;旧日志生成和使用校验脚本已移除,等价检查恢复前标记门禁未完成 | | 测试代码或测试基础设施 | `./.agents/skills/write-stable-tests/scripts/verify-test-stability.sh`,再运行该 Skill 中对应平台的逐项计时入口 | | Viva 桌面代码 | `./scripts/desktop/desktop-go.sh test ./...`、受影响包的竞态测试,以及目标平台相应原生验证 | -| 共享应用行为或 JSON fixture | 运行受影响的 Core 与桌面契约测试;旧 `verify-shared-contracts.sh` 已移除,等价边界检查恢复前标记门禁未完成 | +| 共享应用行为或 JSON fixture | 在 Core 仓库运行受影响的测试;升级 `PINNED_CORE_REVISION`(或用 `LITHE_CORE_RUST_DIR` 指向本地 Core 检出)后,用 `./scripts/desktop/desktop-go.sh test` 运行读取该 fixture 的桌面测试;旧 `verify-shared-contracts.sh` 已移除,等价边界检查恢复前标记门禁未完成 | | Rust Core、JSON C ABI 或桌面桥接 | 先完成 Core 注释与契约检查,再运行受影响 crate、桥接和目标平台消费者测试;旧 Core 验证脚本移除后不得把缺失检查记为通过 | | Core 功能或 Git graph 行为 | 运行所属 Core crate 和桌面消费者的相关测试;旧 `verify-core.sh`、`verify-git-graph.sh` 移除后,等价边界验证恢复前标记门禁未完成 | | 运行时资源或发行目录只读边界 | `./scripts/macos/verify/verify-runtime-bundle-immutability.sh` | diff --git a/.agents/skills/lithe-code-review/references/local-review.md b/.agents/skills/lithe-code-review/references/local-review.md index 11d1684712..8e9857f496 100644 --- a/.agents/skills/lithe-code-review/references/local-review.md +++ b/.agents/skills/lithe-code-review/references/local-review.md @@ -19,7 +19,7 @@ - 根目录 `AGENTS.md` 和适用的局部规则。 - `.agents/notes/implemented/` 中相关架构决策。 -- `shared/contracts/` 中受影响的共享契约。 +- Lithe-core-rust 仓库 `rust/contracts/` 中受影响的共享契约。 - 受影响模块附近的测试和 fixture。 - 测试代码变更对应的 `write-stable-tests` 规则。 diff --git a/.gitignore b/.gitignore index 95038e287e..dd9d0879b9 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,9 @@ reasonix.toml # Top-level directories of the in-repository Rust kernel and the SwiftUI and Tauri clients, # which this tree no longer has. Checkouts that switch here from an older branch keep their # ignored build state (cargo targets, SwiftPM and node_modules directories) on disk; these -# entries keep it out of git status. Shared contracts, fixtures and i18n remain tracked. +# entries keep it out of git status. Only shared/i18n and shared/platform-feature-matrix remain +# tracked: application contracts and fixtures live in Lithe-core-rust (rust/contracts, +# rust/fixtures), so a copy left under shared/ stays out of git. /rust/ /macos/ /windows/ @@ -22,8 +24,6 @@ reasonix.toml /third_party/ /shared/* !/shared/i18n/ -!/shared/contracts/ -!/shared/fixtures/ !/shared/platform-feature-matrix/ /node_modules/ /.build/ diff --git a/desktop/internal/contractfixture/contractfixture.go b/desktop/internal/contractfixture/contractfixture.go index 77675cf039..f11ce2559d 100644 --- a/desktop/internal/contractfixture/contractfixture.go +++ b/desktop/internal/contractfixture/contractfixture.go @@ -1,6 +1,7 @@ -// Package contractfixture locates the plugin contract that tests read. The contract has a single -// source, shared/plugins/contract/v1/ of the Lithe-core-rust checkout this client links, and this -// repository keeps no copy. scripts/desktop/desktop-go.sh exports LITHE_PLUGIN_CONTRACT_DIR for +// Package contractfixture locates the contract files that tests read. The plugin contract +// (shared/plugins/contract/v1/) and the application fixtures (rust/fixtures/) each have a single +// source in the Lithe-core-rust checkout this client links, and this repository keeps no copy. +// scripts/desktop/desktop-go.sh exports LITHE_PLUGIN_CONTRACT_DIR and LITHE_CORE_FIXTURE_DIR for // the same checkout it builds: the pinned clone, or LITHE_CORE_RUST_DIR when that is set. package contractfixture @@ -9,16 +10,32 @@ import ( "path/filepath" ) -// EnvironmentVariable names the contract directory of the linked Lithe-core-rust checkout. +// EnvironmentVariable names the plugin contract directory of the linked Lithe-core-rust checkout. const EnvironmentVariable = "LITHE_PLUGIN_CONTRACT_DIR" -// Path returns rel inside the contract directory, for example "fixtures/backend/backend.plugin.json". -// It panics when the variable is unset, because a test that silently read nothing would pass -// without checking the contract; run Go through scripts/desktop/desktop-go.sh instead. +// CoreFixtureEnvironmentVariable names the rust/fixtures directory of the linked Lithe-core-rust +// checkout. +const CoreFixtureEnvironmentVariable = "LITHE_CORE_FIXTURE_DIR" + +// Path returns rel inside the plugin contract directory, for example +// "fixtures/backend/backend.plugin.json". It panics when the variable is unset, because a test +// that silently read nothing would pass without checking the contract; run Go through +// scripts/desktop/desktop-go.sh instead. func Path(rel string) string { - dir := os.Getenv(EnvironmentVariable) + return join(EnvironmentVariable, rel) +} + +// CoreFixture returns rel inside the Core fixture directory, for example +// "git/status-porcelain-v2.json". It panics when the variable is unset, for the same reason as +// Path. +func CoreFixture(rel string) string { + return join(CoreFixtureEnvironmentVariable, rel) +} + +func join(variable, rel string) string { + dir := os.Getenv(variable) if dir == "" { - panic(EnvironmentVariable + " is not set; run Go through scripts/desktop/desktop-go.sh") + panic(variable + " is not set; run Go through scripts/desktop/desktop-go.sh") } return filepath.Join(dir, filepath.FromSlash(rel)) } diff --git a/desktop/internal/core/ai_configuration_test.go b/desktop/internal/core/ai_configuration_test.go index 80fac8d68a..b97412ebab 100644 --- a/desktop/internal/core/ai_configuration_test.go +++ b/desktop/internal/core/ai_configuration_test.go @@ -6,6 +6,8 @@ import ( "path/filepath" "strings" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestAIConfigurationSourcesUsesCorePaths(t *testing.T) { @@ -109,7 +111,7 @@ func TestAIConfigurationRejectsUnknownSource(t *testing.T) { } func TestAIConfigurationParseMatchesSharedFixture(t *testing.T) { - data, err := os.ReadFile(filepath.Join("..", "..", "..", "shared", "fixtures", "ai", "cli-configuration-v1.json")) + data, err := os.ReadFile(contractfixture.CoreFixture("ai/cli-configuration-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/ai_generation.go b/desktop/internal/core/ai_generation.go index 4fd25c5a31..77be54739e 100644 --- a/desktop/internal/core/ai_generation.go +++ b/desktop/internal/core/ai_generation.go @@ -226,7 +226,7 @@ func (c *Client) CommitMessageContextIsCurrent(ctx context.Context, mode string, // IDEHostControl sends one ideHost.control action to the local capability // broker and returns the raw result. Actions are open, close, closeOwner, poll, -// claim, respond, catalog, validate and output; see shared/contracts/ide-api/v1.md. +// claim, respond, catalog, validate and output; see Lithe-core-rust rust/contracts/ide-api/v1.md. func (c *Client) IDEHostControl(ctx context.Context, action string, arguments any) (json.RawMessage, error) { var result json.RawMessage err := c.Execute(ctx, "ideHost.control", struct { diff --git a/desktop/internal/core/ai_generation_test.go b/desktop/internal/core/ai_generation_test.go index ff762f8255..1993a0c3ad 100644 --- a/desktop/internal/core/ai_generation_test.go +++ b/desktop/internal/core/ai_generation_test.go @@ -3,15 +3,16 @@ package core import ( "encoding/json" "os" - "path/filepath" "strings" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) -// readSharedJSON decodes a fixture under the repository shared directory. -func readSharedJSON(t *testing.T, path string, value any) { +// readCoreFixtureJSON decodes a fixture under rust/fixtures of the linked Core checkout. +func readCoreFixtureJSON(t *testing.T, path string, value any) { t.Helper() - data, err := os.ReadFile(filepath.Join(append([]string{"..", "..", "..", "shared"}, filepath.SplitList(path)...)...)) + data, err := os.ReadFile(contractfixture.CoreFixture(path)) if err != nil { t.Fatal(err) } @@ -31,7 +32,7 @@ func TestAICommitFixture(t *testing.T) { } `json:"responses"` ExpectedMessage string `json:"expectedMessage"` } - readSharedJSON(t, "fixtures/ai/commit-generation-v1.json", &fixture) + readCoreFixtureJSON(t, "ai/commit-generation-v1.json", &fixture) client := NewClient() for i := range fixture.Files { n := len([]rune(fixture.Files[i].Diff)) @@ -73,7 +74,7 @@ func TestAIInlineEditFixture(t *testing.T) { } `json:"expected"` } `json:"plans"` } - readSharedJSON(t, "fixtures/ai/inline-edit-v1.json", &fixture) + readCoreFixtureJSON(t, "ai/inline-edit-v1.json", &fixture) client := NewClient() checked := 0 for _, item := range fixture.Plans { diff --git a/desktop/internal/core/ai_pull_request.go b/desktop/internal/core/ai_pull_request.go index d84ab4fbda..62b1a74c08 100644 --- a/desktop/internal/core/ai_pull_request.go +++ b/desktop/internal/core/ai_pull_request.go @@ -5,7 +5,7 @@ import ( "encoding/json" ) -// This file wraps the AI pull-request description commands (shared/contracts/ai-generation-requests.md). +// This file wraps the AI pull-request description commands (Lithe-core-rust rust/contracts/ai-generation-requests.md). // Core shapes the prompt, applies the sensitive-path policy and the diff budget, and decodes the // model's answer; the host sends the planned request with the provider's credentials. diff --git a/desktop/internal/core/changelists_test.go b/desktop/internal/core/changelists_test.go index 6c0c82e6e2..208a846cfc 100644 --- a/desktop/internal/core/changelists_test.go +++ b/desktop/internal/core/changelists_test.go @@ -6,10 +6,12 @@ import ( "path/filepath" "reflect" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestChangeListsUseSharedMembershipAndScope(t *testing.T) { - data, err := os.ReadFile(filepath.Join("..", "..", "..", "shared", "fixtures", "git", "changelists-reducer-v1.json")) + data, err := os.ReadFile(contractfixture.CoreFixture("git/changelists-reducer-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/debug_state_test.go b/desktop/internal/core/debug_state_test.go index a7239e5e81..079f0f568e 100644 --- a/desktop/internal/core/debug_state_test.go +++ b/desktop/internal/core/debug_state_test.go @@ -4,15 +4,16 @@ import ( "context" "encoding/json" "os" - "path/filepath" "reflect" "testing" "time" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func readDebugFixture(t *testing.T, name string) []byte { t.Helper() - data, err := os.ReadFile(filepath.Join("..", "..", "..", "shared", "fixtures", "debug", name)) + data, err := os.ReadFile(contractfixture.CoreFixture("debug/" + name)) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/document_text_test.go b/desktop/internal/core/document_text_test.go index 8724f73f7e..0fbf1fc441 100644 --- a/desktop/internal/core/document_text_test.go +++ b/desktop/internal/core/document_text_test.go @@ -3,12 +3,13 @@ package core import ( "encoding/json" "os" - "path/filepath" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestDocumentTextClassificationUsesSharedFixtures(t *testing.T) { - data, err := os.ReadFile(filepath.Join("..", "..", "..", "shared", "fixtures", "editor", "text-content-v1.json")) + data, err := os.ReadFile(contractfixture.CoreFixture("editor/text-content-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/file_encoding_test.go b/desktop/internal/core/file_encoding_test.go index 09712acdb1..f46d1d265d 100644 --- a/desktop/internal/core/file_encoding_test.go +++ b/desktop/internal/core/file_encoding_test.go @@ -6,10 +6,12 @@ import ( "encoding/json" "os" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestFileEncodingSharedFixtures(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/editor/file-encoding-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("editor/file-encoding-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/git_checkout_test.go b/desktop/internal/core/git_checkout_test.go index 0255a95c31..68f1292511 100644 --- a/desktop/internal/core/git_checkout_test.go +++ b/desktop/internal/core/git_checkout_test.go @@ -4,13 +4,14 @@ import ( "context" "encoding/json" "os" - "path/filepath" "strings" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestCheckoutMetadataUsesSharedFixture(t *testing.T) { - data, err := os.ReadFile(filepath.Join("..", "..", "..", "shared", "fixtures", "git", "checkout-metadata-v1.json")) + data, err := os.ReadFile(contractfixture.CoreFixture("git/checkout-metadata-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/gitconsole_test.go b/desktop/internal/core/gitconsole_test.go index a493a4902f..351dbf6e0a 100644 --- a/desktop/internal/core/gitconsole_test.go +++ b/desktop/internal/core/gitconsole_test.go @@ -9,9 +9,11 @@ import ( "strings" "testing" "time" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) -// consoleLifecycleFixture is shared/fixtures/git/console-lifecycle-v1.json, which every host's +// consoleLifecycleFixture is Lithe-core-rust rust/fixtures/git/console-lifecycle-v1.json, which every host's // journal replays. type consoleLifecycleFixture struct { Version int `json:"version"` @@ -36,7 +38,7 @@ func newTestConsole() *GitConsole { } func TestGitConsoleReplaysTheSharedLifecycleFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/git/console-lifecycle-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("git/console-lifecycle-v1.json")) if err != nil { t.Fatalf("read fixture: %v", err) } diff --git a/desktop/internal/core/github.go b/desktop/internal/core/github.go index 55b2cc7941..d24a9579ac 100644 --- a/desktop/internal/core/github.go +++ b/desktop/internal/core/github.go @@ -5,7 +5,7 @@ import ( "encoding/json" ) -// This file wraps Rust Core's GitHub planning commands (shared/contracts/github.md). Core plans +// This file wraps Rust Core's GitHub planning commands (Lithe-core-rust rust/contracts/github.md). Core plans // every request and normalizes every response; the host performs the HTTPS calls itself (see // internal/githubapi) and never builds a path or a body of its own. diff --git a/desktop/internal/core/github_checkout.go b/desktop/internal/core/github_checkout.go index a4f47a4295..f8e8bc6218 100644 --- a/desktop/internal/core/github_checkout.go +++ b/desktop/internal/core/github_checkout.go @@ -2,7 +2,7 @@ package core import "context" -// This file wraps the pull-request checkout commands (shared/contracts/github.md): a preview that +// This file wraps the pull-request checkout commands (Lithe-core-rust rust/contracts/github.md): a preview that // inspects the checkout without changing it, and the checkout that rechecks the reviewed preview // under the repository's write lease before it fetches and creates the branch. diff --git a/desktop/internal/core/history.go b/desktop/internal/core/history.go index 72c2860966..d37186189e 100644 --- a/desktop/internal/core/history.go +++ b/desktop/internal/core/history.go @@ -4,7 +4,7 @@ import "context" // Local history: Core stores versioned snapshots of workspace files under a // host-chosen storage root and decides, per editing event, which snapshots are -// taken (shared/contracts/rust-core-api.md, history.*). +// taken (Lithe-core-rust rust/contracts/rust-core-api.md, history.*). // HistoryEntry is one stored snapshot of a file. type HistoryEntry struct { diff --git a/desktop/internal/core/line_edit_test.go b/desktop/internal/core/line_edit_test.go index d75d79e30a..7e02b9f5c9 100644 --- a/desktop/internal/core/line_edit_test.go +++ b/desktop/internal/core/line_edit_test.go @@ -4,14 +4,15 @@ import ( "context" "encoding/json" "os" - "path/filepath" "reflect" "strings" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestLineEditsUseCoreFixtures(t *testing.T) { - data, err := os.ReadFile(filepath.Join("..", "..", "..", "shared", "fixtures", "editor", "line-edit-v1.json")) + data, err := os.ReadFile(contractfixture.CoreFixture("editor/line-edit-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/markdown_test.go b/desktop/internal/core/markdown_test.go index 1ffc5f7cf1..bf6607f8eb 100644 --- a/desktop/internal/core/markdown_test.go +++ b/desktop/internal/core/markdown_test.go @@ -5,10 +5,12 @@ import ( "os" "strings" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestRenderMarkdownSharedFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/editor/markdown-render-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("editor/markdown-render-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/navigation_history_test.go b/desktop/internal/core/navigation_history_test.go index b497b16fe8..c093b65a2d 100644 --- a/desktop/internal/core/navigation_history_test.go +++ b/desktop/internal/core/navigation_history_test.go @@ -4,10 +4,12 @@ import ( "encoding/json" "os" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestReduceNavigationHistorySharedFixtures(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/editor/navigation-history-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("editor/navigation-history-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/navigation_test.go b/desktop/internal/core/navigation_test.go index 2c303a4e83..30cb900644 100644 --- a/desktop/internal/core/navigation_test.go +++ b/desktop/internal/core/navigation_test.go @@ -5,10 +5,12 @@ import ( "os" "reflect" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestParseNavigationInputSharedFixtures(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/editor/navigation-input-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("editor/navigation-input-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/plugin_diagnostics_test.go b/desktop/internal/core/plugin_diagnostics_test.go index 7e24613438..191ff7a7ab 100644 --- a/desktop/internal/core/plugin_diagnostics_test.go +++ b/desktop/internal/core/plugin_diagnostics_test.go @@ -54,7 +54,7 @@ func TestDecodePluginDiagnostics(t *testing.T) { } func TestDisplaySeverityMatchesTheFixture(t *testing.T) { - // shared/fixtures/lsp/diagnostic-code-actions-v1.json lists these cases. + // Lithe-core-rust rust/fixtures/lsp/diagnostic-code-actions-v1.json lists these cases. cases := []struct { severity *int want string diff --git a/desktop/internal/core/plugin_documents_test.go b/desktop/internal/core/plugin_documents_test.go index cc156cc7ae..29ec6d6380 100644 --- a/desktop/internal/core/plugin_documents_test.go +++ b/desktop/internal/core/plugin_documents_test.go @@ -6,6 +6,8 @@ import ( "os" "reflect" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestPluginDocumentSyncDecodesCoreResponse(t *testing.T) { @@ -57,7 +59,7 @@ func TestPluginDocumentSyncRequestKeepsTextOptional(t *testing.T) { } func TestPluginDocumentURIUsesCoreFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/lsp/document-uri-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("lsp/document-uri-v1.json")) if err != nil { t.Fatal(err) } @@ -93,7 +95,7 @@ func TestPluginDocumentURIUsesCoreFixture(t *testing.T) { } func TestPluginDocumentIdentityUsesCoreFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/lsp/document-identity-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("lsp/document-identity-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/plugin_installed_test.go b/desktop/internal/core/plugin_installed_test.go index c0a668c1a6..187ee61361 100644 --- a/desktop/internal/core/plugin_installed_test.go +++ b/desktop/internal/core/plugin_installed_test.go @@ -7,10 +7,12 @@ import ( "reflect" "testing" "time" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestInstalledPluginVersionSelectionMatchesSharedCoreFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/plugins/installed-versions.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/installed-versions.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/plugin_setting_actions_test.go b/desktop/internal/core/plugin_setting_actions_test.go index 68d7597f21..339de2db1d 100644 --- a/desktop/internal/core/plugin_setting_actions_test.go +++ b/desktop/internal/core/plugin_setting_actions_test.go @@ -13,7 +13,7 @@ import ( ) func TestPluginSettingActionPlansMatchSharedFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-actions.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-actions.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/plugin_settings_test.go b/desktop/internal/core/plugin_settings_test.go index d38ada94d3..aff41fcd42 100644 --- a/desktop/internal/core/plugin_settings_test.go +++ b/desktop/internal/core/plugin_settings_test.go @@ -13,7 +13,7 @@ import ( ) func TestPluginSettingsDocumentSharedFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } @@ -154,7 +154,7 @@ func TestPluginWorkspaceConfigurationUpdatesTheSameRealSession(t *testing.T) { func TestInstalledPluginSettingsStateBindsRegistrationIdentityInCore(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/plugin_symbols_test.go b/desktop/internal/core/plugin_symbols_test.go index a21cf23f63..a37f24ce37 100644 --- a/desktop/internal/core/plugin_symbols_test.go +++ b/desktop/internal/core/plugin_symbols_test.go @@ -4,10 +4,12 @@ import ( "encoding/json" "os" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestPluginDocumentSymbolsSharedFixtures(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/lsp/document-symbols-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("lsp/document-symbols-v1.json")) if err != nil { t.Fatal(err) } @@ -48,7 +50,7 @@ func TestPluginDocumentSymbolsSharedFixtures(t *testing.T) { } func TestPluginSemanticTokensSharedFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/lsp/semantic-tokens-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("lsp/semantic-tokens-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/problems_test.go b/desktop/internal/core/problems_test.go index cc58116b8a..205d904577 100644 --- a/desktop/internal/core/problems_test.go +++ b/desktop/internal/core/problems_test.go @@ -5,13 +5,15 @@ import ( "os" "reflect" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) // The shared fixture is the contract between Core and every host. Running it // through the real kernel catches a bridge type that drifted from the JSON the // kernel actually emits. func TestQueryProblemsSharedFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/lsp/problems-query-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("lsp/problems-query-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/process_lifecycle_test.go b/desktop/internal/core/process_lifecycle_test.go index af79eb5a57..0b7bc2ebf0 100644 --- a/desktop/internal/core/process_lifecycle_test.go +++ b/desktop/internal/core/process_lifecycle_test.go @@ -3,14 +3,15 @@ package core import ( "encoding/json" "os" - "path/filepath" "reflect" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func readLifecycleFixture(t *testing.T, name string) []byte { t.Helper() - data, err := os.ReadFile(filepath.Join("..", "..", "..", "shared", "fixtures", "process-lifecycle", name)) + data, err := os.ReadFile(contractfixture.CoreFixture("process-lifecycle/" + name)) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/rank_names_test.go b/desktop/internal/core/rank_names_test.go index d1a44684fc..9dac300cca 100644 --- a/desktop/internal/core/rank_names_test.go +++ b/desktop/internal/core/rank_names_test.go @@ -7,10 +7,12 @@ import ( "os" "reflect" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestRankNamesSharedFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/search/rank-names-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("search/rank-names-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/repository_discovery_test.go b/desktop/internal/core/repository_discovery_test.go index 7fa8037bf3..ab7a2f3deb 100644 --- a/desktop/internal/core/repository_discovery_test.go +++ b/desktop/internal/core/repository_discovery_test.go @@ -6,6 +6,8 @@ import ( "path/filepath" "reflect" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestWorkspaceRepositoryDiscoveryUsesCoreRules(t *testing.T) { @@ -42,7 +44,7 @@ func TestWorkspaceRepositoryDiscoveryUsesCoreRules(t *testing.T) { } func TestRepositoryColorAssignmentsUseCoreFixtures(t *testing.T) { - data, err := os.ReadFile(filepath.Join("..", "..", "..", "shared", "fixtures", "git", "repository-colors-v1.json")) + data, err := os.ReadFile(contractfixture.CoreFixture("git/repository-colors-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/run_config_test.go b/desktop/internal/core/run_config_test.go index f8cd439ab9..5fd5354939 100644 --- a/desktop/internal/core/run_config_test.go +++ b/desktop/internal/core/run_config_test.go @@ -7,6 +7,8 @@ import ( "path/filepath" "testing" "time" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) // A provider run snapshot becomes one effective build.provider configuration whose @@ -104,7 +106,7 @@ func TestRunConfigurationOptionsRoundTrip(t *testing.T) { // TestTitleActionsFollowTheContractFixture replays every title bar case through the typed // wrapper. func TestTitleActionsFollowTheContractFixture(t *testing.T) { - data, err := os.ReadFile(filepath.Join("..", "..", "..", "shared", "fixtures", "run-configuration", "title-action-v1.json")) + data, err := os.ReadFile(contractfixture.CoreFixture("run-configuration/title-action-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/run_discovery_test.go b/desktop/internal/core/run_discovery_test.go index d56264f4dd..ee5c63ea78 100644 --- a/desktop/internal/core/run_discovery_test.go +++ b/desktop/internal/core/run_discovery_test.go @@ -6,11 +6,13 @@ import ( "path/filepath" "reflect" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func readExecutionFixture(t *testing.T, name string) []byte { t.Helper() - data, err := os.ReadFile(filepath.Join("..", "..", "..", "shared", "fixtures", "execution", name)) + data, err := os.ReadFile(contractfixture.CoreFixture("execution/" + name)) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/settings_surfaces_test.go b/desktop/internal/core/settings_surfaces_test.go index 3c0ce701ca..8ba39c5dd7 100644 --- a/desktop/internal/core/settings_surfaces_test.go +++ b/desktop/internal/core/settings_surfaces_test.go @@ -7,10 +7,12 @@ import ( "reflect" "testing" "time" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestSettingsSurfacesSharedVectors(t *testing.T) { - bytes, err := os.ReadFile("../../../shared/fixtures/plugins/settings-surfaces.json") + bytes, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-surfaces.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/toolchain_sources_test.go b/desktop/internal/core/toolchain_sources_test.go index 6cfc643b62..94c7c718f7 100644 --- a/desktop/internal/core/toolchain_sources_test.go +++ b/desktop/internal/core/toolchain_sources_test.go @@ -7,10 +7,12 @@ import ( "reflect" "testing" "time" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestToolchainPinSourcesMatchSharedFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/toolchain-pin-storage.json") + data, err := os.ReadFile(contractfixture.CoreFixture("toolchain-pin-storage.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/toolchain_test.go b/desktop/internal/core/toolchain_test.go index 629245cf1f..bc02acea78 100644 --- a/desktop/internal/core/toolchain_test.go +++ b/desktop/internal/core/toolchain_test.go @@ -7,10 +7,12 @@ import ( "reflect" "testing" "time" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestToolchainPinEditingMatchesSharedFixture(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/toolchain-pin-edit.json") + data, err := os.ReadFile(contractfixture.CoreFixture("toolchain-pin-edit.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/workspace_everywhere_test.go b/desktop/internal/core/workspace_everywhere_test.go index e97f672bea..32851e1ff8 100644 --- a/desktop/internal/core/workspace_everywhere_test.go +++ b/desktop/internal/core/workspace_everywhere_test.go @@ -9,10 +9,12 @@ import ( "reflect" "testing" "time" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) func TestEverywhereSearchPagesUseCoreRankingAndContext(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/search/search-everywhere-context-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("search/search-everywhere-context-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/core/workspace_tree_test.go b/desktop/internal/core/workspace_tree_test.go index 9a492185fa..a6e71191bf 100644 --- a/desktop/internal/core/workspace_tree_test.go +++ b/desktop/internal/core/workspace_tree_test.go @@ -6,13 +6,15 @@ import ( "path/filepath" "reflect" "testing" + + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" ) // The desktop tree displays Core's order directly on both platforms. The // release-notes fixture avoids case-only names, which cannot coexist on the // default Windows and macOS filesystems. func TestWorkspaceDirectoryTreeUsesCoreNaturalOrder(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/workspace/file-name-order-v1.json") + data, err := os.ReadFile(contractfixture.CoreFixture("workspace/file-name-order-v1.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/githubapi/transport.go b/desktop/internal/githubapi/transport.go index 3e9cb121b4..1689f87a61 100644 --- a/desktop/internal/githubapi/transport.go +++ b/desktop/internal/githubapi/transport.go @@ -1,5 +1,5 @@ // Package githubapi performs GitHub HTTPS requests for the desktop client. Rust Core plans every -// request and normalizes every response (shared/contracts/github.md); this package only sends the +// request and normalizes every response (Lithe-core-rust rust/contracts/github.md); this package only sends the // planned request on the trusted hosts, attaches the account's token when the plan asks for one, // and bounds the response. A token is never put in an error or a log. package githubapi diff --git a/desktop/internal/githubapi/types.go b/desktop/internal/githubapi/types.go index 1932605d09..c2b4b77011 100644 --- a/desktop/internal/githubapi/types.go +++ b/desktop/internal/githubapi/types.go @@ -45,7 +45,7 @@ func DecodeUser(raw json.RawMessage) (User, error) { return user, err } -// The normalized shapes Rust Core returns (shared/contracts/github.md). They are decoded from the +// The normalized shapes Rust Core returns (Lithe-core-rust rust/contracts/github.md). They are decoded from the // normalized JSON; the host reads them and never reshapes them. // User is a GitHub account. diff --git a/desktop/internal/pluginservice/settings_editor_test.go b/desktop/internal/pluginservice/settings_editor_test.go index 67e75d430d..30613afe15 100644 --- a/desktop/internal/pluginservice/settings_editor_test.go +++ b/desktop/internal/pluginservice/settings_editor_test.go @@ -10,6 +10,7 @@ import ( "time" "github.com/1lck/Lithe-IDEA/desktop/internal/configfile" + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" "github.com/1lck/Lithe-IDEA/desktop/internal/core" "github.com/1lck/Lithe-IDEA/desktop/internal/pluginpkg" "github.com/1lck/Lithe-IDEA/desktop/internal/store" @@ -20,7 +21,7 @@ func TestInstalledSettingsEditorPublishesAndRejectsChangedOwners(t *testing.T) { t.Run(change, func(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } @@ -114,7 +115,7 @@ func TestInstalledSettingsRejectsManifestForAnotherRegistration(t *testing.T) { t.Run(field, func(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/pluginservice/settings_start_test.go b/desktop/internal/pluginservice/settings_start_test.go index 8a7639b45d..5cca71d876 100644 --- a/desktop/internal/pluginservice/settings_start_test.go +++ b/desktop/internal/pluginservice/settings_start_test.go @@ -51,7 +51,7 @@ func TestLanguageServerReadsActualPluginPreferenceLayersBeforePlanning(t *testin t.Run(name, func(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/pluginsettings/store_test.go b/desktop/internal/pluginsettings/store_test.go index cba27ced87..af5d07b986 100644 --- a/desktop/internal/pluginsettings/store_test.go +++ b/desktop/internal/pluginsettings/store_test.go @@ -10,12 +10,13 @@ import ( "time" "github.com/1lck/Lithe-IDEA/desktop/internal/configfile" + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" "github.com/1lck/Lithe-IDEA/desktop/internal/core" ) func fixture(t *testing.T) json.RawMessage { t.Helper() - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/settingswindow/plugin_settings_actions_view_test.go b/desktop/internal/settingswindow/plugin_settings_actions_view_test.go index ef01d1f616..e00c6d4add 100644 --- a/desktop/internal/settingswindow/plugin_settings_actions_view_test.go +++ b/desktop/internal/settingswindow/plugin_settings_actions_view_test.go @@ -8,6 +8,7 @@ import ( "path/filepath" "testing" + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" "github.com/1lck/Lithe-IDEA/desktop/internal/core" "github.com/1lck/Lithe-IDEA/desktop/internal/i18n" "github.com/1lck/Lithe-IDEA/desktop/internal/marketplace" @@ -28,7 +29,7 @@ func (s headlessActionSource) Action(ctx context.Context, editor pluginservice.S } func TestSettingsActionButtonsConfirmDismissAndPreserveUnsavedInput(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/settingswindow/plugin_settings_model_test.go b/desktop/internal/settingswindow/plugin_settings_model_test.go index 7c2649c0f1..b97607de72 100644 --- a/desktop/internal/settingswindow/plugin_settings_model_test.go +++ b/desktop/internal/settingswindow/plugin_settings_model_test.go @@ -9,6 +9,7 @@ import ( "testing" "time" + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" "github.com/1lck/Lithe-IDEA/desktop/internal/core" "github.com/1lck/Lithe-IDEA/desktop/internal/pluginservice" "github.com/1lck/Lithe-IDEA/desktop/internal/pluginsettings" @@ -17,7 +18,7 @@ import ( func TestPluginSettingsDraftPreservesSevenDeclaredControlTypes(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } @@ -98,7 +99,7 @@ func TestPluginSettingsDraftPreservesSevenDeclaredControlTypes(t *testing.T) { func TestPluginSettingsInvalidIntegerDraftStaysUnparsedUntilCoreRejectsSave(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/settingswindow/plugin_settings_view_test.go b/desktop/internal/settingswindow/plugin_settings_view_test.go index 5d5f1d75fa..9fe6e6715e 100644 --- a/desktop/internal/settingswindow/plugin_settings_view_test.go +++ b/desktop/internal/settingswindow/plugin_settings_view_test.go @@ -9,6 +9,7 @@ import ( "testing" "time" + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" "github.com/1lck/Lithe-IDEA/desktop/internal/core" "github.com/1lck/Lithe-IDEA/desktop/internal/i18n" "github.com/1lck/Lithe-IDEA/desktop/internal/marketplace" @@ -34,7 +35,7 @@ func (s settingsFormSource) Save(ctx context.Context, editor pluginservice.Setti func TestPluginSettingsFormEditsOnlyOnExplicitSaveAndPreservesConflictDraft(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 8*time.Second) defer cancel() - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/settingswindow/settings_surfaces_test.go b/desktop/internal/settingswindow/settings_surfaces_test.go index 16840b0a2a..3eb45c6605 100644 --- a/desktop/internal/settingswindow/settings_surfaces_test.go +++ b/desktop/internal/settingswindow/settings_surfaces_test.go @@ -8,6 +8,7 @@ import ( "sync/atomic" "testing" + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" "github.com/1lck/Lithe-IDEA/desktop/internal/core" "github.com/1lck/Lithe-IDEA/desktop/internal/i18n" "github.com/1lck/Lithe-IDEA/desktop/internal/pluginservice" @@ -18,7 +19,7 @@ import ( ) func TestSettingsDynamicPagesShareDraftsFilterActionsAndRefreshCleanForms(t *testing.T) { - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } @@ -171,7 +172,7 @@ func (s dynamicFormsSource) Load(ctx context.Context, id string) (pluginservice. // the elixir language page, and no actions. func flagsManifest(t *testing.T, count int) json.RawMessage { t.Helper() - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/workbench/aicommit_http.go b/desktop/internal/workbench/aicommit_http.go index b077fa1412..2325935040 100644 --- a/desktop/internal/workbench/aicommit_http.go +++ b/desktop/internal/workbench/aicommit_http.go @@ -10,7 +10,7 @@ import ( ) // AI provider requests are made here, by the platform: Core only plans the request and -// decodes the answer. The limits follow shared/contracts/ai-commit.md: a 45-second +// decodes the answer. The limits follow Lithe-core-rust rust/contracts/ai-commit.md: a 45-second // deadline, no redirects, no cookies, and a 2 MiB cap on the answer. const ( aiRequestTimeout = 45 * time.Second diff --git a/desktop/internal/workbench/build.go b/desktop/internal/workbench/build.go index d74c1cfd30..168f258b5c 100644 --- a/desktop/internal/workbench/build.go +++ b/desktop/internal/workbench/build.go @@ -171,7 +171,7 @@ type buildRefusal struct { func (r *buildRefusal) Error() string { return r.message } -// The IDE API failure codes a refused start maps to (shared/contracts/ide-api/v1.md). +// The IDE API failure codes a refused start maps to (Lithe-core-rust rust/contracts/ide-api/v1.md). const ( refusalInvalid = "INVALID_ARGUMENTS" refusalNotFound = "NOT_FOUND" diff --git a/desktop/internal/workbench/settings_plugin_restart_test.go b/desktop/internal/workbench/settings_plugin_restart_test.go index 4d0a44de34..5101090618 100644 --- a/desktop/internal/workbench/settings_plugin_restart_test.go +++ b/desktop/internal/workbench/settings_plugin_restart_test.go @@ -10,6 +10,7 @@ import ( "testing" "time" + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" "github.com/1lck/Lithe-IDEA/desktop/internal/core" "github.com/1lck/Lithe-IDEA/desktop/internal/pluginbackend" "github.com/1lck/Lithe-IDEA/desktop/internal/pluginpkg" @@ -56,7 +57,7 @@ func TestPluginSettingsRestartWaitsForTeardownAndHonorsRevocation(t *testing.T) h.open(t.TempDir()) p := h.app.project preferences, plugins := t.TempDir(), t.TempDir() - raw, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + raw, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/workbench/settings_publication_test.go b/desktop/internal/workbench/settings_publication_test.go index fab08c3c84..08be0ad0ea 100644 --- a/desktop/internal/workbench/settings_publication_test.go +++ b/desktop/internal/workbench/settings_publication_test.go @@ -8,6 +8,7 @@ import ( "testing" "time" + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" "github.com/1lck/Lithe-IDEA/desktop/internal/core" "github.com/1lck/Lithe-IDEA/desktop/internal/pluginstate" "github.com/1lck/Lithe-IDEA/desktop/internal/store" @@ -16,7 +17,7 @@ import ( func TestSettingsPublicationReachesMatchingWindowsAndKeepsProjectLayers(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } diff --git a/desktop/internal/workbench/startup_test.go b/desktop/internal/workbench/startup_test.go index c57126bb39..47205318e4 100644 --- a/desktop/internal/workbench/startup_test.go +++ b/desktop/internal/workbench/startup_test.go @@ -8,6 +8,7 @@ import ( "testing" "time" + "github.com/1lck/Lithe-IDEA/desktop/internal/contractfixture" "github.com/1lck/Lithe-IDEA/desktop/internal/core" "github.com/1lck/Lithe-IDEA/desktop/internal/pluginpkg" "github.com/1lck/Lithe-IDEA/desktop/internal/store" @@ -16,7 +17,7 @@ import ( func TestDesktopStartupMakesInstalledPluginSettingsReachable(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() - data, err := os.ReadFile("../../../shared/fixtures/plugins/settings-documents.json") + data, err := os.ReadFile(contractfixture.CoreFixture("plugins/settings-documents.json")) if err != nil { t.Fatal(err) } diff --git a/docs/ci-builds.md b/docs/ci-builds.md index f923a6a963..4d36631a26 100644 --- a/docs/ci-builds.md +++ b/docs/ci-builds.md @@ -914,7 +914,7 @@ identity stamp,不允许任何阶段复用;沿用 `build-native-configuratio 它们不会写入应用或插件安装目录,因而不改变代码签名及 Sparkle delta 基线。 可下载的官方插件包是声明式插件包(只含 `plugin.json` 和它声明的资源,不含宿主加载的代码,与架构无关;自带运行时的 Java Support 见下文),在 `.build///OfficialPlugins` 中独立组装,`--triple` 只决定输出目录和签名工具的构建布局;组装后通过 `LitheOfficialPluginVerifier` 验证声明、打包的可执行文件和“Mach-O 原生代码只出现在清单声明的运行时目录内”;发布配置还要求 repository secret `LITHE_PLUGIN_PACKAGE_PRIVATE_KEY`,由 `LithePluginPackageSigner` 对完整包生成 `lithe-plugin-signature.json`,客户端按宿主内置官方插件策略和 publisher 公钥验证后才允许安装。该 secret 的值是与客户端内置公钥匹配的 base64 编码 32 字节 Ed25519 私钥,可用 `gh secret set LITHE_PLUGIN_PACKAGE_PRIVATE_KEY --repo 1lck/Lithe-IDEA < /secure/path/lithe-plugin-package-private-key.base64` 配置;私钥文件和 shell 历史都不得进入仓库或日志。没有该 key 时,普通 debug 全量构建会跳过 publisher 签名包,指定其中一个包 ID 的构建会失败,不会留下缺少签名文档的目录。本地调试插件时可以显式传入 `--development-unsigned`(仅 debug 配置可用),生成不含签名文档的开发包,只能由 debug 构建的 Lithe 从磁盘安装;这类开发包同样不跨工作树复用。无可靠 identity stamp,不跨工作树复制。插件安装后打包的语言服务器位于 -`/Lithe/Plugins//versions//language-server`,由插件版本目录拥有,运行时只读,重装、回滚和卸载随插件一起处理,不是工作树构建缓存。Go Support 和 PHP Support 已迁移为 Lithe Store 社区插件(`Lithe-IDEA/lithe-plugin-go`、`Lithe-IDEA/lithe-plugin-php`),不再由本仓库构建。PHPUnit 测试夹具的 `shared/fixtures/phpunit-project/vendor` 也由当前工作树独立安装。以上项目在资源清单 `excludedResources` 中明确排除,复用脚本会拒绝显式复制请求。 +`/Lithe/Plugins//versions//language-server`,由插件版本目录拥有,运行时只读,重装、回滚和卸载随插件一起处理,不是工作树构建缓存。Go Support 和 PHP Support 已迁移为 Lithe Store 社区插件(`Lithe-IDEA/lithe-plugin-go`、`Lithe-IDEA/lithe-plugin-php`),不再由本仓库构建。以上项目在资源清单 `excludedResources` 中明确排除,复用脚本会拒绝显式复制请求。 Maven 模型与依赖快照继续位于现有 `/Lithe/PluginState//build-systems//workspaces//`。 diff --git a/docs/development/document-encoding.md b/docs/development/document-encoding.md index a4bd87737f..3547e30f39 100644 --- a/docs/development/document-encoding.md +++ b/docs/development/document-encoding.md @@ -34,7 +34,7 @@ Lithe 把“如何解码当前编辑器文本”和“下一次写入磁盘使 2. 在 macOS `MacDocumentEncoding.codec(_:)` 中添加 Foundation/CoreFoundation 映射。 3. 在 Windows `DocumentEncoding::codec` 和 `parse` 中添加 `encoding_rs` 映射及别名。 4. 按能力过滤读取和保存菜单;只读或只写编码不能出现在不支持的操作中。 -5. 增加原始字节 fixture(见 `shared/fixtures/documents/encoding-explicit-reopen-v1.json`),覆盖显式错码读取、保存后字节、BOM 和不可表示字符错误。 +5. 增加原始字节 fixture(见 `Lithe-core-rust/rust/fixtures/documents/encoding-explicit-reopen-v1.json`),覆盖显式错码读取、保存后字节、BOM 和不可表示字符错误。 6. 增加 macOS、Windows 的目录一致性测试,并更新 `shared/platform-feature-matrix/features/` 中对应能力的验证场景。 7. 如果编码会进入工作区会话,保持新旧字段的解码兼容;不要把读写状态重新合并成一个字段。 diff --git a/docs/development/macos-plugin-api-plan.md b/docs/development/macos-plugin-api-plan.md index c01c2cb2cc..57552c46ff 100644 --- a/docs/development/macos-plugin-api-plan.md +++ b/docs/development/macos-plugin-api-plan.md @@ -405,7 +405,7 @@ Mac 当前声明的能力版本为:`backend:1`、`buildModelInputs:1`、`build | S12 | [终端端口](../../macos/Sources/LitheTerminalModule/Ports/TerminalTransport.swift)、[终端功能](../../macos/Sources/LitheTerminalModule/Application/TerminalFeatureModel.swift) | | S13 | [语言 Provider 目录](../../macos/Sources/Lithe/Core/Language/PluginLanguageProviderCatalogSource.swift)、[LSP 资源归属](../../.agents/notes/implemented/architecture/2026-09-30-lsp-plugin-build-and-distribution.md)、[诊断功能](../../macos/Sources/Lithe/Application/Features/DiagnosticsFeatureModel.swift) | | S14 | [Debug 会话](../../macos/Sources/LitheDebugModule/Runtime/DebugAdapterSessionManager.swift)、[VCS 功能](../../macos/Sources/Lithe/Application/Features/VcsProvidersFeatureModel.swift)、[项目生成服务](../../macos/Sources/Lithe/Services/ProjectGeneration/ProjectGenerationService.swift) | -| S15 | [独立 IDE API](../../shared/contracts/ide-api/v1.md)、[原生模块接口](../../macos/Sources/LitheModuleAPI/Plugins/IDECapabilities.swift)、[授权功能](../../macos/Sources/Lithe/Application/Features/IdeCapabilitiesFeatureModel.swift)、[工具目录](../../rust/lithe-ide-host/src/catalog.rs) | +| S15 | [独立 IDE API](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/ide-api/v1.md)、[原生模块接口](../../macos/Sources/LitheModuleAPI/Plugins/IDECapabilities.swift)、[授权功能](../../macos/Sources/Lithe/Application/Features/IdeCapabilitiesFeatureModel.swift)、[工具目录](../../rust/lithe-ide-host/src/catalog.rs) | | S16 | [Mac 主题](../../macos/Sources/Lithe/Theme/LitheTheme.swift)、[图标入口](../../macos/Sources/Lithe/Theme/LitheIcons.swift) | | S17 | [Services/公共扩展提案](../../.agents/notes/proposed/architecture/2026-10-13-public-extension-contract-and-provider-api.md)、[数据库后端](../../.agents/notes/implemented/architecture/2026-10-24-database-provider-plugin.md)、[依赖与导出提案](../../.agents/notes/proposed/architecture/2026-10-25-plugin-dependencies-and-exports.md) | | S18 | [有限热激活范围](../../.agents/notes/implemented/architecture/2026-10-26-plugin-live-activation.md)、[既有函数调用方向](../../.agents/notes/implemented/architecture/2026-10-20-plugin-function-contract.md) | diff --git a/docs/development/windows-ai-commit.md b/docs/development/windows-ai-commit.md index 1a78d27ac2..1939a78634 100644 --- a/docs/development/windows-ai-commit.md +++ b/docs/development/windows-ai-commit.md @@ -2,7 +2,7 @@ Windows 现已提供独立的“AI 与提交”配置,可手动管理多个服务商,也可识别本机 Codex 和 Claude 的 API 配置。生成结果先写入提交框,检查后再执行提交。 -架构取舍见[设计文档](../../.agents/notes/implemented/feature/2026-09-22-windows-ai-commit-design.md),字段与接口见[共享契约](../../shared/contracts/ai-commit.md)。本篇记录代码接线、使用方式和验证方法,不复制架构决策。 +架构取舍见[设计文档](../../.agents/notes/implemented/feature/2026-09-22-windows-ai-commit-design.md),字段与接口见[共享契约](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/ai-commit.md)。本篇记录代码接线、使用方式和验证方法,不复制架构决策。 ## 如何使用 diff --git a/docs/development/windows-plugin-parity-plan.md b/docs/development/windows-plugin-parity-plan.md index a5f33cf9e2..48ff3e6d48 100644 --- a/docs/development/windows-plugin-parity-plan.md +++ b/docs/development/windows-plugin-parity-plan.md @@ -257,7 +257,7 @@ M4 开始就建立唯一构建操作入口,供原生按钮和插件网页共 交付内容: -- 按 [VCS Provider 契约](../../shared/contracts/vcs-provider-v1.md) 使用 `vcs.detectRoots/ownerOf`、`lsp.vcsRequest`、`vcs.decodeReply`,共用 Core 会话和现有进程树管理,不复制 SVN 命令与输出解析。 +- 按 [VCS Provider 契约](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/vcs-provider-v1.md) 使用 `vcs.detectRoots/ownerOf`、`lsp.vcsRequest`、`vcs.decodeReply`,共用 Core 会话和现有进程树管理,不复制 SVN 命令与输出解析。 - 对齐冻结版本 macOS 已接入的根识别、状态、基线比较、选中提交、更新、回滚、解决/清理、历史及文件操作跟踪;入口按 Provider 协商能力显示,不按 svn ID 分支。 - 保留 Git 专属提交、分支、Log、Worktree 等流程;嵌套根按最深归属处理,跨根移动不得误交给单个 Provider。 - 识别工作副本可先进行无进程检测;识别后读取状态的启动时机遵循 VCS 契约和安装授权,不能套用“所有 Provider 只能点击后启动”的构建规则。 @@ -377,7 +377,7 @@ macOS/具备 zsh 的正式验证环境按相应 Skill 执行 `scripts/rust-core/ ## 8. 开始实施前的阅读入口 - [跨平台功能同步规则](platform-parity.md)。 -- [应用边界](../../shared/contracts/application-boundary.md)与 [Rust Core API](../../shared/contracts/rust-core-api.md)。 +- [应用边界](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/application-boundary.md)与 [Rust Core API](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/rust/contracts/rust-core-api.md)。 - [插件契约与 fixtures](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/README.md)。 - [插件市场与来源](../../.agents/notes/implemented/feature/2026-10-12-plugin-marketplace.md)。 - [构建系统契约](../../.agents/notes/implemented/architecture/2026-10-17-build-system-plugin-contract.md)。 diff --git a/docs/viva-migration.md b/docs/viva-migration.md index d327648076..cdbd2a7532 100644 --- a/docs/viva-migration.md +++ b/docs/viva-migration.md @@ -452,11 +452,11 @@ MCP 管理随 Agent 对话失去消费者后,本轮整块删除,后续重新设计。Rust Core 删除 `mcp` 模块与 `mcp.parseConfiguration`、`mcp.parseRegistry`、`mcp.featuredRegistry`、`mcp.planWrite`、`mcp.toolPolicy`、`mcp.commandLine`、`mcp.librarySnapshot`、`mcp.validateDraft`、`mcp.batchPlan` 九个命令,以及 `rust/fixtures/mcp` 与 `rust/contracts/mcp-registry-page.json`。本仓库删除 `shared/fixtures/mcp`、`shared/contracts/mcp-registry-page.json`、67 条仅旧客户端使用的 MCP 词条与两个能力记录(`mcp-registry-discovery`、`mcp-server-library`),服务器库 Note 移入 `.agents/notes/archived/`。 -保留 `ide-mcp-connection`:Lithe 对外提供的 IDE API MCP 服务端(`lithe-mcp`、`shared/fixtures/ide-api/mcp-protocol.json`)不依赖被删的配置管理能力。 +保留 `ide-mcp-connection`:Lithe 对外提供的 IDE API MCP 服务端(`lithe-mcp`、`Lithe-core-rust/rust/fixtures/ide-api/mcp-protocol.json`)不依赖被删的配置管理能力。 ## 放弃:Agent 对话(38 项,2026-11-12 用户决定) -用户决定 Viva 桌面端不做 Agent 对话。#1799 删除了助手面板、会话与历史、卡片、Agent 安装与管理、自定义 Agent,以及 AI 设置下的 Agents、Instructions、Skills、Hooks、MCP 配置页。保留 AI 生成提交信息(`ai-commit-generation`)、编辑器内联 AI 编辑(`ai-inline-edit`)和 IDE 连接(`ide-mcp-connection`),它们读取用户 Codex/Claude 配置的服务商发现移到 `desktop/internal/workbench/ai_provider.go`。Rust Core 中的 Agent 代码与 `shared/fixtures/agent`、`shared/fixtures/mcp` 契约当时暂留,随后已分别由 Lithe-core-rust#18 与 #19 删除。 +用户决定 Viva 桌面端不做 Agent 对话。#1799 删除了助手面板、会话与历史、卡片、Agent 安装与管理、自定义 Agent,以及 AI 设置下的 Agents、Instructions、Skills、Hooks、MCP 配置页。保留 AI 生成提交信息(`ai-commit-generation`)、编辑器内联 AI 编辑(`ai-inline-edit`)和 IDE 连接(`ide-mcp-connection`),它们读取用户 Codex/Claude 配置的服务商发现移到 `desktop/internal/workbench/ai_provider.go`。Rust Core 中的 Agent 代码与 `shared/fixtures/agent`、`shared/fixtures/mcp` 契约当时暂留,随后 Agent 代码由 Lithe-core-rust#18 删除,MCP 契约由 #19 删除;本仓库的 `shared/fixtures/agent` 与 `shared/contracts/agent-turn-policy.json` 在 #1853 删除整个 `shared/contracts`、`shared/fixtures` 副本时一并删除。 第二轮清理删掉了只描述放弃能力的记录:`shared/i18n/` 里 593 条含 `agent` 的词条(唯一还被引用的 `agent.state.cancel` 改用通用 `ui.cancel`)、功能矩阵的 36 个 `agent-*.json` 条目(矩阵从 255 条降到 219 条),以及旧客户端 Agent 对话的 15 篇 Note(移入 `.agents/notes/archived/`)。下表保留为放弃清单,不再对应矩阵文件。 diff --git a/scripts/desktop/build-desktop-core.sh b/scripts/desktop/build-desktop-core.sh index 3de62bc76b..abbf7d6bbb 100755 --- a/scripts/desktop/build-desktop-core.sh +++ b/scripts/desktop/build-desktop-core.sh @@ -28,8 +28,11 @@ native_path() { } PINNED_CORE_REPOSITORY="https://github.com/Lithe-IDEA/Lithe-core-rust.git" -# Lithe-core-rust #23 (Java, Maven and JDT special cases removed, execution.planLaunchCommand -# among them; run/start temporaryFiles may carry base64 bytes) on top of #22 (IDE find/replace, +# Lithe-core-rust #25 (the ai.* commands moved into the lithe-ai crate; command names, JSON and +# error codes unchanged) on top of #24 (rust/contracts and rust/fixtures are the only copy of the +# application contracts and fixtures, which desktop tests read through LITHE_CORE_FIXTURE_DIR) and +# #23 (Java, Maven and JDT special cases removed, execution.planLaunchCommand among them; +# run/start temporaryFiles may carry base64 bytes), squash-merged into main, on top of #22 (IDE find/replace, # recovery, preferences, navigation, keymaps and Scratch lifecycle), squash-merged into main, on top of #21 (debug.setBreakpointsMuted, debug.planMemoryWindow and # debug.locateMemoryWindow, runConfig.decideTitleAction), squash-merged into main, on top of #20 # (lsp.declarationOrUsages and the references operation's includeDeclaration, for Go to @@ -38,7 +41,7 @@ PINNED_CORE_REPOSITORY="https://github.com/Lithe-IDEA/Lithe-core-rust.git" # the contract, plugin guides, reference and SDKs live only in shared/plugins; on top of #16 (reported Git queries folded in the console), # #15 (git.write cherryPick, revert and reset fields), #14 (word-level changed ranges of diff # rows), #13, #8, #7, #6 and #4. -PINNED_CORE_REVISION="5a8e67d4b73f5e633e67dc09e722c3b22b47b280" +PINNED_CORE_REVISION="f113e9e9f81a30fa9feb61307e4118af111df936" PROFILE="debug" while [[ $# -gt 0 ]]; do case "$1" in diff --git a/scripts/desktop/desktop-go.sh b/scripts/desktop/desktop-go.sh index 3b86b59e43..8775c7eaf9 100755 --- a/scripts/desktop/desktop-go.sh +++ b/scripts/desktop/desktop-go.sh @@ -94,8 +94,9 @@ fi # Packaging reads the staged helper to embed it; development runs use it directly so the IDE # Connection page is testable without a packaged build. export LITHE_CORE_STAGE_DIR="$STAGE_DIR" -# The plugin contract has one copy, in the core checkout that was just built: tests read its -# fixtures through internal/contractfixture. This mirrors the checkout build-desktop-core.sh uses. +# The plugin contract and the application fixtures have one copy each, in the core checkout that +# was just built: tests read them through internal/contractfixture. This mirrors the checkout +# build-desktop-core.sh uses. if [[ -n "${LITHE_CORE_RUST_DIR:-}" ]]; then CORE_CHECKOUT="$(cd "$LITHE_CORE_RUST_DIR" && pwd -P)" else @@ -103,6 +104,8 @@ else fi LITHE_PLUGIN_CONTRACT_DIR="$(native_path "$CORE_CHECKOUT/shared/plugins/contract/v1")" export LITHE_PLUGIN_CONTRACT_DIR +LITHE_CORE_FIXTURE_DIR="$(native_path "$CORE_CHECKOUT/rust/fixtures")" +export LITHE_CORE_FIXTURE_DIR if [[ -x "$STAGE_DIR/bin/lithe-mcp" ]]; then export LITHE_IDE_HELPER="$STAGE_DIR/bin/lithe-mcp" elif [[ -x "$STAGE_DIR/bin/lithe-mcp.exe" ]]; then diff --git a/scripts/i18n/test-i18n.mjs b/scripts/i18n/test-i18n.mjs index 0de9bf9684..e10f7362ef 100644 --- a/scripts/i18n/test-i18n.mjs +++ b/scripts/i18n/test-i18n.mjs @@ -183,7 +183,7 @@ test( { timeout: 1000 }, async () => { const fixture = JSON.parse( - await readFile(path.join(ROOT, "shared/fixtures/i18n/format-v1.json"), "utf8"), + await readFile(path.join(ROOT, "shared/i18n/fixtures/format-v1.json"), "utf8"), ); for (const item of fixture.cases) assert.equal(nativeTemplate(item.template, fixture, fixture.arguments), item.nativeTemplate); @@ -459,7 +459,7 @@ test( { timeout: 1000 }, async () => { const fixture = JSON.parse( - await readFile(path.join(ROOT, "shared/fixtures/i18n/native-abi-v1.json"), "utf8"), + await readFile(path.join(ROOT, "shared/i18n/fixtures/native-abi-v1.json"), "utf8"), ); assert.equal( nativeTemplate(fixture.template, fixture, fixture.arguments), diff --git a/scripts/platform-feature-matrix/generate-platform-feature-matrix.mjs b/scripts/platform-feature-matrix/generate-platform-feature-matrix.mjs index 86e118b2ab..bb45e2a644 100755 --- a/scripts/platform-feature-matrix/generate-platform-feature-matrix.mjs +++ b/scripts/platform-feature-matrix/generate-platform-feature-matrix.mjs @@ -136,7 +136,7 @@ const markdown = [ "1. 功能开发或修复的 PR 必须更新对应能力点的实现状态、验证状态、证据路径和验证方式;如果一项功能包含多个独立用户动作,应拆成多行。", "2. `implementationStatus` 和 `verificationStatus` 分别表达实现程度和运行验证结果;只有实现状态为 `implemented` 且验证状态为 `verified` 才能表示已完成验收。", "3. 代码入口存在但没有真实运行验证时,保留实现状态并将验证状态设为 `pending`;不要把静态盘点写成 `verified`。", - "4. 新的共享行为先更新 `shared/contracts/` 和 fixture,再按验证方式完成两端验证后将验证状态推进到 `verified`。", + "4. 新的共享行为先在 Rust Core 仓库的 `rust/contracts/` 和 `rust/fixtures/` 更新契约与 fixture,再按验证方式完成两端验证后将验证状态推进到 `verified`。", "5. 功能 PR 必须同时包含源数据变更;纯重构如确实没有用户可观察变化,可由 reviewer 添加 `matrix-exempt` label 作为显式例外。", ].join("\n") + "\n"; diff --git a/scripts/platform-feature-matrix/verify-platform-feature-matrix-change.mjs b/scripts/platform-feature-matrix/verify-platform-feature-matrix-change.mjs index 5ff367ae69..fbe0097341 100644 --- a/scripts/platform-feature-matrix/verify-platform-feature-matrix-change.mjs +++ b/scripts/platform-feature-matrix/verify-platform-feature-matrix-change.mjs @@ -7,7 +7,7 @@ const git = (...args) => execFileSync("git", args, { encoding: "utf8", timeout: const base = process.argv[2] || process.env.MATRIX_BASE_SHA; const head = process.argv[3] || process.env.MATRIX_HEAD_SHA || "HEAD"; if (!base) throw new Error("provide or MATRIX_BASE_SHA"); -const platformPaths = ["desktop", "macos/Sources", "windows/tauri/src", "windows/tauri/src-tauri", "Plugins/mac", "Plugins/win", "frontend/editor", "rust/lithe-core", "shared/contracts"]; +const platformPaths = ["desktop", "macos/Sources", "windows/tauri/src", "windows/tauri/src-tauri", "Plugins/mac", "Plugins/win", "frontend/editor", "rust/lithe-core"]; const changed = (paths) => git("diff", "--name-only", "--no-renames", "-z", base, head, "--", ...paths).split("\0").filter(Boolean); if (changed(platformPaths).length === 0) { console.log("matrix change gate passed: no platform implementation paths changed"); diff --git a/scripts/resources/worktree-resources.json b/scripts/resources/worktree-resources.json index 6d08350945..9d58c02bc7 100644 --- a/scripts/resources/worktree-resources.json +++ b/scripts/resources/worktree-resources.json @@ -260,16 +260,6 @@ "identity": "One user-selected macOS ZIP or unpacked directory and one import UUID. MacServiceContainer injects fileStorage.temporaryDirectory(); the importer copies a private snapshot before review. ZIP SHA-256 is computed from that snapshot, directories have no archive checksum, and neither authenticates a remote publisher or repository. Content digest and complete canonical approvedPrograms bind the approval to the installed bytes, not to a reusable version/platform/architecture/toolchain stamp.", "reason": "Never copy, symlink, bundle or share local disk snapshots, installation staging, installed versions or active/previous approval records at any worktree reuse stage; content hashes do not transfer user approval or establish marketplace provenance. The importer removes failed/cancelled partial snapshots; ZIP preflight bounds unique explicit entries plus implicit parent directories and cumulative normalized UTF-8 path bytes before extraction, without making snapshots reusable. The service then owns discard on review cancellation, install success or failure. The package store owns install staging cleanup and persistent version/record lifecycle, revalidates staged, scanned and rollback bytes, and keeps PluginDiskProvenance separate from marketplace provenance. All writable roots come from platform storage outside distribution resources; installed bundles stay read-only with no code-signature or Sparkle delta impact. This is a macOS runtime boundary, not a claim of Windows implementation." }, - { - "id": "phpunit-fixture", - "path": "shared/fixtures/phpunit-project/vendor", - "reusable": false, - "locations": [ - "shared/fixtures/phpunit-project/vendor" - ], - "identity": "Composer dependencies depend on the test worktree PHP version and dependency resolution without a reliable identity stamp", - "reason": "Install PHPUnit dependencies independently in each worktree; do not copy vendor directories." - }, { "id": "windows-worker-plugins", "path": ".artifacts/windows-plugins", diff --git a/shared/contracts/agent-turn-policy.json b/shared/contracts/agent-turn-policy.json deleted file mode 100644 index 032151c7d1..0000000000 --- a/shared/contracts/agent-turn-policy.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "quietNoticeMilliseconds": 300000 -} diff --git a/shared/contracts/ai-commit.md b/shared/contracts/ai-commit.md deleted file mode 100644 index e36cb07395..0000000000 --- a/shared/contracts/ai-commit.md +++ /dev/null @@ -1,122 +0,0 @@ -# AI commit generation contract - -Version: 1. Behavioral fixture: `shared/fixtures/ai/commit-generation-v1.json`. - -Windows consumes the typed Rust API in `lithe_core::ai`; macOS uses the same planner -and decoder through the Core JSON commands `ai.planCommit` and -`ai.decodeCommitMessage`. The API has no filesystem, HTTP, operating-system -credential, or UI dependencies. Pull request descriptions and inline edits reuse -the same provider request model; see [AI generation requests](ai-generation-requests.md). - -## Portable inputs - -`Provider`: `id`, `name`, `endpoint`, `model`, `apiProtocol`, `authentication`, -`source`, `requiresApiKey`, `allowsInsecureHttp`, `chatTokenLimitField`. Sources are `local`, `codex`, -`claude`; authentication is `bearer` or `apiKey`. -`chatTokenLimitField` defaults to `max_completion_tokens` when absent. Manual Chat -Completions profiles may select `max_tokens` for legacy gateways; no model-name -heuristic or silent request retry changes the selected protocol. New macOS profiles -use the modern field; macOS profiles saved before this setting retain their former -`max_tokens` behavior until explicitly changed. This is a Lithe request setting, -not an edit to an imported provider's native configuration. - -`CommitOptions`: `language` (`english`, `simplifiedChinese`), `format` -(`conventional`, `concise`, `imperative`, `descriptive`, `releaseNote`, `custom`), -`customInstructions`, `includeBody`, `subjectMaximumLength` (20–200), -`maximumDiffCharacters` (8,000–120,000 Unicode characters), `reasoningEffort` -(`default`, `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, `max`). `default` -omits the reasoning parameter and is the default for new settings. `none` is an -explicit provider value, not an instruction to omit the parameter. - -`CommitFile`: repository-relative `path`, `changeKind`, and `diff`. -The caller must provide evidence matching its actual commit operation: -macOS uses staged diffs, Windows uses the full working-tree snapshot of selected paths. -Generation never stages, commits, or pushes. Both hosts obtain this evidence through -[`git.commitMessageContext`](git-commit-message-context.md), which captures -fresh content, applies the shared budget and rechecks an opaque state token. - -## Typed operations - -- `parse_codex(config, auth, environment)` parses TOML using the existing TOML dependency. - It supports the selected profile, provider `base_url`, `wire_api`, `env_key`, - `experimental_bearer_token`, and API-key auth JSON. An explicit `env_key` binds - credentials to that variable, with no fallback when it is missing or blank. - Otherwise a provider bearer token is used. Auth JSON and `OPENAI_API_KEY` are - considered only for OpenAI-auth providers (`requires_openai_auth=true`, or the - built-in `openai` provider by default). Custom providers default to no OpenAI - authentication. Credential presence is required only when the selected provider - declares OpenAI auth, an environment key, or a bearer token; keyless providers - never receive unrelated global OpenAI credentials. - OAuth token bundles are not API keys. -- `parse_claude(settings, credentials, root, environment)` parses supported JSON and - environment settings, resolves common model aliases and selects bearer/API-key auth. -- Both return `DetectedConfiguration`; its `credential` is host-only and skipped by - Serde serialization. Only metadata and `hasCredential` cross the UI boundary. -- `plan_commit(provider, options, files)` returns a credential-free URL and JSON body. - It validates protocol, URL and limits; distributes diff space across file boundaries; - and includes language, format, custom and subject/body instructions. When every file - supplies `originalCharacters`, the typed planner validates the Core-budgeted - prefixes and preserves truncation markers; older unbounded callers may omit it - for every file. Mixed or inconsistent inputs are rejected. Requests allow - 4,096 output tokens, including provider-internal reasoning, even for subject-only output. - Chat Completions uses the provider's selected token-limit field; Responses and - Anthropic retain their respective `max_output_tokens` and `max_tokens` fields. -- `decode_message(protocol, response, include_body)` extracts text from the three - supported response envelopes, strips Markdown fences and rejects empty responses. - Provider output-limit termination returns `AI_COMMIT_OUTPUT_LIMIT`; partial text - from such a response is never applied to the draft. - -## Shared JSON commands - -`ai.commitInputBudget` accepts `{maximumDiffCharacters, fileLengths}` (Unicode -scalar counts) and returns per-file `{characters, truncated}`. Hosts send only -those diff prefixes across the native boundary, together with `originalCharacters`; -Core validates each prefix and retains the truncation warning. `ai.planCommit` -accepts `{provider, options, files}` and returns the credential-free `{url, body}`. -`ai.decodeCommitMessage` accepts `{protocol, response, includeBody}` -and returns `{message}`. Domain failures use the existing Core error envelope with -an `AI_COMMIT_*` message; malformed payloads report `AI_COMMIT_INVALID_OPTIONS` -without echoing diffs, responses or credentials. Credentials are never command inputs. -macOS resolves its selected provider and credentials in the host, attaches HTTP -headers locally and preserves its existing staged-diff scope and cancellation. -The host rejects responses over 2 MiB before Core JSON decoding. Shared fixture -`shared/fixtures/ai/commit-generation-v1.json` exercises the three protocols on -both Core and the macOS bridge. - -## Windows adapter surface - -All commands route through existing `platform_invoke`: - -| Command | Arguments | Result | -| --- | --- | --- | -| `ai_commit_detect` | `{}` | `{ configurations: [{provider,hasCredential}], warnings: [{source,code}] }` | -| `ai_commit_key` | `{id,action:"status"|"save"|"remove",value?}` | Boolean credential presence; never the credential | -| `ai_commit_generate` | `{operationId,provider,options,files}` | `{message}` | -| `ai_commit_pull_request` | `{operationId,provider,options,comparison}` | `{title,description}` | -| `ai_commit_cancel` | `{operationId}` | `null` | - -The adapter reloads imported profiles immediately before each request and ignores -caller-supplied imported endpoints/models. Credentials are read from the same snapshot. -Manual credentials use the application-scoped Windows Credential Manager namespace. -Imports never write back to Codex/Claude files. Cancellation drops the pending HTTP -future. Requests have a 45-second deadline; no redirects; a 2 MiB response cap. -Configuration reads have a 1 MiB per-file cap. At most four requests may be registered. - -Errors are stable strings prefixed `AI_COMMIT_`, including `INVALID_PROVIDER`, -`INVALID_OPTIONS`, `INSECURE_ENDPOINT`, `MISSING_KEY`, `EMPTY_DIFF`, `SENSITIVE_FILE`, -`EMPTY_RESPONSE`, `OUTPUT_LIMIT`, `INVALID_RESPONSE`, `TIMEOUT`, `NETWORK_ERROR`, `CONFIG_MISSING`, -`INVALID_CONFIG`, `CONFIG_READ_FAILED`, `CONFIG_TOO_LARGE`, `KEY_FAILED`, -`RESPONSE_TOO_LARGE`, `BUSY`, `CANCELLED`, `INTERNAL_ERROR`, and `HTTP_`. -The frontend maps them to actionable localized messages and discards stale results. - -## Draft lifecycle - -Only one generation per commit panel is active. Changing repository/branch/selection -or unmounting cancels it. A successful response is a draft, never a Git mutation. -Existing text requires replacement confirmation. Selection and the complete Git state token are rechecked before applying; -macOS rechecks again when a replacement is confirmed, and both platforms preserve -edits made while confirmation or the check is pending. - -Subject length is an instruction to the model, not a hard truncation guarantee. -Anthropic Messages does not receive reasoning-effort fields. Filesystem location, -credential management and actual HTTP cancellation remain host-owned behavior. diff --git a/shared/contracts/ai-generation-requests.md b/shared/contracts/ai-generation-requests.md deleted file mode 100644 index 282a1489cf..0000000000 --- a/shared/contracts/ai-generation-requests.md +++ /dev/null @@ -1,108 +0,0 @@ -# AI pull request descriptions and inline edits - -Version: 1. Behavioral fixtures: `shared/fixtures/ai/pull-request-description-v1.json` -and `shared/fixtures/ai/inline-edit-v1.json`. - -Both features reuse the credential-free provider request model of -[AI commit generation](ai-commit.md): Core validates the endpoint, appends the -protocol path exactly once, encodes a non-streaming body, and extracts text from -the complete response. Hosts resolve credentials, attach authentication headers, -perform HTTP with a bounded response, and present the result. Credentials are never -command inputs or outputs, and failures never echo patches, edit text or responses. - -## Pull request descriptions - -`ai.pullRequest.plan` accepts `{provider, options, comparison}` and returns -`{url, body}`. The typed Rust API is `plan_pull_request` / `decode_pull_request`. - -- `provider` is the AI commit `Provider` (`responses`, `chatCompletions`, - `anthropicMessages`). -- `options`: `language` (`english`, `simplifiedChinese`), `format` (`standard`, - `concise`, `detailed`, `custom`), `customTemplate` (up to 16,000 characters; a - blank template selects `standard`), `maximumDiffCharacters` (8,000–120,000 - Unicode scalars), `reasoningEffort` (commit values; `default` omits the field). -- `comparison`: `repository`, `base`, `head`, `commitMessages` (context only) and - `files: [{path, changeKind, diff}]`. Hosts report every changed file, including - ones without a textual patch (`diff: ""`); Core drops them from the prompt but - applies the commit sensitive-path policy to every listed path. - -Core shares the commit diff budget across files with an explicit truncation marker, -keeps at most 250 commit messages within 16,000 characters, JSON-quotes metadata, -and allows 4,096 output tokens because providers count reasoning against the same -limit. More than 1,000 files is `AI_COMMIT_TOO_MANY_FILES`; no file with a textual -patch is `AI_PULL_REQUEST_EMPTY_COMPARISON`; provider and option failures use the -`AI_COMMIT_*` codes of the commit contract. - -`ai.pullRequest.decode` accepts `{protocol, response}` and returns -`{title, description}`. The model output must be one JSON object, optionally inside -a single Markdown fence, with nonblank `title` and `description` strings. Partial -drafts and prose around the JSON are `AI_PULL_REQUEST_INVALID_RESPONSE`; no text is -`AI_PULL_REQUEST_EMPTY_RESPONSE`; output-limit termination is `AI_COMMIT_OUTPUT_LIMIT`. - -macOS sends the GitHub branch comparison through the JSON commands. Windows sends -its local `base...head` ref diff to the native `ai_commit_pull_request` command -(`{operationId, provider, options, comparison}` → `{title, description}`), which -shares the AI commit adapter's credential resolution, cancellation, 45-second -deadline, redirect policy and 2 MiB response cap. Windows does not yet collect the -branch's commit messages and sends an empty list. - -## Inline edits - -`ai.inlineEdit.plan` accepts: - -```json -{ - "provider": { - "wireProtocol": "chatCompletions | anthropicMessages | geminiGenerateContent | responses", - "endpoint": "base URL or complete endpoint", - "requiresApiKey": true, - "allowsInsecureHttp": false, - "acceptsUnlistedModels": false, - "chatTokenLimitField": "max_tokens | max_completion_tokens", - "supportsTemperature": true - }, - "model": { "id": "model", "listing": "catalog | discovered | unlisted", "maxTokens": 4096 }, - "edit": { - "beforeSelection": "", "selectedText": "", "afterSelection": "", - "instruction": "", "filePath": "", "languageId": "" - } -} -``` - -The platform resolves its provider catalog into these facts; provider-specific -knowledge such as which models need `max_completion_tokens` stays with the -provider adapter. Core owns the rest: - -- A blank model is `AI_INLINE_EDIT_MODEL_MISSING`. An `unlisted` model is rejected - with `AI_INLINE_EDIT_MODEL_NOT_FOUND` unless the provider accepts unlisted ids. -- Output tokens are `min(maxTokens, 4096)`, using 4,096 when the listing has no - positive limit. -- At most 12,000 Unicode scalars of context are kept on each side of the - selection. Platforms read a window of at least that size without splitting - surrogate pairs; all edit text together is limited to 2 MiB - (`AI_INLINE_EDIT_INVALID_REQUEST`). -- A blank instruction becomes `Improve this code while preserving behavior.`; the - system prompt, file and language context and temperature 0.2 (when supported) - are fixed by Core. Requests are not streamed. -- Endpoint failures are `AI_INLINE_EDIT_ENDPOINT_MISSING`, - `AI_INLINE_EDIT_INVALID_ENDPOINT` (no host, user info, query or fragment) and - `AI_INLINE_EDIT_INSECURE_ENDPOINT`; an unknown protocol is - `AI_INLINE_EDIT_UNSUPPORTED_PROVIDER`. - -The result is `{url, body, headers, credential: {required, header, scheme}}`. -`headers` are non-secret; the host attaches its credential under -`credential.header`, as `Bearer ` when `scheme` is `bearer` and verbatim when -it is `raw`, and fails with `AI_INLINE_EDIT_MISSING_KEY` when `required` is true -and no credential exists. - -`ai.inlineEdit.decode` accepts `{wireProtocol, response}` and returns -`{editedText}`: the trimmed text with one wrapping Markdown fence removed. An empty -replacement is a valid result that the caller reports; an output-limit -termination is `AI_INLINE_EDIT_OUTPUT_LIMIT`, so partial code is never applied; a -non-object response is `AI_INLINE_EDIT_INVALID_RESPONSE`. - -Inline edit is only offered by the Windows product. Platform-owned failures are -`AI_INLINE_EDIT_PROVIDER_NOT_FOUND`, `AI_INLINE_EDIT_MISSING_KEY`, -`AI_INLINE_EDIT_NETWORK_ERROR`, `AI_INLINE_EDIT_HTTP` (with the status only; error -bodies are not shown because they may echo request content) and -`AI_INLINE_EDIT_FAILED`. diff --git a/shared/contracts/application-boundary.md b/shared/contracts/application-boundary.md deleted file mode 100644 index 410a6b8e31..0000000000 --- a/shared/contracts/application-boundary.md +++ /dev/null @@ -1,938 +0,0 @@ -# Application Boundary Contract - -The application boundary describes product behavior that a SwiftUI/AppKit or -React/Tauri Windows UI can consume. It does not describe widgets, threads, processes, -or operating-system APIs. It defines the cross-platform contract; current -product scope and setup are documented in [`README.md`](../../README.md); the -verification scripts are the executable source of boundary checks. - -## Data Rules - -- All payloads are UTF-8 JSON when exchanged across a process or language boundary. -- Workspace paths are relative to the opened workspace and use `/` separators. -- Absolute paths may appear at native editor/process boundaries and as LSP/ACP - `file://` resource URIs, but are not persisted as cross-platform identifiers. -- Product-facing line numbers are one-based. Editor/LSP positions explicitly use - zero-based lines and UTF-16 columns. Missing locations are `null`. -- Lists have deterministic ordering so contract fixtures can be compared directly. -- Every asynchronous operation exposes `idle`, `loading`, `ready`, and `failed` outcomes. -- Failures contain a stable `code` and user-facing `message`; platform details belong in `details`. - -## Shared built-in translations - -[Shared i18n](../i18n/README.md) owns migrated semantic keys, typed named parameters, -locale registration, platform scopes and documented platform wording overrides. -Build-time generation supplies native macOS string tables and the Windows catalog; -no runtime JSON loading, package download or write to installed resources occurs. -The locale registry preserves each platform's persisted identifiers and default -language. Explicit fallback chains resolve shared entries during generation; -all existing platform catalogs and presentation-owned bilingual copy use this source. Translation coverage is not a -capability claim. [Format fixtures](../fixtures/i18n/format-v1.json) bind generation -to native positional formatting, literal percent signs and unmodified argument data. - -## Feature Contracts - -Action search matches the current interface title, description and group as well -as the original action metadata. Localized host copy and literal plugin titles -remain distinct; changing the interface language takes effect on the next query. -Hidden tool-window rail entries remain recoverable by their available command. -Core's stateless `search.actions` returns ordered candidate offsets; the host keeps -ownership of action availability, execution and module activation. See -[the action search fixture](../fixtures/search/actions-v1.json). - -Global Agent instructions edit each upstream Agent's native user file, independently -of the current project and provider. Opening settings is read-only. Codex uses -`CODEX_HOME` (otherwise the user home `.codex`) and its first non-empty -`AGENTS.override.md` / `AGENTS.md`; Claude uses `CLAUDE_CONFIG_DIR` (otherwise -the user home `.claude`) and `CLAUDE.md`. The host resolves these locations; -UI supplies no arbitrary read/write destination. Absolute native paths in snapshots -are display and optimistic-write guards, not portable identifiers. A save checks -the snapshot's path and revision, replaces the file atomically, and reads the -effective source back. Failures retain the draft; reloading explicitly discards it -only after a successful read. Drafts stay separate by Agent. Updated instructions -load in a new native conversation; existing sessions are not rewritten or stopped. -Project instructions retain the upstream Agent's precedence rules. See -`fixtures/agent/agent-instructions-v1.json`. - -A user can also author one shared instruction text in platform-owned application -support storage and opt each supported Agent into a delimited block in its native -file. Synchronization preserves every byte outside that block. Turning a switch -off removes only that block. Enabled, unknown and out-of-date states come from -native snapshots, not a stored preference. Source saves and each target replacement -are atomic individually, not a cross-file transaction: per-Agent conflicts remain -visible and retryable while the saved shared draft and successful targets survive. -No startup/background synchronization or extra prompt injection occurs. A malformed -or duplicate marker is never repaired by overwriting it automatically. See -`fixtures/agent/shared-instructions-v1.json`. - -Shared Monaco highlighting is owned by the current view/model pair. A queued -callback for a closed or replaced model must finish without running against the -new model or locking surviving documents. Primary, split and diff views share -this lifecycle protection; actual symbol computation remains upstream-owned. - -Agent prompt completion may include Agent-reported token counters; their accounting -scope belongs to the provider and is separate from context occupancy and subscription -quota. Platforms may measure locally observed turns with a monotonic clock, including -tools and permission waits, and freeze elapsed time at completion, failure or disconnect. -Normal Agent turns and permission decisions have no total-duration deadline. Quiet -activity notices are advisory and retain the busy turn; stop remains acknowledged -with bounded process cleanup. Missing usage and unmeasured replayed history remain -unknown. See the -[Agent host contract](rust-core-api.md) and `fixtures/agent/acp-events-v1.json`. - -Agent history lists can expose matching summaries as pages arrive while the remaining scan stays loading. Partial results prove presence only; final snapshots reconcile removals, and later failures retain visible rows. History surfaces share connection-local recent snapshots and in-flight requests; manual refresh remains immediate. Workspace/Agent isolation, stale-token rejection and upstream history ownership apply to both partial and final results. - -History provider filtering defaults to all providers and uses only upstream-reported -`modelProvider` identities. Choices span active and archived records; missing metadata -has an explicit unknown choice. A provider selection composes with title/ID search, -favorites and local removal, including archive results. It is transient presentation -state, not a routing or account setting, and never narrows the upstream history scan -or infers provenance from the active model. Bulk actions remain limited to visible -eligible records. Empty filtered results do not establish that no history exists. - -An Agent that advertises steering can accept supplementary user input while its -logical turn is active. Input delivery has a separate pending/received/failed -outcome and does not replace turn ownership, permissions, timing, or Stop. -Only an explicit unconsumed-input acknowledgement permits a normal continuation -prompt; slash commands are explicitly left unconsumed and deferred to this owned -prompt path, whose response also completes command-only input. Pending -continuations remain cancellable while staged configuration is awaiting its -acknowledgement, without cancelling the configuration itself. Unknown delivery -is never retried automatically. Platform UI enables -this behavior from the negotiated capability, not the Agent's display name. - -File context actions target a configured Agent and a root conversation within the -captured workspace. The quick action names the current Agent; other destinations -are grouped by Agent and identify existing sessions or a new conversation. Opening -the menu uses cached session summaries and does not start background Agents. -Attaching appends deduplicated native file references to that destination's draft, -preserves its text, and never sends, steers or cancels a turn. Draft text and files -remain isolated by Agent/session, including new-session creation and failed history -loads. Stale projects, removed Agents and unavailable sessions must not redirect the -attachment. Directories are not recursively expanded. References read saved disk -contents; dirty editor buffers are retained and prompt the user to save before sending. - -Agent activity separates reported plans, native subagents and file edits. Ordinary -tools are execution evidence, never inferred plan steps or child agents. Native -children expose their upstream task, state and delivered output, scoped to their -root conversation. Completion counts only explicit success; unknown outcomes -remain disconnected. Child permissions use the owning root's existing controls. -A platform enables this monitor only when it consumes negotiated child-session -events; execution and history storage remain owned by the upstream Agent. - -The opened workspace, supplied by the product, defines the default meaning of -"current project". A containing Git repository and inherited development rules -do not replace that scope. The shared Host adds the same explicit workspace -context to ordinary prompts and supplementary messages, including prompts after -history restoration. File contents and applicable rules remain Agent-owned; -explicit user requests can select a different scope. Native slash commands retain -their original text and ordered attachments, including deferred supplementary -commands; attachments do not cause workspace context to be appended. Host-added context is omitted from user-message replay -presented by Lithe and from generated live/history-list titles, without rewriting -upstream history or filtering model replies. Titles left empty by this filtering -are missing values, so presentation retains its existing title fallbacks. - -The Host enables the native Codex checklist through process-local -`tools.update_plan.enabled` configuration for both API and subscription launches. -It does not edit CLI settings or switch collaboration mode. Plan creation and -updates remain Agent-owned. - -Native child permissions preserve their requester separately from the root turn. -An ended child or ancestor cancels only that subtree's pending permissions; -presentation consumes the same lifecycle update to remove its prompts and refresh -attention/timing. Root and sibling permissions and the root prompt stay active. - -Agent activity presentation uses the selected session's reported plan, native -subagents and file diffs. Compact summaries may omit empty categories; ordinary -tools do not create placeholder tasks or child sessions. File-summary line totals -require complete reported counts for all included, completed changes; missing or -overflowing counts remain unknown rather than becoming partial or estimated totals. -Review acknowledgements are local to the exact reported version; later edits remain reviewable and start after the acknowledged prefix. -The same open session retains its acknowledgements through disconnects and history -reloads; closing its tab releases them. Replay must still match the exact version -or prefix, so changed upstream evidence is never hidden by a stale acknowledgement. -Reported excerpts and missing original content are not full-file snapshots. -Native rollback is an explicit user action: preserve dirty editor buffers, -reject paths outside the workspace and ambiguous or incomplete evidence, retain -unrelated text, and use guarded native writes preserving encoding. Creation -requires explicit evidence before recoverable removal. Reject replacement terminal -symlinks instead of following them. Guard removal with the expected byte identity -and the native save lock; verify the actual moved object, restore it on conflict -without overwriting a recreated path, and report any manual recovery location. -Unsupported adapters must reject removal rather than use unchecked Trash. -Restoring a deletion -requires the path to remain absent. Batch failures retain unprocessed changes. -These presentation actions do not add Agent Host commands or persist chat history. - -| Feature | Shared input/output | Platform-owned implementation | -| --- | --- | --- | -| Workspace | visible snapshot, relative paths, file metadata, deterministic ordering | workspace root selection, native dialogs, and watchers | -| Documents | relative-path validation, decoded text, selected encoding, dirty/save state, and conflict outcome | native byte conversion, atomic write, and external-change notifications | -| Search | query matching, deterministic result ordering, symbols, and replacement preview | workspace lifecycle and optional index persistence | -| Git | workspace commit plans with optional immutable ChangeList path scopes, dependency ordering, guarded steps and partial-success retry, changes, commits, branches, diffs, reviewed history actions and recovery, worktree listing and safe management, worktree-aware PR publication context, validation, and mutation results | Git executable discovery, credentials, process environment, opening checkout paths, local ChangeList selection and preference persistence | -| GitHub | remote parsing, trusted request plans, normalized branch comparisons and pull requests/reviews/comments, deterministic ordering, and stable errors | OAuth configuration, HTTPS, browser opening, and operating-system credential storage | -| [AI commit messages](ai-commit.md) | provider configuration parsing, commit rules, bounded diff evidence, request plans, and response text | local configuration discovery, credentials, HTTP, cancellation, and draft UI | -| Agent conversation (ACP) | supported-agent catalog, Node.js/npm detection, adapter install with the user's npm and numbers-only live download progress, CLI provenance and owner-preserving updates, per-agent API-key and model delivery over ACP stdio (Codex gateway authentication; Claude public session options), explicit Codex subscription authentication via the installed CLI, bounded official App Server quota reads with account checks, ACP v1 connection per workspace and agent, agent-owned session history (list/load), session config options, user-selected file references as ACP resource links, streamed tool evidence, permission decisions, acknowledged cancellation with bounded recovery, and process-tree lifecycle in the shared Rust host | provider and agent settings, API-key storage, credential-independent local default-model reading through AI configuration ports, data directory, workspace selection, module enablement, conversation UI and compact subscription quota presentation, workspace/Agent-scoped local history annotations (favorites, title overrides and recoverable hidden rows), and user-selected Markdown export destinations | -| [IDE capability API / MCP](ide-api/v1.md) | canonical tool schemas, narrowing host selection, permission/argument validation, stable execution IDs, bounded output cursors and errors | implemented workflow inventory, explicit project authorization, live environment/Build/Run application actions, helper discovery and writable connection storage | -| Runtime | Java/Maven requirements, normalized candidates, and effective toolchain references | JDK/Maven probing and executable paths | -| Language tooling | provider catalog, local fallback results, complete LSP process/session runtime, capabilities, diagnostics, UTF-16 edits, and normalized feature results | executable/environment discovery and UI provider routing | -| Java/Maven/Spring | deterministic Maven-root selection, project structure, modules and profiles, bounded dependency-tree normalization; compiler diagnostic parsing; Java source structure, symbols, code vision, run-configuration detection, Spring configuration/bean/endpoint indexing, and JDTLS/Java Debug adapter policy | JDK/Maven discovery, local dependency-repository selection, Java/Maven child processes, and sockets | -| Run/Debug | versioned configuration documents, three-layer resolution, diagnostics, platform-neutral launch plans, DAP framing/state, reverse terminal requests, breakpoint relocation, stepping filters, threads, stacks, variables, and events | project and preference persistence, native edit reporting, adapter discovery, PTY/ConPTY debuggee launch, child processes, sockets, native termination, and UI | -| Terminal | input bytes, output bytes, lifecycle; [shell selection semantics](terminal-profiles.md) | PTY/ConPTY, shell discovery, native profile preferences, and environment | -| Workbench background | versioned source (`none`, bundled slot `01`–`10`, or `custom`) and opacity | UI, image rendering, bundled-resource packaging, local-image access permission and persistence | -| Local History | revision metadata, text content, restore result | persistence location and file operations | -| Application logging | fixed module categories, versioned event context, recursive privacy rules, bounded timeline filters and frozen diagnostic preview manifests | background queues, native file rotation/retention, effective directory fallback, crash capture, session selection, viewing and user-selected export destinations | -| Modules | stable IDs, manifests, enabled state, lifecycle snapshots, dependencies, capabilities, and contributions | native factories, processes, timers, PTY/ConPTY, watchers, connections, and UI rendering | -| Community integrations | Discourse authorization sessions, RSA-OAEP callback verification, user API protocol models, and normalized community data | opening the system browser, receiving URL callbacks, and credential-vault persistence | -| Updates | normalized release metadata, state names, validated `stable|autobuild` preference, explicit rolling consent, and stable error codes | update feeds, package verification, download, installation, restart, and native UI | - -### Application update channels - -A missing saved channel selects `stable` for Stable and legacy shared-identity builds; -separately installed `Lithe-Dev` defaults to `autobuild`. Invalid preferences select -Stable, and an explicit saved choice takes precedence. Choosing `autobuild` from Stable requires explicit -acknowledgement that rolling builds may contain unfinished features and serious bugs; -both settings UIs continuously recommend Stable for ordinary users. The AutoBuild -release is `https://github.com/1lck/Lithe-IDEA/releases/tag/AutoBuild` and is built -from one pinned `preview` commit per nightly run. - -Installed identity and selected channel are separate. A cross-channel switch requires -an explicit full installation; stable semantic versions must never be compared to -rolling workflow build numbers. Channel changes cannot race active checks, downloads, -installation, or an outstanding switch. Existing offers must be dismissed before the -new preference takes effect. Legacy macOS builds with the Stable bundle ID keep their -signed full Stable rollback path. Dedicated development builds open Stable downloads -for a separate installation; the installer must not accept another bundle identity. - -AutoBuild installs as `Lithe-Dev`, with macOS bundle ID `app.lithe.desktop.dev` and -Windows Tauri identifier `app.lithe.windows.dev`. Stable retains its existing names, -identifiers, preferences domains, Keychain services and historical storage paths. -Preferences, credentials, default logs and app-owned runtime data/cache/temp roots -are isolated by installed identity, never by a mutable channel preference. The -macOS adapter inserts the development bundle ID below system writable roots; -Windows uses Tauri's identifier-scoped app directories and credential service. -Explicit user-selected project/tool/log paths can still be shared. On the first -Dev launch, if no Dev preferences or durable state exist, copy Stable settings and -workspace records into independent Dev storage and persist a versioned completion -marker. Existing Dev data is never merged or overwritten; subsequent launches do -not fall back to Stable. Changing the channel alone does not switch profiles. -Updater/channel suppression state, custom log destinations, browser caches, -indexes, locks and runtime connections are excluded. macOS also copies its local -AI secret file, Maven preferences and marketplace source configuration, along with -persisted database configuration/history/schedules and custom background image access -records. These preference keys also count as existing Dev data. OS-vault -credentials remain separate and may require signing in again. Windows snapshots -only native settings/Maven JSON and closed WebView localStorage, before creating -any WebView; it never copies a live browser profile. A busy source or failed copy -stops initialization with a retry message and no success marker. Published files -and preferences resume from a staged snapshot after an interrupted commit. Stable -source roots are checked only when creating a new snapshot; existing Dev data, -completed markers and frozen snapshot recovery must work without access to Stable. -Signed bundles remain read-only. -DMGs/ZIPs contain `Lithe-Dev.app` and Windows installers use the development product -name, while public release asset filenames remain compatible. Pre-isolation -AutoBuild needs a separate full installation; only matching bundle identities and -app names can be Sparkle differential baselines. - -Within AutoBuild, one whole-second UTC build time is captured per build and encoded -as `YYYYMMDD.HHMMSS` for Sparkle's numeric version comparison. Its corresponding -ISO timestamp is displayed as `AutoBuild — Built at YYYY-MM-DD HH:mm:ss UTC` -(localized as `AutoBuild — 构建自 … UTC`). Equal or older build times are rejected; -workflow run/attempt counters do not determine version identity. The fixed tag stays -`AutoBuild`; its release title and notes show the refreshed build time. Commit SHA -identifies source and SHA-256 checks bytes, neither orders releases. Date formatting -is checked on both clients against -[`build-time-v1.json`](../fixtures/updates/build-time-v1.json). -Windows AutoBuild currently uses an acknowledged browser installer route because -its rolling publisher has no signed Tauri manifest or monotonic updater version. -That route has no target update metadata, download/install progress, or claim that -the installed app is current; scheduled checks do not open a browser or dialog. -Normal Stable-to-Stable checks retain each platform's existing signed updater. -The shared scenarios live in -[`channel-selection-v1.json`](../fixtures/updates/channel-selection-v1.json). - -### Document encoding - -Local text documents expose the selected encoding in the editor status bar. The -supported labels are `UTF-8`, `UTF-8 with BOM`, `UTF-16 LE with BOM`, -`UTF-16 BE with BOM`, `UTF-16 LE`, `UTF-16 BE`, `GBK`, `GB18030`, `Big5`, -`Shift JIS`, `EUC-JP`, `EUC-KR`, `Windows-1250`, `Windows-1251`, -`Windows-1252`, and `KOI8-R`. Native adapters auto-detect UTF-8/BOM, UTF-16 by -its BOM, and the GBK family when opening a file; every other encoding is -selected explicitly because its bytes cannot be told apart reliably. An -explicit reopen request decodes with the selected codec -and exposes replacement characters for invalid byte sequences. “Save -with Encoding” converts the current Unicode buffer only after the target codec -accepts every character. Both products preserve the raw-byte identity of the -last acknowledged disk snapshot and reject a save when another process changed -those bytes. - -### macOS registered workbench tool windows - -The macOS host resolves tool-window actions and content from module contributions. -Project (`workspace.project`), Changes (`git.changes`) and Search (`search.workspace`) -use the same registry as right/bottom tools and declarative plugin windows. Left, -right and bottom each have primary and secondary dock groups, with at most one -visible window per group. Menu moves and pointer drops update the same dock state. Moving or hiding a tool window -changes presentation only; module ownership and resource lifetime stay in ModuleRuntime. -A title-bar minimize action closes its own contribution ID in its current region. - -Workspace layout stores entry order, visibility and placement by contribution ID. -Left content selection and expansion have optional fields for compatibility with -older geometry-only layouts. Legacy workspace session names (`project`, `changes`, -`search`, `pullRequests`) map to stable IDs; other registered IDs survive as strings. -Legacy docking enum names also map to contribution IDs without losing group or -order. Geometry writes merge existing UI preferences. Module release and shutdown do not -replace saved user visibility with teardown state. Restoring a declarative window -activates its owner even if its left slot is already selected, without toggling it closed. -These are macOS host behaviors; Windows adoption remains independent. - -Workbench actions share host-owned visibility, enablement, checked and pending state. -Declarative commands cannot start a duplicate window activation while pending; the -window entry can cancel its own display request. Invocation revalidates the complete -current contribution and state, including old menu/palette callbacks. Built-in command -enablement reuses the existing shortcut policy. One module's concurrent activation -requests share construction; closing/disable cancels and joins that construction before -resources are released. A cancelled UI waiter cannot cancel another window's waiter. - -### External HTML preview - -Both products open an existing local `.html` / `.htm` document in the system's -configured web browser, independently of the file type's default editor. The -browser reads the saved file; this action does not save buffers or start a web -server. File URLs preserve Unicode and reserved characters. Browser discovery -and launch belong to platform adapters, and launch failures are shown to the user. - -## Module Lifecycle Contract - -The macOS reference product implements the built-in manifest in -`shared/fixtures/modules/built-in-v1.json`. Module IDs and manifest fields are -platform-neutral compatibility surfaces. A future Windows implementation may -adopt the contract independently without sharing Swift implementation code or -being coupled to the macOS migration schedule. An implementation of this -contract must preserve these invariants: - -- A disabled module is not instantiated and owns no task, timer, watcher, - session, connection, or child process. -- An on-demand module is instantiated only after its capability is requested. -- Sleeping stops every owned resource and releases the module instance. -- Active non-interruptible work holds a lease that blocks sleep with a reason. -- Wake reconstructs the module, activates declared dependencies first, and - republishes capabilities and contributions. -- Required modules cannot be disabled. A provider cannot be disabled while an - enabled module depends on it. -- Module state is one of `disabled`, `inactive`, `activating`, `active`, `idle`, - `preparingToSleep`, `sleeping`, `sleepBlocked`, or `failed`. -- Native plugin manifests, compatibility, ownership, and signatures are - validated before Bundle loading. A failed optional package is reported to - plugin management and does not prevent required modules from starting. -- Successfully loaded native plugin module IDs remain durably marked for the - process lifetime. An unclean exit leaves the mark behind, so the next launch - quarantines those modules before constructing any plugin Bundle. A clean - application termination clears the mark. -- Disabling a loaded in-process native plugin stops its module-owned resources - immediately. Its code remains mapped until restart, and the next launch - skips the Bundle before invoking its principal class or factories. -- Plugin update, rollback, and uninstall operations that affect mapped code - are finalized before plugin scanning on the next launch. -- Native plugin factories receive a read-only host context. Host services use - stable IDs and shared protocols; plugin code cannot import a platform - composition root or the application executable. -- AI Assistance, Agent Conversation, Terminal, Git, Search, Local History, Debug, and Java/Maven - execution are built-in lifecycle modules. They are not marketplace plugins. -- Java language tooling remains part of the built-in product. Every other - language provider is represented by an independently configurable bundled - language-support plugin. On macOS, Go and PHP are community declarative - plugins from Lithe Store (`io.github.lithe-idea.go-support`, - `io.github.lithe-idea.php-support`); the retired official IDs - `dev.lithe.plugin.go-support` and `dev.lithe.plugin.php-support` keep their - pinned publisher signature requirement but have no official source. The - remaining providers share the host's generic language-server module. -- A downloadable language support package may declare language-server, - execution, testing, and debug module IDs under one language ID. All referenced - modules must be owned by the same package. Execution and testing may share a - module when they share one toolchain lifecycle; language-server and debug - lifecycles remain independently addressable. -- Plugin-owned Run and Test operations may reuse deterministic shared launch - plans, but the actual child process must use a session owned by the plugin - module. A disabled plugin language must not fall back to a built-in process - provider. -- Process-backed language ownership comes from verified installed manifests, - including packages that are disabled, quarantined, or failed to load. Those - states make the capability unavailable; they never restore a host process - fallback. -- Extension execution shutdown completes only after its operating-system - process exits. A bounded force-stop failure remains visible as an active - module resource. Active Run and Test sessions hold leases; successful LSP - document synchronization refreshes the owning module's idle timer. -- Language package manifests include inert file-extension, file-name, and - project-file recognition metadata. The host may use this metadata to suggest - an uninstalled plugin, but it must not load the Bundle or probe a toolchain - during recognition. - -Platform products do not share module-runtime implementation code. The stable -manifest, lifecycle semantics, and deterministic JSON representation are the -portable boundary. - -## Document Lifecycle Contract - -An open document, rather than an editor widget, owns live text for the lifetime -of its tab. Recreating Monaco, `NSTextView`, syntax services, or an LSP binding -must reattach to that document and must not read an older memoized snapshot. - -Persistence state is one of `clean`, `dirty`, `saving`, or `conflict`. -`saving` retains `operationId` and the immutable revision being written. A save -completion only clears dirty state when it still owns that operation and no -newer revision exists. A watcher may reload a clean document, but an external -change to a dirty document enters `conflict` and preserves live text until the -user chooses Keep Editor or Load Disk Version. Notifications during an in-flight -save are reconciled after its result. A missing file uses `diskConflict`, including -when the buffer was clean; it never silently clears the buffer or recreates the file. -Platforms own text and native I/O; Rust Core owns the deterministic decisions. - -Local UTF-8 document saves carry the exact last-observed disk content (or an -explicitly acknowledged missing-file state) into a native guarded write. The -adapter compares bytes, stages a sibling file, checks again, and replaces the -target. A conflict does not write. Keep Editor acknowledges only the observed -version; another external edit must conflict again. Unsupported targets and I/O -errors fail closed. This narrows, but cannot eliminate, the race between the last -comparison and a write by an unrelated process. - -Open document owners lease parent-directory observations independently of project -indexing. Windows routes events by window, document ID, and registration generation; -focus renews registrations and reconciles disk content. macOS provides document -observation through the native workspace file port. Closed or relocated documents -reject stale reads. The Windows frontend bounds concurrent reconciliation to four -per window; macOS runs native document I/O on a serial worker queue. Native local -filesystem calls do not promise a hard cancellation deadline. Remote/WSL and virtual -documents retain their separate adapters. - -Windows native document failures expose a stable `code`, actionable `message`, and -platform `details`: `DOCUMENT_PERMISSION_DENIED`, `DOCUMENT_UNSUPPORTED`, -`DOCUMENT_INVALID_TEXT`, `DOCUMENT_IO_FAILED`, or `DOCUMENT_WORKER_FAILED`. -Watcher setup failures are logged and retried on focus; persistence remains guarded. - -Workspace visibility and project detection exclude nested checkout containers -named `.worktree` or `.worktrees` by default, so a copied project is not treated -as a second set of sources or runnable services. - -Process-backed features use the shared request fields `operationID` and -optional `timeoutMilliseconds`. Adapters emit lifecycle states `starting`, -`running`, `stopping`, `finished`, and `failed`; `operationID` lets the UI -ignore stale termination events after a restart. `stop()` is the cancellation -operation and must terminate the platform process without changing feature -state owned by another operation. The macOS native and language-extension lifecycle -adapters may additionally report an optional `processID` on `running`: this is the -exact launched root, never a process selected by name. Consumers must validate -`operationID` before retaining it and invalidate it on stop, completion, reset, or -replacement. Hosts without a local PID leave it absent. Test performance uses -native CPU/RSS of that root and its descendants (including forked workers), with -RSS explicitly labeled as resident memory rather than JVM heap. Debug keeps its -existing exact-JVM JDK heap sampling; these are separate metric sources. - -Java workspace activation is a shared Core decision over visible relative -paths. Any workspace containing a non-ignored `.java` source starts one JDT LS -session asynchronously, even without Maven or Gradle metadata. That session is -owned by the workspace and remains alive until the workspace closes or the user -explicitly restarts it. `ready` means JDT LS has completed project import, not -merely that the process answered `initialize`. - -JDT LS runs only on the Temurin JDK 21 bundled with Lithe. This runtime is -independent of project Run/Debug JDK selection and has no user-configurable -path. A missing or invalid bundle is a packaging failure. The application shows -preparing, ready, failure, and timeout notifications; a navigation command while -preparing ends after the notice and is never replayed later. - -macOS and Windows adapters discover the selected JDT LS installation's Equinox -launcher JAR, platform configuration directory, Lombok agent, Java Debug -Server, and bundled Java executable. Java Test-capable adapters additionally -submit ordered extension bundles; Rust Core owns their ordering and -de-duplication, the JVM flags, and direct `java`/`java.exe` startup with array -arguments. The macOS TestNG runner remains a packaged native resource used only -when a TestNG session starts. Packaged JDT LS therefore has no runtime dependency -on shell wrappers, PowerShell, or the user's `PATH`. Legacy wrappers are an -external-plan compatibility fallback and are not the packaged execution path. - -Java test discovery remains a language-service workflow rather than a UI or -Debug Core parser. When the Tests tool window is opened or refreshed, the -language facade offers every Java source to Core's typed `javaTestItems` -operation; Core asks the Java Test extension for the class and method tree and -platforms project stable fully qualified identifiers into the native list. -Neither file names nor locally recognized annotations may prefilter this request, -so inherited tests and custom composed annotations remain visible. Closing the tool window, changing workspace, or reloading the -Java runtime cancels the owning discovery operation; late results cannot replace -the current workspace's tree. Discovery does not create a Debug session, result -socket, adapter connection, or target JVM. - -Starting one JUnit or TestNG file, class, or method creates a short-lived native -loopback result listener on demand. JDT LS owns project/test metadata, Rust Core -owns deterministic DAP launch argument projection, and the Debug module owns the -adapter session. Repeated launch, stop, project close, runtime reload, and launch -failure all cancel the active operation and release the listener. The selected -Run configuration remains the source of project-scoped Java runtime selection; -JDT LS remains authoritative for the test runner classpath, working directory, -and test-specific VM and program arguments. - -Platforms observe JDT LS version and non-recursive build-file metadata, while -Rust Core alone validates and reduces those observations to the opaque workspace -fingerprint. macOS and Windows adapters must not duplicate its ordering, -de-duplication, or serialization rules. - -Editor changes use versioned incremental document synchronization and do not -restart the session or clear its index. Workspace watchers coalesce Maven and -Gradle changes before one project refresh and publish normalized watched-file -events. Platform adapters mark selected JDT LS caches as recently used, ask -Rust Core which inactive caches exceed the 30-day retention period, and delete -only those validated directories. **Java: Rebuild Index** remains the explicit -recovery path for the current workspace key. - -Language feature clients route through a provider interface rather than -depending directly on an LSP session. Process-free providers remain available -when an executable is missing. LSP-backed features are enabled only after the -server advertises them during initialize or dynamic registration. The shared -core owns JSON-RPC state, stdio, process lifecycle, and normalized results; -platform adapters own executable and provider-resource discovery. Detailed -invariants are documented in -[`.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md`](../../.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md). - -Session lifecycle is a single discriminated state, never a set of booleans. -Capability negotiation is separately `unknown` or `known`; a known capability -is then supported or unsupported. Failures retain stable `code`, `stage`, exit -code, and diagnostic detail across the Rust, Swift, and TypeScript boundaries. -Domain and adapter layers return stable reasons rather than user-facing prose; -each product's presentation layer owns localized notification text. - -Debugger stepping policy is portable. Rust Core owns adapter defaults, -normalization, validation, adapter launch projection, and the `isFiltered` -classification on normalized stack frames. Platform products own preference -persistence and decide whether matching consecutive frames are collapsed or -expanded in their native call-stack UI. No Debug session, adapter process, or -background task is created merely because stepping preferences exist. - -Exception pause metadata is portable when the adapter advertises the standard -exception-information request. Rust Core normalizes the exception type, -description, break mode, stack trace, evaluation name, and nested details; -native products decide how that data is presented beside the current frame's -ordinary scopes and variables. An adapter that supplies no object reference -does not make the exception itself expandable through this contract. - -Debugger variable paging is portable. Rust Core owns the standard DAP -`filter`, zero-based `start`, and positive `count` request projection and -normalizes adapter-reported `namedVariables` and `indexedVariables` counts to -non-negative values. Native products own tree expansion and page-size policy; -the macOS reference product loads at most 100 children per request, appends -named children before indexed children, exposes an in-tree load-more action, -and discards stale pages after the selected frame changes. A native client must -also stop offering more pages when an adapter returns more children than were -requested or repeats an already loaded page. - -Debugger terminal launch ownership is split at the native boundary. Rust Core -advertises terminal support, validates and normalizes DAP `runInTerminal` -reverse requests, correlates the platform response, and rejects stale or -duplicate completions. The platform Terminal module owns PTY/ConPTY creation, -direct executable-and-argument startup, environment application, process IDs, -terminal presentation, and native termination. A Debug session is still lazy: -neither a terminal nor a debuggee process exists until an adapter requests one. - -Debugger disconnect ownership is portable. A session started with `launch` -owns its local debuggee and sends `terminateDebuggee: true` when stopping. A -session started with `attach` does not own the remote JVM and sends -`terminateDebuggee: false`; closing the native transport must therefore detach -without killing the remote process. A session stopped before launch or attach -also uses the non-terminating policy. - -For JDT LS, the standard initialize handshake and project-import readiness use -separate Core-owned deadlines. Project import fails only after 45 seconds -without changed progress or the 10-minute absolute safety cap; platform clients -must not impose a shorter readiness deadline. The terminal timeout code is -`serviceReadyTimeout`, and its details preserve the last import, download, and -cache snapshot for both products. - -### Explicit debug adapter selection - -`DebugLaunchConfiguration.adapterProviderID` is optional host routing metadata. -Plugin registrations use the existing Registry identity `pluginID/adapterID`; -the host Java adapter retains `java`. The field is not a DAP argument, a process -command, or a plugin-private function call. An omitted identity uses the existing -file selection. An explicit identity, including an empty or withdrawn one, must -never fall back to another adapter matching the file. - -Qualified registrations include every declared adapter, including attach-only -and executable/process adapters. They do not become automatic file defaults. -Before creating a transport, the session manager resolves the current registration -and verifies its declared launch/attach request. An explicit target need not be -an open source file. Retry and configuration transformations retain the identity; -failed additional starts clean up their own session and preserve the previous one. - -Source breakpoints are shared by matching registered adapters, including replay -on a later launch. Function, exception and data breakpoint changes use the selected -adapter identity, even when the target has no source extension. Plugin ownership -continues to control withdrawal and process cleanup. The platform resolver still -owns manifest validation, permissions, executable resolution and supported transports; -this routing field grants no new permission and carries no adapter process or socket. - -The host fixture is [adapter-selection-v1.json](../fixtures/debug/adapter-selection-v1.json). -macOS consumes this contract. Windows has no plugin adapter launch consumer yet. -Build Provider version 5 adds a separate native debug preparation request; -version 4 run plans are never reinterpreted as debug plans. The selected run -names a same-plugin launch adapter. Core validates an existing instance-contained -program plus bounded arguments/environment/directory, and the platform rechecks -executable permissions before binding target facts through `debug.adapters.startArguments`. -Build-tree Debug and saved-provider Run Debug save documents first and revalidate -workspace, source, configuration, model and plugin identity before handoff. Debug -owns the resulting session; stopping preparation or accepting late replies cannot -start a session after invalidation. Java/JDT and cross-plugin preparation are not -covered by this native increment. - -## Error Codes - -Use stable categories rather than platform error strings: - -- `invalid_request` -- `workspace_not_found` -- `permission_denied` -- `not_supported` -- `runtime_missing` -- `process_start_failed` -- `process_failed` -- `parse_failed` -- `cancelled` -- `timed_out` -- `unknown` - -GitHub authorization is independent of a Lithe account. Device Flow is the -preferred path, and its token is stored only in the platform credential store. -The application boundary never exposes that token to a view or persistence -fixture. See [`github.md`](github.md). - -## UI Boundary - -The UI sends commands to an application feature model and renders state from -that model. It must not construct `Process`, file watchers, terminals, runtime -locators, Git command runners, or persistence stores. Platform-specific actions -such as directory picking, file-browser reveal, clipboard access, and native -shortcut monitoring are capability ports, not application logic. - -## Workbench Background Contract - -[`workbench-background-v1.schema.json`](workbench-background-v1.schema.json) -defines the portable background preference. It stores only a stable bundled -slot ID, `custom`, or `none`, plus opacity. A bundled slot is the same product -identifier on every platform; each product packages and renders its own copy of -that slot's image. `custom` deliberately contains no path, bookmark, token, or -image bytes. Native file access authorization and local-image metadata are -platform-private, so a preference can be understood on another platform -without leaking an unusable absolute path or macOS security-scoped bookmark. - -Search and Git examples are kept in `shared/fixtures/`. New behavior should -add a fixture before adding a second platform implementation. - -Git history clients load reference metadata independently from bounded commit -pages. The first page may load concurrently with references, but later pages -append through Core's opaque `nextCursor` while continuing the same bounded Git -log stream. Changing repositories or references and closing the history view -cancels the owning `operationID` and closes any retained cursor; a late result -cannot replace the active selection and its returned cursor is also closed. - -Launch environment precedence and automatic run scanning are Rust Core policy. -Platform adapters discover executable/home paths and provide the native parent -environment; `execution.resolveEnvironment` applies inherited < explicit values. -The selected toolchain installation of each step (a runtime home, a build -tool's own home) is applied by the host from `toolchains.*` before that merge, -so Core names no tool and a plugin decides which installation a step uses. -Automatic scan exclusions, -partial-snapshot retention and diagnostics share one implementation; unreadable -optional subtrees must not erase previously discovered configurations. - -Ordinary workspace events use Core's `workspace.filterChanges` policy before a -host applies event-count recovery thresholds. Native lost-event/error flags always -request recovery. Hosts retain native watch registration, Git/document channels, -explicit watches and platform-specific lifecycle; the shared filter must not -replace those channels or swallow real source changes mixed with build output. - -Run configuration behavior is exposed through the `runConfig.*` commands. -Platform clients coordinate inspection, generation, resolution, typed document -edits, and launch planning, but must not implement a second JSON merger, -toolchain matcher, ID generator, argument parser, or Java/Maven argument -builder. Opening a project inspects existing files without writing; generation -is an explicit user action. Shared project overrides stay in -`.lithe/run/configurations.json`. Machine-local overrides may live in -`.lithe/run/local.json` or in a host-owned document supplied as -`localDocument`; absolute toolchain paths belong only in that local layer and -are excluded from project visibility and Git by default. Generic runtime -executables such as Node are selected in `.lithe/toolchains/local.json`; this -machine-local document is also excluded from Git by default. Missing or -incompatible toolchains block only configurations that consume the affected -toolchain, while diagnostics without a configuration ID apply to the project. -Runtime consumption is declared by the detector from the actual command rather -than inferred from the provider namespace. An automatically discovered runtime -path is session-effective: validation and launch share it, but persistence -still requires an explicit user selection. - -Maven tool-window execution uses `maven.launchPlan`; platform views do not -assemble Maven arguments. Portable profile and Skip Tests defaults conform to -[`maven-portable-configuration-v1.schema.json`](maven-portable-configuration-v1.schema.json). -The transient Core request conforms to -[`maven-launch-context-v1.schema.json`](maven-launch-context-v1.schema.json). -External `settings.xml`, local repository, Maven executable, and Maven JDK -paths remain in a machine-local store. They may be supplied transiently to Core -for planning and fingerprinting, but Core never opens `settings.xml` or -serializes those paths into the portable project context. - -Expanding a module's Dependencies node starts an on-demand query using -`maven.dependencyPlan`; Core owns the fixed plugin arguments and normalizes the -captured text through `maven.dependencies`. Each platform owns a separate, -bounded Maven process for this query so dependency loading cannot replace build -output or stop an ordinary Maven task. Results are cached by module until the -project or Maven configuration changes. The UI exposes loading, ready, failed, -and cancelled states, rejects stale results, and links every dependency to the -owning module's `pom.xml`. Dependency failure never blocks project loading or -Java editing. - -The Java language-server startup consumes that same context. Core exposes the -selected `settings.xml` to JDT LS as -`java.configuration.maven.userSettings`, then applies the sorted Profile set -to the reactor and every recursively declared Maven module after JDT LS -reports `ServiceReady`. The Java session reaches `ready` at that verified -signal; Profile updates then run as a bounded background task with at most -eight in-flight projects. Each project reports its own result, and a rejected -or timed-out update preserves the usable Java session while exposing a partial -failure that the host can retry. - -Maven-backed framework, test, and module launch planning consumes the current -project Maven context. A Run Configuration's explicit Profiles and toolchain -paths take precedence; explicit `cwd` and `extensions.maven.skipTests` values -also take precedence, including `skipTests: false`. Unset values inherit the -project settings. The shared Core applies the final Maven argument order; -tool-window, framework, test, and module launches add `-am` when reactor -dependencies must be built. - -Project-owned Java Main and a Maven Spring Boot service with a resolved Java -entry source use a different boundary: the Java language service selects the -source target, Java Debug Server builds the owning project and resolves its -runtime classpath/module path, Core projects those structured paths into a -direct JDK launch, and the Run host starts that one JVM. Maven still defines the -project model, but Run never sends either target through a reactor-wide Java -launch goal. A user-authored or legacy Spring Boot service without a resolved Java entry source retains -its Maven-goal compatibility path. Run and Debug share the Java preparation path -so module selection, generated sources, test-source mains, and dependency paths -do not drift. - -Both platforms use `java.prepareLaunch` for source-specific entry selection, -the serialized JDT build, and runtime path resolution. One operation ID owns all -three phases and their cancellation; a cancelled or timed-out attempt cannot -advance on a late upstream reply. Hosts save dirty workspace documents before -preparation and abort on any save failure. JDT remains the authority for project -membership and paths; Core retains only the current attempt's intermediate -results. Native adapters still own JDK discovery and process execution. - -An unsuccessful Java launch build is evidence, not an unconditional host veto. -For `javaBuildCompilationErrors` and `javaBuildFailed`, the language boundary -still resolves the target's runtime paths and returns them with Core's build -report. Run and Debug pause the original attempt and offer Run Anyway, Always -Continue for this workspace, and Cancel; a reported index rebuild recovery also -offers Java: Rebuild Index. Continuing resumes the same attempt and never -issues a second build. Cancellation, timeout, transport failure, and an unknown -build status do not carry a code verdict and remain non-overridable. Build -elapsed time is displayed as evidence only, never used as a trust threshold. -Windows opens the Run tool window when a decision is required, including when -Debug was initiated from the Maven tool window, so no launch waits on an -unmounted prompt. - -Java test actions use the same Maven process lifecycle for a complete JUnit 4 -or JUnit 5 test class and for an individual method. The selector is validated -before launch and is passed through `maven.launchPlan`; no platform assembles a -shell command. Surefire/Failsafe text is normalized through `maven.testResults` -into passed, failed, skipped, and total counts plus ordered failure details. -When a stack frame resolves inside the workspace, the failure links to its -one-based source line. The active test operation owns cancellation and stop; -late output or parsed results cannot replace a newer run. The last valid class -or method selection remains available for an explicit rerun, while cancellation -clears only the active result. - -Maven module menus use Core's resolved `extensions.maven.reactorPath` and -module identity before preferring a default Run configuration. An effective -working-directory override is not project ownership. File-dependent entries -such as Current File are not module launch candidates. - -On Windows, Debug cleanup owns a Run execution ID in addition to its reusable -output slot. The host checks that ID atomically when stopping the process so a -late adapter shutdown cannot terminate a replacement Run in the same slot. - -## SVG document preview - -SVG extensions are matched case-insensitively and open as editable text in both -workspace and standalone file flows. The default presentation is editor plus -preview, with editor-only and preview-only modes available. All modes use the -same document buffer and preserve normal dirty, save, undo, and read-only rules. -Preview rendering uses the current unsaved source. Malformed source shows a -rendering failure while the editor remains accessible; correcting the source -restores the preview. SVG is rendered as image data, never inserted into the -application DOM as executable markup. Rendering and resizable layout are owned -by the platform. The behavior fixture is -[`svg-preview-v1.json`](../fixtures/editor/svg-preview-v1.json). - -### Java project preparation presentation - -Core projects the existing Java session, Maven profile task, and JDT build gate -into `projectPreparation` runtime events. Both products render this in their -status bar and Run panel, with language service settings and diagnostic access. -`starting`, `importing`, `configuring`, and `building` describe actual work; -`ready` describes preparation completion, not successful compilation or a valid -launch configuration. Ordinary indexing is not a run prerequisite. - -Preparation is scoped to the Java workspace session. Only JDT-backed launch -paths honor `blocksRun`; other language and Maven-goal launchers keep their own -prerequisites. Partial profile failures remain visible without blocking unrelated -modules: the target build still validates its own readiness. Consumers reject old -session updates and clear state on explicit stop/workspace replacement. -Core's bounded preparation wait is the single launch gate; platform services and -Run controls do not race it with a second snapshot check. Preparation remains -visible while a click queues behind Core, and a stale visible `ready` state -cannot disagree with a separate host-owned preparation veto. - -### Optional PHP support - -PHP plugin installation is explicit. The base application ships neither a PHP -package nor Node/Bun/Intelephense. macOS installs the Lithe Store community package -`io.github.lithe-idea.php-support` through plugin management; the package does not -bundle Intelephense, which the user installs, and its tools are user-owned and -never deleted by Lithe. -Windows installs language tools only on an explicit install/repair action; its -managed tool cache is removed on uninstall without touching global tools. PHP -run/test discovery and launch require enabled support. Disable cancels installation, -stops in-flight and active owned processes, and unregisters providers; closing a -workspace stops that workspace's PHP Run sessions. Shared lexical PHP recognition -may remain available without spawning processes or downloading dependencies. - -Windows optional language implementations are single-module worker packages -(`lithe-worker-plugin`, format version 1). PHP configuration and Composer/PHPUnit -plan generation live in `Plugins/win/Official/PhpSupport`; application builds must -not import that implementation, even through a dynamic import. The inert optional -language catalog may identify package ownership without carrying executable code. - -A user imports a `.lithe-extension` file through extension management. The package -contains a validated manifest and ESM source (maximum 256 KiB), stored atomically in -the WebView user profile under `lithe.worker-package:`. Import installs language -tools but leaves the plugin disabled; enabling starts the existing worker host. -Incomplete installation is not restored on restart. Uninstall removes the source, -parser cache and owned tools; the application installation directory stays read-only. -Local packages are user-selected code, not authenticated official downloads. - -The v1 language package accepts `languages`, `lsp`, and `runActions` declarations; -other host permissions and contributions are not granted. `lsp.requiredExecutables` -is passed to the native tool adapter for PATH validation. `runActions.manifestFiles` -contains at most 16 root-level file names; `executables` names allowed PATH commands. -The worker's `api.runActions.register` receives file contents and returns bounded -plans (`id`, `name`, `sourceLabel`, optional `description`, `executable`, `arguments`). -Only a user click launches a validated plan through the host Run service after saving -the workspace. Workers never own the native process handles; the host tracks both -extension ID and workspace ID, stops pending and active runs on disable/close, and -rejects stale discovery results. Remote/WSL projects do not use these local plans. - -## Text content and language selection - -Native adapters decode document bytes using the existing encoding catalog. -Decoded content is classified by Core's `document.classifyText` policy, also -available through its borrowed UTF-8 C ABI. File extensions and installed -language contributions must not exempt text from control-character validation -or cause Unicode text to be classified as binary. Windows opening and session -restoration share one content loader; read failures remain actionable errors. -Explicit image, database, PDF, and binary-format viewers retain their host routing. - -Both Monaco hosts use the bundled INI tokenizer for `.properties`. Tokenization -is presentation only: no grammar or language server is required to open plain -text. Register bundled contributions in `frontend/editor`, not in a separate -platform-specific tokenizer. Text fixtures are shared under -`shared/fixtures/editor/text-content-v1.json`. - -### Updating a running Java service - -Run/Debug presentation owns an explicit update action bound to an execution ID, -not the latest Run configuration or focused editor. Platform workflows save the -workspace, reuse the live JDT session to verify the original runtime paths, and -compile with the existing Core build coordinator. Build failures cannot be -bypassed for updates. Core owns Java Debug Server response normalization; hosts -own deadlines, stale-result rejection, UI progress and explicit restart actions. - -Run offers compilation for executions whose launch classpath includes Spring -Boot DevTools. Compilation completion does not establish restart or readiness; -the UI directs users to service output, and respects a project-configured trigger -file. Debug uses HotSwap with DevTools automatic restart disabled at JVM launch. -Remote attach and non-JDT launches have no update action in this first version. -No installed resources or new runtime caches are written: output remains in -JDT-owned workspace build paths and the existing platform-owned JDT state. - -### Agent 响应状态展示 - -- 状态与已观察到的 ACP 进度一致:准备会话、等待响应、收到推理、收到回复、本轮工具执行、等待授权、明确重试和正在停止。静默时长不能证明正在推理或重试,已回放的历史工具不属于当前轮次。 -- 固定 codex-acp 的 `session_info_update._meta.codex.error.willRetry == true` 和非空 `turnId` 是 macOS 重试显示的证据;该通知可能没有 `title`。共享样例 `codexRetry` 由官方 ACP SDK 往返验证,Host 继续透传元数据,不新增请求/事件种类或网络重试策略。 -- 状态隔离到会话,新进度清除重试显示,完成/失败/断连清理本轮状态,正在停止时不因迟到进度回退;不得显示未经脱敏的原始错误或从文本猜测重试次数。请求仍等待上游完成/取消确认,既有十分钟 prompt 上限和十秒取消上限不变。 -- 这次交付 macOS 展示;Windows 对话 UI 的消费与真实验收仍待完成。展示状态只在内存中,不写入 bundle、安装目录或上游历史。 - -### Claude Desktop 机制卡片 - -- Host 识别 Claude Desktop 注入的 MCP 工具(`ccd_*`、`visualize`、`terminal`、`Claude_Browser`、`computer-use`、`scheduled-tasks` 与按 UUID 命名的 claude.ai 连接器),为每个调用给出可读的英文 `title` 和 `kind`;不认识的 MCP 服务原样透传。 -- 有交互含义的调用在 `tool_call` / `tool_call_update` 的 `_meta.lithe.claudeDesktop` 附加卡片,字段 `card` 决定类型:`chapter {title, summary?}`、`nextStep {actions: [{label, message}] ≤4}`、`task {title, summary?, prompt?, state: proposed|withdrawn|started|handedOff}`、`pullRequest {action: bound|unbound|monitored|autoMerge, url, number?, autoFix?, enabled?}`、`directory {action: changed|requested, path}`、`widget {title, code ≤256 KiB 字符}`。文本字段截断到 16 KiB 字符;超限的 `widget.code` 置空。 -- `nextStep` 是 Host 另发的已完成调用,id 为原 `wrap_up` 调用 id 加 `#next`;任务撤回或启动的结果到达后,Host 以原卡片调用 id 补发整张卡片。后到的卡片整体替换先前的卡片;不带卡片的更新不清除卡片。 -- 客户端只在调用状态为 `completed` 时显示卡片;未知 `card` 类型、缺字段或非 http(s) 的 PR 链接退回普通工具行。卡片动作只填写输入框,不代替用户发送。可视化内容必须在禁止网络加载、非持久存储、禁止导航的隔离网页中渲染。 -- 共享样例 `shared/fixtures/agent/claude-desktop-cards-v1.json` 按调用顺序记录 Host 收到的更新(`updates`)和呈现给客户端的结果(`presented`),覆盖六种卡片、只换标题的行和原样透传;Host 测试逐例重放它,客户端按它解码卡片。 - - -Agent skill management groups files by Global/Project and retains their Agent -provenance. Codex-reported capabilities and Claude's partial directory inventory -are distinct; neither file presence nor a management-list row proves that the -current conversation has used a skill. Explicit create/import operations write -only to native user/project directories and preserve existing skills. Explicit toggles write native settings: Codex by discovered path via its official App Server API, Claude by name via skillOverrides in user or project-local settings. Claude states are configured visibility, not effective managed/session policy. Never persist a separate Lithe enabled flag, move packages to simulate disablement, or claim that a change revokes already loaded session content. File -contents remain untrusted document data. Settings discovery and file management -must not create conversations, send prompts, or interrupt existing Agent work. - -Build-provider application preparation and execution have separate owners. The -workspace Build session validates a current target and prepares it; the native -Run host owns the application process, output and stop. Explicit persistence -uses the existing local Run v2 layer and stores a typed selector rather than -launch facts. Reopening or restarting re-resolves that selector in the enabled -workspace Provider and prepares afresh. Save-before-run completes before taking -the preparation snapshot; source/configuration changes revoke pending results. -The public Run operation ID spans preparation and process handoff, so UI and Agent -queries keep one execution identity. Stop targets the owned preparation ID before -launch and the owned native process ID afterward. Missing or stale references fail without a CLI or old domain fallback. -A Provider application's native output remains visible even without generated -Run configurations. See `../fixtures/run-configuration/build-provider.json`. - -Windows native preparation returns `resolvedExecutables`, binding directly -launchable definition IDs to this operation's checked native executable paths. Provider Run accepts a -toolchain reference only when that ID is present; it hands the bound path and -selected environment to the native process resolver. Saved legacy runtime paths -and language-import fields cannot replace a missing binding. Conflicting roots -for one ID fail instead of selecting by iteration order. The host-only JSON shape -is exercised by Rust serialization and the TypeScript Run workflow using -`../fixtures/build/native-tool-context.json`; it is not a persisted launch permit. - -Automatic Provider run discovery uses the current public declaration/target pairs, -independently of language imports. The host projects generic selectors and upstream -labels; Core owns stable Run IDs, layering and snapshot freshness. Neither layer -interprets framework IDs or reconstructs commands/toolchains from those selectors. -The existing Java ownership projection remains separate during the remaining migration. - -Portable Provider user choices live in Run v2 `extensions.build-run`, separately -from `extensions.build` selector identity. Hosts preserve exact runtime argument -arrays, opaque entrypoints and declared build-option values; the current Provider -model/declaration validates them during preparation. This reuses protocol 10 rather -than adding tool-specific persistence fields. Migrating old domain formats remains -an explicit temporary adapter responsibility, with conflict-protected storage. - -Complete persisted Build references retain opaque Run IDs across format migrations; -the prefix does not confer authority. Core deduplicates only the generated counterpart -of the effective saved selector and validates it before use. Prepared team/local Run -layers can be resolved without filesystem publication; native adapters own cancellation, -source checks, metadata-preserving conditional writes, rollback and readback. - -### Project Java runtime and language-server runtime - -Platforms supply the selected project JDK with `javaRuntimes[].isDefault`, reusing -Run's project configuration and requirement-aware selection. The JDT host JVM may -remain the bundled supported JVM. Core projects the selected project home to JDT's -`java.configuration.runtimes[].default`; it must not infer the project VM from the -server executable. An invalid explicit selection must not mark an unrelated discovered candidate as the default; -Windows reports the invalid setting before launch. diff --git a/shared/contracts/build-local-options-v1.schema.json b/shared/contracts/build-local-options-v1.schema.json deleted file mode 100644 index 4b909c864b..0000000000 --- a/shared/contracts/build-local-options-v1.schema.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/build-local-options-v1.schema.json", - "title": "Lithe machine-local Build preferences", - "type": "object", - "additionalProperties": false, - "required": ["version", "document"], - "properties": { - "version": {"const": 1}, - "document": {"$ref": "build-project-options-v1.schema.json"}, - "emptySelections": { - "type": "object", - "maxProperties": 32, - "propertyNames": {"pattern": "^[A-Za-z0-9-]{1,64}$"}, - "additionalProperties": { - "type": "object", - "maxProperties": 256, - "propertyNames": { - "minLength": 1, - "maxLength": 1024, - "pattern": "^(?:\\.|(?!/)(?!.*//)(?!.*/$)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\\\:\\x00-\\x1f\\x7f]+)$" - }, - "additionalProperties": { - "type": "array", - "maxItems": 256, - "uniqueItems": true, - "items": {"type": "string", "pattern": "^[A-Za-z0-9_.-]{1,128}$"} - } - } - } - } -} diff --git a/shared/contracts/build-project-options-v1.schema.json b/shared/contracts/build-project-options-v1.schema.json deleted file mode 100644 index 43827ace12..0000000000 --- a/shared/contracts/build-project-options-v1.schema.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/build-project-options-v1.schema.json", - "title": "Lithe team Build options", - "type": "object", - "additionalProperties": false, - "required": [ - "version", - "systems" - ], - "properties": { - "version": { - "const": 1 - }, - "systems": { - "type": "object", - "maxProperties": 32, - "propertyNames": { - "pattern": "^[A-Za-z0-9-]{1,64}$" - }, - "additionalProperties": { - "type": "object", - "additionalProperties": false, - "properties": { - "options": { - "$ref": "#/$defs/values" - }, - "instanceDefaults": { - "$ref": "#/$defs/values" - }, - "instances": { - "type": "object", - "maxProperties": 256, - "propertyNames": { - "type": "string", - "minLength": 1, - "maxLength": 1024, - "pattern": "^(?:\\.|(?!/)(?!.*//)(?!.*/$)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\\\:\\x00-\\x1f\\x7f]+)$" - }, - "additionalProperties": { - "$ref": "#/$defs/values" - } - }, - "savedChoices": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - } - } - } - } - }, - "$defs": { - "values": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - }, - "maxProperties": 256, - "propertyNames": { - "pattern": "^[A-Za-z0-9_.-]{1,128}$" - } - } - } -} diff --git a/shared/contracts/editor-syntax-theme-v1.schema.json b/shared/contracts/editor-syntax-theme-v1.schema.json deleted file mode 100644 index 1afc9ecb9f..0000000000 --- a/shared/contracts/editor-syntax-theme-v1.schema.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/editor-syntax-theme-v1.schema.json", - "title": "Lithe Editor Syntax Theme v1", - "type": "object", - "required": ["version", "id", "fallbacks", "appearances"], - "properties": { - "version": { "const": 1 }, - "id": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" }, - "fallbacks": { - "type": "object", - "required": [ - "annotation", - "documentationComment", - "field", - "functionCall", - "functionDeclaration", - "parameter", - "typeParameter" - ], - "properties": { - "annotation": { "$ref": "#/$defs/role" }, - "documentationComment": { "$ref": "#/$defs/role" }, - "field": { "$ref": "#/$defs/role" }, - "functionCall": { "$ref": "#/$defs/role" }, - "functionDeclaration": { "$ref": "#/$defs/role" }, - "parameter": { "$ref": "#/$defs/role" }, - "typeParameter": { "$ref": "#/$defs/role" } - }, - "additionalProperties": false - }, - "appearances": { - "type": "object", - "required": ["light", "dark"], - "properties": { - "light": { "$ref": "#/$defs/palette" }, - "dark": { "$ref": "#/$defs/palette" } - }, - "additionalProperties": false - } - }, - "$defs": { - "role": { - "enum": [ - "annotation", - "attribute", - "boolean", - "comment", - "constant", - "documentationComment", - "field", - "function", - "functionCall", - "functionDeclaration", - "invalid", - "jsx", - "jsx-attribute", - "keyword", - "null", - "number", - "operator", - "parameter", - "property", - "punctuation", - "regex", - "string", - "tag", - "text", - "type", - "typeParameter", - "variable" - ] - }, - "color": { - "type": "string", - "pattern": "^#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?$" - }, - "palette": { - "type": "object", - "required": [ - "attribute", - "boolean", - "comment", - "constant", - "function", - "invalid", - "jsx", - "jsx-attribute", - "keyword", - "null", - "number", - "operator", - "property", - "punctuation", - "regex", - "string", - "tag", - "text", - "type", - "variable" - ], - "properties": { - "attribute": { "$ref": "#/$defs/color" }, - "boolean": { "$ref": "#/$defs/color" }, - "comment": { "$ref": "#/$defs/color" }, - "constant": { "$ref": "#/$defs/color" }, - "function": { "$ref": "#/$defs/color" }, - "invalid": { "$ref": "#/$defs/color" }, - "jsx": { "$ref": "#/$defs/color" }, - "jsx-attribute": { "$ref": "#/$defs/color" }, - "keyword": { "$ref": "#/$defs/color" }, - "null": { "$ref": "#/$defs/color" }, - "number": { "$ref": "#/$defs/color" }, - "operator": { "$ref": "#/$defs/color" }, - "property": { "$ref": "#/$defs/color" }, - "punctuation": { "$ref": "#/$defs/color" }, - "regex": { "$ref": "#/$defs/color" }, - "string": { "$ref": "#/$defs/color" }, - "tag": { "$ref": "#/$defs/color" }, - "text": { "$ref": "#/$defs/color" }, - "type": { "$ref": "#/$defs/color" }, - "variable": { "$ref": "#/$defs/color" } - }, - "additionalProperties": false - } - }, - "additionalProperties": false -} diff --git a/shared/contracts/git-commit-message-context.md b/shared/contracts/git-commit-message-context.md deleted file mode 100644 index f46340b32c..0000000000 --- a/shared/contracts/git-commit-message-context.md +++ /dev/null @@ -1,44 +0,0 @@ -# Git commit-message context - -`git.commitMessageContext` collects evidence for AI commit generation without -modifying the real index. The behavioral fixture is -[`commit-message-context-v1.json`](../fixtures/git/commit-message-context-v1.json). -Hosts own the selected UI rows, provider credentials, network requests, and draft. - -`capture` takes `mode` (`staged` or `worktree`), `repositories` with each -repository root and selected `files` (`path`, optional `originalPath`, and -`changeKind`), and `maximumDiffCharacters` (8,000–120,000 Unicode scalars). -macOS uses staged changes; Windows uses the complete working-tree state of its -selected paths. Both semantics must match the corresponding commit operation. - -Core reads fresh Git state without the frontend diff cache, rejects missing or -ambiguous selections and sensitive source or destination paths, and preserves -all file identities. An untracked directory selection expands to its files; -the complete expansion is limited to 1,000 files. Binary contents are omitted -with an explicit marker; a binary-only selection has no textual evidence and -is rejected. Git patch exchange rejects a patch larger than 32 MiB -or invalid UTF-8; the total across repositories is also limited to 32 MiB. -These failures never return incomplete evidence. - -The response includes bounded `files` (`path`, `changeKind`, `diff`, -`originalCharacters`, `truncated`) and an opaque `token`. `changeKind` comes from -the captured patch, so a working-tree deletion does not relabel a staged -modification. `ai` owns allocation -of the budget; both the typed and JSON AI planners validate original lengths and -include an explicit truncation warning. The token covers the selected identities, -branch and HEAD, semantic index entries and Git-visible assume-unchanged/skip-worktree flags, and the complete untruncated -patch. For worktree mode Core takes two uncached snapshots to detect edits while -reading. Multi-repository paths use deterministic `repository-N/` prefixes. - -`check` accepts the same `mode` and `repositories` plus the captured `token` and -returns `isCurrent`. It reads the current state again; a missing selection, -read failure, or changed content returns false. Hosts must check workspace, -selection and draft lifetime as well, then apply the generated text only after -`isCurrent` is true. If replacement requires confirmation, they must recheck -immediately before replacing the draft and keep any text edited during that -check. Cancellation, stale state and failures never stage or commit files. - -The token conservatively covers the whole repository index, so a change to an -unselected staged file also invalidates the draft. It is a digest, not a global -lock. External Git or filesystem writes can still occur after the final check; -hosts must not describe it as a transaction. diff --git a/shared/contracts/git-patch-exchange.md b/shared/contracts/git-patch-exchange.md deleted file mode 100644 index 7c3e383cab..0000000000 --- a/shared/contracts/git-patch-exchange.md +++ /dev/null @@ -1,117 +0,0 @@ -# Git Patch Exchange - -The `git.patchExport`, `git.patchPreview`, and `git.patchApply` commands provide -the same external patch semantics to both products. Native file selection, -strict UTF-8 decoding/encoding, atomic file saves, and window presentation stay -in platform adapters. The representative wire shapes are in -[`patch-exchange-v1.json`](../fixtures/git/patch-exchange-v1.json). - -## Export - -`git.patchExport` accepts `root`, `source`, optional `paths` (empty means all -working files), and optional `baseRevision` / `targetRevision`. Paths are literal, -repository-relative identities. Sources are: - -- `workingTree`: the final selected files relative to HEAD, including selected - untracked files. Core prepares an isolated index; the real index and working - files are unchanged. Same-path staged and unstaged changes become one net diff. -- `staged`: the current index relative to HEAD. -- `unstaged`: tracked working files relative to the current index. -- `commits`: the resolved `baseRevision` tree to the resolved `targetRevision` - tree. Both revisions are required; they need not be adjacent or on one branch. - -An `unstaged` export may opt into `includeUntracked: true` (default false). -Core copies the real index, snapshots its tree as the baseline, and stages the -selected working files only in that disposable copy. The resulting single patch -includes tracked edits and untracked additions relative to the index. A file -removed from the index but retained or recreated on disk is an addition even if -it still exists in HEAD. This is the working layer used by Windows Shelf; -combining a HEAD-based `workingTree` patch with an `unstaged` patch loses this -distinction. The option is rejected for other sources. Omission preserves every -existing source's behavior, including macOS consumers. - -For file selection, pass `metadataOnly: true` to enumerate the same source's -sorted counts and rename paths using Git's NUL-delimited statistics. The result -has `patch: ""` and `byteLength: 0`; its files remain available even if an actual -export would exceed 32 MiB or contain non-UTF-8 text. Hosts discover files first, -then request patch contents only for the selected paths. Export failures must -leave the selection editable. Omission or false preserves normal export behavior. - -The response contains exact `patch` text, sorted `files`, and UTF-8 `byteLength`. -Each file has `path`, nullable `originalPath`, and nullable `additions` / -`deletions` (null for binary line counts). An empty export returns an empty patch -and file list. The host explains that there are no changes instead of silently -saving an empty patch. - -Core pins binary encoding, disables external diff/textconv/color, and emits -standard `a/` and `b/` prefixes independently of the user's display settings. -Binary files use Git binary patch encoding. Plain-text patches containing -non-UTF-8 bytes are explicitly rejected: hosts must never replace invalid bytes -with Unicode replacement characters. The maximum exchanged patch is 32 MiB. - -## Preview and Apply - -`git.patchPreview` accepts `root`, `patch`, and `target` (`worktree` or -`indexAndWorktree`). It reads Git's file summary and runs a **forward** `git apply ---check`, returning `applicable`, sorted `files`, `diagnostic`, UTF-8 `byteLength`, -and nullable `expectedState`. No files are modified. Malformed or unsafe paths, -empty patches, and active merge/rebase/cherry-pick/revert operations are rejected. -An applicability failure returns `applicable: false` and no execution token. - -For read-only saved-change browsing, `git.patchPreview` also accepts optional -`metadataOnly: true` (default `false`). This validates patch size and paths and -returns the Git-parsed file summary without inspecting applicability, reading -working-file state, or rejecting an ongoing merge/rebase. It always returns -`applicable: false` and `expectedState: null`; the result cannot authorize Apply. -Normal preview and application semantics are unchanged. - -`git.patchApply` accepts those same inputs plus the exact `expectedState` from -the preview. Core binds the token to patch content, destination mode, repository, -HEAD/branch, raw index bytes (including entry flags), and working-file content. -The exact patch destinations are read even when `assume-unchanged`, -`skip-worktree`, or ignore rules hide changes from Git's normal diff. Paths may -not traverse symbolic-link directories; unsupported directory/gitlink targets -are reported rather than silently omitted. Changes since preview require a -new preview. The final Git invocation checks applicability again and does not use -`--reject`, automatic whitespace repair, `--3way`, or `--unsafe-paths`. - -The command returns the existing `GitCommandResponse`, retaining forward-check -and apply invocations, stderr, exit status, and structured errors. Hosts refresh -repository state after any execution attempt and report actual errors; they must -not equate successful process launch with successful patch application. - -`worktree` leaves staging unchanged; `indexAndWorktree` requires Git's normal -index/working-copy consistency and applies to both. Neither mode creates a -commit. Normal patches do not encode the exporter's former staged/unstaged split. -Filesystem I/O failure or external concurrent processes remain possible; do not -advertise a global transaction or automatic rollback of unrelated edits. - -The older `git.apply` Shelf modes retain their existing behavior. In particular, -`worktreeCheck` and `restoreIndexCheck` remain reverse checks for Shelf retry -detection and are not aliases for the new forward preview. - -## Shelf capture, cleanup, and restoration - -`git.shelf` shares the two-layer Shelf workflow between hosts. `capture` returns -`stagedPatch`, `workingPatch`, and sorted `paths`; the working patch is exported -relative to the real index with untracked files included. An unresolved index -conflict fails capture. Platforms own the existing versioned record and must -persist the complete capture before beginning cleanup. - -`plan` with `phase: clean` or `restore` returns the ordered `layers` array in -[`shelf-v1.json`](../fixtures/git/shelf-v1.json). Before every step the host must -check its workspace lifetime and unsaved-buffer policy. Each `clean` step takes -the saved `snapshot` and a `layer`; Core reviews a reverse patch, verifies the -captured layers against a fresh snapshot, and applies only while the review token -still matches. A changed snapshot fails with `SHELF_CHANGED`. The first step -verifies both layers even if the working patch is empty; the second requires the -saved staged layer and an unchanged clean worktree layer. Index conflict checks -and capture must not refresh the real index. - -Each `restore` step applies the saved layer and, on failure, uses a read-only -reverse check to recognize a layer completed by a previous attempt. The staged -retry check examines the index independently of the worktree. Hosts delete the -record only after every step succeeds; they retain it on partial failure, -cancellation, or deletion failure. The token protects the reviewed Git state, -but external processes and filesystem failures can still interrupt a workflow; -this is not a global transaction or rollback of concurrent unrelated work. diff --git a/shared/contracts/git-rebase-session.md b/shared/contracts/git-rebase-session.md deleted file mode 100644 index bbf472f38b..0000000000 --- a/shared/contracts/git-rebase-session.md +++ /dev/null @@ -1,141 +0,0 @@ -# Native interactive rebase sessions - -Rust Core owns range validation, the reviewed snapshot, safe todo/message -preparation, recovery references, and Git sequencer execution. Native products -own plan editing, progress, conflict presentation, and explicit user controls. -The shared example is `shared/fixtures/git/rebase-session-v1.json`. - -## Preview and plan - -`git.rebasePreview` accepts `{ "root": string, "revision": string }`. The -revision is the **unchanged, excluded base** selected by “Rebase from Here”. -Core resolves the first-parent commits strictly after that base through HEAD, -independently of the platform's loaded log page. The base may be a root commit -or already published. At most 1000 affected commits are supported; affected -history must be linear, local, UTF-8, and unsigned. HEAD must be on a local -branch, with no active Git operation, conflicts, staged/unstaged/untracked -changes, or hidden assume-unchanged/skip-worktree index entries. Git 2.38 or -newer is required. - -The response is `{ allowed, blockers, branch, head, base, commits, -expectedState }`. `blockers` use `{ code, message }`; nullable `branch`, `head`, -and `base` contain full identities. `commits` are oldest first with complete -`{ hash, parents, message }`. Only an allowed preview has `expectedState`, using -the existing history expectation shape with `operation: "interactiveRebase"`. -Its `revisions` internally identify the first affected commit. Clients return -the expectation unchanged; they must not reinterpret it as the excluded base. -Remote eligibility uses fetched remote-tracking refs and does not query a server. - -`git.rebaseStart` accepts `{ root, expectedState, steps }`. Each step has -`{ hash, action, message? }`; the complete preview range must appear exactly -once, in the desired replay order. The allowed actions are `pick`, `reword`, -`edit`, `squash`, `fixup`, and `drop`. Reword requires a nonempty complete -replacement message. Squash optionally accepts a complete combined message; -otherwise Core joins the preceding surviving message and this commit's full -message. Fixup preserves that combined message, including earlier reword and -squash edits. The other actions reject `message`. Squash/fixup require an -earlier surviving commit. Core never accepts arbitrary exec or todo text. -Prepared message files have an aggregate 8 MiB limit. - -## Durable session and controls - -`git.rebaseSession` accepts `{ root }` and returns the last owned session or -`null`. A session contains: - -| Field | Meaning | -| --- | --- | -| `sessionId` | Opaque identifier required by controls | -| `status` | `starting`, `conflict`, `edit`, `paused`, `completed`, `aborted`, `failed`, or `interrupted` | -| `branch`, `originalHead` | Full original branch and pre-rebase commit | -| `head` | Nullable currently observed HEAD | -| `recoveryReference` | Durable original-history ref in the existing bounded recovery namespace | -| `steps` | The complete accepted plan | -| `completedSteps` | Native done entries; its last entry may still be paused/conflicted | -| `currentCommit` | Nullable current original commit from native done metadata | -| `currentMessage` | Complete current HEAD message at an edit pause; otherwise null | -| `conflictedPaths` | Current native conflict paths | -| `canContinue`, `canSkip`, `canAbort` | Controls verified against matching native session state | - -`git.rebaseControl` accepts `{ root, sessionId, action, amendMessage?, expectedHead? }`, where -action is `continue`, `skip`, or `abort`. Only an edit pause accepts -`amendMessage`, and only together with continue. This is an explicit amendment -of HEAD using all currently staged content and the complete supplied message, -followed by native continuation. Amend requests must include the `expectedHead` -shown by the editor; Core rejects missing or changed HEAD before amending. -Clients reload untouched drafts when HEAD changes and preserve edited drafts -with a stale warning until the user explicitly reloads. A plain continue preserves the user's current -commit, including amendments already made outside the dialog. Plain -continuation with staged changes at an edit pause requires an explicit -amendment first; Core prevents Git from silently consuming them. At either kind -of edit continuation, Core rereads the actual HEAD message and regenerates -following squash/fixup message files up to the next pick/reword/edit. An explicit -later squash message continues to take precedence. -Skip is available only for a conflicted step. A successful edit pause has -already created its commit, so native Skip would not omit that commit. -Skipping also refreshes later default squash/fixup messages from the actual -surviving HEAD, excluding the skipped commit's message. - -Start and control return `{ command: GitCommandResponse, session }` after Git -execution, including conflicts, process interruption, and partial outcomes. -Pre-execution invalid/stale/unsupported requests use the standard error envelope. -`command.historyRewrite` is absent: session carries the native rebase outcome. -An edit pause often has exit code zero; clients must use session status instead -of treating that exit status as completion. Warnings preserve recovery/session -identity when a follow-up persistence or inspection fails. An unknown final -state is `interrupted`, with controls disabled until a refreshed query can -verify it. Request cancellation terminates the process; it does not invoke -Abort. A transport failure must be followed by session inspection before retry. - -Post-mutation inspection retains the request's remaining absolute deadline and -cancellation token while that request is active. If cancellation or timeout has -already occurred before inspection, a separate two-second cleanup deadline lets -Core inspect the surviving state without issuing another rebase mutation. The -original request scope is restored on exit. Cancellation or timeout during normal -inspection uses the existing inspection warning and disabled-control fallback. - -Existing `git.write` operationContinue/operationSkip/operationAbort controls -recognize an owned session and restore its editor environment, preserving -compatibility with the existing operation banner. External Git operations use -their existing generic control path. - -## Execution and recovery invariants - -Core acquires the existing repository common-directory write lease, rechecks the -reviewed HEAD/branch/refs/index/working-file snapshot, and persists a recovery -ref plus session manifest and message files before starting rebase. The -manifest lives under this worktree's Git directory, so linked worktrees have -distinct session identity. Core fixes the exact base with `--onto`, disables -autostash, update-refs, autosquash, fork-point, and rebase-merges, reapplies -cherry-picks, and preserves both originally empty and newly empty commits. -An explicit edit amendment also permits an empty commit. Hooks and signing -configuration retain native Git behavior; failure leaves native recovery state. - -Git's editor protocol uses fixed shell templates supported by POSIX Git and -Git for Windows. Paths and reviewed identities travel in environment variables; -messages travel only in UTF-8 files. Windows paths passed to the shell use `/`. -No caller-supplied message, subject, path, or arbitrary command is interpolated -into shell program text. The sequence editor verifies Git's just-created -orig-head, head-name, and onto against the reviewed identities before installing -the plan. This closes the gap between the final Core snapshot and Git capturing -its starting state. The editor then writes an owned-session marker inside -`rebase-merge`; controls require that marker and all three native identities to -match. A previous Lithe session cannot adopt an unrelated external rebase. - -Native done/todo entries must still match the accepted action/full-OID sequence -before continue or skip. If another tool edits the todo, Core disables those -controls and permits explicit abort of the matching session. Original history -remains reachable through the recovery ref and its attributable reflog. The -latest session files remain available across application restart and are -replaced only when another reviewed session starts in that checkout. - -An `interrupted` record with no available controls is diagnostic history, not -proof of an active native operation. When a user requests a new plan, clients -may obtain a fresh Core preview; Core still rejects any actual active operation. -Keep the previous recovery reference available when showing its diagnostic -record, without forcing new plan requests back into that record. - -The persisted session JSON is bounded to 9 MiB, independently of the 8 MiB -raw plan-message limit. Core validates encoded size (including JSON escaping -and space for later status changes) before replacing the stored session or -starting the native sequencer. Oversized plans return `invalid_request` and -require shorter messages; the current branch, index and worktree stay intact. diff --git a/shared/contracts/git-repository-setup.md b/shared/contracts/git-repository-setup.md deleted file mode 100644 index e1489a8d79..0000000000 --- a/shared/contracts/git-repository-setup.md +++ /dev/null @@ -1,28 +0,0 @@ -# Git repository setup - -`git.repositorySetup` and `git.initialize` accept `{root, scope: "local" | "global"}`. -`root` is an existing workspace directory. Initialization rejects directories already -inside a working tree or bare repository; it neither stages files nor creates a -commit. Git's configured initial branch is respected. - -The response distinguishes `isRepository`, `hasCommits`, and nullable `branch` from -history filtering. It also returns `scope`, nullable `configuredName` / `configuredEmail` -(direct entries in the selected scope), and `effectiveName` / `effectiveEmail` -(normal Git config inheritance, including includes). No credentials are queried. - -`git.configureIdentity` accepts `{root, scope, key: "name" | "email", value}`. -Each action writes one field atomically through Git's config lock. `value: null` -explicitly removes that scope's override; an empty string is invalid. Writes are -limited to `user.name` / `user.email`; arbitrary config keys, system config, signing, -credentials, and remote configuration are outside this feature. Local writes require -a repository. Global writes are explicitly selected in Settings and affect other -repositories without their own overrides. Values cannot contain control characters -or angle brackets and are limited to 1024 UTF-8 bytes. - -Both products expose identity configuration in Settings, not in Git Log. The Git -empty state links to Settings and distinguishes an uninitialized folder, an unborn -branch, and a history filter with no matches. Workspace/scope switches discard stale -asynchronous results. Each field has its own save/clear action so partial multi-field -success cannot be mistaken for an atomic save. - -Settings currently requires an open project directory, including when editing global identity. This provides an explicit repository context for effective configuration and conditional includes. Credentials, signing, arbitrary config keys, and a default-branch editor are outside this contract. diff --git a/shared/contracts/github.md b/shared/contracts/github.md deleted file mode 100644 index 126ddca947..0000000000 --- a/shared/contracts/github.md +++ /dev/null @@ -1,121 +0,0 @@ -# GitHub Integration Contract - -Lithe connects a GitHub identity directly; it does not require or create a -Lithe account. macOS currently implements the platform adapters. A future -Windows implementation consumes the same Rust Core JSON commands. - -## Ownership - -- Rust Core parses GitHub remotes, validates operation inputs, builds trusted - request plans, normalizes responses, orders lists, and translates errors. -- Platform adapters execute HTTPS, open the verification page, and store the - OAuth token in the operating system credential store. -- The service coordinates authorization and pull-request workflows. -- The application feature model owns UI state. Views never receive an OAuth - token or call GitHub directly. - -Rust Core never performs GitHub network I/O. A request plan selects only `api` -(`https://api.github.com`) or `web` (`https://github.com`); platform adapters -must not accept an arbitrary host from application input. - -## Authorization - -The preferred flow is GitHub OAuth Device Flow: - -1. `deviceCode` creates a device authorization request using the configured - public OAuth client ID and the `repo read:user` scope needed by the supported - pull-request mutations. -2. The UI displays `userCode` and opens `verificationURI`. -3. `github.deviceAuthorizationTransition` decides when to poll based on elapsed - monotonic time and the normalized response. `slowDown` increases the - interval by five seconds; `pending`, `expired`, and `denied` are explicit. - Waits stop at the local deadline, and the platform checks the deadline again - after waking before making another network request. An authorization already - accepted by the server remains authoritative if the response arrives late. -4. The platform stores an authorized token in Keychain or Credential Manager. -5. `currentUser` validates the token before connected state is published. - -An OAuth client secret, personal access token, and GitHub password are never -requested from the user. Tokens are never placed in Rust requests, logs, -fixtures, user defaults, or error details. - -The macOS product reads `LitheGitHubOAuthClientID` from `macos/Resources/Info.plist`. -The checked-in public client ID identifies Lithe's product-owned GitHub OAuth -App for every installation. It is not a credential or secret. Development runs -may override it with `LITHE_GITHUB_CLIENT_ID`; an empty configuration leaves -GitHub sign-in unavailable rather than asking the user for a personal token. - -## Rust Commands - -- `github.parseRemote` accepts `{ "remoteUrl": string }` and supports canonical - GitHub HTTPS and SSH remotes. It returns `{ "owner", "name" }`. -- `github.requestPlan` accepts an `operation` and typed operation fields. It - returns `host`, uppercase `method`, absolute `path`, ordered `query`, optional - JSON `body`, and `requiresAuthentication`. -- `github.normalizeResponse` accepts `operation`, HTTP `status`, and raw UTF-8 - JSON `body`. It returns a normalized value or the standard Core error. -- `github.deviceAuthorizationTransition` accepts `event`, `expiresIn`, - `interval`, `elapsedMilliseconds`, and optional `suggestedInterval`. It - returns `action`, `intervalSeconds`, and `waitMilliseconds`; it accepts no - device code, access token, or other credential. Events and responses are - specified by `shared/fixtures/github/device-authorization-transition-v1.json`. - Expiration is bounded to one day and intervals are bounded to that maximum - lifetime. The maximum cannot cause early polling: by the time it elapses, - the authorization has expired. This preserves the mandatory cumulative - `slow_down` delay even after the previous 60-second limit. See - [RFC 8628 §3.5](https://datatracker.ietf.org/doc/html/rfc8628#section-3.5) - and [GitHub's device-flow documentation](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps#device-flow). -- `github.pullRequestCheckoutPlan` accepts a pull-request `number`, `headRef`, - and a `branchExists` fact. It returns the proposed branch, an explicit - conflict, and ordered actions; see `shared/fixtures/github/pr-checkout-plan-v1.json`. -- `git.pullRequestCheckoutPreview` inspects the repository and returns that - plan with its current HEAD, symbolic branch, and a process-salted fingerprint - of the effective origin URL; the URL and its possible credentials are not - returned. A caller displaying a GitHub repository also provides - `expectedRepository` so Core verifies that the configured origin still names - that repository. A conflicting local ref returns `git_branch_exists` before - prompting. The client presents the - actions and branch to the user. `git.pullRequestCheckout` rechecks the - reviewed HEAD, branch, repository and origin fingerprint, plus target-ref conflicts, under the Git write - lease. It fetches from origin, rechecks after network I/O, and creates the - local branch without resetting an existing ref. A conflict or changed checkout - requires a new review, reported as `git_branch_exists` or - `git_checkout_changed` respectively. Errors after a subprocess may be carried - in the Git result's `operationError` rather than the outer envelope. External - Git can still operate outside Lithe's lease. - -Supported operations are `deviceCode`, `deviceToken`, `currentUser`, -`listBranches`, `compareBranches`, `listPullRequests`, `getPullRequest`, `createPullRequest`, `updatePullRequest`, -`listPullRequestFiles`, `listPullRequestComments`, -`createPullRequestComment`, `createPullRequestReview`, `mergePullRequest`, and -`updatePullRequestMetadata`. - -PR lists are sorted by descending number. Labels, assignees, comments, and -files are deterministically ordered as demonstrated by -`shared/fixtures/github/pull-request-v1.json`. -Branch lists are sorted by branch name and duplicate names are removed before -they cross the Rust boundary. The first page is capped at 100 branches, which -matches the current creation workflow's bounded picker. -Branch comparisons preserve GitHub's commit order and sort changed files by -repository-relative path. Branch names are percent-encoded by Rust Core before -they enter the trusted compare request path. - -## Product Scope - -The first macOS surface supports connect/disconnect, repository resolution -from `origin`, PR list/detail/create/update, files, conversation comments, -comment creation, review submission, merge/squash/rebase, close/reopen, -labels/assignees, and argument-based checkout of the PR head branch. -Pull-request creation can send the normalized comparison's textual patches and -commit messages to the user's configured AI provider to draft an editable title -and Markdown description. Sensitive-file filtering and the configured diff -character limit are shared with commit-message generation. AI output never -creates or submits a pull request without the user's explicit action. -When the opened workspace has a detached HEAD or commits not present on its -upstream, creation is blocked until the user explicitly publishes the branch. -Rust Core suggests a branch name and likely base branch, validates the name, -and performs the branch creation/push mutation; the platform UI reports that -uncommitted working-tree changes are retained locally and are not part of the -pull request. A failed push retains the new local branch for a safe retry. -Line-level review threads, merge queues, and auto-merge are outside this -contract version. diff --git a/shared/contracts/ide-api/v1.md b/shared/contracts/ide-api/v1.md deleted file mode 100644 index 80173a06f6..0000000000 --- a/shared/contracts/ide-api/v1.md +++ /dev/null @@ -1,232 +0,0 @@ -# IDE capability API v1 - -Lithe exposes the current project's environment, plugin Build and Run workflows to -plugins and MCP clients. File editing and arbitrary shell execution are outside -this contract. Both platforms reuse their existing application actions, including -project preparation, saved toolchain selection and native execution ownership. - -## Ownership and connections - -`rust/lithe-ide-host/src/catalog.rs` owns the tool names, schemas, validation, -permission classification and UTF-8 output paging. `lithe-ide-host` owns the -local broker and private connection descriptor; the `lithe-mcp` binary uses the -official `rmcp` SDK for stdio MCP. HTTP here is an internal authenticated loopback -bridge, not a public Streamable HTTP MCP endpoint. - -Each native product selects its implemented workflows from that catalog. -`open.arguments.toolExposure` is an array of `{name, arguments?: string[]}`; the -same declaration is stored as `toolExposure` in the private connection descriptor. -A host that omits it serves the whole catalog under the catalog's own validation, -and its descriptor has no `toolExposure`. macOS always declares its selection; the -Windows host does not send its inventory yet. -Only known, unique tools and argument names are allowed. Argument selection may -remove optional fields, but cannot remove required fields, change types or widen -permissions. Schemas and ordering remain catalog-owned. The broker rejects tools -outside its declaration before queuing, and `lithe-mcp` resolves that declaration -for `tools/list`. Native plugin calls validate with the same declaration. The -local `catalog`/`validate` utilities also accept `toolExposure`; omitting it inspects -the full reference catalog and does not grant a connection any additional access. -`shared/fixtures/ide-api/host-tool-exposure.json` records both product inventories. - -The user enables one opened project in Settings > MCP Configuration. Read access -includes logs, which can contain sensitive project information. Configure and -execute permissions are independent, disabled by default, and fixed until the -connection is disabled. No tool argument grants permission. Closing the project, -window, or IDE revokes the connection. Already accepted native executions remain -owned by the normal IDE Run/Build workflow; disabling MCP does not kill work the -user may still be observing in the IDE. A closed project uses its existing -execution cleanup. Re-enable access after reopening; copied configuration keeps -the same project descriptor path. A second window cannot replace an enabled -connection for the same project. - -Connection files and locks belong in platform app data, never the installation, -repository or shared worktree caches. macOS uses a private directory and mode -0600 files; Windows uses the current user's local application data directory. -The copied client configuration contains a helper path and descriptor path, -not bearer credentials. The helper reads the current descriptor on every call, -uses only `127.0.0.1`, disables proxying and redirects, and writes protocol output -only to stdout. The broker rejects browser Origin headers and missing/wrong -tokens, bounds request bodies to 64 KiB and pending requests to 16, and times out -delivery after 120 seconds. Inspect operations before retrying a timed-out mutation. - -Native-only `ideHost.control` is not exported as an MCP tool. Its actions are -`open`, `close`, `closeOwner`, `poll`, `claim`, `respond`, `catalog`, `validate` and `output`. -The native window binds `open.arguments.ownerId` (strict camelCase decoding); -`closeOwner.arguments.ownerID` retains its existing spelling. Callers must not -rename both actions together. The owner is supplied by the native adapter, not -trusted from a client request. -Windows attaches an owner-checked native request event sink before returning `open`. -The broker emits `lithe-ide-request` with `{hostID, requestID}` to the owning WebView when work arrives; -WebView timers and visibility do not maintain its authorization. The receiver -calls `claim` with those IDs immediately before the application action. It returns -`{request: {requestID, name, arguments, remainingMilliseconds}}` at most once, or `{request: null}` for -expired, cancelled or already claimed work. A delayed event after suspend cannot -execute an expired mutation. The Windows receiver also measures elapsed time from -before `claim` IPC using Windows WebView's monotonic `performance.now()` clock, -which includes suspension and is unaffected by system clock adjustments. It rejects -an expired reply before executing, -because the claim response itself may be delayed while the WebView is suspended. -`respond` reports `{delivered: boolean}`; a false -result is not permission to replay an operation. Notifications or replies that -fail never reopen a revoked host or replay work; later requests can use the same -authorization. Native window destruction still revokes the connection and releases -the retained event sink. The frontend registers its window-scoped listener before -opening the host and disposes it on failed open, late open after revocation, and -close. Independent events do not wait for missing Channel sequence numbers; a -lost notification expires without blocking later requests or replaying work. -Application actions retain their existing workspace checks. - -The macOS polling adapter remains compatible: it polls only while enabled and -rejects external work after 15 seconds without a heartbeat. That heartbeat check -applies only to polling hosts, not native event subscribers. Both delivery modes -retain the 16-request bound and 120-second deadline. UI reports authorization and -the last request outcome separately. Product-owned failure messages use shared -i18n at render time; original tool diagnostics remain in the MCP response. -Successful tool discovery is not proof that -the project dispatcher answered a tool call. - -MCP `tools/list` includes `ttlMs: 0` and `cacheScope: "private"`, including for -`2026-07-28` discovery. Protocol negotiation and envelopes remain SDK-owned; -legacy and modern clients are verified in separate stdio sessions using -`shared/fixtures/ide-api/mcp-protocol.json`. - -## Capabilities - -Every call carries `name` and an object `arguments`. Unknown keys, missing required -arguments, invalid types and unsupported selection fields are rejected before dispatch. See the executable schemas and -`shared/fixtures/ide-api/calls.json`. Requests do not accept a workspace root: -the connection already owns its workspace. Native toolchain paths are local -configuration values, never portable workspace identifiers. - -| Tool | Arguments | Permission | Result | -| --- | --- | --- | --- | -| `lithe_project_inspect` | none | read | workspace identity, name, permissions and available readiness state | -| `lithe_environment_inspect` | none | read | project-local `settings`, `discovered`, and `effective` toolchains | -| `lithe_environment_configure` | optional `javaHomePath`, `mavenExecutablePath`, `mavenJavaHomePath`, `settingsPath`, `localRepositoryPath` | configure | persisted/effective settings or explicit failure; omitted settings are preserved | -| `lithe_maven_inspect` | none | read | project/modules, profiles, skip-tests and reload/error state | -| `lithe_maven_configure` | optional `profiles`, `skipTests` | configure | saved profiles and reload state | -| `lithe_maven_reload` | none | execute | outcome of existing project/Java synchronization | -| `lithe_build_inspect` | none | read | detected plugin instances, declarations and current model identities | -| `lithe_build_reload` | `instanceID` | execute | model reload requested; inspect until model state is ready | -| `lithe_build_configure` | `instanceID`, `optionID`, `value` (string, boolean, string list or null) | configure | checked persisted option and reload state; null resets the declared option | -| `lithe_build_execute` | `instanceID`, `taskID`, optional `projectID`, `targetID`, `modelTaskID`, `userArguments` | execute | `operationID` for the same Build execution shown by the IDE | -| `lithe_maven_execute` | `goals`, optional `modulePath` | execute | Windows current Maven execution; unavailable on macOS | -| `lithe_run_list` | none | read | project configurations with IDs, names, providers and readiness | -| `lithe_run_start` | `configurationID` | execute | `operationID` after launch; failure if launch was refused | -| `lithe_run_restart` | `operationID` | execute | replacement execution's `operationID` | -| `lithe_operations_list` | none | read | retained Build/Run operations and status, without log bodies | -| `lithe_operation_output` | `operationID`, optional opaque `cursor` | read | state, nullable exitCode, bounded output and cursor | -| `lithe_operation_stop` | `operationID` | execute | stop request for that exact execution | - -Empty configuration paths restore automatic selection. macOS does not serve -`lithe_environment_inspect`, `lithe_environment_configure` or any `lithe_maven_*` -tool: toolchains and build tools belong to plugins there, so an agent reads and -sets their options through `lithe_build_inspect` / `lithe_build_configure` on the -plugin's Build instance, and native XML uses its explicit configuration -workflow. Windows still serves the environment tools, including `settingsPath` -and `localRepositoryPath`, which require a loaded Maven project. An open unsaved -settings draft or an in-progress save returns `BUSY`; the Agent cannot reset -that draft or save unrelated edits. Source read failures remain failures and -never become automatic tool selection. -Configuration writes use the existing platform stores; -they are not a transaction across multiple settings documents. An error can follow -a partial save, so inspect settings before retrying. Credentials, full launch -environment values and command arguments are not included in run configuration -listing. Toolchain discovery uses existing installed tools; it does not install -or download a JDK or Maven. Maven execution may download dependencies or execute -plugins, and is therefore an execute capability. - -On macOS, build execution uses the enabled plugin's detected instance and task -identities. Read them with `lithe_build_inspect`; model project, target and task -selectors require a loaded, current model and are resolved again for each call. -A model task also requires its declaring template and project. Arguments remain -an array of tokens all the way to the Provider; the host does not reinterpret -Maven goals, construct a command string or use the old Maven execution service. -`lithe_build_inspect` also returns each option's ID, kind, effective value, source, -choices and allowCustom, plus native-configuration availability. `lithe_build_configure` -validates one value with the same current instance/model used by the native option -editor, rejects invalid/dropped values before persistence, and reads it back. -Unknown options cannot create preferences. Empty multi-select uses the existing -instance marker, null removes the override, and sibling-only selections survive. -This edits invocation options; it does not mutate native XML. Native configuration -has a separate explicit source/draft/save/read-back workflow. Option changes cancel -stale Provider work and invalidate native drafts, models and language import. - -The same effective Build options, configured tool resolver and workspace Provider -serve UI and Agent calls. An active Build execution returns `BUSY`. - -macOS exposes the four plugin Build tools and removes all four Maven-specific -tools from discovery and admission. Windows connects Build inspect, reload, configure and -execute to its existing workspace-owned Provider controller, alongside the four -Maven tools whose current consumers are still being migrated. Detection reads -only admitted declarations and saved options. Product Build capability admission -remains closed; exposing an implemented API does not admit a plugin requiring -unimplemented capabilities. Windows configure shares the explicit native UI save path, persists machine-local workspace overrides, checks team/local source revisions and re-detects after publication. Null restores team/declaration inheritance; it does not edit a tool-native configuration file. -An unexposed call returns `NOT_SUPPORTED` before native execution. The complete -Maven project, settings and Run migration remains pending outside these Agent paths. - -Windows requires a complete, current model before executing a task. Reload uses -the existing model preparation and returns immediately; inspect reports its state. -Project, target and model-task IDs are matched to that model, including project -ownership and the declaring task template, then the same domain rechecks native -tools, inputs and model evidence. A target cannot be supplied with a model task. -Arguments retain their array boundaries. Build output/status/stop use the existing -bounded in-memory operation records, also shown by the Build output panel. Listing -summaries does not copy log bodies; output pagination uses the existing Core cursor. -Stopping an old retained ID never stops another operation. Revoking an MCP grant -prevents new starts; already accepted work remains owned by the product workspace, -whose close/plugin lifecycle cancels it and waits for cleanup. - -Run operates on saved project configurations, not the currently focused editor -file. Existing Java build decisions are still shown in the IDE; the API never -silently answers them. Output is retained only as long as its existing IDE output -slot: replacing a run, removing its tab, or closing the workspace may expire an -operation. Callers receive `OPERATION_EXPIRED`, never another run's output. - -## Output and errors - -Operation IDs identify executions, not reusable UI slots. Copying/updating a run -snapshot preserves identity; restarting changes it. Build retains its latest execution identity, final state and exit code after -the task exits. Model/dependency logs in the shared UI console are not added to -that execution snapshot. Replacement or workspace reopen expires the old ID; an -old stop request cannot cancel the new task. Clearing output preserves the ID -and resets its buffer, allowing the existing cursor to report the discontinuity. Both the primary application output panel and service -output tabs are included. Operations expose `running`, `preparing`, `stopping`, -`completed`, `failed` or `cancelled` as applicable and a nullable `exitCode`. - -Output pages contain at most 32,768 UTF-8 bytes, never split a Unicode scalar, -and include `nextCursor`, `hasMore` and `reset`. A cursor fingerprints the consumed -prefix. If a UI clear or buffer trim invalidates it, `reset: true` reports the -discontinuity explicitly. Pass the cursor only with its original operation ID. - -Failures contain `error: {code, message}`; callers must check `error` rather than -infer success from a transport response. Shared errors include `INVALID_ARGUMENTS`, -`NOT_SUPPORTED`, `PERMISSION_DENIED`, `BUSY`, `DISCONNECTED`, `DISPATCHER_UNAVAILABLE`, and `TIMEOUT`. -Application failures include `NOT_READY`, `NOT_FOUND`, `NOT_AVAILABLE`, -`WORKSPACE_CLOSED`, `OPERATION_EXPIRED`, `LAUNCH_FAILED`, and `OPERATION_FAILED`. -MCP returns these as visible tool errors (`isError: true`) with structured content. - -## Plugin entry points - -macOS native plugins resolve `.ideCapabilities` from `PluginHostContext`, cast to -`IDECapabilitiesProviding`, enumerate authorized workspace IDs and call JSON -capabilities. The registry holds weak workspace references. Windows integration -Worker plugins declare `permissions: {"ide": true}` and use -`api.ide.authorizedWorkspaceIDs()` / `api.ide.call(workspaceID, name, args)`. -The data-only SDK is `Plugins/win/SDK/ide-capabilities.ts`; the host routes through -`callAuthorizedIdeCapability` in the host-api connection module. The manifest -permission cannot enable a project or increase its configure/execute grants. -Both use the same granted project and validators as MCP. This adds a capability -surface; it does not introduce a new plugin marketplace, sandbox or UI extension SDK. - -## Verification - -- `cargo test --manifest-path rust/Cargo.toml -p lithe-ide-host` -- `cargo build --manifest-path rust/Cargo.toml -p lithe-ide-host --features mcp --bin lithe-mcp` -- `node --test scripts/ide-mcp/test-ide-mcp.mjs` -- Windows: the host-api, Maven, run and project-environment frontend tests, plus a - native packaged run using the generated client configuration. -- macOS: `IdeCapabilitiesTests`, followed by a packaged native run. -- Both platforms: configure JDK/Maven, reload, execute Maven, start a configuration, - read incremental output, restart, reject the old ID, stop, revoke, and close the - project. Confirm installed resource manifests/hashes remain unchanged. diff --git a/shared/contracts/maven-launch-context-v1.schema.json b/shared/contracts/maven-launch-context-v1.schema.json deleted file mode 100644 index 74d995733d..0000000000 --- a/shared/contracts/maven-launch-context-v1.schema.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/maven-launch-context-v1.schema.json", - "title": "Lithe Maven Launch Context v1", - "type": "object", - "additionalProperties": false, - "required": ["version", "reactorPath", "profiles", "skipTests"], - "properties": { - "version": { "const": 1 }, - "reactorPath": { "type": "string", "minLength": 1 }, - "profiles": { - "type": "array", - "items": { "type": "string", "minLength": 1 } - }, - "settingsPath": { "type": ["string", "null"] }, - "localRepositoryPath": { "type": ["string", "null"] }, - "skipTests": { "type": "boolean" }, - "mavenExecutablePath": { "type": ["string", "null"] }, - "javaHomePath": { "type": ["string", "null"] } - } -} diff --git a/shared/contracts/maven-portable-configuration-v1.schema.json b/shared/contracts/maven-portable-configuration-v1.schema.json deleted file mode 100644 index 13c9458482..0000000000 --- a/shared/contracts/maven-portable-configuration-v1.schema.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/maven-portable-configuration-v1.schema.json", - "title": "Lithe Maven Portable Configuration v1", - "type": "object", - "additionalProperties": false, - "required": ["version", "selectedProfiles", "customProfiles", "skipTests"], - "properties": { - "version": { "const": 1 }, - "selectedProfiles": { - "type": "array", - "items": { "type": "string", "minLength": 1 }, - "uniqueItems": true - }, - "customProfiles": { - "type": "array", - "items": { "type": "string", "minLength": 1 }, - "uniqueItems": true - }, - "skipTests": { "type": "boolean" } - } -} diff --git a/shared/contracts/project-manifest-v1.schema.json b/shared/contracts/project-manifest-v1.schema.json deleted file mode 100644 index 0cc2463122..0000000000 --- a/shared/contracts/project-manifest-v1.schema.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/project-manifest-v1.schema.json", - "title": "Lithe Project Manifest v1", - "type": "object", - "required": ["version"], - "properties": { - "version": { "const": 1 }, - "defaultRunConfiguration": { "type": "string", "minLength": 1 } - }, - "additionalProperties": false -} diff --git a/shared/contracts/remote-workspace-protocol-v1.md b/shared/contracts/remote-workspace-protocol-v1.md deleted file mode 100644 index 042a03a4d1..0000000000 --- a/shared/contracts/remote-workspace-protocol-v1.md +++ /dev/null @@ -1,285 +0,0 @@ -# Remote workspace protocol v1 - -The protocol between a Lithe client and `lithe-remote-server`, which runs at -the end of a transport chain (SSH host, container, or a chain of both). The -Rust types in `rust/lithe-remote/src/protocol/` are the reference -implementation; this document is the compatibility surface for other -clients. Design rationale lives in -`.agents/notes/proposed/architecture/2026-10-24-remote-development-workspace-host.md`. - -## Starting the server - -| Command | Session | -| --- | --- | -| `lithe-remote-server --stdio` | Ends with the connection, terminating everything it started. | -| `lithe-remote-server --connect [--state-dir ]` | Persistent: relays to the daemon of session ``, starting it if needed. | - -`` is 1–64 characters from `[A-Za-z0-9._-]`. The daemon keeps its -socket, lock and log under `` (default `$HOME/.lithe-server`) in -directories only the user can access, and rejects peers with another user -id. A session has one client at a time: a new connection replaces the -current one. A session without a client ends after its idle timeout. -Launchers serialize socket rechecking and daemon creation with a per-identity -`.start` advisory lock in the private `run/` directory, bounded by the existing -startup deadline. The lock is released when its owning descriptor closes; its -inode is retained so concurrent waiters cannot lock different files. This keeps -a redundant launcher from restarting an explicitly closed session. - -## Stream - -1. The server writes the preamble `\nLITHE-REMOTE-PROTOCOL/1\n` once per - connection. Clients discard up to 64 KiB of bytes before it (shell - banners) and report them as diagnostics when the preamble never arrives. -2. Every following unit is a frame: a 4-byte big-endian length and that many - bytes of UTF-8 JSON. Frames larger than 16 MiB are rejected. -3. Closing the client-to-server stream is a disconnect. - -The server never listens on a network port; all traffic, including tunnels, -uses this stream. - -## Messages - -```json -{"type": "request", "id": 1, "method": "fs.stat", "params": {"path": "/srv"}} -{"type": "response", "id": 1, "result": {"kind": "directory", "size": 4096, "modifiedMs": 1761300000000, "readonly": false, "mode": 493}} -{"type": "response", "id": 2, "error": {"code": "NOT_FOUND", "message": "…", "details": {"path": "/x", "osError": 2}}} -{"type": "event", "event": "process.exit", "params": {"processId": 1, "exitCode": 0, "signal": null}, "seq": 42} -``` - -- Request `id`s are chosen by the client and unique per connection. - Responses may arrive in any order. A client that stops waiting discards a - late response. -- The first request must be `server.hello`; anything earlier fails with - `INVALID_REQUEST`. Events reach a connection only after it calls - `server.resume`, once. -- Every event carries `seq`, increasing by one per event in the session. -- Field names are camelCase. Byte payloads (`data`) are standard Base64. -- Paths are absolute paths on the remote host. Relative paths fail with - `INVALID_PATH`. -- Queued input and resize requests — `process.writeStdin`, `process.closeStdin`, - `terminal.write`, `terminal.resize`, `tunnel.write`, `tunnel.close`, - `walk.cancel` — are applied in the order sent. Potentially blocking creation - and teardown run on workers; other requests may complete in any order. -- A `process.kill`, `terminal.close`, or `watch.stop` received while the same - resource is starting records teardown before worker scheduling. The creating - worker applies it after publication, even if the close worker is rejected as - `BUSY`, its caller times out, or the connection drops. A close waiter has a - 60-second deadline; expiry does not abandon the recorded teardown. Malformed - controls never cancel creation. Forced kills cannot be downgraded by a later - non-forced kill. Unrelated resources remain independent and no registry lock - covers spawning, filesystem I/O, or process-tree termination. -- A nonpersistent disconnect and every session shutdown also reclaim late - publications. Persistent disconnects alone retain resources for reconnection; - explicit shutdown or idle expiry must not leave a late-created resource alive. - -## Resources and events - -Processes, terminals, watches, tunnels and walks are identified by ids the -**client** chooses, unique within the session across reconnections (start -from `session.nextResourceId` in the hello result). Reusing the id of a live -resource fails with `RESOURCE_ID_IN_USE`; an unknown id fails with -`UNKNOWN_RESOURCE`. - -Every event is named `.` and carries `Id`, so a client -can route `terminal.output` with `terminalId: 7` to terminal 7, and can -subscribe before creating the resource. - -## Methods - -| Method | Params | Result | -| --- | --- | --- | -| `server.hello` | `protocolVersion`, `clientName`, `idleTimeoutSeconds?` | `protocolVersion`, `serverVersion`, `host`, `session` | -| `server.resume` | `afterSeq?` | `truncated`; then every kept event after `afterSeq`, followed by live events | -| `server.ack` | `seq` | `null`; events up to `seq` may be forgotten | -| `server.shutdown` | — | `null`; the session ends | -| `server.ping` | — | `{}` | -| `server.state` | — | running `processes`, `terminals`, `watches` | -| `fs.stat` | `path` | metadata of the path itself (links not followed) | -| `fs.readDir` | `path` | `entries` sorted by name byte order, `skippedNonUtf8` | -| `fs.readFile` | `path`, `offset`, `length` (≤ 8 MiB) | `data`, `eof`, `metadata` | -| `fs.writeFile` | `path`, `data` (≤ 8 MiB), `expected?`, `overwrite`, `createParents` | metadata after the write | -| `fs.createDir` | `path`, `recursive`, `mode?` (at most `0o7777`) | `null` | -| `fs.remove` | `path`, `recursive` | `null`; links are removed, never followed | -| `fs.rename` | `from`, `to`, `overwrite` | `null` | -| `fs.copy` | `from`, `to`, `recursive`, `overwrite` | `skippedSpecialFiles`; links are copied as links | -| `fs.trash` | `path` | `null`; moves the entry to the host account's recoverable system trash | -| `fs.realPath` | `path` | `path` with links resolved | -| `fs.setPermissions` | `path`, `mode` (≤ `0o7777`) | `null` | -| `fs.volumeInfo` | `path` | `caseSensitive` (`null` when unknown) | -| `fs.uploadStart` | `path`, `size`, `sha256`, `mode` | `uploadId` | -| `fs.uploadChunk` | `uploadId`, `offset`, `data` | next `offset` | -| `fs.uploadCommit` | `uploadId` | verified `size`, `sha256` | -| `fs.uploadAbort` | `uploadId` | `null` | -| `fs.createRunDirectory` | `directoryId` | private session-owned `path` | -| `fs.releaseRunDirectory` | `directoryId` | `null`; idempotent release of this session's allocation | -| `walk.start` | `walkId`, `root`, `excludeNames`, `maxEntries?` | `null`; entries follow as events | -| `walk.cancel` | `walkId` | `null` | -| `watch.start` | `watchId`, `root`, `excludeNames` | `watchedDirectories` (per-directory backends) | -| `watch.stop` | `watchId` | `null` | -| `process.spawn` | `processId`, `argv`, `cwd?`, `environment` (`server` / `login`), `env`, `pipeStdin` | `pid` | -| `process.writeStdin` | `processId`, `data` | `null`; `BUSY` when the process stops reading | -| `process.closeStdin` | `processId` | `null` | -| `process.kill` | `processId`, `force` | `null`; signals every process of its session, also after `process.exit` while members run; `UNKNOWN_RESOURCE` once the session is empty | -| `terminal.open` | `terminalId`, `argv?`, `cwd?`, `env`, `columns`, `rows` | `pid`; default program is the login shell | -| `terminal.write` | `terminalId`, `data` | `null`; `BUSY` when not read | -| `terminal.resize` | `terminalId`, `columns`, `rows` | `null` | -| `terminal.close` | `terminalId` | `null`; `SIGHUP` to its session, `SIGKILL` after 2 s | -| `environment.resolve` | `refresh` | `environment`, `source`, `diagnostics?` | -| `tunnel.open` | `tunnelId`, `target` (`{kind: tcp, host, port}` / `{kind: unix, path}`) | `null`; `CONNECT_FAILED` on failure | -| `tunnel.write` | `tunnelId`, `data` | `null`; `BUSY` when the peer stops reading | -| `tunnel.shutdownWrite` | `tunnelId` | `null`; queued data is sent, then the write side is shut down; replies keep arriving | -| `tunnel.close` | `tunnelId` | `null`; aborts both directions, queued data is discarded | -| `ports.listening` | — | sorted `ports` (`address`, `port`) | - -`fs.copy` refuses, with `INVALID_REQUEST`, to copy a file onto itself — -directly, through a symbolic link in either direction or onto a hard link — -and to copy a directory into itself after resolving links. Sockets, FIFOs and -devices are never copied: at the top level the request fails with -`UNSUPPORTED`, inside a tree they are skipped and counted. -With `overwrite: false`, a private sibling staging directory holds the copy -until an atomic no-replace rename publishes it. A concurrent destination -creation fails with `ALREADY_EXISTS` and leaves that destination unchanged. - -`fs.trash` uses the host's native trash implementation (Freedesktop Trash on -Linux and the system Trash on macOS). Recovery content and metadata belong to -the remote account, never to the client placeholder or installation. A host -without usable trash storage returns an error and retains the original entry; -it does not fall back to permanent deletion. - -`fs.writeFile` replaces the file atomically through a temporary sibling and -writes through symbolic links. With `expected` (`size`, `modifiedMs`) it fails -with `CONFLICT` unless the file still matches; without it, an existing file is -only replaced when `overwrite` is set. A write with neither `expected` nor -`overwrite` only creates: when two such writes race, exactly one succeeds and -the other fails with `ALREADY_EXISTS`. When a file is replaced, the temporary -file never has broader permissions than the original. - -Hosts advertising `features: ["upload", ...]` accept staged uploads without -increasing the frame limit. Upload IDs are server-assigned and owned by the -connection that created them, including in a persistent session. At most four -uploads are staged per server; each file is at most 2 GiB. Chunks contain -1–256 KiB of decoded bytes and must name the exact acknowledged offset. -`sha256` is a 64-character hexadecimal digest; `mode` permits only `0o000`–`0o777`. -Staging uses a private `0600` sibling file. Commit verifies size and digest, -syncs the file and atomically publishes without replacing an existing target. -Failed commits, aborts, disconnects, session shutdown and an absolute five-minute -expiry remove staging files. Clients serialize chunks and commit only after -the last acknowledgement. Interrupted clients may not know whether a completed -commit published; owners must remove their allocated run directory separately. - -Upload registry locks do not cover file creation, writes, `fsync`, publication -or deletion. Operations on one upload use a separate nonblocking lock (`BUSY` -for concurrent operations on that upload). Abort, expiry and disconnect mark -an in-flight upload cancelled without waiting for that lock; its worker retains -staging cleanup responsibility. Independent uploads remain usable. - -The optional `runDirectories` feature owns complete runtime input snapshots, -not just unpublished upload files. Clients choose a unique `directoryId` before -allocation (1–64 ASCII letters, digits, `_` or `-`), so a cancelled or lost reply -can still be released by identity. The host creates a fresh `0700` directory -below its private `~/.lithe-server/plugin-runs/`; it never adopts an existing -directory or accepts an arbitrary cleanup path. At most 256 allocations belong -to a session. A later release is ordered after a pending allocation even when -its worker has not started. Release is idempotent and affects only that -session's allocation. A removal failure is returned to the waiting release -request, and ownership remains registered so release can be retried. Existing -parent directories must be real, owned by the host user and inaccessible to -group/other users; allocation never changes their permissions. -Clients stop the consuming process before release. - -Nonpersistent disconnect and session shutdown remove these directories after -process teardown and worker drain. Persistent disconnect retains them for -reconnection; an abandoned desktop's directories are removed at idle expiry. -This is not crash recovery of a forcibly killed server: such directories remain -until a future process-liveness-aware recovery mechanism or manual cleanup. -No age-based scan deletes other sessions' snapshots. Installed resources and -persistent provider state are never cleanup targets. - -`process.exit` and `terminal.exit` report the leader. The server keeps owning -its session until no member is left, so members that outlive the leader can -still be killed and are cleaned up when the session ends; `server.state` -marks such processes with `leaderExited`. - -When a session ends, the server terminates everything it still owns -(`SIGTERM` or `SIGHUP`, then `SIGKILL` after 2 seconds to sessions that still -have members), lets running requests finish for up to 5 seconds, and exits. - -`environment.resolve` asks the user's login shell, interactive first, for its -environment and caches it for the session. `process.spawn` with -`environment: login` uses that environment as the base. - -## Events - -| Event | Params | -| --- | --- | -| `process.output` | `processId`, `stream` (`stdout` / `stderr`), `data` | -| `process.exit` | `processId`, `exitCode`, `signal` — always after that process's output | -| `terminal.output` | `terminalId`, `data` | -| `terminal.exit` | `terminalId`, `exitCode`, `signal` — always after that terminal's output | -| `watch.changed` | `watchId`, `changes` (`path`, `kind`: `created` / `modified` / `deleted`), `overflow` | -| `watch.error` | `watchId`, `code` (`LIMIT_REACHED` / `ROOT_REMOVED`), `message` | -| `walk.entries` | `walkId`, `entries` (`path` relative with `/`, `kind`) | -| `walk.done` | `walkId`, `total`, `truncated`, `cancelled`, `skippedNonUtf8`, `unreadableDirectories` | -| `tunnel.data` | `tunnelId`, `data` | -| `tunnel.closed` | `tunnelId`, `error?` — the last event of the tunnel | - -`watch.changed` batches are coalesced and sorted by path. With `overflow` -changes were lost and the client must rescan the watched tree. - -## Event delivery and persistent sessions - -`server.hello` returns `session` with `persistent`, `resumed`, -`nextResourceId` and `lastEventSeq`. The session keeps every event until the -client acknowledges it with `server.ack` (clients acknowledge periodically, -for example every 256 events), up to 8 MiB; beyond that the oldest kept -events are dropped. Written to a socket is not received: when a connection -dies, events may still sit in its outbox or in kernel buffers, so they stay -kept until acknowledged. - -`server.resume` with `afterSeq` — the last `seq` the client received on an -earlier connection — sends every kept event after it, then live events, so -each event arrives exactly once. A reconnecting client first calls -`server.state` and subscribes to the resources it reattaches to, then -resumes, so their missed events reach those subscriptions. `truncated` means -events after `afterSeq` were dropped; the client re-reads state and rescans -watches. - -While no client is attached, a persistent session keeps processes, terminals -and watches running. Tunnels and walks belong to the connection that opened -them and end with it. After `server.shutdown` a persistent session is no -longer reachable, even while it is still terminating its processes; the next -connection with the same key starts a fresh session. - -## Host capabilities - -`server.hello` returns `host` with `os` (`linux` / `macos`), `arch` -(`x86_64` / `aarch64`), `hostName`, `userName`, `homeDirectory`, -`defaultShell`, `pathSeparator`, `process.orphanProtection` -(`parentDeathSignal` / `serverShutdown`), `watch.backend` -(`inotify` / `fsevents`), `watch.directoryLimit` and the sorted `features` -list. Clients branch on these facts, never on `os` alone, and check -`features` before calling optional methods. - -## Error codes - -`PROTOCOL_MISMATCH`, `INVALID_REQUEST`, `UNKNOWN_METHOD`, `INVALID_PATH`, -`NOT_FOUND`, `PERMISSION_DENIED`, `ALREADY_EXISTS`, `NOT_A_DIRECTORY`, -`IS_A_DIRECTORY`, `DIRECTORY_NOT_EMPTY`, `CONFLICT`, `TOO_LARGE`, -`UNKNOWN_RESOURCE`, `RESOURCE_ID_IN_USE`, `SPAWN_FAILED`, `CONNECT_FAILED`, -`BUSY`, `UNSUPPORTED`, `IO`. Clients additionally produce `TIMEOUT` and -`DISCONNECTED` locally. Messages are for people; OS error numbers stay in -`details`. - -## Compatibility - -Incompatible changes increment the protocol version, which `server.hello` -rejects with `PROTOCOL_MISMATCH`. Additive fields and new methods keep the -version and are announced through `features`. The daemon's socket name -includes the server version, so a client upgrade starts a new daemon rather -than reaching an older one. - -## Server identity - -`lithe-remote-server --identity` prints one JSON line with `serverVersion`, -`protocolVersion` and `sha256` of the executable itself. Bootstrappers reuse an -installed server only when the hash matches the artifact they ship. diff --git a/shared/contracts/run-configuration-v1.schema.json b/shared/contracts/run-configuration-v1.schema.json deleted file mode 100644 index 6c09a68d0b..0000000000 --- a/shared/contracts/run-configuration-v1.schema.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/run-configuration-v1.schema.json", - "title": "Lithe Run Configuration Document v1", - "type": "object", - "required": ["version", "configurations"], - "properties": { - "version": { "const": 1 }, - "generator": { - "type": "object", - "required": ["fingerprint"], - "properties": { - "fingerprint": { "type": "string", "pattern": "^sha256:" }, - "inputs": { - "type": "object", - "propertyNames": { "type": "string", "minLength": 1 }, - "additionalProperties": { "type": "string", "pattern": "^sha256:" } - } - }, - "additionalProperties": false - }, - "configurations": { - "type": "array", - "items": { "$ref": "#/$defs/configuration" } - } - }, - "$defs": { - "configuration": { - "type": "object", - "required": ["id"], - "properties": { - "id": { "type": "string", "minLength": 1 }, - "name": { "type": "string", "minLength": 1 }, - "type": { "enum": ["java.current-file", "spring-boot.maven", "maven.module"] }, - "module": { "type": "string" }, - "mainClass": { "type": "string" }, - "toolchains": { "type": "object", "additionalProperties": { "type": "string" } }, - "workingDirectory": { "type": "string", "pattern": "^(?!/)(?!.*(^|/)\\.\\.(?:/|$)).*$" }, - "jvmArguments": { "type": "array", "items": { "type": "string" } }, - "programArguments": { "type": "array", "items": { "type": "string" } }, - "mavenProfiles": { "type": "array", "items": { "type": "string" } }, - "mavenSkipTests": { "type": "boolean" }, - "disabled": { "type": "boolean" } - }, - "additionalProperties": false - } - } -} diff --git a/shared/contracts/run-configuration-v2.schema.json b/shared/contracts/run-configuration-v2.schema.json deleted file mode 100644 index 057f1e4504..0000000000 --- a/shared/contracts/run-configuration-v2.schema.json +++ /dev/null @@ -1,272 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/run-configuration-v2.schema.json", - "title": "Lithe Run Configuration Document v2", - "type": "object", - "required": ["version", "configurations"], - "properties": { - "version": { "const": 2 }, - "generator": { - "type": "object", - "required": ["fingerprint"], - "properties": { - "fingerprint": { "type": "string", "pattern": "^sha256:" }, - "providerFingerprint": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }, - "providerRunFingerprint": { "type": "string", "pattern": "^sha256:[a-f0-9]{64}$" }, - "unreadablePaths": { "type": "array", "items": { "type": "string" }, "uniqueItems": true }, - "inputs": { - "type": "object", - "propertyNames": { "type": "string", "minLength": 1 }, - "additionalProperties": { "type": "string", "pattern": "^(sha256:.+|path)$" } - } - }, - "additionalProperties": false - }, - "toolchain": { - "type": "object", - "description": "Machine-local project toolchain defaults. Stored only in the local layer; non-empty per-configuration paths override matching defaults.", - "properties": { - "preferences": { "$ref": "toolchain-consumer-preferences-v1.schema.json" }, - "java": { - "type": "object", - "properties": { - "homePath": { "type": "string" } - }, - "additionalProperties": false - }, - "maven": { - "type": "object", - "properties": { - "executablePath": { "type": "string" }, - "javaHomePath": { "type": "string" } - }, - "additionalProperties": false - }, - "pathOverrides": { - "type": "object", - "description": "Machine-local subproject selections, keyed by normalized workspace-relative root. Empty fields inherit project defaults. Hosts preserve the map when saving individual run configurations.", - "maxProperties": 256, - "propertyNames": { "type": "string", "minLength": 1, "maxLength": 1024, "pattern": "^(?!/)(?!.*//)(?!.*/$)(?!.*(?:^|/)(?:\\.|\\.\\.)(?:/|$))[^\\\\:\\x00-\\x1f\\x7f]+$" }, - "additionalProperties": { - "type": "object", - "additionalProperties": false, - "properties": { - "javaHomePath": { "type": "string", "maxLength": 4096 }, - "mavenExecutablePath": { "type": "string", "maxLength": 4096 }, - "mavenJavaHomePath": { "type": "string", "maxLength": 4096 } - } - } - } - }, - "additionalProperties": false - }, - "configurations": { - "type": "array", - "items": { "$ref": "#/$defs/configuration" } - } - }, - "$defs": { - "buildProjectReference": { - "type": "object", "additionalProperties": false, - "description": "Read-only current model owner; generated ownership cannot be overridden by document layers.", - "required": ["pluginID", "buildSystemID", "root", "projectID"], - "properties": { - "pluginID": { "type": "string", "minLength": 1, "maxLength": 200 }, - "buildSystemID": { "type": "string", "minLength": 1, "maxLength": 120 }, - "root": { "$ref": "#/$defs/relativePath" }, - "projectID": { "type": "string", "minLength": 1, "maxLength": 256 } - } - }, - "relativePath": { - "type": "string", - "pattern": "^(?!/)(?!.*(^|/)\\.\\.(?:/|$)).*$" - }, - "buildProviderReference": { - "type": "object", - "required": [ - "pluginID", - "buildSystemID", - "root", - "run", - "projectID", - "targetID" - ], - "properties": { - "execution": { "enum": ["application", "service", "task"] }, - "pluginID": { - "type": "string", - "minLength": 1, - "maxLength": 200 - }, - "buildSystemID": { - "type": "string", - "minLength": 1, - "maxLength": 200 - }, - "root": { - "$ref": "#/$defs/relativePath" - }, - "run": { - "type": "string", - "minLength": 1, - "maxLength": 200 - }, - "projectID": { - "type": "string", - "minLength": 1, - "maxLength": 2048 - }, - "targetID": { - "type": "string", - "minLength": 1, - "maxLength": 2048 - }, - "userArguments": { - "type": "array", - "maxItems": 64, - "items": { - "type": "string", - "maxLength": 4096 - } - } - }, - "additionalProperties": false - }, - "fixedToolSelection": { - "oneOf": [ - { - "type": "object", - "required": [ - "home" - ], - "additionalProperties": false, - "properties": { - "home": { - "type": "string", - "minLength": 1, - "maxLength": 4096, - "description": "Absolute native path; Core rejects traversal and control characters before use." - } - } - }, - { - "type": "object", - "required": [ - "executable" - ], - "additionalProperties": false, - "properties": { - "executable": { - "type": "string", - "minLength": 1, - "maxLength": 4096, - "description": "Absolute native path; Core rejects traversal and control characters before use." - } - } - } - ] - }, - "buildProviderRunOptions": { - "type": "object", - "additionalProperties": false, - "properties": { - "runtimeArguments": { - "type": "array", - "maxItems": 1024, - "items": { - "type": "string", - "maxLength": 65536, - "pattern": "^[^\\u0000]*$" - } - }, - "entrypoint": { - "type": "string", - "maxLength": 4096, - "pattern": "^[^\\u0000]*$" - }, - "options": { - "type": "object", - "maxProperties": 64, - "description": "Opaque declared Build option values, bounded to 64 KiB UTF-8 JSON by Core; validated against the current declaration during preparation.", - "propertyNames": { - "pattern": "^[A-Za-z0-9._-]{1,200}$" - } - }, - "tools": { - "type": "object", - "maxProperties": 64, - "description": "Per-Run fixed tools, bounded to 64 KiB UTF-8 JSON by Core. Entries merge by tool ID; null clears an inherited Run choice and resumes directory policy.", - "propertyNames": { "pattern": "^(?:[a-z0-9]+(?:[.-][a-z0-9]+)*:)?[a-z][a-z0-9-]{0,63}$", "maxLength": 192 }, - "additionalProperties": { "oneOf": [{ "$ref": "#/$defs/fixedToolSelection" }, { "type": "null" }] } - } - } - }, - "configuration": { - "type": "object", - "required": ["id", "provider"], - "properties": { - "id": { "type": "string", "minLength": 1 }, - "name": { "type": "string", "minLength": 1 }, - "provider": { - "type": "string", - "pattern": "^[a-z][a-z0-9-]*\\.[a-z][a-z0-9-]*$" - }, - "execution": { "enum": ["application", "service", "task", "group"] }, - "category": { "enum": ["project", "infrastructure"] }, - "command": { "type": "string", "minLength": 1 }, - "args": { "type": "array", "items": { "type": "string" } }, - "cwd": { "$ref": "#/$defs/relativePath" }, - "env": { - "type": "object", - "propertyNames": { "type": "string", "minLength": 1 }, - "additionalProperties": { "type": "string" } - }, - "confidence": { "enum": ["native", "declared", "heuristic"] }, - "toolchains": { "type": "object", "additionalProperties": { "type": "string" } }, - "debug": { - "type": "object", - "required": ["adapter"], - "properties": { - "adapter": { "type": "string", "minLength": 1 } - }, - "additionalProperties": false - }, - "members": { "type": "array", "items": { "type": "string" } }, - "extensions": { - "type": "object", - "propertyNames": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" }, - "properties": { - "java": { "type": "object", "properties": { - "build": { "$ref": "#/$defs/buildProjectReference" }, - "module": { "type": "string" }, - "mainClass": { "type": ["string", "null"] } - } } - }, - "additionalProperties": { "type": "object" } - }, - "disabled": { "type": "boolean" }, - "source": { "type": "string" } - }, - "additionalProperties": false, - "allOf": [{ - "if": { "properties": { "provider": { "const": "build.provider" } } }, - "then": { - "required": ["extensions"], - "properties": { - "execution": { "enum": ["application", "service", "task"] }, - "command": false, - "toolchains": { "maxProperties": 0 }, - "debug": false, - "extensions": { - "required": ["build"], - "properties": { - "build": { "$ref": "#/$defs/buildProviderReference" }, - "build-run": { "$ref": "#/$defs/buildProviderRunOptions" } - } - } - } - } - }] - } - } -} diff --git a/shared/contracts/rust-core-api.md b/shared/contracts/rust-core-api.md deleted file mode 100644 index 8c6293c6be..0000000000 --- a/shared/contracts/rust-core-api.md +++ /dev/null @@ -1,6490 +0,0 @@ -# Rust Core API - -## Normalized shortcut import validation - -`keymap.decodeImport` accepts `{commandIDs: string[], reply: {bindings: -[{commandID: string, keys: [{key: string, modifiers: string[]}]}]}}` and -returns `{bindings: [...]}`. The caller supplies its current action catalog; -unknown or duplicate actions, duplicate keys or modifiers, unknown fields, -unsupported keys and unmodified printable keys fail with `invalid_request` and -no partial result. Modifiers are `control`, `alt`, `shift` and `meta`, in -that canonical order. Keys are lowercase single ASCII graphic characters, -`f1` through `f24`, or `up`, `down`, `left`, `right`, `return`, `tab`, -`space`, `backspace`, `delete`, `escape`, `pageup`, `pagedown`, `home`, `end` -and `insert`. This is the portable vocabulary; each host must still reject keys -its native input and shortcut model cannot represent. A printable character or `space` requires `control`, `alt` or -`meta`. Empty key lists represent an explicit unbinding. Actions are returned -in ID order; each action's key order is retained because the first is its -primary binding. A shortcut used by different actions is retained for the -host's final conflict check. Requests are limited to 1 MiB, 4096 catalog IDs, -4096 actions, eight keys per action and 128 UTF-8 bytes per ID. The shared -[fixtures](../fixtures/keymap/import-provider-v1.json) cover this contract. - -This validates normalized results only. It neither parses an IDE's private -format nor discovers or starts a provider; an unimplemented provider API must -not be inferred from the existence of this Core command. Conditional rules and -multi-stroke keys cannot be represented and must not be silently made global. - -`debug.startOrContinue` accepts `{active, paused, requestPending}` booleans and returns -`{action: "start" | "continue" | "none"}`. An in-flight request or an active, -non-paused session returns `none`; an inactive session starts, and an active -paused session continues. The platform executes the result against its current -session and must still guard against state changes. - -`keymap.planImportBindings` accepts `{current: [{commandID, customized, keys}], -incoming: {bindings}}` and returns `{displaced, conflicts}`. Current entries -are the host's complete action catalog and effective key-press bindings; -non-key-press bindings remain in the host and are never displaced. Incoming -bindings use the same validation as `keymap.decodeImport`. Each displacement -names an unchanged default action and only the keys to remove. A customized -owner or two imported actions claiming the same key produces a conflict naming -`commandID`, `ownerID` and `key`; a conflict clears all displacements so a -caller cannot apply a partial plan. Actions included in the import replace -their old bindings, permitting swaps. Results are deterministic. Requests are -bounded to 1 MiB, 4096 actions, eight keys per action, 4096 conflicts and -131072 ownership comparisons. Hosts must recheck the source and settings -revisions at apply time. See [plan fixtures](../fixtures/keymap/import-plan-v1.json). - -`keymap.planImportSources` accepts `{manifest, providerID}` and returns -`{inputs, recognition, limits}` for exactly that declared provider after validating the entire -manifest; an unknown provider or invalid manifest returns `invalid_request`. -The payload is bounded to 1 MiB. It performs no filesystem I/O and does not -establish package trust: callers must supply the enabled, previously accepted -plugin manifest. Selectors and native read limits are defined by the -[plugin contract](plugins/v1/README.md#shortcut-import-providers-core-foundation). -The returned limits bound selectors, recognition probes, files, bytes per file and per snapshot, -bytes per chunk, directory entries scanned and matching entries per directory; -native adapters apply these values to their I/O. -See [source plan fixtures](../fixtures/keymap/source-plans-v1.json). - -For the provider foundation, `lsp.startServer` optionally accepts -`keymapImportProviders`, an array of at most eight declared plugin-local IDs. -Only a plugin-owned session with valid IDs offers -`experimental.litheKeymapImport: {versions: [0], providers}`. A backend may -select a non-empty, duplicate-free subset using `{version: 0, providers}`; -Core emits `keymapImportProviders` with `result: {providers}` only for a valid -selection. Invalid IDs, unknown selections and unsupported versions enable no -providers. This negotiation alone does not implement the product workflow. See the -[negotiation fixtures](../fixtures/keymap/provider-negotiation-v1.json). - -`lsp.keymapImportRequest` accepts `{sessionId, operationId?, providerID, -snapshotID, timeoutMilliseconds?}` and returns `{operationId}`. The requested -provider must have been selected in that exact session. `snapshotID` is an -opaque 1–128 byte ASCII alphanumeric, hyphen or underscore token, never a -filesystem path; the native snapshot service must separately enforce ownership, -expiry and read permissions before supplying any source data. The method sends -`lithe/keymap/import` with only `{providerID, snapshotID}` and caps the request -deadline at 60 seconds. Completion returns the untrusted JSON-RPC reply as -`result.value: {id, response}`; callers must validate successful reply data via -`keymap.decodeImport` before applying it. Replies larger than 1 MiB fail with -`plugin.keymapImport.replyTooLarge`; no partial result is returned. Normal -session cancellation and teardown apply. Backend attempts to call -`lithe/keymap/*` are refused as recursive domain calls. The macOS host has a -scoped snapshot service, but native provider discovery and a product consumer -are not implemented yet. - -## Shortcut context compilation - -`keymap.parseContext` accepts `{expression: string}` and returns -`{parsed: {keys: string[], values: boolean[]} | null, error: {code: string, byteOffset: number} | null}`. -Exactly one of `parsed` and `error` is non-null. Diagnostics use zero-based UTF-8 -byte offsets in the original expression, not editor UTF-16 positions. - -The grammar supports boolean context identifiers (`[A-Za-z0-9_.]+`, with -`true`/`false` reserved), quoted strings, parentheses, unary `!`, strict typed -`==`/`!=`, `&&`, and `||`, in that descending precedence order (unary precedes -equality, which precedes AND and OR). Comparisons are not chainable; use explicit -boolean operators. Strings support escaped quotes, backslash, `n`, `r`, and `t`. -Missing context keys are false; non-empty strings are truthy. Whitespace-only -source is an unconditional match. This is Lithe's boolean context grammar, -not the full VS Code context-key language. - -Source is limited to 4096 UTF-8 bytes, 128 tokens, 32 nested parentheses/unary -operations, and 12 distinct context identifiers. Full consumption is required. -Syntax diagnostic codes are `invalid_character`, `invalid_escape`, -`unclosed_string`, `expected_operand`, `expected_closing_paren`, -`trailing_token`, `too_long`, and `too_complex`. Syntax diagnostics are -successful protocol responses with no partial plan; malformed request shapes -use the existing `invalid_request` envelope. - -Core computes the entire truth table. `keys` are sorted by ASCII order and -`values` has exactly `2 ** keys.length` entries; key zero supplies the least -significant bit of the index. A native boolean snapshot can synchronously -project its key values to that index and look up the Core-produced result. -Hosts must not tokenize source, interpret an AST, or recompute expression -semantics. This preserves synchronous keyboard default prevention without -an IPC round trip per key event. The maximum table has 4096 outcomes. - -`keymap.evaluateContext` accepts `{parsed, context: {[key: string]: boolean}}` -and returns `{matches: boolean}`. It evaluates the same precompiled table, -rejecting oversized, noncanonical, duplicate-key or incorrectly sized plans -with `invalid_request`; it never reparses source. Parsed tables are portable -data, not authorization tokens. Neither command retains global state. - -Windows validates imports before changing the preset/store and validates -additions/updates before persistence. Hydrated/default/extension bindings stay -inactive until their Core table is ready; invalid conditions stay inactive. -Compilation is refreshed on binding/preset changes, and the keyboard owner -releases preparations on teardown. Expression caching is limited to 256 entries -and native compilation to 16 outstanding requests. Cache limits, teardown and -stale-store guards belong to the window adapter. macOS has no free-form -`when` parser and is unchanged. See `shared/fixtures/keymap/context-v1.json`. - -## Shortcut binding conflicts - -`keymap.analyzeConflicts` accepts `{platform: "macos" | "windows", layers: [{entries: [{command, key, when?, enabled?}], disabledCommands?: string[]}]}` -with layers ordered from the lowest priority (defaults) to the highest (user -overrides) and returns `{conflicts: [{key, when, commands}], invalid: [{command, key, code}]}`. -Within a layer, a command's entries replace every lower layer's entries for that -command; `disabledCommands` unbind a command from lower layers first. An entry with -`enabled: false` is in force but unbound. Conflicts are computed over the final -effective bindings only: two different commands with the same canonical key sequence -and whitespace-normalised `when` clause. Binding text is case-insensitive, modifier order -and aliases do not matter (`cmd`/`command`/`mod` follow `platform`: Command on macOS, Control on -Windows; `meta`/`super`/`win` are always Meta; `option`/`opt` are Alt; `return` is `enter`; `esc` is -`escape`), chords are whitespace-separated steps, a trailing `+` is the plus key, and `doubleshift` -is the double-tap Shift gesture. Parse failures are listed in `invalid` with `empty`, `empty_key`, -`multiple_keys`, `too_long` or `too_many_steps` and never take part in conflicts; more than -20000 entries is `invalid_request`. Hosts reject saving a binding when a conflict contains the edited -command. Native key-event conversion and the synchronous matching path stay in the host. -See `shared/fixtures/keymap/binding-conflicts-v1.json`. - -`keymap.modifierGestureStep` accepts `{state?, event, timestamp}` and returns `{state, triggered}`. It is the -double-Shift gesture as a pure transition: `event` is `{kind: "keyDown"}`, `{kind: "reset"}` or -`{kind: "flags", shift, otherModifiers}`; `timestamp` is seconds on a clock the host keeps; `state` is opaque -host-held memory (omit it for the idle state) that the host sends back with the next event. The rule lives in the -pure crate `rust/lithe-core-rules` (no I/O, no clock) so it can run on a synchronous key path: macOS calls it -through the C ABI, and the Windows frontend runs the same source compiled to wasm (`lithe_rules_alloc`, -`lithe_rules_dealloc`, `lithe_rules_execute` over JSON envelopes), loaded asynchronously at startup. A malformed -payload is `invalid_request`. Hosts only convert native events to this input and act on `triggered`; both are -tested step by step against `shared/fixtures/keymap/modifier-gesture-v1.json`. - -`editor.workbenchState.reduce` accepts `{state?, action}` and returns `{state, removedGroupIds}`. `state` is -`{groups, focusedGroup?}`; a group is `{id, members, selected?, mru?, pinned?, preview?}` (ordered members, the shown -member, most-recent-first order, pinned members, one transient preview), which is the union of what macOS (a flat -tab list with placements and per-group selection) and Windows (pane groups with MRU, pins and preview) track. -`action` is tagged by `kind`: `normalize {emptyGroups?, unplaced?}`, `open {group, member, activate?}`, -`close {group, member, emptyGroups?, selectionFallback?}`, `activate {group, member?}`, -`move {member, from, to, before?, after?, activate?, emptyGroups?, selectionFallback?}` (with `from == to` it only -repositions), `reorder {group, fromIndex, toIndex}`, `setPinned {group, member, pinned}`, -`setPinnedEverywhere {member, pinned}`, `setPreview {group, member?}`, `clearPreviewEverywhere {member}` and -`mergeGroup {from, into, activateSelected?}`. Every group an action touches leaves with unique members, a selection -that is a member (the first one when it was missing or stale, `null` when empty), an MRU order that starts at the -selection and lists every member once, and pins and preview that only name members; groups an action does not touch are -returned as sent, so a host may send only the groups an action involves. `emptyGroups` is `keep` (default), `remove` -(may leave no group) or `removeKeepingFirst`; it applies to the group a `close` or `move` emptied and to every group for -`normalize`. `selectionFallback` is `adjacent` (default: the member that slid into the vacated position) or `first`. -`normalize.unplaced` members no group lists join the focused group (the first group when `focusedGroup` is missing or -stale), and `focusedGroup` moves to the first remaining group when its group was removed. Actions that name an unknown -group or an unknown move destination change nothing. `removedGroupIds` lists removed groups in their previous order so -hosts prune their own layout tree; split directions, ratios, pixels and dragging never reach Core. A malformed payload is -`invalid_request`. It lives in `rust/lithe-core-rules` and is called synchronously: macOS through the C ABI, Windows -through the wasm build inside zustand `set()`, one call per user action. Both hosts run every case of -`shared/fixtures/editor/workbench-state-v1.json` through it. - -`workspace.classifyVisibility` accepts `{hiddenDirectoryNames?, hiddenFilePatterns?, entries: [{path, isDirectory?}]}` -and returns `{hidden: boolean[], watchedDespiteHiding: boolean[]}` with one answer per entry, in request order. `path` -is workspace-relative with `/` separators; `isDirectory` is `true` for a folder, `false` for a file and omitted when the -host does not know (every component may then be a folder). The two lists are the user's own entries: Core adds the -built-in folders and patterns, and a `!entry` turns a built-in off. Matching ignores case. A folder name hides the folder, -everything below it and a file with that exact name (a linked worktree's `.git` file). `hidden` means the tree, search and -Local History leave the path out; `watchedDespiteHiding` marks the hidden project configuration folder (`.lithe`) whose file -events must still be delivered, except the built-in noise below it such as `.lithe/run/local.json`. Hosts send all children -of a directory in one call. `workspace.visibilityDefaults` takes `{}` and returns the built-in lists -(`hiddenDirectoryNames`, `hiddenFilePatterns`, `builtInPatterns`, `configurationDirectory`, `configurationPattern`) so hosts -display them without keeping a copy. Both live in `rust/lithe-core-rules` like `keymap.modifierGestureStep`, run in wasm on -Windows, and are tested against `shared/fixtures/workspace/visibility-v1.json`. - -## Terminal link targets - -`terminal.parseLinkTarget` accepts `{texts: string[], baseDirectory?, homeDirectory?, providerSchemes?: string[]}` -and returns `{targets: (Target | null)[]}` with one entry per text. A target is -`{kind: "file", path, line, column, explicit}` or `{kind: "external", url}`. Core splits a trailing -`:line[:column]` (positive integers), decodes `file://` URIs (percent escapes, `localhost`, Windows drive -and UNC forms), expands `~` from `homeDirectory`, and resolves relative paths against `baseDirectory` -lexically (`.` and `..`), keeping Windows drive/UNC separators. `providerSchemes` name host file -providers (for example `remote`, `wsl`): such URIs are returned unchanged, and under a provider -`baseDirectory` relative and rooted POSIX paths stay inside that provider. Other `scheme://` texts and -`mailto:` are `external`; a bare `name:12` is a file, not a scheme. `explicit` is true when the text -itself says it is a path (separator, `~`, `file://`, provider URI or line suffix). Core never inspects -file extensions or touches the file system: the host checks existence, owns hit regions, and opens the -target. At most 256 texts of 4096 bytes. See `shared/fixtures/terminal/link-target-v1.json`. - -The Rust core is the shared application runtime for macOS SwiftUI and Windows -React/Tauri. macOS calls the stable C ABI while the Tauri host links the Rust -crate directly. The C ABI remains: - -```c -const char *lithe_core_version(void); -char *lithe_core_execute_json(const char *request); -char *lithe_core_execute_json_with_events(const char *request, void (*callback)(const char *, void *), void *context); -int32_t lithe_core_git_askpass(const char *prompt); -char *lithe_core_lsp_provider_catalog_json(const char *workspace_root); -int32_t lithe_core_cancel(const char *operation_id); -void lithe_core_free_string(char *value); -void lithe_core_install_log_waker(void (*callback)(void *), void *context); -int32_t lithe_core_remove_log_waker(void *context); -``` - -The macOS package uses the small C bridge in `macos/Sources/LitheRustCore/`. The -canonical C declarations are in `rust/lithe-core/include/lithe_core.h`. -Native clients can link the same `staticlib` or `cdylib`; Rust hosts call -`lithe_core::execute_json` and `lithe_core::cancel_operation` directly. Hosts -call `lithe_core::execution::plan_launch_command` (or the -`execution.planLaunchCommand` JSON command) before spawning a Java process. It -estimates the Windows command-line limit and moves oversized classpath/module-path -options into argument-file text, so macOS can apply the same automatic behavior -without a Windows-only setting. The planner requires a Java executable and a -known JDK feature version of at least 9, obtained through -`java_feature_version_from_release`; other launches remain unchanged. It stops -at the application target (class, JAR, or module), preserving all program arguments. -JSON hosts may instead supply `javaReleaseContents`, an array of host-read -release files ordered nearest first. Core reads the first `JAVA_VERSION` entry; -an unrecognized version remains unknown rather than falling back to an ancestor. -An explicit `javaFeatureVersion` takes precedence over the supplied contents. -Core owns the Unicode argument-file text and quoting. The Windows host encodes -that text losslessly using the launcher's actual system code page, independently -of the JDK feature version: JEP 400 does not make native launcher arguments UTF-8. -An unrepresentable path is reported as an actionable failure, never substituted. -The host also escapes backslash bytes introduced by multibyte encoding inside -quoted values, since the native argument-file parser processes bytes. -Every execution owns an exclusively created temporary file; partial writes and -spawn failures clean it up, while successful launches retain it until that exact -process exits. A replacement execution never shares its predecessor's file. -For a known JDK older than 9, Rust hosts call -`lithe_core::execution::plan_classpath_jar_launch` instead. Under the same -command-line budget it replaces the effective `-cp`/`-classpath` value with a -host-owned JAR path and returns the ASCII `META-INF/MANIFEST.MF` text: the -`Class-Path` header lists every entry, in order, as an absolute percent-encoded -UTF-8 `file:` URL (directories end in `/`), wrapped at 72 bytes. The host -answers whether each entry is a directory and writes the manifest-only JAR with -the same exclusive temporary-file lifecycle. Wildcard entries, drive-relative -Windows entries, `-jar` launches, and unknown JDK versions stay direct. This is -a Rust API only; there is no JSON command yet because the macOS process -argument limit (`ARG_MAX`) is far above the Windows cap, so a direct JDK 8 -launch already succeeds there. -Strings returned by the core are UTF-8 JSON allocated by Rust. The caller must -release response strings with `lithe_core_free_string`. - -Rust native adapters may call `execution::java_version_from_release` to read the -full JDK version from bounded host-read `release` metadata, then reuse Core's -runtime candidate ordering. Passive Build discovery never falls back to running -Java when that metadata is missing or invalid; explicit tool execution owns probes. -### Localized action search - -`search.actions` accepts `{query, candidates: [{texts: [string]}]}` and returns -`{indices: [integer]}`. Native hosts supply the original title, subtitle and group -alongside their current interface translations. Plugin-owned titles stay verbatim. -Core performs case-insensitive, NFC-normalized Unicode subsequence matching after removing query -whitespace, preserving input order and returning zero-based candidate offsets. -It retains no catalog, performs no workspace I/O, and never executes actions. -The request is limited to 4096 candidates, 16 fields per candidate, 2 MiB of text -and a 4096-byte query; excess input returns `invalid_request`. -[Action search fixtures](../fixtures/search/actions-v1.json) cover both languages, -English aliases, ordered results, Unicode and literal plugin titles. - -### Remote workspace path identity - -Workspace-aware commands accept an optional top-level `remoteWorkspace` with -`sessionId`, `localRoot` (the native placeholder), and `remoteRoot` (the host -folder). Roots must be absolute without parent components; `localRoot` must -have a final component. Without this context commands retain local behavior. -Remote failures never trigger a local filesystem or process fallback. - -Paths below `remoteRoot` project below `localRoot`. Absolute host paths outside -that folder, including containing Git repositories and canonical symlink -targets, project below a virtual sibling named -`.lithe-remote-host`, followed by the host path with -its leading `/` removed. For example, opening `/srv/repo/src` as `/native/src` -returns `/native/src.lithe-remote-host/srv/repo` for the containing repository. -This namespace is not materialized or persisted as user data. The native -registry recognizes both namespaces as the **same binding** and attaches its -original context to subsequent requests (status, stage, watch, etc.). Core -reverses both projections before accessing the host. Never infer a connection -from a raw host absolute path or use `..` to escape the placeholder. Multiple -hosts with the same host path retain distinct native identities; mixed local -and remote roots or different bindings in one request remain unsupported. -Only schema-owned path/URI fields are mapped; opaque argv and user text stay -unchanged. This is a client/Core projection, not a remote-server wire change. - -The ACP Agent ABI and the `agent.*` commands were removed together with the -Agent conversation feature. `lithe_agent_open_json`, `lithe_agent_send_json` -and `lithe_agent_close` no longer exist, and Core starts no adapter, proxies no -model call and keeps no conversation history. Rust Core keeps only deterministic -AI configuration parsing (`ai.configuration.*`). The removed ABI text, fixtures -and the `lithe-agent-host` crate remain available in the Core repository history. - -## Envelope - -The typed `lithe_core::ai` API provides credential-free commit request planning, -configuration parsing, and response decoding. macOS uses `ai.commitInputBudget`, -`ai.planCommit`, and `ai.decodeCommitMessage` over the existing JSON C ABI; Windows -uses the typed API. The [AI commit contract](ai-commit.md) defines the bounded diff -prefixes, payloads, errors and platform-owned I/O. -`ai.pullRequest.plan` / `ai.pullRequest.decode` and `ai.inlineEdit.plan` / -`ai.inlineEdit.decode` share that provider request model; see -[AI generation requests](ai-generation-requests.md). - -Every request has this shape: - -```json -{ - "id": "request-id", - "operationId": "operation-id", - "timeoutMilliseconds": 30000, - "origin": { "source": "user", "trigger": "find-in-files", "operation": "op-7f3a" }, - "command": "workspace.search", - "payload": {} -} -``` - -`operationId` is optional for compatibility and defaults to `id` when `id` is -present. `timeoutMilliseconds` is optional; a positive value starts a -cooperative deadline. `lithe_core_cancel` is thread-safe and returns `1` when -the operation is active. Cancellation and deadlines are checked at command -boundaries, workspace traversal points, and Git process waits. They return -`cancelled` or `timed_out` in the standard error envelope. - -`origin` is optional diagnostics provenance: -`{ source?: "user" | "background" | "unknown", trigger?: string, operation?: string }`. -It never changes command behavior. `trigger` is the stable identifier of the UI -action that caused the request, and `operation` is the correlation identifier -shared by that action and every request it caused. A `trigger` must be 1–64 -bytes of ASCII letters, digits and `._:/-$`, and an `operation` 1–128 bytes of -ASCII letters, digits and `._:/@+-`. A value outside its shape is omitted from -the trace instead of failing the request. See [Execution traces](#execution-traces). - -Successful responses contain `ok: true` and `data`. Failed responses contain a -stable error code and a user-facing message: - -```json -{ - "id": "request-id", - "ok": false, - "error": { - "code": "invalid_request", - "message": "Invalid JSON request" - } -} -``` - -## Commands - -The MCP configuration and library commands were removed with the agent-facing MCP -subsystem: `mcp.parseConfiguration`, `mcp.parseRegistry`, `mcp.featuredRegistry`, -`mcp.planWrite`, `mcp.toolPolicy`, `mcp.commandLine`, `mcp.librarySnapshot`, -`mcp.validateDraft` and `mcp.batchPlan` no longer exist, together with -`shared/fixtures/mcp` and `shared/contracts/mcp-registry-page.json`. The IDE-facing -MCP server (`lithe-mcp` plus `shared/fixtures/ide-api/mcp-protocol.json`) is -unaffected and stays in Rust Core's `lithe-ide-host`. -### AI configuration - -`ai.configuration.sources` takes `{source, home, environment}` (`source` is -`codex` or `claude`, `home` an absolute path, `environment` only the directory -overrides `CODEX_HOME` / `CLAUDE_CONFIG_DIR`) and returns `{files}`: the native -files `{file, path}` the platform should read. `ai.configuration.parse` takes -`{source, files, environment, allowIncomplete}` with the file texts keyed -`config`, `auth`, `settings`, `credentials` and `root`, each at most 1 MiB, and -returns `null` when nothing is configured, otherwise `{model, provider, issue, -reasoningEffort, hasCredential, credential, unsupportedAuthentication}`. The -response never contains a secret: `credential` is a locator -(`{kind: "environment", name}` or `{kind: "file", file, path}`) that the host -resolves natively against the same text or environment. Malformed input returns -`invalid_request` with a fixed code (`AI_COMMIT_INVALID_CONFIG`, -`AI_CONFIGURATION_INVALID_AUTHENTICATION`, `AI_CONFIGURATION_SMART_QUOTES`, -`AI_CONFIGURATION_TOO_LARGE`) and never echoes input. `allowIncomplete: true` is -for editor drafts: it ignores the environment, accepts blank or partial text and -keeps missing endpoint/model fields empty. The shared cases are in -`shared/fixtures/ai/cli-configuration-v1.json`. It replaces the former -`agent.parseProviderConfiguration`. - -| Command | Purpose | -| --- | --- | -| `core.ping` | Verify the ABI and protocol version | -| `community.discourse.auth.begin` | Create an ephemeral RSA-OAEP authorization session and return the Discourse browser URL | -| `community.discourse.auth.complete` | Decrypt, validate, and consume one Discourse user API key callback | -| `community.discourse.auth.revoke` | Revoke the current Discourse user API key | -| `community.discourse.topics` | List normalized latest or top topic summaries | -| `community.discourse.topic` | Read one topic with ordered, sanitized post HTML | -| `community.discourse.categories` | List normalized visible categories | -| `community.discourse.search` | Search normalized topics and sanitized posts | -| `editor.lineEdit` | Apply a deterministic line-level text transform and return the replacement plus selection to restore | -| `lsp.planWorkspaceEdit` | Validate language-server workspace edit targets against the workspace and open documents, and order the commit | -| `lsp.classifyNavigationTarget` | Classify a language-server jump target as workspace, external read-only or rejected | -| `editor.planTextEdits` | Validate and order a plugin document edit batch into UTF-16 offsets with the document's line ending | -| `editor.parseNavigationInput` | Parse a bounded line or line:column input into zero-based editor coordinates | -| `editor.navigationHistory.reduce` | Reduce one bounded back/forward navigation history event and return the next state plus the location to open | -| `editor.lineCommentToken` | Resolve the line comment token for a file extension or language id | -| `workspace.releaseIndexing` | Retire a policy and clear index/cache data at project close; accepts `root`, optional `ownerId`, and that owner's last observed `revision`, returns `released`; an old close must not retire a new generation | -| `workspace.refreshIndexing` | Refresh external Git decisions for a live `root`, `ownerId`, `revision` lease without changing preferences or release tokens; returns lazy `IndexingStatus` | -| `workspace.configureIndexing` | Install a process-local, canonical-root indexing policy before workspace consumers run; returns a monotonic revision, effective directory reasons and Git failure state; see `shared/fixtures/workspace/indexing-policy-v1.json` | -| `network.proxyPolicy` | Normalize the stored proxy settings into the policy a network stack must apply (mode, server, credentials, exclusions) | -| `workspace.snapshot` | Enumerate visible workspace nodes and relative file paths; `nestedWorktrees` lists linked worktrees checked out inside their own repository, which are left out of the tree, files, and search index; the built-in hidden names are skipped without being read, and include `node_modules`, Python virtual environments (`.venv`, `venv`), `__pycache__` and `*.pyc` files; `includeTree: false` returns only `files` and a childless `root`; `files` (and the tree, when included) keep the lowercase traversal order that bounded consumers such as Windows Quick Open rely on, not the natural display order of `workspace.listDirectories` | -| `workspace.filterChanges` | Filter an array of workspace-relative paths, or `{ paths, hiddenFilePatterns }` whose `!` entries turn default exclusions off, against Core's default build/cache exclusions; preserve order, spelling, and the empty root path. Native event loss bypasses filtering. Hosts relativize to the most specific explicit watch root and retain explicitly watched files. | -| `workspace.planDuplicate` | Name the copy of one project item next to its source (`foo.txt` → `foo copy.txt`, then `foo copy 2.txt`) from the sibling names the host has seen to exist | -| `workspace.planPaste` | Name pasted project items in one destination directory: a free name is kept, a taken one gets the copy suffix, and earlier items of the same paste count as taken | -| `workspace.reduceDirectoryAction` | Apply "set role", "exclude" or "cancel exclusion" to a root's persisted directory rules and return the complete state to persist | -| `workspace.relocateDirectoryRules` | Move (or drop, after a delete) the directory rule keys of a renamed, moved or deleted subtree, optionally into another workspace root's rules | -| `workspace.listDirectories` | Return one visible level of children for each requested workspace-relative directory (`""` is the root); missing, hidden, symlinked, or nested-worktree paths are omitted, and each listing reports the nested worktrees it left out. Child directories have `children: []` only when a shallow probe proves them visibly empty; otherwise children remain omitted (unloaded), with no recursive tree allocation. Children list directories first, then names in IDEA's natural file-name order (digit runs compare by value, case-insensitive, `-` next to `_`; fixture `shared/fixtures/workspace/file-name-order-v1.json`) | -| `workspace.repositories` | Discover deterministic Git repository roots for an opened workspace | -| `workspace.recentProjects.reduce` | Apply one record, remove, pin, import, or normalize action to the recent project list and return the retained order | -| `workspace.search` | Search visible file names and UTF-8 text files | -| `workspace.searchEverywhere` | Search visible file names, Java types/methods, and UTF-8 text files | -| `workspace.rankNames` | Pure ranking of candidate names that the platform enumerates itself (`{ query, candidates: [{ name, path? }], context: { openPaths, recentPaths }, limitPerTier? }`). Use it only for lists Core cannot index: Windows remote/WSL roots, symbol lists, navigator lists. Roots Core indexes go through `workspace.searchEverywhere`, so an inventory is never sent back to Core. Returns `matches: [{ index, degree, tier, nameMatchRanges }]` ordered by degree, open/recent tier, recency, then file-name order (fixture `shared/fixtures/search/rank-names-v1.json`) | -| `workspace.replacePreview` | Return deterministic replacement lines and complete replacement text | -| `workspace.replaceText` | Plan replacement against a host-captured text snapshot without writing | -| `workspace.searchTextBatch` | Search provider-captured text snapshots using workspace matching rules | -| `file.read` | Read a text file using a workspace-relative path; optional `encoding`, see [File encodings](#file-encodings) | -| `file.write` | Write a text file using a workspace-relative path; optional `encoding` and `bom` | -| `text.decode` | Decode `{ bytes }` (standard base64 of bytes the host read) like `file.read`, optional `encoding`; returns `{ text, encoding, hasBom, lossy, identity }` with the same 32 MB, plain-text and detection rules | -| `text.encode` | Encode `{ text }` like `file.write`, optional `encoding` and `bom`; returns `{ bytes, encoding, hasBom, identity }` with `bytes` in standard base64. Nothing is written, and an unmappable character fails with `encoding_unmappable` as `file.write` does | -| `document.lifecycle` | Reduce a shared document save, external-change, or conflict event without reading text or disk | -| `document.planSaveBatch` | Select the open documents a Save All or save-before-launch batch writes | -| `document.reduceSaveBatch` | Reduce save batch member outcomes and live documents into one batch status | -| `history.record` | Store a versioned text snapshot and metadata | -| `history.entries` | List valid history entries for one file or a workspace | -| `history.content` | Read a stored history snapshot by relative storage path | -| `history.relocate` | Move retained history for a file or directory subtree after a rename or move | -| `history.planEvent` | Plan which snapshots an editing event (save, auto-save, restore, manual, discarded unsaved text, external change, before rename, before batch replace) records and under which reason | -| `history.rename` | Set or clear a user-visible label on a history entry | -| `history.delete` | Delete one history entry and its snapshot | -| `history.ignorePreview` | Validate local history ignore rules and report which rule skips a sample path | -| `history.usage` | Report one project's allocated history size and the storage cap | -| `history.clear` | Delete every snapshot of one project's history | -| `diff.compareTexts` | Compare two host-supplied texts line by line into paired side-by-side rows and unified lines | -| `maven.scan` | Parse a Maven project descriptor and recursively return modules/profiles | -| `maven.launchPlan` | Produce a deterministic Maven invocation from a versioned project context | -| `execution.resolveEnvironment` | Merge native `inherited` string values and `overrides` into `{ environment }`; string overrides win. Core names no tool: a runtime home such as `JAVA_HOME` reaches a launch through the selected toolchain installation (`toolchains.*`), which the host applies before this merge, or as a literal override from the plugin that owns the toolchain. A structured `{ toolchain, property }` value the host could not resolve to text has no defined value and contributes nothing. `caseInsensitive: true` canonicalizes Windows keys to uppercase. | -| `execution.resolveSearchPath` | Preserve existing path precedence, sort platform candidates by priority and identity, and deduplicate using the requested case policy. | -| `execution.planLaunchCommand` | Move oversized Java path-list options into a JDK argument file | -| `processLifecycle.resolve` | Decide how each process or resource of one Lithe instance ends | -| `processLifecycle.inventory` | Group a process snapshot of one Lithe instance into terminals, Agent tasks and background services | -| `processLifecycle.settle` | Turn confirmation answers into what ends, what is kept and the updated settings | -| `maven.dependencyPlan` | Produce a bounded dependency-tree invocation for one Maven module | -| `maven.dependencies` | Normalize the bounded dependency-tree file one plan wrote into a deterministic tree | -| `maven.diagnostics` | Parse stable Maven compiler diagnostics from build output | -| `maven.testResults` | Parse bounded JUnit/Surefire result summaries and failure locations | -| `debug.createSession` | Create a transport-neutral DAP session and return its initialize frame | -| `debug.validateAdapterEndpoint` | Validate an IDE-to-DAP TCP endpoint and classify whether remote consent is required; performs no DNS or network I/O | -| `debug.transport.policy` | Return the default byte-stream deadlines, queue budgets and the session `initialize` deadline; creates no state | -| `debug.transport.handle` | Apply one platform event to an IDE-to-adapter byte-stream lifecycle and return the effects the platform runs next | -| `debug.transport.release` | Forget the lifecycle of a stopped byte stream once the platform dropped its handles | -| `debug.launch` | Queue a launch or attach request, including during initialization | -| `debug.javaTestLaunch` | Normalize JUnit or TestNG launch metadata into Java DAP arguments | -| `debug.steppingFilters` | Return adapter defaults or normalize portable stepping filters | -| `debug.relocateBreakpoints` | Move source breakpoints across one exact UTF-16 editor replacement | -| `debug.planVariablePage` | Plan the first bounded `variables` page of one scope or structured variable from its reported counts | -| `debug.reduceVariablePage` | Merge one returned variable page into its cursor and decide whether the container is exhausted | -| `debug.planDisassemblyWindow` | Plan the first `disassemble` request of the window around the instruction pointer or one listed edge | -| `debug.reduceDisassemblyPage` | Reduce one `disassemble` reply to the next bounded recovery request, a deduplicated page, or the adapter's failure | -| `debug.setBreakpoints` | Replace and deterministically order one source's DAP breakpoints | -| `debug.setExceptionBreakpoints` | Replace and deterministically order one session's exception filters | -| `debug.setFunctionBreakpoints` | Replace and deterministically order one session's named function breakpoints | -| `debug.dataBreakpointInfo` | Resolve an adapter-owned data breakpoint identity for a paused variable or field | -| `debug.setDataBreakpoints` | Replace and deterministically order one session's resolved data breakpoints | -| `debug.setInstructionBreakpoints` | Replace and deterministically order one session's machine-instruction breakpoints | -| `debug.setVariable` | Replace one visible variable value in its adapter-owned parent container | -| `debug.cancelOperation` | Cancel or time out one pending operation and ignore its late response | -| `debug.execute` | Submit continue, pause, next, step-in, or step-out control | -| `debug.inspect` | Request normalized threads, frames, scopes, variables, or evaluation | -| `debug.receive` | Reduce base64-encoded bytes received from a platform-owned DAP transport | -| `debug.runInTerminalResponse` | Complete one adapter-requested native terminal launch | -| `debug.disconnect` | Begin the DAP disconnect handshake without closing the native transport | -| `debug.destroySession` | Remove a session and its whole child tree after the platform closes its native transport; the response lists `destroyedChildSessionIds` (leaves first) whose transports the platform must also close | -| `lsp.applyTextEdits` | Apply LSP UTF-16 text edits with range validation | -| `lsp.plainSnippet` | Convert LSP snippet insert text into plain editor text | -| `lsp.builtinCompletions` | Return lightweight current-file identifier completions | -| `lsp.builtinHover` | Return lightweight current-symbol hover text | -| `lsp.builtinNavigation` | Return lightweight current-file definition/reference locations | -| `lsp.mergeCompletions` | Choose which candidates survive when several prioritized providers complete at one position | -| `lsp.activationPolicy` | Decide whether a language server may start automatically after failures, using a platform monotonic clock | -| `lsp.problems.query` | Filter, order, and group Problems tool-window diagnostics and count them by severity | -| `lsp.documentUri` | Convert a native absolute path into a canonical file URI | -| `lsp.documentIdentity` | Resolve a diagnostic URI or path strictly inside its workspace | -| `lsp.startServer` | Start one Rust-owned process/session and begin initialization | -| `lsp.jdtWorkspaceKey` | Derive the deterministic JDT LS workspace-state directory key | -| `java.workspacePolicy` | Decide Java workspace activation and classify changed paths | -| `java.runMarkers` | Project JDT main/test discovery and canonical build test outcomes into editor Run markers | -| `java.jdtWorkspaceFingerprint` | Reduce platform build-file observations to the portable JDT LS workspace fingerprint | -| `java.jdtCacheRetention` | Select expired inactive JDT LS workspace-state keys from platform metadata | -| `lsp.stopServer` | Gracefully shut down a session, with a bounded force-stop fallback | -| `lsp.updateWorkspaceConfiguration` | Replace the plugin configuration a running plugin-owned session answers `workspace/configuration` with, and announce it | -| `lsp.updateMavenConfiguration` | Send a changed Maven context to a running Java session, or force JDT LS to re-resolve its Maven projects | -| `lsp.syncDocument` | Open a document or apply a full-text or incremental `didChange` with monotonic versions | -| `lsp.saveDocument` | Report a confirmed disk save with its exact saved text, honoring server save options | -| `lsp.workspaceFilesChanged` | Publish normalized created, changed, or deleted workspace files to one session | -| `lsp.closeDocument` | Close a document and clear its diagnostics | -| `lsp.request` | Submit a typed semantic request and return an opaque operation ID | -| `lsp.buildRequest` | Forward one planned `lithe/build/*` request to a session that negotiated the build-provider protocol | -| `lsp.functionRequest` | Invoke one registered plugin function on a session its plugin started | -| `lsp.hostResponse` | Answer one host-service request a plugin backend sent | -| `lsp.hostNotify` | Send one host notification to a plugin backend that negotiated it | -| `lsp.pluginServerRequest` | Send one request of a plugin backend to the plugin's own language server, under the plugin's declared session policy | -| `lsp.pluginServerNotify` | Send one notification of a plugin backend to the plugin's own language server | -| `lsp.configureFunctionRelay` | Replace the enabled plugins and live workspace contexts Core's plugin-to-plugin function relay checks calls against | -| `lsp.toolchainRequest` | Send one `toolchains/query` to a plugin backend that negotiated the provider | -| `lsp.keymapImportRequest` | Send one shortcut import request to a negotiated plugin provider | -| `lsp.vcsRequest` | Send one VCS operation, planned by Core, to a session that negotiated the VCS-provider protocol | -| `java.prepareLaunch` | Prepare a saved Java source through shared entry selection, serialized build and runtime path resolution | -| `java.navigationMarkers` | Resolve versioned Java gutter markers from bounded JDT LS semantic requests | -| `java.resolveNavigation` | Resolve one Java gutter marker to normalized parent or implementation locations | -| `lsp.cancelOperation` | Cancel one pending semantic operation | -| `lsp.pollEvents` | Drain ordered typed lifecycle/feature/diagnostic/result/log events | -| `lsp.waitEvents` | Block until queued events exist or a timeout elapses, then drain them | -| `lsp.clearDiagnostics` | Clear every diagnostic owned by a session | -| `lsp.snapshot` | Return a diagnostic runtime snapshot for testing and control surfaces | -| `lsp.destroyServer` | Remove a terminal session handle from the registry | -| `java.codeVision` | Return Java declaration usage counts for editor code vision | -| `java.className` | Resolve a Java source package and simple name into a runtime class name | -| `java.sourceDefinition` | Locate a Java type, method, or field declaration in source text | -| `java.serverPort` | Parse Spring server port settings from properties or YAML text | -| `java.structure` | Parse Java editor folds, inlay hints, and portable syntax roles | -| `spring.index` | Build a deterministic Spring configuration, bean, injection, and endpoint index | -| `mybatis.index` | Build a deterministic MyBatis mapper-interface and XML statement index | -| `runConfig.selectJava` | Select a project-compatible automatic JDK from platform-probed candidates | -| `runConfig.inspect` | Inspect `.lithe` run documents, versions, and staleness without writing files | -| `runConfig.projectToolchain` | Read saved project tool paths for one Provider root, with the nearest path override | -| `runConfig.generate` | Generate deterministic Java/Maven configurations and toolchain requirements | -| `runConfig.resolve` | Merge generated, project, and local layers and return diagnostics | -| `runConfig.selectContextConfiguration` | Choose a matching effective configuration for a provider-supplied source and entry identity | -| `runConfig.updateOptions` | Apply typed option edits and return an updated project or local document | -| `runConfig.updateToolPreferences` | Replace only generic preferences in a captured local Run document, preserving legacy defaults and unrelated metadata | -| `runConfig.argumentText` | Format a batch of exact argument vectors as reversible editor text | -| `runConfig.saveEditorChanges` | Prepare the local and optional project documents for one editor save | -| `runConfig.createUserConfiguration` | Validate a typed user configuration and return an updated document | -| `runConfig.createLaunchPlan` | Project one effective configuration into a platform-neutral Run or Debug plan | -| `git.repositorySetup` | Inspect repository/unborn state and scoped/effective commit identity; see `git-repository-setup.md` | -| `git.initialize` | Initialize a directory outside existing repositories without staging or committing | -| `git.configureIdentity` | Save or clear one local/global `user.name` or `user.email` override | -| `git.status` | Resolve the repository, current branch, and working-tree changes | -| `git.workspaceStatusMerge` | Plan publication of fresh, retained, and unavailable repository snapshots | -| `git.rollbackPlan` | Plan whole-file rollback from explicit Git status identities without reading or changing a repository | -| `git.rollbackPrepare` | Recheck selected identities against the repository and return rollback steps | -| `git.prepareCommitSelection` | Prepare and verify the real indexes for explicitly selected changes | -| `git.reconcileDeletedSelection` | Clear missing selected staged additions after filesystem deletion | -| `git.changelists` | Reduce local ChangeList metadata and project membership and commit scope | -| `git.commitMessageContext` | Capture bounded AI commit evidence and recheck its Git state | -| `git.untrackedDirectory` | List one level of a summarized untracked directory: its files and subdirectory summaries | -| `git.commitState` | Read exact HEAD, symbolic branch and index preconditions for a workspace commit | -| `git.watchContext` | Resolve the repository and absolute Git metadata roots needed by native file watchers | -| `git.classifyMetadataChanges` | Classify a bounded page of coalesced watcher paths without filesystem access | -| `git.worktrees` | Return deterministic registered-worktree metadata without scanning each checkout | -| `git.pullRequestContext` | Resolve worktree-aware PR branch defaults, publication state, and uncommitted-change state | -| `git.pullRequestCheckoutPreview` | Inspect and review a non-destructive PR checkout plan | -| `git.pullRequestCheckout` | Recheck and execute a reviewed PR checkout without resetting an existing branch | -| `git.command` | Execute one argument-based Git operation and return its arguments, streams, exit code, and ordered subprocess invocations | -| `git.repositoryRoot` | Resolve the repository root containing a workspace path without acquiring repository write coordination | -| `git.resolveFileContext` | Resolve a file to its owning Git checkout and relative path | -| `git.write` | Validate and execute shared Git mutations such as stage, commit, branch, checkout, remote sync, clone, and stash | -| `git.fetchPlan` | Validate Fetch choices; optionally inspect a repository to expand enabled per-remote commands | -| `git.consolePresentation` | Pure IDEA-style configuration/progress folds, empty-output notices and search ranges over retained diagnostic snapshots | -| `git.remoteUrl` | Read a configured remote URL silently; a missing remote returns a null URL | -| `git.executionInspect` | Inspect executable capabilities, configuration provenance and effective Fetch preferences | -| `git.executionConfigure` | Explicitly save or clear one allowlisted value in a selected config scope | -| `git.authRespond` | Answer or cancel a live authentication challenge once | -| `remote.probe` | Check that an SSH connection reaches a supported host | -| `remote.authRespond` | Answer or cancel a prompt relayed by `remote.probe` or `remote.connect` once | -| `remote.connect` | Open a connection, installing the shipped server when needed | -| `remote.readDir` / `remote.readFile` / `remote.writeFile` | List, read or save over an open connection | -| `remote.disconnect` | Close an open connection and its OpenSSH process tree | -| `remote.closeAll` | Close every open connection; the host calls it at application exit | -| `git.historyRewritePreview` | Review undo, message edit, squash, or drop with complete messages, eligibility, and an immutable checkout expectation | -| `git.historyActionCapabilities` | Read history menu hints from actual HEAD and the bounded first-parent chain | -| `git.rebasePreview` | Resolve the complete local linear range strictly after a selected unchanged base | -| `git.rebaseStart` | Start a reviewed native interactive rebase with persisted messages and recovery identity | -| `git.rebaseSession` | Read the latest owned rebase session and distinguish edit/conflict pauses from completion | -| `git.rebaseControl` | Continue, skip, or abort an identified session, optionally amending an edit pause | -| `git.diff` | Produce a structured working-tree, index, reference, commit, or stash patch | -| `git.parsePatch` | Parse a complete saved patch into Core-owned per-file documents | -| `git.apply` | Apply or check a patch in `stage`, `unstage`, `discard`, or Shelf restore mode | -| `git.planDiffBlocks` | Plan commit-review blocks for one file; Core owns every block patch | -| `git.applyDiffBlock` | Include, exclude or roll back one planned block under the write lease | -| `git.stageGutterChange` | Stage one editor gutter change with its original bytes | -| `git.history` | Return the legacy combined reference snapshot and first bounded commit page | -| `git.references` | Return deterministic refs, recent local branches, ahead/behind state, and effective Git identity without scanning commit history | -| `git.remotes` | Return configured fetch remote names and URLs | -| `git.tags` | Return tag names, tag object IDs, target IDs, dates, and annotations | -| `git.parseCheckoutMetadata` | Interpret bounded HEAD text without filesystem access | -| `git.parseGitdirPointer` | Interpret a bounded gitdir pointer without filesystem access | -| `git.historyPage` | Return one bounded commit page, author date, UTC offset, optional Unix timestamp, and an opaque continuation cursor | -| `git.historyQuery` | Compare bounded commit date identities with explicit absolute time bounds | -| `git.historyCursorClose` | Release an unfinished incremental history cursor and its Git process | -| `git.historyLocate` | Append bounded history pages until one commit is found and report the budget, window cursor, and exhaustion | -| `git.branchNamePreview` | Clean and validate a new branch name against already loaded references without running Git | -| `git.repositoryColorAssignments` | Assign color slots to a bounded page of ordered repository identities | -| `git.pushPreview` | Resolve a local branch push destination and the bounded commits not present on that remote base | -| `git.commit` | Return one structured commit by revision with its full message body | -| `git.commitFiles` | Return files changed by one commit | -| `git.comparison` | Return files changed between a reference and the working tree | -| `git.stashes` | Return structured stash references and messages | -| `git.checkoutPreflight` | Return local paths that would block switching to a reference | -| `git.pullPreflight` | Report the configured upstream, ahead/behind counts, divergence, tracked local changes, and the strategy Git is configured for, without fetching | -| `git.updatePlan` | Route a branch Update and gate a Pull from facts the host collected: blockers, strategy default, whether to ask, and the expected checkout | -| `git.historyWindow` | Plan a history refresh window, page merge, and selection retention over commit identities | -| `git.graphProjection` | Project a loaded history window into commit-graph lanes, color IDs, routes, print elements, and labels, optionally filtered | -| `git.integrationPreflight` | Return local paths that block a merge, rebase, cherry-pick, or revert | -| `git.conflictMarkers` | Return staged text files that still contain conflict markers | -| `git.operationState` | Report an interrupted merge, rebase, cherry-pick, or revert and its conflicted paths | -| `git.blame` | Return structured line blame metadata | -| `git.lineHistory` | Trace which commits touched a one-based snapshot line range of one file | -| `github.parseRemote` | Parse a canonical GitHub HTTPS or SSH remote into owner/name | -| `github.requestPlan` | Validate one GitHub operation and produce a trusted platform HTTP request plan | -| `github.normalizeResponse` | Normalize raw GitHub JSON and HTTP status into deterministic data or a stable error | -| `github.deviceAuthorizationTransition` | Plan the next device-authorization action, polling interval, and deadline-bounded wait | -| `github.pullRequestCheckoutPlan` | Plan a PR's safe local branch and report an existing-ref conflict | -| `diagnostics.prepareLogEvent` | Normalize a bounded application event and recursively redact structured fields | -| `diagnostics.queryLogs` | Merge and filter bounded host-collected module log tails | -| `diagnostics.encodeLogBatch` | Encode independent structured v2 log events with per-item errors | -| `diagnostics.parseLogFilter` | Parse bounded filter expressions and UTF-16 diagnostic ranges | -| `diagnostics.composeLogFilter` | Compose a filter predicate preserving unrelated terms | -| `diagnostics.formatLogRecords` | Validate and format canonical redacted records for copying | -| `diagnostics.queryLogsV2` | Query structured v2 and legacy v1 native log tails | -| `diagnostics.planLogCollection` | Plan bounded native log-tail reads from raw file metadata | -| `diagnostics.planLogRetention` | Plan log cleanup from host-owned file inventories | -| `diagnostics.resolveEngineLogSubject` | Resolve the same routing segment and channel used by engine startup, without I/O | -| `diagnostics.resolveLogChannel` | Validate channels and resolve safe session-relative destinations | -| `diagnostics.drainCoreEvents` | Atomically take process-owned Core log facts and their dropped count | -| `diagnostics.configureCoreEvents` | Set the DEBUG admission gate for Core log facts from host detailed-diagnostics state | -| `diagnostics.redactText` | Redact credentials, tokens, and home-directory paths from diagnostic-bundle text | -| `diagnostics.buildManifest` | Shape a deterministic diagnostic bundle manifest from host-gathered environment and file facts | -| `plugins.declarative.validate` | Validate and normalize a declarative plugin manifest | -| `plugins.declarative.runPlan` | Expand a declarative plugin's run template for one workspace file | -| `plugins.declarative.discoverTests` | List a declarative plugin's workspace and file test items | -| `plugins.declarative.testPlan` | Expand a declarative plugin's test template for a workspace, file, or test case | -| `plugins.declarative.languageServerLaunchPlan` | Expand a declarative plugin's language-server, build-provider, VCS-provider, backend, or debug-adapter launch with host directories and architecture | -| `plugins.languageServers.decodeLaunch` | Bound the answer of a plugin backend that resolved a language server's launch and return the plan the host starts | -| `plugins.languageServers.stateRetention` | Choose which inactive per-workspace state directories of a plugin language server the host deletes | -| `plugins.contentProviders.decode` | Bound the answer of a plugin content provider function and return the document text | -| `debug.adapters.startArguments` | Check one debug start against a plugin's `debugAdapters[]` entry and return its DAP launch arguments | -| `debug.adapters.executablePlan` | Say where to look for the program a launch debugs: the user's setting and the adapter's candidate paths | -| `plugins.declarative.resolveSettings` | Merge a plugin's stored global and project setting layers into effective values with their source | -| `plugins.installed.select` | Select numeric installed versions from native facts without reading paths | -| `plugins.declarative.settingsState` | Read complete plugin preference documents into Core-normalized rows, sources, and bounded native read plans | -| `plugins.declarative.editSettings` | Validate one atomic setting edit batch and return replacement text while preserving unrelated plugins and dormant values | -| `plugins.declarative.workspaceConfiguration` | Expand a language server's `workspaceConfiguration` with the merged setting values | -| `toolchains.registry` | Revalidate complete enabled plugin manifests, `{plugins:[{manifest}]}`, into a deterministic tool-definition/provider registry; the host supplies no origin evidence. A short tool ID defined by several enabled plugins belongs to none of them: none of those definitions is registered, the rest register as usual, and `conflicts: [{tool, pluginIDs}]` (sorted by tool, `pluginIDs` sorted) reports each contested tool. A repeated plugin ID rejects the batch. No native host capability claim | -| `toolchains.decodeReply` | Validate an inert toolchain query/reply pair against bound provider identity, generation, declared tools and host-native filesystem evidence; no transport or native I/O | -| `toolchains.failureReply` | Build the JSON-RPC error reply for a query that missed its deadline or found no backend, so the host passes it to `toolchains.decodeReply` like a provider's own error; cancellation has none | -| `toolchains.resolvePins` | Validate a captured local document and find the nearest ancestor directory pin, retaining dormant and legacy entries without probing or writing | -| `toolchains.editPins` | Apply one bounded batch of directory pin edits to a captured local document without writing native files | -| `toolchains.pinStoragePlan` | Declare bounded workspace-native pin and ignore sources | -| `toolchains.decodePinDocument` | Validate a complete native source or supply the absent-source default | -| `toolchains.editPinSources` | Plan deterministic pin and Git ignore source edits without native I/O | -| `toolchains.resolveConsumerPreferences` | Validate an inert consumer preference document and resolve one tool's explicit Run, consumer, directory or workspace choice while keeping workspace/consumer inheritance symbolic; no native files or launch authority | -| `toolchains.editConsumerPreferences` | Edit or reset one exact consumer/directory tool preference; return the document and effective input without native writes | -| `toolchains.resolve` | Resolve the fixed/project/global/automatic layers from one generation-bound snapshot, retaining unmet requirements, unavailable providers with their cause, conflicts and terminal fixed-value failures | -| `toolchains.checkVersion` | Match captured output with an enabled plugin definition's version expression and compare generic numeric components with an optional minimum; never starts a probe | -| `toolchains.instantiateLaunch` | Expand an enabled tool definition's `launch` template for a selected executable, entry, runtime arguments and arguments; a part the template cannot carry is `plugin.toolchain.launchMismatch`; performs no I/O | -| `toolchains.discoveryPlan` | Return platform-filtered definition-owned scan declarations, layouts, probes, PATH entries, login-shell home variables and budgets; never scans native directories | -| `toolchains.candidates` | List one tool's login-shell homes and host-scanned installations with checked executables, versions or skip reasons, and the automatic-layer choice; never starts a probe | -| `plugins.declarative.decodeGrammar` | Validate independent static editor resources | -| `plugins.editorActions.decode` | Validate independent action registration, collection or click results | -| `plugins.hostApi.describe` | Describe backend host methods and their required grants from Core's method table | -| `plugins.hostApi.authorize` | Check a method, service and current session grants using Core's capability rules; the host still checks session and resource ownership | -| `plugins.editorProviders.decode` | Validate editor provider registrations and provider function results | -| `run.decodeStart` | Validate a plugin backend's `lithe/host/run/start` params against its manifest and the workspace, and return the normalized start with temporary-file paths substituted | -| `debug.decodeBackendConfiguration` | Validate a plugin backend's `lithe/host/debug/start` params against its manifest and return the qualified adapter, request, label and configuration | -| `outputLinks.match` | Find the links plugin `outputLinkMatchers` declare in Run or Test console lines, as UTF-16 ranges with candidate paths or a backend function to resolve them | -| `outputLinks.decodeResolution` | Check a matcher's `resolve` function reply and return the 1-based file location to open, or `null` | -| `build.detect` | Find every build-system instance the enabled plugins declare in a workspace, with models that need no process | -| `build.resolveStoredOptions` | `{ document, local: { version: 1, document, emptySelections?: { : { : [optionID] } } } }`, without a manifest | `storage: { document, local, emptySelections }`: checked team/local merge; local values override matching keys, unrelated systems/roots/choices stay intact. No filesystem I/O. Local documents are machine/workspace preferences, not team files or plugin-native configuration. Their storage syntax is [build-local-options-v1.schema.json](build-local-options-v1.schema.json), with additional cross-field membership and byte limits checked by Core. | -| `build.editStoredOption` | `{ document, local, root, optionID, value, modelValues? }` in the standard manifest/build-system envelope | `edit: { local, options }`: changes one declared local preference. `null` removes the local override and restores team/declaration inheritance. Invalid or partially accepted edits reject before persistence. Workspace multi-selections preserve sibling-only values; explicit per-root empty markers apply only to workspace multi-select declarations. Platforms compare both native source revisions, atomically write only the local document and read back. | -| `build.invocationPlan` | List a build system's executable candidates, runtime dependencies, and version probe for one platform | -| `build.checkToolVersion` | Decide whether a build tool's or runtime's version output meets the declared minimum | -| `build.resolveModelInputs` | Validate enabled producer facts and project a bounded public model snapshot for a declared consumer | -| `build.resolveOptions` | Check stored build options against the declaration and return effective values, choices, and the fingerprint | -| `build.configurationPlan` | Plan a read of the provider's non-sensitive native configuration | -| `build.decodeConfiguration` | Validate native source identities, raw/effective values and XML bindings | -| `build.configurationEditPlan` | Plans format-independent provider editing into private host staging | -| `build.decodeConfigurationEdit` | Validates the receipt without native document bytes | -| `build.modelPlan` | Expand the command that prints a command-sourced build model, or the request a build provider answers | -| `build.taskPlan` | Expand one declared or model task for a workspace, project, or target | -| `build.testPlan` | Plan a test run for a scope, suite, or case and say where its reports will be | -| `build.testDiscoveryPlan` | Plan opt-in Provider test discovery for an instance | -| `build.decodeTestDiscovery` | Validate, deduplicate and order Provider test selectors | -| `build.prepareRunPlan` | Plan Provider-owned application/service/task preparation from a model target | -| `build.decodeRunPreparation` | Validate portable launch data before the native Run host starts a process | -| `build.prepareDebugPlan` | Plan same-plugin native debug preparation | -| `build.decodeDebugPreparation` | Validate an existing instance-contained native debug program and bounded process facts | -| `build.dependencyPlan` | Expand the command that prints a project's dependency tree, or the request a build provider answers | -| `build.decodeModel` | Decode model output or a provider result into projects, targets, tasks, content roots, option values, and run entries | -| `build.decodeTestResults` | Decode a test run's reports and output into per-case results and a summary | -| `build.decodeDiagnostics` | Decode build output into workspace file diagnostics | -| `build.decodeDependencies` | Decode dependency output or a provider result into one project's bounded tree | -| `build.syncFingerprint` | Digest the files a build model depends on, to tell whether it is stale | -| `build.languageImport` | Map a build system's options to the Java language server's Maven or Gradle project import | -| `build.resolveTestRunOutcome` | Reduce a test run's termination, selected scope and decoded summary to one tool-neutral verdict | -| `build.mergeTestOutcomes` | Merge a run's test result ids into the stored history inside the host-stated id/prefix scope | -| `vcs.detectRoots` | Find the VCS roots of a workspace from static markers, with registered providers, ambiguous directories, and applied mappings | -| `vcs.ownerOf` | Assign workspace paths to the detected root that owns each | -| `vcs.decodeReply` | Validate a VCS provider's reply and return the normalized result | -| `project.generatorCatalog` | List the project generators of the given plugins, with the plugins that provide each requirement | -| `project.generatorForm` | Evaluate a generator's form: derived defaults, visibility, problems, and active requirements | -| `project.generationPlan` | Expand a filled-in form into the files, commands, and archive downloads that create a project | -| `project.checkName` | Check that a name can be a new project's directory name | -| `project.extractArchive` | Extract a downloaded project archive into the staging directory, refusing unsafe entries | -| `plugins.marketplace.validateIndex` | Validate a marketplace index and report each plugin's availability for one platform | -| `plugins.marketplace.resolveSource` | Resolve a user-entered marketplace source to the index URL to fetch | -| `plugins.marketplace.installReview` | List a package's permissions and programs, and those not yet approved | - -### Maven test results - -`maven.testResults` accepts `{ "root": string, "output": string }` and parses -the bounded text emitted by Maven Surefire or Failsafe after a JUnit 4/5 class -or method run. `root` must be an existing workspace directory and `output` is -limited to 500,000 characters. The response is: - -```json -{ - "testsRun": 4, - "failures": 1, - "errors": 1, - "skipped": 1, - "passed": 1, - "success": false, - "failureDetails": [ - { - "name": "additionIsCorrect(com.example.CalculatorTest)", - "kind": "failure", - "message": "expected <4> but was <5>", - "path": "src/test/java/com/example/CalculatorTest.java", - "line": 42, - "column": null - } - ] -} -``` - -`kind` is `failure` or `error`; `path` is a workspace-relative source path -when a stack frame or failure footer can be resolved unambiguously. Relative -source lookup requires a complete workspace index, prefers a unique full -package-path suffix at a path boundary, and falls back to a unique filename -only when no package-path candidate exists. Ambiguous matches or an incomplete -scan (including the 10,000-directory limit) leave the location `null`. -All locations use one-based lines with nullable columns. `passed` is derived from the summary and never -negative. A final `Results` summary is preferred; when Maven only prints -per-class summaries, the counts are aggregated. Failure details retain Maven's output order and are bounded to -10,000 entries. A parser or size violation returns the standard -`parse_failed` error. - -The request may also carry `reports: { module, sourcePath, classes, -notBeforeMillis }` naming the run's workspace-relative Maven module directory -(`null` or `.` for the root), the binary names of the selected test classes, and -the run's start time in Unix milliseconds. When `module` is absent and -`sourcePath` names a workspace-relative test file, the module is the nearest -directory above that file holding a `pom.xml`. An empty or absent `classes` -reads every report in the module written at or after `notBeforeMillis`. Core then reads the Surefire/Failsafe XML reports -the run wrote and returns `testCases`, otherwise an empty list: - -```json -{ "className": "com.example.CalculatorTest", "method": "additionIsCorrect", - "status": "failed", "message": "expected <4> but was <5>", "invocations": 1, - "durationMillis": 23 } -``` - -Optional `durationMillis` comes only from each XML testcase's `time` seconds attribute. Repeated/parameterized invocations sum their times in whole milliseconds; if any invocation has a missing, negative, non-finite, unrepresentable time or the sum overflows the host integer range, the field is omitted. A reported zero is valid. Hosts hide missing method durations and must not substitute a console/suite summary or another class's method time. `build.decodeTestResults` preserves the same duration in its canonical testcase result. - -Reports are searched in the module's configured Surefire/Failsafe -`reportsDirectory` values plus `/surefire-reports` and -`failsafe-reports`. Only `TEST-.xml` and nested `TEST-$*.xml` -files modified at or after `notBeforeMillis` are read, so an earlier run's -reports never produce outcomes. `method` drops parameter lists and invocation -indexes; invocations that report a display name instead of a method are -omitted. `status` is `passed`, `failed`, `error`, or `skipped`; when a method -has several invocations, the most severe wins (error, failed, passed, skipped) -and `message` comes from the first invocation with that status. Results are -ordered by `className`, then `method`. Core reads at most 512 reports of up to -32 MiB each and returns at most 10,000 methods; malformed reports are skipped. -A module outside the workspace or a class name that is not a Java binary name -returns `invalid_request`. A class with no case means "no recorded outcome", -never "passed". Platform stores must associate the response with the -launch operation and discard it after cancellation, replacement, or workspace -change. - -Workspace paths in responses are relative and use `/` separators. Line numbers -are one-based. `git.status.repositoryRoot` may be an absolute path when the -opened workspace is a subdirectory of the repository; all Git change paths are -relative to that repository root. `git.status.ahead` and `behind` report the -current branch's tracking counts and are zero when no upstream is configured. -`workspace.recentProjects.reduce` accepts `{ entries, action, capacity? }` and -returns `{ entries, added, removed }`. Entries are `{ path, lastOpenedAt, pinned }` -where `path` is the host's normalized root identity compared byte for byte and -`lastOpenedAt` is non-negative Unix milliseconds from the host clock (missing -means oldest). `action.kind` is `record { path, openedAt }` (moves the project -first and keeps its pin), `remove { paths }`, `togglePinned { path }` (unknown -paths are ignored), `import { paths, openedAt }` (adds only unlisted paths, the -first stamped `openedAt` and each later one a millisecond older), or `normalize`. -Core keeps the newest record of duplicated paths, orders pinned projects first -and then by descending `lastOpenedAt` with ties in caller order, and keeps at -most `capacity` unpinned projects (default 20, range 1–200); pins never count -against it. `added` and `removed` list paths the reduction introduced or dropped -so hosts attach or discard their own metadata (names, icons, branches). Empty, -NUL-containing or over-4,096-byte paths, negative times and out-of-range -capacities return `invalid_request`. Hosts own persistence and which roots are -worth recording; menus may show fewer rows than are retained. See -`shared/fixtures/workspace/recent-projects-v1.json`. - -`workspace.repositories.repositories` is ordered with the containing workspace -repository first when present, then repositories under the opened workspace by -workspace containment, depth, and path. Each entry contains an absolute native -`path` because repository roots are platform boundary values and may be outside -the opened folder when the folder is nested inside a checkout. Canonical paths -are reported in plain native form: Core strips the Windows verbatim `\\?\` -prefix only for supported drive/UNC paths so roots remain valid Git working -directories after consumers normalize separators. On Windows, path components -ending in an ASCII dot or space, reserved DOS device basenames, verbatim dot -segments, and non-drive/non-UNC device namespaces are -unsupported: discovery, status, watch context and Git reads return -`invalid_request` before filesystem lookup, rather than aliasing another path. -The same validation applies after canonicalization and to Git-reported paths; -missing-worktree fallbacks must not suppress it. Frontend file resolution -normalizes native UNC/verbatim inputs before deciding whether to join a repository -root, and rejects unsupported names before stripping their prefix. Remote/WSL -identifiers retain their protocol and POSIX name semantics. Chinese names, -embedded spaces and long paths are not rejected by length; native Git/filesystem -errors remain visible. In particular, Windows may reject an over-MAX_PATH Git -working directory at process creation even when filesystem lookup succeeds; -this is reported as `process_start_failed`, not a missing repository. Shared examples live in `shared/fixtures/git/windows-paths.json`. -Core treats both -`.git` directories and `.git` files as repository markers, but a marker only -becomes a listed repository when Git can open it: a `.git` directory needs -`HEAD`, and a `.git` file must resolve to a gitdir (absolute, or relative to -the marker's directory) that exists and holds `HEAD`. A stale submodule or -worktree pointer whose gitdir was removed is not listed, because status and -reference loads for the whole workspace would otherwise fail for it. The default traversal -skips dot-prefixed descendant directories and the built-in workspace hidden -directory names (including `.build`, `node_modules`, `.venv`, `venv`, `__pycache__`, -`target`, `build`, `DerivedData`, `dist` and `coverage`). `.worktree` and `.worktrees` remain -traversable checkout containers; the same exclusions apply inside them. -Traversal continues below eligible discovered repositories, including ordinary -`vendor` source checkouts. An explicitly opened root and its containing repository -are never excluded by their names. These are automatic discovery rules, not Git -tracking rules: `.gitignore` and file-tree visibility overrides do not configure -repository ownership. The rules apply before repository status/reference -aggregation on both hosts. Examples live in -`shared/fixtures/workspace/repository-visibility-v1.json`. -Git metadata itself is not traversed. -Symbolic directory links are not followed, preventing cycles and traversal -outside the workspace. Callers may explicitly supply `maxDirectories` and -`maxDepth` to request a bounded scan; product consumers omit these limits. -Traversal checks cancellation between directories and entries. -`git.worktrees.worktrees` is ordered with the primary worktree first and then -by path. Each entry contains `path`, `head`, nullable `branch`, `isCurrent`, -`isPrimary`, `isBare`, `isDetached`, `isLocked`, nullable `lockReason`, -`isPrunable`, and nullable `pruneReason`. The path is absolute because linked -worktrees may live outside the opened workspace; clients must treat it as an -opaque native boundary value and must not persist it as a portable identifier. -Core reads the list with one porcelain operation and does not run status in -each checkout. -For a rename or copy, each change uses the destination as `path` and preserves -the source as `originalPath`; platform mutations that act on the Git entry pass -both paths back to Core. -The core rejects absolute paths and `..` -traversal for file commands. Native file dialogs, file watching, PTY/ConPTY, -Java processes, and runtime discovery remain platform adapters. - -`git.history.recentReferences` contains at most five existing local branches in -most-recently-used order. The current branch is first. Core derives checkout -history from the repository's HEAD reflog, de-duplicates branch names, ignores -detached or deleted references, and fills missing entries deterministically. -The remote HEAD target is preferred as the default branch, followed by `main`, -`master`, and the remaining local references in refname order. - -The protocol version is currently `1`. Add a fixture under `shared/fixtures/` -before changing a response shape or search rule. - -`document.lifecycle` accepts a discriminated `state` (`clean`, `dirty`, -`saving`, or `conflict`) and one typed `event`. It returns the next state plus -one platform effect such as `writeToDisk`, `reloadFromDisk`, or -`showConflict`. `saving` carries the snapshot revision and `operationId`, so a -stale completion cannot clear newer edits. Live text, editor models, selections, -watchers, and native file I/O stay platform-owned; local keystrokes update the -same revision semantics in-process and never cross the Rust boundary. -`diskConflict` preserves the current editor revision and enters `conflict` from -any state when a native guarded write rejects its expected disk baseline or a -file is missing. Native document saves compare the last acknowledged raw disk -bytes with disk inside the platform write operation; the editor may use UTF-8, -UTF-8 with BOM, UTF-16 LE/BE (with or without BOM), GBK, GB18030, Big5, Shift JIS, EUC-JP, EUC-KR, Windows-1250/1251/1252, or KOI8-R while the Core -lifecycle remains encoding-agnostic. Watchers are refresh hints, not write -authorization. Conflict resolution acknowledges only the disk snapshot -observed by the user, and subsequent saves must validate that snapshot again. The -portable examples are in `shared/fixtures/documents/lifecycle-v1.json`. - -`document.planSaveBatch` accepts `{ documents }`, where each open document is -`{ id, dirty, readOnly, contentSynchronized }`, and returns `{ members }` in -request order. A writable document takes part when it is dirty, or when -`contentSynchronized` is false because its editor view may still hold input -that the platform model has not received. `document.reduceSaveBatch` accepts -`{ members, results, documents }`: one `{ id, outcome }` result per member -(`saved`, `failed` or `cancelled`) and the live documents observed after every -write finished. It returns `{ status, savedCount, failed, cancelled, -remainingDirty }`. `status` is `cancelled`, `failed`, `incomplete` or `saved`, -in that precedence; any live dirty document, including one dirtied or opened -while the batch ran, keeps the batch `incomplete`. Platforms attempt every -member (sequentially or concurrently) instead of stopping at the first failure, -and own dialogs and failure notifications. Duplicate or empty identities, -missing or extra results, and more than 10,000 documents are `invalid_request`. -See `shared/fixtures/documents/save-batch-v1.json`. - -GitHub command shapes, authorization behavior, and supported pull-request -operations are documented in [`github.md`](github.md). Rust Core performs no -network or credential I/O for these commands. - -`community.discourse.auth.begin` accepts an HTTPS `origin`, stable `clientId`, -user-visible `applicationName`, platform-owned `authRedirect`, and a non-empty -array of supported `scopes`. It returns an opaque `flowId`, an -`authorizationUrl` that requests RSA-OAEP padding, and an `expiresAt` Unix -timestamp. The private key and nonce remain in Rust memory and expire after ten -minutes. `community.discourse.auth.complete` accepts that `flowId` and the full -`callbackUrl`; it consumes the flow, verifies the callback target, decrypts the -payload, and checks the nonce before returning `userApiKey` and `apiVersion`. -Platform hosts open the browser, receive their registered URL scheme, and store -the returned credential in Keychain or Windows Credential Manager. They do not -implement Discourse cryptography or callback validation. - -The authenticated community commands accept `origin`, `userApiKey`, and -`clientId` plus their operation-specific fields. Rust owns HTTPS requests, -authentication headers, a 30-second request timeout, a 5 MB response limit, -Discourse JSON decoding, deterministic post ordering, and HTML sanitization. -Platform clients never issue a parallel Discourse request or parse a second -response shape. Credential vault reads and writes remain native adapters; the -credential is passed to Core only for the duration of one command. - -`git.watchContext` accepts `{ "root": string }`. When `root` is not inside a -Git repository, it returns `null`. Otherwise it returns -`{ "repositoryRoot": string, "gitDirectory": string, "gitCommonDirectory": string }`; -all three fields are absolute filesystem paths. - -`git.pullRequestContext` accepts `{ "root": string }` and returns -`currentBranch`, `suggestedBaseBranch`, `suggestedPublishBranch`, -`requiresPublish`, `detached`, and `hasUncommittedChanges`. For detached -worktrees, Core uses the worktree HEAD reflog's oldest commit and refs pointing -at that commit to suggest the branch from which the worktree started. For a -named branch, `requiresPublish` remains true until its current HEAD is present -on the same branch under `origin`, because GitHub repository identity is also -resolved from `origin`. - -`git.command` accepts `{ "root": string, "arguments": string[], "input": string? }`. -Arguments are passed directly to the Git executable without a shell. A -successful process launch returns `{ "arguments": string[], "output": string, -"stdout": string, "stderr": string, "exitCode": number, "invocations": -GitCommandInvocation[], "operationError": CoreError? }` even when Git exits -non-zero. `GitCommandInvocation` is `{ "arguments": string[], "stdout": string, -"stderr": string, "exitCode": number }`. The top-level `arguments`, streams, -and exit code always equal the final invocation for compatibility, and `output` -is that invocation's `stdout` followed by `stderr`; `invocations` records every -subprocess in execution order. Validation, process-start, and workspace failures -that occur before Git starts use the standard error envelope. If a follow-up -validation or probe fails after at least one subprocess was recorded, the -response retains the invocation trace and includes the failure as -`operationError`. - -`git.workspaceStatusMerge` accepts ordered `roots`, `previousRoots`, and one -`{ root, success }` outcome per root. It returns ordered entries with source -`current`, `previous`, or `missing`, plus `confirmedRoots` and `failedRoots`. -A failure is never a clean snapshot; a previous snapshot is retained only for a -still-discovered root. Duplicate, foreign, or incomplete outcomes are rejected. -Hosts keep the actual snapshots and publish the plan only if its request version -and workspace identity remain current. Failed roots must not confirm pending Git -mutations or erase their open diff; their displayed data is marked as potentially -stale. No status data or credentials are persisted by the planner. - -`git.repositoryRoot` accepts `{ "root": string }` and returns the normalized -absolute repository root or `null` when the path is not inside a repository. It -is read-only and does not acquire the repository write lease. - -`git.resolveFileContext` accepts `{ "root": string, "path": string }` and returns -`{ "root": string, "path": string, "ownership": "git" }` or `null` for a -file outside Git. A relative path is anchored at the existing root; an absolute -file may belong to a different checkout. Core discovers the deepest actual Git -checkout, including nested repositories and linked worktrees. Missing parent -directories are resolved from the nearest existing directory, while symlinked -parents are resolved on the owning host and the final filename is not followed. -Parent traversal components and unsupported Windows path identities are rejected. -Errors are not treated as a reason to use the active repository. The command is -read-only, observes the remote workspace IO boundary, and does not cache ownership. -Windows `remote://` and `wsl://` URI adapters retain their existing host routing. - -`git.command` and typed Git writers share the repository's write lease, including -linked worktrees. A competing request fails with `invalid_request` while a writer -is active; it does not wait behind a mutex outside its cancellation deadline. - -Git requests may include optional envelope metadata `gitExecution`: -`{ executable?: string | null, interactive?: boolean, useCredentialHelper?: boolean, -fetchDefaults?: GitFetchOptions, detailedFetch?: boolean, source?: "user" | "background" | "unknown", -reportQueries?: boolean }`. Defaults are PATH, noninteractive, helper enabled, normal -Fetch defaults, legacy Fetch results, and silent internal queries. -An executable must be an absolute native path to Git 2.31 or newer. Interactive -commands require an event receiver. These values are request-scoped, including -nested requests, and never implicitly persist. Both current applications opt -into detailed Fetch and supply their application settings snapshot. - -`git.fetchPlan` accepts `{ options?: GitFetchOptions, root?: string }`. Options are -`{ remote?: string | null, prune?: boolean, submodules?: "inherit" | "no" | -"onDemand" | "yes", tags?: "inherit" | "all" | "none" | "prune" }`. It returns -`{ options, arguments, commands?: string[][] }`. Without `root` the operation is -pure. With `root`, commands expand into sorted enabled remotes, using the same -resolver as detailed execution. `remote..skipFetchAll` is respected when -fetching all remotes, using Git's boolean parser: a valueless key is true, an -explicit empty value is false, and nonzero numbers are true. Invalid boolean -values fail preflight rather than silently enabling a remote. A selected name -must exist; URLs and argument text are not -accepted as remote names. An empty enabled set is an explicit error. - -Defaults are all remotes, pruning enabled, and inherited submodule/tag policy. -Tag modes map to no override, `--tags`, `--no-tags`, or `--prune-tags`; tag pruning -requires `prune: true`. `git.write` with `operation: "fetch"` accepts optional -`fetchOptions`. Supplied one-time values override repository `lithe.fetch.*` -preferences, which override `gitExecution.fetchDefaults`. Unknown fields and -Fetch options supplied to another mutation are rejected. With `detailedFetch`, -individual remote errors preserve partial successes and an `operationError` -summarizes failure; legacy clients retain one `fetch --all` invocation. - -All captured non-config invocations get named temporary presentation policy -through appended `GIT_CONFIG_COUNT` entries: `color.ui=false`, -`core.quotepath=false`, `log.showSignature=false`. Helper reset is appended only -when the supplied preference disables helpers or an explicit authentication -retry selected it. Config commands are exempt so provenance is not obscured. -Fetch's existing explicit flags remain in the argument vector for compatibility. -`LC_ALL=C`, pager suppression and no terminal prompting are child-local policy. -Transfer progress is requested explicitly. No config file is implicitly modified. - -Because every Git child runs with `LC_ALL=C` and no terminal prompting, its -authentication diagnostics are fixed English text whatever the system language. -A failed `git.write` response (non-zero `exitCode`, or an `operationError` with -code `process_failed`) whose Git stderr shows the remote refused or lacked -credentials (`Authentication failed`, `could not read Username/Password`, -`Permission denied (publickey…)`, HTTP 401/403, GitHub `Permission to … denied -to …`) reports `operationError.code = "git_authentication_failed"`. When Core -adds that error to a response that had none, `message` is the first stderr line -and `details` the combined output; an existing message and details are kept. -Other failures keep their codes, so hosts must not match stderr themselves. -Samples: `shared/fixtures/git/authentication-failure-v1.json`. - -`git.remoteUrl` accepts `{ root, remote }` and returns `{ url: string | null }`. -It uses the internal configuration-read path: a missing key is successful and -produces no command row. Invalid requests and real access/executable failures -remain structured errors. The configured value is used for repository discovery; -it is not console output. See `shared/fixtures/git/remote-url-v1.json`. - -`git.executionInspect` takes `{ root, scope?: "local" | "global" }`, default local. -It returns `{ executable, version, scope, entries, fields, temporaryConfig, -fetchOptions, fetchError, fetchSources, resolvedFetchBehavior, credentialHelperEnabled, -interactiveAuthentication }`. Entries are `{ key, value, scope, origin, effective }` -in Git precedence order, limited to relevant configuration and redacted. Effective -`fetch.prunetags` and `remote..prunetags` entry values use Git's boolean -parser and return canonical `"true"` or `"false"` for valid spellings (including -valueless assignments); invalid values remain inspectable as their redacted raw -text. Fields are `{ key, choices: string[], configuredValues: string[] }` from -the selected file without expanding includes. `configuredValues` retain the raw -values for optimistic edit checks, even when an effective entry is normalized. -Fetch source values are `{ scope, origin }` per preference; application sources have null origins. Invalid repository -preferences return null `fetchOptions` and a structured `fetchError`. -`resolvedFetchBehavior.tags` is `{ value, source, basis, reasonCode }`, or the -whole `resolvedFetchBehavior` is null when Fetch options cannot be resolved. -The value is `reachable`, `all`, `none`, `prune`, `custom`, `remoteDependent`, -or `unavailable`. `source` is an optional `{ scope, origin }`, `basis` is `git` -`lithe`, or `multiple` when no single source explains all remotes; `reasonCode` distinguishes `noRemotes` from -`invalidConfiguration`. Repeated `remote..fetch` entries remain additive. -Git's explicit tag refspec and `pruneTags` may fetch tags even with `--no-tags`; -partial or negative tag refspecs are reported as `custom` rather than guessed. -All occurrences of relevant boolean settings are checked with Git's parser so -an invalid shadowed value is not silently interpreted as valid. Inputs and -outputs are illustrated by `shared/fixtures/git/fetch-behavior-v1.json`. - -`git.executionConfigure` adds `{ key, value: string | null, expectedValues: -string[] }` to the same request. It permits `fetch.prune`, `fetch.prunetags`, -`fetch.recursesubmodules`, `pull.rebase`, `pull.ff`, `push.default`, -`credential.usehttppath`, and local-only `lithe.fetch.prune`, -`lithe.fetch.submodules`, `lithe.fetch.tags`, using the advertised choices. -Null removes the selected file's override. An optimistic expected-values check -rejects a detected intervening edit, then one Git config transaction runs under -Lithe's repository write lease. It is not an atomic CAS against external writers. -The returned snapshot reflects the saved state. No arbitrary script/argument -setting is editable through this command. - -`git.authRespond` takes `{ requestId: string, answer: string | null }` and returns -`{ accepted: boolean }`. Opaque IDs are invocation-owned, unguessable and single -use; stale or invalid answers return false. Answers are bounded to 8 KiB without -NUL/newlines. Null cancels the challenge. Hosts also cancel its owning operation -when the user cancels the dialog. An event with `retry: true` requires the exact -answer `"retry"` to repeat the failed transfer with helper bypass, at most three -total attempts. The AskPass C ABI is called only in the child app's early helper -mode. Credential answers are never copied into events or settings. - -See `shared/fixtures/git/{fetch-plan,execution-events,execution-policy}-v1.json` -and [Git execution and project console](../../.agents/notes/implemented/architecture/2026-09-12-git-execution-and-project-console.md). - -The additive `lithe_core_execute_json_with_events(request, callback, context)` -C ABI and Rust `execute_json_with_events` API deliver sanitized Git diagnostics -while the existing synchronous request runs. Event strings are borrowed only -for the callback; clients must copy them before returning. Callbacks are serial -on the caller's worker thread and complete before the final response returns. -Callbacks may synchronously call Core, for example to answer `git.authRespond`. -Nested requests do not inherit the outer observer; they can install a separate -observer explicitly. Returning from a nested request restores the outer request's -event identity, cancellation registration, and absolute deadline. -No arbitrary environment values, authentication answers or command stdin are emitted. -The named nonsecret temporary configuration is explicit diagnostic metadata. - -Each event has `operationId` and `type`: - -| Type | Additional fields | -| --- | --- | -| `requestStarted` | none; cancellation is registered before delivery | -| `started` | `invocationId`, `workingDirectory`, `arguments`, nullable resolved `executable`, `temporaryConfig` key/value pairs, `displayArguments`, `globalArguments`, `source` | -| `output` | `invocationId`, `stream` (`stdout`/`stderr`), `text`, `progress`, `truncated`, optional `progressDetails` (`stage`, nullable `percent`, `completed`, `total`) | -| `finished` | `invocationId`, nullable `exitCode`, monotonic `durationMilliseconds`, nullable `error`, `expectedExit` | -| `requestFinished` | nullable `error`, including failures before a child started; `unconfirmedInvocations`, the started records without `finished`; `failureRecord`, true when `error` is set, is not a cancellation, and no record of the request failed or is unconfirmed, so the host shows the error as its own record | -| `authentication` | `requestId`, `prompt`, `secret`, `attempt`, optional `retry`, `workingDirectory` | -| `remoteResult` | `remote`, `succeeded`, nullable structured `error`, updated/deleted reference lists and counts, `referencesTruncated`, `referencesAvailable` | - -`invocationId` is scoped to the request. `workingDirectory` is a native -absolute-path diagnostic, not a shared workspace identifier. Arguments/output -are redacted diagnostics; preview alone is not proof of process startup. An -unknown exit status remains null. A failed start may produce `finished` without -`started`; consumers must not fabricate an executed command from that event. -Native journals track `requestStarted` separately from visible command records. -The native receiver retains the originating request directory so a failure before -`started` can be shown as an unconfirmed request with no fabricated arguments or -exit code. Successfully completed internal queries still produce no history row -unless they were reported through `gitExecution.reportQueries`. -A request that ends with the `cancelled` error before any command started was -superseded, not a Git failure, and also produces no row; a cancelled request that -had started a command keeps that command with the cancellation as its reason. -A request-start event must not allocate a placeholder or consume command-history capacity. Clearing -history suppresses late invocations from requests already in preflight, while -started operations remain cancellable until `requestFinished`, even after their -text is cleared. See `shared/fixtures/git/console-lifecycle-v1.json`. -Console presentation entries include an optional `notice`: `waitingForOutput`, -`completedWithoutOutput`, or `fetchUnchanged`. Native hosts localize this as a -status line, separate from retained Git stdout/stderr and copied command output. -Notices require empty retained output, no progress, no truncation and no failure. -`fetchUnchanged` additionally requires a completed successful Fetch and a -`remoteResult` with `succeeded: true`, `referencesAvailable: true`, and explicit -zero `updatedReferenceCount` and `deletedReferenceCount`. Missing counts must not -be treated as zero. Other successful empty results use `completedWithoutOutput`. - -`displayArguments` and `globalArguments` are additive console projections: the -former starts at the subcommand, and the latter contains temporary configuration -as `-c key=value` pairs followed by the original global argument prefix. Consoles -fold contiguous `-c` pairs at their original positions; other global arguments -stay visible. Raw `arguments` remain authoritative for copying and diagnostics. Older events without projections retain their legacy display. -Visible workflow commands and explicit `git.command` requests produce execution -events. Internal read-only queries remain silent in the console while retaining -normal workflow capture and result semantics, unless the request sets -`gitExecution.reportQueries`: then each query produces the same `started`, `output` -and `finished` events as a visible command, so the console records what the -workbench read. Queries of a request whose provenance is `background` (an -automatic refresh or watcher, which runs too often to record) stay silent even -then; provenance is `gitExecution.source`, or the envelope origin when that is -unknown. Reported queries never authenticate or prompt; a query that needs -credentials fails as it does when silent. A query whose nonzero exit answers its -question, such as a missing optional config value, an absent ref or a path outside -a work tree, retains its actual exit code with `expectedExit: true`; only the -executing workflow can mark that normal result. Other nonzero exits and request -errors remain failures. Output records separated by NUL, as `-z` output is, are -published as separate lines. The -`remoteResult` event carries the transfer's `invocationId` so later inspection -queries cannot acquire its summary. Final command response semantics remain unchanged. - -A complete line is redacted before publication. Native diagnostic limits are -16 KiB per line, 512 KiB raw diagnostic input and 4,096 output events per -invocation. Limits produce an omission record without suppressing completion. -Raw parser capture has an independent 32 MiB per-stream bound and fails on -overflow. See `shared/fixtures/git/execution-events-v1.json`. - -`git.rollbackPlan` accepts `changes` (up to 10,000 entries, each containing a -repository-relative `path`, optional `originalPath`, and the two-character Git -`status`) and optional `deleteAddedFiles` (default false). It returns ordered -`steps` containing `operation` and literal `paths`. Added and copied destinations -are unstaged while their disk contents remain by default; renames restore both -paths. Adjacent compatible operations are batched. Unsafe, overlapping or -ambiguous identities are rejected. `git.rollbackPrepare` also accepts `root`, -checks selected identities using bounded literal-path Git status queries, and -fails with `GIT_ROLLBACK_STALE_SELECTION` if any selected identity changed. -Untracked directories are expanded to the untracked files observed at prepare -time; a file created later is not included in the resulting deletion steps. -The 10,000-entry limit applies to the input selection, not the number of files -inside a selected directory. Callers should prepare after confirmation and -execute steps in order, stopping on failure and refreshing after any attempted -write. This status check cannot detect content changes that preserve the same -status or lock out external Git clients between preparation and writes; it is -not a content snapshot or an atomic transaction. - -`git.reconcileDeletedSelection` accepts a repository `root` and the selected -pre-delete `changes` (`path`, two-character `status`). Under the repository -write lease, Core re-reads the selected literal paths and unstages only staged -additions or copy destinations that are now missing. Retained paths, tracked -deletions, unselected paths, and copy sources are not unstaged. Filesystem -operations may partially fail and external Git clients do not share this lease; -hosts must refresh after success or failure, and concurrent external modifications -are not an atomic snapshot. Up to 10,000 selected identities are accepted. - -`git.prepareCommitSelection` accepts `repositories`, a nonempty list of up to -128 distinct repository roots and each root's selected identities (`path`, -optional `originalPath`, and two-character Git `status`). At least one selected -identity is required across all roots and the selection is limited to 10,000 -identities. Hosts supply every repository whose index should be prepared, -including those with an empty selection, and check their own ChangeList ownership -before and after the call. Core checks every repository and selected identity -before writing, rechecks HEAD and index under the existing repository lease, -unstages other paths, stages selected paths only when not already staged, and -verifies the exact staged path set and previously staged selected object IDs -afterward. Selected untracked directories are expanded into observed files; -untracked embedded repositories and overlapping directory selections are -rejected, while tracked submodule gitlinks remain selectable. Paths are literal, including for ordinary `git.write` -staging. The call prepares indexes; it does not create a commit or replace the -subsequent workspace commit review. On cancellation or failure earlier writes -may already have succeeded, so hosts must refresh affected repositories. Git -clients outside Lithe do not share the lease; content changes that preserve the -same status and races after the last check are not an atomic snapshot guarantee. - -`git.write` accepts a typed mutation request. Its required `operation` values are -`stage`, `unstage`, `discard`, `discardAll`, `stageAll`, `commit`, `ignore`, `exclude`, `cherryPick`, `revert`, -`reset`, `undoCommit`, `editCommitMessage`, `deleteCommit`, `squashCommits`, `createBranch`, `publishBranch`, -`renameBranch`, `setUpstream`, `unsetUpstream`, `deleteBranch`, `updateBranch`, `merge`, `rebase`, `createWorktree`, -`removeWorktree`, `lockWorktree`, `unlockWorktree`, `repairWorktrees`, `pruneWorktrees`, -`fetch`, `pull`, `push`, `checkout`, `checkoutAndRebase`, `checkoutRevision`, `clone`, `stashPush`, -`stashApply`, `stashPop`, `stashDrop`, `deleteRemoteBranch`, `operationContinue`, -`operationAbort`, `operationSkip`, `createTag`, and `deleteTag`. Optional fields are `paths`, `reference`, `referenceKind`, -`gitReference`, `revision`, `revisions`, `name`, `message`, `lightweight`, `signed`, `remote`, `destination`, `mode`, -`includeUntracked`, `checkout`, `amend`, `author`, `signOff`, `force`, `pushTags`, `expectedPush`, `autoStash`, -`worktreeMode`, `noCheckout`, `expectedBranch`, and `expectedState`. The four history actions require the reviewed `expectedState` -described below; earlier unreviewed history-write callers must migrate. - -`pull` optionally accepts `expectedBranch` as a complete local `refs/heads/*` -identity for a background update whose host has already fetched. Core pins that -branch's fetched upstream commit and integrates it with local `merge --ff-only`, -`merge --no-edit`, or `rebase`, avoiding a second network wait in `git pull`. -It verifies symbolic HEAD under the repository writer lease before resolving the -upstream and again before integration; a different branch or detached HEAD fails -with `invalid_request` and does not integrate. Explicit source references and -auto-stash are incompatible with this guarded mode. Other operations reject this field. Omission preserves -existing clients. Hosts should also recheck the selected worktree after Fetch and -before invoking the guarded update, reporting `state-changed` if the checkout changed while -the request was waiting. The lease serializes Lithe writes, not external Git -clients; the final check reduces the gap and is not an external checkout lock. - -The core validates pathspecs, revisions, branch names, references, reset modes, -stash references, and operation-specific required fields before invoking Git. -`setUpstream` requires a typed remote `gitReference` and passes its complete -`refs/remotes/*` identity to Git, so a same-named local branch cannot make the -upstream ambiguous. `createWorktree` accepts `worktreeMode` values `newBranch` -(the backward-compatible default), `existingBranch`, and `detached`. -`newBranch` requires `name` and a typed `gitReference`, with an optional -`revision` override. A remote base without a revision override uses one -`git worktree add --track -b` mutation so creation and tracking have one Git -outcome. Explicit revisions resolve to immutable OIDs and use `--no-track`; -local and tag bases also use `--no-track`, independently of -`branch.autoSetupMerge`. `existingBranch` -requires a typed local branch and rejects `name` and `revision`; it passes the -validated branch identity without `-b`, leaving Git to reject an already -occupied branch. `detached` rejects `name` and requires a typed reference or -`revision` (the latter takes precedence), resolves it to an immutable commit, -and uses `--detach`. Independent `noCheckout: true` adds `--no-checkout` in -every mode; its default is false, and legacy `checkout` does not control -worktree file population. Examples are in -`shared/fixtures/git/worktree-creation-v1.json`. Worktree mutations re-read Git's -registered list before invoking Git, and each refusal has its own -`operationError.code`, so hosts explain it without matching messages: - -| Code | Operations | Meaning | -| --- | --- | --- | -| `git_worktree_not_registered` | `removeWorktree`, `lockWorktree`, `unlockWorktree` | `destination` is not a registered worktree; the host's list is stale and should be re-read | -| `git_worktree_primary` | `removeWorktree`, `lockWorktree`, `unlockWorktree` | `destination` is the primary worktree, which Git can neither remove, lock nor unlock; checked before the next two | -| `git_worktree_current` | `removeWorktree` | `destination` is the worktree the request was made from; another worktree of the repository can remove it | -| `git_worktree_locked` | `removeWorktree` | the worktree is locked; unlocking it first allows the removal | -| `git_worktree_has_changes` | `removeWorktree` without `force` | Git refused because the checkout has modified or untracked files; `force: true` removes them with the checkout | - -`git_worktree_has_changes` is recognised from Git's fixed C-locale refusal -(`contains modified or untracked files`) on a failed, unforced removal; its -`message` is the first stderr line and `details` the combined output. Other Git -refusals, such as a worktree containing submodules, keep the plain process -failure. A malformed `destination` (empty, starting with `-`, or containing -control characters) stays `invalid_request`. -`repairWorktrees` refreshes administrative links after a repository or worktree -has moved. `pruneWorktrees` removes registrations whose checkout is already missing and -does not recursively delete an arbitrary directory. - -`updateBranch` requires a typed, non-current local `gitReference`. Core resolves -that branch's configured remote upstream and performs an atomic Fetch that -refreshes the remote-tracking ref and fast-forwards the local branch without -switching HEAD. Git rejects diverged branches and branches checked out by any -worktree, so the operation cannot discard local commits or mutate another active -checkout. -Successful process launch returns `{ "arguments": string[], "output": string, -"stdout": string, "stderr": string, "exitCode": number, "invocations": -GitCommandInvocation[], "operationError": CoreError?, "stashRestore": -GitStashRestore?, "historyRewrite": GitHistoryRewriteResult?, "warnings": GitOperationWarning[] }` -even when Git exits non-zero. -`GitOperationWarning` is `{ "code": string, "message": string, "details"?: string }` -and reports a non-fatal follow-up failure after the requested mutation already -succeeded. Platform clients must retain the successful operation outcome while -presenting the warning. The top-level process fields -normally describe the final subprocess, and `output` is that subprocess's -`stdout` followed by `stderr`. `invocations` records every Git subprocess for -composite operations such as `discardAll` and Smart Checkout in execution -order; each item contains the exact argument vector (excluding the executable -name), separate streams, and exit code. A follow-up validation or probe failure -after Git has started is returned in `operationError` alongside the retained -trace. A stash restore conflict is a logical operation failure represented by -`stashRestore`, even when a later diagnostic invocation exits successfully. -Consumers must therefore consider `operationError` and `stashRestore` in -addition to the compatibility `exitCode`. The shared compatibility fixtures are -`shared/fixtures/git/command-response-v1.json` and -`shared/fixtures/git/command-error-response-v1.json`. Invalid arguments found -before any Git subprocess use the standard `invalid_request` error envelope. -`checkout` uses `referenceKind` values -`local`, `remote`, or `tag`. A remote checkout creates its tracking local branch -when missing, or fast-forwards an existing matching tracking branch to the selected -fetched remote commit. This also updates an already-current local branch and -succeeds when it is already aligned. It does not Fetch again or create merge -commits. Local-only commits (ahead or diverged) block the operation before a switch -or automatic stash; `force` discards working changes, never committed history. -Blocking working changes and another worktree's branch ownership remain protected. -The selected remote commit is pinned and branch identity is rechecked before -integration. A composite checkout may switch successfully before a later integration -or stash restore fails, so consumers refresh repository state after either outcome. -Local checkout and `checkoutAndRebase` retain their existing policies. Scenarios are -in `shared/fixtures/git/remote-checkout-v1.json`. -`clone` uses `remote` as its source and -`destination` as its target path. `publishBranch` validates `name`, creates -and checks out that branch at a detached HEAD when needed, then pushes it with -an upstream. If the push fails, the local branch is intentionally retained so -the user can fix credentials or connectivity and retry without losing commits. - -`git.pushPreview` accepts `root`, an optional complete local `gitReference` or -legacy `reference`, an optional bounded `limit`, `pushTags`, and an optional -`pushTarget`. It returns `localBranch`, -`localHead`, `remote`, `remoteBranch`, `targetKind`, `createsRemoteBranch`, -nullable `remoteTrackingOid`, nullable `upstream`, exact reviewed `tags`, -`commits`, and `hasMore` using `shared/fixtures/git/push-preview-v1.json`. -`targetKind` describes how `remoteBranch` relates to the local branch: -`tracking` when both names match, `publish` when the branch has no upstream on the -selected remote and will be published under its own name, and `divergent` when the -upstream branch has a different name. `createsRemoteBranch` reports whether -`remoteBranch` is still absent on the remote. The push destination follows -`branch..pushRemote`, then `remote.pushDefault`, the configured upstream -remote, `branch..remote`, and finally `origin` or the first configured -remote. An upstream only names the destination when it lives on the selected -remote, so a `pushRemote` or `remote.pushDefault` override falls back to the -same-named branch on that remote. A destination without a fetched tracking -reference previews commits not reachable from that remote. A reviewed `push` -mutation sends these resolved fields back as `expectedPush`; Core rejects a stale -local tip, destination, or tracking OID before starting Git. An optional -`expectedPush.targetKind` is compared only when the caller supplies it, so a -caller that predates target kinds keeps its previous behaviour instead of being -rejected as stale. - -A `divergent` destination is never pushed implicitly. `pushTarget` accepts -`publish` (send the branch to its same-named remote branch and repoint the upstream -there after a successful push) or `upstream` (keep the differently named upstream -branch, which is the only case allowed to update it, and leave the tracking -configuration untouched). `git.pushPreview` and `push` resolve the destination -through the same function with the same `pushTarget`, so the preview describes the -branch, tracking OID and commits that choice would update, and a reviewed push is -validated against exactly that destination. A client therefore previews with the -choice, shows the result, and pushes with the same `pushTarget` and the -`expectedPush` taken from that preview; a tracking configuration that moves in -between is rejected as stale. Without `pushTarget`, a `divergent` preview reports -the same-named destination and `push` rejects the request with `invalid_request`. -`pushTarget` is ignored for branches that are not `divergent`. -`force` binds -`--force-with-lease` to the reviewed destination OID when `expectedPush` is -present, and Core also validates the reviewed tag identities; `pushTags` accepts -`none`, `all`, or `reachable` and maps to no tag option, `--tags`, or -`--follow-tags` respectively. Legacy push callers may omit `expectedPush`. A -reviewed push uses the preview's immutable `localHead` OID as the refspec source, -so a repository change after validation cannot add unreviewed commits to the -operation. Because Git cannot infer an upstream from an OID source, Core -explicitly configures the reviewed local branch after a successful first push. - -New reference-based workflows send `gitReference` as `{ "fullName": string, -"shortName": string, "kind": "local" | "remote" | "tag" }`. Core verifies -that all three fields describe the same namespace and validates the full ref -with Git. The legacy `reference` and `referenceKind` fields remain accepted for -existing platform calls. `checkoutAndRebase` requires a local or remote branch -reference and a completely clean worktree; Core records the current local -branch before switching and rebases the checked-out branch onto that original -branch. A dirty tree or detached HEAD is rejected before checkout begins. When -remote checkout finds an existing same-named local branch, Core uses it only if -its configured upstream is the selected complete remote reference. - -`pull` without an explicit reference retains current-upstream behavior. An -explicit remote reference may use either the preferred `gitReference` shape or -the legacy `reference` plus `referenceKind: "remote"` fields. Core validates and -safely splits `refs/remotes//` against configured remote names, -then invokes pull with the explicit remote and branch using `mode` `ffOnly`, -`merge`, or `rebase`. Platforms must not parse the remote reference or construct -these Git arguments themselves. - -`deleteRemoteBranch` requires a complete remote `gitReference`. Core resolves -the configured remote with longest-prefix matching and invokes a structured -remote branch deletion; platforms must not split `shortName` themselves. - -When `commit` includes `paths`, Core stages the complete working-tree state of -those paths, including untracked files and deletions, then commits only those -paths. Other paths already present in the index remain staged and are not part -of the new commit. Core checks conflict markers after preparing that final -snapshot in an isolated temporary index initialized from the operation's HEAD -tree. The real index is not changed on any -staging, validation, hook, signing, or commit failure; successful commits -reconcile only the selected paths, preserving unrelated staging created while -the operation ran. Selected paths used to prepare and reconcile the snapshot -are passed to Git over NUL-delimited stdin with `--pathspec-from-file`, avoiding -platform command-line limits and preserving rename source/destination identity. -`git.diff` accepts `worktreeSnapshot: true` to review that same complete -working-tree snapshot against `HEAD` through an isolated temporary index. This -mode includes staged, unstaged, untracked, deleted, and same-path recreated -files without reading or mutating the real index and cannot be combined with -other diff reference modes. -A `commit` request without `paths` retains -the legacy behavior of committing the existing index. `commit` also accepts -`author`, the commit's author as an exact `Name ` (a name without -surrounding spaces, one space and a nonempty email between angle brackets, with -no whitespace in the email and no line breaks), passed as `--author`; the -committer stays the configured identity. Any other value fails with -`git_commit_author_invalid` before Git runs, because Git would read it as a -pattern selecting an earlier author. `signOff: true` adds `--signoff`, a -`Signed-off-by` trailer for the committer. Both apply with or without `paths` -and with `amend`. Logs show the author as `--author=`; the execution -events keep the actual argument. `ignore` appends root-anchored patterns to the -repository's top-level `.gitignore`; `exclude` appends the same patterns to the -worktree-aware Git metadata path for `info/exclude`. Both ignore operations -preserve existing content, escape Git pattern characters, de-duplicate rules, -and interpret a trailing `/` as a directory rule. - -`editCommitMessage` rebuilds the selected commit and its later first-parent -descendants with the new `message`. `squashCommits` requires at least two -distinct, contiguous `revisions`, uses the newest selected tree, and rebuilds -later descendants. Both preserve commit author and committer attribution and -atomically update the checked-out branch reference. `deleteCommit` drops a -non-root commit and replays later commits; deleting HEAD resets to its parent. -All three operations reject a dirty worktree, detached HEAD, an active Git -operation, a target outside the current branch's first-parent chain, a rewrite -range containing a merge commit, or any rewritten commit reachable from -`refs/remotes`. They also reject any signed commit in the affected range, so -the existing unsigned `commit-tree` execution cannot silently strip a signature. -Their complete messages must be UTF-8. Root-commit message edits and squash -ranges that include the root remain supported; root deletion is rejected. - -`undoCommit` accepts one `revision` that must resolve to the checked-out local -branch's HEAD with exactly one parent. It atomically moves that branch to the -parent while preserving the index bytes and working files, including existing -staged, unstaged, and untracked edits. It rejects root and merge commits, -detached HEAD, unresolved conflicts, an active Git operation, and a HEAD known -to be reachable from remote-tracking refs. Undo may preserve a signed HEAD -because it moves a ref without reconstructing or modifying that commit object. - -Native interactive rebases use the dedicated preview/start/session/control -contract in [git-rebase-session.md](git-rebase-session.md). The base selected -for “Rebase from Here” remains unchanged; only its successors are rewritten. - -`git.historyActionCapabilities` accepts `{root, revisions}` with at most 1,000 -full SHA-1 or SHA-256 commit identities and returns `head`, `canCherryPick`, -`canUndo`, and `canSquash`. It resolves actual checkout HEAD rather than a -visible or paginated row. Undo requires a checked-out branch and a HEAD with -exactly one parent; squash requires a distinct contiguous selection on that -branch's first-parent history within the latest 1,000 commits. Cherry-pick is -only offered for a different existing commit. These are structural menu hints, -not permission to mutate: `git.historyRewritePreview` still checks worktree, -operation state, unsupported commits, published history, and the reviewed -snapshot. Clients cancel and discard stale results when the menu closes, -selection or repository changes, or the history is refreshed. See -`shared/fixtures/git/history-action-capabilities-v1.json`. - -`git.historyRewritePreview` accepts `{ "root": string, "operation": string, -"revisions": string[] }` for those four operations. It returns `operation`, -`allowed`, `blockers` (`{ "code": string, "message": string }[]`), nullable -`branch` and `head`, `selectedCommits`, `affectedCommits`, `suggestedMessage`, -and nullable `expectedState`. Each commit has a full `hash`, `parents`, and its -complete, untrimmed `message`; both commit lists are oldest first, independently -of UI sorting, filtering, or pagination. Squash's suggested message combines -all selected messages in that order. The preview permits at most 1000 affected -commits; an out-of-range selection is explicitly blocked rather than truncated. -`affectedCommits` covers later descendants whose OIDs change as well as the -selection. Remote reachability uses local `refs/remotes`, including descendants; -it is not a live server claim that a commit has never been published. - -An actionable preview contains `expectedState` as `{ "branch": string, -"head": string, "stateToken": string, "operation": string, "revisions": string[] }`. -Callers return this object unchanged in `git.write`, using its selected full -OIDs in the normal `revision` or `revisions` fields. The optional edited -`message` is separately validated without silently trimming its contents. -Core normalizes subdirectory roots to the repository root. Its opaque token -covers checkout identity and symbolic HEAD, local/remote/tag refs, exact index -contents, working-file diffs, untracked-file contents, and active operation -state. Core repeats eligibility and snapshot checks before preparation and -again before the expected-OID ref update. Changed previews fail with -`invalid_request` and a stale-preview message. Typed Git writers, including -index patch operations, share a repository-wide in-process lease across linked -worktrees; external Git writers remain subject to snapshot and OID checks. - -Before altering the branch, Core creates a persistent ref beneath -`refs/lithe/history-recovery/` at the original HEAD. Its reflog records the -operation, original branch and HEAD so the point remains attributable after a -process restart. At most the newest 20 recovery refs are retained after -successful cleanup; cleanup failure is explicit. These internal refs are -excluded from ordinary reference lists and unfiltered Git history, including -decorations. A host can use the recovery OID/ref with the existing `createBranch` -operation to preserve or inspect the old history without resetting working files. - -After a recovery point exists, the response retains `historyRewrite` as -`{ "operation": string, "branch": string, "originalHead": string, "newHead": -string | null, "recoveryReference": string, "mutationApplied": boolean, -"outcomeKnown": boolean, "worktreeRefresh": "notNeeded" | "ready" | "failed" }`. -`newHead` is the prepared target when one exists, even if its installation failed. -`mutationApplied` is true only after successful installation or observation; -when interrupted outcome inspection also fails, `outcomeKnown` is false and -the user must inspect recovery before retrying. Clients must not infer that -nothing happened from a cancellation or generic error. Drop replays against an -isolated index before moving the ref; replay failure leaves real checkout state -unchanged. After a successful ref update, a guarded two-tree checkout refresh -does not move HEAD again. Refresh failure yields `git_worktree_refresh_failed` -while preserving `mutationApplied: true` and the recovery point. For these -structured responses, compatibility process fields describe the authoritative -mutation result instead of a later recovery-cleanup subprocess; diagnostics -remain available in `invocations`, `operationError`, and `warnings`. -The compatibility fixture is `shared/fixtures/git/history-rewrite-v1.json`. - -`createTag` uses `name` for the new tag, `revision` as its target commit or -revision, and an optional `message`: when the field is present (including an -empty value), it creates an annotated tag (`git tag -a`); an absent field -creates a lightweight tag. UI callers trim new user-entered messages. Core -passes the supplied annotation with verbatim cleanup so restore preserves -CRLF and trailing blank lines, and an explicit empty value preserves an empty -annotated tag. Two optional typed fields refine that legacy choice: -`lightweight: true` forces a lightweight tag with `--no-sign`, overriding -`tag.gpgSign`, and rejects a non-blank `message` or `signed: true` with -`invalid_request` and the stable message -`Lightweight tags cannot include a message or signature` before any -subprocess; `signed: true` adds `-s`, which creates a signed annotated tag -when a message is present. Omitting both fields preserves the existing -behavior, so callers that predate the fields are unaffected. The argument -matrix is pinned by `shared/fixtures/git/tag-write-v1.json`. -Tag names must satisfy the `git check-ref-format` refname rules and must not -begin with a dash; `shared/fixtures/git/tag-names.json` pins the boundary cases -for Core and host-side validation. Before invoking Git, `createTag` probes the -repository so a duplicate tag (`A tag named '' already exists`) and an unresolvable -non-commit target (`Could not resolve tag target ''`) fail with stable -`invalid_request` messages instead of localized Git output. `deleteTag` uses -`name` and removes `refs/tags/`; a missing tag fails with -`The tag '' does not exist`. On success the response carries a -structured `tagDeletion` record — `{ "name": string, "deletedTarget": string, -"kind": "lightweight" | "annotated", "message": string? }` — where -`deletedTarget` is the peeled commit the deleted ref resolved to and -`message` is the original annotation with its line breaks preserved. Hosts -can rebuild the tag by replaying `createTag` with `name`, `deletedTarget`, -and `message`; the tagger identity and timestamp are intentionally not -preserved. Deletion supplies the observed unpeeled object ID to `update-ref`, -so a concurrent force-update fails atomically instead of deleting new state and -returning a stale recovery target. `deleteBranch` applies the same expected-OID -guard after checking the branch is fully merged and not checked out, then -on success, carries a structured `branchDeletion` record — -`{ "name": string, "deletedTarget": string }` — so hosts can offer to -recreate the branch at its previous commit; a missing branch fails with -`The branch '' does not exist`. If the ref deletion succeeds but branch -configuration cleanup fails, the response contains both `branchDeletion` and a -`branch_config_cleanup_failed` warning; hosts must preserve the Restore action while surfacing the -cleanup diagnostic. - -`operationContinue`, `operationAbort`, and `operationSkip` inspect Git metadata -to select the active merge, rebase, cherry-pick, or revert instead of accepting -an operation kind from the caller. Continue is rejected while conflicted paths -remain, and skip is supported only for a rebase. All three return the normal -Git process result when Git is invoked; -an absent or unsupported operation state uses the `invalid_request` envelope. - -`git.checkoutPreflight` accepts `{ "root": string, "reference": string }` or -the preferred `{ "root": string, "gitReference": GitReference }` shape and -returns `{ "blockingPaths": string[] }`. The sorted, de-duplicated result -contains tracked paths that are both locally modified and different between -HEAD and the target, plus untracked paths that the target reference tracks. - -`git.pullPreflight` accepts `{ "root": string }` and returns `upstream` as a -string or `null`, numeric `ahead` and `behind` counts, `diverged`, and -`hasLocalChanges`. It reads the existing tracking reference without fetching; -`diverged` is true only when both counts are non-zero. `hasLocalChanges` checks -tracked changes and excludes untracked files. A branch with no configured -upstream returns `null`, zero counts, and false for both booleans. -`configuredStrategy` is `"rebase"` when `pull.rebase` is true, `"ffOnly"` when -`pull.ff` is `only`, `"merge"` when `pull.ff` or `pull.rebase` is false, and -`null` when Git is not configured for a strategy. - -`git.updatePlan` is a pure planner; it never starts Git. `{ "stage": "route", -"branch": { "fullName", "upstream", "isCurrent" }, "worktrees": [{ "path", -"branch", "isCurrent" }] }` returns `blocked`, `fastForwardReference`, or -`inspect` with the `checkout` worktree (or `null` for the request root), the -`expectedBranch`, and whether the user may be asked. `{ "stage": "inspect", -"preflight", "interactive", "explicitSource"?, "strategy"?, "confirmation"? }` -returns `blocked` (`noUpstream`, `localChanges`, `upToDate`, `notFastForward`, -`stateChanged`), `chooseStrategy`, or `pull` with the mode for `git.write`. -The strategy is the user's choice, else the preflight's `configuredStrategy`, -else `ffOnly`; a diverged history that would need `ffOnly` asks when -`interactive` and is refused otherwise. `{ "stage": "defaultStrategy", -"preflight", "fastForwardPossible" }` returns the strategy a Pull dialog -preselects. `shared/fixtures/git/update-plan-v1.json` defines the rules. - -`git.historyWindow` is a pure planner over commit identities in display order. -`refreshPlan` returns the first-page `limit`: with `preserveLoaded` it is at -least the loaded count, so a refresh never shrinks a deep window. `extendPlan` -returns the `extensionLimit` that keeps the previous tail loaded after new -commits appeared at the head. `mergePage` returns the `append` positions of a -page that are not yet in the window and whether `hasMore`, bounded to 5000 -commits. `reconcileSelection` returns the retained `selected` identities in -window order plus `focused` and `anchor`, falling back to the first loaded -commit. `shared/fixtures/git/history-window-v1.json` defines the rules. - -`git.graphProjection` is a pure projection of one loaded history window; it never -starts Git. The request is `{ "commits": [{ "hash", "parentHashes", "decorations" }], -"remoteNames"?, "repositoryCommits"?, "visibleHashes"?, "displayMode"?, -"currentBranch"? }`: `commits` are in Git's child-before-parent order, `remoteNames` -are the remote short names that type a bare remote-tracking decoration, -`repositoryCommits` is the complete repository window that fixes the permanent layout -(ignored unless it is unique and covers every scoped commit), `visibleHashes` applies -a filter (omit it to show every commit), `displayMode` is `compact` (default) or -`expanded`, and `currentBranch` asks for the ancestry of that local branch. Hosts call -it once per loaded window, never per commit, and recompute the whole window when a page -is appended or the history refreshes; lanes depend on every loaded edge, and a head -fragment's color ID is the Java `String.hashCode` of its principal reference name, so a -named branch keeps its color across pages. The response is `{ "version", "rows", -"laneCount", "recommendedLaneCount", "hasMissingParents", "currentBranchHashes" }`. -Each visible row carries `commitHash`, integer `lane` and `laneCount`, a signed -`colorId`, `layoutIndex`, `incomingLaneColors`, `parentEdges` (`id`, `parentHash`, -`targetLane`, `colorId`, `isMissing`, `isDotted`), typed `labels`, and -`printElements` (the up and down half-edges with `position`, `adjacentPosition`, -`colorId`, `isDotted`, `isMissing`, `hasArrow`, `isTerminal`, `targetHash`). Hosts own -pixels, curves, and the mapping from a color ID to a theme color; `colorId` `0` means -an unreferenced fragment. Requests over 20,000 commits fail with `invalid_request`. -`shared/fixtures/git/graph-projection-v1.json` defines the rules and -`shared/fixtures/git/graph-idea/` holds the pinned IntelliJ oracles. - -`git.integrationPreflight` accepts either `reference` or `gitReference` with -`root` and `operation`, where `operation` is `merge`, `rebase`, `cherryPick`, -or `revert`. It returns sorted, de-duplicated `blockingPaths` and -`blocksEntirely`. Merge, cherry-pick, and revert report only dirty tracked paths -that overlap files the operation would write. Rebase reports every dirty -tracked path and sets `blocksEntirely` to true when that set is non-empty. - -`git.conflictMarkers` accepts `{ "root": string }` and returns -`{ "paths": string[] }`. Paths are sorted and de-duplicated staged text files -whose staged content has a line beginning with an opening, closing, or diff3 -conflict marker. A bare -`=======` line is not treated as a conflict marker. - -`git.operationState` accepts `{ "root": string }` and returns `kind`, -`reference`, `step`, `total`, and sorted, de-duplicated `conflictedPaths`. -`kind` is an empty string when no operation is active; otherwise it is `merge`, -`rebase`, `cherryPick`, or `revert`. `reference`, `step`, and `total` are -nullable, and the progress counters are populated only for a rebase. State is -read from Git's own metadata, so operations started outside Lithe are reported. - -`git.diff` accepts `root`, `pathspecs`, optional `reference`, `gitReference`, -`targetGitReference`, or `commit`, plus `emptyTreeBase` for a legacy target -reference whose comparison must begin at the repository's object-format-specific empty tree, -`staged`, `untracked`, `contextLines`, and `ignoreAllWhitespace`, and returns `{ "patch": string, "rows": [], -"hunks": [] }`. Rows contain one-based `oldLine`/`newLine` values where -available, `left`/`right` text, a `kind` (`context`, `changed`, `addition`, -`removal`, or `information`), and an optional `hunkID`. For `context` and -`information` rows both sides carry identical text, so `right` is omitted and -clients must fall back to `left`. Hunk entries contain their header and the -patch text needed for partial apply; rows are not duplicated per hunk, so -clients group `rows` by `hunkID` instead. -The response also carries `hasDecodingLoss`: true when Git's output was not -valid UTF-8 and Core replaced bytes with U+FFFD while decoding `patch`. Such a -patch still renders, but it is not the file's bytes; clients must not write it -back, for example as byte-faithful rollback material. -New reference-tree workflows use `gitReference`; Core validates its full -identity before constructing the diff invocation. When `targetGitReference` is -present, Core validates both complete identities and constructs the two-ref -range. The legacy `reference` field remains available for existing revision and -range comparisons. - -`git.comparison` accepts `root` plus the same `reference` or `gitReference` / -`targetGitReference` forms and returns the deterministically ordered changed -files. `includeUntracked: true` adds untracked worktree files with status `A` -and `isUntracked: true`, deduplicated by path; omitted or false keeps the -previous response. The flag is invalid for a two-reference range. If status -cannot be read, the request fails rather than returning an incomplete result. -See `shared/fixtures/git/comparison-untracked-v1.json`. Platforms must not -construct a two-ref range themselves. -`git.apply` accepts `root`, `patch`, and `mode`; supported modes are `stage`, -`unstage`, `discard`, `restoreIndex`, `worktree`, `restoreIndexCheck`, and -`worktreeCheck`. The two `*Check` modes only test whether the reverse patch -already applies, so Shelf restoration can be retried after a partial failure. -It returns the normal Git process result. `restoreIndex` applies a saved -index patch to both the index and worktree; `worktree` applies only to the -worktree. Pathspecs must be workspace-relative and must not contain absolute -paths or `..` components. A `discard` patch is refused with -`GIT_HUNK_ROLLBACK_UNSAFE` when Git's attributes for any touched path name a -`filter` or `working-tree-encoding`, because those can rewrite bytes the patch -never saw. - -`git.diff` with `includeFileSections` and a complete-file context splits each -file's single hunk into Git-default (3 context line) hunks. Each hunk carries -its own byte-faithful `patch` plus `lineStart` / `lineEnd` (end-exclusive -indices into the file's `lines`); a section that cannot be split yields no -hunks, so no writable hunk is offered. Hosts never build patch text. - -`git.planDiffBlocks` accepts `{root, path, originalPath?, staged?}` and returns -`{token, blocks, worktree, index}`. `worktree` is the HEAD to worktree (or, with -`staged`, HEAD to index) complete-file section and `index` is HEAD to index, -both without patch text. Each block is `{id, checked, indeterminate, canToggle, -canRollback, wholeFile?}`; `id` is `line-` into the section's unified -lines. `token` identifies the read. `git.applyDiffBlock` accepts the same -target plus `{blockId, action, token}` where `action` is `include`, `exclude` -or `rollback`. Core rebuilds the plan under the repository write lease and -refuses with `GIT_DIFF_BLOCK_STALE` when the token no longer matches, -`GIT_DIFF_BLOCK_UNAVAILABLE` for a block that cannot take the action, and -`GIT_HUNK_ROLLBACK_UNSAFE` for a rollback blocked by attributes. -`git.stageGutterChange` accepts `{root, path, originalStart, originalEnd, -modifiedStart, modifiedEnd, originalLines, modifiedLines}` (one-based, -end-exclusive) and stages exactly that change from the original bytes, or fails -with `GIT_GUTTER_CHANGE_STALE` when the index or saved file no longer shows the -compared lines. See `shared/fixtures/git/diff-blocks-v1.json`. - -`git.remotes` returns `{remotes: [{name, url}]}` for fetch entries. `git.tags` -returns `{tags: [{name, objectId, targetId, message, date, isAnnotated}]}`; -names come from full `refs/tags/` identities even when a branch has the same -name, and `targetId` is the dereferenced object when Git reports one. These -commands own Git output parsing and return errors for malformed output. -`git.classifyMetadataChanges` accepts `{context, paths}` with at most 256 paths -per call. The context contains `repositoryRoot`, `gitDirectory`, -`gitCommonDirectory`, optional `workspaceRoot`, and optional `ruleDirectories`. -Each non-empty path is at most 131,068 bytes. Paths use the host's native -semantics and must already have the same resolved identity as the watch roots; -Core performs no IO. The ordered `events` array returns `kind` (`context`, -`ignoreRule`, `metadata`, `ignored`, or `other`) and `indexOnly`. Hosts retain -ownership of native loss flags, watch lifetimes, and workspace visibility; on -classification failure they must conservatively rescan. Native Rust callers can -use the same typed classifier without JSON. The shared fixture is -`shared/fixtures/git/metadata-classification-v1.json`. - -`git.parseCheckoutMetadata` and `git.parseGitdirPointer` each accept `{text}` -of at most 4096 UTF-8 bytes and return `{branch}` or `{path}`, respectively; -the host reads files and resolves relative paths. Examples live in -`shared/fixtures/git/remote-tag-catalog-v1.json` and `checkout-metadata-v1.json`. - -`git.history` accepts `root`, an optional full `reference`, and `limit` (the -core clamps it to `1...5000`). It remains the compatibility command that -combines `git.references` with the first `git.historyPage`. New clients use -`git.references` with `{ "root": string }` and request commits separately with -`git.historyPage` using `root`, optional full `reference`, nullable opaque -`cursor`, `limit`, and optional `order` (`"topo"` or `"date"`). Omitted -`order` preserves the original `git log --topo-order` behavior. `"date"` uses -`git log --date-order`: committer date descending whenever the child-before- -parent constraint permits, independently of the displayed author date. macOS -and Windows Git Log request date order for their pages and repository graph; -other clients that omit the field retain topology order. A cursor is bound to its root, reference, and order; -continuations must repeat the same order. A mismatched order returns -`invalid_request` without consuming the cursor. The portable request example is -`shared/fixtures/git/history-page-date-request-v1.json`. -The first request omits `cursor`; each later request -returns the prior page's `nextCursor`. Core keeps one bounded, backpressured -`git log` stream behind that cursor and clamps the stream to the first 5,000 -commits, so later pages continue traversal instead of replaying earlier commits. -A history page returns `commits`, nullable `nextCursor`, and `hasMore`. Clients -call `git.historyCursorClose` with `root` and `cursor` when abandoning an -unfinished stream, and discard and close a late page when its repository, -selected reference, or owning `operationId` is stale. Core also expires idle -cursors and caps the number of live streams. Commit parents are explicit so -clients can render merge topology without re-parsing Git output. The optional -effective `userName` and `userEmail` returned by `git.references` let clients -implement a stable `me` filter without guessing from recent commits. Each -reference includes `peelsToCommit`; hosts use it to disable commit-only -actions for legal tree/blob tags before the user reaches a failing mutation. -Each local -reference with an upstream also returns numeric `ahead` and `behind` counts -against that fetched remote-tracking reference. A restricted remote fetch refspec -must not hide an explicitly configured `branch..remote` / `merge` relationship -when its conventional remote-tracking ref exists. The reference snapshot resolves -missing metadata using invocation-only Git configuration; it does not change -repository fetch settings, guess tracking from matching names, or fetch remotely. -References without an upstream, -remote references, and tags return zero for both fields. Portable examples are -`shared/fixtures/git/references-response-v1.json` and -`shared/fixtures/git/history-page-response-v1.json`. - -For compatibility, a request that explicitly contains the deprecated numeric -`offset` field still uses the bounded offset implementation and returns -`nextOffset`; it honors the same optional `order`. New clients must omit -`offset`; repository size does not select -between the two protocols. - -`git.historyLocate` accepts `root`, nullable `reference`, nullable opaque -`cursor`, optional `order` (`"topo"` or `"date"`), a complete 40-character -`target` commit hash, `limit` (`1..=500`, default `300`), and `maxPages` -(`1..=100`, default `20`). It reads pages from the platform's current window -cursor until `target` is found, the page budget is spent, or the history ends, -and returns `{ "found": boolean, "commits": GitCommitResponse[], "nextCursor": -string?, "hasMore": boolean, "pagesLoaded": number }`. `commits` lists every -commit read in reading order, including the complete page that contains -`target`, so hosts append them after hash deduplication without leaving a gap -before the returned cursor. A hit stops reading and returns that page's -`nextCursor` and `hasMore`. Exhausted history returns `found: false`, a null -cursor, and `hasMore: false`; a spent budget returns `found: false`, the last -page's cursor, and `hasMore: true` so the host can continue later. A `limit`, -`maxPages`, or `target` outside the contract fails with `invalid_request` -before any Git process starts. Git read failures keep their stable error codes -instead of becoming "not found". Core owns the intermediate stream and only -returns a cursor the host can continue; a failed read releases it. Requests -without a cursor start at the first page and continuations must repeat the same -`root`, `reference`, and `order`. Portable request and response examples are in -`shared/fixtures/git/history-locate-v1.json`. - -`git.repositoryColorAssignments` accepts `{ offset, totalCount, repositoryIds }`. -IDs are the host's already normalized, unique repository identities in the full -ordered workspace list, before worktree visibility filtering. Each request carries -at most 128 IDs and their global offset; IDs are nonempty and at most 4,096 bytes. -Core rejects duplicates within a page and out-of-range offsets with -`invalid_request`. The response contains ordered `{ id, slot }` assignments, -`fallbackSlot` for unknown IDs, and `showColors` for multi-repository views. -Callers must keep pages from the same list generation together, cancel or discard -stale results, and never recompute the slots per row. Color palettes remain native -presentation. See `shared/fixtures/git/repository-colors-v1.json`. - -`git.branchNamePreview` is pure: it never starts Git and only reads the -reference facts the host already loaded. It accepts `rawName` (at most 1,024 -characters; longer input is `invalid_request`), `requireName` (`true` on submit, -where an empty name is an error, and `false` while typing), `references` -(loaded `{ "kind": "local" | "remote" | "tag", "shortName": string }` facts), -and an optional `reference` describing the base reference. The response is -`{ "typingCleanedName": string, "cleanedName": string, "initialName": string, -"error": null | { "code": string, "name"?: string, "branch"?: string } }`. -`typingCleanedName` mirrors IDEA's `GitRefNameValidator` typing cleanup: it -drops characters that cannot appear in a branch refname, drops a leading `.`, -`-`, or `/`, drops one slash of a doubled slash, keeps only the last dot of a -dot run, drops dots next to slashes and `@{` sequences, and replaces space runs -and ASCII control characters with `-`. `cleanedName` is the submit-time form: -the same cleanup plus removal of one trailing `.`, `/`, or `.lock`, trimmed at -the edges. `initialName` is the loaded base reference's short name, or that name -without its first remote segment when the reference is remote; it is empty -without a reference. `error.code` is one of `empty`, `head`, -`clashesWithRemote`, `clashesWithDirectory`, `alreadyExists`, or -`clashesWithBranchPrefix`, checked in IDEA's order; `empty` appears only when -`requireName` is true. The conflict codes carry the candidate `name`, and -`clashesWithBranchPrefix` also carries the existing local `branch` that occupies -one of the candidate's slash prefixes. Refname validity itself stays with -`git check-ref-format` when the branch is created. Portable examples are in -`shared/fixtures/git/branch-name-preview-v1.json`. - -`git.commit` accepts `root` and a revision, returning one `commit` object with -the same fields as a history page entry and a `body` string. `body` is the -message after the subject paragraph (Git `%b`), keeps internal line breaks and -indentation, has trailing whitespace removed, and is empty for a subject-only -message. History pages carry only `subject`; a commit detail view reads the -body on demand with `git.commit`. See -`shared/fixtures/git/commit-lookup-response-v1.json`. -`git.blame` accepts `root` and a workspace-relative `path`; its line numbers -are one-based and author timestamps are Unix seconds. - -`git.lineHistory` accepts `root`, a workspace-relative `path`, the editor -snapshot `content`, a one-based inclusive `startLine`/`endLine` range -addressing that snapshot, and an optional `limit` (default 50, capped at 200; -snapshots above 8 MiB are rejected). The snapshot is mapped onto the pinned -`baseCommit` through an isolated platform-temp comparison, so unsaved edits -stay answerable; the response echoes `baseCommit`, lists `unmappedLines` -(`kind` `new` for provably inserted lines, `unreliable` for rewritten ones), -and returns `commits` newest first with `hash`, `kind` (`commit` or -`merge-first-parent`), `authorName`, `authorTime` (Unix seconds), `subject`, -`pathAtCommit`, optional `previousPath` on renames, `compareBase` (the parent -the metadata diff was taken against; empty for the root commit whose base is -the empty tree), and `relevantRanges` hunks intersecting the traced lines. -Queries walk the first-parent chain only: branch-internal commits of a merge -are not listed separately, pure renames are not listed as content changes, -and `truncated` reports entries beyond the limit. Pure-deletion sides report -the boundary position as both start and end. - -`workspace.search` accepts `maxResults` for a total result cap. Callers that -need separate buckets may also provide `maxFileResults` and -`maxContentResults`; each category is capped independently and the total cap -still applies. - -Search index enumeration skips inaccessible or vanished descendant directories, -logging workspace-relative diagnostic paths without discarding unrelated results. -Workspace-root failures, cancellation, deadlines, and other errors still propagate. -This applies to both the content and file-name indexes. - -macOS Search Everywhere funnel exclusions reuse `hiddenFilePatterns` only on -Search Everywhere requests. They are remembered across popup openings, have no -General Settings entry, and have a separately remembered enable toggle. Editing -happens in a dialog; saving does not enable a disabled rule. They do not affect -sidebar search, project replacement, -Agent completion, or workspace tree visibility. The existing -case-insensitive `*`/`?` matcher applies to a basename or root-relative path (`*` -can span `/`). A trailing `/` explicitly marks a root-relative directory glob: -match it before descending into a directory and against ancestors of directly -reported file updates. A leading `**/` stands for zero or more folders in the -matcher itself, so `**/dist/` covers a root-level `dist` as well as nested ones -(no client has to add the root form). An entry ending in -`/*` or `/**` is the same folder rule as one ending in `/`, so `.lithe/*` hides the -folder and everything below it rather than leaving an empty folder; ordinary file globs -and plain names (such as `.lithe`) retain their file-only semantics. macOS hides the -workspace-root `.lithe` folder by default with the built-in entry `.lithe/**`, like IDEA's -`.idea`; deleting that line (stored as `!.lithe/**`) shows it again. The macOS file -watcher is the one place that does not follow the hiding rules for the workspace-root `.lithe` -folder: hiding it removes it from the tree and listings, but its file events are still -delivered (except built-in noise such as `.lithe/run/local.json`) because editing its JSON -files reloads project services. Empty user exclusions preserve the -normal visibility rules. Search settings changes invalidate only the search -cache, not the workspace tree. Each root retains at most one content and one -names-only rule variant; superseded allocations are released when active -requests finish. Watcher updates refresh the retained variants. -Agent file completion uses project visibility and leaves generated names disabled; -only the Search Everywhere UI explicitly enables them. Directory-versus-file -matching examples are shared in `shared/fixtures/search/exclusions.json`. - -`workspace.searchEverywhere` takes an optional `context: { openPaths, recentPaths }` (paths relative to `root`, `/` separators, recent first). It only breaks ties between equal file-name matches (open first, then recent by recency) and scales the returned `matchingDegree` by 1024 plus the tie-break, using the same code as `workspace.rankNames`; omit it and results are unchanged (fixture `shared/fixtures/search/search-everywhere-context-v1.json`). - -`workspace.searchEverywhere` uses the same query options and visibility fields, -and additionally accepts `maxSymbolResults` and optional -`includeGeneratedFileNames` (default `false`). Ordinary name queries match -case-insensitive contiguous fragments and camel/word humps, rather than arbitrary -subsequences. Each file/type/symbol bucket is ranked before its requested cap; -the total cap still applies to the file, type, symbol, then content buckets. -A zero `maxFileResults` skips file-name result collection. Text-only queries use -a ready content index, or a names-only inventory with the content visibility rules -and the existing exact matcher while the content index is cold or warming. -Symbol queries still require the content/symbol index. All three zero caps produce -no index builds. Omitted caps retain their -existing defaults. macOS forwards the selected workspace sources through these -existing caps: Actions-only stays local, Text-only requests contents, Files and -Agent completion request names, and Classes/Symbols share the symbol index. -Search module activation does not eagerly build a content index. - -Optional `pageSize` (1–200 per source), `cursor`, and `resultKinds` -(`file`, `type`, `symbol`, `content`) enable bounded keyset pages. The response -adds nullable `nextCursor`; absent/null means exhausted. macOS uses 50 per source -and loads another page near the scroll edge, with no 200-result total ceiling. -The opaque cursor binds the workspace/remote identity, query, options, source caps, -visibility rules and page size; clients must resend the same request options. -Each source retains at most pageSize + 1 ranked candidates, using the extra item -to detect exhaustion. No all-matches array or retained search session is created. -Name/symbol continuation scans the existing index to select the next ranked page; -text pages follow path/line order and stop after the lookahead match. Pages observe -the live index: edits inserting a match before the cursor require a fresh query. -Requests without pageSize retain the legacy capped response and schema. -Optional `includePathPatterns`, `excludePathPatterns`, and `pathFilterPrefix` -filter paths before the page limit. Patterns are case-insensitive glob fragments: -`*` excludes separators, `**` crosses them, and `?` matches one non-separator. -When `includeContentRanges` is true, content matches also return the original -`sourceLine` and `contentMatchRanges` in UTF-16 units; existing callers keep the -trimmed `preview` and do not pay for those fields. - -Observed `workspace.searchEverywhere` calls may emit -`{ "type": "searchResults", "operationId": "…", "results": { "matches": […] } }` -on the existing request event channel. Each event replaces the previous snapshot; -never append its matches. File-name candidates are searched and published before -building the content/symbol index. The first candidate is sent immediately; -subsequent name/type/symbol candidates are merged for approximately 100 ms, -with a flush at source boundaries. Each snapshot keeps the same ranked per-source -and total caps as the final response, so a later better candidate may replace an -earlier one. Content matches and Git ignore metadata arrive with the authoritative -final response. A partial snapshot's absent `isIgnored` means unknown, not false. -Callbacks remain request-scoped, use the existing cancellation registration, and -finish before the final JSON returns. Calls without an observer retain the same -complete response schema. Cold name-index enumeration and pending index update/ -invalidation barriers still precede candidates; this is not a 100 ms end-to-end -latency guarantee. - -macOS consumes replaceable snapshots with a newest-only buffer, checks query -generation and cancellation for every update, and keeps selection by result ID -when ranking changes. Closing/resetting or replacing a query cancels its Core -operation; late callbacks cannot overwrite the next query or its loading state. -First-page snapshots remain replaceable; completed continuation pages append with -ID deduplication. macOS keeps each loaded page's order, including actions after the -first names page, so later pages do not insert above the visible viewport. Repeated -cursors or pages with no new IDs stop loading. Failure preserves rows/cursor and -pauses automatic loading until Retry. The input debounce remains 180 ms. Windows -continues to consume the legacy final response; this change does not claim -incremental or automatically paged Windows presentation. -Basename matches rank above relative-path fallback matches, even when the query -contains no slash (for example `src` matches `src/Foo.swift`). Path-only matches -have `matchingDegree: -1` and no basename ranges; literal basename hits use degree -zero when there is no fuzzy degree. See `shared/fixtures/search/path-fallback.json`. - -Name matches include optional `matchingDegree` and `nameMatchRanges` entries -`{ start, length }`, measured in UTF-16 units in the displayed basename or -`symbolName`. Clients must not recompute different highlight fragments. Path-qualified -queries may have no basename fragments. Explicit case/whole-word/regex options and -content matches keep their literal search semantics. -Case-insensitive contiguous fallback preserves whole-string Unicode lowercase -matching, including expansions such as `İ` to `i` plus a combining dot. A partial -match inside an expansion highlights the complete original character, not folded -offsets. See `shared/fixtures/search/unicode-contiguous.json` (also used by Agent -completion regressions). - -Returned Everywhere matches additionally expose optional `isIgnored`, resolved -by one read-only Git `check-ignore --stdin -z` call for the bounded result set. -`true` means ignored; `false` means Git answered but did not ignore this path; -absence means Git is unavailable, the workspace is not a repository, or the query -failed. Tracked files are never inferred ignored from a matching ignore pattern. -Git owns rule precedence, nested rules, negations, info/exclude and global excludes. -Clients may use this status for filename foreground; it does not change matching, -ranking, UTF-16 match backgrounds, or visibility. macOS uses the Islands editor -scheme's ignored-file color; Windows tolerates the optional status but does not -currently render this foreground. - -`includeGeneratedFileNames` opts into a separate in-memory names-only index: -built-in build/dependency directory exclusions (including `.build` and `target`) -do not suppress names, even when callers pass the same default exclusions. -Git metadata and nested worktrees remain excluded; custom directory names and -file/path globs still apply. It does not enable generated-file content or symbol -indexing and does not change `workspace.search`, tree, watcher, or replacement -visibility. Names share index invalidation and reported file updates; changes -inside unwatched generated directories require workspace/index refresh. No index -files or resources are written to disk. macOS Search Everywhere requests pages of -50 matches per source; legacy synchronous consumers retain their requested caps. -Java type and method results still use the existing syntax index and include a -one-based line, `symbolName`, and source line in `preview`; language-provider -workspace-symbol integration and external-library search are not implied. -The shared name/range examples are in `shared/fixtures/search/name-matching.json`. - -`workspace.replacePreview` accepts `root`, `query`, `replacement`, the same -query options, optional workspace-relative `paths`, optional `textOverrides` -keyed by relative path, and visibility fields. It returns `{ "files": [] }` -where each file contains replacement matches and the complete -`replacementText` to write. The command never writes files; callers can record -history before using `file.write` for the selected files. - -`workspace.replaceText` accepts a host-captured `text`, `query`, `replacement`, -the same case, whole-word and regex options, and an optional one-based `{line, -column}` UTF-16 `from` position. It returns `{text, count}` after replacing all -matches or the first match at or after that position. Matching is per line, and -the command never writes. The host must verify the captured workspace and buffer -or disk identity before publishing a result. `workspace.searchTextBatch` applies -the same matcher to at most 32 host-read `{path, text}` snapshots (at most 2 MiB -per file and 16 MiB in total) and returns -unmodified paths, matching lines, UTF-16 ranges and requested surrounding lines. -The host owns provider I/O and controls continuation between batches. -Examples for these commands and filtered content pages live in -`shared/fixtures/search/text-snapshot-v1.json`. - -`lsp.applyTextEdits` accepts `{ "text": string, "edits": [] }`, where each edit -has an LSP range with zero-based `line` and UTF-16 `utf16Column` fields plus -`newText`. Ranges are validated and overlapping edits return -`invalid_request` with details `overlappingEdits`; invalid positions return -details `invalidRange`. Successful responses return `{ "text": string }`. - -Windows workspace edits and formatting use this command instead of calculating -text offsets locally. The cross-platform cases in -`shared/fixtures/lsp/text-edits-v1.json` use LSP wire `character` fields; the -Windows adapter maps those fields to Core `utf16Column` without changing their -zero-based values. Core retains its existing normalization: columns beyond a -line clamp before its line ending, and positions inside a UTF-16 surrogate pair -resolve to the character start. Missing/negative lines, negative columns, -reversed ranges and overlapping replacements are rejected. - -The line index and batch rules are shared with `editor.planTextEdits`: `\r\n`, -`\n` and a lone `\r` each end one line (as in the LSP specification), and a -batch is applied in a stable order by start, end and then caller order. -Insertions at the same position keep the caller's order, and an insertion at -the boundary of a replaced range is adjacent regardless of where it appears in -the batch. - -`lsp.plainSnippet` accepts `{ "value": string }` and returns `{ "text": string }` -after removing LSP tab stops and replacing simple placeholder defaults such as -`${1:name}` with `name`. - - -`editor.planTextEdits` accepts `{ text, edits, positions? }`. Each edit is -`{ range: { start, end }, text }` with one-based `line` and one-based UTF-16 -`column`; `positions` lists extra one-based positions that must exist (for -example reported selection endpoints). It returns `{ lineEnding, -lineSeparator, edits, rejection }`. `lineEnding` is `lf`, `crlf`, `cr` or -`mixed`; `lineSeparator` is the text's first terminator, LF when there is -none. On success `edits` is the stable application order with `index` (caller -order), `utf16Offset`, `utf16Length`, `text` (line breaks rewritten to -`lineSeparator`) and `normalizedText` (LF), and `rejection` is null. Unlike -`lsp.applyTextEdits`, positions are strict: a missing line, column zero, a -column past the line content or a position inside a surrogate pair rejects the -batch. A rejected batch returns empty `edits` and `rejection: { reason, -editIndex, otherEditIndex }` with `reason` `rangeOutOfBounds`, `reversed`, -`splitsSurrogatePair` or `overlappingRanges`, or `{ reason, positionIndex }` -for a failed extra position. An empty batch still reports the line ending. -Malformed payloads return `invalid_request`. The host keeps document versions, -undo grouping and the editor surface. See -`shared/fixtures/editor/text-edit-plan-v1.json`. - -`lsp.planWorkspaceEdit` accepts `{ platform, workspaceRoot, changes, -openDocuments? }`, where `changes` maps a file URI or absolute native path to -its text edits and `openDocuments` lists `{ path, isReadOnly? }` for open -editor documents. It returns `{ rejection, targets }`. Every target must be a -workspace file; otherwise `rejection` is `{ code: "outsideWorkspace" | -"readOnlyDocument", path }` and `targets` is empty. On success `rejection` is -null and each target is `{ path, relativePath, effect, edits }` with `effect` -`writeFile` (closed files first) or `updateDocument` (open documents), each -group ordered by `relativePath`; keys naming one file merge. The host reads and -writes files, owns buffers, stale-input checks and rollback, and applies each -target's edits with `lsp.applyTextEdits`. See -`shared/fixtures/lsp/workspace-edit-plan-v1.json`. - -`lsp.classifyNavigationTarget` accepts `{ platform, workspaceRoot?, -resolvedWorkspaceRoot?, path, resolvedPath?, sourceLanguageID?, languageID?, -resolvedLanguageID?, isReadOnly? }`; the host supplies symlink resolution and -the path-to-language lookup as facts. It returns `{ classification, -isReadOnly }` where `classification` is `workspace`, `externalReadOnly` (a -source file of the language that produced the jump, opened read-only) or -`rejected`. See `shared/fixtures/lsp/navigation-target-v1.json`. - -`editor.parseNavigationInput` accepts `{ text }` and returns `{ target }`. -`target` is null for invalid input, otherwise `{ line, column, selectsWholeLine }` -contains zero-based line and UTF-16 column. One-based positive decimal line and -optional column may have surrounding horizontal whitespace; line terminators, -extra characters, zero, negatives and values above JavaScript's maximum safe -integer are invalid. Text over 128 UTF-8 bytes is invalid. A line-only input -selects its content without the terminator; an explicit column places the caret. -Hosts clamp against the current document, not an old snapshot. See -`shared/fixtures/editor/navigation-input-v1.json`. - -`editor.navigationHistory.reduce` accepts `{ state, event }` and returns -`{ state, destination }`. `state` is `{ back, forward }`, each ordered oldest -first, and each location is `{ document, line, column, context? }`. Identity is -`document`, `line` and `column`; coordinates are opaque to Core and `context` is -platform data (pane, scroll, read-only presentation) carried unchanged. Events -are `record { departure, destination? }`, `back { current }` and -`forward { current }`. Recording pushes the departure unless it equals the -destination and clears the forward branch; a repeated position replaces the top -entry so the newest context wins. Back and forward discard entries equal to the -live `current` location, return the next distinct one as `destination`, and -push `current` onto the opposite stack so caret movement since the last jump -survives a return trip. Each stack keeps the newest 100 entries. Platforms -decide which gestures record history and restore their previous state when the -destination cannot be opened. See -`shared/fixtures/editor/navigation-history-v1.json`. - -`editor.lineEdit` applies one deterministic line-level transform. All offsets -are UTF-16 code units so both hosts can feed the result straight into their -text engines. The payload is `{ "operation": "toggleLineComment" | -"duplicateLine" | "deleteLine" | "moveLineUp" | "moveLineDown" | "copyLineUp" | -"copyLineDown", "source": string, "selectionStart": 0, "selectionLength": 0, -"commentToken": "//" }`. `selectionStart` and `selectionLength` are clamped -into the document. `commentToken` is required by `toggleLineComment` and -rejected with `invalid_request` otherwise. The response is -`{ "applied": true, "text": "...", "replacedStart": 0, "replacedLength": 9, -"selectionStart": 8, "selectionLength": 0 }` where `text` replaces -`[replacedStart, replacedStart + replacedLength)` and `selection` is the range -to restore. `applied: false` with every other field omitted marks a legitimate -no-op such as moving the first line up; callers must leave their text view -unchanged and must not consume the keyboard shortcut. - -`editor.lineCommentToken` accepts `{ "identifier": "py" }` (case -insensitive; the identifier may be a file extension, a file name including -dotfiles such as `.env`, or a language id — extensions, dotfile basenames, -and language ids share one table) and returns `{ "token": "#" }` or -`{ "token": null }` for file types without a line comment token. - -macOS consumes both commands today. Windows still uses its local TypeScript -implementations (`comment-toggle.ts`, `line-operations.ts`) and is expected -to adopt the same contract in a follow-up change; the fixture pins the -canonical behavior for that migration. Deterministic cases are pinned by -`shared/fixtures/editor/line-edit-v1.json`. - -`network.proxyPolicy` normalizes the stored proxy settings into the policy a -network stack must apply. It accepts `{ "mode": "system" | "direct" | -"custom", "proxyType"?: "http" | "socks5", "host"?: string, "port"?: number, -"username"?: string, "password"?: string, "passwordIdentity"?: { -"proxyType": "http" | "socks5", "host": string, "port": number, -"username": string }, "exclusions"?: string[] }` (`port` must fit in 16 bits, -otherwise the request is rejected with `invalid_request`) and returns -`{ "policy": "system" | "direct" | "custom", "proxyType", "host", "port", -"username", "password", "exclusions", "configured" }`. - -An optional `passwordIdentity` binds a restored password to its saved proxy -type, host, port and username; a mismatch removes the password. Host matching -is ASCII case-insensitive after trimming; usernames are case-sensitive after -trimming. Omit the identity only for a password explicitly entered for this -candidate, never for a restored secret. Hosts persist the identity together -with the secret in the OS credential vault, not as independently mutable -preferences. Legacy unscoped saved passwords require re-entry rather than -being rebound to the current endpoint. - -Hosts and usernames are trimmed, empty exclusion entries are -dropped, and passwords keep every character. A custom server without a host -or port normalizes to `policy: "system"` with `configured: false`; system and -direct never carry credentials, so hosts can forward the plan to their network -stack without a second credential-scoping decision. Deterministic cases are -pinned by `shared/fixtures/network/proxy-policy-v1.json`. - -The `debug.*` commands are the shared Debug Adapter Protocol boundary. Rust -owns DAP framing, request sequences, response correlation, initialization and -execution state, deterministic breakpoint sets, and normalized thread, stack, -scope, variable, evaluation, output, stop, continue, and termination events. -Platforms own adapter discovery, JDT LS activation, sockets or process pipes, -native process termination, persistence, and UI rendering. - -`debug.validateAdapterEndpoint` accepts exactly `{ host, port }`. `host` is a -bare IPv4, unbracketed IPv6, or DNS name, not a URL, authority, credential, -path, or scoped address; `port` is an integer from 1 through 65535. It returns -`{ host, port, remote }`, preserving the input. `localhost` (case insensitive), -127.0.0.0/8 and `::1` are loopback; every other spelling requires remote -consent, without resolving DNS. Invalid inputs return `invalid_request`. -Compatibility cases live in `shared/fixtures/debug/adapter-endpoints-v1.json`. -The platform obtains approval before connecting a non-loopback endpoint, once -per connection with no remembered approval, and warns that plain TCP provides -neither authentication nor encryption. This endpoint is the **IDE-to-adapter** -address, not a `targetBindings.connection` debuggee address. - -The macOS launch envelope may carry optional `adapterEndpoint: { host, port }` -beside `arguments`. Its session manager selects an already-running DAP server -instead of starting a local adapter. Missing platform support fails without a -local fallback. This host-only field is not forwarded as DAP arguments: Core's -launch configuration ignores it. `request` still independently chooses `launch` -or `attach`. The provider's language-server port source remains loopback-only. -Closing the byte stream never terminates the external server, shared language -server or user-managed tunnel. DAP disconnect retains its request-specific -ownership: an `attach` sends `terminateDebuggee: false`, while a `launch` can -terminate the debuggee it launched. On user stop, the TCP host makes a -bounded best-effort drain of queued frames (including disconnect) for up to one -second before closing; this is local write completion, not a remote acknowledgement. -Failure and explicit transport abort close immediately. There is no automatic reconnect or request -replay. Proxy/tunnel implementations and plugin `tcpPort` / `tcpAnnounced` -process hosting are not enabled by this API. - -The `debug.transport.*` commands hold the lifecycle rules of that byte stream -so every platform network layer shares one rule set. They are separate from the -DAP session state: Core never opens a socket, resolves DNS, reads a clock or -sees the bytes. The platform keeps the socket, the DNS and system timers, and -the queued frames; only byte counts cross the JSON boundary. - -`debug.transport.policy` ignores its payload and returns `{ limits, -initializationMilliseconds }`. `limits` holds `discoveryMilliseconds` (10000, -endpoint discovery such as a cold language-server start), `connectMilliseconds` -(10000), `writeMilliseconds` (10000, one stalled write, never the length of a -session), `bufferedBytes` (8 MiB), `bufferedWrites` (1024) and -`drainMilliseconds` (1000). `initializationMilliseconds` is the connect budget -plus 10000, the window a DAP `initialize` round trip gets, so a session never -gives up before its transport does. - -`debug.transport.handle` accepts exactly `{ transportId, event }` and returns a -step `{ generation, phase, outcome, effects }`. `transportId` is a host-chosen -non-empty identifier of at most 512 bytes. Only a `start` event creates a -transport. A callback for an unknown or released one is `ignored`, and `send` -to it is `rejectedNotRunning`. `event.type` is one of: - -- `start { limits? }` begins a lifecycle; `limits` overrides any of the six - defaults with an integer from 1 through 2147483647, otherwise - `invalid_request`. A repeat while running is `ignored`. A `start` while the - previous lifecycle is draining replaces it. -- `send { bytes }` queues one frame of that size. The host keeps the bytes in - first-in, first-out order. An empty frame is accepted and queued as nothing. -- `stop {}` is a user cancel: silent teardown, no termination. -- `finishSendingAndStop {}` flushes queued frames of a ready stream for at most - `drainMilliseconds`, then closes silently; with nothing queued or before the - stream is ready it closes at once. While draining, new `send` is - `rejectedNotRunning`, received data is `ignored` and any failure is silent - because the owner already released its session. -- `endpointResolved { generation, host, port }`, `connectionReady`, - `dataReceived`, `peerClosed`, `failed { message }`, `writeCompleted { - writeId }` and `timerFired { timerId }`, each carrying the `generation` the - host captured when it started the work being answered. `port` is a signed - integer so that an out-of-range provider value fails the transport - (`invalidEndpoint`) instead of the request. - -Every event field is checked strictly: an unknown event, an unknown field or a -missing field is `invalid_request`. - -`generation` rises whenever outstanding work is invalidated (a start, a finish, -a stop). A callback whose generation is not the live one, or that arrives in -the wrong phase, is `ignored`. Timer and write ids are unique per transport and -never reused, so a timer the host failed to cancel and a write completion from -a replaced write are `ignored` too. `phase` is `stopped`, `discovering`, -`connecting`, `ready` or `draining`. `outcome` is `applied`, `ignored`, -`rejectedNotRunning` or `rejectedBufferLimit`. The last one means the queue went -over its byte or count budget: Core has already failed the transport and the host -rejects that one `send`. - -`effects` is an ordered list the host runs top to bottom: - -- `discoverEndpoint` asks for the endpoint and reports `endpointResolved` or `failed`. -- `armTimer { timerId, purpose, afterMilliseconds }` and `cancelTimer { timerId }`. - `purpose` is `discovery`, `connect`, `write` or `drain`. The host reports - `timerFired` when an armed timer elapses. -- `connect { host, port }` opens the socket; `port` is already 1 through 65535. -- `write { writeId, bytes }` sends the oldest queued frame, which has that size, - and reports `writeCompleted` or `failed`. At most one write is in flight. -- `deliverData` forwards the received bytes to the owner. -- `close` cancels pending discovery, unhooks and stops the socket and drops - queued frames. -- `reportFailure { reason, message? }` shows the failure on the owner's error - output. `reason` is `startupTimedOut`, `writeTimedOut`, `bufferLimit`, - `invalidEndpoint` or `host`. The platform owns the localized text of the first - four; for `host` the message is the host's own upstream diagnostic, echoed - back unchanged. -- `notifyTermination { exitCode }` ends the owner's session: 0 for a clean peer - close, 1 after a failure. It comes last, after `reportFailure`. - -A host that re-enters Core while it runs a step's effects, for example an error -observer that restarts the transport, compares the live generation with the -step's and abandons the remainder of the older step. `debug.transport.release` -accepts `{ transportId }` and returns `{ released }`; hosts call it after `stop` -once they dropped the socket. Releasing a registration resets its generation, -timer and write counters. A host that restarts after releasing Core state must -use a fresh `transportId` and reject callbacks from the previous registration -before dispatching them or touching native timer handles. Host-side Core call -failures must tear down native resources for `send` as well as callback events; -an error observer restarting the stream invalidates the old termination too. -Scripted scenarios, with the exact steps expected, -live in `shared/fixtures/debug/transport-lifecycle-v1.json`; platform adapter -tests can replay them. - -`debug.createSession` accepts `{ sessionId, adapterId, rootPath, -supportsRunInTerminalRequest, disabledCapabilities? }`. -`disabledCapabilities` carries the plugin adapter's `capabilities.disabled` -from the launch plan; Core forces those DAP capabilities off in the session's -published capabilities, and a host that omits the field disables nothing. It does not -open a socket or launch a process. It returns a session update in -`initializing` state with an ordered `outboundFrames` array. Each frame is a -complete Content-Length-framed byte sequence encoded as base64. Every Debug -command returns the same update shape: `{ sessionId, state, outboundFrames, -events }`. The platform writes frames in array order and feeds received chunks -back through `debug.receive` as `{ sessionId, dataBase64 }`; partial and -consecutive messages are buffered and reduced in Rust. - -When `supportsRunInTerminalRequest` is true, the initialize frame advertises -the native host's terminal capability. An adapter `runInTerminal` reverse -request becomes a deterministic `runInTerminalRequested` event containing a -Core-generated `requestId`, terminal kind, title, working directory, ordered -argument vector, sorted environment changes, and shell-interpretation flag. -The platform launches the process through its PTY/ConPTY adapter and calls -`debug.runInTerminalResponse` with `{ sessionId, requestId, success, processId?, -shellProcessId?, message? }`. Core validates process identifiers, emits the DAP -response, ignores duplicate or expired completions, and fails pending terminal -requests when the session disconnects. The shared compatibility cases are in -`shared/fixtures/debug/run-in-terminal-v1.json`. - -`debug.launch` accepts an `operationId` and a language-neutral configuration -containing `name`, request kind (`launch` or `attach`), provider arguments, and -optional portable `steppingFilters`. -Test launches are not a Core command: a debug adapter plugin resolves test -selections to launch arguments in its own backend and submits them through -`debug.launch` like any other configuration. -Launch submitted during initialization is retained until the initialize -response. Core projects the stepping filters into the launch argument the -adapter declared in its `stepFilters` feature unless the provider arguments -already contain an explicit value; an adapter without that declaration never -receives invented launch arguments. -`debug.steppingFilters` accepts `{ adapterId, filters? }`; omission of `filters` -returns an unfiltered policy, while a supplied value is trimmed, -sorted, de-duplicated, and validated before persistence or launch. Omitted -fields inside a supplied value are empty or false, so adapters never inherit -another adapter's policy. Adapter defaults come from the plugin's declared -debug-adapter defaults, and class patterns are passed through to the adapter -unchanged, so an adapter may use its own placeholder and wildcard syntax. -The portable cases are in -`shared/fixtures/debug/stepping-filters-v1.json`. - -Normalized stack frames include `isFiltered`. Core derives it from the active -class filters using the DAP frame name, source path, presentation hint, and -session root. This classification is presentation metadata only: Core returns -the complete ordered stack, while native UIs may collapse consecutive matching -frames and must allow users to expand them. `debug.setBreakpoints` accepts -one-based line and optional column, -enabled state, condition, hit condition, and log message values. Rust sorts and -de-duplicates the complete source set, retains disabled entries without sending -them to the adapter, waits for the DAP `initialized` event, then sends all -sources in deterministic path order followed by `configurationDone` when the -adapter supports it. This allows native products to mute or restore breakpoints -without maintaining a second protocol representation. - -`debug.setExceptionBreakpoints` accepts adapter-defined filter identifiers, -enabled state, and an optional condition. Rust trims, sorts, and de-duplicates -the complete selection, retains disabled filters without sending them, and uses -DAP `filterOptions` only when the adapter negotiated that capability. Before a -native client has configured a selection, Rust adopts the adapter's declared -defaults so the first `initialized` flow sends exception filters before source -breakpoints and `configurationDone`. - -`debug.setFunctionBreakpoints` accepts a method or function name, enabled -state, condition, and hit condition. Rust retains the complete sorted set, -omits disabled entries, and sends DAP `setFunctionBreakpoints` before source -breakpoints only when the adapter negotiated function-breakpoint support. - -Data breakpoints use DAP's required two-step flow. The native client first calls -`debug.dataBreakpointInfo` with the selected variable name plus its parent -`variablesReference` and current frame. Rust Core correlates the response by -`operationId` and returns the adapter-owned `dataId`, display description, -allowed access modes, and `canPersist`. The client then calls -`debug.setDataBreakpoints`; Core keeps the complete deterministic set, omits -disabled entries, and sends access type, condition, and hit count only when the -adapter negotiated data-breakpoint support. Native clients must discard IDs -whose `canPersist` is false when the debug session ends. - -`debug.setInstructionBreakpoints` replaces one session's instruction (address) -breakpoints. Each entry carries an opaque `instructionReference` (the address -string the adapter reported, never a JSON number, because a 64-bit address can -exceed the JavaScript safe integer range), an optional byte `offset`, `enabled`, -`condition`, and `hitCondition`. Core validates the reference text, sorts and -deduplicates by reference and offset, keeps the set in the session, and sends DAP -`setInstructionBreakpoints` only after the adapter advertised -`supportsInstructionBreakpoints` and sent `initialized`. Clients keep the set per -session and never persist or replay it: an address is only valid for one run of -one process. - -`debug.execute` accepts an optional `granularity` of `statement`, `line`, or -`instruction` on `next`, `stepIn`, `stepOut`, and `stepBack`. Core forwards it as -the DAP `granularity` argument only when the adapter advertised -`supportsSteppingGranularity`; otherwise it omits the field and the adapter steps -by its default unit. Clients use `instruction` while a disassembly view is open. - -`debug.inspect` also accepts the kinds `disassemble` and `readMemory`. Both take -an opaque `memoryReference` and are rejected unless the capability snapshot -reports them supported (`adapter` and registered extension and `authorized`) and -the session is paused. `disassemble` additionally takes `offset` (bytes), -`instructionOffset` (negative asks for instructions before the reference), -`instructionCount`, and `resolveSymbols` (default true), and returns -`instructions` with `address`, `instructionBytes`, `instruction`, an optional -`symbol` on the first instruction of a symbol, and an optional `sourcePath` and -`line`. `readMemory` takes `offset` and `count` and returns `address`, -`unreadableBytes`, and base64 `dataBase64`, like DAP. Core never does address -arithmetic and never opens `writeMemory`: reading is the only memory operation, -and writing would need its own authorization. Both results are tied to the -`stopGeneration` they were requested in, so a late reply after the debuggee -resumed is dropped as stale. - -A stack frame without debug info has no usable file or line. When the adapter -sends neither a source path nor a `sourceReference`, Core reports -`line` 0 and no `sourcePath` for it, and carries the adapter's -`instructionPointerReference` so clients can anchor the disassembly on the frame -instead of showing a made-up file or line 1. A scope whose DAP -`presentationHint` is `registers` is passed through with that hint; the host has -no register table of its own, so register names, groups, and values are the -adapter's. The compatibility cases are in -`shared/fixtures/debug/projection-v2-examples.json`. - -`debug.setVariable` accepts the selected variable's parent `variablesReference`, -name, and replacement text. Core permits mutation only while paused and after -the adapter advertises `supportsSetVariable`, then returns the adapter's -normalized replacement value and optional type through the caller's -`operationId`. - -`debug.execute` covers continue, pause, step over, step in, step out, step back, -restart, terminate, and capability-gated single-thread execution. Rust Core rejects stepping unless the session is paused -and a thread is selected, and gates step back, restart, and terminate against -the adapter capabilities negotiated during initialization. Restart and -terminate are session-level requests and never receive a stale `threadId`. -Single-thread pause, continue, and stepping preserve the paused session when -the adapter reports that other threads remain stopped. - -`debug.cancelOperation` removes the matching pending request before emitting a -terminal failure, so a late adapter response cannot mutate current UI state. If -the adapter advertises `supportsCancelRequest`, Core also sends DAP `cancel` -with the original request sequence. Native hosts own monotonic deadlines and -invoke this command with `cancelled` or `timedOut`; the macOS reference product -uses a bounded 10-second deadline for interactive inspections and mutations. - -Smart step into and run to cursor keep DAP's target lookup explicit. Clients -use `debug.inspect` with `stepInTargets` and a frame, or `gotoTargets` with a -source path and one-based cursor coordinates. Core normalizes the returned -targets and correlates them to the caller's operation. The selected target is -then passed as `targetId` to `debug.execute` using `stepIn` or `goto`; both -flows are rejected unless the adapter advertised the matching capability. - -The successful DAP initialize response emits a normalized `capabilities` event. -It includes conditional, hit-count, log, function, data, and exception -breakpoint support; variable mutation; restart and terminate requests; step -back; exception information; request cancellation; single-thread execution; -step-in targets; goto targets; console completions; and ordered exception filters. Native UIs -must treat capability state as unknown until this event arrives and hide or -disable unsupported actions after negotiation. - -`debug.execute` correlates continue, pause, next, step-in, and step-out to the -caller's `operationId`. `debug.inspect` supports `threads`, `stackTrace`, -`scopes`, `variables`, `evaluate`, and capability-gated `exceptionInfo`; -required thread, frame, variable reference, and expression fields are validated -before a request is emitted. A `variables` inspection may additionally carry -`variableFilter` (`named` or `indexed`), zero-based `start`, and positive -`count`; Core maps them to DAP `filter`, `start`, and `count` and rejects those -fields for every other inspection kind. Normalized scopes, variables, -evaluations, and variable-mutation results include non-negative -`namedVariables` and `indexedVariables` counts, using zero when the adapter -omits or reports an invalid negative value. The compatibility cases are in -`shared/fixtures/debug/variable-paging-v1.json`. - -An `evaluate` inspection may carry `context` (`watch`, `hover`, `repl`, -`clipboard`, or `variables`) and defaults to `watch`. Native consoles send -`repl`, which adapters such as lldb-dap use to run their own debugger commands -(`bt`, `p total`) and answer with plain text in the evaluation result. Other -inspection kinds ignore `context`; Core rejects any value outside that list. - -A `completions` inspection asks the adapter for Debug Console proposals. It -carries the typed text in `expression`, an optional UTF-16 caret `column` that -counts from 1 and defaults to the end of the text (Core rejects a caret outside -the text), and an optional `frameId`. It is rejected unless the adapter -advertised `supportsCompletionsRequest`. The result lists items with `label`, -`text` (the label when the adapter sends none), optional `detail` and `kind`, -and an optional `start`/`length` range of the typed text the item replaces, in -zero-based UTF-16 units. Adapters such as lldb-dap send no range; the client -then replaces the word ending at the caret. Items without a label are dropped. - -A normalized stack frame carries `sourceReference` when the adapter serves the -frame's source itself (a positive DAP `source.sourceReference`, for example -lldb-dap's `dyld\`start`). Such a frame has no file the editor can open, so -native clients must not treat its `source.path` as a workspace file. - -Exception information is available only while -paused and normalizes the exception type, description, break mode, optional -stack trace, evaluation name, and nested exception details. The Java adapter -currently supplies the type, description, and break mode but no expandable -exception object reference, so native clients continue to inspect ordinary -frame scopes for local state. -Terminal operation events are exactly one of `operationCompleted` with a typed -result or `operationFailed` with the adapter command and safe message. Other -ordered events are `stateChanged`, `initialized`, `output`, `stopped`, -`continued`, `terminated`, and `breakpoint`. Source coordinates are one-based. -Source breakpoint confirmations include optional `requestedLine` alongside the -adapter-resolved `line`. Core retains their association by adapter breakpoint ID, -so later location-free `breakpoint` events preserve both the requested anchor and -resolved location. Responses to superseded per-file sets are discarded. Platforms -persist the requested anchor and may display the resolved line; placement alone -does not imply that bytecode was bound or that execution will suspend there. -The correlation fixture is `shared/fixtures/debug/breakpoint-binding-v1.json`. -The compatibility flow is captured in -`shared/fixtures/debug/dap-session-v1.json`; exception normalization cases are -captured in `shared/fixtures/debug/exception-info-v1.json`. - -`debug.disconnect` emits the protocol handshake and enters `terminating`. -Core derives DAP `terminateDebuggee` from the session's request kind: `launch` -uses `true`, while `attach` and a session stopped before either request use -`false`. This prevents a remote detach from killing a JVM the IDE does not own. -The compatibility cases are in -`shared/fixtures/debug/disconnect-policy-v1.json`. The platform keeps the -socket or process alive long enough to flush the frame, then closes it and -calls `debug.destroySession`. A session allocates no process, socket, timer, or -background task, and no session exists until Debug is used. - -A child session never outlives its parent. `debug.destroySession` removes every -descendant together with the parent and returns their IDs as -`destroyedChildSessionIds`, so the platform can close those transports instead -of leaving them attached to a session Core no longer knows. - -`lsp.builtinCompletions`, `lsp.builtinHover`, and `lsp.builtinNavigation` are -the no-process lightweight language path. They accept current-file text, an -absolute `filePath`, and a zero-based LSP position. Completion returns -current-file identifiers with text edits for the active prefix. Hover returns -the current identifier as markdown. Navigation returns current-file locations; -definition prefers declaration-looking occurrences, while references returns -all matching identifier occurrences. These commands are deliberately -text-level fallbacks; precise type-aware behavior belongs to a started language -server. - -`lsp.mergeCompletions` accepts `{ lists: [{ labels, isIncomplete }] }` ordered -from the highest-priority provider to the lowest and returns -`{ keep: [[index]], isIncomplete }`. A provider's own candidates are never -collapsed, so overloads that share a label stay visible; a lower-priority -candidate is dropped when a higher-priority provider already offered the same -label. Only labels cross the boundary and the platform applies the indices to -its full items. A host with a single completion provider (Windows today) keeps -that provider's list unchanged and does not call the command. Cases: -`shared/fixtures/lsp/completion-merge-v1.json`. - -`lsp.activationPolicy` accepts `{ state, event, nowMs }` and returns -`{ state, decision, retryAfterMs }`. `event` is `automaticStart`, -`explicitStart`, `startFailed`, or `ready`; `decision` is `allow`, `wait`, or -`explicitRetryRequired`. The platform stores the returned `state` per server -identity (language or provider plus workspace root) and passes it back -verbatim; `null` means no failure history. After each failure automatic starts -wait 5000 ms, and after 3 consecutive failures only an explicit start (restart, -retry, or repair) may run. A ready session or an explicit start clears the -history. `nowMs` must come from a monotonic clock; a reading earlier than the -stored failure restarts the cooldown. Cases: -`shared/fixtures/lsp/activation-policy-v1.json`. - -`lsp.problems.query` accepts the displayed diagnostics as -`{ fileKey, displayPath, line, column, severity, message, source, code }` -together with `groupBy` (`file` default, `severity`, `none`), `sortBy` -(`severity` default, `file`, `position`), and an optional `filter` -(`severities`, `fileKey`, `source`, `query`). It returns `groups` (each with a -stable `key`, `indices` into the submitted list, and per-severity `counts`), -`files` (file summaries in file order regardless of `groupBy`), -`visibleCounts`, and `totalCounts`. `fileKey` is the platform's native file -identity; `displayPath` is the workspace-relative path and orders files with -the Project view's natural file-name order. Severity is the LSP number; -missing or out-of-range values are unknown (`0`) and rank last. Cases: -`shared/fixtures/lsp/problems-query-v1.json`. - -The LSP provider catalog is returned by `lithe_core_lsp_provider_catalog_json`. -Each provider descriptor may include `languageServerLaunch` with ordered -`executableNames` and `arguments`; Swift adapters use this metadata when they -need to discover a real language-server executable; the selected launch plan is -then submitted to the Rust-owned runtime. Built-in descriptors are merged by provider ID with the optional -`.lithe/lsp/language-providers.json` workspace document. See -[`.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md`](../../.agents/notes/implemented/architecture/2026-09-13-language-tooling-and-lsp-runtime-ownership.md) -for routing, discovery, lifecycle, and compatibility rules. - -The `lsp.*Server`, `lsp.*Document`, `lsp.request`, `lsp.pollEvents`, and -`lsp.waitEvents` -commands are the semantic LSP runtime boundary. `lsp.startServer` accepts the -provider ID, selected executable/arguments/environment, root URI, working -directory, initialization options, optional runtime executable, -`jdtlsLaunchResources`, cache directory, `workspaceFingerprint`, and the -optional `pluginId` of the plugin that owns the process, its optional -`workspaceConfiguration` (an object, plugin-owned sessions only), its -optional `hostServices` (the launch plan's `backend.hostServices`; -plugin-owned sessions only; legacy service grants or full public host-method names Core defines), -its optional `hostOptions` (plugin-owned sessions only; `editor:{actionIcons, -actionSourceBytes, providerTypes}` declares the icons, collector source bound and -provider types the host implements, reported through `lithe/host/getCapabilities` -to sessions granted the matching editor methods), plus -initialize, post-initialize readiness, request, Java project build -(`javaBuildTimeoutMilliseconds`), and shutdown deadlines. -Java callers may also provide the versioned `mavenContext` accepted by -`maven.launchPlan`. Core validates its reactor and recursively declared modules, -publishes the user-level settings through -`java.configuration.maven.userSettings` and the selected installation's -`conf/settings.xml` through `java.configuration.maven.globalSettings`, and, -after `ServiceReady`, sends one -`java.project.updateSettings` command per Maven project with -`org.eclipse.m2e.core.selectedProfiles`. Maven Java, test, and generated source -roots are normalized to workspace-relative `java.project.sourcePaths` during -the same configuration flow, so JDT LS receives the selected reactor's source -model without platform-specific POM parsing. Both settings documents are passed as content-addressed copies inside the -session's JDT LS state directory (`/.lithe/maven/`). The user-level copy -comes from `settingsPath`, else Maven's default `~/.m2/settings.xml`, else an -empty document when only `localRepositoryPath` is set, and carries that local -repository override. JDT LS detects settings changes by comparing paths, so a -content change must always produce a new path. An unreadable document is passed -by its original path with a session warning instead of failing startup. -Copies remain readable until JDT workspace cache eviction or index rebuilding; -notification delivery is not an acknowledgement that the server read them. - -Gradle callers may also provide `javaGradle = { wrapperPresent, offline?, userHome? }`, where -`wrapperPresent` reports whether the root ships -`gradle/wrapper/gradle-wrapper.properties`. When present, Core states -`java.import.gradle.enabled` in `settings.java` and, if that descriptor exists, -`java.import.gradle.wrapper.enabled`. Both leaves equal JDT LS's own defaults, -so the section declares the import behavior Lithe relies on instead of changing -it; Buildship itself decides which distribution to use, honoring the wrapper only -when the project ships that descriptor. Settings that require reading the build -script (`java.home`, `version`) are never guessed. `offline` and `userHome` -are the user's own build options, as `build.languageImport` maps them from the -plugin that declares the Gradle build system; Core sends -`java.import.gradle.offline.enabled` and `java.import.gradle.user.home` only -when they are set, and the session keeps them until it restarts. A workspace -whose root declares no Gradle build file sends no `javaGradle` and therefore -receives no `java.import` settings. - -`lsp.updateMavenConfiguration` accepts `{ sessionId, mavenContext, -reloadProjects? }` for a running Java session started with a `mavenContext`, -and returns `{ settingsChanged, projectsReloaded, profilesUpdating }`. When the -settings copies differ from the ones JDT LS holds, Core sends -`workspace/didChangeConfiguration` and JDT LS force-updates every Maven project -itself. When they are unchanged and `reloadProjects` is `true`, Core sends -`java/projectConfigurationsUpdate` for the reactor's project URIs, which -re-resolves dependencies even though no `pom.xml` changed. Changed profiles -restart the profile task once the session is ready. Before the `initialized` -handshake, the new configuration replaces the one the pending settings -notification sends. Explicit reloads received before `ServiceReady` are coalesced -and sent once projects are ready, even when settings are unchanged. Response -booleans describe actions sent immediately, not queued work. A newer profile -selection is applied after the preceding batch terminates, including failed -batches; timed-out requests must all drain before that follow-up can start. -The same failed selection is not automatically retried. -A stopped or failed session returns `invalidRequest`. -Resolution problems are not part of the response; JDT LS reports them as -`pom.xml` diagnostics. - -Maven profile application is a -bounded background task: at most eight project commands are in flight, remaining -projects are queued, and each project reports `running`, `succeeded`, or -`failed` with optional error details. Project results use a redacted stable -`projectUri` identifier; they never expose the user's absolute workspace path. -The runtime event also carries the aggregate Maven task status (`running`, -`succeeded`, `partiallySucceeded`, `failed`, `timedOut`, or `cancelled`) so hosts -do not need to infer task completion from log text. A project failure or task timeout does not -terminate an otherwise usable JDT LS session; the host receives a partial-failure -event and may retry. The session reaches `ready` after JDT LS `ServiceReady`. -Core only accepts retries for a ready Java session. A timeout sends `$/cancelRequest` -but retains each in-flight slot until its terminal response arrives. Retry is -rejected while the previous batch is still stopping; if JDT LS never responds, -the user must restart the Java session. Late responses release those slots -without changing the timed-out results. -Hosts reset project results on the structured `mavenProfileTask: "running"` -event and consume `mavenProfileProject` updates directly, scoped to the current -session. Java import completion and Maven task completion use separate UI -notifications so service readiness cannot overwrite a Maven failure. -The session continues to expose profile progress independently. `initializeTimeoutMilliseconds` -only bounds the standard LSP handshake. For a provider such as JDT LS that has -a later readiness signal, -the profile task records a deterministic digest of Maven settings, selected -profiles, project URIs, and source paths; an unchanged successful digest skips -reapplying the same settings, while an explicit retry invalidates that digest. -Hosts may consume lifecycle events for the shared `serverConnected`, -`projectImporting`, `profileApplying`, and `fullyReady` phases. -`serviceReadyIdleTimeoutMilliseconds` retains its wire name but now sets the -quiet-progress **warning** threshold (45 seconds by default). A quiet interval -emits one warning with the last progress snapshot; changed progress rearms the -warning, while duplicate progress does not. JDT progress is not a heartbeat: -silence must not fail the session or terminate its process. -`serviceReadyAbsoluteTimeoutMilliseconds` remains the sole post-initialize -readiness deadline (10 minutes by default), regardless of progress activity. `jdtlsLaunchResources`, when present, -contains `launcherJarPath`, `configurationDirectory`, `lombokAgentPath`, the -legacy optional `javaDebugBundlePath`, and ordered -`javaExtensionBundlePaths`. It is valid only for the Java provider and requires -`runtimeExecutablePath`. Rust loads the legacy Debug bundle first when present, -then appends the extension bundle paths with stable de-duplication. Rust -then uses `runtimeExecutablePath` as the process executable and constructs the -complete deterministic JDT LS JVM argument list. `configurationDirectory` names -the packaged, read-only configuration; Rust never passes it to Equinox, which -writes framework state into its `-configuration` directory. Rust copies the -directory's `config.ini` into -`cacheDirectory/jdtls-configuration//configuration`, -rewrites a missing or damaged copy, and passes that directory instead. A -`cacheDirectory` that resolves inside the JDT LS installation, including -through a symbolic link, fails with `invalid_request` before anything is written; -a missing `config.ini` fails with `process_start_failed`. Areas of other digests -unused for the JDT cache retention period are removed after the area is -prepared, and a removal failure is logged without failing the start. When the structured object is -absent, the selected `executablePath` and legacy wrapper arguments remain the -compatibility path. Rust owns the returned -session's child process, stdin/stdout/stderr, framing buffer, JSON-RPC request -IDs, document versions, pending deadlines, capabilities, diagnostics, and -graceful/forced termination. - -If ordinary `lsp.startServer` fails after process creation, Core retains any -incomplete disposal in an internal cleanup backlog, since no session identity -was returned to the caller. A subsequent explicit startup attempt retries at -most one bounded disposal and refuses to launch another process while cleanup -remains incomplete. The original startup error is preserved. Native owners -using the in-process registration callback retain their registered identity -even when startup returns an error and retry `lsp.destroyServer` themselves. - -JDT LS remains `initializing` until `language/status: ServiceReady`. During this -phase Rust reduces changed `$/progress` notifications into throttled JSON log -details containing the current phase, percentage, project, observed project -count, artifact name, repository host, downloaded/total bytes, calculated -throughput, elapsed/idle durations, and cache disposition. Progress parsing is -observability-only and never substitutes for `ServiceReady`. Absolute readiness failures use `serviceReadyTimeout` at stage `serviceReady` -and retain the final diagnostic snapshot in `underlyingMessage` with -`timeoutKind: "absolute"`. Classification still describes observed silence or -transfer activity; it does not prove a JVM deadlock. Quiet warnings preserve the -initializing/preparation state. Explicit server errors and exits still fail -immediately. Shared timing examples live in -`shared/fixtures/lsp/jdt-readiness-v1.json`. - -Platform adapters own filesystem discovery and validate that packaged JDT LS -contains the Equinox launcher, platform configuration directory, Lombok agent, -Java Debug Server, and bundled Java. Java Test-capable hosts additionally -validate their extension bundles and runner. They do not construct JVM commands. -Packaged macOS and Windows plans always use structured direct launch, so runtime -startup has no shell, PowerShell, or user-`PATH` dependency. Wrapper launch -remains optional only for external or older plans. - -For JDT LS, platform adapters observe which root Maven/Gradle descriptors -exist, names of direct Maven module directories, the Gradle wrapper's -`distributionUrl` when the workspace has one, and the selected JDT LS version. They submit those raw observations to `java.jdtWorkspaceFingerprint`; -Rust Core validates, sorts, de-duplicates, and constructs the sole portable -fingerprint representation. Core then hashes the normalized workspace identity -followed by a null separator and that opaque fingerprint to select -`cacheDirectory/jdtls/`. -Omitting the fingerprint preserves the legacy path-only key for older clients. -Changing structure selects a new directory without deleting the old one, so a -later switch back can reuse it. Editing a descriptor is not a structural change: -JDT LS compares each POM and Gradle file's timestamp with the state it saved and -updates only the changed projects on restart, and running sessions receive the -edit through `lsp.workspaceFilesChanged`. Keying the directory on descriptor -timestamps would discard the whole index after any touch of the file. The Gradle -version is the exception: JDT LS does not check the wrapper descriptor, so the -wrapper's `distributionUrl` takes part in the fingerprint and a version change -selects a fresh directory. - -Core starts JDT LS with -`-Djava.import.generatesMetadataFilesAtProjectRoot=false`, so the Eclipse -project files JDT LS maintains (`.project`, `.classpath`, `.factorypath`, and -`.settings/*.prefs`) live in that state directory instead of the user's -modules. Before launch, Core removes such files that earlier versions left in a -Maven or Gradle module directory when the enclosing Git repository does not -track them; tracked files and workspaces outside Git are left alone because JDT -LS keeps honoring files that already exist at a module root. Tracking is decided -by the repository that owns each module, located through its `.git` entry, with -one batched `git ls-files` query per repository; modules outside Git start no Git -process. When any file is removed, Core also deletes the current state directory -so the launch imports the modules afresh instead of reusing a model that points -at the removed files, and records the removed workspace-relative paths in the -session's `info` log event. - -`java.jdtWorkspaceFingerprint` accepts -`{ buildFiles, directMavenModules, gradleWrapperDistribution?, jdtlsVersion }`. -Each build-file observation contains only a workspace-relative `path`; -`gradleWrapperDistribution`, when sent, must not be blank. It returns `{ workspaceFingerprint }`; platforms must not recreate -or parse this opaque string. Compatibility cases are in -`shared/fixtures/lsp/jdt-workspace-fingerprint-v1.json`. - -`lsp.jdtWorkspaceKey` accepts `{ workspaceRoot, workspaceFingerprint? }` and -returns `{ workspaceKey }` through the same normalization and SHA-256 algorithm -used by `lsp.startServer`. Platform cache-maintenance actions use it to remove -only the current workspace/fingerprint directory; they do not clear sibling -workspaces or older structural states. - -`java.runMarkers` accepts `{ mainMethods, testItems, testCases }`: the -`methods` of one file's `javaMainMethods` answer, the `items` of its -`javaTestItems` answer (empty when the platform cannot run tests for the file), -and canonical build-provider report cases (`suite`, `case`, `status`). The older -`className`/`method` field names remain accepted for Windows compatibility. -It returns `{ markers }` ordered by -zero-based `line`, then `kind` (`main`, `testClass`, `testMethod`). `endLine` -is the last line of the declaration as reported upstream: the end of the body for -test classes and methods, and the name line for `main`. Each marker -has a `label` for menus (`App.main()`, `OrderTest`, `OrderTest.creates`), the -launch target (`mainClass`/`projectName`, or `testClass`/`testMethod` and the -Java Test `testItemId`), and `status`: `none`, `passed`, `failed` (failure or -error), or `skipped`. Test cases match a method by class and method name, with -nested-class `$` and `.` treated alike. A class is `failed` when any recorded -method under it (including nested classes) failed and `passed` when at least -one passed and none failed. Items without a source range, such as inherited -test methods, get no marker. The command is pure and never reads the file -system. `shared/fixtures/java/run-markers-v1.json` is the compatibility fixture. - -`java.workspacePolicy` accepts `workspacePaths` and `changedPaths` as -workspace-relative paths. It starts Java tooling when a non-ignored `.java` -source exists and the workspace shows evidence of being a Java project: a build -descriptor (`pom.xml`, `build.gradle[.kts]`, `settings.gradle[.kts]`, a Maven or -Gradle wrapper) no more than two directories below the root, or a `.java` source -no more than two directories below the root for projects that have no build -system. A Java sample or fixture checked into a repository of another ecosystem -therefore does not activate Java tooling; hosts still start a language server on -demand when the user opens a `.java` file. The command chooses one deterministic -representative source and classifies changes as `ignored`, `source`, -`buildConfiguration`, or `other`. The compatibility examples are in -`shared/fixtures/lsp/java-workspace-policy-v1.json`. - -`java.jdtCacheRetention` accepts platform-observed cache directory metadata as -`{ nowUnixSeconds, activeWorkspaceKey?, entries }`. Each entry contains a -lowercase 64-character SHA-256 `workspaceKey` and -`lastModifiedUnixSeconds`. Core ignores invalid candidate names, de-duplicates -observations using the newest timestamp, never selects the active key, and -returns deterministically sorted `expiredWorkspaceKeys` older than the fixed -30-day retention period. Platform adapters own the last-used marker, directory -enumeration, revalidation, deletion, and error logging; Core performs no cache -filesystem I/O. See `shared/fixtures/lsp/jdt-cache-retention-v1.json`. - -`lsp.documentIdentity` accepts `{ workspaceRoot, input, platform }` with the same -`posix | windows | auto` path syntax. It returns `{ document: { path, relativePath } | null }`. -`input` may be a file URI, native absolute path, or workspace-relative path. -Core reuses URI normalization and workspace containment; `path` uses the native -separator and `relativePath` uses `/`. File URIs decode percent escapes and -`localhost`; Windows drive/UNC aliases use existing case rules. Empty identities, -non-file URIs, URI queries/fragments, drive-relative/rooted-without-drive Windows -paths, the workspace root itself and outside targets return null. Native roots -must be absolute; invalid requests return `invalid_request`. This is lexical -placement only: it performs no I/O and grants no symlink or file access permission. -See `shared/fixtures/lsp/document-identity-v1.json`. - -`lsp.documentUri` accepts `{ path, platform }` and returns `{ uri }`. `platform` -is `posix`, `windows`, or `auto`; `auto` recognizes drive and UNC paths and -otherwise treats an absolute path as POSIX. Paths must be absolute, contain no -NUL and fit within 131,068 UTF-8 bytes. Windows extended drive and UNC prefixes -are accepted. Core resolves lexical dot segments, preserves a trailing directory -separator, and percent-encodes reserved characters and UTF-8. Invalid paths -return `invalid_request`. See `shared/fixtures/lsp/document-uri-v1.json`. - -The `rootUri` of `lsp.startServer` and the `uri` fields of `lsp.syncDocument`, -`lsp.saveDocument`, `lsp.closeDocument`, `lsp.request`, `java.navigationMarkers`, -`java.resolveNavigation`, and each `lsp.workspaceFilesChanged` change accept -either an existing URI string or `{ path, platform }`. The related diagnostic -location URIs in `lsp.request` accept the same shape. Core converts path inputs -inside the existing request; virtual URI strings and opaque server data are not -rewritten. This does not add an IPC request for each document edit. When -matching published diagnostics, Core normalizes escape spelling and Windows -drive letters without treating an encoded `#`, `?`, or `/` as a URI separator. - -`lsp.syncDocument` accepts `{ sessionId, uri, languageId, text?, contentChanges? }`. -The first sync emits `didOpen` at version 1. Later syncs emit `didChange` with -increasing versions. `contentChanges` follow LSP `didChange` semantics: they -apply in array order and each range is relative to the result of the previous -change, so a host that accumulates edits between syncs appends them in the order -they happened and sends the ranges of one simultaneous edit end to start. -Core replays them over the text it holds. `text` may be omitted alongside -`contentChanges`, which keeps a large document off the wire for every keystroke; -when it is present and disagrees with the replay, `text` replaces the document -and the notification is a full-text replacement. When the server advertised -incremental `textDocumentSync`, a successful replay is sent as range-based edits; -otherwise the replayed text is sent whole. Ranged edits without `text` fail with -`InvalidRequest` when they cannot be replayed, and with details -`documentNotSynchronized` when Core has never received the document; the host -then resends the full text. The response is `{ documentVersion, changed, uri }`; -`uri` is the exact resolved document identity used by the session. -submitting identical full text returns `changed: false`, preserves the version, -and emits no LSP notification. - -`lsp.saveDocument` accepts `{ sessionId, uri, text }` after a successful native -save and returns `{ sent }`. The text is the exact saved snapshot, not the latest -possibly dirty buffer. Core sends `textDocument/didSave` only for an open, -ready document when the server advertised `textDocumentSync.save`; it includes -text only when `includeText` was requested. Unsupported saves, unopened documents -and snapshots superseded by newer synchronized edits return `sent: false` without -changing the document version or contents. Failed native saves never call this -operation. The host flushes current editor text before the save, including -edits made while the native write was in flight. Before launch, hosts retry -save notifications for clean open buffers and propagate transport failures -instead of treating disk persistence alone as launch readiness. -This is distinct from `didChange`: JDT reloads its on-disk working copy on save, -which makes a subsequent Java launch build observe saved dependency edits. -Shared cases: `shared/fixtures/lsp/document-save-v1.json`. - -`lsp.workspaceFilesChanged` accepts a session ID and ordered file URI changes -whose `kind` is `created`, `changed`, or `deleted`. It emits one -`workspace/didChangeWatchedFiles` notification. Open documents remain owned by -versioned `lsp.syncDocument`; adapters must not duplicate those edits as watcher -events. - -`java.navigationMarkers` accepts -`{ sessionId, operationId?, uri, documentVersion? }` and completes with -`{ documentVersion, markers }`. Rust combines JDT LS implementation CodeLens, -`textDocument/implementation`, and `java/findLinks` results with parser-selected -Java declaration candidates. Work is capped at 64 semantic tasks, individual -task failures preserve other verified markers, stale document versions cancel -the batch, and the latest completed version is cached per URI. Markers are -sorted by line, UTF-16 column, and relation. A marker contains `direction` -(`up` or `down`) and `relation` (`interface` or `inheritance`); zero-target -declarations are omitted. The cross-platform examples are in -`shared/fixtures/lsp/java-navigation-v1.json`. - -`java.resolveNavigation` accepts the marker position, direction, relation, and -document version. Downward markers use `textDocument/implementation`; upward -markers use JDT LS `java/findLinks` with `superImplementation`. Its terminal -result is `{ documentVersion, locations }`, using the same normalized physical -and virtual-location representation as ordinary navigation. - -`lsp.buildRequest` accepts `{ sessionId, operationId?, method, params, -timeoutMilliseconds? }` and returns `{ operationId }`. `method` and `params` -are the `provider` field of a `build.modelPlan`, `build.dependencyPlan` or -provider-sourced `build.taskPlan`/`build.testPlan`, `build.testDiscoveryPlan`, -`build.prepareRunPlan`, `build.prepareDebugPlan`, `build.configurationPlan` or -`build.configurationEditPlan` result. It accepts `lithe/build/model` and -`lithe/build/dependencies`; `lithe/build/execute` and `lithe/build/test` with the -same bounded execution lifecycle; `lithe/build/discoverTests` with the raw result -lifecycle; `lithe/build/configuration` and `lithe/build/editConfiguration`; and -`lithe/build/prepareRun`, with execution progress but a raw launch -plan passed to `build.decodeRunPreparation` before native process startup. -`lithe/build/prepareDebug` also reports progress: raw native executable facts -pass through `build.decodeDebugPreparation` and the existing DebugAdapter -Registry, not private functions or a second DAP engine. -Typed `launchOptions` belong to the run method alone, together with host-owned -service/task preparation; any other method carrying them is `invalid_request`. -The decoder accepts a workspace cwd outside the instance -only when it matches the same host-validated explicit option. Native debug -preparation takes no launch options. -Other methods are `invalid_request`. -Every session offers -`capabilities.experimental.litheBuild: { versions: [0] }` in `initialize`; a -session whose process did not answer a version the host offered rejects the -request with `not_supported`, so a shared provider that does not speak the -protocol still serves its language. `timeoutMilliseconds` replaces the session's request -timeout for this request and is capped at one hour. The `requestCompleted` -event carries the provider's reply unchanged as `result.value`, which the host -passes to `build.decodeModel` or `build.decodeDependencies` as `result`; -cancellation and late results follow `lsp.cancelOperation`. Execution replies -are validated as `{exitCode: Int32, output: string}` and progress is mapped -from a Core-owned wire request ID to `requestProgress` for the still-pending -operation. See the [provider execution contract](plugins/v1/README.md#provider-task-execution). - -`lsp.toolchainRequest` accepts `{ sessionId, operationId?, params, -timeoutMilliseconds? }` and returns `{ operationId }`. `lsp.startServer` takes -`toolchainProviders`, the manifest's provider IDs; only a plugin-owned session -with some offers `capabilities.experimental.litheToolchains: { versions: [0], -providers }`. A backend that answers `{ version: 0, providers }` with a non-empty, -duplicate-free subset of the offer emits a `toolchainProviders` runtime event -with `result: { providers }`; any other answer enables none. A request whose -`params.providerID` was not negotiated is `not_supported` with details -`plugin.toolchain.providerUnavailable`, and nothing is written. The -`requestCompleted` event carries `result.value: { id, response }`: the JSON-RPC -ID and the complete, unvalidated response, error replies included, which the host -passes to `toolchains.decodeReply` with the same `params`. The timeout is capped -at 60 seconds; cancellation and late results follow `lsp.buildRequest`. - -`lsp.vcsRequest` accepts `{ sessionId, operationId?, vcs, operation, root, -tool?, arguments?, timeoutMilliseconds? }` and returns `{ operationId }`. -`operation` is a [VCS provider contract](vcs-provider-v1.md#lspvcsrequest) -operation name, never a method; Core checks `arguments`, adds the absolute -`root` and `tool` paths, and writes the operation's `lithe/vcs/*` request. -Only plugin-owned sessions offer `capabilities.experimental.litheVcs: -{ versions: [0] }`; a session whose process did not answer with a VCS ID and -every required capability, or answered another VCS than `vcs`, refuses the -request with `not_supported` and details `vcs.provider.unavailable`, and an -operation whose capability was not negotiated is `not_supported` with details -`vcs.capability.unsupported`. A successful negotiation emits a `vcsProvider` -runtime event whose `result` is `{ vcs, capabilities }`. The -`requestCompleted` event carries the provider's reply as `result.value`, which -the host passes to `vcs.decodeReply`; a failed request carries a `vcs.*` -`error.code` (the provider's own code only when the contract lists it). -Timeout, cancellation, and late results follow `lsp.buildRequest`. - -A plugin-owned session started with `workspaceConfiguration` answers each -`workspace/configuration` item from it by `section` (an exact key wins over -a dotted path; no section returns the whole object, a missing one `null`) and -sends `workspace/didChangeConfiguration` with it after `initialized`. -`lsp.updateWorkspaceConfiguration` accepts `{ sessionId, configuration }` -(an object) and returns `{ sent }`: the new value replaces the stored one, -and is announced at once when the client is initialized or with -`initialized` otherwise. Host-owned sessions and stopping, stopped, or failed -sessions refuse it with `invalid_request`. - -`lsp.functionRequest` accepts `{ sessionId, operationId?, function: { pluginID, -functionID }, params?, timeoutMilliseconds? }` and returns `{ operationId }`. -It sends `lithe/function/invoke` to a session started with -`lsp.startServer.pluginId` equal to `function.pluginID` that negotiated -`capabilities.experimental.litheFunctions` and registered the function. -`params` must be a JSON object and defaults to `{}`. Refusals are -`invalid_request`, `not_supported`, or `permission_denied` with a -`plugin.function.*` code in `details`, in the order the -[plugin contract](plugins/v1/README.md#plugin-functions) defines. The -`requestCompleted` event carries the backend result as `result.value`; a -failed call carries `error.code` `plugin.function.failed`, `invalidResult`, or -`revoked` and, when the backend supplied one, `error.pluginErrorCode`. -Timeout, cancellation, and late results follow `lsp.buildRequest`. Core gives -each backend invocation a unique, opaque `operationID`; the backend echoes -that value in progress notifications. It is distinct from the host's -`operationId`, which may be reused after a previous call ends. Core only -forwards progress belonging to the current pending function request and -translates its ID to the host's ID: `requestProgress` has -`method: "lithe/function/invoke"` and `result: { operationID, message?, -percentage? }`, with both event and result referring to the host operation. -Every terminal path discards the function/request association, so late -progress or unregister requests cannot affect a later operation reusing that -host ID, including a build request. - -A plugin-owned session publishes its initialized registry as `functionsChanged` -with `result: { functions, removed: [] }` after successful `initialize` -negotiation, including an empty negotiated registry. Subsequent register and -unregister requests publish -`functionsChanged` with `result: { functions, removed }`; the current registry -is `pluginFunctions` in the session's client state. A plugin-owned session offers -`capabilities.experimental.litheFunctions: { versions: [0] }`; a reply negotiates -the protocol only when it names a version the host offered. Sessions without -`lsp.startServer.pluginId` neither offer nor accept `litheFunctions`, retain no -registry, and publish no function-discovery events. - -A session that negotiated `litheFunctions` may send the -[host-service requests](plugins/v1/README.md#host-services) -its `hostServices` grant. A session that did not negotiate it gets no host -services: its requests are answered `plugin.host.unavailable` (-32601) and its -notifications are dropped. Core checks method, grant, and params, then -publishes the runtime event `hostRequest` with `method` and `result: { -hostRequestID, service, params }`; refusals go back to the backend without an -event. `lsp.hostResponse` accepts `{ sessionId, hostRequestID, result? }` or -`{ sessionId, hostRequestID, error: { message } }`, returns `{}`, and sends -`result` (default `null`) or `-32603` with `data.code: "plugin.host.failed"` -to the backend. An unknown or already answered `hostRequestID` is -`invalid_request`. At most 16 host requests are unanswered per session; more -are refused with `plugin.host.failed`. The error may also be -`{ message, code?, details? }`: a host code reaches the backend with its own -JSON-RPC number, and `details`, an object of at most 4 KiB, as -`error.data.details` -([failure codes](plugins/v1/README.md#workspace-contexts-and-capability-discovery)). - -The macOS public document/file/window adapters use method-level grants. Core -intersects grants with its method table for capability discovery; macOS first -intersects them with actual registered handlers. The `workspace` service grant -never authorizes file methods. Host request/result JSON is bounded to 1 MiB; -oversized results return `plugin.host.limitExceeded`. See the plugin contract's -public document, file and window method table for exact shapes and cancellation -semantics. - -`lsp.hostNotify` accepts `{ sessionId, method, params }` for a ready -plugin-owned session and returns `{ delivered }`. Core sends the -[host notification](plugins/v1/README.md#host-notifications) -when the session negotiated `litheFunctions` and is granted its service, and -returns `delivered: false` without sending when it did not. Another method, an -ungranted service, malformed or oversized params, a session that is not -plugin-owned, or one that is not ready is `invalid_request` with the -`plugin.host.*` code in `details`. - -`lsp.pluginServerRequest` accepts `{ sessionId, operationId?, pluginId, -serverID, method, params?, timeoutMilliseconds? }` and returns `{ operationId }`; -`params` defaults to `{}` and the deadline to 60000 milliseconds (at most -300000). The host resolves `{context, serverID}` of a backend's -`lithe/host/languageServer/request` to the session and calls this command; Core -checks that the session belongs to `pluginId` and `serverID` and enforces the -server's declared session policy: the `requestMethods` whitelist, the -`commands` of `workspace/executeCommand`, `serializedCommands` (a request for a -command already running joins it), and `gates` (a request waits, in order, until -every gate has seen its notification; at most 128 wait, then the request fails -as `plugin.host.busy`). The answer arrives as a `requestCompleted` event whose -`result.value` is the server's result. A failure carries its `plugin.host.*` -code as the event's `error.code` and its details as `error.details`; the host -returns both to the backend unchanged. The codes are -`plugin.host.languageServerUnavailable` (-32022: the session is not ready or -has stopped), `plugin.host.languageServerError` (-32023: the server answered -with an error, in `details.code` and `details.message`), -`plugin.host.methodNotDeclared` (-32024), `plugin.host.foreignContribution` -(-32026), `plugin.host.timeout`, `plugin.host.cancelled`, `plugin.host.busy`, -and `plugin.host.limitExceeded`. The -[plugin contract](plugins/v1/README.md#language-server-host-methods) owns their -meaning. - -`lsp.pluginServerNotify` accepts `{ sessionId, pluginId, serverID, method, -params? }` and returns `{ delivered }`. It sends `workspace/didChangeConfiguration` -and every declared `requestMethods` entry except `workspace/executeCommand`; a -notification is never held behind a gate. `delivered: false` means the server -was not initialized yet and receives the stored configuration with its -`initialized` notification instead. A notification the server sends and -`forwardNotifications` lists is queued as a `pluginServerNotification` event -with `result: { serverID, method, params? }` for the host to relay as -`lithe/host/languageServer/didReceiveNotification`. - -`lsp.startServer` for a plugin-owned server whose manifest declares -`remote: "unsupported"` fails with `not_supported` when the workspace is -remote, before any process is started. - -A session that negotiated `litheFunctions` and holds the `functions` -grant may call another plugin's exported function through the -[plugin-to-plugin relay](plugins/v1/README.md#cross-plugin-calls). -Core runs the whole relay: it checks the declarations, keeps the call chain, -writes the forwarded request with the `caller` the callee receives, and answers -the caller. `lsp.configureFunctionRelay` -accepts the host's complete view and returns `{}`; every call replaces the -previous view, and a call in flight that the new view forbids ends with an -explicit `plugin.function.*` error. - -```json -{ - "plugins": [ - { - "pluginID": "dev.example.formatter", - "exports": [{ "id": "document.format", "version": 1, "context": "workspace" }], - "calls": [] - } - ], - "contexts": [{ "contextID": "w-1", "generation": 1, "authority": "local" }] -} -``` - -- `plugins` lists the enabled plugins that declare `pluginFunctions`, and each - `exports` and `calls` is the normalized manifest's own list. The host - copies them and does not interpret them. A plugin that is disabled, - replaced, or removed is left out, which ends its calls. -- `contexts` lists the live workspace contexts; `authority` is `local` or - `remote`, and a call in a remote workspace is refused. -- A malformed snapshot (an unknown field, a bad plugin or function ID, a - duplicate plugin, more than 4096 plugins) is `invalid_request`. -- Core publishes the runtime event `functionProviderStartRequired` with - `result: { pluginID }` on the calling plugin's session when a call waits for - a callee whose backend is not running. The host starts that backend as plain - I/O; Core ends the call with `plugin.function.providerUnavailable` if the - callee does not register the function within 30 seconds. - -`lsp.request` accepts a semantic `operation` plus -the operation-specific URI, position, range, diagnostics, item, action, or -command fields, and returns `{ operationId }`. Supported operations include -completion and resolve, hover, definition/declaration/type-definition, references, -implementation, rename, formatting, range formatting, document symbols, code actions and resolve, execute command, -inlay hints, full-document semantic tokens, folding ranges, code lens, provider -virtual documents, `javaEntrypoints`, `javaTestItems`, and `javaMainMethods`. -For code actions, `diagnostics` contains the original `LspClientDiagnostic` -objects returned by Core: nullable integer `severity`, `tags`, and -`relatedInformation` remain intact, and every range uses zero-based `line` / -`utf16Column` positions. A platform's display severity or marker projection is -not a diagnostic request model. Non-LSP markers may request actions with a range -and an empty diagnostic context. The round-trip fixture is -`shared/fixtures/lsp/diagnostic-code-actions-v1.json`. -`javaEntrypoints` invokes Java Debug Server's -`vscode.java.resolveMainClass` for the session workspace and returns schema -version 1 with deterministic workspace-relative `{ sourcePath, mainClass, -projectName? }` entries plus diagnostics for unusable upstream records. -Discovery queries all entries in the owned JDT session, then filters source -paths against the opened workspace and its resolved location. This includes -plain folders represented by invisible projects in JDT's writable cache; -unrelated workspace sources remain excluded. Discovery -waits behind pending Maven profile updates and JDT project-configuration jobs, -using the same configuration barrier as the following Java build. Up to 128 -waiting discovery operations are allowed per session. Their deadlines include -configuration waiting and the eventual upstream query, bounded by the session's -Java build timeout. Cancellation before dispatch completes that operation without -writing a JSON-RPC discovery request or cancellation; shutdown/failure settles -every waiter. A completed profile update must precede discovery of source roots -introduced by that profile. - -`javaTestItems` requires a file URI, invokes Java Test's -`vscode.java.test.findTestTypesAndMethods`, and returns schema version 1 with a -typed class/method tree. Each item carries the upstream identity, label, fully -qualified name, project, test kind/level, optional JDT handler and sort text, -optional zero-based UTF-16 range, and children. A `null` upstream result means -the file has no tests (Java Test leaves its root's children unset) and yields an -empty item list; any other non-list top-level result is an -`invalidServerResult`, never an empty semantic answer. -`javaMainMethods` requires a file URI, invokes Java Debug Server's -`vscode.java.resolveMainMethod`, and returns schema version 1 with -`{ methods: [{ range, mainClass, projectName? }], diagnostics }`. `range` is the -zero-based UTF-16 range of the method name, and methods are ordered by source -position. `mainClass` matches the `javaEntrypoints` entry generated for the same -file, so editors can launch the workspace configuration for that entry. A `null` -upstream result means no launchable method; any other non-list result is an -`invalidServerResult`. Core does not infer Java entry points or tests from -source syntax. -For the Java provider, an `executeCommand` whose command is -`vscode.java.buildWorkspace` is coordinated by Core instead of being written -immediately. Core writes it only when no earlier build is awaiting its JDT -response, the Maven profile task is not `running`, and no JDT work-done -progress job named `Update project …`, `Updating project configurations`, -`Applying the selected build files…`, or `Updating workspace folders` is open; -a job without progress for 120 seconds stops blocking. Identical queued build -commands share one JDT request, while a running build is never shared. Each -caller is bounded by `javaBuildTimeoutMilliseconds` from `lsp.startServer` -(default 600000), measured from submission; its `requestTimeout` error has stage -`javaBuild` and an `underlyingMessage` naming the reached phase -(`building`, `waitingForPreviousBuild`, `waitingForMavenProfiles`, or -`waitingForProjectConfiguration`). Cancellation or timeout sends -`$/cancelRequest` only when no running or queued caller still needs a build, -and the build keeps its slot until JDT answers. A successful build completes -with the unchanged `{ value: 1 }` result. Other JDT `BuildWorkspaceStatus` -values complete with stage `javaBuild` and code `javaBuildCompilationErrors` -(`WITH_ERROR`), `javaBuildFailed` (`FAILED`), `javaBuildCancelled` -(`CANCELLED`), or `invalidServerResult`. `javaBuildCompilationErrors` and -`javaBuildFailed` additionally carry `javaBuildReport` with `markerScope` -(`launchTarget` or `workspace`), `builderFailedEarlier`, -`elapsedMilliseconds`, and `recovery` (`none` or `rebuildJavaIndex`). The marker -scope is inferred from the dispatched command: `launchTarget` means the request -named a project, not that Core observed Java Debug Server's final project -selection. Elapsed time is evidence only and must not become a heuristic gate. -The versioned examples are in -`shared/fixtures/lsp/java-build-report-v1.json`. - -Hosts treat these two terminal build outcomes as evidence rather than an -irrevocable launch veto. After resolving the usable runtime paths, they may let -the user continue that same launch attempt without issuing another build. A -cancelled, timed-out, rejected, or unrecognized build has no usable verdict and -must be retried instead of overridden. Hosts present Core's message and report -instead of inferring a cause. Core logs `Java project build is waiting` (with `reason`), -`Java project build started`, and `Java project build finished` (with -`outcome`, `errorCode`, `elapsedMilliseconds`, and `waiterCount`). -Background build retries and deadline cancellations are written by a separate -session-owned worker. The deadline monitor never writes to stdin. A background -write that exceeds `requestTimeoutMilliseconds` fails the session with -`transportFailed` at stage `outboundMaintenance` and terminates the server to -release the stalled pipe; the Java build deadline still bounds queue and build time. -`java.prepareLaunch` accepts `{ sessionId, operationId?, sourcePath, mainClass? }`. -`sourcePath` is the absolute saved source path at the native boundary. -Core owns one operation across JDT entry-point discovery, the existing serialized -build coordinator, and classpath resolution. The source must be inside the session -workspace; an optional configured class disambiguates multiple entries in that -exact file (including JDT's module prefix). Core does not infer entry points or paths. -Discovery and classpath each use the session request deadline; the build retains -its independent queue-inclusive deadline. The host fallback deadline covers all -three phases plus event-delivery grace. - -Only the final `requestCompleted` event is published to the host, with either -`{ kind: "ready", target: { mainClass, projectName?, modulePaths, classPaths } }` -or `{ kind: "buildFailed", target, failure: { code, message, report } }`. -Only the two terminal build failures above can produce the latter. -Cancellation, timeout, invalid replies and transport failures remain operation -errors. Cancelling the operation cancels its current phase; a late build answer -retains the existing coordinator semantics and never starts classpath resolution. -Runtime path groups must contain nonblank strings, with at least one path overall. -Hosts save documents before submitting and own the final launch decision, JDK -discovery and native process. Run plan/toolchain selection remain in existing Core -operations. See `shared/fixtures/lsp/java-launch-preparation-v1.json`. - -The `semanticTokens` operation uses the open document URI and normal version, -timeout, and cancellation rules. Its result is -`{ tokenTypes, tokenModifiers, tokens: [{ line, startChar, length, tokenType, tokenModifiers }] }`. -Token positions use zero-based LSP lines and UTF-16 columns; `tokenType` indexes -the returned legend and `tokenModifiers` is a UInt32 bitset. Core decodes the -server's relative positions with the legend captured when the request was sent. -Range-only providers are not advertised as supporting this operation. No delta -result ID crosses the boundary. See `shared/fixtures/lsp/semantic-tokens-v1.json`. -The `semanticTokensRefresh` event invalidates the host's semantic color cache -when the server requests `workspace/semanticTokens/refresh`; the request receives -a JSON-RPC null acknowledgment. Windows maps `lsp_get_semantic_tokens` to this -existing operation and forwards refresh events as `lsp://semantic-tokens-refresh` -with `{ sessionId, workspacePath }`; only the owning frontend session invalidates -its Monaco provider. The shared payload and legend remain unchanged. -The `virtualDocument` operation accepts `{ sessionId, operation, -virtualUri }` without a document `uri`. Its terminal `requestCompleted` event -returns `{ text }`, where `text` is the provider-resolved UTF-8 source for the -opaque virtual URI. - -`lsp.pollEvents` drains events ordered by per-session `sequence`. `lsp.waitEvents` -accepts `{ sessionId, timeoutMilliseconds }` and waits on a session event -channel until events are queued or the timeout elapses, then drains the same -typed events. Hosts should use `waitEvents` so idle sessions do not poll. -Event types -include `stateChanged`, `featuresChanged`, `diagnostics`, -`requestCompleted`, `requestProgress`, `functionsChanged`, `hostRequest`, -`serverInfoChanged`, and `log`. Every request completes at -most once with either `result` or a structured runtime error containing -provider/session, stage, optional method/document/request, stable code, and -optional process-exit detail. Late responses after cancellation or deadline -are ignored. Diagnostics are accepted only for documents open in the current -session, and versioned diagnostics must match the current document version. - -The client reducer, raw JSON-RPC message, frame, and parser functions are -internal Rust implementation seams; they are not public application commands. -Completion, hover, navigation, edit, hint, folding, and code-lens responses are -normalized by Rust before they cross the application boundary. Unknown server -requests receive JSON-RPC `Method not found` instead of being silently ignored. - -The `history.*` commands accept an adapter-selected `storageRoot`; history -metadata never stores an absolute workspace or storage path. `history.record` -accepts `workspaceRoot`, a relative `path`, a `reason`, and optional UTF-8 -`content`; when content is omitted the core reads the workspace file. Records -are versioned, de-duplicated against the latest snapshot, capped at 100 entries -per file, and pruned after 30 days. `history.record` and `history.entries` apply -the same `hiddenDirectoryNames` / `hiddenFilePatterns` matcher as the workspace -tree, so a hidden path (including folder patterns such as `**/generated/` or -`.lithe/*`) is neither recorded nor listed. Invalid metadata and missing snapshot files -are ignored. `history.entries` returns Unix-second timestamps and relative -`contentPath` values. `history.content` rejects traversal, -`history.relocate` updates metadata and storage paths for the exact `sourcePath` -and its `/`-delimited descendants, preserving each suffix under `destinationPath`. -It enumerates retained history metadata independently of workspace indexing and -current visibility rules; similarly prefixed siblings are unchanged. Equal paths -are a no-op; overlapping ancestor/descendant paths are rejected. `history.rename` and -`history.delete` validate both the relative file path and entry ID before -changing stored metadata. -File and subtree relocation cases are defined in `shared/fixtures/history/relocation-v1.json`. - -A `hiddenFilePatterns` entry starting with `!` turns a rule off instead of -adding one: `!**/name/` or `!name` removes that hidden folder (built-in or not), -and `!pattern` removes an equal file pattern. `!` entries never match a path. - -`history.record` also accepts optional `ignoreRules: { pathPatterns, pathRegexes }` -and an optional `storageLimitBytes` (default -100 MiB, clamped to 10 MiB–100 GiB); baselines stop at half of that cap. -Patterns use the hidden-path glob syntax; regexes use Rust `regex` syntax, -case-insensitive, matched unanchored against the `/`-separated relative path. -A matching file is not recorded, existing entries stay listed, and an invalid -or empty regex never matches. Built-in dependency, cache and build output -folders (such as `node_modules`, `.venv`, `target`) also apply as `**/name/` -patterns, for baselines and edits alike; a `!**/name/` or `!name` pattern turns -one off, and saving drops baselines the current rules reject. `history.ignorePreview` accepts the -same `ignoreRules`, optional `hiddenFilePatterns`, an optional relative -`path` and an optional `workspaceRoot`, and returns `regexErrors` (`{ index, message }` per rejected regex), the -built-in patterns as `builtInIgnorePatterns`, and `matched`: `null` or an object tagged by -`kind` — `hidden`, `pattern` (the matching `pattern`, built-in or the user's) or -`regex` (`index` into its list), plus `gitIgnored`: whether `git check-ignore` ignores -`path` under `workspaceRoot`, or `null` without a path, workspace or repository. -It is informational; local history does not follow Git ignore rules. `history.usage` and `history.clear` accept -`storageRoot`, and `history.usage` also the optional `storageLimitBytes` it -reports back as `limitBytes`; usage rescans the disk and returns `{ usedBytes, limitBytes }` in -allocated bytes, and clear removes every snapshot directory while keeping the -storage root, returning `{ "cleared": true }`. - -`diff.compareTexts` accepts `{ oldText, newText }` (each at most 16 MiB of -UTF-8; larger input is `invalid_request`) and never reads files: hosts pass the -snapshot, buffer, or proposal they already hold. `\r\n`, `\r`, and `\n` all end -a line and are not part of its content, one final terminator does not add an -empty line, and empty text has no lines, so texts that differ only in line -endings compare as identical. Lines are matched with the patience algorithm; -each block of removed and added lines is then aligned by character-bigram -similarity (the same pairing `git.diff` uses), so an unrelated delete and -insert stay separate rows. The response is `{ rows, lines, oldLineCount, -newLineCount, additions, deletions }`. `rows` are side-by-side -`{ oldLine, newLine, left, right?, kind }` with one-based line numbers and -`kind` of `context`, `changed`, `addition`, or `removal`; `context` rows omit -`right` because both sides equal `left`. `lines` are unified -`{ kind, content, oldLine, newLine }` with `kind` of `context`, `removed`, or -`added`, each changed block listing its removals before its additions. See -`shared/fixtures/diff/compare-texts-v1.json`. - -`maven.scan` accepts `{ "root": string, "paths"?: string[] }` and returns -`null` when neither the root nor the supplied visible workspace-relative paths -contain a readable `pom.xml`. Candidates are tried in shallowest-first order, -with `/`-normalized lexical paths breaking ties, until one parses successfully; -a malformed candidate does not hide a valid nested project. A project response -contains its workspace `relativePath`, -`groupId`, `artifactId`, `version`, `packaging`, recursive `modules`, `profiles`, -and `hasWrapper`. The root project and every recursive module also contain a -`sourceRoots` list. Each entry has a module-relative `/`-normalized `path` and -a `kind` of `mainJava`, `mainResources`, `testJava`, `testResources`, -`generatedMain`, or `generatedTest`. Standard Maven roots are returned before -their directories exist; explicit `` source/resource directories and -`maven-compiler-plugin` generated-source directories or -`build-helper-maven-plugin` source lists replace the corresponding defaults, -whether configured directly on the plugin or within an execution. -`${project.build.directory}` resolves from `` and defaults to -`target` only when that element is absent; unresolved or invalid explicit -values do not silently fall back. -Absolute, unresolved-property, and parent-traversal paths are omitted so one -module cannot claim another module's source root. Entries are de-duplicated and -ordered by the documented kind order, then path. Aggregator-only `pom` modules -have no default roots. Module paths are relative to the selected Maven root and -use `/` separators. Malformed XML returns `parse_failed`. Source-root examples -are in `shared/fixtures/maven/source-roots-v1.json`. - -`maven.launchPlan` accepts a workspace `root`, a versioned `context`, an -optional reactor-relative `module`, and an ordered `goals` array whose first -entry is a lifecycle or custom goal. Later entries may be ordinary Maven CLI -arguments such as `-Dname=value` or `-q`. They remain separate process arguments -and are never interpreted by a shell. Context version 1 contains the -workspace-relative `reactorPath`, -selected `profiles`, optional platform-local `settingsPath` and -`localRepositoryPath`, `skipTests`, and optional Maven/JDK paths used only for -the configuration fingerprint. The response contains the `project-maven` -toolchain reference, an argument array, the workspace-relative reactor working -directory, and a deterministic SHA-256 configuration fingerprint. Profiles are -sorted and de-duplicated. Module plans from `maven.launchPlan` and Maven-backed -Run and Debug plans use `-pl -am`. Settings use `-s`; a local -repository override uses `-Dmaven.repo.local=`; skipped tests use -`-DskipTests`. Explicit Run `cwd`, Profiles, and `extensions.maven.skipTests` -values override the project context, including `skipTests: false`. The core -never reads `settings.xml` and never copies its path into a portable project -document. Maven itself continues to read `.mvn/maven.config`; the plan does not -expand or duplicate that file's arguments. Fixtures are in -`shared/fixtures/maven/launch-plan-v1.json`. - -`maven.dependencyPlan` accepts the same workspace `root`, versioned `context`, -optional reactor-relative `module`, and a required absolute `outputFile`. It -returns a launch plan for the fixed `maven-dependency-plugin:3.8.1:tree` goal -that writes the verbose text tree to `outputFile` in UTF-8 with standard tree -tokens, disabled color, and an English locale. Exactly one project runs because -every project in the session would overwrite the same file: module queries use -`-pl ` without `-am`, and reactor-root queries use `-N`. The read-only -query does not build reactor dependencies. Platform adapters own the child -process, apply a bounded timeout, and keep it independent from an ordinary Maven -build session. They also own `outputFile`: each invocation receives a fresh -path in a platform scratch directory, and the platform removes it after the -result, cancellation, timeout, or failure. The process's console output is log -text only and is never parsed as dependency data. - -`maven.dependencies` accepts `{ "modulePath": string, "outputFile": string }` -after the plan's process exits successfully and returns the normalized module -path plus a recursively nested `dependencies` array. Each node contains -`modulePath`, `groupId`, `artifactId`, `version`, `type`, nullable `classifier`, -`scope`, `resolution`, nullable `selectedVersion`, nullable -`premanagedVersion` and `premanagedScope` (values before dependency -management), nullable `originalScope` (declared scope before mediation widened -it), nullable `ignoredScope` (a wider scope mediation did not apply), and -`children`. Resolution is `resolved`, `omittedDuplicate`, or `omittedConflict`; -`selectedVersion` is the winning version of an omitted conflict. Every level is -sorted deterministically. - -The first line of the file must name the module and every later line must be a -node with only the annotations the pinned plugin writes; any other content, -invalid UTF-8, a line over 4 KiB, more than 10,000 nodes, 64 levels, or a file -over the byte limit derived from those bounds returns `parse_failed` instead of -a partial tree. A missing file returns `process_failed`. The compatibility -fixture is `shared/fixtures/maven/dependency-tree-v2.json`. - -`maven.diagnostics` accepts `{ "root": string, "output": string }` and returns -`{ "issues": [] }`. Diagnostic paths may be absolute or workspace-relative; -the response preserves the path text, uses one-based line and column values, -and normalizes severity to `error` or `warning`. Duplicate issue lines are -removed deterministically. - -`runConfig.selectJava` uses the toolchain requirements of the workspace's latest -`runConfig.generate` in this process; before any generation it derives them from -the project's own declarations (`pom.xml`, `.java-version`, the Maven wrapper). -Its request contains optional -`root`, `candidates` (`id`, probed `version`, numeric source `priority`), and -`fallbackId`. IDs are opaque machine-local identities, never persisted or opened -by this operation. Lower priority wins; equal-priority candidates use descending -numeric Java versions (including legacy `1.8`), then ascending ID. - -When `project-jdk.minimumVersion` exists, selection first filters using the same -Java version comparison as run-configuration diagnostics. Among the compatible -candidates, the one whose Java feature version equals the declared one wins, else -the oldest newer feature version; source priority only breaks ties within a feature -version. A Java 8 project therefore runs on an installed JDK 8 even when `JAVA_HOME` -points at JDK 21, matching IDEA and OpenIDEA. The response is -`{ id, warning }`: the compatible candidate, or the supplied usable fallback -with an actionable warning if none qualifies. Missing requirements retain the -platform's unconstrained choice; a malformed or unsupported `requirements` -snapshot returns the parse/version error. Explicit configured paths bypass automatic -selection. The operation never generates requirements or probes executables. -The cross-platform examples are in -`shared/fixtures/run-configuration/automatic-java-selection.json`. - -Windows `run_resolve_toolchains` includes an optional `warning` on resolved -JDKs, including inherited Maven JDKs. This warning remains visible even when no -run configuration exists to carry a scoped `toolchainVersionMismatch` diagnostic. - -`runConfig.projectToolchain` reads `{root,path,localDocument?,configurationId?}` and returns -`{toolchain:{javaHomePath,mavenExecutablePath,mavenJavaHomePath,runtimeExecutablePaths}}`, even without -generated Run configurations. `path` is the current Provider's normalized, -workspace-relative project/reactor root (`.` for the workspace). The nearest -`toolchain.pathOverrides` entry owns all three fields; its empty/missing fields -inherit workspace defaults, not another ancestor override. Matching uses path -segments, so `app` never owns `app2`. Malformed stored paths/documents fail -without changing source bytes. The command does not discover, probe or run any -tool, inspect project descriptors, or write files. `runtimeExecutablePaths` -comes from the existing `.lithe/toolchains/local.json`; platforms resolve the selected -paths through their existing toolchain adapters. Shared examples are in -`shared/fixtures/run-configuration/project-toolchain-selection.json`. -When `configurationId` is supplied, explicit Java/Maven paths from that current -Run configuration override the canonical project/reactor selection. Core reuses -the existing team/local configuration merge without projecting global defaults -as explicit configuration choices. Empty configuration fields inherit the -canonical selection; missing, disabled, mismatched-root or malformed choices fail -instead of falling back. No generated layer is required for an explicitly saved -Provider reference. Shared cases are in -`shared/fixtures/run-configuration/configuration-toolchain-selection.json`. - -`runConfig.inspect` also returns the local document-level `toolchain`, including -when no generated configuration exists (`status: "missing"`). Settings, -toolchain-only callers, and initial run-panel presentation may send -`checkFingerprint: false` to validate documents without traversing or hashing -project sources. Omission preserves full inspection. The Windows run panel -publishes readable configurations first, then performs full inspection and -reports freshness failures without discarding those configurations. -The input fingerprint covers what generation reads: build and tool files and -the sources of generated Java entries by content (`sha256:` in -`generator.inputs`), and every other Java source by path only (`path`), so -editing a class body is not a staleness. When the stored inputs no longer -reproduce the stored fingerprint, the document came from another generator -revision and the diagnostic says so instead of listing modified files. -Automatic run discovery, fingerprint traversal, Node manifest discovery and the -Windows Java source list use Core's shared scan policy. Known caches/build outputs -are pruned before descending; other hidden source directories remain visible and -symlinks are not followed. Failure to read the workspace root is an error. An -unreadable optional child or fingerprint input is recorded in -`generator.unreadablePaths`; generation retains previous configurations and input -hashes beneath those unknown paths. Inspection returns `incompleteProjectScan` -instead of claiming fingerprint freshness or inferred removals when either the -current scan or saved baseline is incomplete. The persisted diagnostic also appears -with `checkFingerprint: false`; a successful complete regeneration clears it. -This does not replace declared build-system modules or JDT's entrypoint facts. -The bounded Java source list stops opening further directories once its source -limit is reached, retains only collected Java paths, and returns them sorted. -Full fingerprint scans remain uncapped by this list limit and keep reporting -unreadable inputs independently. - -`runConfig.inspect` also accepts optional schema-versioned `javaEntrypoints` -from the current `lsp.request` result, independent of `checkFingerprint`. Core -then compares JDT's `(sourcePath, mainClass)` pairs, with a `module/` prefix -removed and nested checkouts excluded, against the generated Java entries and -reports a difference as a `staleFingerprint` diagnostic. Platforms send it -after a project load once the Java service has prepared the project, never -start that service for this check, and skip it while a regeneration already -waits for the service. -Project environment saves use the existing local `runConfig.updateOptions` -toolchain payload with an empty `configurationId`; service overrides are untouched. - -The `runConfig.*` commands implement the versioned project protocol described -by the JSON Schemas in this directory. `runConfig.inspect` accepts `root` and -never writes files. `runConfig.generate` accepts `root`, relative Java `paths`, -relative `modulePaths`, optional schema-versioned `javaEntrypoints` from the -current `lsp.request` result, and optional `projectOwnership`. The latter is a -host projection of current enabled Provider projects: `{ path, -name?, build?: { pluginID, buildSystemID, root, projectID }, minimumJavaVersion?, contentRoots: [{ path, kind }] }`, using workspace-relative -paths and the model's `source`/`testSource`/generated-source roles. Core validates -project/root containment, unique project paths, roles and bounds (2,000 projects, -10,000 content roots). When supplied, including `[]`, these facts own Java -project membership and source sets: `modulePaths` and ancestor POM inference -do not supplement them. `build` is an exact current model identity, not a build -semantic tag. Generated Java entries store it under `extensions.java.build`, -with Java-owned `module` and `mainClass`; they contain no Maven extension or -Maven tool binding. Its root stays independent of editable cwd and document -layers cannot replace generated build ownership. An omitted snapshot retains the current -Windows generator's legacy ownership path. A supplied ownership snapshot disables -legacy Maven framework detection. Framework selection is not an ownership field; -run discovery uses the independent generic snapshot described below. -`minimumJavaVersion` is an optional normalized Java feature version (1–999), -owned by the upstream compiler model, including before entrypoint discovery -returns any sources. When the snapshot is supplied, Core uses -the highest known project floor and never parses POM compiler properties; a -platform Java version file can raise but cannot lower that floor. Missing means -unknown, not permission to infer. Build-tool versions and wrapper paths are not -ownership fields. With provider ownership Core emits no Maven requirement and -never reads wrapper properties or scripts to supplement it. Installed tool -definitions/providers own these choices. Native Java preparation routes by the -exact enabled package, declaration, instance and project identity. Legacy -consumers that omit provider ownership retain their old Maven launch path until -they migrate; those fields are not accepted in the new ownership projection. See `fixtures/run-configuration/provider-project-ownership.json`. -The generated document records optional `generator.providerFingerprint`, a -SHA-256 identity of the validated projection, with projects and roots sorted. -It covers project labels, ownership, source roles and requirement -facts, but never environment values or native configuration secrets. -`runConfig.inspect` accepts the same optional `projectOwnership` and emits -`staleProviderModel` when current facts differ or a legacy generated document -has no provider identity. `checkFingerprint: false` skips file hashing only; -this model comparison remains active. Explicit `[]` represents disabled/missing -providers, while omission preserves existing Windows callers. A return to the -same semantic facts matches again; asynchronous host publication still needs -its independent monotonic operation revision to reject ABA replies. - -`runConfig.generate` and `runConfig.inspect` also accept optional `providerRuns`: -a complete list of `{projectPath,name,reference}`. The native host matches current -model targets against enabled public run declarations; `reference` has exactly the -`extensions.build` selector shape below, with empty model `userArguments`. This -snapshot is independent of Java entrypoints and language imports. Core validates -at most 10,000 unique selectors, provider-root/project containment and bounded labels, -then creates `build.provider` entries without interpreting target IDs, tool names, -frameworks, commands or debug adapters. An explicit `[]` withdraws generated runs; -omission preserves older callers. It also disables the legacy framework detector. -IDs hash plugin/build/root/run/project/target identity, so changed labels or execution -kind retain user overrides. Current declarations still validate the execution kind -before preparation. `generator.providerRunFingerprint` hashes the complete sorted -snapshot; changed or missing metadata yields `staleProviderModel`, including when -file fingerprinting is disabled. Withdrawn entries cannot be restored from cached -configurations; unmatched overrides stay in their user-owned layer and are diagnosed. -See `fixtures/run-configuration/provider-project-ownership.json`. macOS supplies this -snapshot; Windows retains its existing generator until its Provider host is migrated. - -Java configurations with the same class and module name in independent reactors -remain distinct; a common reactor retains its existing configuration IDs. - When Java tooling is still preparing, omission -retains the previous generated entrypoint facts instead of running a local -scanner or replacing them with an empty list. Those previous facts come from -this process's last generation, else from the optional `cacheDirectory` (an -application cache root where generation records its result under -`run-configurations/`), else read-only from a `.lithe/run/generated.json` that -older versions wrote. It returns the generated configuration and toolchain -requirement documents and keeps them in memory as the workspace's detected -layer for `inspect`, `resolve`, and `selectJava`; nothing is written into the -workspace. `inspect` returns `requiresGeneration: true` while this process has -no detected layer. Hosts identify the workspace when this flag is true or the -status is `missing`; a saved provider task can make `status` be `ready` before -detection, and must not suppress discovery of the remaining entries. Without -`projectOwnership`, legacy Maven root -discovery checks `pom.xml` along each supplied path's ancestor chain, so a - -reactor nested below the opened workspace does not depend on the platform -including build descriptors in `paths`. Maven ownership is resolved per Java -entry: standalone sources keep the JDK launch path, while entries from -independent nested reactors retain their own reactor working directory and -module selector. Generated fingerprints include both project inputs and the -detector revision; either changing marks the detected layer stale and requires -regeneration. - -`runConfig.selectContextConfiguration` accepts a provider-supplied `sourcePath` -and opaque `symbol`, a `preferredId`, platform path-comparison policy, and an -ordered list of effective candidate IDs, identities, disabled state, and -generated state. It returns `{configurationId}` (null when none match). -Disabled or differently identified entries never match; an existing preferred -match wins, followed by an edited configuration, with input order breaking ties. -Windows compares paths case-insensitively and treats both separators alike; -case-sensitive hosts compare the supplied path exactly. Discovery remains with -the provider, and clients must reject results made stale by workspace changes. - -`runConfig.resolve` accepts `root`, optional local `toolchainCandidates`, and -optional `localDocument` / `teamDocument`. A supplied document replaces that layer -for this read-only resolution; omitted layers come from `.lithe/run/local.json` / -`.lithe/run/configurations.json`. Hosts can preflight a complete two-file transaction -against the current detected layer without publishing either file. Core never writes -these documents; hosts still own source-identity checks, cancellation, conditional -publication and readback. It merges -configurations by stable ID using this precedence: -`local.json > configurations.json > detected layer`. Scalars and arrays are -replaced by the higher layer, while toolchain maps merge by key. It returns -effective configurations, their source, the default (the team default from -`.lithe/project.json`, else the first detected service, else the first -detected entry other than Current File), structured -diagnostics for stale, orphaned, missing, disabled, and toolchain mismatch -states, the effective global `toolchain`, and the machine-local -`localToolchains` document. Toolchain diagnostics carry the affected run -configuration ID when a requirement is consumed by one or more configurations; -requirements with no configuration consumer do not emit a blocking diagnostic. -For detected Maven configurations, resolved `extensions.maven.reactorPath` -contains the workspace-relative reactor from the generated layer, independently -of an overridden effective `cwd`. Core derives this read-only ownership value -when resolving existing generated documents as well; regeneration is not -required. Overrides cannot move a configuration to another reactor. Current -File and configurations without detected Maven ownership omit this field. -Resolution checks that `extensions.maven.module` exists relative to this -reactor, or relative to `root` when the field is absent, and never relative to -an overridden `cwd`: setting a module's own directory as the working directory -keeps the configuration available. -Module menus first match reactor and module, then apply the default preference; -they must not infer ownership from an overridden working directory. The shared -`run-configuration/maven-module-ownership.json` fixture covers independent -reactors, cwd overrides, and the ordinary Java main / Current File capabilities. - -Each configuration carries a `category` of `project` or `infrastructure`. -Docker Compose detections are `infrastructure`: a Compose file in an application -repository declares the databases and brokers the project runs against, not the -project itself. The field is omitted for `project`, which is the default, so -existing generated documents keep their exact shape. Hosts present -infrastructure apart from the project's own services and must not include it in -"run all services" or in the default service selection. - -Windows implements this grouping. During the macOS transition, Compose entries -remain in its execution-based Services scope; category-based grouping and service -selection filtering are pending there. - -Display names that repeat are qualified by Core, because hosts show the name -alone: the first candidate that separates every entry in the group wins, trying -the Maven module, then the working directory, then the source manifest. Three -Compose files each declaring `compose up` become `compose up (script/docker)` -and so on, while a name that occurs once is never decorated. Ids are unaffected. - -Java entry points are read from the Java syntax tree rather than matched as -text, so a `static void main` or `@SpringBootApplication` inside a string -literal or comment — common in test fixtures and documentation samples — does -not become a run configuration. A declared `main` under `src/test` remains a -valid entry and keeps the test classpath; see -`shared/fixtures/execution/maven-java-main-source-sets-v1.json`. - -A process detector declares a runtime binding only when that command genuinely -consumes the runtime. npm, pnpm, and Yarn scripts consume `project-node`; Bun -scripts keep their independent `bun` command and do not acquire a Node -requirement. Go, Python, Cargo, and Gradle remain command-based until every host -provides the corresponding configurable runtime registry, so their PATH-based -launch behavior is not blocked by an unavailable platform selector. -During resolution, Core also reconciles npm, pnpm, and Yarn commands from older -v2 generated documents with the same `project-node` binding. This compatibility -normalization is based on the effective command, does not mutate the stored -document, and keeps legacy hybrid projects scoped without requiring regeneration. -A document-level `toolchain` -object in the local layer (e.g. -`{ "java": { "homePath": ... }, "maven": { "executablePath": ..., "javaHomePath": ... } }`) -provides defaults for every configuration's `extensions.java.*`. A non-empty -per-configuration toolchain path overrides the corresponding project default. - -Provider applications can be explicitly saved with `runConfig.createUserConfiguration` -using `{root,scope:"local",name,type:"buildProvider",build:{pluginID,buildSystemID, -root,run,projectID,targetID,userArguments?,execution?}}`. Core upserts the existing local -reference by selector identity and retains its existing ID (new references use `user:` IDs), unrelated configurations -and project toolchain defaults. `extensions.build` in Run v2 holds the typed -reference; optional execution is application/service/task and must match the current -declaration before preparing (omitted older references mean application). The saved -configuration retains that execution kind when reopened. Process commands, toolchain -bindings and cached debug adapters are refused for `build.provider`. Generic args, -environment and cwd overrides are user choices forwarded through typed launch options; -explicit args replace older reference userArguments, including an empty array. -An implicit selector-root cwd remains omitted from launch options. Current model membership is revalidated by the -native build workflow before every preparation. No generated document is needed: -`runConfig.inspect` recognizes explicit saved team/local references and `runConfig.resolve` -merges them against an empty generated layer. A workspace without generated data -or an explicit saved Provider reference retains the existing missing state. -Complete saved `build.provider` entries (name, provider, selector and matching execution) -can retain any existing Run ID, including IDs imported from older formats; a prefix -does not grant launch authority. Sparse unknown-ID patches remain orphaned. Such an -entry also makes a team-only workspace runnable before generation, while still returning -`requiresGeneration: true`. Current declaration/target validation remains mandatory. -When generation contains that selector, resolution suppresses its duplicate automatic -entry, retains all explicitly saved configurations, and resolves defaults through the -same effective selector. Local selector patches update the effective claim, so an -older team target does not accidentally hide a different auto entry. Detection -fingerprints and the detected document remain unchanged by user-layer resolution. -See `fixtures/run-configuration/build-provider-stable-identities.json`. - -The platform guards the source snapshot, atomically writes only the local layer, -then re-reads the result. `shared/fixtures/run-configuration/build-provider.json` -is the canonical persistence example. - -`extensions.build-run` stores portable user choices separately from the selector: -`{runtimeArguments?: string[], entrypoint?: string, options?: object, tools?: object}`. Runtime arguments -retain exact argv boundaries (at most 1,024 elements, each at most 65,536 UTF-8 bytes). -The opaque entrypoint is at most 4,096 bytes; an empty string explicitly clears an -inherited entrypoint. `options` holds at most 64 declared Build option values, within -64 KiB of UTF-8 JSON; keys are bounded portable identifiers. Core does not interpret -the values. The native Build service validates every value against the current -selected declaration/model before preparation, including explicit `false` and `[]`. -`tools` maps at most 64 definition IDs to `{home:absolutePath}` or -`{executable:absolutePath}`, or null. Its total UTF-8 JSON is bounded to 64 KiB; -paths are at most 4,096 bytes, with the toolchain lexical path checks. Entries merge -by tool ID across team/local layers. Null clears an inherited Run choice and resumes -directory policy; omission or an empty map preserves existing tool entries. The -native host resolves each active choice against an enabled, referenced definition, -current filesystem facts and version probes. It never changes a directory pin. -Commands, cached executable evidence and debug adapters are not fields in this namespace. - -`runConfig.updateOptions` and `runConfig.saveEditorChanges` accept optional -`providerRunOptions` in this shape for a `build.provider` configuration. Omission -preserves that namespace for older callers; explicit null is rejected. A supplied -snapshot replaces each of its fields in the selected layer, normalizing omitted fields -to `runtimeArguments:[]`, `entrypoint:""`, `options:{}` so reset can clear inherited -choices. `tools` instead uses the per-entry inheritance and null-clearing rules above. -Other extension namespaces and the selector remain intact. Re-saving the -same selector preserves its working-directory override and portable choices. -The production macOS store, Windows editor and preference copies carry the typed snapshot unchanged. -See `fixtures/run-configuration/build-provider-options.json`; no new Provider RPC or -SDK protocol change is needed, because preparation reuses the accepted launch options. Editor argument text uses quoting/escaping without expansion or execution; empty quoted tokens remain empty argv items. `fixtures/run-configuration/argument-text.json` is shared by Core and both editors. - -`runConfig.providerLaunchInputs` takes `{root,configurationId,providerRoot,localDocument?}` -and requires a complete `build.provider` selector. Unmigrated tool-specific records are rejected; only an isolated host import may translate their retired format. It resolves the same document layers for one preparation. It returns bounded typed -`launchOptions`, explicit build-option overrides and project identity without planning -a tool command. For `build.provider`, `extensions.build-run.runtimeArguments` and its -non-empty entrypoint populate launch options, and its `options` populate optionOverrides. -Active fixed choices are returned separately in `tools`, and in `definedTools` by -`runConfig.projectToolchain` for the matching configuration/provider root. They are -host-only resolution inputs and are never forwarded as Provider launch options. -Saved selectors additionally return the exact typed `reference`; the native Build service revalidates its plugin, instance, run, project, -target and execution against the current enabled model. Parameters must be read again -before process launch, and an invalidated configuration or operation rejects late replies. - - -`runConfig.updateOptions` and `runConfig.createUserConfiguration` are pure -document transformations. They validate scope, paths, supported types, stable -IDs, main classes, modules, and argument parsing, then return UTF-8 JSON in the -`document` field. The platform adapter selects the target project or local -file and performs the atomic write. These commands never write files. An empty -`workingDirectory` removes the layer's `cwd` override. A non-empty value must -name an existing directory inside `root`, given relative to it or as an -absolute path, and is stored project-relative. Values are literal paths; editor -variables such as `${workspaceFolder}` are rejected rather than stored, because -resolution disables and omits a configuration whose `cwd` does not exist. Optional -`mavenSkipTests` writes `extensions.maven.skipTests`; omission removes the -override so the project Maven context is inherited, while explicit `false` -continues to run tests even when the project default skips them. -For project-scoped option updates, selected toolchain paths must resolve inside -`root` and are persisted with `/`-separated project-relative paths. Local-scoped -updates may carry host absolute paths. `runConfig.updateOptions` and -`runConfig.inspect` accept the same optional `localDocument` override. -When `updateOptions` carries a `toolchain` object (`javaHomePath`, -`mavenExecutablePath`, `mavenJavaHomePath`), it writes the document-level -global toolchain into the local layer instead of patching a configuration; -project scope rejects this payload because toolchain paths are machine-local. - -The project toolchain may also carry `pathOverrides`, a map of normalized -workspace-relative subproject roots to `{ javaHomePath?, mavenExecutablePath?, -mavenJavaHomePath? }`. The map has at most 256 entries; roots reject absolute, -parent, dot, empty-segment, drive, backslash and control-character forms. Empty -fields inherit project defaults. This map lives only in `.lithe/run/local.json` -and is returned by inspection/resolution; hosts preserve it when saving a run -configuration or project defaults. An absent map identifies a document predating -subproject migration; a saved empty map is an explicit choice. Old platform -preferences are copied and read back before cleanup, with already saved choices -remaining authoritative. See `shared/fixtures/run-configuration/subproject-toolchains.json`. - - -`execution.resolveSearchPath` accepts already-split `existing` directories and -`candidates` carrying `priority`, opaque `id`, and `path`; lower priority sorts -first, then ID and path. The result appends candidates after existing directories, -omits empty entries, and deduplicates exactly or with ASCII case folding when -`caseInsensitive` is true. The host owns path splitting, joining, discovery, and -filesystem trust. See `shared/fixtures/execution/search-path-v1.json`. - -`runConfig.argumentText` accepts `{ "argumentLists": [["--name", "Alice Smith"], []] }` -and returns one editor string per input vector in the same order. Quoting and escaping -are reversible by the existing run-configuration option parser; there is no shell -expansion or execution. Empty arguments remain explicit. The shared cases are in -`shared/fixtures/run-configuration/argument-text.json`. - -`runConfig.saveEditorChanges` accepts the normal option-edit payload plus the -required `toolchain` object. In addition to Java and Maven paths, that object -may contain `runtimeExecutablePaths`, keyed by stable generic toolchain ID. It -applies the global toolchain and configuration override edits together, -returning `localDocument`, either a `projectDocument` string or `null`, and -either a `toolchainDocument` string or `null`. The latter updates -`.lithe/toolchains/local.json`, preserves unrelated toolchain IDs, and removes -an entry when its supplied executable path is empty. Local scope combines the -run-option edits in the local run document. Project scope returns the local -defaults and team options as separate fully prepared documents; the platform -adapter writes all returned documents as one transaction with rollback. Empty -per-configuration toolchain paths remove the -corresponding override keys while preserving unrelated extension fields. -Platform clients report the editor save as successful only after the written -documents resolve again. Failures identify whether preparation, document -writing, or post-save reload failed; a reload failure keeps the last usable UI -snapshot and states that the documents were already saved. - -Automatic runtime discovery produces an effective executable path for the -current session. Platforms use that same path both to construct -`toolchainCandidates` and to resolve the launch command. An automatic path is -not a persisted user selection and is written to `.lithe/toolchains/local.json` -only after an explicit editor save. -On Windows, Node-backed commands resolve their package-manager shim from the -selected Node installation. They do not fall back to a PATH shim from another -installation, and Windows executable extensions take precedence over extensionless -shell scripts. - -Automatic Spring service generation requires both an applied Maven plugin and -exactly one JDT-confirmed, Spring-classified non-test entry in the same module. -An inherited plugin alone cannot promote a library to a runnable service. -Nested-module entries do not promote their parent. Ambiguous, utility and test -mains remain independently selectable Java entries. Module assignment consumes -the confirmed source set even when the caller supplies no editor paths. -Absent discovery may reuse previously confirmed entries; an explicit empty result -removes automatic services. Existing service IDs and user-authored Maven-goal -compatibility configurations retain their established meaning. - -`runConfig.createLaunchPlan` accepts `root`, `configurationId`, optional -`currentFile` and `classPath`, optional `debugPort`, and optional -`localDocument`. Maven-backed Run and Debug callers may also supply the same -versioned `mavenContext` accepted by `maven.launchPlan`. Explicit profiles in -the resolved Run Configuration replace the context profiles; otherwise the -project profiles are inherited. Explicit `extensions.maven.skipTests` and -`cwd` values also replace the context values. Core applies the shared settings, -module, Skip Tests, and reactor-working-directory rules to the generated -framework arguments, including `-am` for selected reactor modules. A -project-owned `java.main` caller, or a `spring-boot.maven` caller whose generated -configuration records a Java entry source, instead supplies `javaLaunch` with -the exact JDT LS-selected `mainClass` plus structured `classPaths` and -`modulePaths`. An optional `javaLaunch.buildPrepared: true` is a host receipt -that the current build provider resource task completed before JDT launch -resolution. Core then omits its legacy Maven resource pre-launch step and does -not inspect POMs for that step. The host must recheck workspace/configuration -generation and cancellation before handing off the launch; it cannot reuse a -receipt from another operation. Missing/false retains compatibility for current -Windows callers. See `fixtures/run-configuration/provider-prepared-java.json`. Core then produces a direct `project-jdk` launch; it never -projects those Java entry points into a reactor-wide Maven launch goal. A Spring -Boot configuration without a resolved Java entry source retains its Maven-goal -compatibility path. It -returns a toolchain -reference, argument array, project-relative working directory, and structured -environment references. It does not return a shell command or platform -executable path. All project paths use `/`, reject absolute paths and `..` -traversal, and remain relative to `root`. - -The plan may also carry three optional envelope fields. `preLaunchSteps` is an -ordered array of `{ executable, arguments, classpath?, workingDirectory? }` steps -the host runs to completion, in order, before the main process; a non-zero exit -aborts the run and surfaces that step's diagnostics. Each step's `executable` -reuses the plan's -`{ toolchain }` shape plus an optional `tool` selector (`"javac"` resolves the -sibling compiler in the toolchain's `bin` directory; absent means the default -launcher). `classpath` is a structured array of project-relative or host-absolute -entries the host joins with the platform path separator (`:` on POSIX, `;` on -Windows) and prepends as `["-cp", joined]` to the relevant argument list; core -never joins classpath entries because the separator is platform-specific. -`modulepath` follows the same rule and is emitted as `--module-path` by the -host. A JDT main identity in `module/name.Type` form is projected as -`-m module/name.Type` for the direct Java launcher. Empty fields are omitted, -so existing single-process Maven, Gradle, and Node -plans are unchanged. A step shares the plan-level `environment` and, unless it -declares its own project-relative `workingDirectory`, the plan-level -`workingDirectory`. A step that declares one resolves its toolchain from that -directory and runs there, so a resource step still finds the project wrapper -next to its reactor POM when the application working directory is a user -override. - -Direct Maven-project Java launches also carry a `project-maven` resource step: -`resources:resources`, plus `resources:testResources` for test-source entrypoints. -The step inherits Maven profiles, settings, repository and module/dependency -selection. Its absolute `-f` POM argument anchors the generated reactor even when -the application working directory is overridden, and its own `workingDirectory` -names that reactor as the step's run directory and toolchain resolution root. A -child POM not declared in -that reactor is processed as its own Maven project, without `-pl`. Resource -filtering and custom resource directories remain Maven-owned; no Java compilation -or application launch goal is added. Hosts must finish these steps successfully -before starting the JVM. Both hosts scope pre-launch execution to the -window/session/execution and stop the owned process tree on Stop, window close or -replacement. They apply the same ten-minute deadline with bounded pipe draining -and cleanup, and a step that reaches its deadline fails the run with -`Pre-launch step timed out after 600 seconds.`. macOS runs the steps before both -the application launch and a Run-panel service session, and cancels a session's -running step when that session stops, restarts, or is dropped by reconciliation. -Independent DAP launches that do -not consume this plan are not covered by this resource-step contract. - -A Maven-project `java.main` launch must first ask JDT LS/Java Debug -Server to resolve the exact source target, build its owning project, and return -the runtime classpath/module path. Missing project launch metadata is a launch -error rather than permission to fall back to `mvn exec:java`; reactor-wide Exec -would attempt the same main class in parent and dependency modules. - -A `java.main` configuration without a -Maven toolchain launches through `project-jdk` and the configuration's Java -source path only when that source has no Maven ancestor. An older configuration -that omitted the Maven binding is rejected with an instruction to regenerate. -Standalone Java (`java.main` without Maven, and `java.current-file`) compiles -before running: core emits a `javac` pre-launch step writing `.class` files to -`.lithe/run/classes/`, puts that directory on the run -`classpath`, and launches by the qualified class name rather than the source -file. This keeps one-click Run working on JDK 8, which lacks the JEP 330 -single-file source launcher (`java File.java`) that only exists on JDK 11+. The -`java.current-file` main class is derived from the file's `package` and declared -class; when the host supplies a project `classPath`, the compiled output leads -the run classpath and the project classes feed the compile step. - -`java.codeVision` accepts a workspace root, a target Java path, and Java source -paths. It returns declaration locations and usage counts; Git blame attribution -is joined by the UI from the shared Git result. `java.className` accepts Java -source text and a file simple name and returns the fully qualified runtime class -name. - -`java.sourceDefinition` accepts `source`, `declarationName`, an optional -`memberName`, an optional `declarationsOnly`, and an optional `reference` -(`line`, `utf16Column`), returning zero-based `line` and UTF-16 `utf16Column` or -`null` when no declaration is found. A member is looked up as a syntax-tree -method, field, or enum-constant declaration that the `declarationName` type -declares directly. With `reference`, the member is instead resolved from that -position: the identifier must be a plain name or a `this.` access, the innermost -type is searched first and then the enclosing ones, and the result is `null` when -a type on the way may inherit the name or a local may shadow a field. -Without `declarationsOnly`, text that merely resembles a declaration, such as a -call, is accepted next, and then the `declarationName` type; with it, a missing -member returns `null`. - -`java.structure` accepts Java `source` and optional `declarationSources`. It -returns `foldRegions`, `inlayHints`, and `syntaxHighlights`. -Fold and inlay line numbers are zero-based because these values are editor -offsets; UTF-16 columns and hidden ranges match the native text editor coordinate -system. Syntax highlights contain document-relative `utf16Start`, -`utf16Length`, and a role from the shared editor syntax-theme contract. They -are sorted and non-overlapping, so native renderers can apply semantic colors -without maintaining another Java parser. The parser is platform-independent -and does not start a Java process or contact JDT. - -`spring.index` accepts `root`, workspace-relative `paths`, optional trusted -absolute `metadataRepositories` (and the legacy singular `metadataRepository`), -optional `textOverrides` keyed by relative path, and -`refreshDependencyMetadata`. The command reads Spring configuration -metadata from workspace JSON files and dependency JARs, indexes application -configuration documents and Java source, and returns deterministically ordered -`properties`, `values`, `propertyReferences`, `diagnostics`, `beans`, -`injections`, and `endpoints` collections. Locations use relative paths and -one-based lines and columns. - -`properties` include type, documentation, default value, and an optional Java -declaration. `values` include profile/override state and an optional declaration -target. `propertyReferences` represent Java `@Value` uses. Bean resolution -accounts for component names, `@Bean` aliases, interfaces, `@Qualifier`, -`@Resource`, `@Primary`, field injection, and constructor injection. Endpoint -entries expand multiple controller/method paths and retain the exact declared -HTTP method set. - -Dependency metadata is cached in the Rust process. Project-open indexing sets -`refreshDependencyMetadata` to `true`; debounced unsaved-buffer indexing leaves -it `false`, so editing Java or configuration files does not repeatedly traverse -and open the local dependency repository. The repository path is selected by -the platform composition layer and is never persisted in shared results. - -`mybatis.index` accepts `root`, workspace-relative `paths`, and optional -`textOverrides` keyed by relative path. It pairs Java mapper types with XML -`` documents and returns only statements that have both a -Java method and a matching XML `select`/`insert`/`update`/`delete` `id`. -Results are deterministically ordered by namespace, statement id, XML path, -and line. Locations use relative paths and one-based lines and columns. -`javaLine`/`javaColumn` point at the method name; `javaEndColumn` is the -exclusive UTF-16 column after that name. `javaEndLine` is the signature -terminator. `xmlLine`/`xmlColumn`/`xmlEndColumn` bound the statement `id` -value the same way. Hosts intercept go-to-definition only when the caret -is inside those name ranges; return types and parameters keep LSP -navigation. Java methods are collected from `tree-sitter-java` syntax -nodes, so nested generics, split signatures, and commented-out methods -are not mistaken for declarations. XML comments are ignored. Methods with -a method body, including `default` methods, are omitted from the Java -side of the index. Paths are indexed only when they are regular `.java` -or mapper `.xml` files no larger than 2 MiB; `pom.xml` and other -extensions are skipped before content is read. - -`diagnostics.redactText` accepts `text` and returns `redacted` with -credentials, tokens, and home-directory paths replaced by stable placeholders -(`` for secrets, `` for a macOS/Linux `Users`/`home` path or a -Windows drive-letter `Users` path). Hosts run every diagnostic-bundle log -line, panic report, and other free-form text through this command before it -is staged for export; the command never reads the filesystem itself. -Re-running it over already-redacted text is a no-op. - -`diagnostics.prepareLogEvent` accepts `{scope,message,fields}` and returns -`{category,scope,message,fields}`. The fixed categories are `application`, -`language`, `run`, `git`, `plugins`, and `performance`; unknown scopes route to -`application`. Recursive field redaction precedes JSON escaping, bounds nesting -and collection sizes, and excludes credential, source-content, buffer, history, -and environment fields. Hosts attach schema version 1, UTC RFC3339 timestamp, -severity, opaque process/session/operation/window identities and sequence numbers. -Native queues, filesystem access, directory fallback and write ownership remain -in platform adapters. See `fixtures/diagnostics/logging-v1.json` for budgets. - -`diagnostics.queryLogs` accepts bounded `{sources:[{category,text}],category?, -minimumLevel?,sessionId?,search?,since?,until?,limit?}`. It returns -`{content,truncated,matchedLines}`: a stable merged timeline, inclusive severity -and UTC time bounds, exact session filter, case-insensitive text search, and the -last 1–10000 matching lines. Hosts resolve current/previous session selection, -apply the module/session filters before the file-count cap, read bounded file tails, -discard partial first lines, and report both native -collection truncation and Core query truncation, including files omitted by the cap. -Time comparisons use parsed RFC3339 instants, so fractional precision and equivalent -UTC offsets do not change ordering or inclusive boundaries. Missing filters include all. - -Structured logging v2 adds pure opt-in commands. The v1 APIs and commands above -retain their behavior and public Rust signatures. Native adapters own writable -log roots, I/O, clocks, queues, and file lifecycle operations. Core never resolves -logs under installed application resources. Executable cases and numeric errors -are in [`logging-v2.json`](../fixtures/diagnostics/logging-v2.json). - -All commands use the existing `{id?,command,payload}` Core request/response -envelope. Malformed payload shapes return outer `invalid_request` without raw -input. Channel, query, and retention domain results are the union -`data:{result:...}` or `data:{error:{code,reason}}`; callers inspect that union even -when outer `ok` is true. Batch encoding returns -`data:{results:[{line}|{error:{code,reason}}]}` in input order. Reasons are safe -parser diagnostics; hosts localize codes for presentation. - -- `diagnostics.resolveEngineLogSubject` accepts - `{role,providerId,pluginId?,logSubject?}` and returns direct - `data:{channel,segment}` (no nested domain result). `role` is required and is - `language_server|vcs|build|toolchain|backend`; `providerId` is a required string. - It calls the same `SessionLogIdentity::new` as engine startup, including the - stable `invalid-` fallback for unsafe or - absent routing identities. This pure command does no I/O and can run before - startup. Malformed shapes and unknown roles use outer `invalid_request`, with - no new numeric or domain code. macOS caches its result by provider ID for - host-owned stages, cache cleanup, degradation and issue facts; a resolution - failure skips only that structured host fact and preserves startup/v1 behavior. -- `diagnostics.resolveLogChannel` accepts - `{channel,rotationIndex?:0,existingChannels?:[]}` and returns - `{result:{relativePath,category,pluginFilesPath?}}` or `{error}`. The category maps app/update/remote/agent - and overflow to application, editor/lsp to language, vcs to git, perf to performance, - run/debug/terminal to run, and plugins to plugins. The optional plugin files - path is returned only for `plugins//host` using `plugin_files_path`. Roots are `app`, `editor`, `perf`, - `lsp`, `vcs`, `run`, `debug`, `terminal`, `remote`, `agent`, `update`, `plugins`. - Channels are `root`, non-plugin `root/segment`, or `plugins//host`. Segments match - `[a-z0-9][a-z0-9._-]{0,63}`, excluding trailing dots and Windows device - basenames (`con`, `prn`, `aux`, `nul`, `com1`–`com9`, `lpt1`–`lpt9`, - including those followed by an extension). Paths are `app.log`, `vcs/git.log`, or - `plugins//host.log`; positive rotation indices produce `git~1.log` siblings. The `~` delimiter - cannot occur in a channel, so rotations never alias dotted channel IDs. - After 128 admitted channels a new identity maps to `_overflow.log`; existing - channels retain their paths. The overflow sink rotates as `_overflow~1.log` - and its header uses the channel `_overflow`. Rust `plugin_files_path` returns - `plugins//files/`. `session_directory_name`, - `parse_session_directory_name`, and `session_relative_path` convert explicit - RFC3339 start time/full UUID to `sessions/YYYY-MM-DDTHH-MM-SS_<8 lowercase - hex>`. Native adapters join these relative paths only to platform-owned - writable storage, never a bundle or installation directory. -- `diagnostics.encodeLogBatch` accepts `{validateCatalog?:false,deduplicate?:false,previousEvent?:event,headers?:[],events:[{ts,level,seq,event,op?,msg, - fields?:{key:scalar}}]}`. `level` is `DEBUG|INFO|WARN|ERROR`, `seq` is `u64`, - and `ts` is RFC3339 normalized to UTC milliseconds. Scalars become text; - arrays and objects fail per item. Malformed event shapes also fail per item. - Disk order is timestamp, level, `seq`, `event`, optional `op`, `msg`, then - lexical context keys (the truncation marker is last). Keys match - `[a-z][a-z0-9_]{0,63}` and cannot repeat or reuse reserved keys - (`ts`, `level`, `seq`, `event`, `op`, `msg`). Event/op - identities are nonempty bare tokens. Shared redaction runs before escaping, - including prefixed credential-key fields such as `client_secret` and - `auth_token`; the same structured-field redactor runs on queried v1/v2 - evidence. Bare values match `[A-Za-z0-9._:/@+-]+`; - other values use double quotes, escaping quote, backslash, newline, carriage - return, tab, and other controls as `\u{XX}`. Each result excludes a newline - and reserves one byte for it within 8192 bytes. Oversized lines shorten the - longest non-reserved context values first and append `truncated=1`. - If needed, the message is shortened next; mandatory identity/key overhead - that still cannot fit returns `-32046`. No context keys are silently dropped. - Rust `encode_header`/`decode_line` support - `#lithe-log v2 session= pid= app= channel= started=`. - `decode_line` returns a typed header or record and rejects invalid lines with - reasons. `repeated_event` and `dropped_event` create ordinary `log.repeated` - records with `count,first,last,of`, and `log.dropped` records with `count`. - With `deduplicate:true`, adjacent facts with equal event ID, fields, channel, - level, message and op merge within a batch into `log.repeated`; structural hashing - is followed by equality comparison. Results then correspond to retained records, - and the repeated record uses the last omitted event sequence. `previousEvent` - carries the prior batch’s last input for bounded cross-batch comparison; it is - validated again and never emitted by itself. - With `validateCatalog:true`, every ordinary event must exist in `catalog::EVENTS`; - required/unknown/invalid fields and a mismatched level fail before encoding. - Messages and channels are derived from the catalog, never trusted from input. - Before strict field validation, Core redacts declared error/text messages, removes - control characters, and truncates to at most 1024 bytes at a UTF-8 boundary. - `catalog::validate_fields` still rejects unnormalized strings, invalid types, unknown - keys, incomplete error components, and invalid code/domain tokens. - Path fields are redacted before template interpolation; unrecognized absolute - paths become ``. Item results additionally contain `channel` on success. - Codes: `-32053` unknown event, `-32054` missing field, `-32055` invalid field, - `-32056` unknown field, `-32057` catalog level mismatch. - Catalog validation rejects `event:legacy` as an unknown event. macOS collects only v2 - session files; its v1 files participate solely in age retention. The public v1 - APIs, old commands and shared v1 query compatibility remain available to Windows. - `log.dropped` and `log.repeated` accept only their documented field shapes and - an optional validated `channel`. No other identity bypasses catalog validation. - Optional `headers:[{session,pid,app,channel,started}]` returns ordered `headers` - results and `sessionPath`, using the same Core header/session grammar. These - fields are additive; the default generic PR1 batch remains compatible. - Overflow rotation paths are `_overflow~1.log` and `_overflow~2.log`. -- `diagnostics.queryLogsV2` accepts `{sources:[{relativePath,text, - startsMidLine?:false,firstLineNumber?:1}],channelPrefixes?:[],minimumLevel?,levels?:[], - since?,until?,search?,fields?:{key:value},op?,limit?,expression?,histogramBuckets?}`. The adapter marks a - tail beginning inside a line with `startsMidLine:true`; Core discards its - first fragment without counting it as invalid. Complete first lines stay. - Paths are session-relative v2 paths, `sessions//`, or legacy - `/lithe.*.log`. Channel prefixes match slash boundaries; severity - and parsed RFC3339 time bounds are inclusive; `levels` is an exact severity set - (intersected with `minimumLevel`; an empty array matches nothing); search is case-insensitive; - field/op filters match exactly, including reserved `ts` and `level` fields. Returns `{result:{records:[{channel, - relativePath,lineNumber,ts,level,seq,event,op?,msg,fields}],channelCounts: - {channel:{warn,error}},truncated,skippedInvalidLines}}` or `{error}`. - Counts reflect all filtered matches before the newest 1–10000 limit (default - 2000). Records sort ascending by parsed timestamp, seq, file, line, then - source order. The aggregate native-tail byte budget is 10 MiB. Omitted bytes, - partial first lines, or output limits set `truncated`. Invalid physical lines - are skipped and counted. V1 records use `event:legacy`, preserve available - sequence/op/context, and map application→app, language→lsp, git→vcs, - performance→perf, run→run, plugins→plugins. Queries redact decoded evidence. - Each returned record also includes `line`, the canonical, redacted v2 line for - presentation and frozen export (without a newline). -- `diagnostics.planLogCollection` accepts `{files:[{relativePath,sizeBytes,modifiedAt}], - currentSession,session,category?,recentSessions?,since?}`. Inventory is raw log-root-relative native - metadata; no contents are read before planning. `session` is `all|current|previous`, - and category is one of the existing six product categories. Returns - `{result:{reads:[{relativePath,offset,maxBytes}],truncated,estimatedBytes,sessions}}` or `{error}`. - Only validated v2 session log files are selected; plugin-owned `files/` and legacy - files remain retention inputs. Filters run before budgets. Order is newest session, - active before rotation 1 before rotation 2, descending native modification instant, - then lexical path. Session ties use descending basename. Previous means the newest - session other than current. Reads are capped at 200 files, 2 MiB per file and 10 MiB - aggregate. Any omitted eligible bytes/files set truncated. Duplicate paths or invalid - selections return -32058; invalid selected timestamps return -32035. Exact native - offsets and read sizes belong to Core; adapters validate containment and report I/O errors. -- `diagnostics.planLogRetention` accepts `{sessions:[{name,files:[{ - relativePath,sizeBytes,modifiedAt}]}],legacyFiles?:[same file shape], - currentSession,now,limits?:{maxAgeMs,totalBytes,perfBytes,pluginFilesBytes}, - startupCleanup?:false}`. Timestamps are explicit RFC3339. Defaults are 30 - days, 100 MiB combined, 20 MiB perf, 20 MiB per plugin files directory per - session. Returns `{result:{deletions:[{relativePath,directory,reason}], - warnings:[{session,pluginId,relativePath,sizeBytes,limitBytes}]}}` or `{error}`. - Paths are relative to the writable log root and sorted lexically. Whole - sessions expire first, combined pressure removes oldest whole sessions, - then perf files are removed from oldest surviving sessions and startup - cleanup removes oldest plugin files. Whole-session removal supersedes child - deletion. Reasons are `expired|totalBudget|perfBudget|pluginFilesBudget`. - The current session and all its files are always protected, even if budgets - cannot be satisfied. Runtime plugin overages emit warnings; startup may also - delete files in inactive sessions. Legacy files count toward the total but - only age can delete them. `should_rotate(size)` is true above 10 MiB; - `rotation_indices_to_delete` returns existing indices >=2 to remove before - shifting active→1 and 1→2, retaining three segments including active; - `rotation_paths_to_delete` resolves those indices to session-relative paths. - Unsafe paths, duplicate inventories, and negative age limits are rejected. - -#### Log-window pure APIs (PR4 stage A) - -These additions do not change any v1 public item or the bytes of v1 -`level/message/detail` evidence. All new request fields are optional. Standard -Core envelopes remain `{ok:true,data:...}`; domain failures of compose, format, -query and collection are `data:{error:{code,message}}`, and their successes are -`data:{result:...}`. Parse succeeds directly as `data:{terms,errors}` because an -incomplete draft is an expected editing state. Malformed JSON payload shapes use -the existing outer InvalidRequest failure. - -`diagnostics.parseLogFilter` accepts `{expression}` (at most 1024 UTF-8 bytes). -Returns `{terms:[{kind,key?,value,negate,start,end}],errors:[{start,end,code,message}]}`. -Ranges are half-open **UTF-16 code-unit offsets**, including negation and quotes, -for native text highlighting. For an over-budget expression, the sole -`expressionTooLong` diagnostic has `[0,0)` to avoid scanning unbounded input. -Kinds: `level_at_least|level|op|event|channel|regex|field|text`. -All terms intersect; a leading `-` negates a term, while `-` alone is text. -Whitespace separates terms except inside quotes or `/regex/`. Quoted values -support `\\` and `\"` escapes; other quoted escapes fail. A quoted bare token -always means text, including a leading hyphen or reserved-looking syntax. - -- `level>=debug|info|warn|error` is inclusive; `level:` is exact. - Aliases `dbg/inf/wrn/err` and operator names are case-insensitive. Parsed level - values normalize to the full lowercase label. Unknown levels are errors. -- `op:`, `event:`, `channel:` perform case-insensitive string prefix matching. - Expression channel prefixes intentionally do not require a slash boundary; - the existing `channelPrefixes` argument retains its boundary semantics. -- `/pattern/` matches the message case-insensitively using the existing Rust regex - engine: at most 256 Unicode characters, 1 MiB compiled size and DFA cache limits. - Whitespace inside regex delimiters is allowed; escaped slashes remain regex text. -- `key:value` / `key=value`, for `[A-Za-z0-9_.]+` keys other than reserved - operators above, match case-insensitive substrings in the field's string form. - Reserved record fields `ts/seq/msg` and context fields `server/plugin` are supported. - Keys compare case-insensitively. Reserved operators require `:`, not `=`. -- Other bare words use the existing search scope: channel/event/op/message/context. - Empty values, malformed quotes, unsupported escapes and invalid regexes are errors. - -Diagnostic codes: `expressionTooLong`, `regexTooLong`, `invalidRegex`, -`invalidLevel`, `emptyValue`, `unterminatedRegex`, `unterminatedQuote`, -`invalidEscape`, `invalidOperator`, `invalidQuote`. Messages are fixed technical -English; hosts localize by code. `queryLogsV2` rejects any erroneous expression -with **-32060, "Invalid log filter expression"**; hosts retain the prior results -and use parse diagnostics for the draft. - -`diagnostics.composeLogFilter` accepts `{expression,term:{kind,key?,value,negate?:false}}` -and returns `{expression}` in `result`. Positive predicates replace all existing -positive predicates of the same kind (field predicates additionally require the -same key), placing the new token at the first replaced position. Negative -predicates append unless an identical negative predicate exists. Non-regex values -compare case-insensitively for deduplication; regex patterns compare exactly because -inline flags can affect semantics. Other source tokens, whitespace and order remain -unchanged. Values are quoted/escaped as needed; text is always quoted. Invalid drafts, -invalid terms or a composed expression over 1024 bytes return -32060. - -`queryLogsV2` adds these fields in `result`: - -```json -{ - "records": [{"line":"...", "channel":"app", "relativePath":"app.log", "lineNumber":1, - "ts":"2026-11-03T00:00:00.000Z", "level":"WARN", "seq":1, - "event":"app.failed", "op":"one", "msg":"failed", "fields":{}, - "foldKey":"c4d60ef213ff7102", "epochMs":1793664000000, "opOffsetMs":0}], - "foldMinimumRun":3, - "channels":{"app":{"total":1,"warn":1,"error":0}}, - "channelCounts":{"app":{"warn":1,"error":0}}, - "histogram":{"startEpochMs":1793664000000,"endEpochMs":1793664000001, - "bucketMs":1,"buckets":[{"debug":0,"info":0,"warn":1,"error":0}]}, - "opSummary":{"op":"one","count":1,"firstEpochMs":1793664000000, - "lastEpochMs":1793664000000,"durationMs":0}, - "truncated":false,"skippedInvalidLines":0 -} -``` - -`queryLogsV2` additionally accepts optional `filterSince` / `filterUntil` RFC3339 -bounds, intersected with `since` / `until`. Each pair must be ordered (-32052 otherwise); -a disjoint intersection succeeds with zero records. This lets an export range and a -window time selection share Core's exact instant comparison. - -Optional `afterSequences:{sessionBasename:u64}` excludes records at or below the -specified session's sequence. Keys use the session directory grammar; the empty key -represents session-relative sources without a `sessions//` prefix. Sequences -from different sessions are never compared. The response's `sessionSequences` maps -each supplied session to its highest decoded sequence, before filters and limits. -Native live sources should carry their current session prefix so historical and -live queries use the same identity. Missing fields preserve existing queries. - -`foldKey` is lowercase 16-digit FNV-1a 64 hex over channel, canonical uppercase -level, event, message in that order; each UTF-8 value is preceded by its byte length -as a little-endian u64. This encoding is stable across versions/architectures. -Hosts group adjacent equal keys and collapse only runs of at least 3. -`epochMs` parses the record timestamp; submillisecond ordering still uses the full -instant. `channels` counts all decoded records before filters, within supplied input -and its byte budget. Existing `channelCounts` retains filtered-before-limit semantics. - -`histogramBuckets` must be 1..240 (else -32061). Histogram uses every predicate -**except since/until**, before output limiting. `histogram` is null when absent or -empty. Exactly the requested number of buckets is returned, including empty trailing -buckets; width is `ceil((maxEpochMs-minEpochMs+1)/count)`, at least 1 ms, and end is -exclusive `start + width*count`. The maximum event is always included. -`opSummary` and per-record `opOffsetMs` appear only with the existing explicit `op` -argument. Summary includes all matches of all query predicates before limit; -offset is relative to its earliest instant. An empty op result has count/instants/ -duration zero. Filtering op through expression alone does not add these fields. - -`diagnostics.formatLogRecords` accepts -`{lines:[String],format:"json"|"markdown",environment?:{appVersion,osVersion,architecture,plugins:[String]}}` -and returns `{text}` in `result`. Limits: 10000 lines and 4 MiB including one separator -byte per line; environment strings total at most 64 KiB and at most 1000 plugin IDs. -Budget violations use -32062. Each line is decoded again: decoder failures keep their -precise codes, headers/noncanonical/nonredacted lines use -32063. JSON without an -environment is one pretty object for one line, otherwise an array (including empty). -With environment it is `{environment:{...},records:[...]}`. Markdown is -`**Lithe**` plus optional version/OS/architecture JSON strings separated by ` · `, -optional `Plugins: [JSON strings]`, a blank line and an `ndjson` fenced block of -unchanged canonical lines followed by a newline. The fence grows if evidence contains -backticks. The evidence grammar remains canonical v2 even though the technical fence -label is `ndjson`. Keys/headings are fixed English report syntax, not UI copy. - -Collection inventory is bounded to 10000 entries. `recentSessions` must be 1..10, -otherwise -32058. It includes current (even with no eligible files or a skewed clock), then selects -the newest remaining sessions to fill N slots, **before** intersecting `session:all|current|previous`, category -and since. `since` is -inclusive RFC3339 (-32035 if invalid): a file qualifies if its session directory start -**or** its modification instant reaches the cutoff. Previous still means the newest -inventory session other than current, independent of category/time. Budgets apply last. -`sessions` lists eligible session names before read budgets, newest first, excluding -sessions with no eligible files; `estimatedBytes` sums selected `maxBytes` (already -bounded by each file size), before compression. Crash collection remains host-owned -and passes through `diagnostics.redactText`. - -Each v2 numeric domain code has one meaning. Existing outer Core string codes -are unchanged: - -| Code | Meaning | -| --- | --- | -| -32031 | Unknown channel root | -| -32032 | Unsupported channel shape | -| -32033 | Invalid channel/plugin segment | -| -32034 | Invalid full session UUID | -| -32035 | Invalid timestamp | -| -32036 | Invalid session directory basename | -| -32037 | Invalid context field key | -| -32038 | Reserved key reused as context | -| -32039 | Duplicate context key | -| -32040 | Invalid file header | -| -32041 | Invalid line grammar | -| -32042 | Invalid value escape | -| -32043 | Missing or misordered reserved fields | -| -32044 | Invalid unpadded u64 sequence | -| -32045 | Invalid log level | -| -32046 | Line cannot fit the byte budget | -| -32047 | Non-scalar context value | -| -32048 | Invalid event or operation identity | -| -32049 | Invalid retention inventory or limits | -| -32050 | Invalid query source path or line origin | -| -32051 | Invalid structured event JSON shape | -| -32052 | Reversed query time range | -| -32053 | Unknown catalog event | -| -32054 | Missing catalog field | -| -32055 | Invalid catalog field | -| -32056 | Unknown catalog field | -| -32057 | Catalog level mismatch | -| -32058 | Invalid collection inventory or selection | -| -32059 | Core event owner mismatch | -| -32060 | Invalid log filter expression | -| -32061 | Invalid histogram bucket count | -| -32062 | Log copy input exceeds budget | -| -32063 | Expected canonical redacted log record | -| -32064 | Invalid host plugin operation | - -Diagnostic previews freeze the selected redacted bytes before confirmation. -Windows returns a `snapshotId` from `preview_diagnostic_bundle`; export consumes -that exact ID once. Discard releases it on cancel; at most four previews remain -in memory for five minutes. macOS retains the staged files until export/cancel. -Both exports include `collection-status.txt` with truncation, dropped-event and -write-failure counts. Legacy flat logs remain available with the all-session -selection; native adapters never scan arbitrary workspace or terminal files. -Detailed diagnostics are limited to the selected category and expire after -15 minutes; warnings/errors remain enabled in installed builds. - -The native settings entry is Tools → Logs and Diagnostics on both platforms; -persisted category identities remain `Diagnostics` (macOS) and `logs` (Windows). -The timeline, diagnostics, locations, retention/cleanup and export sections follow -`fixtures/diagnostics/logging-ui-v1.json`. Clearing explicitly affects all managed -modules/sessions in the effective directory regardless of display filters. -Preview confirmation shows its frozen module/session/level selection. Native -views retain platform styling and present actual diagnostic scope and collection -health, rather than inferring them from the currently selected view filter. - -`diagnostics.buildManifest` accepts an `environment` object -(`appVersion`, `osName`, `osVersion`, `cpuCoreCount`, `memoryRssBytes`, -`diskFreeBytes`), a `files` array of already-staged, already-redacted entries -(`relativePath`, `sizeBytes`, `description`), and -`generatedAtEpochMilliseconds`. It returns a `schemaVersion`ed manifest with -`files` sorted by `relativePath` so the listing shown to the user before they -confirm a diagnostic export — and the zip's contents — are deterministic -across runs and across platforms. Hosts gather the environment and file facts -natively; this command only shapes and sorts them. The additive top-level -`redaction:"core-v2"` identifies the shared redaction boundary; schemaVersion remains 1. -Windows consumes the original fields and may ignore this marker. - -### Declarative plugins - -The `plugins.declarative.*` commands implement -[`plugins/v1`](plugins/v1/README.md). They are pure: they never read the -package or the workspace, so hosts pass the parsed `plugin.json` and the -relevant facts with every call. - -`plugins.declarative.validate` accepts -`{ "manifest": object, "hostCapabilities"?: { "": [integer] } }` -and returns `{ "status": "ok", "plugin": object }` with the normalized -manifest (names lowercased and sorted, argument order preserved), or -`{ "status": "rejected", "error": { "code", "message", "field"? } }` with a -stable `plugin.*` code. Every manifest declares `requires`, and a `requires` -entry the Core build does not know, or whose version it does not support, is -`plugin.api.unsupported`. When the host sends the capability versions it runs, -a manifest that requires one the host lacks is `plugin.api.unsupported` too. -Launches and executable resolution belong to the base contract, not to a -capability, and are never listed in `requires`. See Capability versions in -[`plugins/v1`](plugins/v1/README.md). - -`plugins.declarative.runPlan`, `plugins.declarative.discoverTests`, and -`plugins.declarative.testPlan` accept -`{ "manifest": object, "languageID": string, "request": object }` and -revalidate the manifest first. Their requests are respectively -`{ relativeFilePath, arguments? }`, `{ relativeProjectFilePaths }`, and -`{ scope: { kind: "workspace" } | { kind: "file", relativeFilePath } | -{ kind: "testCase", identifier, relativeFilePath? }, relativeProjectFilePaths }`. -Success returns `plan` (`executable`, `arguments`, `workingDirectory`, plus -`label` and `frameworkID` for tests) or `items`; refusals use the same -`rejected` shape. Only a malformed payload is an `invalid_request` failure. -`Lithe-core-rust/shared/plugins/contract/v1/fixtures/` holds the golden cases. - -`plugins.declarative.languageServerLaunchPlan` accepts -`{ "manifest": object, "languageID"?: string, "buildSystemID"?: string, -"vcsProviderID"?: string, "backend"?: boolean, "debugAdapterID"?: string, -"request": object }` with exactly one selector: `languageID` (a language server), -`buildSystemID` (a build provider), `vcsProviderID` (a VCS provider), -`backend: true` (the plugin backend), or `debugAdapterID` (a debug adapter). -Naming none or more than one is an `invalid_request` failure. The request is `{ pluginDirectory, stateDirectory, -workspaceStateDirectory?, logDirectory?, temporaryDirectory?, architecture, settings?, projectSettings? }`. The directories are absolute host paths used only -as substitution text; the command does not read or create them. `settings` maps -setting IDs to the values the user stored for every project, and -`projectSettings` to the open project's overrides; a project value counts only -for a `scope: "project"` setting, and a missing, unknown, or no longer -acceptable value falls back to the next layer and then the declared default. Success returns -`plan` with `launch`, `arguments`, `validationArguments`, -`runtimeRequirements`, `requiredDirectories`, `requiredPackagePaths`, and -`initializationOptions`, `hostIntegration`, `settings` (the effective -values), and `workspaceConfiguration` (the server's expanded -`workspaceConfiguration`) when the plugin declares them. A `buildSystemID` plan adds -`buildProvider: { buildSystemID, executesProjectCode, mayUseNetwork, -languageServer? }`; with `languageServer` the plan is that language server's -and the host reuses its session. An unknown -architecture or an empty directory is refused with -`plugin.launch.invalidRequest`; a language without a server, an undeclared -build system, and a build system without a provider with -`plugin.launch.unavailable`. - -A backend plan additionally returns `backend.hostServices`. These are the declared grants; -the host must provide only services it actually implements and must verify the -package and approved programs before starting the plan. A VCS or debug-adapter -plan likewise includes its corresponding typed descriptor. - -A language server declared with `launch.kind: "backend"` has -no command line in its manifest; the plugin's backend chooses it. The plan this -command returns is then only the first step: `launch` is `{ kind: "backend", -function, timeoutMilliseconds }` (30000 when absent) and `resolveParams` is the -params the host sends to that backend function, `{ serverID, platform: { os, -arch }, stateDirectory, workspaceStateDirectory, logDirectory, -temporaryDirectory, settings }`; the host adds `context` and, when the plugin -declares tool definitions, `tools`. The request must carry all four of -`stateDirectory`, `workspaceStateDirectory`, `logDirectory`, and -`temporaryDirectory`, and the plan lists them in `requiredDirectories`. Every language-server plan carries a `sessionPolicy` -(`serverID`, `requestMethods`, `commands`, `serializedCommands`, -`forwardNotifications`, `remote`, `gates`, `state`) for the engine to enforce. - -`plugins.languageServers.decodeLaunch` is the second step. It accepts -`{ manifest, languageID, request, result }`, where `request` is the first -step's request and `result` is what the backend function returned, and answers -`{ status: "ok", plan }` with the plan the host starts like any other (launch -`packaged` or `tool`, `arguments`, `environment`, `writablePaths`, -`requiredDirectories`, `initializationOptions?`, `workspaceConfiguration?`, and -`sessionPolicy` with the answer's `gates`) or `{ status: "rejected", error }`. -Refusals are `plugin.launch.unavailable` (no such server), -`plugin.launch.notBackend` (the server is not launched by a backend), -`plugin.launch.invalidRequest` (a missing directory), and -`plugin.launch.invalidResult`, `plugin.launch.outsidePackage`, -`plugin.launch.undeclaredTool`, and `plugin.launch.unwritablePath` for the -answer. The golden cases are -`Lithe-core-rust/shared/plugins/contract/v1/fixtures/languages/language-server-launch-resolution.json`. - -`plugins.languageServers.stateRetention` accepts `{ retention: { maxEntries, -maxAgeDays }, nowUnixSeconds, entries: [{ name, lastModifiedUnixSeconds }], -activeNames }` and returns `{ expiredNames }`: the inactive per-workspace state -directories the host deletes. Directories used by a running session -(`activeNames`) are never listed and count against `maxEntries`; of the others, -those older than `maxAgeDays` and those beyond the newest that fit are listed. -The host lists and deletes only directories under its own state storage, never -inside an app bundle or installation directory. - -`plugins.contentProviders.decode` accepts `{ result }`, the value a plugin -function returned for a document of its content scheme, and returns -`{ content }`. `result` is a string, or an object whose only member is -`content: string`; anything else is `invalid_request`, and so is text of more -than 1 MiB (1,048,576 UTF-8 bytes). The host opens `content` as a read-only -document and never interprets it. - -A `debugAdapterID` selects a `debugAdapters[]` entry with an adapter process -or a `tcpLanguageServer` transport (naming it together with another selector is -the same `invalid_request` failure); the plan adds `debugAdapter: { id, -providerID, displayName, adapterID, requests, selectors, configurationTypes, -transport, endpoint?, disabledCapabilities }`. An adapter that starts on the -selected runtime is refused with `plugin.launch.unavailable`. A -`tcpLanguageServer` adapter has no process of its own: its plan is the launch -plan of the plugin language server that `endpoint.languageID` names, so the -host starts that server as for editing, then sends `workspace/executeCommand` -with `endpoint.command` and connects to the loopback port the server answers -with (an integer or a numeric string from 1 to 65535). When that server's -launch is resolved by the plugin backend, the plan names -only `launch: { kind: "backend", function, timeoutMilliseconds }` with empty -`requiredDirectories` and no `resolveParams`: the server's own session asks -the backend with the directories of its start, so resolving the adapter needs -no `workspaceStateDirectory`, `logDirectory` or `temporaryDirectory`. Core validates every declared -`transport`, but a host starts only the transports it implements: the macOS host -runs `stdio` and refuses `tcpPort` and `tcpAnnounced` before starting the -process, with `plugin.launch.unsupportedTransport`. - -`debug.adapters.startArguments` accepts `{ manifest, adapterID, request: -"launch" | "attach", facts: { registration: { generation, currentGeneration }, -runtimeSelection?, target: { kind, path?, processID?, workingDirectory?, -executable?, host?, port?, pathMappings? } }, configuration? }` -and returns `{ status: "ok", arguments, connection? }`: the request's configured -`arguments` with each `targetBindings` name filled from the target unless the -configuration already sets it. `configuration` is a plugin backend's own DAP -arguments from `lithe/host/debug/start`, as `debug.decodeBackendConfiguration` -returned them; each of its keys replaces the argument of the same name, so the -host sends `arguments` to the adapter unchanged. A `noDebug` or `__` key there is -refused with `plugin.debug.invalidStart` and `field: "configuration."`. `program` is filled from `target.path`, or from -`target.executable` (an absolute path the host found) when the configuration -binds it to `target.executable`. Refusals use the `rejected` shape with -`debug.provider.stale`, `debug.request.unsupported`, `debug.runtime.stale`, or -`debug.target.invalid`. - -A target of `kind: "connection"` attaches to a debuggee on a host and port: -`host` is a DNS name or IP literal, `port` is 1–65535, and `pathMappings` is up -to 16 `{ local, remote }` source-root pairs whose `local` is an absolute path on -the host's platform. It is accepted only for `attach` and only by an adapter -whose attach configuration declares a `connection` binding; the binding names -the argument paths that receive each fact, so Core writes `hostName`, -`connect.host`, or a joined `host:port` string as that adapter reads it. A bad -`host`, `port`, or `pathMappings` entry is `debug.target.invalid` with the field -`target.host`, `target.port`, or `target.pathMappings`; so is -`pathMappings` sent to an adapter that declares no mapping argument, and a -`connection` target for a `launch` or an adapter without the binding -(`target.kind`). The response then carries `connection: { host, port, remote }`. -`remote` is `false` only for `localhost`, `127.0.0.0/8`, and `::1` read from the -text; every other host is `true`, including `0.0.0.0` and `::ffff:127.0.0.1`. -Core does not resolve names and opens no socket; the host asks the user before it -connects to a `remote` endpoint and does not remember the answer by default. The -launch plan's `debugAdapter.remoteAttach` is `{ pathMappings, maxPathMappings }` -for an adapter that takes a connection and `null` otherwise. The mappings reach -the adapter in the shape its binding declares (`objects`, `first`, `dictionary`, -or `pairs`); a shape that cannot hold them all (`first` takes one, a -`dictionary` takes each root once on its keyed side) refuses the target with -`target.pathMappings` instead of dropping some. - -`debug.adapters.executablePlan` accepts `{ manifest, adapterID, settings?, -projectSettings?, workspace?, targetPath? }` and returns `{ status: "ok", -plan }`. `plan` is `null` when the adapter's launch configuration declares no -`executable` lookup; otherwise `{ setting, configured, candidates }`. -`configured` is `{ path, source }` when the lookup's `file` setting has a -non-empty effective value (`source` being `project`, `global`, or `default`) -and `null` otherwise. `candidates` are the absolute paths to try in order, -expanded from `workspace` and `targetPath`; a candidate that needs a variable -the host did not send is left out. Core never touches the file system: the host -checks `configured` first, and a configured path that is not a runnable file is -an error, not a reason to try the candidates. - -`plugins.declarative.resolveSettings` accepts -`{ manifest, settings?, projectSettings? }` and returns `settings`: one -`{ id, value, source }` per declared setting, `source` being `project`, -`global`, or `default`. `plugins.declarative.workspaceConfiguration` accepts -the same payload plus a required `languageID` and returns `configuration`, -the expanded object, or `null` when that server declares none; a language -without a server of the plugin is refused with `plugin.launch.unavailable`. -Hosts never merge layers themselves. - -`plugins.declarative.settingsState` accepts -`{ manifest, globalDocument?: string|null, projectDocument?: string|null, - owner?: { pluginID, version } }`. -Send each complete captured UTF-8 document; null or omission means a missing -file. An existing empty, malformed, oversized, or duplicate-key document is an -error, not an empty layer. Native adapters must reject undecodable bytes rather -than replacing them before JSON transport. Storage remains -`{ pluginID: { settingID: value } }`, including dormant values. - -For an installed package, pass its captured registration as `owner`. Core -rejects a mismatched manifest ID or version with `plugin.settings.ownerChanged` -before returning editable sources or catalog metadata. This binds native package -identity; it neither enables capabilities nor grants process execution. - -Success returns `{ status: "ok", state }`. The state contains: - -- `pluginID`, `actions`, and `rows` in validated declaration order. Each row has - `declaration`, normalized `scope` and `effect`, `global` and `effective` - `{ id, value, source }`, and `globalStored`/`projectStored` flags. `global` is - the value without project overrides; `effective` uses the existing resolver. -- `metadata`: `{ displayName, version, vendor }` from the validated manifest, - for installed-plugin presentation without reinterpreting the manifest in a host. -- `sections`: `{ title, rows: number[], actions: number[] }[]`, ordered by - section title (the empty heading first). References are zero-based indices - into `rows` and `actions`; declaration order is retained within each section. -- `editors`: `{ global, project }`, each an array in exactly `rows` order. - Every entry contains `value`, `resetValue`, `source`, `editable`, `overridden` - and `invalidStored`, plus `input`/`resetInput` native-control projections. - These use `text` for integer/string/path fields, `on` for booleans, `selected` - for enum option index, or `checks` in multi-select option order. Core supplies the scope-specific value, inheritance after - reset, edit permission and invalid stored-value indication. Global-only rows - remain visible but read-only in the project projection. Hosts select a scope - and render this projection; they do not recompute grouping or inheritance. -- `settings` and `projectSettings`: raw stored values for declared IDs only. - Pass these to launch planners. Do not replace them with effective values: - executable planning must still reject an explicitly invalid stored path. -- `storage`: `{ globalRelativePath: "plugin-settings.json", - projectRelativePath: ".lithe/plugin-settings.json", maximumBytes: 1048576, - readRequired: bool }`. `readRequired` is false when the plugin has no setting - declarations; no preference document is then needed for that plugin. - Resolve these under the native application-preference and workspace roots. - A first call with missing documents provides this bounded read plan; publish - UI state only after the actual reads and the second checked projection. - -`plugins.declarative.editSettings` accepts -`{ manifest, scope: "global"|"project", document?: string|null, - edits: [{ id, value, text?: string|null }] }`. The batch has 1–32 unique declared IDs. -Null removes only that layer's override. Other values must satisfy the current -setting declaration; a global-only setting cannot be edited in project scope. -All edits are validated before any replacement is returned. - -Native text fields may supply `text` with `value: null`. Core parses trimmed -signed decimal integer text for an integer declaration; other kinds receive a -string and still pass the ordinary declaration validator. A non-null `value` -and `text` cannot be combined. In this mode null is a transport placeholder, -not a reset; without `text`, `value: null` keeps its existing reset meaning. -Malformed integer text, overflow, range violations and unsupported shapes reject -all edits. Editor text is bounded by the document byte limit. Hosts must not -validate or clamp declaration limits in a second implementation. - -Success returns `{ status: "ok", edit: { document: string, delete: bool, -changed: bool, effects: string[] } }`. `document` is complete UTF-8 JSON text. -Unrelated plugin groups and dormant settings survive; an emptied edited group -is removed. `delete` says the owned document is empty. `changed` compares stored -values; a semantic no-op returns the captured text unchanged. `effects` lists -only actually changed settings' declared effects, unique and alphabetically -ordered. The source and result must each fit the storage byte limit. - -The native owner still confirms the scope, checks captured bytes and -cancellation, preserves native permissions, publishes or deletes the owned -file, and rereads that same source. A project switch cannot retarget a save. -Only after publication may the host apply the declared effects. Core performs -no file I/O, starts no process, and grants no plugin capability through these -commands. They do not alter the plugin/SDK protocol or justify advertising -`settings: 2` before its complete UI and effects are implemented. - -Invalid documents use `plugin.settings.invalidDocument`; invalid batches, -values, or edit scopes use `plugin.settings.invalidEdit`, with a safe `field`. -Malformed envelopes use `invalid_request`; manifest failures retain existing -rejection codes. Rejection never includes partial replacement text. Rust and -desktop consumers share `shared/fixtures/plugins/settings-documents.json`. - -`plugins.installed.select` accepts `{ entries: [{ pluginID, version, enabled }], -includeDisabled?: bool }`, with at most 4096 native records. It returns -`{ selected: number[], rejected: [{ index, code }], maximumEntries: 4096 }`. -Indices refer to the supplied native array; paths stay in the host. Core reuses -its existing three-component `PluginVersion` comparator (numeric u32 components) -and returns one newest valid version per opaque native identity, ordered by ID. -Equal numeric versions retain the first input record; an exact duplicate version -is rejected rather than replacing that record. Enablement filters only after the -newest version is chosen, so a disabled newer version cannot revive an older one. -`includeDisabled: true` is for settings/inventory, not permission to execute. -Invalid identity/version records and later exact duplicates use -`plugin.installed.invalidIdentity`, `plugin.installed.invalidVersion`, and -`plugin.installed.duplicateVersion` indexed diagnostics. Healthy selections remain -available; the native owner must report diagnostics and must not abandon a -successfully started session merely because other plugins failed discovery. -This is metadata selection, not manifest validation, approval or admission. -Shared cases are in `shared/fixtures/plugins/installed-versions.json`. - -`plugins.declarative.decodeGrammar` accepts `{ manifest, languageID, grammar }`, -where `grammar` is the text the host read from the language's `grammar.path` -inside the installed package, and returns `language: { id, fileExtensions, -fileNames, grammar: { kind, scopeName, source }, configuration }`. `kind` is -`textmate`; `source` is the validated original JSON text, byte for byte, which -the editor's TextMate engine parses and registers under `scopeName`, the -grammar's own scope. Hosts run plugin grammars only off the editor UI thread, -with bounded backtracking and a time budget per line. A grammar Core -refuses is `plugin.grammar.invalid` with the failing `field`; a language -without static editor resources is `plugin.grammar.unavailable`. Configuration-only -languages return `grammar:null` and require no file read. Core reads no files. - -`plugins.hostApi.describe` accepts `{}` and returns `{methods:[{method,service,grant,coreServed}]}`. -`grant` is null for implicit methods, a service name for legacy aggregate grants, or the -exact method for individual grants. `coreServed` identifies methods dispatched inside -Core rather than by a native handler. The host admits a requested grant only when all of -its non-Core methods have registered handlers. - -`plugins.hostApi.authorize` accepts `{method,service,grants}` and returns `{allowed:true}` -or `{allowed:false,code}`. It uses Core's method catalog and capability rules; unknown or -mismatched methods return `plugin.host.unavailable`, and missing grants return -`plugin.host.permissionDenied`. This decision does not replace negotiated-version, -parameter, current-session, workspace-context, or resource-ownership checks. Hosts must -deny access if the Core call fails. -Shared cases are in `shared/fixtures/plugins/host-api-v1.json`. - -`plugins.editorActions.decode` accepts `{version,kind:"registration",value}` or -`{version,kind:"actions",value,text}` and returns `{registration}` or `{actions}`. -`version` is required; this Core accepts `0` and rejects any other request -version. Core validates literal selectors, one-based UTF-16 ranges and bounded opaque -function bindings. For `kind: "actions"` the request must carry the host's -`icons` and `sourceBytes`, which bound the icon names and the document size; -an action may carry `alternatives` that use the same icons. -`{version,kind:"invokeResult",value}` needs no `icons` or `sourceBytes` and returns `{}` or -`{reveal:{locations}}` for a clicked action. Hosts enforce -permission, live document versions and session ownership; HTTP/SQL business -semantics stay with plugins. See the plugin contract's independent editor -actions section. - -`plugins.editorProviders.decode` accepts `{kind:"registration",value,types}` -(the provider types the host routes) and returns `{registration}` with -lowercased literal selectors and Core's per-type `budgetMs`; a type outside -`types` is `not_supported` with details `providers.`. It also accepts -`{kind:"result",type,value,legend?}` (one provider function's LSP 3.17 shaped -result; semantic tokens need the registered legend) and returns `{result}` -normalized to `{locations}`, `{contents,range?}`, `{isIncomplete,items}`, -`{lenses}`, `{ranges}`, `{data}` or `{links}`. Hosts own calls, budgets, -stale-version drops and the merge after language-server answers; see the -plugin contract's editor language-feature providers section. The definition -merge is Core's too: `{kind:"mergeDefinitions",value:{documentUri,position,server,plugin}}` -takes the language server's and the plugins' validated `Location[]` and returns -the indices each side keeps as `{server,plugin}`. The server's answer comes -first; a plugin location equal to one already kept is dropped, and a server -location that covers the requested position itself (the caret already sits on -the declaration) yields when a plugin answered. - -`toolchains.instantiateLaunch` accepts `{ registry, tool, executable, home?, -entry?, runtimeArguments, arguments }` and returns `{ status: "ok", launch: -{ executable, arguments, versionArguments } }`. See -[Launching a tool definition](plugins/v1/toolchains/README.md#launching-a-tool-definition). - -`run.decodeStart` accepts `{ manifest, workspaceRoot, temporaryDirectory?, -params }`, where `params` are those of `lithe/host/run/start` as the backend sent -them. It returns `{ status: "ok", start }` with `start` being `{ label, -executable: { kind: "toolchain" | "packaged", value }, arguments, -workingDirectory, environment, temporaryFiles: [{ path, contents }], debug?, -rerun? }`. The tool must be listed in the manifest's `requiresTools`, and the -working directory must be a relative path of an existing directory inside -`workspaceRoot`, which Core checks read-only the way it does for run preparation. -`${temporaryFile:}` in arguments and environment becomes a file path under -`temporaryDirectory`, which the host supplies when the start has temporary files; -Core writes nothing, the host writes `temporaryFiles`. A start Core refuses is -`{ status: "rejected", error }` with `plugin.run.invalidStart` and the failing -`field`. See the plugin contract's -[run and debug sessions](plugins/v1/README.md#run-and-debug-sessions). - -`debug.decodeBackendConfiguration` accepts `{ manifest, params }` with the -params of `lithe/host/debug/start` and returns `{ status: "ok", start }` with -`start` being `{ adapterID, request, label, configuration }`, `adapterID` the -qualified ID. A start Core refuses is `{ status: "rejected", error }` with -`plugin.debug.invalidStart`, `plugin.debug.unknownAdapter`, -`plugin.debug.foreignAdapter`, or `plugin.debug.limitExceeded`. - -`outputLinks.match` accepts `{ scope, platform, caseSensitive?, workspaceRoots, -sources: [{ pluginID, matchers }], lines }` and returns `{ links }`; -`outputLinks.decodeResolution` accepts `{ reply }` and returns the location -`{ path, line?, column? }` or `null`. Neither takes a manifest: the host passes -the matchers of each enabled plugin as `plugins.declarative.validate` returned -them. A request Core cannot accept is `invalid_request`, not a policy outcome. -See the plugin contract's -[output link matchers](plugins/v1/README.md#output-link-matchers). - - -The `plugins.marketplace.*` commands are equally pure: hosts fetch indexes and -archives and pass the parsed JSON. `validateIndex` accepts -`{ index, sourceKind: "official" | "thirdParty", platform, hostCapabilities? }` -and returns `{ status: "ok", index: { plugins, rejected } }` with per-entry -`availability`; a listed version is available only when its `pluginAPIVersion` -is one Core supports and every capability it requires is in `hostCapabilities`; `resolveSource` accepts `{ url }` and returns -`{ status: "ok", source: { indexURL, repository, displayName } }`; -`installReview` accepts `{ manifest, expectedID?, expectedVersion?, -approvedPrograms?, hostCapabilities? }` and returns `{ status: "ok", review: { id, version, -permissions, programs, newPrograms } }`. Content problems use the same -`rejected` shape; see the Marketplace section of -[`plugins/v1`](plugins/v1/README.md) and `fixtures/marketplace/`. - -### Build systems - -The `build.*` commands implement the `buildSystems` capability of -[`plugins/v1`](plugins/v1/README.md). Every build tool shares them, so a host -has one build workflow and never branches on a build-system ID: Core plans -each process, the host runs it with the discovered executable, and Core -decodes what it printed or wrote. - -A build system with a `provider` requires `buildProviders: 0`. That capability -covers provider tasks, tests, run preparation, native debug preparation, -optional native configuration, and optional read-only model inputs. Core -validates and plans every one of them; a host advertises the capability only -after implementing its lifecycle and requests. macOS advertises it and routes -provider tasks, tests and run preparation through the existing workspace -session. Prepared applications use the existing native Run host. Windows does -not yet advertise Provider lifecycle support. - -Except `build.detect`, `build.projectOptions` and `build.resolveStoredOptions`, every command accepts -`{ manifest, buildSystemID, request }`, revalidates the manifest, and answers -`plugin.build.unavailable` for an undeclared build system or operation. -Results use the `plugins.declarative.*` envelope under the key named below; -selections the declaration does not allow are `plugin.build.invalidSelection`, -output that does not fit its decoder is `plugin.build.invalidOutput`, and a -malformed payload is an `invalid_request` failure. - -Executable candidates are normalized by the shared plugin executable-resolution -mechanism before platform filtering. A `setting` candidate emits -`{kind: "setting", settingID, path: absolutePath | null}` in the same `executables` -list; null skips, invalid stored values reject the plan, and native validation -failure is terminal. There is no separate `configuredExecutable` result. -See the plugin contract's **Shared executable candidates** section for ordering -and strict selection. - -Host-managed runtime probes use `java -version` (including Java 8), -`node --version`, and `go version`. Hosts execute the returned arguments and -pass combined stdout and stderr as `build.checkToolVersion.request.output`: -Java normally prints its version to stderr. Core normalizes legacy Java -`1.8.0_…` output to major version 8 before comparing the declared minimum, -and ignores `Picked up …` environment-option notices preceding the version. - -Paths in requests are workspace-relative with `/` unless named absolute. -`root` is the instance root from detection. Selected entities are -`{ name, path?, tags?, execution?, properties? }` as the decoded model -returned them. Plan requests share `{ root, options?, pluginDirectory?, -workspaceStateDirectory?, modelInputs? }`; `options` are the stored values by option ID, -and the directories are absolute host paths used only as substitution text. - -| Command | Request | Result | -| --- | --- | --- | -| `build.detect` | `{ workspaceRoot, plugins: [{ manifest }], options?: { : { : value } }, instanceOptions?: { : { : { : value } } }, instanceDefaults?: { : { : value } }, emptySelections?: { : { : [optionID] } } }` | `detection`: `{ instances, rejected: [{ index, error }], shadowed: [{ pluginID, buildSystemID, by }] }`; each instance is `{ id, pluginID, buildSystemID, displayName, root, markers, modelSource, optionFingerprint, options, droppedOptions }` plus `model` or `modelError` for `static` and `hostIntegration` sources; a `provider` source has neither. `options` contains accepted stored values after Core scope/root merging, including explicit empty selections; `droppedOptions` names rejected stored values without rewriting the source document. | -| `build.projectOptions` | `{ document }`, host-read persisted v1 Build options, without a manifest | `document`: validated storage with version 1 and systems; options, instance defaults, root values, explicit empty selections and saved custom choices are retained. Missing system fields normalize to empty maps; malformed, unsupported or oversized documents reject with `plugin.build.invalidOptionsDocument`. This pure operation never reads or writes a file and does not replace declared option resolution. | -| `build.invocationPlan` | `{ root, platform: "macos" \| "linux" \| "windows" }` | `invocation`: `{ buildSystemID, root, executables, environmentInputs, runtimeDependencies, version, minimumVersion }` with project-file paths joined to `root`; every runtime dependency with a known probe, host-managed ones included, carries `version: { arguments }` | -| `build.checkToolVersion` | `{ runtime?, output }` | `version`: `{ satisfied, version? }`; `runtime` checks that runtime dependency instead of the tool | -| `build.resolveModelInputs` | `{revision, sources: [{manifest, instances: [{buildSystemID, root, state, model?, options?}]}]}` from installed enabled current-workspace sources | `modelInputs`: version 1 public snapshot with exact optional producer slots, state, normalized projects/targets/content roots, configuration fingerprint and explicitly shared options; no tasks/run/settings/private functions; see the [plugin contract](https://github.com/Lithe-IDEA/Lithe-core-rust/blob/main/shared/plugins/contract/v1/README.md#optional-read-only-model-inputs) | -| `build.resolveOptions` | `{ options, modelValues? }` | `options`: `{ options: [{ id, displayName, kind, scope?, value, source, choices, allowCustom }], dropped, fingerprint }` | -| `build.configurationPlan` | plan fields and optional host-selected `tool` | `plan.provider` for `lithe/build/configuration`; no mutation, project or output-file parameters | -| `build.decodeConfiguration` | `{ result }` | `configuration`: bounded `litheBuildConfiguration` v1 native sources/fields; see the plugin contract | -| `build.configurationEditPlan` | `{ root, options?, workspaceStateDirectory, outputFile, snapshot, edits: { sourceID, revision, values }, tool? }` | Provider request `lithe/build/editConfiguration`; existing private staging only, no document bytes | -| `build.decodeConfigurationEdit` | `{ snapshot, edits, result }` | `edit: { sourceID, revision, changed }`; validates bounded receipt and exact draft/source identity; native adapter verifies staged hash and publishes atomically | -| `build.modelPlan`, `build.dependencyPlan` | plan fields plus `project?` (dependencies), `outputFile?`, and for provider sources `refresh?` (boolean) and `tool?: { executable }` (absolute path) | `plan`: `{ buildSystemID, root, arguments, environment, workingDirectory, execution, optionFingerprint, output, decoder, executesProjectCode, mayUseNetwork }`; for a `provider` source `{ buildSystemID, root, provider: { method, params }, decoder, executesProjectCode, mayUseNetwork, optionFingerprint }`, where `method` is `lithe/build/model` or `lithe/build/dependencies` and `params` is `{ buildSystemID, root, options, optionArguments, environment, project?, refresh?, tool? }`; `refresh` appears only when `true` and `tool` only when the host sent it | -| `build.taskPlan` | plan fields plus `task`, `project?`, `target?`, `modelTask?`, `userArguments?` | command `plan` with `arguments`, `environment`, `workingDirectory`, `execution`, and `optionFingerprint`; a provider task instead returns `provider: {method: "lithe/build/execute", params}` with effective options, selected task/entities, user arguments and effect metadata | -| `build.testPlan` | plan fields plus `project?`, `target?`, `suite?`, `case?`, `userArguments?`, `projects?` (the model's project directories) | command plan or `provider: {method: "lithe/build/test", params}`, plus `results`: `null`, `{ decoder, reports }` with workspace-relative globs (for the selected project, or for the root and every listed project when none is selected), or command-only `{ decoder: "hostIntegration" }`. Command filters that templates cannot place, such as a case without its suite when the tool only addresses `Suite#case`, are `plugin.build.invalidSelection`; Provider filters remain separate typed values and must be declared supported | -| `build.testDiscoveryPlan` | common plan fields plus `refresh?`, `tool?`; no project/output file | `plan.provider` for `lithe/build/discoverTests`, only with `test.discovery: true`, using the same effective options and effect metadata | -| `build.decodeTestDiscovery` | common plan fields plus canonical `result` | `discovery.tests` with validated `{id, suite, case, project?, target?}` selectors; bounded at 10,000 items/32 MiB, deterministic and exactly runnable; malformed replies reject in full | -| `build.prepareRunPlan` | common plan fields, `run`, required `project`/`target`, `userArguments?`, `launchOptions?`, `workspaceRoot?` (required for an explicit launch cwd); no output file | `plan.provider` for `lithe/build/prepareRun`, selected declaration/tags/paths/options validated; typed launch options must match the run's declared execution kind, and a service or task run requires them | -| `build.decodeRunPreparation` | `workspaceRoot`, instance `root`, raw `result`, same optional `launchOptions` | `launch` with portable `{executable:{kind,value},arguments,workingDirectory,environment}`; bounded strings and workspace directory containment, `plugin.build.invalidOutput` on invalid result | -| `build.prepareDebugPlan` | same selected fields as `build.prepareRunPlan`; run declares same-plugin `debug.adapter` | `plan.provider` for `lithe/build/prepareDebug`; no cross-package reference, and launch options are refused: they apply only to running a target | -| `build.decodeDebugPreparation` | `workspaceRoot`, instance `root`, selected `run`, raw `result` | `preparation` with declaration-owned `adapter`, normalized `root`, `program`, `arguments`, `workingDirectory`, `environment`; program is an existing regular file contained in the instance after canonicalization | -| `build.decodeModel` | `{ workspaceRoot, root, output?, outputFile?, result?, options? }`; `result` is the provider's JSON answer | `model`: `{ projects, targets, tasks, contentRoots, optionValues, run }`; `run` entries carry `buildSystem: { id, root, projectID, targetID?, optionFingerprint }` | -| `build.decodeTestResults` | `{ workspaceRoot, root, project?, projects?, output, notBeforeMillis?, suite? }`; without `project` the reports of the root and every listed model project are read | `results`: `{ tests: [{ suite, case, status, message?, durationMillis?, path?, line?, invocations }], summary: { total, passed, failed, errors, skipped }, success }`; repeated invocations of one case merge into the most severe status | -| `build.decodeDiagnostics` | `{ workspaceRoot, root, output }` | `diagnostics`: `[{ path, line, column?, severity, message }]`, deduplicated, inside the workspace only | -| `build.decodeDependencies` | `{ workspaceRoot, root, project?, output?, outputFile?, result? }` | `dependencies`: `{ project, dependencies: [{ name, group?, version?, scope?, properties?, children }], truncated }` | -| `build.syncFingerprint` | `{ workspaceRoot, root, projects, options? }` | `sync`: `{ fingerprint, watch }` | -| `build.languageImport` | `{ workspaceRoot, root, options?, executablePath? }` | `languageImport`: `null` without a `languageImport` declaration; `{ kind: "maven", mavenContext: { version, reactorPath, profiles, settingsPath?, localRepositoryPath?, mavenExecutablePath? } }` for `lsp.startServer.mavenContext` and `lsp.updateMavenConfiguration`; or `{ kind: "gradle", javaGradle: { wrapperPresent, offline, userHome? } }` for `lsp.startServer.javaGradle`, where `wrapperPresent` reports `gradle/wrapper/gradle-wrapper.properties` under `root` | - -Invocation candidates also include `{ kind: "toolchain", toolchainID, root }`. -Hosts resolve them through the same canonical project/subproject -selection used by Run, preserving terminal failure and project-code identity. -The optional plan hint `tool.environment` is a bounded string map (64 entries, -valid environment names, 32768 bytes per value, no NUL). It merges into Provider -`environment` before option contributions, for models, dependencies and native -configuration; task/test hosts apply the same selected environment. Only selected -lookup/runtime inputs cross this boundary, never the full process environment. - - -`outputFile` is an absolute host-allocated path the host creates fresh for -each run and removes afterwards; a command whose declaration writes to a -file refuses a plan without it. Unlike the `plugins.declarative.*` commands, -`build.detect`, `build.decodeModel`, `build.decodeTestResults`, -`build.decodeDependencies`, and `build.syncFingerprint` read bounded files -inside `workspaceRoot` (and the given `outputFile`); none of the commands -writes anything or starts a process. `Lithe-core-rust/shared/plugins/contract/v1/fixtures/build-systems/build-plans.json` -holds the golden plans and decoded outputs. - -### VCS providers - -The `vcs.*` commands implement the `vcsProviders` capability of -[`plugins/v1`](plugins/v1/README.md) and the -[VCS provider contract](vcs-provider-v1.md). Results use the -`plugins.declarative.*` envelope; a malformed payload, a relative -`workspaceRoot`, or an unknown operation is an `invalid_request` failure. - -| Command | Request | Result | -| --- | --- | --- | -| `vcs.detectRoots` | `{ workspaceRoot, plugins: [{ manifest }], mappings?: [{ id, vcs }] }` | `detection`: `{ providers, roots: [{ id, vcs, path, mapped }], ambiguous: [{ id, vcs }], unusedMappings, truncated, rejected: [{ index, error }], conflicts: [{ pluginID, vcs, by }] }` | -| `vcs.ownerOf` | `{ roots: [id], ambiguous?: [id], paths: [path] }` | `owners`: `[{ path, root }]` in request order; `root` is `null` outside every root or inside an unmapped ambiguous directory | -| `vcs.decodeReply` | `{ operation, capabilities, request?, reply }` | `result`: the normalized reply, or `plugin.vcs.invalidOutput` | - -`vcs.detectRoots` reads directory entries below `workspaceRoot` (at most eight -levels and 20,000 directories) and the marker names in its ancestors; it never -reads file contents, writes anything, or starts a process. The other two -commands touch no file. `shared/fixtures/vcs/model-v1.json` holds the -detection cases, decoded snapshots, and reply validation cases. -### Project generators - -The `project.*` commands back the New Project window. Payloads, results, and -problem codes are specified in the plugin contract's -[Project generators](plugins/v1/README.md#project-generators) section, and -`Lithe-core-rust/shared/plugins/contract/v1/fixtures/project-generators/project-plans.json` holds the golden -answers. Results use the `plugins.declarative.*` envelope: `catalog`, `form`, -`plan`, `name`, and `extracted`. Commands that take a manifest revalidate it -and answer `plugin.project.unavailable` for an undeclared generator. - -A project generator picks tool installations with `tool` fields. -The host lists the installations of each field's tool and sends them as the -form's `tools`; Core chooses among them, checks `minimumVersion`, expands -`${field..executable}`, and returns `toolPins` in the plan. Core lists no -installations itself, so the commands touch neither the file system nor a -process for tools. - -`project.generationPlan` reads template files below `packagePath` (bounded, -no symbolic links). `project.extractArchive` is the only command that writes: -it extracts into an existing staging directory the host created and never -replaces a file. Neither starts a process or downloads anything; the host -runs command steps, downloads archives, and moves the finished project into -place. - -### Remote connections - -`remote.probe` checks a saved SSH connection before a remote workspace is -opened. The request is `{ connection: { host, port?, user?, authentication?, -identityFile?, connectTimeoutSeconds?, keepAliveSeconds? } }`; unknown fields, -including any password, are rejected. `authentication` is `auto` (default), -`agent`, `privateKey` (requires `identityFile`), or `password`. `host` is a -name, address, or SSH configuration alias without a user. - -Core runs the system `ssh` with the probe of -[`remote-workspace-protocol-v1`](remote-workspace-protocol-v1.md)'s bootstrap -and relays every OpenSSH question through the same AskPass transport as Git. -Each question is an `authentication` event with `requestId`, `prompt`, -`secret`, and `attempt` on the request's event channel; the host answers it -once with `remote.authRespond` (`{ requestId, answer: string | null }`, -returning `{ accepted }`, with the bounds of `git.authRespond`). Null cancels -the prompt. Core never stores or emits an answer. - -The result is `{ status, host, diagnostics }`: - -| `status` | Meaning | -| --- | --- | -| `connected` | The shell ran and a server build exists; `host` is set | -| `unsupportedPlatform` | The shell ran, but no server build exists; `host` is set | -| `authenticationFailed` | Every offered credential was rejected | -| `hostKeyRejected` | The host key was declined or has changed | -| `unreachable` | The name did not resolve or the host could not be reached | -| `failed` | Another failure; see `diagnostics` | - -`host` is `{ system, machine, homeDirectory, serverTarget }` from `uname -s`, -`uname -m` and `$HOME`; `serverTarget` is the server's Rust target or `null`. -`diagnostics` is the redacted end of OpenSSH's standard error (at most -4 KiB). A malformed connection is `invalid_request`, a missing `ssh` is -`runtime_missing`, and cancellation or the five-minute bound are `cancelled` -and `timed_out`. - -`host.details` carries display facts read by the same shell, each nullable: -`hostName`, `operatingSystem`, `kernel`, `cpuCount`, `memoryBytes`, -`diskTotalBytes` and `diskAvailableBytes` (the file system holding `$HOME`), -and `uptimeSeconds`. - -#### Remote connections that stay open - -`remote.connect` takes `{ connection, servers: [{ target, path }], -serverVersion, installRoot? }`. `servers` are the read-only server builds the -host ships, by Rust target; `installRoot` defaults to `$HOME/.lithe-server`. -One OpenSSH process probes the host, keeps an installed server whose -`--identity` reports the same SHA-256 or uploads the matching build through -the same stream, and starts it, so the user authenticates once. Prompts are -relayed as for `remote.probe`. The result is `{ status, session, host, -diagnostics }`; `session` is `{ id, uploaded, hostName, userName, -homeDirectory }` and is set only for `connected`. A host without a matching -build is `unsupportedPlatform` and nothing is uploaded. - -Core keeps an open connection until `remote.disconnect` (`{ sessionId }`, -returning `{ closed }`) or until the host process exits; ending it terminates -the OpenSSH process tree. `remote.closeAll` (no payload, returning -`{ closed }` with the number of connections) ends all of them; the host calls -it while quitting because exiting without it can leave the OpenSSH tree and -the remote server running. Requests over it take `sessionId`: - -| Command | Request | Result | -| --- | --- | --- | -| `remote.readDir` | `{ sessionId, path }` | the remote protocol's `fs.readDir` result | -| `remote.readFile` | `{ sessionId, path }` | `{ data (base64), size, modifiedMs }`; files over 16 MiB are `not_supported` | -| `remote.writeFile` | `{ sessionId, path, data, expected? }` | `{ status: "saved", size, modifiedMs }` or `{ status: "conflict" }` | -| `remote.hostRequest` | `{ sessionId, method, params }` | the finite host method's result, including JSON `null` | -| `remote.hostInfo` | `{ sessionId }` | the original connection's handshake `host`, including OS, architecture, home and features | -| `remote.uploadFile` | `{ sessionId, sourcePath, path, sha256, mode }` | verified `{ size, sha256 }` | -| `remote.runWatch` | `{ sessionId, params: { root, excludeNames? } }` | waits until root removal or cancellation; relays `watch.started`, `watch.changed`, `watch.error` | -| `remote.runProcess` | `{ sessionId, params: { argv, cwd?, environment?, env?, pipeStdin? } }` | leader exit; relays `process.started`, `process.output`, `process.exit` | -| `remote.runTerminal` | `{ sessionId, params: { argv?, cwd?, env?, columns, rows } }` | leader exit; relays `terminal.started`, `terminal.output`, `terminal.exit` | -| `remote.captureProcess` | `{ sessionId, params, timeoutMilliseconds, maxOutputBytes }` | base64 `stdout`, `stderr`, nullable `exitCode` and `signal` | - -`remote.writeFile` replaces the file atomically on the host. With -`expected` (`{ size, modifiedMs }` from the read) a changed file is a -`conflict`; without it the file must not exist yet. A missing path is -`workspace_not_found`, a denied one `permission_denied`. A broken connection -fails with `connection_closed` and is forgotten, so the host reconnects; an -unknown or closed `sessionId` is also `connection_closed`. - -`remote.hostRequest` accepts finite filesystem, environment and port queries, -plus controls of existing processes and terminals. Creating a watch, process, -terminal, walk or tunnel through that command is `invalid_request`; creation -requires an owner that subscribes before sending the start request. Streamed -Core events use `{ type: "remote", event, params }`. Resource IDs are allocated -by Core and replace any caller-supplied ID. Startup output is bounded to 8 MiB. -Cancellation, invalid event data and disconnect release the subscription and -stop the host resource with a two-second cleanup deadline. -That deadline bounds the client's wait, not ownership: when creation has not -published yet, the host records teardown against the pending resource ID and -the creating worker cleans it after publication. A rejected or timed-out close -worker cannot turn an already accepted cancellation into an orphaned resource. - -Watch startup emits `watch.started` before buffered changes. The caller rescans -on startup, `overflow`, or watch error; `ROOT_REMOVED` ends the call. Watch paths -remain absolute host paths until the native adapter maps the owning workspace -back to placeholder URLs. A limit error preserves the partially working watch -and requests a rescan. Process capture requires a 1–30,000 ms deadline and -1–8 MiB output budget, rejects open stdin, and owns cleanup on overflow/timeout. - -`remote.uploadFile` reads a native absolute regular file and streams it to the -specified host using the optional `upload` feature. It verifies source size, -chunk acknowledgements and the commit receipt; failure attempts an uncancelled -abort with a two-second deadline. Each host call has a 30-second deadline, while -the host imposes the five-minute staging lifetime. This command does not approve -plugin code: the platform package adapter validates trust, version, manifest and -target architecture before invoking it. Target publication never overwrites. -Successful upload ownership transfers to the caller, which removes its run -snapshot after the process has ended. The native source and installation remain -read-only. See the staged upload limits in `remote-workspace-protocol-v1.md`. - -Plugin deployment requires both `upload` and `runDirectories` host features. -Through `remote.hostRequest`, `fs.createRunDirectory` accepts a caller-generated -`directoryId` and returns a fresh host `path`; `fs.releaseRunDirectory` accepts -the same identity and is idempotent. Allocation may finish after Core cancellation, -but the host owns it and orders a subsequent release after pending creation. -The platform retains the original connection and the identity before allocation, -releases after process destruction, and never falls back to unchecked `fs.remove`. -Nonpersistent disconnect or session termination also collects full snapshots; -persistent disconnect retains them until explicit release, shutdown or idle expiry. -Forced server termination recovery remains unsupported, rather than risking -deletion of inputs used by surviving processes. - -### Git patch discovery and rebase amendment preconditions - -`git.patchExport` accepts optional `metadataOnly` (default false). In metadata -mode it returns candidate file counts and rename identities with empty `patch` -and zero `byteLength`, independently of patch text encoding and exchange size. -See [Patch exchange](git-patch-exchange.md) and its metadata fixture. - -For Shelf capture, `git.patchExport` also accepts `includeUntracked: true` only -with `source: "unstaged"`. It snapshots the real index and exports the selected -working files, including untracked additions, relative to that index. The real -index remains unchanged. The default false retains tracked-only unstaged export; -`workingTree` remains HEAD-based. See the same contract and its -`unstagedWithUntrackedRequest` fixture. - -`git.rebaseControl` requires `expectedHead` when `amendMessage` is present. -Missing or stale HEAD rejects the amendment before writing; plain Continue, -Skip and Abort do not require this field. Both products must send the HEAD -reviewed by the amendment editor. See [Rebase sessions](git-rebase-session.md). - -Operation `rangeFormatting` (`textDocument/rangeFormatting`) formats the -required `range` and is offered when the server declares -`documentRangeFormattingProvider`, as the `rangeFormatting` feature. Its result, -like `formatting`, is `{ edits }`. Both formatting operations accept optional -`formattingOptions`, an object of LSP `FormattingOptions`: `tabSize` (integer -1-1024), `insertSpaces`, `trimTrailingWhitespace`, `insertFinalNewline`, -`trimFinalNewlines` (booleans), and other keys whose values are boolean, -integer or string. Supplied values are merged over the defaults `tabSize: 4`, -`insertSpaces: true`, `trimTrailingWhitespace: true`, `insertFinalNewline: true`, -`trimFinalNewlines: true`, so omitting the field keeps the previous behaviour. -Invalid values fail with `invalid_request`. - -The `featuresChanged` event carries `completionOptions: -{ triggerCharacters: string[], allCommitCharacters: string[] }` whenever the -`completion` feature is offered: the de-duplicated union of the server's -`completionProvider` and its dynamic `textDocument/completion` registrations -(empty arrays when none are declared). The event is re-sent when registrations -change them. Hosts use it, not a hard-coded list, to send -`completionContext.triggerKind = 2`. - -Operation `documentSymbols` (`textDocument/documentSymbol`) needs only the -document `uri` and is offered, as the `documentSymbols` feature, when the server -declares `documentSymbolProvider` (statically or by dynamic registration). Core -advertises `hierarchicalDocumentSymbolSupport`. The result is -`{ symbols: DocumentSymbolNode[] }`, always a tree of one shape whichever form -the server answered with: - -```json -{ "name": "Foo", "detail": null, "kind": 5, "tags": [], "deprecated": false, - "range": { "start": { "line": 0, "utf16Column": 0 }, "end": { "line": 9, "utf16Column": 1 } }, - "selectionRange": { "start": { "line": 0, "utf16Column": 6 }, "end": { "line": 0, "utf16Column": 9 } }, - "containerName": null, "children": [] } -``` - -`kind` is the LSP `SymbolKind` integer. Positions use the same zero-based -`line` / `utf16Column` coordinates as every other Core result. Conversion rules: -a hierarchical `DocumentSymbol[]` keeps its tree (`children` normalized -recursively; a missing `selectionRange` falls back to `range`); a flat -`SymbolInformation[]` (recognized per item by `location`) becomes childless -symbols whose `range` and `selectionRange` are both `location.range` and whose -`containerName` is kept as a hint, since Core does not infer a hierarchy from -names. `deprecated` is true for the legacy `deprecated` flag or tag `1`. Items -lacking `name`, `kind` or a range are dropped; a `null` or non-array result -returns `symbols: []`. Fixture: `shared/fixtures/lsp/document-symbols-v1.json`. - -Completion requests accept optional `completionContext` with LSP `triggerKind` -(`1` invoked, `2` trigger character, `3` incomplete-list refresh) and -`triggerCharacter` (required and one character for kind `2`). Missing context -means invoked. Core validates and maps this into LSP `params.context`. -Completion results carry `{ items, isIncomplete }`; array and null server results -are complete. The flag is list-scoped and survives empty lists and host provider -merging. Both Monaco adapters set `CompletionList.incomplete` and forward Monaco's -trigger context, so continued typing can request additional candidates instead of -filtering a partial cache. Existing document-version, cancellation and attachment -checks still reject obsolete results. The fixture is -`shared/fixtures/lsp/completion-refresh-v1.json`. - -Completion items returned by the LSP client and runtime preserve `insertTextFormat` -(`1` for plain text, `2` for snippets; absent values default to `1`). Hosts retain -this field through completion resolution. Monaco applies snippet text with its -snippet insertion rule so placeholders participate in selection and undo rather - -than being inserted as literal source text. The initialize handshake advertises -`completion.completionItem.labelDetailsSupport` and resolve support for -`labelDetails` so language servers attach typed class/namespace labels on -incomplete items. Core forwards `labelDetails` and omits null `data` so -`completionItem/resolve` can still produce import `use`/`import` edits. - -The shared JDT adapter sends `java.completion.guessMethodArguments: "off"` -through initialization, configuration notifications and section queries on both -platforms. JDT LS therefore leaves constructor and method argument lists empty -while preserving the snippet cursor inside the parentheses. Other completion -settings declared in the provider's initialization options are retained for the -session in initialize, didChangeConfiguration, and parent/leaf section pulls -(including favoriteStaticMembers and filteredTypes). This does not disable snippet -support or strip parameter text from arbitrary completion items; the shared -configuration fixture is `shared/fixtures/lsp/java-completion-v1.json`. - -### Java preparation snapshot - -Java `projectPreparation` runtime events carry a `result` object with `phase` -(`starting`, `importing`, `configuring`, `building`, `ready`, `stopped`), `status` -(`idle`, `loading`, `ready`, `failed`) and boolean `blocksRun`. -`lsp.pollEvents` and `lsp.waitEvents` also return `projectPreparation` (the current -snapshot or null) alongside `events`, so restored consumers need not replay the -queue. Event session identity and sequence retain their existing semantics. - -The snapshot reuses the existing service-ready signal, profile-task results and -configuration/build coordinator. Generic indexing never blocks Run. Profile -failure is visible but does not globally block unrelated targets; callers still -build the selected target before launching. A successful preparation does not -promise compilation success. Shared examples live in -`shared/fixtures/lsp/project-preparation-v1.json`. - -### Workspace commit preconditions - -`git.commitState` accepts `{ root }` and returns `{ head, branch, indexEntries, -gitlinks, stagedPaths, conflictedPaths }`. `head` is null only for an unborn branch; `branch` is -null for detached HEAD. `indexEntries` is Git's opaque NUL-delimited staged index -listing, including blob IDs and conflict stages; clients compare it without -parsing it. `gitlinks` lists stage-0 mode-160000 entries as `{ path, revision }`. -`stagedPaths` disables rename detection so both deleted and added paths are listed; -local selection guards must not miss the old side of a rename. -Read failures are errors, never an empty relationship list. -The requested root must still be Git's exact working-tree root. Removing a -nested repository's metadata must fail instead of falling back to its parent; -gitlink updates also verify the child boundary before reading its HEAD. - -`git.write` / `commit` optionally accepts `expectedCommitState` and -`gitlinkUpdates: [{ path, revision }]`. Gitlink updates cannot accompany other -operations or path-selected commits. Push also accepts `expectedCommitState` -to reject a changed repository under its writer lease. Workspace pushes set -`checkSubmodules: true`, invoking Git's `--recurse-submodules=check` so missing child -commits block a parent push even when only the parent pointer was selected. Under the existing repository writer lease, -Core verifies HEAD/index, validates all child HEAD revisions, then updates only -those parent index entries in a single `update-index --index-info` transaction -before the regular commit. Any changed precondition returns `invalid_request` -through the existing operation error envelope. Unrelated unstaged parent files -are not added. A failing hook may leave the pointer staged: clients must retain -partial progress and re-read state before retrying. External Git processes do -not participate in Lithe's lease; cross-repository commits are not atomic. - -`git.status.changes[]` additionally carries optional `submodule` with -`commitChanged`, `trackedChanges`, and `untrackedChanges`, normalized from Git -porcelain v2. The existing two-character `status` remains compatible. The optional request flag -`includeIndexOnlyChanges` retains staged additions deleted only from the working -tree (`AD`); both products enable it so every staged file remains visible. Omission -preserves the legacy final-worktree projection. Child dirt -alone is informational in the parent; only a changed commit pointer (or an -already-staged change) is eligible for the parent's staging checkbox. - -`git.status` accepts optional `repositoryRoots` (native bindings of discovered -repositories). Untracked paths owned by a nested root are excluded from the -parent list. Each change returns `canToggleStaging`; platforms render that -eligibility instead of reinterpreting submodule dirt. - -`git.status` accepts optional `summarizeUntrackedDirectories`. When true, Core -reads Git's collapsed untracked view and reports a wholly untracked directory -holding more than 100 non-ignored files as one change whose `path` ends with `/` -and which carries `untrackedFileCount`. Smaller directories keep one change per -file. A directory containing a nested repository is never summarized; it is -split until each summary is free of nested repositories, so staging (`stage`), -discarding (`discard`/`discardAll`) or diffing (`git.diff` with `untracked`) the -summary path acts on exactly the counted files. Omission preserves the -file-level projection. `git.untrackedDirectory` accepts `{ root, directory, -repositoryRoots? }`, where `directory` is a summary path ending with `/`, and -returns `{ changes }`: the directory's immediate untracked files plus each -subdirectory as a summary, using the same change shape and nested-root -exclusion as `git.status`. - -`git.workspaceCommitPrepare` owns the complete multi-repository policy. It accepts -`repositories: [{ id, root }]`, `message`, `amend`, optional `author` and -`signOff`, `push`, `includeParentReferences`, optional `previous` session for -retry, and optional `reviewed` plan for confirmation. `author` and `signOff` -have the `git.write` `commit` meaning, apply to every commit of the plan, and are -kept in `plan` (omitted when unset), so changing them changes the reviewed plan; -an invalid `author` fails the preparation with `git_commit_author_invalid`. `id` is a workspace-relative path with `/` -separators (`..` is allowed for enclosing repositories). Windows manually selected -roots on another volume use a stable `external//` virtual -workspace ID. `root` is the native -execution binding, never a portable identity. The response is -`{ session, reviewChanged, requiresConfirmation }`. Core reads all repositories, -finds real gitlink relationships, includes clean parents when requested, orders -children first, and adds push-only child work where needed. Cycles fail closed. -A changed reviewed plan must be displayed and confirmed again before any step. - -When `push` is set, Core also checks whether any repository's branch tracks a -differently named remote branch (a `divergent` push destination, see -`git.pushPreview`). Those repositories are returned as `pushTargetQuestions: [{ -repositoryId, localBranch, remote, upstream, upstreamBranch }]` (omitted when -empty) and the session must not be stepped: when a step reaches such a repository, -Core refuses it before writing that repository's commit instead of committing -something it cannot push. Clients answer by preparing again -with `pushTargets: { : { choice, remote, remoteBranch } }`, where -`choice` is `publish` (`remoteBranch` is `localBranch`) or `upstream` -(`remoteBranch` is `upstreamBranch`). The answer names the remote and branch that -were shown; if the tracking configuration moves before the push, the answer no -longer matches and Core asks again. Each repository is answered and checked -separately, answers are stored in `plan.pushTargets`, and a retry restores and -re-validates them from `previous` without the client forwarding them. Routine -pushes (`tracking` or `publish` destinations) never produce a question. - -`git.changelists` is a pure reducer: the host owns persistence and supplies -`state` (`lists`, `activeId`, and `assignments` grouped by repository root), -`files` (root, path, optional original path, and `isCopy`), optional repository -bindings, and an optional action (`create`, `rename`, `remove`, `activate`, -`move`, or `rememberRenames`). The response contains the validated state, one -membership per input file in order, and a commit `scope`. Deletion leaves an -explicit Default assignment so a file under an assigned directory returns to -Default. A rename inherits its source's membership, including directory or -implicit Default membership; copies never inherit or modify their source. -Ambiguous overlapping renames with different memberships fail closed. Inputs -and assignment counts are bounded. Hosts must reject stale asynchronous results -and protect persistence against concurrent windows. The shared fixture is -`shared/fixtures/git/changelists-reducer-v1.json`. - -An optional `pathScope: { include, paths, membership? }` restricts local -changelist commits. Legacy scopes use literal `paths` grouped by repository ID: -`include: true` allows only listed paths, while `false` excludes listed paths. -Core-generated scopes additionally include `membership: { activeId, -assignments }`, where assignments are grouped by repository ID and may include -explicit file or trailing-slash directory rules. Exact paths override the -nearest assigned directory; missing paths belong to Default. Core uses these -rules against the real staged paths and automatic parent-reference updates, -including paths staged after the UI snapshot. They are literal identities, not -Git pathspecs or a second staging index. Omitted `membership` retains legacy -exact-path behavior. Scope changes invalidate a reviewed plan; retries inherit -the original scope and may not replace it. Continuations retain the entire -scope and validate it before writes, alongside exact HEAD/index checks. -Omitted scopes preserve existing clients' behavior. Legacy examples: -`shared/fixtures/git/local-changelist-scope-v1.json`. - -`git.workspaceCommitStep` accepts `{ session }` and returns the next session, -executing at most one commit or push. Session fields are `plan`, last observed -`states`, per-ID `results`, `blocked`, `cursor`, `commandFailed`, `finished`, -`succeeded`, and `canRetry`. They are Core-owned continuations: clients return -them unchanged and must not independently choose roots, reorder work, or infer -completion. `plan` includes bindings, options, `orderedIds`, propagation and -dependency relations, reviewed states, `committedIds`, and `pendingPushIds`. -Each result separates `committed`, `pushed`, stable `status`, and Git `detail`. -Status keys are `pending`, `notIncluded`, `waitingForSubmodule`, `reviewRequired`, -`committed`, `committedPushPending`, `committedAndPushed`, `commitFailed`, -`pushFailed`, `headAdvanced`, and `outcomeUnknown`. - -Each step uses a fresh host operation ID and the existing Git writer lease, -process runner, authentication and event stream. Cancellation blocks dependent -parents while independent roots may continue under subsequent operation IDs. -A read-only cleanup deadline of five seconds reconciles a commit whose HEAD may -have advanced before cancellation. This command preserves the reconciled session -instead of replacing it with a generic late-cancellation envelope. Transport -errors before a continuation is returned must never be treated as success. -Retry re-inspects current state, preserves completed commits, and re-pushes -externally advanced completed branches before updating dependent parents. - -Sessions own no background resources and are retained only for the current -workspace lifetime. Native clients discard old responses after workspace changes, -show confirmation/progress, and drive steps until `finished`. macOS uses this -shared workflow, as does Windows through its workspace-scoped continuation adapter -and real staging checkboxes. The native products must not duplicate planning or retry policy. -See `shared/fixtures/git/workspace-commit-v1.json` for primitive payloads and -`shared/fixtures/git/workspace-commit-workflow-v1.json` for the complete planning -and continuation fixture consumed by Rust, Swift, TypeScript and Tauri adapter tests. - -### File encodings - -`file.read` and `file.write` accept optional encoding fields; payloads without -them behave as before (plain UTF-8), with the differences noted below. The -encoding rules are shared by macOS and Windows and mirror the native clients' -former implementations; codec tables come from `encoding_rs`. - -Encoding ids (case-insensitive; aliases in parentheses): `utf-8` (`utf8`), -`utf-8-bom`, `utf-16le-bom`, `utf-16be-bom`, `utf-16le`, `utf-16be`, `gbk` -(`cp936`), `gb18030`, `big5` (`cp950`), `shift-jis` (`shift_jis`), `euc-jp`, -`euc-kr` (`cp949`), `windows-1250`, `windows-1251`, `windows-1252` -(`cp1252`, `iso-8859-1`, `latin1`; ISO-8859-1 resolves to Windows-1252 as in the -WHATWG standard) and `koi8-r`. An unknown id returns `invalid_request` listing -the supported ids. Responses always use the stable id. - -`file.read` takes optional `encoding`. Without it Core detects: UTF-8 BOM, -UTF-16 LE BOM (unless the bytes start with the UTF-32 LE mark `FF FE 00 00`), -UTF-16 BE BOM, valid UTF-8, then GB18030, reported as `gbk` when the text -re-encodes to the identical bytes. Detection is strict: bytes valid in none of -these (or malformed UTF-16, such as a lone surrogate or odd length) return -`parse_failed`. With an explicit `encoding`, Core decodes through that codec and -replaces invalid sequences with U+FFFD (`lossy: true`), so a wrong choice is -visible; this is the "reopen with encoding" path. The result is -`{ path, text, encoding, hasBom, lossy, identity }`: `hasBom` says a leading BOM -was present and removed from `text` (plain `utf-8` also strips a UTF-8 BOM); -`identity` is the SHA-256 hex of the exact bytes read, for external-change -checks. The existing size limit and plain-text check still apply to the decoded -text. Compatibility: a UTF-8 BOM file previously returned `text` beginning with -U+FEFF and files in other encodings failed with `parse_failed`; they now decode -and report their encoding. - -`file.write` takes optional `encoding` (default `utf-8`) and `bom`. The `-bom` -ids write their BOM; `bom: true|false` overrides that for the Unicode encodings -(`utf-8`, `utf-16le`, `utf-16be` and the `-bom` ids); `bom: true` with a legacy -encoding is `invalid_request`. Text is encoded before the file system is -touched. A character the encoding cannot represent fails with error code -`encoding_unmappable`, whose `details` read `encoding=; scalarOffset=; -codePoint=U+XXXX` for the first offending scalar; nothing is written and no -replacement character is substituted. The result is `{ path, bytesWritten, -encoding, hasBom, identity }`, where `bytesWritten` is the encoded length -including any BOM. Fixture: `shared/fixtures/editor/file-encoding-v1.json`. - -`text.decode` and `text.encode` are the same rules for a host that reads and -writes the file itself (for example to guard against a file changing between -its check and its write). `text.decode` takes `{ bytes, encoding? }`, where -`bytes` is the standard base64 of the exact bytes, and returns `file.read`'s -result without `path`; detection, `lossy`, `identity`, the 32 MB limit -(`parse_failed`) and the plain-text check are identical, and base64 that does not -decode is `invalid_request`. `text.encode` takes `{ text, encoding?, bom? }` -and returns `{ bytes, encoding, hasBom, identity }`, with `bytes` the base64 of -what `file.write` would write; nothing touches the file system, so the host -needs no temporary file. Both run against the same fixture. - -### Decoded document text classification - -`document.classifyText` accepts `{ text }` and returns `{ isPlainText }`. -The input is already decoded Unicode, independent of the filename, language ID, -or tokenizer availability. Core uses the same control-character policy as -`file.read`: reject U+0000–U+0008, U+000E–U+001F, and U+007F; allow other scalars, -including tabs, line breaks, form feed, Chinese, and emoji. The entire decoded -text is inspected, not an arbitrary byte prefix. A missing or non-string `text` -returns `invalid_request`. Hosts retain responsibility for size limits, I/O, -encoding selection, and decode failures; a permission or decode error must not -be relabeled as binary content. - -The synchronous C ABI `lithe_core_is_plain_text(const uint8_t *, size_t)` borrows -UTF-8 bytes for the call, including embedded NUL, without allocating a JSON -copy. It returns `1` for plain text, `0` for binary control characters, and `-1` -for invalid UTF-8 or an invalid pointer/length combination. A zero-length input -is plain text and may use a null pointer. Nonzero input must point to at least -`length` readable bytes and `length` must not exceed `isize::MAX`. The Swift -bridge exposes the same lifetime and result contract. Fixtures live in -`shared/fixtures/editor/text-content-v1.json` and exercise both entry points. - -### Process lifecycle decisions - -`processLifecycle.resolve` accepts `{ context, settings, records }` and returns -`{ gracefulStopMilliseconds, decisions }` with exactly one decision per record, -in request order. `context` is `quit`, `closeTerminalTab`, `agentDisconnect`, -`crashRecovery`, `startupSweep`, `finalSweep`, or `closeWorkspace` (a project or -window closes while Lithe keeps running). Each record carries a host-chosen `id`, a -`kind` (`run`, `terminal`, `agentTask`, `languageServer`, `debugAdapter`, -`pluginTool`, `sidecar`, `daemon`, `container`, `oneShot`), the `ownership` proof -(`launched`, `scopeToken`, `instanceLabel`, `unproven`), and optionally -`declaredPolicy`, `recognizerId`, `recognizedPolicy`, `detached`, `idle`, and -`retained`, and `terminationApproved` (default `false`). Omitted settings take the documented defaults: busy terminals and -Agent tasks are confirmed one by one, closing a busy terminal tab asks, -daemons and containers are asked about, startup leftovers are asked about, Run -sessions are listed before they are stopped (`runServicesOnExit: ask`), and -ordinary processes get five seconds to stop (clamped to 1–60). - -A `run` record with `launched` ownership is a Run session the host tracks -itself. During `quit` and `closeWorkspace` its action is `confirmStop` with -`runServicesOnExit: ask` and `terminate` with `runServicesOnExit: terminate` -(reason `runServicesSetting`). Hosts show every `confirmStop` record in one -confirmation whose only choices are stopping all of them or cancelling the -close; a Run session cannot be kept, because its process tree and output pipes -belong to Lithe. Other `run` records, such as inventory items found only by -their scope token, keep the default `terminate`. During `closeWorkspace`, -records that would need any other question (`confirmEach`, `askOnExit`) -`defer` with reason `decidedOnQuit`. - -`finalSweep` runs after confirmation and without dialogs. Owned Agent tasks need -`terminationApproved: true` to terminate; otherwise their action is `defer` and -the host must preserve a recoverable record for individual startup confirmation. -Owned records with policy `askOnExit` (daemons, containers, detached processes) -without approval follow a remembered choice or `backgroundResources: keep` / -`terminate`; with the default `ask` they `defer` with reason -`backgroundResourceRequiresStartupConfirmation`, so a successor spawned after the -quit dialog is never ended unseen. Hosts approve the services the user chose to -end once quitting can no longer be cancelled. Other owned records terminate. -Unproven ownership and explicit retention still -win. Approval applies to exact PID/start-time identities; hosts may expand it -only through ancestry proved in the same snapshot. - -A decision reports the pre-setting `policy` (`terminate`, `confirmEach`, -`askOnExit`, `external`), the `action` the host performs (`terminate`, -`confirm`, `ask`, `retain`, `defer`, `ignore`, `confirmStop`), and a stable -`reason` for logs. -Unproven ownership is always `ignore`; a record the user kept is `retain`. -Agent tasks are never ended during `crashRecovery` and are always confirmed -during `startupSweep`, whatever the settings say. Hosts own discovery, -signalling, and dialogs. Fixtures live in -`shared/fixtures/process-lifecycle/exit-plan-v1.json`. - -`processLifecycle.inventory` accepts `{ scope, mode, applicationSessionId, -excludedProcessIds, retained, agentScopes?, approvedTermination, agentConnections, -processes, context?, settings }`. `agentScopes` restricts rows to named Agent -connections: omitted means unrestricted and an empty list means no rows. Hosts -must specify it when closing one connection. `approvedTermination` defaults to -an empty identity list; an item is approved only when every member matches. -`applicationSessionId` is the original application's session, persisted before -supervisor detachment and reused during recovery. Zero means unknown: Core does -not infer detached background services and asks about ordinary owned leftovers -at startup by default. Hosts must omit an unattended recovery plan for legacy -records with no original session. -`processes` is the host's snapshot of processes that inherited -`LITHE_PROCESS_SCOPE=`: `processId`, `startTime` (microseconds since the -epoch), `parentProcessId`, `sessionId`, `hasControllingTerminal`, `name`, -`executablePath`, `arguments`, `processScope`, `agentScope` and -`workingDirectory`. Processes of another scope, excluded IDs and retained -identities (`{ processId, startTime }`) are dropped. `mode` is `live` (the -running instance, which reports each Agent connection's `scope`, `agentName`, -`workspace` and `taskBaseline`) or `leftover` (an instance that is gone). - -It returns `{ items, plan? }`. Items come in this order: Agent tasks and Agent -infrastructure, background services, terminals, then everything else as -`run:other`. In live mode, an Agent process that started after its -connection's `taskBaseline` is a task. Tasks are grouped into trees by parent -chain (`agentTask:{pid}:{startTime}`). Earlier processes are -`agentInfrastructure:{scope}` (kind `sidecar`). An unknown connection, and every -Agent scope in leftover mode, normally becomes one `agentTask:{agentScope}` -item. During `startupSweep` these scopes instead split into independently -confirmed task trees with `agentTask:{pid}:{startTime}` IDs. During `finalSweep` -they split by exact identity so an unapproved late orphan cannot block approved -siblings. Known live connections keep their infrastructure and task grouping. -A background service is a positive session outside the application's session -whose members have no controlling terminal, even after its session leader exits. -Its representative is the live session leader, or the lowest-PID live root -whose parent is outside the session (falling back to its lowest-PID member). -The representative determines `service:{pid}:{startTime}` (`detached: true`). -Remaining processes are grouped by session as `terminal:{sessionId}`. With a -`context`, `plan` is the `processLifecycle.resolve` result for the items, using -scope-token ownership. Fixtures live in -`shared/fixtures/process-lifecycle/inventory-v1.json`. - -`processLifecycle.settle` accepts `{ settings, decisions, answers, remember }`. -`decisions` repeat each plan decision's `id` and `action`, plus an optional -`recognizerId`. `answers` maps IDs to `terminate` or `keep`. It returns -`{ terminate, keep, settings }`: - -- `terminate` and `confirmStop` records end and `retain` records are kept. - Hosts settle a `confirmStop` record only after the user approved stopping. -- `confirm` and `ask` records follow their answer, and an unanswered one is - kept. -- `defer` and `ignore` appear in neither list. -- With `remember`, answers to `ask` records that have a recognizer are written - to `settings.rememberedChoices`. - -Fixtures live in `shared/fixtures/process-lifecycle/settle-v1.json`. - -## Local IDE capability broker - -`ideHost.control` accepts `{action, arguments}` and delegates to the native -`lithe-ide-host` adapter. This local host command is not remotely exposed. See -[IDE API v1](ide-api/v1.md) for the allowlisted plugin/MCP capabilities, connection -ownership, authorization, output cursors and shutdown semantics. -Native `open` accepts a `toolExposure` selection of canonical tools and optional -argument names; a host that omits it serves the whole catalog. A selection is stored -with the connection and enforced before requests enter its queue. It can only narrow known schemas; it cannot define tool -types or permissions. Both MCP discovery and native plugin validation use it. -Native Rust hosts can attach an owner-checked, connection-lifetime callback using -`attach_ide_request_dispatcher`; this is separate from the request-scoped Git/Agent -progress callback. It forwards notification IDs only. `ideHost.control` action -`claim` atomically returns an unexpired, unclaimed request or null before any -application action. Closing the connection releases the callback. Windows delivers independent, -window-scoped Tauri events rather than an ordered Channel; a missing notification -must not block subsequent requests. - -### Java service hot replacement - -`debug.inspect` accepts the Java-provider extension `kind: "redefineClasses"` -with a caller-owned `operationId`. Unlike the inspection kinds, this operation -**mutates the running debuggee**; it requires a running or paused Java session, -but no selected thread. Platforms save documents and complete a successful JDT -`vscode.java.buildWorkspace` before submitting it. They must retain the original -launch target and compare its runtime paths with JDT before compiling; changed -paths require a restart instead of applying to a different output directory. - -The terminal result is `{ kind: "redefineClasses", changedClasses: [...] }`, -sorted and deduplicated. Empty means no classes were replaced. Java Debug Server's -`errorMessage` inside a successful DAP response becomes `operationFailed` with -`adapterRejected`; the debug session remains usable. Malformed replacement -results also fail only the operation. Replacement does not imply continue. -The fixture is `shared/fixtures/debug/hot-code-replace-v1.json`. - -Java debug launches append `-Dspring.devtools.restart.enabled=false` (also for -Core-planned direct JDT JDWP launches) so DevTools cannot restart the classloader during -HotSwap. Attach to independently launched JVMs does not change their options. -The Windows host maps `redefineClasses` to this operation and `cancelOperation` -to `debug.cancelOperation` with a `timedOut` reason for its bounded result wait. - -### Commit dates and history date queries - -`git.history`, `git.historyPage`, and `git.commit` return author `date` in Git's -wall-clock form and `dateUtcOffsetMinutes` (east positive). When both describe a -valid instant, `dateUnixSeconds` supplies the absolute Unix time. An unknown or -invalid offset omits the timestamp; older clients can still display the original -date. Hosts should use the timestamp for presentation and cache identity. - -`git.historyQuery` accepts up to 4,096 `entries` with unique, nonempty `id` -(up to 256 UTF-8 bytes), `date` (up to 128 bytes), optional `utcOffsetMinutes`, -and optional `fallbackUnixSeconds` for legacy dates without an offset. `afterUnixSeconds` is inclusive and `beforeUnixSeconds` is exclusive; an -unresolvable date is excluded. The result's `matchingIds` preserves input order. -Clients handling larger histories must batch requests and abandon stale results. -Local calendar boundaries (including daylight-saving transitions) come from the -host's system calendar, are converted to absolute seconds, and are passed to Core; -Core does not infer an OS timezone or assume every calendar day is 24 hours. See -`shared/fixtures/git/history-date-query-v1.json`. - -### Saved changes: directional patches and immutable stashes - -`git.patchPreview` and `git.patchApply` accept optional `reverse` (default `false`). -The preview token binds direction, patch bytes, target, index, HEAD and working files; -changing direction requires a new preview. Preview checks use disposable index copies -and preserve the real index bytes. Applying to `indexAndWorktree` may refresh its -stat cache after reviewed-state validation. Git remains responsible for applicability; -there is no partial-reject or automatic whitespace repair mode. -See `shared/fixtures/git/patch-exchange-v1.json`. - -`git.stashes` adds `oid`, the full immutable object identity, alongside the positional -`reference`. `git.diff` accepts `stashReference` to read a stash including its untracked -files. Stash write operations also accept the full object identity in `reference`; -Core resolves its current stash position under the existing writer lease and rejects -an identity that is no longer present. Legacy positional references remain accepted. -With `includeFileSections: true`, `git.diff` returns `files` in Git order for -working-tree, index, reference, commit, snapshot and stash reads. Stash reads -still require the whole-repository pathspec `["."]`. Each file provides a -validated `path`, optional `originalPath`, `status`, `isBinary`, additions and -deletions, UTF-8 `patch`, unified `lines`, aligned `rows`, and complete per-hunk -`hunks`. The flat `patch`, `rows`, and `hunks` are empty in this mode to avoid -a second full-document transfer. `omitFilePatch: true` additionally omits each -whole-file patch after validation while retaining exact per-hunk patches; hosts -that need a complete saved patch must leave it false. The `hasLossyLineEndings` flag records whether -display normalization omits CR or a missing-final-newline marker. Git's NUL -statistics and patch are captured by the same invocation; standard prefixes, -no color, and no text conversion are forced. Unsupported paths, mismatched -sections and patches exceeding 32 MiB are rejected. Regular diff reads replace -invalid UTF-8 for display and set `hasDecodingLoss`; their patches and hunks -must never be used as write material. Rename hunks additionally provide a -`contentPatch` against the destination path, so a partial stage or unstage does -not itself apply or reverse the rename. If absent, such a hunk is not writable. -Stash reads reject invalid UTF-8. -Without the flag, `git.diff` retains its flat response shape. - -`git.parsePatch` accepts `{root, patch}` and returns the same per-file shape -for a complete saved UTF-8 patch. Git validates file identity in one batch, -with a reverse inspection when rename/copy identities require it. Empty patches -return no files; invalid, unsafe or oversized inputs are rejected. Shelf retains -separate staged and working-tree patches and parses each layer once. Hosts may -render the unified and split rows, but must use only byte-faithful hunks for -writes and honor the decoding-loss flag. See -`shared/fixtures/git/saved-stash-v1.json` and -`shared/fixtures/git/parsed-diff-v1.json`. - -### Plugin web pages - -A host that shows a plugin's web tool window keeps the web view, the -package file reads, page state storage, file dialogs and the calls a page -makes; Core decides what the page is served and which bridge requests it may -make, and frames every answer, so all clients behave alike. Pages are -registered in Core for their lifetime: - -- `plugins.web.open` takes `{ manifest, windowID, platform, locale, theme: - { theme: "light"|"dark", variables: { "--lithe-*": value } }, buildSystems? }` - and returns `{ page, pluginID, windowID, scheme: "lithe-plugin", url, - bridgeVersion: 0, fileLimit, stateLimit }`. `url` is - `lithe-plugin:///`. A window that is not one of the - manifest's web windows is `invalid_request`. At most 512 pages are open. -- `plugins.web.close` takes `{ page }` and returns `{ cancelCalls }`, the - calls the host still has to cancel. Closing twice is not an error. -- `plugins.web.resource` takes `{ page, path }`, the decoded URL path, and - returns `{ kind: "bootstrap", mime, body }` for `/.lithe-host/bridge.js` - (the script that defines `window.lithe` over the web view's `window.viva` - channel), `{ kind: "file", segments, mime, document }` for a package file - the host reads itself (refusing symbolic links, non-regular files and - files over `fileLimit`), or `{ kind: "refused" }`, answered as missing. -- `plugins.web.document` takes `{ page, html }` for a file with `document` - true and returns `{ html }` with the content security policy (a meta - element) and the bridge script first in the document. -- `plugins.web.request` takes `{ page, message }`, the text the page posted - (`{ id, method, params }`), and returns `{ reply }` (a refusal to post back - at once), `{ action: { id, method, params } }` (checked, normalized - parameters for the host to carry out), or `{ ignored }` (no request ID, - not JSON, over 1 MiB, or the page is closed). A `functions.invoke` action - carries the `call` it holds (page-chosen or host-made) and `progress`, - whether progress may reach the page; at most 16 calls are held, and a - page-chosen ID is never accepted twice. A dialog action holds the page's - only dialog. `build.*` and an `instance` parameter are answered only when - the page was opened with `buildSystems`. -- `plugins.web.reply` takes `{ page, id, method, call?, result? | error?: - { code, message, pluginErrorCode? } }`, releases what the action held and - returns `{ message }` to post, `null` after the page closed. -- `plugins.web.event` takes `{ page, event, payload }` for - `functions.progress`, `ui.themeChanged`, `build.instancesChanged` or - `build.runChanged` and returns `{ message }`, `null` when the page is - closed or the progress is for a call that ended or has no page ID. - -### Native plugin UI data - -`plugins.nativeUI.validateData` accepts `{ ui, data }`, where `ui` is the -validated native declaration (`schemaVersion` 0) and `data` is a provider's `{ nodes }` -reply. It returns `{ status: "ok", nodes }` or -`{ status: "rejected", error: { code: "plugin.ui.invalidData", message } }`. -Malformed envelopes remain Core `invalid_request` failures. The operation uses -the same identity, literal label, nesting and node budgets as manifest validation -and rejects data above 1 MiB. Form declarations validate bounded input/select/checkbox -controls (including search/editor/segmented/stepper), typed scalar defaults, choices, -info, button action references/width policies and onCommit references; form source replies -require empty nodes. Hosts inject this typed operation into their -presentation feature; views never call the C ABI. Windows can reuse validation -when it later adds a native renderer; Core support does not make Windows -advertise native plugin content. - -### Project JDK supplied to JDT LS - -`lsp.startServer.javaRuntimes` entries contain `homePath`, `version`, and optional -`isDefault` (default `false`). Platforms use their existing project toolchain selection, -including explicit JDK homes outside discovery roots. The server process JVM remains -independent. Core registers one JDK per Java major; the first valid selected candidate -wins its major and alone receives `default: true` in `java.configuration.runtimes`, -both at initialization and in configuration responses. Empty homes and unparseable versions -are ignored during projection; platform adapters validate explicit choices before launch. -Legacy callers that omit `isDefault` retain their previous behavior. -Fixture: `shared/fixtures/lsp/java-project-runtimes-v1.json`. - - -### Workspace indexing policy - -`workspace.configureIndexing` accepts `root`, `manualExcludedDirectories`, -`includedDirectories`, `gitIgnoreEnabled`, optional `refresh` and `paths`. -Directory identifiers are workspace-relative `/` paths; `.` names the root. -Manual ancestor exclusions take precedence over every include exception. An include -exception disables automatic Git exclusion for its subtree, while allowing a -more-specific manual exclusion. Ancestors needed to reach an exception remain -traversable. Standalone ignored files are not converted to directory exclusions. -Git checks use native `check-ignore` and protect tracked descendants with `ls-files`. -No `.gitignore`, index, or project configuration files are written by this command. - -`ownerId` optionally identifies one workspace runtime lifetime. Independent runtimes -using the same canonical root hold independent leases. Hosts acquire/release leases -with workspace membership, never with tool-window or tree mounting. Omitting -`ownerId` retains the legacy revision-guarded lease. A native window host must reclaim -its leases on destruction, including installations that finish after destruction. - -`workspace.refreshIndexing` requires `root`, `ownerId` and its published `revision`. -It validates the live lease, retires the scan generation and clears Git decisions and -search caches without installing settings, acquiring a lease or replacing any owner's -release token. Closed or superseded leases return `cancelled`. Its `IndexingStatus` -retains the supplied release token; directory reasons remain lazy, just as for configure. -Without a running language service it does not scan directories or prewarm content. -Live providers reuse the existing directory-only preparation and withdraw excluded -working copies and diagnostics. Hosts resynchronize still-open buffers after success. - -Windows maintains one invalidation queue per native canonical root. Events advance an -epoch before fan-out to WebViews; waiting queries consume the same queue and reject -results if its epoch changes. Concurrent refresh requests share the completed root status -but retain their own envelope and lease token. Lock waits have a 30-second deadline; -refreshes consume at most three epochs, leaving newer events dirty on failure. Root -membership and watcher registrations belong to runtime lifetimes, including background -workspaces. Preferences and refresh completion use distinct events to avoid write loops. -The native host injects the window identity for Git/file watcher ownership, shares paths -and releases only the last holder; window destruction also revokes late registrations. - -### Directory rules, copy names and history events - -`workspace.reduceDirectoryAction` takes `{ path, action, caseInsensitive?, rules }`, where -`path` is workspace-relative (`.` is the root), `action` is `{ kind: "setRole", role }`, -`{ kind: "exclude" }` or `{ kind: "cancelExclusion" }`, and `rules` is the root's persisted -`{ marks, includedDirectories, previousRoles }`. It returns `{ changed, rules }`; hosts persist -`rules` verbatim and skip the write when `changed` is false. Excluding remembers the replaced role in -`previousRoles` and canceling a manual exclusion restores it. `workspace.relocateDirectoryRules` -takes `{ source, destination?, caseInsensitive?, rules, target? }` and returns `{ rules, target }`: -keys at or below `source` leave `rules`, reappear under `destination` (in `target` for a move across -workspace roots) and are dropped when there is no destination. Request and response pairs are pinned -by `shared/fixtures/workspace/directory-rules-v1.json`. - -`workspace.planDuplicate` takes `{ name, isDirectory, existing?, caseInsensitive? }` and returns -`{ name }`; `workspace.planPaste` takes `{ items: [{ name, isDirectory }], existing?, caseInsensitive? }` -and returns `{ names }`. A file name is split at its last dot, a directory name and a leading-dot name -are not. Core never touches the file system: the host passes the names it has seen to exist, creates the -copy without replacing anything (`FileManager.copyItem`, which refuses an existing destination, on macOS; -`create_new` and `MoveFileEx` without replacement on Windows) and, when that fails because the name -appeared meanwhile, adds the name to `existing` and plans again. After 512 rounds the host reports -the stable `destination_exists` error. Cases are in `shared/fixtures/workspace/file-copy-names-v1.json`. - -`history.planEvent` takes `{ event }` and returns `{ snapshots: [{ source, reason }] }`. `source` says -whose text the host records: `beforeChange` (the text an event replaces), `afterChange` (the text it -produced) or `editorBuffer` (unsaved editor text that is discarded). A save or auto-save records -`beforeChange` and `afterChange`, so a snapshot of the saved state exists immediately. -Cases are in `shared/fixtures/history/event-plan-v1.json`. - -The directory-action sequence contract is `shared/fixtures/workspace/directory-actions-v1.json`. -Role changes retain include exceptions, explicit exclusion deletes only its own exception, -and canceling Git exclusion preserves the current role. Only canceling a manual exclusion -restores the remembered role. Manual ancestor exclusion cannot be overridden. - -`revision` is the requesting owner's release token. Explicit policy replacement or legacy `configureIndexing` refresh -replaces only that owner's token; other owners retain their valid release tokens; internal Git watcher refreshes retain it while advancing a -separate Core-only scan generation used by index and language-service caches. -Changing settings or `refresh: true` retires the old generation and discards its -cache. Hosts persist settings in application storage and reinstall them on project -open. Consumers must not create a new policy root for a scoped search; search scopes -are subsets of the registered project root. `paths` asks for additional effective -directory reasons without changing the generation. `excludedDirectories` is a -resolved, lazily populated set, not a complete enumeration of the filesystem. -`gitIgnoreFailed` means automatic decisions are incomplete; manual exclusions remain -in force. Hosts must display this state instead of treating it as empty rules. - -Tree listings deliberately remain available. Snapshot inventories, filename and -content indexes, symbols and replacement preview candidates obey the policy. -Generated filename search cannot bypass it. Language-server working-copy sync is -blocked for excluded paths. Java additionally receives import exclusions; this does -not promise resource-scan exclusion for imported or build-declared modules. Rust and Go receive native configuration overlays that preserve user settings; -other providers may continue background scanning and hosts must display that limitation. - -`workspace.snapshot.incompleteDirectories` is present when optional child directories -could not be scanned. Hosts retain browsing but must not treat that inventory as an -authoritative deletion list or refresh automatic analysis from it. Root failures and -cancellation remain errors. `workspace.releaseIndexing` removes only the matching owner/token lease. The last -release retires the policy and clears cached Git decisions and indexes; a small retired policy record rejects late work -until the next explicit configuration for that root. - -`workspace.search.scopePaths` optionally limits candidates to workspace-relative -files or directory subtrees before applying result caps. It never establishes a new -policy root. Empty scopes search the full registered project. - -Inventory snapshots, search (including Search Everywhere and its pages), index -warm/update requests and replacement previews accept optional `workspaceRoots`: -the absolute native roots explicitly opened in the calling workspace. Omission or -an empty array preserves single-root behavior. Core canonicalizes the roots and -prunes strict descendant roots from the current root's inventory and indexes; -the host queries each descendant using its own policy. Directory listing remains -available. Explicit replacement paths and text overrides cannot bypass ownership. -The effective descendant set is part of each index cache key and is retained for -save/watcher updates. It is request-local, never inferred from process-global -indexing policies or retired roots. Hosts discard in-flight results when their -workspace root set changes. Removing a nested root restores parent scanning. -An unavailable non-current root does not fail a scoped request for an accessible -root; a missing descendant retains its ownership boundary until removed by the host. - -### Consumer tool preferences (development) - -`toolchains.resolveConsumerPreferences` accepts `{document, directory, consumer?, tool, fixed?}`. -The document follows `toolchain-consumer-preferences-v1.schema.json`; `directory` is workspace-relative -and `consumer` is an inert `pluginID/contributionID` identity. A non-null explicit Run `fixed` value -wins. Otherwise the nearest consumer choice precedes general directory/workspace choices. -`inherit: workspace` reads the workspace tool afresh; `inherit: consumer` in a directory reads that -consumer's workspace preference and then the workspace tool. A consumer's `inherit: tool` reads -the general tool at the original requested directory, including its nearest general override; -following a workspace consumer reference preserves that original directory. General tool entries -cannot refer back to consumers or to themselves, so the reference graph cannot form cycles. -An absent general choice returns `fixed: null`, -which means the normal toolchain resolver still owns automatic/project/global selection. - -The response is `{status: ok, preferences: {fixed, source, inheritance, stored}}`, or the standard rejected -`plugin.toolchain.invalidParams` / `plugin.toolchain.limitExceeded` envelope. Fixed values remain -inert inputs to the existing resolver; this command cannot register a tool, prove package trust, -resolve a version, write preferences or grant permission to run a program. Native consumers must -recheck their source bytes and active definitions after discovery. The shared fixture is -`shared/fixtures/toolchains/consumer-preferences.json`. The machine-local Run document stores it at `toolchain.preferences`. Run editor updates omit to -preserve, or pass an empty v1 document to reset. `runConfig.projectToolchain` returns the inert -`toolPreferences` alongside existing fields. The native host supplies the current -installed plugin/build-system contribution identity; both native Build consumers read these preferences -before the existing proof pipeline and recheck their bytes afterwards. `stored` is the value at exactly -the requested scope, or null when that scope inherits. It is separate from the resolved `fixed` input. - -`toolchains.editConsumerPreferences` accepts `{document, directory, consumer?, tool, value}`. -`value` is required: null removes only that scope's override; otherwise it is a fixed selection or -an allowed symbolic inheritance reference. The command validates both the original and edited -documents, preserves siblings, prunes empty containers along the edited path, and returns -`{status: ok, edit: {document, preferences}}`. Resetting an absent value is a no-op. - -`runConfig.updateToolPreferences` accepts `{localDocument, preferences}` and returns -`{document}` containing the replacement local Run JSON. It replaces only `toolchain.preferences`; -it does not materialize legacy language/build defaults, migrate v1 Run entries or modify other fields. -The captured `localDocument` is required; this command performs no native I/O. Unknown document -versions are rejected without numeric narrowing. The native adapter owns bounded reads, cancellation, -read-only package boundaries, optimistic comparison, metadata-preserving atomic replacement and -read-back. No editor command discovers or executes tools. Global defaults and complete one-time -legacy migration remain incomplete; these APIs alone do not complete Stage D. - -### Test run verdict - -`build.resolveTestRunOutcome` takes `{ termination, scope, summary? }`, where -`termination` is `{ kind: "exited", exitCode }`, `{ kind: "timedOut" }` or -`{ kind: "cancelled" }`, `scope` is `workspace`, `project`, `suite` or `case`, -and `summary` is the `{ total, passed?, failed?, errors?, skipped? }` the -provider's decoded results reported, or `null` when the run has no structured -results. It returns `{ outcome, success, exitCode }` with `outcome` one of -`passed`, `testsFailed`, `exitedWithError`, `noTestsMatched` (an explicit suite -or case ran nothing), `noTestsFound` (a project or workspace scope ran nothing), -`timedOut` or `cancelled`. Interruptions never claim a test outcome, reported -failures outrank the exit code, a non-zero exit outranks an empty result, and a -zero exit with decoded results but no executed test is not a pass. Counts that -exceed `total` are `InvalidRequest`. No tool or selector syntax is interpreted. -Hosts localize the outcome. Cases: `shared/fixtures/build/test-run-outcome-v1.json`. - -### Test history merge - -`build.mergeTestOutcomes` takes `{ previous, incoming, scope }`: `previous` and -`incoming` are lists of result identifiers (strings) in display and report order, -and `scope` is `{ ids?, prefixes? }`, the identifiers the run replaces. A result is -covered when its id equals one of `ids` or starts with one of `prefixes`; an empty -scope covers nothing and an empty prefix is `InvalidRequest`. It returns -`{ entries: [{ source, index }] }` with `source` `previous` or `incoming` and -`index` the position in that input: covered history entries are dropped, the -others stay in place, then the run's covered results follow. Incoming results -outside the scope are discarded, and for a repeated id the later entry wins. -Core compares strings only: hosts keep the result payloads, and the provider -adapter builds the scope (for example turning Java nested classes `Outer$Inner` -into the prefix `Outer$`). Cases: `shared/fixtures/build/test-outcome-merge-v1.json`. - -### Variable and disassembly paging - -`debug.planVariablePage { variablesReference, namedVariables?, indexedVariables?, pageSize }` -returns a cursor `{ variablesReference, pageSize, segments, loadedPages, next? }`. -Named children page before indexed ones; without counts the container pages -unfiltered until a short page. `next` is the `{ filter?, start, count, remainingCount? }` -to send as `debug.inspect` `variableFilter`/`start`/`count`; it is absent once the -container is exhausted. `debug.reduceVariablePage { state, requested, page, newItemCount }` -takes the page's `{ name, value, type?, evaluateName?, variablesReference }` -identities and how many of them the host did not already show, and returns -`{ accept, state }`. `accept: false` means the host drops the page: it answers an -older cursor or repeats a page (an adapter that ignores `start`). Paging stops on -an oversized page, a page of only known children, the reported count, or a short -page without a count. Hosts keep the page size, expansion and child identity. -Cases: `shared/fixtures/debug/variable-page-plan-v1.json`. - -`debug.planDisassemblyWindow { direction, reference, count, instructionsBefore? }` -returns a fetch whose `request` is the exact DAP `disassemble` arguments; -`direction` is `around` (the first window, `instructionsBefore` of `count` above -the instruction pointer), `before` or `after` (one listed edge). -`debug.reduceDisassemblyPage { fetch, reply, knownAddresses? }` takes the reply as -`{ kind: "instructions", instructions: [{ address, instruction, instructionBytes? }] }`, -`{ kind: "rejected", message }` (the adapter answered `success: false`) or -`{ kind: "failed", message }` (transport, timeout, cancellation) and returns -`{ kind: "request", fetch }`, `{ kind: "page", keep, exhausted }` or -`{ kind: "failed", message }`. `keep` indexes the reply's addressable -instructions (empty padding removed) not already in `knownAddresses`, compared -as canonical address text. A refused first window with a negative offset is -retried from the instruction pointer; a refused edge page is halved down to one -instruction, then the known edge is probed: only an edge that still -disassembles ends the direction (`exhausted`), otherwise the refused window's -message is returned. Transport failures are never treated as a boundary. -Addresses are never parsed or offset by Core or hosts. Hosts keep the viewport, -scroll anchor and rendering. Cases: `shared/fixtures/debug/disassembly-paging-v1.json`. - -### Windows source-breakpoint relocation - -Windows forwards the editor's exact source-preserving edits to -`debug.relocateBreakpoints` and converts its zero-based store lines to/from Core's -one-based lines. The context-expanded patches used to synchronize the editor's -source mirror must not be used as anchor edits: unchanged neighboring code must -not be treated as deleted. The existing cases in -`shared/fixtures/debug/breakpoint-relocation-v1.json` cover both platforms. - -Each native multi-cursor event is sent as one batch of original-source edits; -Core applies the edits before projecting anchors. Rapid events serialize or share -one ordered request, split views share a mutation identity, and launch reads the -current owner after all pending relocations complete. - -## Markdown rendering - -`markdown.render` accepts `{ "source": "" }` and returns -`{ "html": "" }`. The existing Comrak dialect and -Ammonia sanitizer are shared by macOS and Windows; platforms must not parse -Markdown again or fall back to another dialect. Closed leading `---` front -matter is omitted, not rendered as a platform-specific property card. -Code fences preserve whitespace and language classes, and rendered elements -can contain `data-sourcepos` attributes. Platform syntax coloring must preserve -these attributes and the original decoded code text. - -Raw formatting HTML can survive, but scripts, executable attributes, embeds, -arbitrary inline styles and unsafe URL schemes are removed in Core before -embedding. Windows asynchronously requests this existing command via its -central dispatcher, discards obsolete responses and falls back to the sanitized -fragment if syntax coloring fails. Render failures are shown as localized text; -there is no frontend Markdown parser fallback. This does not promise Windows -math or diagram rendering parity. - -Shared examples: `shared/fixtures/editor/markdown-render-v1.json`, -`markdown-html-v1.json` and `markdown-rich-content-v1.json`. - -### Structured logging of recoverable LSP maintenance warnings - -`lsp.pollEvents` log observations may carry the existing `error` object even at -WARN severity. Its code and stage describe a recoverable diagnostic; `type:log` -does not transition session state. Codes have one meaning: - -| code | stage | meaning | -| --- | --- | --- | -| `mavenSettingsUnchanged` | `mavenSettings` | Maven settings could not be normalized and were forwarded unchanged | -| `configurationCleanupFailed` | `configurationCleanup` | Unused language-server configuration areas could not be removed | -| `mavenProfileStartFailed` | `mavenProfileStart` | The pending Maven profile update could not start | - -The existing Core log sources additionally classify `upstreamStderr` (stderr -observation), `stderrReadFailed` (stderr I/O), `navigationLimited` (batch cap), -`navigationMarkerFailed` (marker verification), `workspaceImportStalled` -(no import progress), `mavenProfileUpdateFailed` (project update failure), -`shutdownTimeout` (forced termination after shutdown deadline), and -`mavenProfileTimeout` (profile application deadline). Each code names exactly -that observation; arbitrary upstream messages retain `upstreamDiagnostic`. - -Hosts persist these controlled identities, never the raw detail, URL, output or argv. - -### Batched breakpoint relocation snapshots - -`debug.relocateBreakpoints` retains the single `edit` input and also accepts `edits`, an array of non-overlapping original-source UTF-16 replacements. Character anchors are retained until the complete batch finishes; only then are positions projected and duplicates merged. LF, CRLF and lone CR are line boundaries. - -Optional `editBatches` contains up to 127 additional editor mutations in order, -with up to 4096 edits and 64 MiB of replacement text across those additional -batches. Each batch uses UTF-16 -offsets in the text produced by the preceding mutation. Core projects and -deduplicates breakpoints after each mutation, exactly as for separate calls, and -keeps `originalIndices` relative to the request's original breakpoint list. - -The response's `originalIndices` array identifies the zero-based input breakpoint -that survived for each entry in `breakpoints`, in the same order. It allows a host -to preserve breakpoint identity after relocation and collision resolution. - -Optional `document: {id, version}` enables bounded process-local source reuse. Version 1 supplies `source`; each subsequent version increments by one and omits source. Missing or stale snapshots fail closed. The cache holds four sources of at most 16 MiB each, evicts least-recently-used entries, and never writes runtime resources. Hosts reset with a new identity when the exact source chain changes. - -### Engine logging v2 handoff (PR3) - -`lsp.startServer` adds optional `role` (`language_server`, `vcs`, `build`, -`toolchain`, `backend`; default `language_server`) and optional `logSubject`. -The host supplies the registered VCS ID as `logSubject` for `role:vcs`. -The start response additionally returns `channel`, derived by Core from these -identities, so hosts can register trace I/O without rebuilding routing rules. -Core does not parse prefixes or colons in `providerId`. Routing is: - -| Role | Catalog channel | Identity field | -| --- | --- | --- | -| `language_server` | `lsp/{server}` | `providerId` | -| `vcs` | `vcs/{provider}` | `logSubject` | -| `build`, `toolchain`, `backend` | `plugins/{plugin}/host` | `pluginId` | - -Every dynamic segment passes `validate_segment`. Invalid or missing identities -use `invalid-` followed by the first 32 lowercase SHA-256 hexadecimal digits of -that identity (the opaque provider ID when the selected identity is absent). -This deterministic fallback preserves evidence and startup compatibility for -language IDs such as `c++`; it never exposes the original invalid text as a path. -`pluginId` in the event remains the original ownership identity, independently -of the validated catalog routing field. Hosts must use `fields` and `channel` -from Core, never rebuild the route from `providerId` or `pluginId`. - -Log runtime events retain `type:"log"`, sequence, providerId, sessionId, -level, message, detail, error, and Maven state fields. They add `channel`, -`pluginId?`, `role`, `event` (catalog ID), `catalogLevel` (canonical uppercase v2 level), and `fields` (normalized scalar disk -fields). `type` is the actual JSON discriminator; there is no `kind` wire key. -Catalog metadata determines canonical v2 severity; the old `level` remains a v1 -compatibility value, including its historical `warning` spelling. To pass one -fact to `diagnostics.encodeLogBatch`, the host supplies a timestamp and its own -session sequence and uses `catalogLevel`, the catalog's uppercase severity. It sets -`validateCatalog:true`; catalog-derived channel and message are authoritative. -The special system event `log.dropped` uses the validated session channel. - -```json -{"type":"log","sequence":17,"providerId":"opaque:git:provider","sessionId":"lsp-1","level":"info","message":"window/logMessage","detail":"{\"type\":2,\"message\":\"upstream warning\"}","channel":"vcs/git","pluginId":"io.example.git","role":"vcs","event":"vcs.message.logged","catalogLevel":"INFO","fields":{"provider":"git","diagnostic":"upstream warning","severity":"warning"}} -``` - -`window/logMessage` and `window/showMessage` produce `*.message.logged` and -`*.message.shown`. The `severity` token is `error|warning|info|log|debug`. -Upstream diagnostics pass through the shared text normalization/redaction -boundary. Other notifications record only their method, never the payload. -Existing v1 `detail`, `message`, and `level` remain byte-for-byte compatible, -including `projectCount=N`, navigation format strings, and original notification -JSON. V2 source inputs travel independently of detail; Core never parses v1 -detail to construct catalog fields. The one stderr framing change is explicit: -v1 detail is now each complete line (without LF/trailing CR), including its -spaces, rather than a trimmed arbitrary read chunk. The existing reader bounds -and overflow rules below apply. New dropped facts use `count=N`, not JSON detail. -Legacy detail is not a v2 persistence input. Trace catalog level is DEBUG while -its historical v1 level remains info. -Core lifecycle transitions attach `*.session.updated`, `channel`, `pluginId`, -`role`, `fields:{server|provider|plugin,state}`, and `catalogLevel:DEBUG` to the -existing `type:"stateChanged"` event. They pass through the same -`prepare_catalog_event` boundary as log facts. They never add a v1 `type:"log"` -row, and existing type/state/sequence/message/error fields remain unchanged. -Hosts decode and forward optional structured identity independently of the event -kind, once before event-specific handling; this also covers VCS, build, toolchain -and backend sessions. Core owns these session lifecycle states and protocol -initialization. macOS owns only `lsp.session.stage_changed` (DEBUG; closed -requested|resolving|registered|stopping|cancelled) and `lsp.cache.cleaned` (DEBUG; -removed entry count), emitted at the source rather than inferred from v1 text. -Host ready/terminated callbacks retain v1 buffer lines without duplicate v2 facts. -Stderr is framed by LF, removes a trailing CR, ignores empty lines, flushes the -last partial line at EOF, and keeps at most 4096 bytes per line while discarding -the remainder through LF. `truncated:true` marks the reader limit. Catalog text -normalization then redacts and caps the diagnostic at 1024 UTF-8 bytes. -The reader accepts at most 200 nonempty lines in each monotonic elapsed-second -window. Suppressed counts produce `log.dropped` on the next reader observation -in a later window or on reader completion, including read failure. No idle -background timer is installed. - -`lsp.setDetailedDiagnostics` accepts `{sessionId,enabled}` and returns `{}`. -It sends `$/setTrace` with `{"value":"verbose"}` when enabled and -`{"value":"off"}` when disabled. Sessions start disabled; only enabled -sessions emit `*.trace.received` (DEBUG). Only the summary `message` enters v2, -limited to 1024 UTF-8 bytes before shared text redaction and control removal. -The `verbose` field is excluded because it can contain raw RPC bodies and source -text; the legacy in-memory detail remains compatible. The gate changes only -after a successful ordered write. Before the initialize handshake completes, the command -only stores the latest desired value; an enabled value is sent after `initialized` -in the ordered handshake batch. Disabling it before that batch cancels the pending -enable without sending any trace notification. Invalid payloads or terminal -sessions fail through the existing Core error envelope; transport errors keep the existing session -failure/cleanup behavior. This does not change showMessage handling. - -```json -{"version":1,"command":"lsp.setDetailedDiagnostics","payload":{"sessionId":"lsp-1","enabled":true}} -``` - -```json -{"id":null,"ok":true,"data":{}} -``` - -`diagnostics.drainCoreEvents` accepts `{}` and atomically returns -`{events:[{ts,level,event,channel,op?,fields}],dropped}` in the ordinary Core -success envelope. It drains a process-owned queue shared across workspaces, -with at most 256 normalized entries. Overflow and exact duplicate pending -facts increment a saturating `dropped` counter; draining resets the counter. -The host converts `dropped` to `log.dropped` on its application channel. -`record` accepts only catalog events whose owner is `lithe-core`: logging error -`-32059` means Core event owner mismatch, exclusively; existing `-32053` through -`-32058` retain their catalog and collection meanings. - -`lithe_core_install_log_waker(callback, context)` registers the host's single -log writer for a pending-fact signal; a later install replaces the earlier one -and a null callback is ignored. Core invokes the callback at most once per drain -cycle: when the first fact or drop is queued after a drain, and immediately at -install when facts are already pending. It runs synchronously on the recording -or installing thread, must not unwind or call back into Core, and only schedules -the writer's existing drain. `lithe_core_remove_log_waker(context)` returns 1 when -`context` owned the registration and 0 otherwise; after it returns, Core never -invokes the callback with `context`. The waker belongs to the existing queue: -there is no second writer, file handle, background task, or poller. The queue -observes UTC at the Core event boundary; host -session sequences are assigned at drain ingestion. Project skips retain only -workspace-relative paths and stable error categories; cleanup facts retain -only categories, excluding remote addresses, output, and scratch names. - -```json -{"version":1,"command":"diagnostics.drainCoreEvents","payload":{}} -``` - -```json -{"id":null,"ok":true,"data":{"events":[{"ts":"2026-11-03T08:00:00.000Z","level":"WARN","event":"app.workspace.directory_skipped","channel":"app","fields":{"path":"src/inaccessible","error":"Directory traversal failed","error_code":"permission_denied","error_domain":"core"}}],"dropped":0}} -``` - -`diagnostics.configureCoreEvents` accepts `{debug:bool,roots?:[string]}` and -returns `{}`. Unknown fields fail with `invalid_request`. It sets the process-wide -admission gate for DEBUG Core facts: `debug:false` rejects every DEBUG fact, -`debug:true` without `roots` admits DEBUG on every channel root, and -`debug:true` with `roots` admits DEBUG only on the listed roots. The default is -disabled. Rejected DEBUG facts return success to their producer, are never -queued and never count as dropped, so background traces cannot fill the -256-entry queue and displace later WARN or ERROR facts. INFO, WARN and ERROR -are always admitted. Producers that build expensive fields check the gate first. - -```json -{"version":1,"command":"diagnostics.configureCoreEvents","payload":{"debug":true,"roots":["app","vcs"]}} -``` - -```json -{"id":null,"ok":true,"data":{}} -``` - -`diagnostics.recordPluginOperation` records one terminal result of a declarative -plugin contribution: work a plugin declares in its manifest that the host or a -Core engine executes, so no plugin process can report it through `lithe/log`. It -accepts `{pluginId,operation,outcome,stage?,durationMs,operationId?}` with no other -keys and returns `data:{result:{}}` once the fact is queued, or -`data:{error:{code:-32064,reason}}`. `outcome` is `finished|failed`; `stage` is -required for `failed` and forbidden for `finished`. `durationMs` is monotonic -milliseconds up to 2^53-1. `operationId` follows the SDK `operationId` grammar -(1-128 bytes of ASCII letters, digits and `._:/-$`). The fact becomes -`plugins.operation.finished` or `plugins.operation.failed` on -`plugins/{plugin}/host`, the same events and channel an SDK-backed plugin writes, -with fields `plugin`, `operation`, `duration_ms` and, for failures, `code`. -Cancellation is never recorded. No plugin output, path or error text is accepted. - -Each accepted `operation` is one row of Core's contribution table. The row's -lifecycle decides which stages exist and which `host.*` code each stage means, so -a code has one meaning across every contribution with that lifecycle: - -| `operation` | Contribution | Lifecycle | -| --- | --- | --- | -| `languageServer/start` | `languageServers[]` | process start | -| `debugAdapter/start` | `debugAdapters[]` | process start | -| `lithe/build/model` | `buildSystems[].model` command source | command run | -| `lithe/build/dependencies` | `buildSystems[].dependencies` command source | command run | - -| `stage` | Process start | Command run | -| --- | --- | --- | -| `plan` | rejected | `host.planFailed` | -| `resolve` | `host.executableUnavailable` | `host.executableUnavailable` | -| `launch` | `host.launchFailed` | `host.launchFailed` | -| `initialize` | `host.initializeFailed` | rejected | -| `timeout` | `host.timedOut` | `host.timedOut` | -| `exit` | `host.exitedEarly` | `host.commandFailed` | -| `decode` | rejected | `host.outputInvalid` | - -An unknown operation, a stage the lifecycle cannot reach, an unknown key, an -explicit `null` for an optional key, an invalid operation ID or an out-of-range -duration all return -32064. Whoever executes the attempt records it. The host -records debug adapter starts and build commands itself. A debug adapter start -uses the debug session ID as `operationId`, so it correlates with that session's -own debug records. It stays at `launch` until the adapter is reachable: a stdio -process once it runs, a language server hosted adapter once its socket connects. -A failure before then is `launch`, or `timeout` when the hosted adapter's -discovery deadline fires. `exit` applies only to an adapter that was reached. -Core refusing the debug session is a host outcome and is not recorded. - -A declarative language server is resolved by the host and supervised by Core. -The host records failures before launch, including servers that launch as -host-owned processes. Otherwise it passes -`startupOperation:{pluginId,operationId,elapsedMs}` on `lsp.startServer`. Core -accepts the handoff only for the language server role, and only when the -request's `pluginId` is absent or equals the handoff's `pluginId`; it ignores the -handoff otherwise. Core then records exactly one result: - -- `launch` when `lsp.startServer` fails for any reason other than cancellation, - including a failure to write the `initialize` request to the started process; -- `exit` when the process exits before `initialize` succeeds; -- `initialize` for any other terminal failure before then; -- `timeout` at the initialize deadline; -- `finished` when the `initialize` result succeeds. - -A start that a newer indexing policy retires is cancelled and records nothing, -even after its process started. `durationMs` adds the host's `elapsedMs` to Core's own monotonic -time. Stopping before a result records nothing. A fact the engine cannot queue -increments the `dropped` counter. - -```json -{"version":1,"command":"diagnostics.recordPluginOperation","payload":{"pluginId":"io.example.go","operation":"debugAdapter/start","outcome":"failed","stage":"resolve","durationMs":12,"operationId":"7c0d1f0e-3f6b-4a52-9d5e-0b7c2b0b9a11"}} -``` - -```json -{"id":null,"ok":true,"data":{"result":{}}} -``` - -`plugins.declarative.languageServerLaunchPlan.request.logDirectory` is an -optional absolute host-owned current-session plugin files directory for -`${logDir}`. Language servers and plugin backends use the same expansion. -Missing, unusable, or relative values fail with `plugin.launch.invalidRequest` -when needed; `requiredDirectories` adds `log` when used. The host creates the -provided writable directory before launch, outside all bundles and installation -resources. Validation probes cannot reference `${logDir}`. See the synchronized -[plugin contract](plugins/v1/README.md). Literal arguments that do not use -`${logDir}` remain literal. Wire examples are exercised by -`shared/fixtures/diagnostics/engine-logging-v2.json` and Core tests. - -Plugin-owned sessions offer `litheLogging: { versions: [0] }` independently of -other protocols; a backend that answers `{ "version": 0 }` negotiates it. -The negotiated `lithe/log` notification is validated in Core and enters the -same bounded `diagnostics.drainCoreEvents` queue, with the installed plugin -identity selecting `plugins//host`. It never copies notification JSON into -legacy runtime detail. The four facts map to catalog INFO/ERROR/WARN/WARN, -and a live wire request ID resolves to its original host `op`; no user content -or backend-selected channel/level/message is accepted. See the -[plugin logging contract](plugins/v1/README.md#structured-plugin-diagnostics) -and `plugins/v1/fixtures/backend/plugin-logging.json`. Explicit upstream LSP message -types retain their severity through separate catalog events; unclassified -stderr is DEBUG and actual lifecycle failure is ERROR. - -macOS PR3 passes `CoreLogRecord` directly to the injected `LogSink`. Every -MacLogStore drain, flush and finish calls `diagnostics.drainCoreEvents` once, -retaining source `ts`/`op` and allocating session `seq`. Only the application -writer installs the Core log waker; its callback schedules the same 100 ms -one-shot drain that host events use, so Core and plugin facts recorded without -host activity reach disk and live subscribers without an idle poller or second -writer. Finishing the session removes the waker before the final drain. -MacLogStore sends `diagnostics.configureCoreEvents` only when the -detailed-diagnostics state or its channel roots change. `channelCategory` maps -lsp to language, vcs to git and plugin-host processes to plugins. The selected diagnostic category drives -`lsp.setDetailedDiagnostics` for active sessions, newly registered sessions and -a one-shot 15-minute expiry. A failed desired state, including a failed -`configureCoreEvents`, is reported once with -`app.logging.diagnostics_failed`; changing desired state permits another attempt. -Language-server evidence has no in-memory v1 buffer on macOS; the log window reads -only v2 session files. - -`diagnostics.resolveLogChannel` additionally returns optional `pluginFilesPath` -for a `plugins//host` channel using Core's `plugin_files_path` rule. macOS -creates that directory under its current session with mode 0700 and descriptor -relative no-follow traversal, and supplies `request.logDirectory` before local -language/provider/backend launch. Missing log storage omits it; Core rejects a -launch that actually uses `${logDir}`. Remote processes cannot write the macOS -log directory, so remote requests omit it and reject `${logDir}` rather than -writing into remote package/state directories. Package installation validation -uses an uncreated placeholder only to validate expansion, never to launch. - -Core directory traversal and scratch cleanup reuse PR1's -`app.search.directory_skipped`, `app.workspace.directory_skipped` and -`app.workspace.scratch_cleanup_failed`. Error message/domain are fixed; code is a -stable category without absolute paths, scratch names or remote addresses. -Remote process/upload cleanup uses ClientError categories timeout, closed, -transport, spawn, protocol, or remote_; peer prose is excluded. - -### Execution traces - -Core records one terminal fact for each dispatched request and one for each Git -process, and hands both to the host through `diagnostics.drainCoreEvents`. Event -identities and field shapes are declared in `shared/logging/events/app.json` and -`shared/logging/events/vcs.json`; this section defines when each is emitted. - -Request traces use channel `app/core`: `app.core.request.finished` (INFO), -`app.core.request.traced` (DEBUG) and `app.core.request.failed` (WARN). The -dispatcher resolves the trace `op` from the first of `origin.operation`, -`operationId` and `id` that has the `operation` shape, and the source from `origin.source` unless it is absent or `unknown`, then -`gitExecution.source`, then `unknown`. It installs `{op, source}` as thread-local context for the request's -duration, so every Git process the request starts inherits both. An error -response other than `cancelled` is `failed` and carries `error` with domain -`core`. Any other response is `finished` when the source is `user` and `traced` -otherwise; a cancelled response adds `cancelled:true`. Fields are `method`, -`source`, `duration_ms`, the optional payload `operation` selector, `trigger`, -the first absolute path among `root`, `workspaceRoot`, `repositoryRoot`, `projectRoot`, -`rootPath`, `directory` and `path` in the payload, recorded as `path`, and `remote` for -remote workspaces. No other payload content is recorded. `core.ping`, every -`diagnostics.*` command and the per-keystroke, per-frame, polling and watcher -methods listed in `request_trace::is_hot` record nothing. - -Git process traces use channel `vcs/git`: `vcs.git.command.finished` (INFO), -`vcs.git.command.traced` (DEBUG) and `vcs.git.command.failed` (WARN). They are -emitted at the single execution point shared by local and remote workspaces. -A visible command runs through `execute_git` and is returned to the host as an -invocation; an internal read runs through `capture_git` and Core parses its -output. Outcomes are classified in this order: - -1. A `cancelled` runner error is a cancellation; any other runner error is a failure. -2. Exit status 0 is a success. -3. An exit status that the command documents as an answer (for example 1 from - `git diff --quiet` or `git config --get`) is a success. -4. A nonzero exit of an internal read whose source is not `user` is a success at - this layer; the caller decides its meaning, and an error response it returns - is recorded by the request trace. -5. Every other exit is a failure. - -A failure is `failed`. A success or cancellation is `finished` for a visible -command whose source is `user` and `traced` otherwise. Fields are `command`, -`arguments`, `source`, `duration_ms`, and optionally `repository`, `remote`, -`exit_code` and `cancelled`. `arguments` is produced only by `format_arguments`: -commit message values become ``, values of `-c` keys that name -credentials or personal identity become ``, URL user information and -the shared redaction patterns are rewritten, arguments are quoted where needed, -and text beyond 1024 bytes is cut with a trailing `…`. A failure, a cancellation -or a nonzero exit adds `stderr`: the last 8 nonempty lines of the final 16 KiB of standard -error, each redacted and joined with ` | `, keeping the newest 1024 bytes with a -leading `…`. A failure caused by a runner error adds `error`, `error_code` and -`error_domain:"core"`; -the process `exit_code` is never merged into `error_code`. Standard output, -standard input and environment values are never recorded. - -Trace failures are always WARN because Core cannot know whether the host will -retry, degrade or give up. A host that notifies the user about a failure whose -facts are all in a same-`op` trace references that record instead of logging -the failure again. - -```json -{"ts":"2026-11-03T08:00:01.123Z","level":"WARN","event":"vcs.git.command.failed","channel":"vcs/git","op":"op-7f3a","fields":{"command":"fetch","arguments":"fetch --prune origin","repository":"/src/app","source":"user","duration_ms":311,"exit_code":128,"stderr":"fatal: could not read from remote repository."}} -``` - -`agent.attachments.retentionPlan` decides which pasted Agent images the platform may -delete; it reads and writes no files. The payload is `{nowMs, entries, acceptedReferences, -ledgerPresent, caseInsensitive}`: `entries` lists the platform's pasted-image cache as `{path, modifiedMs, -abandoned}` (`modifiedMs` is Unix milliseconds and may be omitted; `abandoned` marks a -paste that failed or was discarded before any conversation accepted it), -`acceptedReferences` is the platform ledger of paths a conversation accepted, and -`caseInsensitive` (Windows) compares paths without case; separators are always normalized. -`ledgerPresent` reports only whether the ledger file exists, never whether it is empty: when it -is missing, every non-abandoned cached image counts as accepted (the cache predates the -ledger) and is returned in `seed`, which the platform writes atomically (temporary file, then -rename) before deleting anything. The result is `{delete, keep, seed}`, the first two lists of `{path, reason}` in entry order. Reasons: -`referenced` (kept, even when flagged abandoned), `recent` (kept, unreferenced and at most -seven days old or of unknown age), `abandoned` and `expired` (deleted). The cache and the -ledger live in the platform cache directory, never in the app bundle or install directory. -The fixture is `shared/fixtures/agent/attachment-retention-v1.json`. - -### Atomic local toolchain pin editing - -`toolchains.editPins` accepts `{document,directory,edits:[{tool,pin}]}` and returns -`{status:"ok",edit:{document}}`. It uses the v1 local toolchain document and the -same normalized directory, tool ID, pin and size limits as `resolvePins`. -A batch contains 1–64 unique tool IDs. `pin:null` removes that directory's explicit -override (ancestor inheritance remains effective); a pin object replaces it. -Only emptied containers on the edited path are pruned. Legacy `toolchains`, -dormant pins and unrelated directories remain intact. Unknown fields, duplicate -IDs, malformed pins and over-budget documents reject the whole batch with no -partial document. Rejections use the existing `plugin.toolchain.invalidParams` -and `plugin.toolchain.limitExceeded` structured error envelope. - -The command performs no I/O and grants no execution authority. The host owns -explicit Save confirmation, byte-baseline conflict detection, cancellation, -ignore-file preparation, atomic native replacement, and re-reading the source. -See `shared/fixtures/toolchain-pin-edit.json` for the cross-client vector. - -### Native toolchain pin sources - -`toolchains.pinStoragePlan` accepts `{}` and returns -`{status:"ok",storage:{documentRelativePath,ignoreRelativePath,maximumDocumentBytes,maximumIgnoreBytes}}`. -Paths are workspace-relative: `.lithe/toolchains/local.json` (1 MiB) and -`.lithe/.gitignore` (64 KiB). Hosts read bounded UTF-8 sources through their -native storage adapter, without creating directories during reads. - -`toolchains.decodePinDocument` accepts `{document:string|null}` and returns -`{status:"ok",document:}`. Null means absent and supplies -the empty default. Existing empty, malformed, duplicate-key or invalid dormant -entries reject with `plugin.toolchain.invalidDocument`. - -`toolchains.editPinSources` accepts -`{document:string|null,ignoreDocument:string|null,directory,edits:[{tool,pin}]}` -and returns `{status:"ok",edit:{document,documentChanged,ignoreDocument,ignoreChanged}}`. -A semantic no-op preserves both exact sources, including absence. A changed -pin document is serialized deterministically; the ignore matcher preserves -an already effective ignore rule or appends `/toolchains/local.json` after any -negation, preserving existing text and newline convention. Ignore parsing is -bounded to 4096 lines when preparing a changed pin document; NUL and invalid patterns reject with -`plugin.toolchain.invalidIgnore`. Input and output budgets reject with -`plugin.toolchain.limitExceeded`; invalid request shapes use -`plugin.toolchain.invalidParams`. The matcher never reads files or global rules. - -These commands perform no native I/O. Hosts bind captured bytes and native root -identity, recheck both even for no-op saves, preserve metadata, and publish the -ignore prerequisite before the pin document. A document already committed -followed by cleanup/readback failure must invalidate the old draft baseline: -reload before retrying. User-selected workspace storage never changes an -installed app or plugin bundle. See `shared/fixtures/toolchain-pin-storage.json`. - -### Debug launch response ordering - -A debug adapter may emit `stopped` or `terminated` before replying to `launch` -or `attach`. The acknowledgement completes that operation; it changes state to -`running` only if the session is still `launching`. It never resumes a paused -target or resurrects a terminated one. See -`shared/fixtures/debug/launch-event-order.json`. Hosts serialize each Core update, -its outbound frames and its UI publication in the order returned by the engine. - -### Settings action planning - -`plugins.declarative.settingsActionPlan` accepts -`{manifest,owner:{pluginID,version},actionID,confirmed,workspaceAvailable,enabled}`. -All fields are required and unknown fields reject. It validates the complete -manifest and its captured installed identity, then resolves the declared action -without starting a process or reading preferences. Unknown actions reject with -`plugin.settings.actionUnavailable`; registration mismatch uses -`plugin.settings.ownerChanged`, in the ordinary declarative rejection envelope. - -The success envelope is `{status:"ok",plan:{kind,pluginID,version,actionID,title,...}}`. -A disabled plugin returns `kind:"unavailable",reason:"pluginDisabled"`. -Without an open project, `kind:"unavailable",reason:"projectRequired"` contains -no function invocation. Otherwise an unconfirmed action whose declaration has -`confirm:true` returns `kind:"confirmationRequired"`, also without a function. -Once confirmed (or when the declaration needs no confirmation), `kind:"invoke"` -adds `function` and `params:{}`. Labels and function identity always come from -the validated manifest; callers cannot supply a different target or arguments. -See `shared/fixtures/plugins/settings-actions.json`. - -`confirmed` and `workspaceAvailable` are facts from the native owner, not a -capability grant. The host must capture user confirmation, check the installed -package and project identity again before invocation, and use that plugin's -provider session for the open project. Core's existing `lsp.functionRequest` -continues to enforce runtime function registration, owner and permissions. -This internal desktop C ABI command does not add a plugin host method or change -the published plugin function protocol. Progress, cancellation and completion -use the existing session event stream; settings drafts are not saved implicitly. - -### Workspace-bound function provider discovery - -Direct and backend-resolved plugin process plans include -`owner:{pluginID,version}` from the validated manifest. Native session handles -retain that version without inferring it from a path or mutable settings draft. - -`lsp.functionProvider` accepts `{pluginID,version,function,rootUri,candidates}`. -`rootUri` is the canonical file URI produced by `lsp.documentUri` for the -requesting workspace. Each native-owned candidate is `{sessionID,version}`; -at most 64 unique IDs may be supplied. Strings and the root URI are bounded. -Malformed or duplicate facts reject with `InvalidRequest`. - -The result is `{sessionID:string|null}`. Core requires the expected native -version, the actual runtime plugin owner, the same file workspace URI and a -ready session with the function currently registered. Candidate order does not -affect selection: the first matching session ID in lexical order wins. This -query performs no I/O, starts nothing and does not consume runtime events. -There is no cross-workspace fallback. An absent match is explicit null; normal -startup/admission and later function invocation checks remain required. -The pure selection vector is `shared/fixtures/plugins/settings-function-provider.json`. -This is an internal desktop command, not a new public plugin host method. - -### Dynamic plugin settings surfaces - -Internal desktop commands reuse the validated settings manifest. They do not -add plugin RPCs or admit capabilities. `plugins.settings.catalog` accepts up to -64 `{manifest, owner: {pluginID, version}, enabled}` records. It validates all -identities, rejects duplicates and returns deterministic `pages` (up to 512), -with stable `key`, `kind` (`language` or `buildSystem`), opaque `id`, display -`title`, and plugin-ID ordered `contributors` (`pluginID`, `version`, `title`, -`sections`). Sections reference indices in the complete settingsState rows and -actions. Only enabled contributors create pages; action-only pages are valid. -Names come from enabled language/build declarations, with opaque ID fallback. -`settingsState.pages` supplies the same per-plugin placement projections. - -`plugins.settings.navigation` accepts at most 576 two-level `items` (512 contributed pages plus 64 host entries) with stable -`id`, `title`, nullable `parent`, `group`, `expanded`, optional `keywords`, plus -`query` (at most 1024 bytes). It returns `rows` containing id/title/group/expanded/level. -Search retains ancestors and expands matching groups; ordering follows input. -Duplicate IDs, invalid parents and excessive input are rejected. - -`plugins.settings.delivery` accepts `scope` (global/project), native equality -facts `samePreferences`, `sameWorkspace`, `sameVersion`, current `enabled`, and -at most four declared `effects`. It returns `delivery: {refresh, effects}`. -Global changes reach matching preference stores and versions; project changes -additionally require native workspace identity equality. Disabled plugins may -refresh displayed sources but receive no runtime effects. Effects are sorted -and deduplicated. No setting values cross windows: receivers read their own -project layers. Native owners must recheck window/project lifetime on delivery. -Invalid surface input returns `plugin.settings.invalidSurface`; owner mismatch -returns `plugin.settings.ownerChanged`. Shared vectors: `shared/fixtures/plugins/settings-surfaces.json`. diff --git a/shared/contracts/terminal-profiles.md b/shared/contracts/terminal-profiles.md deleted file mode 100644 index 651ade0138..0000000000 --- a/shared/contracts/terminal-profiles.md +++ /dev/null @@ -1,36 +0,0 @@ -# Terminal shell discovery and selection - -macOS and Windows own shell discovery, executable paths, environment setup, and -PTY/ConPTY startup. The portable scenarios are recorded in -[`shell-selection-v1.json`](../fixtures/terminal/shell-selection-v1.json). Discovery does not execute a shell, source a user profile, -start a WSL distribution, or create a terminal session. - -Both products expose detected shells in the menu beside the terminal's New -button. Selecting a shell creates and activates a new session in the current -workspace. Existing sessions keep their selected shell and continue running. -The New button uses the saved default; changing that default affects subsequent -sessions only. A Detect Installed Shells action refreshes the catalog without -creating or restarting sessions. Windows also refreshes when opening the menu. - -Missing installations and failed discovery do not erase saved preferences. -The last successful catalog remains visible after a refresh failure. A saved -shell selection keeps its identity until the user explicitly changes it; the -native launcher reports an unavailable shell rather than selecting a different -shell family. Paths remain native preference data, not portable workspace IDs. - -macOS discovers executable files from the login-shell environment, `/etc/shells`, -PATH, and standard system/package-manager locations. Different installations of -the same shell remain selectable by path. The catalog recognizes zsh, bash, -fish, Nushell, PowerShell, sh, dash, ksh, tcsh, csh, and other registered login -shells. Existing `system`, `zsh`, and `bash` preferences remain compatible. - -Windows preserves `cmd`, `powershell`, `pwsh`, `nu`, and `bash` IDs. Git Bash uses -the Git for Windows wrapper and remains distinct from `msys2` and `cygwin`. -Registered WSL distributions use `wsl:` IDs, sorted and -deduplicated; Docker/Rancher service distributions are omitted. WSL sessions -launched from local Windows workspaces receive the workspace as a separate -`--cd` argument, and the distribution name is passed as a separate argument. -This does not add WSL virtual filesystem support to other workspace features. - -Terminal applications such as Windows Terminal and iTerm are not shell -profiles: sessions are hosted inside Lithe's existing terminal surface. diff --git a/shared/contracts/toolchain-consumer-preferences-v1.schema.json b/shared/contracts/toolchain-consumer-preferences-v1.schema.json deleted file mode 100644 index 38a0301e9d..0000000000 --- a/shared/contracts/toolchain-consumer-preferences-v1.schema.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/toolchain-consumer-preferences-v1.schema.json", - "title": "Lithe consumer tool preferences v1", - "description": "Inert machine-local inputs. An inherited choice is a reference, never a cached installation or launch permit.", - "type": "object", - "required": [ - "version" - ], - "additionalProperties": false, - "properties": { - "version": { - "const": 1 - }, - "workspace": { - "$ref": "#/$defs/workspace" - }, - "directories": { - "type": "object", - "maxProperties": 256, - "propertyNames": { - "type": "string", - "minLength": 1, - "maxLength": 2048, - "pattern": "^(?!\\.\\.?($|/))[^\\\\/:\\x00-\\x1f]+(?:/(?!\\.\\.?($|/))[^\\\\/:\\x00-\\x1f]+)*$" - }, - "additionalProperties": { - "$ref": "#/$defs/directory" - } - } - }, - "$defs": { - "fixed": { - "oneOf": [ - { - "type": "object", - "required": [ - "home" - ], - "additionalProperties": false, - "properties": { - "home": { - "type": "string", - "minLength": 1, - "maxLength": 4096, - "description": "Absolute native path; Core rejects traversal and control characters before use." - } - } - }, - { - "type": "object", - "required": [ - "executable" - ], - "additionalProperties": false, - "properties": { - "executable": { - "type": "string", - "minLength": 1, - "maxLength": 4096, - "description": "Absolute native path; Core rejects traversal and control characters before use." - } - } - } - ] - }, - "workspaceReference": { - "type": "object", - "required": [ - "inherit" - ], - "additionalProperties": false, - "properties": { - "inherit": { - "const": "workspace" - } - } - }, - "consumerReference": { - "type": "object", - "required": [ - "inherit" - ], - "additionalProperties": false, - "properties": { - "inherit": { - "enum": [ - "workspace", - "consumer", - "tool" - ] - } - } - }, - "fixedTools": { - "type": "object", - "maxProperties": 64, - "additionalProperties": { - "$ref": "#/$defs/fixed" - }, - "propertyNames": { - "$ref": "#/$defs/toolID" - } - }, - "workspaceTools": { - "type": "object", - "maxProperties": 64, - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/$defs/fixed" - }, - { - "$ref": "#/$defs/workspaceReference" - } - ] - }, - "propertyNames": { - "$ref": "#/$defs/toolID" - } - }, - "consumerTools": { - "type": "object", - "maxProperties": 64, - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/$defs/fixed" - }, - { - "$ref": "#/$defs/consumerReference" - } - ] - }, - "propertyNames": { - "$ref": "#/$defs/toolID" - } - }, - "workspace": { - "type": "object", - "additionalProperties": false, - "properties": { - "tools": { - "$ref": "#/$defs/fixedTools" - }, - "consumers": { - "type": "object", - "maxProperties": 128, - "additionalProperties": { - "$ref": "#/$defs/workspaceConsumerTools" - }, - "propertyNames": { - "$ref": "#/$defs/consumerID" - } - } - } - }, - "directory": { - "type": "object", - "additionalProperties": false, - "properties": { - "tools": { - "$ref": "#/$defs/workspaceTools" - }, - "consumers": { - "type": "object", - "maxProperties": 128, - "additionalProperties": { - "$ref": "#/$defs/consumerTools" - }, - "propertyNames": { - "$ref": "#/$defs/consumerID" - } - } - } - }, - "toolID": { - "type": "string", - "maxLength": 192, - "pattern": "^(?:[a-z][a-z0-9-]{0,63}|[a-z0-9]+(?:[.-][a-z0-9]+)*:[a-z][a-z0-9-]{0,63})$" - }, - "consumerID": { - "type": "string", - "maxLength": 256, - "pattern": "^(?!\\.{1,2}/)[a-z0-9.-]+/[a-z][a-z0-9-]{0,63}$" - }, - "workspaceConsumerReference": { - "type": "object", - "required": [ - "inherit" - ], - "additionalProperties": false, - "properties": { - "inherit": { - "enum": [ - "workspace", - "tool" - ] - } - } - }, - "workspaceConsumerTools": { - "type": "object", - "maxProperties": 64, - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/$defs/fixed" - }, - { - "$ref": "#/$defs/workspaceConsumerReference" - } - ] - }, - "propertyNames": { - "$ref": "#/$defs/toolID" - } - } - } -} diff --git a/shared/contracts/toolchain-local-v1.schema.json b/shared/contracts/toolchain-local-v1.schema.json deleted file mode 100644 index c39dd18a8f..0000000000 --- a/shared/contracts/toolchain-local-v1.schema.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/toolchain-local-v1.schema.json", - "title": "Lithe Local Toolchains v1", - "type": "object", - "required": ["version", "toolchains"], - "properties": { - "version": { "const": 1 }, - "toolchains": { - "type": "object", - "additionalProperties": { - "type": "object", - "properties": { - "home": { "type": "string", "minLength": 1 }, - "executable": { "type": "string", "minLength": 1 }, - "javaHome": { "type": "string", "minLength": 1 } - }, - "additionalProperties": false - } - } - }, - "additionalProperties": false -} diff --git a/shared/contracts/toolchain-requirements-v1.schema.json b/shared/contracts/toolchain-requirements-v1.schema.json deleted file mode 100644 index 5eedb37810..0000000000 --- a/shared/contracts/toolchain-requirements-v1.schema.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/toolchain-requirements-v1.schema.json", - "title": "Lithe Toolchain Requirements v1", - "type": "object", - "required": ["version", "toolchains"], - "properties": { - "version": { "const": 1 }, - "toolchains": { - "type": "object", - "additionalProperties": { "$ref": "#/$defs/requirement" } - } - }, - "$defs": { - "requirement": { - "type": "object", - "required": ["type"], - "properties": { - "type": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" }, - "minimumVersion": { "type": "string", "minLength": 1 }, - "preferredVendor": { "type": "string", "minLength": 1 }, - "wrapper": { "type": "string", "pattern": "^(?!/)(?!.*(^|/)\\.\\.(?:/|$)).*$" }, - "version": { "type": "string", "minLength": 1 }, - "java": { "type": "string", "minLength": 1 } - }, - "additionalProperties": false - } - }, - "additionalProperties": false -} diff --git a/shared/contracts/update-v1.md b/shared/contracts/update-v1.md deleted file mode 100644 index f5b0be8b56..0000000000 --- a/shared/contracts/update-v1.md +++ /dev/null @@ -1,34 +0,0 @@ -# Update contract v1 - -The update contract separates portable update semantics from platform-owned -download and installation workflows. - -## Normalized state - -Both products expose one logical state machine: - -`idle` → `checking` → `available` → `downloading` → `installing` - -An unsuccessful operation enters `failed`. A successful check with no newer -version enters `upToDate`. The normalized update information contains the -current version, target version, release date, release notes, and release URL. - -The complete JSON shape is defined by -[`update-v1.schema.json`](update-v1.schema.json). The platform feeds may keep -their native wire formats: macOS needs architecture-specific DMG checksums and -Windows needs the Tauri updater signature. Each platform adapter maps its feed -to this normalized model. - -## Preferences - -- `Later` suppresses the exact target version for 24 hours. -- `Skip version` suppresses the exact target version until a newer target is - published. -- Either preference is cleared when the latest target version changes. -- Manual checks ignore suppression preferences. - -## Error codes - -Error codes are stable identifiers from the schema. HTTP status values and -platform diagnostics remain details of the platform adapter; they must not -become new cross-platform state variants. diff --git a/shared/contracts/update-v1.schema.json b/shared/contracts/update-v1.schema.json deleted file mode 100644 index 889e1ab7cd..0000000000 --- a/shared/contracts/update-v1.schema.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/update-v1.schema.json", - "title": "Lithe update state v1", - "type": "object", - "additionalProperties": false, - "required": [ - "schemaVersion", - "currentVersion", - "targetVersion", - "releaseDate", - "releaseNotes", - "releaseURL", - "status", - "downloadProgress", - "errorCode" - ], - "properties": { - "schemaVersion": {"const": 1}, - "currentVersion": {"$ref": "#/$defs/version"}, - "targetVersion": { - "type": ["string", "null"], - "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?$" - }, - "releaseDate": { - "type": ["string", "null"], - "format": "date-time" - }, - "releaseNotes": {"type": ["string", "null"]}, - "releaseURL": { - "type": ["string", "null"], - "format": "uri", - "pattern": "^https://" - }, - "status": { - "enum": [ - "idle", - "checking", - "available", - "downloading", - "installing", - "upToDate", - "failed" - ] - }, - "downloadProgress": { - "oneOf": [ - {"type": "null"}, - { - "type": "object", - "additionalProperties": false, - "required": ["downloadedBytes", "totalBytes", "percentage"], - "properties": { - "downloadedBytes": {"type": "integer", "minimum": 0}, - "totalBytes": { - "type": ["integer", "null"], - "minimum": 0 - }, - "percentage": { - "type": ["integer", "null"], - "minimum": 0, - "maximum": 100 - } - } - } - ] - }, - "errorCode": { - "type": ["string", "null"], - "enum": [ - null, - "no_published_release", - "invalid_response", - "rate_limited", - "http_status", - "timed_out", - "tls_or_proxy_failure", - "connection_failed", - "invalid_manifest", - "unsupported_schema", - "no_compatible_asset", - "checksum_mismatch", - "download_failed", - "install_failed", - "not_app_bundle", - "app_not_found_in_disk_image" - ] - } - }, - "$defs": { - "version": { - "type": "string", - "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?$" - } - } -} diff --git a/shared/contracts/vcs-provider-v1.md b/shared/contracts/vcs-provider-v1.md deleted file mode 100644 index 87c81de206..0000000000 --- a/shared/contracts/vcs-provider-v1.md +++ /dev/null @@ -1,368 +0,0 @@ -# VCS provider contract - -> **Status: Core implemented; macOS hosts providers.** Core accepts the -> `vcsProviders` manifest capability and the commands below. macOS advertises -> `vcsProviders` 0 and starts providers for the roots it detects. Windows does -> not advertise the capability. -> The decision record is -> [Unified VCS model and providers](../../.agents/notes/proposed/architecture/2026-10-22-unified-vcs-provider-model.md); -> example data is in [`shared/fixtures/vcs/model-v1.json`](../fixtures/vcs/model-v1.json) -> and [`plugins/v1/fixtures/vcs/vcs-provider.plugin.json`](plugins/v1/fixtures/vcs/vcs-provider.plugin.json). - -This contract defines one VCS-neutral model for the features every version -control system has: roots, file status, base content, history, annotation, -check-in, rollback, and update. A **provider** implements it for one VCS as a -plugin process speaking the LSP base protocol, the same process kind as -[build providers](plugins/v1/README.md#build-providers). Subversion is the -first provider. - -Git is not part of this layer yet. Core recognizes `.git` markers so a nested -working copy is assigned to the right root, and the `git.*` commands keep -serving Git roots unchanged. Features that only exist in one VCS (Git log -graph, rebase, worktrees, stash; Subversion locks, properties, relocate) are -not modeled here. - -## Shared rules - -- UTF-8 JSON; every list has a deterministic order. -- Paths inside a root are root-relative with `/` separators and no empty, - `.`, or `..` segment. A root's identity is a workspace-relative `id` (`""` - for the workspace, `..` segments for an enclosing directory); its native - `path` is a platform binding, never a portable identity. -- Missing values are `null`. -- Hosts never parse or order revision IDs; only the provider compares them. -- Remote locations are display data; Core removes user info, query, and - fragment before they leave it. -- Secrets never appear in arguments, results, console events, or logs. - -## Manifest - -```json -{ - "pluginAPIVersion": 0, - "requires": { "vcsProviders": 0 }, - "requiresTools": ["node"], - "permissions": ["languageServer.launch", "process.vcs"], - "activationEvents": ["onVcsRoot:svn"], - "vcsProviders": [ - { - "id": "svn", - "displayName": "Subversion", - "detection": { "markers": [{ "name": ".svn", "type": "directory" }] }, - "metadataPaths": [".svn/wc.db"], - "tool": { "commands": ["svn"], "validationArguments": ["--version", "--quiet"] }, - "launch": { "kind": "runtime", "tool": "node", "minimumVersion": "20.3", "entry": "provider/main.mjs" }, - "arguments": ["--stdio"], - "mayUseNetwork": true - } - ] -} -``` - -| Field | Rule | -| --- | --- | -| `id` | `[a-z][a-z0-9-]{0,31}`; unique in the plugin. `git` is reserved (`plugin.vcs.reserved`). | -| `displayName` | One line of 1-64 characters. | -| `detection.markers` | 1-8 entries directly inside a root; `type` is `directory` or `file`. | -| `metadataPaths` | Up to 16 root-relative paths the host watches to refresh status. | -| `tool` | Optional. Bare command names the host resolves like a `systemCommand` launch, and an optional probe. | -| `launch`, `arguments`, `validationArguments`, `runtimeDependencies`, `initializationOptions` | The process-start fields every plugin process shares; see the base contract. | -| `mayUseNetwork` | Shown in the install review. | - -A plugin declares at most 8 providers. A non-empty `vcsProviders` requires the -`languageServer.launch` and `process.vcs` permissions, the activation event -`onVcsRoot:` for every provider, and `requires.vcsProviders`. Starting the -process follows the base contract's process rules, which are not a capability -and are never listed in `requires`. VCS capabilities are not declared in the -manifest: they belong to the running process and are negotiated. - -The install review lists one program per provider, of kind -`packagedVcsProvider`, `systemVcsProvider`, or `runtimeVcsProvider`, with -`vcs`, `vcsTool` (the declared `tool`), and `mayUseNetwork`, plus the -runtime it needs. Changing the tool or the launch is a new program the user -approves again. - -`plugins.declarative.languageServerLaunchPlan` with `vcsProviderID` plans -the process and adds `vcsProvider`, the descriptor below. - -## Provider descriptor - -```json -{ - "vcs": "svn", - "displayName": "Subversion", - "origin": { "kind": "plugin", "pluginID": "io.github.lithe-idea.svn-support" }, - "markers": [{ "name": ".svn", "type": "directory" }], - "metadataPaths": [".svn/wc.db"], - "tool": { "commands": ["svn"], "validationArguments": ["--version", "--quiet"] }, - "mayUseNetwork": true -} -``` - -The built-in Git entry is `{ vcs: "git", displayName: "Git", origin: { kind: -"builtIn" }, markers }` with the `.git` directory and file markers. - -## Core commands - -| Command | Purpose | -| --- | --- | -| `vcs.detectRoots` | Providers, roots, ambiguous directories, and applied mappings of a workspace | -| `vcs.ownerOf` | The root that owns each workspace path | -| `lsp.vcsRequest` | Sends one operation to a negotiated provider session | -| `vcs.decodeReply` | Validates a provider's reply and returns the normalized result | - -### `vcs.detectRoots` - -```json -{ - "workspaceRoot": "/abs/workspace", - "plugins": [{ "manifest": { } }], - "mappings": [{ "id": "mixed", "vcs": "svn" }] -} -``` - -Core validates every manifest again; a rejected one is listed as -`rejected: [{ index, error }]` and the rest still count. When two plugins claim -one VCS, an official plugin wins, then the lower plugin ID; the loser is listed -in `conflicts: [{ pluginID, vcs, by }]`. A relative `workspaceRoot` fails the -call. - -```json -{ - "status": "ok", - "detection": { - "providers": [ ], - "roots": [{ "id": "services/legacy", "vcs": "svn", "path": "/abs/workspace/services/legacy", "mapped": false }], - "ambiguous": [{ "id": "mixed", "vcs": ["git", "svn"] }], - "unusedMappings": [], - "truncated": false, - "rejected": [], - "conflicts": [] - } -} -``` - -Roots come from static markers; detection never starts a process. One -breadth-first walk reads the markers directly inside each directory down to -eight levels below the workspace, at most 20,000 directories. It never enters a -marker directory (`.git`, `.svn`), a symbolic link, or a dependency or build -directory such as `node_modules`, `target`, or `.worktrees`. When the workspace -itself has no marker, its ancestors are checked, because a Subversion working -copy has one `.svn` at its top; the enclosing root's `id` is `..`, `../..`, …. -`truncated` is `true` only when the directory budget ran out, so a root may be -missing. - -A directory with markers of several VCSs is ambiguous until a mapping names -one of them; Core never guesses. Mappings that name no ambiguous directory, or -a VCS whose markers are not there, are returned in `unusedMappings`. Roots and -ambiguous directories are ordered by depth (enclosing first), then `id`. - -### `vcs.ownerOf` - -```json -{ "roots": ["", "services/legacy"], "ambiguous": ["mixed"], "paths": ["README.md", "mixed/a.txt"] } -``` - -returns `{ status: "ok", owners: [{ path, root }] }` in request order. A path -belongs to the deepest root that contains it; inside an unmapped ambiguous -directory it belongs to no root (`null`), not to an enclosing one. At most -100,000 paths per call. - -### `lsp.vcsRequest` - -```json -{ - "sessionId": "…", - "operationId": "…", - "vcs": "svn", - "operation": "checkin", - "root": "/abs/workspace/services/legacy", - "tool": "/opt/homebrew/bin/svn", - "arguments": { "paths": ["src/Main.java"], "message": "Fix" }, - "timeoutMilliseconds": 600000 -} -``` - -The host names an operation, never a method, so a session cannot be used as a -generic JSON-RPC tunnel. Core refuses the request before writing it when the -session did not negotiate a provider for `vcs` -(`notSupported`, details `vcs.provider.unavailable`), when the provider did not -negotiate the operation's capability (`notSupported`, details -`vcs.capability.unsupported`), or when the arguments are malformed -(`invalidRequest`). `timeoutMilliseconds` is capped at one hour; the session's -request timeout applies when it is absent. The result arrives as a -`requestCompleted` event with `result: { value: }`; a failure carries -one of the error codes below. - -| Operation | Method | Capability | Arguments | -| --- | --- | --- | --- | -| `status` | `lithe/vcs/status` | `status` | `{ includeIgnored? }` | -| `baseContent` | `lithe/vcs/baseContent` | `baseContent` | `{ path }` | -| `history` | `lithe/vcs/history` | `history` | `{ cursor?, limit? }` | -| `fileHistory` | `lithe/vcs/fileHistory` | `fileHistory` | `{ path, cursor?, limit? }` | -| `annotate` | `lithe/vcs/annotate` | `annotate` | `{ path }` | -| `checkin` | `lithe/vcs/checkin` | `checkin` | `{ paths, message }` | -| `rollback` | `lithe/vcs/rollback` | `rollback` | `{ paths }` | -| `update` | `lithe/vcs/update` | `update` | `{ revision? }` | -| `fileOperation` | `lithe/vcs/fileOperation` | `fileOperations` | `{ kind: "add" \| "delete", paths }` or `{ kind: "move", from, to }` | -| `resolve` | `lithe/vcs/resolve` | `conflicts` | `{ paths }` | -| `cleanup` | `lithe/vcs/cleanup` | `cleanup` | `{}` | - -`paths` holds 1-10,000 root-relative paths; Core sorts and deduplicates them. -A history page has 1-500 entries (100 by default). A check-in message is -non-empty text of at most 1 MiB. Unknown argument fields fail. - -Core adds `root: { path }` and `tool: { executable } | null` to the params. -The provider receives, for example: - -```json -{ "paths": ["src/Main.java"], "message": "Fix", "root": { "path": "/abs/…/legacy" }, "tool": { "executable": "/opt/homebrew/bin/svn" } } -``` - -### `vcs.decodeReply` - -```json -{ "operation": "status", "capabilities": { "status": 0, "…": 0 }, "request": { }, "reply": { } } -``` - -`capabilities` is what the session reported in its `vcsProvider` event, -`request` the arguments the host sent, and `reply` the `value` of the -completed request. The result is `{ status: "ok", result }` or -`{ status: "rejected", error: { code: "plugin.vcs.invalidOutput", … } }`. - -## Negotiation - -The host offers `capabilities.experimental.litheVcs: { "versions": [0] }` in -`initialize`, to plugin-owned sessions only. The protocol version is the -`vcsProviders` capability version. The provider answers: - -```json -{ "litheVcs": { "version": 0, "vcs": "svn", "capabilities": { "status": 0, "baseContent": 0, "checkin": 0, "rollback": 0, "update": 0 } } } -``` - -A session is a provider only when the answer names an offered version, a valid -VCS ID, and every required capability. Every capability is named at version 0; -an unknown capability, or a known one named at any other version, is ignored. -Core then publishes a runtime event of kind -`vcsProvider` with `result: { vcs, capabilities }`; the host compares `vcs` -with the manifest entry it launched and stops a session that answered another -one. A session without a valid answer receives no `lithe/vcs/*` request. - -| Capability | Required | Meaning | -| --- | --- | --- | -| `status` | yes | File status of a root | -| `baseContent` | yes | Content of a file at its base revision (Diff, gutter) | -| `checkin` | yes | Record selected changes as a new revision | -| `rollback` | yes | Discard local changes of selected files | -| `history` | no | Paged revision history of a root | -| `fileHistory` | no | Paged revision history of one path | -| `annotate` | no | Per-line revision of a file | -| `update` | no | Bring remote revisions into the working copy | -| `push` | no | Check-in is local; publishing is a separate step | -| `staging` | no | Changes carry a staged/unstaged dimension | -| `fileOperations` | no | Add, move, and delete must go through the VCS to be tracked | -| `conflicts` | no | Report and resolve conflicted files | -| `cleanup` | no | Recover an interrupted working copy | - -UI behavior is chosen from capabilities only, never from `vcs`. A provider -without `push` commits directly to the server; the host labels the action -accordingly and does not offer "Commit and Push". The contract has no operation -for `push`: a provider that negotiates it only tells the host the VCS has a -publishing step. - -## Replies - -### Revision - -```json -{ "id": "1234", "display": "r1234", "kind": "number" } -``` - -`kind` is `hash`, `number`, or `opaque` (the default) and only affects -presentation. `display` defaults to `id`. `id` is passed back to the provider -unchanged. - -### `status` - -```json -{ - "head": { "revision": { "id": "1234", "display": "r1234", "kind": "number" }, "branch": null, "location": "https://svn.example.invalid/repo/trunk" }, - "changes": [ - { "path": "src/Main.java", "oldPath": null, "status": "modified", "flags": ["locked", "propertiesModified"] } - ], - "truncated": false -} -``` - -`status` is one of `modified`, `added`, `deleted`, `missing` (removed from disk -without telling the VCS), `renamed`, `copied`, `replaced`, `typeChanged`, -`unversioned`, `ignored`, `conflicted`, `switched`; any other value is invalid. -Only `renamed` and `copied` may name an `oldPath`. - -`flags` refine a status: `external`, `locked`, `lockedByOther`, -`propertiesModified`, `submodule`, `treeConflict`. Core drops unknown flags, so -a provider can add optional data without breaking a host that does not know it, -and sorts the rest. - -A provider that negotiated `staging` gives every change -`staging: "staged" | "unstaged" | "partial"`; any other provider gives none. -Changelist membership is host state and never part of a reply. - -Core sorts `changes` by `path` and rejects duplicates. It caps a snapshot at -100,000 changes and sets `truncated: true`, as does a provider that stopped -early; a truncated snapshot must not be presented as complete. - -### Other operations - -| Operation | Reply | Rules | -| --- | --- | --- | -| `baseContent` | `{ content: string \| null, binary: bool }` | `null` content: the file has no base (added or unversioned); binary content is not sent. At most 32 MiB. | -| `history`, `fileHistory` | `{ entries: [{ revision, author, date, message, changes, changesTruncated }], nextCursor }` | Provider order (newest first) is kept; more entries than requested is invalid. Each entry lists at most 10,000 changes. | -| `annotate` | `{ revisions: [{ revision, author, date, message }], lines: [id \| null] }` | Each line names a listed revision ID or `null`; only used revisions are returned, sorted by ID. At most 500,000 lines. | -| `checkin` | `{ revision }` | The new revision, or `null` when the VCS does not report one. | -| `update` | `{ revision, conflicts: [path] }` | Conflicted paths, sorted and inside the root. | -| `rollback`, `fileOperation`, `resolve`, `cleanup` | `{}` | Unknown fields are ignored. | - -A path that is absolute, has a `..` segment, or otherwise leaves the root, a -missing required field, or a size limit exceeded makes the reply invalid. - -## Provider messages - -| Direction | Method | Behavior | -| --- | --- | --- | -| provider → host | `lithe/vcs/execution` | Notification of a command the provider ran: `{ command: [executable, ...arguments], exitCode: number \| null, durationMilliseconds, stderr }`, with `stderr` cut to 16 KiB and no stdout. Core passes it on as a session `log` event (`message` is the method, `detail` the params as JSON); routing it to the project console is host work (P3). Arguments are shown as sent, so a provider never puts a credential in them. | -| provider → host | `lithe/vcs/authenticate` | Not accepted yet: Core answers `-32601`. A provider runs its client non-interactively and fails with `vcs.authentication.failed`. | - -Both sides ignore unknown fields in params and results. `$/cancelRequest` and -the request deadline end a request with `requestCancelled` or -`requestTimeout`. - -## Error codes - -| Code | Raised by | Meaning | -| --- | --- | --- | -| `vcs.provider.unavailable` | Core (`details` of `notSupported`) | The session negotiated no provider, or one for another VCS | -| `vcs.capability.unsupported` | Core (`details` of `notSupported`) | The operation needs a capability the provider did not negotiate | -| `plugin.vcs.reserved` | Core (manifest) | A plugin declared the reserved `git` ID | -| `plugin.vcs.invalidOutput` | Core | A reply failed validation, exceeded a limit, or had no result | -| `vcs.provider.failed` | Core | The provider failed without one of the codes below | -| `vcs.authentication.failed` | provider | Credentials were missing or rejected | -| `vcs.conflict` | provider | The operation stopped on conflicted files | -| `vcs.outOfDate` | provider | The server rejected a check-in because the working copy is out of date | -| `vcs.tool.unavailable` | provider | The VCS client could not be run | -| `vcs.workingCopy.locked` | provider | The working copy is locked by an interrupted operation; `cleanup` may help | -| `vcs.workingCopy.unsupported` | provider | The working copy format is not supported | - -A provider reports its code in the JSON-RPC `error.data.code`. Core keeps only -the provider codes listed here; any other code, including Core's own, becomes -`vcs.provider.failed`. The provider's message (at most 4 KiB) is passed on and -must not contain credentials. - -## Subversion provider notes - -Subversion is provided by the community plugin -[lithe-plugin-svn](https://github.com/Lithe-IDEA/lithe-plugin-svn) -(`io.github.lithe-idea.svn-support`), released independently of Lithe. It calls -the user's `svn` client, 1.8 or newer, and parses its `--xml` output. Its README -documents how each operation maps to svn and how svn errors map to contract -codes; its tests check those replies against a pinned Lithe Core. diff --git a/shared/contracts/workbench-background-v1.schema.json b/shared/contracts/workbench-background-v1.schema.json deleted file mode 100644 index f86f217cac..0000000000 --- a/shared/contracts/workbench-background-v1.schema.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://lithe.dev/contracts/workbench-background-v1.schema.json", - "title": "Lithe Workbench Background v1", - "type": "object", - "required": ["version", "source", "opacity"], - "properties": { - "version": { "const": 1 }, - "source": { - "type": "object", - "required": ["kind"], - "properties": { - "kind": { "enum": ["none", "bundled", "custom"] }, - "bundledSlot": { "type": "string", "pattern": "^(0[1-9]|10)$" } - }, - "additionalProperties": false, - "allOf": [ - { - "if": { "properties": { "kind": { "const": "bundled" } } }, - "then": { "required": ["bundledSlot"] }, - "else": { "not": { "required": ["bundledSlot"] } } - } - ] - }, - "opacity": { "type": "number", "minimum": 0.05, "maximum": 1 } - }, - "additionalProperties": false -} diff --git a/shared/fixtures/agent/acp-events-v1.json b/shared/fixtures/agent/acp-events-v1.json deleted file mode 100644 index 2e95d83d1f..0000000000 --- a/shared/fixtures/agent/acp-events-v1.json +++ /dev/null @@ -1,547 +0,0 @@ -{ - "version": 1, - "workspaceContext": { - "relativeRoots": ["parent/examples/spring-service", "parent/examples/another-service"], - "question": "这个项目是用来做什么的", - "supplement": "继续讲解当前项目的结构", - "nativeCommandWithFilesContent": [ - { "type": "text", "text": " \n/status" }, - { "type": "resource_link", "uri": "file:///example/project/Hello%20World.swift", "name": "Hello World.swift" }, - { "type": "resource_link", "uri": "file:///example/project/README.md", "name": "README.md" } - ] - }, - "commands": { - "authenticate": { "kind": "authenticate" }, - "refreshQuota": { "kind": "refreshQuota" }, - "newSession": { "kind": "newSession", "token": "token-1" }, - "loadSession": { "kind": "loadSession", "token": "token-2", "sessionId": "session-1" }, - "listSessions": { "kind": "listSessions", "token": "token-3" }, - "listArchivedSessions": { "kind": "listArchivedSessions", "token": "archived-1" }, - "unarchiveSession": { "kind": "unarchiveSession", "token": "unarchive-1", "sessionId": "archived-session-1" }, - "prompt": { "kind": "prompt", "sessionId": "session-1", "text": "Explain this project" }, - "steer": { "kind": "steer", "token": "steer-1", "sessionId": "session-1", "text": "Focus on login" }, - "promptWithFiles": { "kind": "prompt", "sessionId": "session-1", "text": "Explain these files", "files": [{ "uri": "file:///example/project/Hello%20World.swift", "name": "Hello World.swift" }, { "uri": "file:///example/project/README.md", "name": "README.md" }] }, - "fileOnlyPrompt": { "kind": "prompt", "sessionId": "session-1", "text": "", "files": [{ "uri": "file:///example/project/README.md", "name": "README.md" }] }, - "nativeCommandWithFiles": { "kind": "prompt", "sessionId": "session-1", "text": " \n/status", "files": [{ "uri": "file:///example/project/Hello%20World.swift", "name": "Hello World.swift" }, { "uri": "file:///example/project/README.md", "name": "README.md" }] }, - "cancel": { "kind": "cancel", "sessionId": "session-1" }, - "setConfigOption": { "kind": "setConfigOption", "token": "config-1", "sessionId": "session-1", "configId": "model", "value": "example-model" }, - "allowPermission": { "kind": "permission", "requestId": "permission-1", "optionId": "allow_once" }, - "denyPermission": { "kind": "permission", "requestId": "permission-1", "optionId": null } - }, - "events": { - "subagentSpawned": { - "kind": "update", - "sessionId": "session-1", - "update": { - "sessionUpdate": "subagent_spawned", - "subagentSessionId": "child-1", - "name": "Explore", - "task": "Inspect the sample project", - "capabilities": {} - } - }, - "nestedSubagentSpawned": { - "kind": "update", - "sessionId": "child-1", - "update": { - "sessionUpdate": "subagent_spawned", - "subagentSessionId": "child-2", - "name": "Verify", - "task": "Verify the sample tests", - "capabilities": {} - } - }, - "subagentMessageChunk": { - "kind": "update", - "sessionId": "child-1", - "update": { - "sessionUpdate": "agent_message_chunk", - "content": { - "type": "text", - "text": "The sample project contains a README." - } - } - }, - "subagentThoughtChunk": { - "kind": "update", - "sessionId": "child-1", - "update": { - "sessionUpdate": "agent_thought_chunk", - "content": { - "type": "text", - "text": "Inspecting the sample project files." - } - } - }, - "subagentToolCall": { - "kind": "update", - "sessionId": "child-1", - "update": { - "sessionUpdate": "tool_call", - "toolCallId": "tool-1", - "title": "Read README.md", - "kind": "read", - "status": "in_progress", - "rawInput": { - "path": "README.md" - } - } - }, - "subagentStateUpdate": { - "kind": "update", - "sessionId": "session-1", - "update": { - "sessionUpdate": "subagent_state_update", - "subagentSessionId": "child-1", - "state": "completed" - } - }, - "authenticationRequired": {"kind": "authenticationRequired"}, - "authenticating": {"kind": "authenticating"}, - "account": {"kind": "account", "account": {"email": "person@example.test", "plan": "plus"}}, - "quota": {"kind": "quota", "snapshot": {"windows": [{"id": "codex:primary", "name": "codex", "limitSeconds": 18000, "usedPercent": 68, "resetsAt": 1800003600}], "fetchedAt": 1800000000}}, - "quotaFailed": {"kind": "quotaFailed", "code": "timeout"}, - "ready": { - "kind": "ready", - "agentName": "example-agent", - "agentVersion": "1.0.0", - "canLoadSessions": true, - "canListSessions": true, - "canListArchivedSessions": false, - "canSteer": false - }, - "sessionCreated": { "kind": "sessionCreated", "token": "token-1", "sessionId": "session-1" }, - "steeringResult": { "kind": "steeringResult", "token": "steer-1", "sessionId": "session-1", "outcome": "injected" }, - "sessionLoaded": { "kind": "sessionLoaded", "token": "token-2", "sessionId": "session-1" }, - "sessionConfigured": { - "kind": "sessionConfigured", "token": "config-1", "sessionId": "session-1", - "configOptions": [ - { "id": "model", "name": "Model", "category": "model", "type": "select", "currentValue": "example-model", "options": [{ "value": "example-model", "name": "Example Model" }] }, - { "id": "mode", "name": "Permissions", "category": "mode", "type": "select", "currentValue": "read-only", "options": [{ "value": "read-only", "name": "Read Only" }, { "value": "auto", "name": "Auto" }] }, - { "id": "reasoning_effort", "name": "Reasoning", "category": "thought_level", "type": "select", "currentValue": "medium", "options": [{ "value": "medium", "name": "Medium" }, { "value": "high", "name": "High" }] } - ] - }, - "turnCancelling": { "kind": "turnCancelling", "sessionId": "session-1" }, - "turnActivityQuiet": { "kind": "turnActivity", "sessionId": "session-1", "quiet": true }, - "turnActivityResumed": { "kind": "turnActivity", "sessionId": "session-1", "quiet": false }, - "turnRetrying": { "kind": "turnRetrying", "sessionId": "session-1", "turnId": "host-turn-1", "attempt": 2, "maxAttempts": 5 }, - "turnRecovering": { "kind": "turnRetrying", "sessionId": "session-1", "turnId": "native-turn-1", "attempt": 6 }, - "claudeSessionFailure": { - "kind": "update", "sessionId": "session-1", - "update": { "sessionUpdate": "session_info_update", "_meta": { "jetbrains": { "air": { "version": 1, "sessionFailure": { "id": "upstream-turn-1:error", "revision": 1, "category": "access", "severity": "error", "title": "Sign in to continue using Claude.", "details": "API Error: 401 Invalid API key", "actions": ["login"] } } } } } - }, - "sessionsPage": { - "kind": "sessionsPage", "token": "token-3", - "sessions": [ - { "sessionId": "session-1", "title": "Explain this project", "updatedAt": "2026-09-25T10:00:00Z" } - ] - }, - "sessions": { - "kind": "sessions", - "token": "token-3", - "sessions": [ - { "sessionId": "session-1", "title": "Explain this project", "updatedAt": "2026-09-25T10:00:00Z" }, - { "sessionId": "session-2", "title": null, "updatedAt": null } - ] - }, - "archivedSessions": { - "kind": "archivedSessions", - "token": "archived-1", - "sessions": [ - { "sessionId": "archived-session-1", "title": "Earlier refactor", "updatedAt": "2026-09-20T08:30:00Z" } - ], - "complete": true - }, - "sessionUnarchived": { "kind": "sessionUnarchived", "token": "unarchive-1", "sessionId": "archived-session-1" }, - "sessionsWithoutGeneratedTitles": { - "kind": "sessions", "token": "untitled-history", - "sessions": [ - { "sessionId": "file-only", "title": null, "updatedAt": null }, - { "sessionId": "truncated", "title": null, "updatedAt": null }, - { "sessionId": "normalized", "title": null, "updatedAt": null }, - { "sessionId": "blank", "title": null, "updatedAt": null } - ] - }, - "userMessageChunk": { - "kind": "update", - "sessionId": "session-1", - "update": { "sessionUpdate": "user_message_chunk", "content": { "type": "text", "text": "Explain this project" } } - }, - "agentMessageChunk": { - "kind": "update", - "sessionId": "session-1", - "update": { "sessionUpdate": "agent_message_chunk", "content": { "type": "text", "text": "This project **builds** an IDE." } } - }, - "claudeAutoModeNotice": { - "kind": "update", - "sessionId": "session-1", - "update": { "sessionUpdate": "notice", "severity": "warning", "title": "Auto mode unavailable", "description": "The selected model does not support Auto mode; using Accept edits instead." } - }, - "agentThoughtChunk": { - "kind": "update", - "sessionId": "session-1", - "update": { "sessionUpdate": "agent_thought_chunk", "content": { "type": "text", "text": "Read the manifest first." } } - }, - "plan": { - "kind": "update", - "sessionId": "session-1", - "update": { "sessionUpdate": "plan", "entries": [{ "content": "Read the manifest", "priority": "high", "status": "completed" }, { "content": "Run the tests", "priority": "medium", "status": "in_progress" }, { "content": "Summarize the results", "priority": "low", "status": "pending" }] } - }, - "availableCommands": { - "kind": "update", - "sessionId": "session-1", - "update": { "sessionUpdate": "available_commands_update", "availableCommands": [{ "name": "review", "description": "Review the current changes", "input": { "hint": "optional focus" } }, { "name": "compact", "description": "Summarize the conversation to free context" }] } - }, - "currentModeUpdate": { - "kind": "update", - "sessionId": "session-1", - "update": { "sessionUpdate": "current_mode_update", "currentModeId": "auto" } - }, - "toolCall": { - "kind": "update", - "sessionId": "session-1", - "update": { "sessionUpdate": "tool_call", "toolCallId": "call-1", "title": "Run tests", "kind": "execute", "rawInput": { "command": "node --test" }, "locations": [{ "path": "src/main.js", "line": 1 }] } - }, - "toolCallUpdate": { - "kind": "update", - "sessionId": "session-1", - "update": { "sessionUpdate": "tool_call_update", "toolCallId": "call-1", "status": "completed", "content": [{ "type": "content", "content": { "type": "text", "text": "1 test passed" } }], "rawOutput": { "exitCode": 0 } } - }, - "fileEdit": { - "kind": "update", "sessionId": "session-1", - "update": { "sessionUpdate": "tool_call", "toolCallId": "edit-1", "title": "Edit sample.txt", "kind": "edit", "status": "completed", "content": [{ "type": "diff", "path": "sample.txt", "oldText": "before\n", "newText": "after\n", "_meta": { "kind": "update", "jetbrains": { "air": { "version": 1, "diffStats": { "version": 1, "added": 1, "removed": 1 } } } } }], "_meta": { "lithe": { "diffs": [{ "path": "sample.txt", "oldText": "before\n", "newText": "after\n", "operation": "update", "additions": 1, "deletions": 1, "truncated": false, "revertible": true }] } } } - }, - "claudeFileCreated": { - "kind": "update", "sessionId": "session-1", - "update": { "sessionUpdate": "tool_call_update", "toolCallId": "write-create", "kind": "edit", "status": "completed", "content": [{ "type": "diff", "path": "created.txt", "newText": "created" }], "_meta": { "claudeCode": { "toolName": "Write", "toolResponse": { "type": "create", "filePath": "created.txt", "content": "created\n", "originalFile": null, "structuredPatch": [] } }, "lithe": { "diffs": [{ "path": "created.txt", "oldText": null, "newText": "created\n", "operation": "add", "additions": null, "deletions": null, "truncated": false, "revertible": true }] } } } - }, - "claudeFileWriteUpdated": { - "kind": "update", "sessionId": "session-1", - "update": { "sessionUpdate": "tool_call_update", "toolCallId": "write-update", "kind": "edit", "status": "completed", "content": [{ "type": "diff", "path": "updated.txt", "oldText": "before", "newText": "after" }], "_meta": { "claudeCode": { "toolName": "Write", "toolResponse": { "type": "update", "filePath": "updated.txt", "content": "after\n", "originalFile": "before\n", "structuredPatch": [] } }, "lithe": { "diffs": [{ "path": "updated.txt", "oldText": "before\n", "newText": "after\n", "operation": "update", "additions": null, "deletions": null, "truncated": false, "revertible": true }] } } } - }, - "codexRetry": { - "kind": "update", "sessionId": "session-1", - "update": { "sessionUpdate": "session_info_update", "_meta": { "codex": { "error": { "message": "Stream closed before completion; reconnecting.", "codexErrorInfo": null, "additionalDetails": null, "turnId": "upstream-turn-1", "willRetry": true } } } } - }, - "codexNativeRetry": { - "kind": "update", "sessionId": "session-1", - "update": {"sessionUpdate": "session_info_update", "_meta": {"jetbrains": {"air": {"version": 1, "sessionFailure": {"id": "upstream-turn-1:error", "revision": 1, "category": "connection", "severity": "warning", "title": "{\"litheCodexFailure\":{\"message\":\"Local Codex fixture failure\",\"codexErrorInfo\":{\"responseStreamDisconnected\":{\"httpStatusCode\":503}},\"turnId\":\"upstream-turn-1\",\"willRetry\":true,\"activeTurn\":true,\"sequence\":1}}", "actions": []}}}}} - }, - "sessionInfo": { - "kind": "update", - "sessionId": "session-1", - "update": { "sessionUpdate": "session_info_update", "title": "Project overview" } - }, - "historicalUsageUpdate": {"kind": "update", "sessionId": "session-1", "update": {"sessionUpdate": "usage_update", "used": 125300, "size": 300000, "_meta": {"lithe": {"contextUsageSource": "history"}}}}, - "usageUpdate": { - "kind": "update", - "sessionId": "session-1", - "update": { "sessionUpdate": "usage_update", "used": 18700, "size": 258400 } - }, - "permission": { - "kind": "permission", - "sessionId": "session-1", - "requestId": "permission-1", - "request": { - "sessionId": "session-1", - "toolCall": { "toolCallId": "call-1", "title": "Run tests", "rawInput": { "command": "node --test" } }, - "options": [ - { "optionId": "allow_once", "name": "Allow Once", "kind": "allow_once" }, - { "optionId": "reject_once", "name": "Reject", "kind": "reject_once" } - ] - } - }, - "modelCall": { - "kind": "modelCall", - "sessionId": "session-1", - "call": { - "api": "anthropicMessages", "model": "claude-sonnet", "status": 200, "streaming": true, - "firstTokenMs": 820, "durationMs": 6400, - "usage": { "inputTokens": 1200, "cacheReadTokens": 42000, "cacheWriteTokens": 800, "outputTokens": 640 }, - "context": { "systemPromptTokens": 4500, "toolTokens": 3500, "mcpToolTokens": 14000, "messageTokens": 22000, "toolCount": 18, "mcpToolCount": 40, "scaledToUsage": true } - }, - "statistics": { - "requests": 1, "steps": 1, "failedSteps": 0, "nonStreamingSteps": 0, "durationMs": 6400, - "inputTokens": 1200, "cacheReadTokens": 42000, "cacheWriteTokens": 800, "outputTokens": 640, "callsWithUsage": 1, - "firstTokenMs": 820, "firstTokenCount": 1, "generationMs": 5580, "generatedTokens": 640, - "context": { "systemPromptTokens": 4500, "toolTokens": 3500, "mcpToolTokens": 14000, "messageTokens": 22000, "toolCount": 18, "mcpToolCount": 40, "scaledToUsage": true } - } - }, - "modelCallAfterTurn": { - "kind": "modelCall", - "sessionId": "session-1", - "afterTurnFinished": true, - "call": { - "api": "anthropicMessages", "model": "claude-sonnet", "status": 200, "streaming": true, - "firstTokenMs": 820, "durationMs": 6400, - "usage": { "inputTokens": 1200, "cacheReadTokens": 42000, "cacheWriteTokens": 800, "outputTokens": 640 }, - "context": { "systemPromptTokens": 4500, "toolTokens": 3500, "mcpToolTokens": 14000, "messageTokens": 22000, "toolCount": 18, "mcpToolCount": 40, "scaledToUsage": true } - }, - "statistics": { - "requests": 1, "steps": 1, "failedSteps": 0, "nonStreamingSteps": 0, "durationMs": 6400, - "inputTokens": 1200, "cacheReadTokens": 42000, "cacheWriteTokens": 800, "outputTokens": 640, "callsWithUsage": 1, - "firstTokenMs": 820, "firstTokenCount": 1, "generationMs": 5580, "generatedTokens": 640, - "context": { "systemPromptTokens": 4500, "toolTokens": 3500, "mcpToolTokens": 14000, "messageTokens": 22000, "toolCount": 18, "mcpToolCount": 40, "scaledToUsage": true } - } - }, - "modelCallNonStreaming": { - "kind": "modelCall", - "sessionId": "session-1", - "call": { - "api": "responses", "status": 200, "streaming": false, "durationMs": 3000, - "usage": { "inputTokens": 500, "cacheReadTokens": 0, "cacheWriteTokens": 0, "outputTokens": 300, "reasoningTokens": 100 } - }, - "statistics": { - "requests": 1, "steps": 1, "failedSteps": 0, "nonStreamingSteps": 1, "durationMs": 3000, - "inputTokens": 500, "cacheReadTokens": 0, "cacheWriteTokens": 0, "outputTokens": 300, "reasoningTokens": 100, "callsWithUsage": 1, - "firstTokenMs": 0, "firstTokenCount": 0, "generationMs": 0, "generatedTokens": 0 - } - }, - "turnFinished": { "kind": "turnFinished", "sessionId": "session-1", "stopReason": "end_turn" }, - "turnFinishedWithUsage": { "kind": "turnFinished", "sessionId": "session-1", "stopReason": "end_turn", "usage": { "totalTokens": 25000, "inputTokens": 18000, "outputTokens": 2000, "thoughtTokens": 1000, "cachedReadTokens": 3000, "cachedWriteTokens": 1000 } }, - "turnCancelled": { "kind": "turnFinished", "sessionId": "session-1", "stopReason": "cancelled" }, - "requestFailed": { - "kind": "requestFailed", - "token": null, - "sessionId": "session-1", - "message": "The Agent is still responding in this conversation" - }, - "stopped": { "kind": "stopped", "message": "The Agent connection closed unexpectedly" } - }, - "upstream": { - "codexSubscriptionObservation": { - "accountRead": { - "id": 1, - "result": { - "account": { - "type": "chatgpt", - "email": "person@example.test", - "planType": "plus" - }, - "workspaceRouting": { - "chatgptAccountId": "fixture-account", - "backendOrigin": "https://chatgpt.com", - "accountRoutingOverride": "NO_CONSTRAINT" - } - } - }, - "request": { - "type": "response.create", - "model": "test-model", - "instructions": "A fixed system prompt.", - "tools": [ - { - "type": "function", - "name": "exec_command", - "parameters": {} - }, - { - "type": "function", - "name": "mcp__files__read", - "parameters": {} - } - ], - "input": [ - { - "role": "developer", - "content": "Project rules." - }, - { - "role": "user", - "content": "Hello" - } - ] - } - }, - "codexContextReplay": {"resumeRequest": {"id": 7, "method": "thread/resume", "params": {"threadId": "session-a", "excludeTurns": true, "modelProvider": "openai"}}, "resumeResponse": {"id": 7, "result": {"thread": {"id": "session-a"}}}, "notification": {"method": "thread/tokenUsage/updated", "params": {"threadId": "session-a", "turnId": "turn-a", "tokenUsage": {"last": {"totalTokens": 125300}, "total": {"totalTokens": 9000000}, "modelContextWindow": 300000}}}, "hostUpdate": {"sessionUpdate": "usage_update", "used": 125300, "size": 300000, "_meta": {"lithe": {"contextUsageSource": "history"}}}}, - "codexFailureResponse": { - "stopReason": "end_turn", "_meta": {"jetbrains": {"air": {"version": 1, "sessionFailure": {"id": "upstream-turn-1:error", "revision": 5, "category": "connection", "severity": "error", "title": "{\"litheCodexFailure\":{\"message\":\"Local Codex fixture failure\",\"codexErrorInfo\":{\"httpConnectionFailed\":{\"httpStatusCode\":503}},\"turnId\":\"upstream-turn-1\",\"willRetry\":false,\"activeTurn\":true,\"sequence\":5}}", "actions": ["retry", "new_session"]}}}} - }, - "claudeTemporaryFailureResponse": { - "stopReason": "end_turn", "_meta": { "jetbrains": { "air": { "version": 1, "sessionFailure": { "id": "upstream-turn-1:error", "revision": 1, "category": "service", "severity": "error", "title": "API Error: 503 No available channel", "actions": ["retry"] } } } } - }, - "claudeSessionRouting": { - "provider": {"protocol": "anthropicMessages", "baseUrl": "https://gateway.example.com/v1/messages", "apiKey": "test-key-123", "name": "Example Claude", "model": "model-configured"}, - "meta": { - "claudeCode": { - "options": { - "model": "model-configured", - "env": {"ANTHROPIC_BASE_URL": "https://gateway.example.com", "ANTHROPIC_API_KEY": "test-key-123", "ANTHROPIC_AUTH_TOKEN": "", "ANTHROPIC_CUSTOM_HEADERS": "", "CLAUDE_CODE_OAUTH_TOKEN": "", "CLAUDE_CODE_MAX_RETRIES": "0", "CLAUDE_CODE_RETRY_WATCHDOG": "0", "CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK": "1", "CLAUDE_CODE_USE_BEDROCK": "0", "CLAUDE_CODE_USE_VERTEX": "0", "CLAUDE_CODE_USE_FOUNDRY": "0", "CLAUDE_CODE_USE_ANTHROPIC_AWS": "0", "ANTHROPIC_BEDROCK_BASE_URL": "", "ANTHROPIC_VERTEX_BASE_URL": ""}, - "settings": { - "apiKeyHelper": "", - "env": {"ANTHROPIC_BASE_URL": "https://gateway.example.com", "ANTHROPIC_API_KEY": "test-key-123", "ANTHROPIC_AUTH_TOKEN": "", "ANTHROPIC_CUSTOM_HEADERS": "", "CLAUDE_CODE_OAUTH_TOKEN": "", "CLAUDE_CODE_MAX_RETRIES": "0", "CLAUDE_CODE_RETRY_WATCHDOG": "0", "CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK": "1", "CLAUDE_CODE_USE_BEDROCK": "0", "CLAUDE_CODE_USE_VERTEX": "0", "CLAUDE_CODE_USE_FOUNDRY": "0", "CLAUDE_CODE_USE_ANTHROPIC_AWS": "0", "ANTHROPIC_BEDROCK_BASE_URL": "", "ANTHROPIC_VERTEX_BASE_URL": ""} - } - } - } - }, - "restoredMeta": { - "claudeCode": { - "options": { - "env": { - "ANTHROPIC_BASE_URL": "https://gateway.example.com", - "ANTHROPIC_API_KEY": "test-key-123", - "ANTHROPIC_AUTH_TOKEN": "", - "ANTHROPIC_CUSTOM_HEADERS": "", - "CLAUDE_CODE_OAUTH_TOKEN": "", - "CLAUDE_CODE_MAX_RETRIES": "0", - "CLAUDE_CODE_RETRY_WATCHDOG": "0", - "CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK": "1", - "CLAUDE_CODE_USE_BEDROCK": "0", - "CLAUDE_CODE_USE_VERTEX": "0", - "CLAUDE_CODE_USE_FOUNDRY": "0", - "CLAUDE_CODE_USE_ANTHROPIC_AWS": "0", - "ANTHROPIC_BEDROCK_BASE_URL": "", - "ANTHROPIC_VERTEX_BASE_URL": "" - }, - "settings": { - "apiKeyHelper": "", - "env": { - "ANTHROPIC_BASE_URL": "https://gateway.example.com", - "ANTHROPIC_API_KEY": "test-key-123", - "ANTHROPIC_AUTH_TOKEN": "", - "ANTHROPIC_CUSTOM_HEADERS": "", - "CLAUDE_CODE_OAUTH_TOKEN": "", - "CLAUDE_CODE_MAX_RETRIES": "0", - "CLAUDE_CODE_RETRY_WATCHDOG": "0", - "CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK": "1", - "CLAUDE_CODE_USE_BEDROCK": "0", - "CLAUDE_CODE_USE_VERTEX": "0", - "CLAUDE_CODE_USE_FOUNDRY": "0", - "CLAUDE_CODE_USE_ANTHROPIC_AWS": "0", - "ANTHROPIC_BEDROCK_BASE_URL": "", - "ANTHROPIC_VERTEX_BASE_URL": "" - } - } - } - } - } - }, - "claudeRestoredSession": { - "configOptions": [ - { - "id": "restored-model-selector", - "name": "Model", - "category": "model", - "type": "select", - "currentValue": "model-restored", - "options": [ - { - "value": "model-restored", - "name": "Restored" - }, - { - "value": "model-configured", - "name": "Default" - } - ] - }, - { - "id": "mode", - "name": "Permission mode", - "category": "mode", - "type": "select", - "currentValue": "manual", - "options": [ - { - "value": "manual", - "name": "Manual" - } - ] - }, - { - "id": "effort", - "name": "Effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "Medium" - }, - { - "value": "high", - "name": "High" - } - ] - } - ] - }, - "promptResponseWithUsage": { "stopReason": "end_turn", "usage": { "totalTokens": 25000, "inputTokens": 18000, "outputTokens": 2000, "thoughtTokens": 1000, "cachedReadTokens": 3000, "cachedWriteTokens": 1000 } }, - "staleModelSession": { - "sessionId": "session-repaired", - "models": { - "currentModelId": "model-retired[max]", - "availableModels": [ - { - "modelId": "model-current[max]", - "name": "Current Max" - }, - { - "modelId": "model-other[medium]", - "name": "Other Medium" - } - ] - }, - "configOptions": [ - { - "id": "model", - "name": "Model", - "category": "model", - "type": "select", - "currentValue": "model-retired", - "options": [ - { - "value": "model-retired", - "name": "model-retired" - }, - { - "value": "model-current", - "name": "model-current" - }, - { - "value": "model-other", - "name": "model-other" - } - ], - "_meta": { - "jetbrains": { - "air": { - "version": 1, - "recommendedValue": "model-current" - } - } - } - } - ] - }, - "repairedModelConfiguration": { - "configOptions": [ - { - "id": "model", - "name": "Model", - "category": "model", - "type": "select", - "currentValue": "model-current", - "options": [ - { - "value": "model-current", - "name": "model-current" - }, - { - "value": "model-other", - "name": "model-other" - } - ], - "_meta": { - "jetbrains": { - "air": { - "version": 1, - "recommendedValue": "model-current" - } - } - } - } - ] - } - } -} diff --git a/shared/fixtures/agent/agent-instructions-v1.json b/shared/fixtures/agent/agent-instructions-v1.json deleted file mode 100644 index 9a91a9049f..0000000000 --- a/shared/fixtures/agent/agent-instructions-v1.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "version": 1, - "readRequest": { - "command": "agent.instructions.read", - "payload": { - "agentId": "codex-acp" - } - }, - "file": { - "agentId": "codex-acp", - "path": "/fixture/user/.codex/AGENTS.md", - "content": "# Working agreements\nUse concise replies.\n", - "exists": true, - "revision": "5b94dd8e0a4a42bab37c0b1b7bb3d36e15d6cda57bb6cd32de40f2060e051228" - }, - "saveRequest": { - "command": "agent.instructions.save", - "payload": { - "agentId": "codex-acp", - "content": "# Updated\n", - "expectedPath": "/fixture/user/.codex/AGENTS.md", - "expectedRevision": "5b94dd8e0a4a42bab37c0b1b7bb3d36e15d6cda57bb6cd32de40f2060e051228" - } - }, - "windowsFile": { - "agentId": "claude-acp", - "path": "C:\\Users\\fixture\\.claude\\CLAUDE.md", - "content": "Claude only", - "exists": true, - "revision": "6200025904539440f7dde4fa1a3a0ca731c61c31bc8f0d188acf741caf0bdd40" - }, - "conflict": { - "ok": false, - "error": { - "code": "invalid_request", - "message": "Global instructions changed outside this editor. Your draft is kept; reload before saving.", - "details": "file_changed" - } - } -} diff --git a/shared/fixtures/agent/agent-management-v1.json b/shared/fixtures/agent/agent-management-v1.json deleted file mode 100644 index a0a9bcc9db..0000000000 --- a/shared/fixtures/agent/agent-management-v1.json +++ /dev/null @@ -1,212 +0,0 @@ -{ - "version": 1, - "requests": { - "status": { - "command": "agent.status", - "payload": { - "dataDirectory": "/Users/example/Library/Application Support/Lithe" - } - }, - "install": { - "command": "agent.install", - "payload": { - "dataDirectory": "/Users/example/Library/Application Support/Lithe", - "agentId": "codex-acp" - } - }, - "uninstall": { - "command": "agent.uninstall", - "payload": { - "dataDirectory": "/Users/example/Library/Application Support/Lithe", - "agentId": "codex-acp" - } - }, - "installCli": { - "command": "agent.installCli", - "payload": { - "dataDirectory": "/Users/example/Library/Application Support/Lithe", - "agentId": "codex-acp" - } - } - }, - "responses": { - "status": { - "environment": { - "node": { - "version": "20.11.0", - "path": "/opt/example/node/bin/node" - }, - "npm": { - "version": "10.2.4", - "path": "/opt/example/node/bin/npm" - }, - "usedLoginShell": true - }, - "agents": [ - { - "id": "codex-acp", - "name": "Codex", - "description": "OpenAI Codex through its ACP adapter", - "package": "@agentclientprotocol/codex-acp", - "version": "2.2.2", - "installedVersion": "2.2.2", - "protocol": "responses", - "minimumNodeMajor": 20, - "verified": true, - "cli": { - "name": "Codex CLI", - "command": "codex", - "minimumVersion": "0.160.1", - "installHint": "npm install -g @openai/codex", - "detected": { - "version": "0.160.1", - "path": "/opt/example/node/bin/codex" - }, - "package": "@openai/codex", - "installation": { - "source": "npm", - "canUpdate": true, - "updateHint": "npm install -g @openai/codex", - "updateAvailable": true, - "availableVersion": "0.161.1" - } - }, - "issues": [], - "updateAvailable": false - }, - { - "id": "claude-acp", - "name": "Claude", - "description": "Claude Agent through its ACP adapter", - "package": "@agentclientprotocol/claude-agent-acp", - "version": "0.95.0", - "installedVersion": null, - "protocol": "anthropicMessages", - "minimumNodeMajor": 22, - "verified": false, - "cli": { - "name": "Claude Code", - "command": "claude", - "minimumVersion": "2.1.309", - "installHint": "npm install -g @anthropic-ai/claude-code", - "detected": null, - "package": "@anthropic-ai/claude-code", - "installation": { - "source": "missing", - "canUpdate": true, - "updateHint": "npm install -g @anthropic-ai/claude-code" - } - }, - "issues": [ - "Claude needs Node.js 22 or later; found 20.11.0.", - "Claude Code was not found. Install it (for example `npm install -g @anthropic-ai/claude-code`), then check again." - ] - } - ] - }, - "install": { - "agentId": "codex-acp", - "installedVersion": "2.2.2" - }, - "uninstall": { - "agentId": "codex-acp" - }, - "installCli": { - "agentId": "codex-acp", - "cliVersion": "0.160.1", - "updaterWarning": null - }, - "installCliRecovered": { - "agentId": "codex-acp", - "cliVersion": "0.161.1", - "updaterWarning": "Download failed; retry completed" - } - }, - "events": { - "preparing": { - "kind": "agentInstallProgress", - "operationId": "install-example", - "progress": { - "stage": "preparing", - "downloadedBytes": 0, - "bytesPerSecond": 0, - "elapsedMilliseconds": 0, - "idleMilliseconds": 0 - } - }, - "downloading": { - "kind": "agentInstallProgress", - "operationId": "install-example", - "progress": { - "stage": "downloading", - "downloadedBytes": 25000000, - "bytesPerSecond": 75000, - "elapsedMilliseconds": 300000, - "idleMilliseconds": 0 - } - }, - "waiting": { - "kind": "agentInstallProgress", - "operationId": "install-example", - "progress": { - "stage": "downloading", - "downloadedBytes": 25000000, - "bytesPerSecond": 0, - "elapsedMilliseconds": 320000, - "idleMilliseconds": 20000 - } - }, - "updating": { - "kind": "agentInstallProgress", - "operationId": "install-example", - "progress": { - "stage": "updating", - "downloadedBytes": 0, - "bytesPerSecond": 0, - "elapsedMilliseconds": 0, - "idleMilliseconds": 0 - } - } - }, - "cliInstallations": { - "npm": { - "source": "npm", - "canUpdate": true, - "updateHint": "npm install -g @openai/codex", - "updateAvailable": true, - "availableVersion": "0.161.1" - }, - "homebrew": { - "source": "homebrew", - "canUpdate": true, - "updateHint": "brew upgrade --cask codex", - "updateAvailable": true - }, - "native": { - "source": "native", - "canUpdate": true, - "updateHint": "claude update" - }, - "missing": { - "source": "missing", - "canUpdate": true, - "updateHint": "npm install -g @anthropic-ai/claude-code" - }, - "unknown": { - "source": "unknown", - "canUpdate": false, - "updateHint": "Update this CLI using its original installer, then check again." - }, - "npmEnvironmentMismatch": { - "source": "npm", - "canUpdate": false, - "updateHint": "Switch to the Node.js/npm environment that installed this CLI, update it there, then check again." - }, - "npmCheckFailed": { - "source": "npm", - "canUpdate": true, - "updateHint": "npm install -g @example/agent", - "updateCheckError": "Network request failed: connection refused" - } - } -} diff --git a/shared/fixtures/agent/attachment-retention-v1.json b/shared/fixtures/agent/attachment-retention-v1.json deleted file mode 100644 index 2fa8ebf1fb..0000000000 --- a/shared/fixtures/agent/attachment-retention-v1.json +++ /dev/null @@ -1,359 +0,0 @@ -{ - "command": "agent.attachments.retentionPlan", - "description": "Retention plan for pasted Agent images shared by macOS and Windows. Images that any conversation accepted are kept; abandoned pastes and unreferenced images older than seven days are deleted by the platform.", - "cases": [ - { - "name": "recent unreferenced image is kept", - "request": { - "nowMs": 1800000000000, - "entries": [ - { - "path": "/c/a.png", - "modifiedMs": 1799913600000 - } - ], - "ledgerPresent": true - }, - "expected": { - "delete": [], - "keep": [ - { - "path": "/c/a.png", - "reason": "recent" - } - ], - "seed": [] - } - }, - { - "name": "old referenced image is kept", - "request": { - "nowMs": 1800000000000, - "entries": [ - { - "path": "/c/a.png", - "modifiedMs": 1797408000000 - } - ], - "acceptedReferences": [ - "/c/a.png" - ], - "ledgerPresent": true - }, - "expected": { - "delete": [], - "keep": [ - { - "path": "/c/a.png", - "reason": "referenced" - } - ], - "seed": [] - } - }, - { - "name": "old unreferenced image expires", - "request": { - "nowMs": 1800000000000, - "entries": [ - { - "path": "/c/a.png", - "modifiedMs": 1799308800000 - } - ], - "ledgerPresent": true - }, - "expected": { - "delete": [ - { - "path": "/c/a.png", - "reason": "expired" - } - ], - "keep": [], - "seed": [] - } - }, - { - "name": "exactly seven days is still kept", - "request": { - "nowMs": 1800000000000, - "entries": [ - { - "path": "/c/a.png", - "modifiedMs": 1799395200000 - } - ], - "ledgerPresent": true - }, - "expected": { - "delete": [], - "keep": [ - { - "path": "/c/a.png", - "reason": "recent" - } - ], - "seed": [] - } - }, - { - "name": "abandoned paste is deleted at once", - "request": { - "nowMs": 1800000000000, - "entries": [ - { - "path": "/c/a.png", - "modifiedMs": 1800000000000, - "abandoned": true - } - ], - "ledgerPresent": true - }, - "expected": { - "delete": [ - { - "path": "/c/a.png", - "reason": "abandoned" - } - ], - "keep": [], - "seed": [] - } - }, - { - "name": "referenced image survives an abandoned flag", - "request": { - "nowMs": 1800000000000, - "entries": [ - { - "path": "/c/a.png", - "modifiedMs": 1800000000000, - "abandoned": true - } - ], - "acceptedReferences": [ - "/c/a.png" - ], - "ledgerPresent": true - }, - "expected": { - "delete": [], - "keep": [ - { - "path": "/c/a.png", - "reason": "referenced" - } - ], - "seed": [] - } - }, - { - "name": "unknown age is never expired", - "request": { - "nowMs": 1800000000000, - "entries": [ - { - "path": "/c/a.png" - } - ], - "ledgerPresent": true - }, - "expected": { - "delete": [], - "keep": [ - { - "path": "/c/a.png", - "reason": "recent" - } - ], - "seed": [] - } - }, - { - "name": "windows paths compare by separator and case", - "request": { - "nowMs": 1800000000000, - "caseInsensitive": true, - "entries": [ - { - "path": "C:\\Cache\\Pasted-1.PNG", - "modifiedMs": 1797408000000 - } - ], - "acceptedReferences": [ - "c:/cache/pasted-1.png" - ], - "ledgerPresent": true - }, - "expected": { - "delete": [], - "keep": [ - { - "path": "C:\\Cache\\Pasted-1.PNG", - "reason": "referenced" - } - ], - "seed": [] - } - }, - { - "name": "case differs on a case-sensitive platform", - "request": { - "nowMs": 1800000000000, - "entries": [ - { - "path": "/c/A.png", - "modifiedMs": 1797408000000 - } - ], - "acceptedReferences": [ - "/c/a.png" - ], - "ledgerPresent": true - }, - "expected": { - "delete": [ - { - "path": "/c/A.png", - "reason": "expired" - } - ], - "keep": [], - "seed": [] - } - }, - { - "name": "mixed cache keeps order within each list", - "request": { - "nowMs": 1800000000000, - "entries": [ - { - "path": "/c/1.png", - "modifiedMs": 1797408000000 - }, - { - "path": "/c/2.png", - "modifiedMs": 1797408000000 - }, - { - "path": "/c/3.png", - "modifiedMs": 1799827200000 - }, - { - "path": "/c/4.png", - "modifiedMs": 1799222400000 - } - ], - "acceptedReferences": [ - "/c/2.png" - ], - "ledgerPresent": true - }, - "expected": { - "delete": [ - { - "path": "/c/1.png", - "reason": "expired" - }, - { - "path": "/c/4.png", - "reason": "expired" - } - ], - "keep": [ - { - "path": "/c/2.png", - "reason": "referenced" - }, - { - "path": "/c/3.png", - "reason": "recent" - } - ], - "seed": [] - } - }, - { - "name": "missing ledger seeds every cached image and keeps old ones", - "request": { - "nowMs": 1800000000000, - "ledgerPresent": false, - "entries": [ - { - "path": "/c/old.png", - "modifiedMs": 1797408000000 - }, - { - "path": "/c/new.png", - "modifiedMs": 1799913600000 - } - ] - }, - "expected": { - "delete": [], - "keep": [ - { - "path": "/c/old.png", - "reason": "referenced" - }, - { - "path": "/c/new.png", - "reason": "referenced" - } - ], - "seed": [ - "/c/old.png", - "/c/new.png" - ] - } - }, - { - "name": "empty ledger that exists does not migrate again", - "request": { - "nowMs": 1800000000000, - "ledgerPresent": true, - "acceptedReferences": [], - "entries": [ - { - "path": "/c/old.png", - "modifiedMs": 1797408000000 - } - ] - }, - "expected": { - "delete": [ - { - "path": "/c/old.png", - "reason": "expired" - } - ], - "keep": [], - "seed": [] - } - }, - { - "name": "missing ledger never seeds an abandoned paste", - "request": { - "nowMs": 1800000000000, - "ledgerPresent": false, - "entries": [ - { - "path": "/c/gone.png", - "abandoned": true - } - ] - }, - "expected": { - "delete": [ - { - "path": "/c/gone.png", - "reason": "abandoned" - } - ], - "keep": [], - "seed": [] - } - } - ] -} diff --git a/shared/fixtures/agent/claude-desktop-cards-v1.json b/shared/fixtures/agent/claude-desktop-cards-v1.json deleted file mode 100644 index 6cc96a98f9..0000000000 --- a/shared/fixtures/agent/claude-desktop-cards-v1.json +++ /dev/null @@ -1,540 +0,0 @@ -{ - "schemaVersion": 1, - "description": "Claude Desktop tool calls as a host receives them (updates) and as lithe-agent-host presents them to clients (presented), in order. Cards are in _meta.lithe.claudeDesktop; see shared/contracts/application-boundary.md.", - "cases": [ - { - "name": "chapter", - "updates": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "c", - "name": "mcp__ccd_session__mark_chapter", - "title": "mcp__ccd_session__mark_chapter", - "status": "pending", - "rawInput": { - "title": "Core", - "summary": "Rust first" - } - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "c", - "status": "completed" - } - ], - "presented": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "c", - "name": "mcp__ccd_session__mark_chapter", - "title": "Chapter: Core", - "status": "pending", - "rawInput": { - "title": "Core", - "summary": "Rust first" - }, - "_meta": { - "lithe": { - "claudeDesktop": { - "card": "chapter", - "title": "Core", - "summary": "Rust first" - } - } - }, - "kind": "other" - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "c", - "status": "completed" - } - ] - }, - { - "name": "next-step-from-wrap-up", - "updates": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "w", - "name": "mcp__ccd_turn__wrap_up", - "title": "mcp__ccd_turn__wrap_up", - "status": "pending", - "rawInput": { - "recap": "PR opened.", - "ask": "Mark it ready?", - "actions": [ - { - "label": "Yes", - "message": "yes" - }, - { - "label": "Not now" - } - ] - } - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "w", - "status": "completed" - } - ], - "presented": [ - { - "sessionUpdate": "agent_message_chunk", - "content": { - "type": "text", - "text": "PR opened.\n\nMark it ready?" - } - }, - { - "sessionUpdate": "tool_call", - "toolCallId": "w#next", - "title": "Suggested replies", - "kind": "other", - "status": "completed", - "_meta": { - "lithe": { - "claudeDesktop": { - "card": "nextStep", - "actions": [ - { - "label": "Yes", - "message": "yes" - } - ] - } - } - } - } - ] - }, - { - "name": "task-proposed-then-withdrawn", - "updates": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "t1", - "name": "mcp__ccd_session__spawn_task", - "title": "mcp__ccd_session__spawn_task", - "status": "pending", - "rawInput": { - "title": "Fix", - "tldr": "Why", - "prompt": "Do it" - } - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "t1", - "status": "completed", - "content": [ - { - "type": "content", - "content": { - "type": "text", - "text": "Noted (position 1, task_id: task_9edecafe). A chip is showing" - } - } - ] - }, - { - "sessionUpdate": "tool_call", - "toolCallId": "x", - "name": "mcp__ccd_session__dismiss_task", - "title": "mcp__ccd_session__dismiss_task", - "status": "pending", - "rawInput": { - "task_id": "task_9edecafe" - } - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "x", - "status": "completed", - "content": [ - { - "type": "content", - "content": { - "type": "text", - "text": "Task task_9edecafe withdrawn" - } - } - ] - } - ], - "presented": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "t1", - "name": "mcp__ccd_session__spawn_task", - "title": "Suggested task: Fix", - "status": "pending", - "rawInput": { - "title": "Fix", - "tldr": "Why", - "prompt": "Do it" - }, - "_meta": { - "lithe": { - "claudeDesktop": { - "card": "task", - "title": "Fix", - "summary": "Why", - "prompt": "Do it", - "state": "proposed" - } - } - }, - "kind": "other" - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "t1", - "status": "completed", - "content": [ - { - "type": "content", - "content": { - "type": "text", - "text": "Noted (position 1, task_id: task_9edecafe). A chip is showing" - } - } - ] - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "t1", - "_meta": { - "lithe": { - "claudeDesktop": { - "card": "task", - "title": "Fix", - "summary": "Why", - "prompt": "Do it", - "state": "withdrawn" - } - } - } - } - ] - }, - { - "name": "task-handed-off", - "updates": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "h", - "name": "mcp__ccd_session__hand_off_to_session", - "title": "mcp__ccd_session__hand_off_to_session", - "status": "pending", - "rawInput": { - "title": "Stats", - "remaining_plan": "\nDone: x\nNext: y" - } - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "h", - "status": "completed" - } - ], - "presented": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "h", - "name": "mcp__ccd_session__hand_off_to_session", - "title": "Suggested task: Stats", - "status": "pending", - "rawInput": { - "title": "Stats", - "remaining_plan": "\nDone: x\nNext: y" - }, - "_meta": { - "lithe": { - "claudeDesktop": { - "card": "task", - "title": "Stats", - "summary": "Done: x", - "prompt": "Done: x\nNext: y", - "state": "handedOff" - } - } - }, - "kind": "other" - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "h", - "status": "completed" - } - ] - }, - { - "name": "pull-request-monitored", - "updates": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "p", - "name": "mcp__ccd_pr__set_monitor", - "title": "mcp__ccd_pr__set_monitor", - "status": "pending", - "rawInput": { - "url": "https://github.com/o/r/pull/31", - "auto_fix": true - } - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "p", - "status": "completed" - } - ], - "presented": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "p", - "name": "mcp__ccd_pr__set_monitor", - "title": "Pull request https://github.com/o/r/pull/31", - "status": "pending", - "rawInput": { - "url": "https://github.com/o/r/pull/31", - "auto_fix": true - }, - "_meta": { - "lithe": { - "claudeDesktop": { - "card": "pullRequest", - "action": "monitored", - "url": "https://github.com/o/r/pull/31", - "number": 31, - "autoFix": true - } - } - }, - "kind": "other" - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "p", - "status": "completed" - } - ] - }, - { - "name": "pull-request-auto-merge", - "updates": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "m", - "name": "mcp__ccd_pr__set_auto_merge", - "title": "mcp__ccd_pr__set_auto_merge", - "status": "pending", - "rawInput": { - "url": "https://github.com/o/r/pull/7", - "enabled": false - } - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "m", - "status": "completed" - } - ], - "presented": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "m", - "name": "mcp__ccd_pr__set_auto_merge", - "title": "Pull request https://github.com/o/r/pull/7", - "status": "pending", - "rawInput": { - "url": "https://github.com/o/r/pull/7", - "enabled": false - }, - "_meta": { - "lithe": { - "claudeDesktop": { - "card": "pullRequest", - "action": "autoMerge", - "url": "https://github.com/o/r/pull/7", - "number": 7, - "enabled": false - } - } - }, - "kind": "other" - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "m", - "status": "completed" - } - ] - }, - { - "name": "directory-requested", - "updates": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "d", - "name": "mcp__ccd_directory__request_directory", - "title": "mcp__ccd_directory__request_directory", - "status": "pending", - "rawInput": { - "path": "/w/other" - } - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "d", - "status": "completed" - } - ], - "presented": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "d", - "name": "mcp__ccd_directory__request_directory", - "title": "Working folder /w/other", - "status": "pending", - "rawInput": { - "path": "/w/other" - }, - "_meta": { - "lithe": { - "claudeDesktop": { - "card": "directory", - "action": "requested", - "path": "/w/other" - } - } - }, - "kind": "other" - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "d", - "status": "completed" - } - ] - }, - { - "name": "widget", - "updates": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "v", - "name": "mcp__visualize__show_widget", - "title": "mcp__visualize__show_widget", - "status": "pending", - "rawInput": { - "title": "vcs_layers", - "widget_code": "" - } - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "v", - "status": "completed" - } - ], - "presented": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "v", - "name": "mcp__visualize__show_widget", - "title": "Visualization: vcs layers", - "status": "pending", - "rawInput": { - "title": "vcs_layers", - "widget_code": "" - }, - "_meta": { - "lithe": { - "claudeDesktop": { - "card": "widget", - "title": "vcs layers", - "code": "" - } - } - }, - "kind": "other" - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "v", - "status": "completed" - } - ] - }, - { - "name": "readable-row-without-card", - "updates": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "g", - "name": "mcp__ccd_pr__get_status", - "title": "mcp__ccd_pr__get_status", - "status": "pending", - "rawInput": {} - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "g", - "status": "completed" - } - ], - "presented": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "g", - "name": "mcp__ccd_pr__get_status", - "title": "Checked the pull request status", - "status": "pending", - "rawInput": {}, - "kind": "read" - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "g", - "status": "completed" - } - ] - }, - { - "name": "unknown-server-passes-through", - "updates": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "u", - "name": "mcp__dbx__list_connections", - "title": "mcp__dbx__list_connections", - "status": "pending", - "rawInput": {} - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "u", - "status": "completed" - } - ], - "presented": [ - { - "sessionUpdate": "tool_call", - "toolCallId": "u", - "name": "mcp__dbx__list_connections", - "title": "mcp__dbx__list_connections", - "status": "pending", - "rawInput": {} - }, - { - "sessionUpdate": "tool_call_update", - "toolCallId": "u", - "status": "completed" - } - ] - } - ] -} diff --git a/shared/fixtures/agent/edit-review-v1.json b/shared/fixtures/agent/edit-review-v1.json deleted file mode 100644 index 285855fc39..0000000000 --- a/shared/fixtures/agent/edit-review-v1.json +++ /dev/null @@ -1,1087 +0,0 @@ -{ - "description": "Agent edit evidence normalization (Host annotation `_meta.lithe.diffs`) and `agent.edits.reversePlan`. Text values may be {repeat, count, suffix?} and expand to repeat×count followed by suffix. Limits count Unicode scalar values.", - "textLimitScalars": 32768, - "contentLimit": 100, - "evidence": [ - { - "name": "plain diff", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": "one", - "newText": "two" - } - ] - }, - "expected": [ - { - "path": "a.txt", - "oldText": "one", - "newText": "two", - "operation": null, - "additions": null, - "deletions": null, - "truncated": false, - "revertible": true - } - ] - }, - { - "name": "null previous text without creation metadata is an insertion, not revertible", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": null, - "newText": "inserted" - } - ] - }, - "expected": [ - { - "path": "a.txt", - "oldText": null, - "newText": "inserted", - "operation": null, - "additions": null, - "deletions": null, - "truncated": false, - "revertible": false - } - ] - }, - { - "name": "explicit creation metadata makes null previous text revertible", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": null, - "newText": "created", - "_meta": { - "kind": "add" - } - } - ] - }, - "expected": [ - { - "path": "a.txt", - "oldText": null, - "newText": "created", - "operation": "add", - "additions": null, - "deletions": null, - "truncated": false, - "revertible": true - } - ] - }, - { - "name": "missing newText keeps the hunk as incomplete evidence instead of dropping it", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": "one" - }, - { - "type": "diff", - "path": "a.txt", - "oldText": "two", - "newText": "three" - } - ] - }, - "expected": [ - { - "path": "a.txt", - "oldText": "one", - "newText": "", - "operation": null, - "additions": null, - "deletions": null, - "truncated": true, - "revertible": false - }, - { - "path": "a.txt", - "oldText": "two", - "newText": "three", - "operation": null, - "additions": null, - "deletions": null, - "truncated": false, - "revertible": true - } - ] - }, - { - "name": "upstream truncation flag", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": "one", - "newText": "two", - "isTruncated": true - } - ] - }, - "expected": [ - { - "path": "a.txt", - "oldText": "one", - "newText": "two", - "operation": null, - "additions": null, - "deletions": null, - "truncated": true, - "revertible": false - } - ] - }, - { - "name": "20000 emoji: 40000 UTF-16 units but 20000 scalars stay complete", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": { - "repeat": "😀", - "count": 20000 - }, - "newText": "x" - } - ] - }, - "expected": [ - { - "path": "a.txt", - "oldText": { - "repeat": "😀", - "count": 20000 - }, - "newText": "x", - "operation": null, - "additions": null, - "deletions": null, - "truncated": false, - "revertible": true - } - ] - }, - { - "name": "20000 combining sequences: 20000 graphemes but 40000 scalars are truncated", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": "x", - "newText": { - "repeat": "é", - "count": 20000 - } - } - ] - }, - "expected": [ - { - "path": "a.txt", - "oldText": "x", - "newText": { - "repeat": "é", - "count": 16384, - "suffix": "\n[...]" - }, - "operation": null, - "additions": null, - "deletions": null, - "truncated": true, - "revertible": false - } - ] - }, - { - "name": "CJK text exactly at the scalar limit stays complete", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": { - "repeat": "汉", - "count": 32768 - }, - "newText": "x" - } - ] - }, - "expected": [ - { - "path": "a.txt", - "oldText": { - "repeat": "汉", - "count": 32768 - }, - "newText": "x", - "operation": null, - "additions": null, - "deletions": null, - "truncated": false, - "revertible": true - } - ] - }, - { - "name": "CJK text one scalar over the limit is truncated", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": { - "repeat": "汉", - "count": 32769 - }, - "newText": "x" - } - ] - }, - "expected": [ - { - "path": "a.txt", - "oldText": { - "repeat": "汉", - "count": 32768, - "suffix": "\n[...]" - }, - "newText": "x", - "operation": null, - "additions": null, - "deletions": null, - "truncated": true, - "revertible": false - } - ] - }, - { - "name": "version 1 diff statistics are kept", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": "a", - "newText": "b", - "_meta": { - "jetbrains": { - "air": { - "diffStats": { - "version": 1, - "added": 3, - "removed": 2 - } - } - } - } - } - ] - }, - "expected": [ - { - "path": "a.txt", - "oldText": "a", - "newText": "b", - "operation": null, - "additions": 3, - "deletions": 2, - "truncated": false, - "revertible": true - } - ] - }, - { - "name": "unknown statistics versions stay unknown", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": "a", - "newText": "b", - "_meta": { - "jetbrains": { - "air": { - "diffStats": { - "version": 2, - "added": 3, - "removed": 2 - } - } - } - } - } - ] - }, - "expected": [ - { - "path": "a.txt", - "oldText": "a", - "newText": "b", - "operation": null, - "additions": null, - "deletions": null, - "truncated": false, - "revertible": true - } - ] - }, - { - "name": "Claude Write create replaces newline-less hunks", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "w.txt", - "oldText": null, - "newText": "fragment" - } - ], - "_meta": { - "claudeCode": { - "toolName": "Write", - "toolResponse": { - "type": "create", - "filePath": "w.txt", - "content": "whole\nfile\n" - } - } - } - }, - "expected": [ - { - "path": "w.txt", - "oldText": null, - "newText": "whole\nfile\n", - "operation": "add", - "additions": null, - "deletions": null, - "truncated": false, - "revertible": true - } - ] - }, - { - "name": "Claude Write update keeps complete statistics of the same update", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "w.txt", - "oldText": "a", - "newText": "b", - "_meta": { - "jetbrains": { - "air": { - "diffStats": { - "version": 1, - "added": 1, - "removed": 1 - } - } - } - } - } - ], - "_meta": { - "claudeCode": { - "toolName": "Write", - "toolResponse": { - "type": "update", - "filePath": "w.txt", - "content": "b\n", - "originalFile": "a\n" - } - } - } - }, - "expected": [ - { - "path": "w.txt", - "oldText": "a\n", - "newText": "b\n", - "operation": "update", - "additions": 1, - "deletions": 1, - "truncated": false, - "revertible": true - } - ] - }, - { - "name": "Claude Write update without the original file is ignored", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "diff", - "path": "w.txt", - "oldText": "a", - "newText": "b" - } - ], - "_meta": { - "claudeCode": { - "toolName": "Write", - "toolResponse": { - "type": "update", - "filePath": "w.txt", - "content": "b\n" - } - } - } - }, - "expected": [ - { - "path": "w.txt", - "oldText": "a", - "newText": "b", - "operation": null, - "additions": null, - "deletions": null, - "truncated": false, - "revertible": true - } - ] - }, - { - "name": "content without diffs clears the evidence", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "content": [ - { - "type": "content", - "content": { - "type": "text", - "text": "done" - } - } - ] - }, - "expected": [] - }, - { - "name": "an update without content keeps earlier evidence", - "update": { - "sessionUpdate": "tool_call_update", - "toolCallId": "tool-1", - "status": "completed", - "title": "Edit" - }, - "expected": null - }, - { - "name": "non-tool updates are not annotated", - "update": { - "sessionUpdate": "agent_message_chunk", - "content": [ - { - "type": "diff", - "path": "a.txt", - "oldText": "a", - "newText": "b" - } - ] - }, - "expected": null - } - ], - "reversePlan": [ - { - "name": "reverses chained edits newest first around unrelated text", - "request": { - "diffs": [ - { - "oldText": "one", - "newText": "two", - "operation": null, - "toolKind": null, - "truncated": false - }, - { - "oldText": "two", - "newText": "three", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "before\nthree\nafter" - }, - "expected": { - "action": "write", - "text": "before\none\nafter" - } - }, - { - "name": "complete snapshot matches verbatim", - "request": { - "diffs": [ - { - "oldText": "A\n", - "newText": "B\n", - "operation": null, - "toolKind": null, - "truncated": false - }, - { - "oldText": "B\n", - "newText": "C\n", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "C\n" - }, - "expected": { - "action": "write", - "text": "A\n" - } - }, - { - "name": "LF evidence reverses inside a CRLF file", - "request": { - "diffs": [ - { - "oldText": "before\n", - "newText": "after\n", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "before\r\nafter\r\n" - }, - "expected": { - "action": "write", - "text": "before\r\nbefore\r\n" - } - }, - { - "name": "LF snapshot reverses a CRLF file", - "request": { - "diffs": [ - { - "oldText": "before\n", - "newText": "after\n", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "after\r\n" - }, - "expected": { - "action": "write", - "text": "before\r\n" - } - }, - { - "name": "mixed line endings rewrite only the matched span", - "request": { - "diffs": [ - { - "oldText": "before\nend\n", - "newText": "after\nend\n", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "keep\r\nx\nafter\nend\r\n" - }, - "expected": { - "action": "write", - "text": "keep\r\nx\nbefore\r\nend\r\n" - } - }, - { - "name": "ambiguous excerpt is a conflict", - "request": { - "diffs": [ - { - "oldText": "old", - "newText": "new", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "new new" - }, - "expected": { - "action": "conflict", - "reason": "changed" - } - }, - { - "name": "missing excerpt is a conflict", - "request": { - "diffs": [ - { - "oldText": "old", - "newText": "new", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "unrelated" - }, - "expected": { - "action": "conflict", - "reason": "changed" - } - }, - { - "name": "overlapping exact excerpts are ambiguous", - "request": { - "diffs": [ - { - "oldText": "x", - "newText": "aba", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "ababa" - }, - "expected": { - "action": "conflict", - "reason": "changed" - } - }, - { - "name": "overlapping canonical excerpts are ambiguous", - "request": { - "diffs": [ - { - "oldText": "x", - "newText": "a\nb\na", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "a\nb\r\na\nb\r\na" - }, - "expected": { - "action": "conflict", - "reason": "changed" - } - }, - { - "name": "empty excerpt never matches", - "request": { - "diffs": [ - { - "oldText": "x", - "newText": "", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "abc" - }, - "expected": { - "action": "conflict", - "reason": "changed" - } - }, - { - "name": "insertion without creation metadata is incomplete", - "request": { - "diffs": [ - { - "oldText": null, - "newText": "inserted", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "a inserted" - }, - "expected": { - "action": "conflict", - "reason": "incomplete" - } - }, - { - "name": "creation removes only the exact created content", - "request": { - "diffs": [ - { - "oldText": null, - "newText": "created", - "operation": "add", - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "created" - }, - "expected": { - "action": "trash" - } - }, - { - "name": "creation matches across line endings", - "request": { - "diffs": [ - { - "oldText": null, - "newText": "created\n", - "operation": "add", - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "created\r\n" - }, - "expected": { - "action": "trash" - } - }, - { - "name": "edited creation is a conflict", - "request": { - "diffs": [ - { - "oldText": null, - "newText": "created", - "operation": "add", - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "created and edited" - }, - "expected": { - "action": "conflict", - "reason": "changed" - } - }, - { - "name": "deletion restores a still missing path", - "request": { - "diffs": [ - { - "oldText": "deleted", - "newText": "", - "operation": "delete", - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": null - }, - "expected": { - "action": "write", - "text": "deleted" - } - }, - { - "name": "deletion never overwrites a recreated path", - "request": { - "diffs": [ - { - "oldText": "deleted", - "newText": "", - "operation": "delete", - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "recreated" - }, - "expected": { - "action": "conflict", - "reason": "changed" - } - }, - { - "name": "tool-level delete kind marks an operation-less diff as deletion", - "request": { - "diffs": [ - { - "oldText": "original", - "newText": "", - "operation": null, - "toolKind": "delete", - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": null - }, - "expected": { - "action": "write", - "text": "original" - } - }, - { - "name": "explicit update operation wins over a delete tool kind", - "request": { - "diffs": [ - { - "oldText": "old", - "newText": "new", - "operation": "update", - "toolKind": "delete", - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "new" - }, - "expected": { - "action": "write", - "text": "old" - } - }, - { - "name": "editing a missing file is a conflict", - "request": { - "diffs": [ - { - "oldText": "old", - "newText": "new", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": null - }, - "expected": { - "action": "conflict", - "reason": "changed" - } - }, - { - "name": "created then deleted needs no change", - "request": { - "diffs": [ - { - "oldText": null, - "newText": "tmp", - "operation": "add", - "toolKind": null, - "truncated": false - }, - { - "oldText": "tmp", - "newText": "", - "operation": "delete", - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": null - }, - "expected": { - "action": "none" - } - }, - { - "name": "restoring identical text needs no write", - "request": { - "diffs": [ - { - "oldText": "same", - "newText": "same", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": false, - "disk": "same" - }, - "expected": { - "action": "none" - } - }, - { - "name": "pending tools are incomplete", - "request": { - "diffs": [ - { - "oldText": "old", - "newText": "new", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": true, - "missingEvidence": false, - "disk": "new" - }, - "expected": { - "action": "conflict", - "reason": "incomplete" - } - }, - { - "name": "missing or moved evidence is incomplete", - "request": { - "diffs": [ - { - "oldText": "old", - "newText": "new", - "operation": null, - "toolKind": null, - "truncated": false - } - ], - "pending": false, - "missingEvidence": true, - "disk": "new" - }, - "expected": { - "action": "conflict", - "reason": "incomplete" - } - }, - { - "name": "truncated evidence is incomplete", - "request": { - "diffs": [ - { - "oldText": "old", - "newText": "new", - "operation": null, - "toolKind": null, - "truncated": true - } - ], - "pending": false, - "missingEvidence": false, - "disk": "new" - }, - "expected": { - "action": "conflict", - "reason": "incomplete" - } - }, - { - "name": "no diffs is incomplete", - "request": { - "diffs": [], - "pending": false, - "missingEvidence": false, - "disk": "new" - }, - "expected": { - "action": "conflict", - "reason": "incomplete" - } - } - ] -} diff --git a/shared/fixtures/agent/history-activity-v1.json b/shared/fixtures/agent/history-activity-v1.json deleted file mode 100644 index 06222eec0d..0000000000 --- a/shared/fixtures/agent/history-activity-v1.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "initial": { - "upstream": { - "data": [ - { - "id": "session-a", - "cwd": "/fixture/workspace", - "name": "Earlier conversation", - "preview": "First prompt", - "updatedAt": 1789893000, - "recencyAt": 1789893000, - "modelProvider": "native-provider" - }, - { - "id": "session-b", - "cwd": "/fixture/workspace", - "name": "Later conversation", - "preview": "Second prompt", - "updatedAt": 1789896600, - "recencyAt": 1789896600, - "modelProvider": "previous-provider" - }, - { - "id": "unknown-activity", - "cwd": "/fixture/workspace", - "name": "Unknown activity", - "updatedAt": 1789900200 - } - ], - "nextCursor": null - }, - "event": { - "kind": "sessions", - "token": "history-activity", - "sessions": [ - { - "sessionId": "session-a", - "title": "Earlier conversation", - "updatedAt": "2026-09-20T08:30:00Z", - "modelProvider": "native-provider" - }, - { - "sessionId": "session-b", - "title": "Later conversation", - "updatedAt": "2026-09-20T09:30:00Z", - "modelProvider": "previous-provider" - }, - { - "sessionId": "unknown-activity", - "title": "Unknown activity", - "updatedAt": null - } - ] - } - }, - "afterViewing": { - "upstream": { - "data": [ - { - "id": "session-a", - "cwd": "/fixture/workspace", - "name": "Earlier conversation", - "preview": "First prompt", - "updatedAt": 1789903800, - "recencyAt": 1789893000, - "modelProvider": "native-provider" - }, - { - "id": "session-b", - "cwd": "/fixture/workspace", - "name": "Later conversation", - "preview": "Second prompt", - "updatedAt": 1789896600, - "recencyAt": 1789896600, - "modelProvider": "previous-provider" - }, - { - "id": "unknown-activity", - "cwd": "/fixture/workspace", - "name": "Unknown activity", - "updatedAt": 1789900200 - } - ], - "nextCursor": null - }, - "event": { - "kind": "sessions", - "token": "history-activity", - "sessions": [ - { - "sessionId": "session-a", - "title": "Earlier conversation", - "updatedAt": "2026-09-20T08:30:00Z", - "modelProvider": "native-provider" - }, - { - "sessionId": "session-b", - "title": "Later conversation", - "updatedAt": "2026-09-20T09:30:00Z", - "modelProvider": "previous-provider" - }, - { - "sessionId": "unknown-activity", - "title": "Unknown activity", - "updatedAt": null - } - ] - } - }, - "afterMessage": { - "upstream": { - "data": [ - { - "id": "session-a", - "cwd": "/fixture/workspace", - "name": "Earlier conversation", - "preview": "First prompt", - "updatedAt": 1789907400, - "recencyAt": 1789907400, - "modelProvider": "native-provider" - }, - { - "id": "session-b", - "cwd": "/fixture/workspace", - "name": "Later conversation", - "preview": "Second prompt", - "updatedAt": 1789896600, - "recencyAt": 1789896600, - "modelProvider": "previous-provider" - }, - { - "id": "unknown-activity", - "cwd": "/fixture/workspace", - "name": "Unknown activity", - "updatedAt": 1789900200 - } - ], - "nextCursor": null - }, - "event": { - "kind": "sessions", - "token": "history-activity", - "sessions": [ - { - "sessionId": "session-a", - "title": "Earlier conversation", - "updatedAt": "2026-09-20T12:30:00Z", - "modelProvider": "native-provider" - }, - { - "sessionId": "session-b", - "title": "Later conversation", - "updatedAt": "2026-09-20T09:30:00Z", - "modelProvider": "previous-provider" - }, - { - "sessionId": "unknown-activity", - "title": "Unknown activity", - "updatedAt": null - } - ] - } - } -} diff --git a/shared/fixtures/agent/hook-draft-validation-v1.json b/shared/fixtures/agent/hook-draft-validation-v1.json deleted file mode 100644 index cb44a40f2b..0000000000 --- a/shared/fixtures/agent/hook-draft-validation-v1.json +++ /dev/null @@ -1,806 +0,0 @@ -{ - "command": "agent.hooks.validateDraft", - "description": "Field-level Hook draft validation shared by the macOS and Windows editors. The rules are the ones agent.hooks save enforces; platforms localize field/code pairs and enable saving only when valid.", - "cases": [ - { - "name": "valid default draft", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": true, - "issues": [], - "timeoutSeconds": null - } - }, - { - "name": "valid tool draft with explicit timeout", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "before-tool", - "matcher": "edit", - "command": "printf done", - "timeoutText": "86400", - "agents": [ - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": true, - "issues": [], - "timeoutSeconds": 86400 - } - }, - { - "name": "editing a Hook keeps its own name", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000001", - "name": "NOTIFY", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": true, - "issues": [], - "timeoutSeconds": null - } - }, - { - "name": "empty name", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "name", - "code": "required" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "name over 80 bytes", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "name", - "code": "too_long" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "name with path characters", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "../escape", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "name", - "code": "invalid_characters" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "name with spaces", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "spaces here", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "name", - "code": "invalid_characters" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "duplicate name ignores ASCII case", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "Notify", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "name", - "code": "duplicate" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "description over 200 Unicode scalars", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "description", - "code": "too_long" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "description of 200 Unicode scalars", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": true, - "issues": [], - "timeoutSeconds": null - } - }, - { - "name": "matcher on a non-tool event", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "shell", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "matcher", - "code": "incompatible_event" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "whitespace-only command", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": " \n\t", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "command", - "code": "required" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "command over 32768 bytes", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉汉", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "command", - "code": "too_long" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "command containing NUL", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf\u0000done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "command", - "code": "contains_nul" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "zero timeout", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "0", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "timeout", - "code": "out_of_range" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "timeout above one day", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "86401", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "timeout", - "code": "out_of_range" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "overlong digit timeout", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "99999999999999999999999", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "timeout", - "code": "out_of_range" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "non-numeric timeout", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "abc", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "timeout", - "code": "not_integer" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "signed timeout", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "+5", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "timeout", - "code": "not_integer" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "no Agent selected", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "agents", - "code": "required" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "unknown Agent", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "gemini-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "agents", - "code": "unsupported" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "duplicate Agent", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "codex-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "agents", - "code": "duplicate" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "invalid identifier", - "request": { - "hook": { - "id": "not-a-uuid", - "name": "remind", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutText": "", - "agents": [ - "codex-acp", - "claude-acp" - ] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "id", - "code": "invalid" - } - ], - "timeoutSeconds": null - } - }, - { - "name": "several fields report in editor order", - "request": { - "hook": { - "id": "00000000-0000-4000-8000-000000000002", - "name": "", - "description": "结束提醒", - "event": "turn-end", - "matcher": "all", - "command": "", - "timeoutText": "0", - "agents": [] - }, - "existingHooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify" - } - ] - }, - "expected": { - "valid": false, - "issues": [ - { - "field": "name", - "code": "required" - }, - { - "field": "command", - "code": "required" - }, - { - "field": "timeout", - "code": "out_of_range" - }, - { - "field": "agents", - "code": "required" - } - ], - "timeoutSeconds": null - } - } - ] -} diff --git a/shared/fixtures/agent/hooks-management-v1.json b/shared/fixtures/agent/hooks-management-v1.json deleted file mode 100644 index 4c7afe0120..0000000000 --- a/shared/fixtures/agent/hooks-management-v1.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "command": "agent.hooks", - "readRequest": { - "dataDirectory": "/fixture/library", - "action": "read" - }, - "hook": { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify", - "description": "一轮结束时提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutSeconds": null, - "agents": [ - "codex-acp", - "claude-acp" - ], - "enabled": true, - "pendingRemoval": false - }, - "library": { - "revision": "fixture-library-revision", - "hooks": [ - { - "id": "00000000-0000-4000-8000-000000000001", - "name": "notify", - "description": "一轮结束时提醒", - "event": "turn-end", - "matcher": "all", - "command": "printf done", - "timeoutSeconds": null, - "agents": [ - "codex-acp", - "claude-acp" - ], - "enabled": true, - "pendingRemoval": false, - "configuredAgents": [ - "codex-acp" - ], - "needsSync": true - } - ], - "targets": [ - { - "agentId": "codex-acp", - "file": { - "agentId": "codex-acp", - "path": "/fixture/.codex/hooks.json", - "revision": "codex-revision" - }, - "issue": null, - "disabled": false - }, - { - "agentId": "claude-acp", - "file": null, - "issue": "Hook configuration must be a regular file, not a symbolic link or directory.", - "disabled": false - } - ] - } -} diff --git a/shared/fixtures/agent/model-call-statistics-v1.json b/shared/fixtures/agent/model-call-statistics-v1.json deleted file mode 100644 index 72b18b1175..0000000000 --- a/shared/fixtures/agent/model-call-statistics-v1.json +++ /dev/null @@ -1,409 +0,0 @@ -{ - "version": 1, - "description": "Shared accounting of observed model calls. The Host attaches `statistics` to each `modelCall` event; desktop products merge contributions in event order: counters add, reasoningTokens adds over calls that report it, and a present context replaces the previous one.", - "cases": [ - { - "name": "failedNonStreamingStepIsNotANonStreamingAnswer", - "description": "HTTP 500 counts as a failed step, never as a non-streaming answer; Windows previously counted it.", - "events": [ - { - "sessionId": "session-1", - "call": { - "api": "responses", - "status": 500, - "streaming": false, - "durationMs": 40 - }, - "statistics": { - "requests": 1, - "steps": 1, - "failedSteps": 1, - "nonStreamingSteps": 0, - "durationMs": 40, - "inputTokens": 0, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 0, - "callsWithUsage": 0, - "firstTokenMs": 0, - "firstTokenCount": 0, - "generationMs": 0, - "generatedTokens": 0 - } - }, - { - "sessionId": "session-1", - "call": { - "api": "responses", - "status": 200, - "streaming": false, - "durationMs": 3000, - "usage": { - "inputTokens": 500, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 300, - "reasoningTokens": 100 - } - }, - "statistics": { - "requests": 1, - "steps": 1, - "failedSteps": 0, - "nonStreamingSteps": 1, - "durationMs": 3000, - "inputTokens": 500, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 300, - "reasoningTokens": 100, - "callsWithUsage": 1, - "firstTokenMs": 0, - "firstTokenCount": 0, - "generationMs": 0, - "generatedTokens": 0 - } - } - ], - "total": { - "requests": 2, - "steps": 2, - "failedSteps": 1, - "nonStreamingSteps": 1, - "durationMs": 3040, - "inputTokens": 500, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 300, - "reasoningTokens": 100, - "callsWithUsage": 1, - "firstTokenMs": 0, - "firstTokenCount": 0, - "generationMs": 0, - "generatedTokens": 0 - } - }, - { - "name": "auxiliaryAndToollessRequestsKeepTheMainContext", - "description": "An auxiliary title request and an unrecognized tool-less background request spend tokens but never replace the current context; Windows previously showed the last request's composition.", - "events": [ - { - "sessionId": "session-1", - "call": { - "api": "anthropicMessages", - "status": 200, - "streaming": true, - "firstTokenMs": 100, - "durationMs": 1000, - "usage": { - "inputTokens": 100, - "cacheReadTokens": 900, - "cacheWriteTokens": 0, - "outputTokens": 50 - }, - "context": { - "systemPromptTokens": 10, - "toolTokens": 20, - "mcpToolTokens": 0, - "messageTokens": 70, - "toolCount": 12, - "mcpToolCount": 0, - "scaledToUsage": true - } - }, - "statistics": { - "requests": 1, - "steps": 1, - "failedSteps": 0, - "nonStreamingSteps": 0, - "durationMs": 1000, - "inputTokens": 100, - "cacheReadTokens": 900, - "cacheWriteTokens": 0, - "outputTokens": 50, - "callsWithUsage": 1, - "firstTokenMs": 100, - "firstTokenCount": 1, - "generationMs": 900, - "generatedTokens": 50, - "context": { - "systemPromptTokens": 10, - "toolTokens": 20, - "mcpToolTokens": 0, - "messageTokens": 70, - "toolCount": 12, - "mcpToolCount": 0, - "scaledToUsage": true - } - } - }, - { - "sessionId": "session-1", - "call": { - "api": "anthropicMessages", - "status": 200, - "streaming": true, - "firstTokenMs": 1900, - "durationMs": 2000, - "usage": { - "inputTokens": 30, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 20 - }, - "context": { - "systemPromptTokens": 5, - "toolTokens": 0, - "mcpToolTokens": 0, - "messageTokens": 300, - "toolCount": 0, - "mcpToolCount": 0, - "scaledToUsage": true - }, - "auxiliary": true - }, - "statistics": { - "requests": 1, - "steps": 0, - "failedSteps": 0, - "nonStreamingSteps": 0, - "durationMs": 0, - "inputTokens": 30, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 20, - "callsWithUsage": 1, - "firstTokenMs": 0, - "firstTokenCount": 0, - "generationMs": 0, - "generatedTokens": 0 - } - }, - { - "sessionId": "session-1", - "call": { - "api": "anthropicMessages", - "status": 200, - "streaming": false, - "durationMs": 200, - "context": { - "systemPromptTokens": 1, - "toolTokens": 0, - "mcpToolTokens": 0, - "messageTokens": 40, - "toolCount": 0, - "mcpToolCount": 0, - "scaledToUsage": false - } - }, - "statistics": { - "requests": 1, - "steps": 1, - "failedSteps": 0, - "nonStreamingSteps": 1, - "durationMs": 200, - "inputTokens": 0, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 0, - "callsWithUsage": 0, - "firstTokenMs": 0, - "firstTokenCount": 0, - "generationMs": 0, - "generatedTokens": 0 - } - } - ], - "total": { - "requests": 3, - "steps": 2, - "failedSteps": 0, - "nonStreamingSteps": 1, - "durationMs": 1200, - "inputTokens": 130, - "cacheReadTokens": 900, - "cacheWriteTokens": 0, - "outputTokens": 70, - "callsWithUsage": 2, - "firstTokenMs": 100, - "firstTokenCount": 1, - "generationMs": 900, - "generatedTokens": 50, - "context": { - "systemPromptTokens": 10, - "toolTokens": 20, - "mcpToolTokens": 0, - "messageTokens": 70, - "toolCount": 12, - "mcpToolCount": 0, - "scaledToUsage": true - } - } - }, - { - "name": "toollessAgentRefreshesContextFromEveryStep", - "description": "An Agent that never sends tools keeps its composition current instead of freezing the first one.", - "events": [ - { - "sessionId": "session-1", - "call": { - "api": "chatCompletions", - "status": 200, - "streaming": true, - "durationMs": 500, - "context": { - "systemPromptTokens": 0, - "toolTokens": 0, - "mcpToolTokens": 0, - "messageTokens": 1000, - "toolCount": 0, - "mcpToolCount": 0, - "scaledToUsage": false - } - }, - "statistics": { - "requests": 1, - "steps": 1, - "failedSteps": 0, - "nonStreamingSteps": 0, - "durationMs": 500, - "inputTokens": 0, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 0, - "callsWithUsage": 0, - "firstTokenMs": 0, - "firstTokenCount": 0, - "generationMs": 0, - "generatedTokens": 0, - "context": { - "systemPromptTokens": 0, - "toolTokens": 0, - "mcpToolTokens": 0, - "messageTokens": 1000, - "toolCount": 0, - "mcpToolCount": 0, - "scaledToUsage": false - } - } - }, - { - "sessionId": "session-1", - "call": { - "api": "chatCompletions", - "status": 200, - "streaming": false, - "durationMs": 300, - "context": { - "systemPromptTokens": 0, - "toolTokens": 0, - "mcpToolTokens": 0, - "messageTokens": 5000, - "toolCount": 0, - "mcpToolCount": 0, - "scaledToUsage": false - } - }, - "statistics": { - "requests": 1, - "steps": 1, - "failedSteps": 0, - "nonStreamingSteps": 1, - "durationMs": 300, - "inputTokens": 0, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 0, - "callsWithUsage": 0, - "firstTokenMs": 0, - "firstTokenCount": 0, - "generationMs": 0, - "generatedTokens": 0, - "context": { - "systemPromptTokens": 0, - "toolTokens": 0, - "mcpToolTokens": 0, - "messageTokens": 5000, - "toolCount": 0, - "mcpToolCount": 0, - "scaledToUsage": false - } - } - } - ], - "total": { - "requests": 2, - "steps": 2, - "failedSteps": 0, - "nonStreamingSteps": 1, - "durationMs": 800, - "inputTokens": 0, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 0, - "callsWithUsage": 0, - "firstTokenMs": 0, - "firstTokenCount": 0, - "generationMs": 0, - "generatedTokens": 0, - "context": { - "systemPromptTokens": 0, - "toolTokens": 0, - "mcpToolTokens": 0, - "messageTokens": 5000, - "toolCount": 0, - "mcpToolCount": 0, - "scaledToUsage": false - } - } - }, - { - "name": "streamWithoutUsageMeasuresLatencyOnly", - "description": "A stream without provider counters reports first-token latency but no generation speed, and leaves the token sums a lower bound.", - "events": [ - { - "sessionId": "session-1", - "call": { - "api": "responses", - "status": 200, - "streaming": true, - "firstTokenMs": 300, - "durationMs": 900 - }, - "statistics": { - "requests": 1, - "steps": 1, - "failedSteps": 0, - "nonStreamingSteps": 0, - "durationMs": 900, - "inputTokens": 0, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 0, - "callsWithUsage": 0, - "firstTokenMs": 300, - "firstTokenCount": 1, - "generationMs": 0, - "generatedTokens": 0 - } - } - ], - "total": { - "requests": 1, - "steps": 1, - "failedSteps": 0, - "nonStreamingSteps": 0, - "durationMs": 900, - "inputTokens": 0, - "cacheReadTokens": 0, - "cacheWriteTokens": 0, - "outputTokens": 0, - "callsWithUsage": 0, - "firstTokenMs": 300, - "firstTokenCount": 1, - "generationMs": 0, - "generatedTokens": 0 - } - } - ] -} diff --git a/shared/fixtures/agent/next-turn-configuration-v1.json b/shared/fixtures/agent/next-turn-configuration-v1.json deleted file mode 100644 index c6aceebfff..0000000000 --- a/shared/fixtures/agent/next-turn-configuration-v1.json +++ /dev/null @@ -1,1118 +0,0 @@ -{ - "version": 1, - "description": "Next-turn session settings. The product sends `applyNextTurnConfiguration` with its latest catalog and the user's choices after a turn ends; the Host applies one request at a time and answers with one `nextTurnConfigured` event. `answers` script the Agent's catalog after each request.", - "command": { - "kind": "applyNextTurnConfiguration", - "token": "config-2", - "sessionId": "session-1", - "catalog": [ - { - "id": "model", - "category": "model", - "currentValue": "model-a", - "choices": [ - "model-a", - "model-b" - ] - } - ], - "choices": [ - { - "configId": "model", - "value": "model-b" - } - ] - }, - "events": { - "configured": { - "kind": "nextTurnConfigured", - "token": "config-2", - "sessionId": "session-1", - "configOptions": [ - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-b", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - } - ] - }, - "failed": { - "kind": "nextTurnConfigured", - "token": "config-2", - "sessionId": "session-1", - "configOptions": [ - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-b", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - } - ], - "failure": "requestFailed", - "message": "Rejected" - }, - "unsupportedBeforeAnyRequest": { - "kind": "nextTurnConfigured", - "token": "config-2", - "sessionId": "session-1", - "failure": "unsupported" - } - }, - "cases": [ - { - "name": "modelFirstThenCatalogOrder", - "description": "Model choices apply first; the rest follow the Agent's catalog order, not the order the user chose them (Windows previously used choice order).", - "catalog": [ - { - "id": "mode", - "name": "mode", - "type": "select", - "currentValue": "read-only", - "options": [ - { - "value": "read-only", - "name": "read-only" - }, - { - "value": "auto", - "name": "auto" - }, - { - "value": "plan", - "name": "plan" - } - ], - "category": "mode" - }, - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-a", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ], - "choices": [ - { - "configId": "reasoning_effort", - "value": "high" - }, - { - "configId": "mode", - "value": "auto" - }, - { - "configId": "model", - "value": "model-b" - } - ], - "answers": [ - { - "configOptions": [ - { - "id": "mode", - "name": "mode", - "type": "select", - "currentValue": "read-only", - "options": [ - { - "value": "read-only", - "name": "read-only" - }, - { - "value": "auto", - "name": "auto" - }, - { - "value": "plan", - "name": "plan" - } - ], - "category": "mode" - }, - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-b", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ] - }, - { - "configOptions": [ - { - "id": "mode", - "name": "mode", - "type": "select", - "currentValue": "auto", - "options": [ - { - "value": "read-only", - "name": "read-only" - }, - { - "value": "auto", - "name": "auto" - }, - { - "value": "plan", - "name": "plan" - } - ], - "category": "mode" - }, - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-b", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ] - }, - { - "configOptions": [ - { - "id": "mode", - "name": "mode", - "type": "select", - "currentValue": "auto", - "options": [ - { - "value": "read-only", - "name": "read-only" - }, - { - "value": "auto", - "name": "auto" - }, - { - "value": "plan", - "name": "plan" - } - ], - "category": "mode" - }, - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-b", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "high", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ] - } - ], - "expected": { - "requests": [ - { - "configId": "model", - "value": "model-b" - }, - { - "configId": "mode", - "value": "auto" - }, - { - "configId": "reasoning_effort", - "value": "high" - } - ], - "failure": null - } - }, - { - "name": "modelChangeRemovesAChosenValue", - "description": "Remaining choices are revalidated against the catalog the model change returned.", - "catalog": [ - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-a", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ], - "choices": [ - { - "configId": "model", - "value": "model-b" - }, - { - "configId": "reasoning_effort", - "value": "high" - } - ], - "answers": [ - { - "configOptions": [ - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-b", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - } - ], - "category": "thought_level" - } - ] - } - ], - "expected": { - "requests": [ - { - "configId": "model", - "value": "model-b" - } - ], - "failure": "unsupported" - } - }, - { - "name": "modelChangeAlreadyAppliesAChoice", - "description": "A choice the new catalog already reports as current is not sent again.", - "catalog": [ - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-a", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ], - "choices": [ - { - "configId": "model", - "value": "model-b" - }, - { - "configId": "reasoning_effort", - "value": "high" - } - ], - "answers": [ - { - "configOptions": [ - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-b", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "high", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ] - } - ], - "expected": { - "requests": [ - { - "configId": "model", - "value": "model-b" - } - ], - "failure": null - } - }, - { - "name": "agentDoesNotConfirmTheChoice", - "description": "An answer that reports another current value stops the sequence (Windows previously accepted any answer).", - "catalog": [ - { - "id": "mode", - "name": "mode", - "type": "select", - "currentValue": "read-only", - "options": [ - { - "value": "read-only", - "name": "read-only" - }, - { - "value": "auto", - "name": "auto" - }, - { - "value": "plan", - "name": "plan" - } - ], - "category": "mode" - }, - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-a", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ], - "choices": [ - { - "configId": "model", - "value": "model-b" - }, - { - "configId": "mode", - "value": "auto" - } - ], - "answers": [ - { - "configOptions": [ - { - "id": "mode", - "name": "mode", - "type": "select", - "currentValue": "read-only", - "options": [ - { - "value": "read-only", - "name": "read-only" - }, - { - "value": "auto", - "name": "auto" - }, - { - "value": "plan", - "name": "plan" - } - ], - "category": "mode" - }, - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-a", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ] - } - ], - "expected": { - "requests": [ - { - "configId": "model", - "value": "model-b" - } - ], - "failure": "notConfirmed" - } - }, - { - "name": "optionMissingFromTheCatalog", - "description": "Choices for options the Agent still offers apply first; a choice whose option disappeared then fails the sequence.", - "catalog": [ - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-a", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - } - ], - "choices": [ - { - "configId": "verbosity", - "value": "high" - }, - { - "configId": "model", - "value": "model-b" - } - ], - "answers": [ - { - "configOptions": [ - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-b", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - } - ] - } - ], - "expected": { - "requests": [ - { - "configId": "model", - "value": "model-b" - } - ], - "failure": "unsupported" - } - }, - { - "name": "requestFailsMidway", - "description": "A failed request keeps the settings the Agent already confirmed and abandons the rest.", - "catalog": [ - { - "id": "mode", - "name": "mode", - "type": "select", - "currentValue": "read-only", - "options": [ - { - "value": "read-only", - "name": "read-only" - }, - { - "value": "auto", - "name": "auto" - }, - { - "value": "plan", - "name": "plan" - } - ], - "category": "mode" - }, - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-a", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ], - "choices": [ - { - "configId": "model", - "value": "model-b" - }, - { - "configId": "mode", - "value": "auto" - } - ], - "answers": [ - { - "configOptions": [ - { - "id": "mode", - "name": "mode", - "type": "select", - "currentValue": "read-only", - "options": [ - { - "value": "read-only", - "name": "read-only" - }, - { - "value": "auto", - "name": "auto" - }, - { - "value": "plan", - "name": "plan" - } - ], - "category": "mode" - }, - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-b", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ] - }, - { - "error": "Rejected" - } - ], - "expected": { - "requests": [ - { - "configId": "model", - "value": "model-b" - }, - { - "configId": "mode", - "value": "auto" - } - ], - "failure": "requestFailed" - } - }, - { - "name": "laterChoiceReplacesEarlierChoice", - "description": "Only the latest choice for one option is applied.", - "catalog": [ - { - "id": "mode", - "name": "mode", - "type": "select", - "currentValue": "read-only", - "options": [ - { - "value": "read-only", - "name": "read-only" - }, - { - "value": "auto", - "name": "auto" - }, - { - "value": "plan", - "name": "plan" - } - ], - "category": "mode" - }, - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-a", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ], - "choices": [ - { - "configId": "mode", - "value": "auto" - }, - { - "configId": "mode", - "value": "plan" - } - ], - "answers": [ - { - "configOptions": [ - { - "id": "mode", - "name": "mode", - "type": "select", - "currentValue": "plan", - "options": [ - { - "value": "read-only", - "name": "read-only" - }, - { - "value": "auto", - "name": "auto" - }, - { - "value": "plan", - "name": "plan" - } - ], - "category": "mode" - }, - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-a", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ] - } - ], - "expected": { - "requests": [ - { - "configId": "mode", - "value": "plan" - } - ], - "failure": null - } - }, - { - "name": "choiceEqualToCurrentValueSendsNothing", - "description": "Returning to the confirmed value needs no request.", - "catalog": [ - { - "id": "mode", - "name": "mode", - "type": "select", - "currentValue": "read-only", - "options": [ - { - "value": "read-only", - "name": "read-only" - }, - { - "value": "auto", - "name": "auto" - }, - { - "value": "plan", - "name": "plan" - } - ], - "category": "mode" - }, - { - "id": "model", - "name": "model", - "type": "select", - "currentValue": "model-a", - "options": [ - { - "value": "model-a", - "name": "model-a" - }, - { - "value": "model-b", - "name": "model-b" - } - ], - "category": "model" - }, - { - "id": "reasoning_effort", - "name": "reasoning_effort", - "type": "select", - "currentValue": "medium", - "options": [ - { - "value": "medium", - "name": "medium" - }, - { - "value": "high", - "name": "high" - } - ], - "category": "thought_level" - } - ], - "choices": [ - { - "configId": "mode", - "value": "read-only" - } - ], - "answers": [], - "expected": { - "requests": [], - "failure": null - } - } - ] -} diff --git a/shared/fixtures/agent/shared-instructions-v1.json b/shared/fixtures/agent/shared-instructions-v1.json deleted file mode 100644 index 607a41288e..0000000000 --- a/shared/fixtures/agent/shared-instructions-v1.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "version": 1, - "readRequest": { - "command": "agent.instructions.shared", - "payload": { - "dataDirectory": "/fixture/app-support/AgentInstructions", - "action": "read" - } - }, - "library": { - "file": { - "agentId": "shared", - "path": "/fixture/app-support/AgentInstructions/Shared.md", - "content": "Use concise Chinese replies.", - "exists": true, - "revision": "source-sha256" - }, - "agents": [ - { - "agentId": "codex-acp", - "file": { - "agentId": "codex-acp", - "path": "/fixture/user/.codex/AGENTS.md", - "content": "Own rules\n\nUse concise Chinese replies.\n\n", - "exists": true, - "revision": "native-sha256" - }, - "enabled": true, - "needsSync": false, - "ownLineCount": 1, - "issue": null - }, - { - "agentId": "claude-acp", - "file": null, - "enabled": null, - "needsSync": false, - "ownLineCount": 0, - "issue": "The instruction path must be a regular file, not a symbolic link or directory." - } - ] - } -} diff --git a/shared/fixtures/agent/skills-management-v1.json b/shared/fixtures/agent/skills-management-v1.json deleted file mode 100644 index 9e39f281e1..0000000000 --- a/shared/fixtures/agent/skills-management-v1.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "requests": { - "list": { - "command": "agent.skills", - "payload": { - "action": "list", - "agentId": "codex-acp", - "workspace": "/fixture/workspace" - } - }, - "directories": { - "command": "agent.skills", - "payload": { - "action": "directories", - "agentId": "claude-acp", - "workspace": "/fixture/workspace" - } - }, - "create": { - "command": "agent.skills", - "payload": { - "action": "create", - "agentId": "codex-acp", - "workspace": "/fixture/workspace", - "scope": "repo", - "name": "example-skill", - "description": "Use for a specific workflow", - "instructions": "Inspect the project and explain the result." - } - }, - "import": { - "command": "agent.skills", - "payload": { - "action": "import", - "agentId": "claude-acp", - "workspace": "/fixture/workspace", - "scope": "user", - "source": "/fixture/import/example-skill" - } - }, - "read": { - "command": "agent.skills", - "payload": { - "action": "read", - "agentId": "codex-acp", - "source": "/fixture/home/.agents/skills/shared-checks/SKILL.md" - } - }, - "setEnabled": { - "command": "agent.skills", - "payload": { - "action": "setEnabled", - "agentId": "codex-acp", - "workspace": "/fixture/workspace", - "source": "/fixture/workspace/.agents/skills/project-workflow/SKILL.md", - "enabled": false, - "scope": "repo" - } - } - }, - "nativeCodex": { - "data": [ - { - "cwd": "/fixture/workspace", - "skills": [ - { - "name": "plugin-helper", - "description": "Use the plugin helper", - "path": "/fixture/plugins/helper/SKILL.md", - "scope": "user", - "enabled": true, - "pluginId": "helper@example" - }, - { - "name": "project-workflow", - "description": "Use for this project", - "path": "/fixture/workspace/.agents/skills/project-workflow/SKILL.md", - "scope": "repo", - "enabled": false, - "pluginId": null - }, - { - "name": "shared-checks", - "description": "Use for common checks", - "path": "/fixture/home/.agents/skills/shared-checks/SKILL.md", - "scope": "user", - "enabled": true, - "pluginId": null - } - ], - "errors": [] - } - ] - }, - "normalizedCodex": { - "skills": [ - { - "name": "plugin-helper", - "description": "Use the plugin helper", - "path": "/fixture/plugins/helper/SKILL.md", - "scope": "user", - "enabled": true, - "pluginId": "helper@example" - }, - { - "name": "project-workflow", - "description": "Use for this project", - "path": "/fixture/workspace/.agents/skills/project-workflow/SKILL.md", - "scope": "repo", - "enabled": false, - "pluginId": null - }, - { - "name": "shared-checks", - "description": "Use for common checks", - "path": "/fixture/home/.agents/skills/shared-checks/SKILL.md", - "scope": "user", - "enabled": true, - "pluginId": null - } - ], - "source": "agent", - "issues": [], - "directories": {} - }, - "claudeInventory": { - "skills": [ - { - "name": "local-review", - "description": "Review this project's changes", - "path": "/fixture/workspace/.claude/skills/local-review/SKILL.md", - "scope": "repo", - "enabled": false, - "pluginId": null - } - ], - "source": "directory", - "issues": [], - "directories": { - "user": "/fixture/home/.claude/skills", - "repo": "/fixture/workspace/.claude/skills" - } - } -} diff --git a/shared/fixtures/ai/cli-configuration-v1.json b/shared/fixtures/ai/cli-configuration-v1.json deleted file mode 100644 index 3bb8b35489..0000000000 --- a/shared/fixtures/ai/cli-configuration-v1.json +++ /dev/null @@ -1,278 +0,0 @@ -{ - "schemaVersion": 1, - "description": "ai.configuration.sources and ai.configuration.parse. Every credential value is an obviously fake string containing secretMarker; no response may contain it. expectedCredentialValue is what a host obtains by resolving the returned locator against the same files and environment.", - "secretMarker": "fixture-secret", - "sourceCases": [ - { - "id": "codex-default-directory", - "request": { "source": "codex", "home": "/fixture-home", "environment": {} }, - "expected": [ - { "file": "config", "path": "/fixture-home/.codex/config.toml" }, - { "file": "auth", "path": "/fixture-home/.codex/auth.json" } - ] - }, - { - "id": "codex-home-override", - "request": { "source": "codex", "home": "/fixture-home", "environment": { "CODEX_HOME": "/fixture-codex" } }, - "expected": [ - { "file": "config", "path": "/fixture-codex/config.toml" }, - { "file": "auth", "path": "/fixture-codex/auth.json" } - ] - }, - { - "id": "claude-config-dir-override-keeps-root-in-home", - "request": { "source": "claude", "home": "/fixture-home", "environment": { "CLAUDE_CONFIG_DIR": "/fixture-claude", "CODEX_HOME": " " } }, - "expected": [ - { "file": "settings", "path": "/fixture-claude/settings.json" }, - { "file": "credentials", "path": "/fixture-claude/.credentials.json" }, - { "file": "root", "path": "/fixture-home/.claude.json" } - ] - } - ], - "strictCases": [ - { - "id": "codex-profile-defaults-to-responses-and-reads-auth-key", - "source": "codex", - "files": { - "config": "model = 'unused'\nprofile = 'work'\n[profiles.work]\nmodel = 'fixture-model'\nmodel_provider = 'gateway'\nmodel_reasoning_effort = 'high'\n[model_providers.gateway]\nbase_url = 'https://example.test/v1'\nrequires_openai_auth = true\n", - "auth": "{\"OPENAI_API_KEY\":\"fixture-secret-auth\"}" - }, - "environment": { "OPENAI_API_KEY": "fixture-secret-environment" }, - "expected": { - "model": "fixture-model", - "provider": { "endpoint": "https://example.test/v1", "model": "fixture-model", "apiProtocol": "responses", "authentication": "bearer", "requiresApiKey": true, "source": "codex" }, - "issue": null, - "reasoningEffort": "high", - "hasCredential": true, - "credential": { "kind": "file", "file": "auth", "path": ["OPENAI_API_KEY"] }, - "unsupportedAuthentication": false - }, - "expectedCredentialValue": "fixture-secret-auth" - }, - { - "id": "codex-default-openai-provider-falls-back-to-environment", - "source": "codex", - "files": { "config": "model = 'fixture-model'\n", "auth": "{\"OPENAI_API_KEY\":null,\"tokens\":{\"access_token\":\"fixture-secret-oauth\"}}" }, - "environment": { "OPENAI_API_KEY": "fixture-secret-environment" }, - "expected": { - "model": "fixture-model", - "provider": { "endpoint": "https://api.openai.com/v1", "apiProtocol": "responses", "requiresApiKey": true }, - "hasCredential": true, - "credential": { "kind": "environment", "name": "OPENAI_API_KEY" } - }, - "expectedCredentialValue": "fixture-secret-environment" - }, - { - "id": "codex-declared-env-key-never-falls-back", - "source": "codex", - "files": { - "config": "model = 'fixture-model'\nmodel_provider = 'company'\n[model_providers.company]\nbase_url = 'https://gateway.example.test/v1'\nwire_api = 'chat'\nenv_key = 'COMPANY_KEY'\n", - "auth": "{\"OPENAI_API_KEY\":\"fixture-secret-auth\"}" - }, - "environment": { "OPENAI_API_KEY": "fixture-secret-environment" }, - "expected": { - "provider": { "endpoint": "https://gateway.example.test/v1", "apiProtocol": "chatCompletions", "requiresApiKey": true }, - "hasCredential": false, - "credential": null - } - }, - { - "id": "codex-env-key-resolves-from-environment", - "source": "codex", - "files": { - "config": "model = 'fixture-model'\nmodel_provider = 'company'\n[model_providers.company]\nbase_url = 'https://gateway.example.test/v1'\nenv_key = 'COMPANY_KEY'\n" - }, - "environment": { "COMPANY_KEY": "fixture-secret-company" }, - "expected": { - "hasCredential": true, - "credential": { "kind": "environment", "name": "COMPANY_KEY" } - }, - "expectedCredentialValue": "fixture-secret-company" - }, - { - "id": "codex-inline-bearer-token", - "source": "codex", - "files": { - "config": "model = 'fixture-model'\nmodel_provider = 'company'\n[model_providers.company]\nbase_url = 'https://gateway.example.test/v1'\nexperimental_bearer_token = 'fixture-secret-inline'\n" - }, - "environment": {}, - "expected": { - "hasCredential": true, - "credential": { "kind": "file", "file": "config", "path": ["model_providers", "company", "experimental_bearer_token"] } - }, - "expectedCredentialValue": "fixture-secret-inline" - }, - { - "id": "codex-keyless-local-provider", - "source": "codex", - "files": { - "config": "model = 'local-model'\nmodel_provider = 'local'\n[model_providers.local]\nbase_url = 'http://localhost:1234/v1'\n", - "auth": "{\"OPENAI_API_KEY\":\"fixture-secret-auth\"}" - }, - "environment": {}, - "expected": { - "provider": { "endpoint": "http://localhost:1234/v1", "requiresApiKey": false }, - "hasCredential": false, - "credential": null - } - }, - { - "id": "codex-incomplete-provider-still-reports-model", - "source": "codex", - "files": { "config": "model = 'fixture-model'\nmodel_provider = 'custom'\n" }, - "environment": {}, - "expected": { - "model": "fixture-model", - "provider": null, - "issue": "AI_COMMIT_INVALID_CONFIG", - "hasCredential": false, - "credential": null - } - }, - { - "id": "codex-not-configured", - "source": "codex", - "files": { "config": " \n", "auth": "{\"OPENAI_API_KEY\":\"fixture-secret-auth\"}" }, - "environment": { "OPENAI_API_KEY": "fixture-secret-environment" }, - "expected": null - }, - { - "id": "claude-settings-env-wins-and-resolves-alias", - "source": "claude", - "files": { - "settings": "{\"env\":{\"ANTHROPIC_BASE_URL\":\"https://example.test/v1\",\"ANTHROPIC_MODEL\":\"sonnet\",\"ANTHROPIC_DEFAULT_SONNET_MODEL\":\"fixture-model\",\"ANTHROPIC_API_KEY\":\"fixture-secret-settings\"}}", - "root": "{\"apiKey\":\"fixture-secret-root\"}" - }, - "environment": { "ANTHROPIC_API_KEY": "fixture-secret-environment", "ANTHROPIC_BASE_URL": "https://ignored.example.test" }, - "expected": { - "model": "fixture-model", - "provider": { "endpoint": "https://example.test/v1", "model": "fixture-model", "apiProtocol": "anthropicMessages", "authentication": "apiKey", "source": "claude" }, - "hasCredential": true, - "credential": { "kind": "file", "file": "settings", "path": ["env", "ANTHROPIC_API_KEY"] }, - "unsupportedAuthentication": false - }, - "expectedCredentialValue": "fixture-secret-settings" - }, - { - "id": "claude-process-environment-api-url-and-key", - "source": "claude", - "files": { "settings": "{\"model\":\"fixture-model\",\"apiKey\":\" \"}" }, - "environment": { "ANTHROPIC_API_URL": "https://environment.example.test/v1", "ANTHROPIC_API_KEY": "fixture-secret-environment" }, - "expected": { - "provider": { "endpoint": "https://environment.example.test/v1", "model": "fixture-model", "authentication": "apiKey" }, - "credential": { "kind": "environment", "name": "ANTHROPIC_API_KEY" } - }, - "expectedCredentialValue": "fixture-secret-environment" - }, - { - "id": "claude-auth-token-wins-over-api-key", - "source": "claude", - "files": { "settings": "{\"apiKey\":\"fixture-secret-key\",\"env\":{\"ANTHROPIC_AUTH_TOKEN\":\"fixture-secret-token\"}}" }, - "environment": {}, - "expected": { - "provider": { "endpoint": "https://api.anthropic.com/v1", "model": "claude-sonnet-4-5", "authentication": "bearer" }, - "credential": { "kind": "file", "file": "settings", "path": ["env", "ANTHROPIC_AUTH_TOKEN"] } - }, - "expectedCredentialValue": "fixture-secret-token" - }, - { - "id": "claude-cloud-route-has-no-static-credential", - "source": "claude", - "files": { "settings": "{\"env\":{\"CLAUDE_CODE_USE_BEDROCK\":\"1\",\"ANTHROPIC_API_KEY\":\"fixture-secret-settings\"}}" }, - "environment": {}, - "expected": { - "hasCredential": false, - "credential": null, - "unsupportedAuthentication": true - } - }, - { - "id": "claude-key-helper-without-key-is-unsupported", - "source": "claude", - "files": { "settings": "{\"apiKeyHelper\":\"/fixture/print-key\"}" }, - "environment": {}, - "expected": { - "hasCredential": false, - "credential": null, - "unsupportedAuthentication": true - } - }, - { - "id": "claude-key-helper-is-ignored-when-a-key-exists", - "source": "claude", - "files": { "settings": "{\"apiKeyHelper\":\"/fixture/print-key\"}", "credentials": "{\"apiKey\":\"fixture-secret-credentials\"}" }, - "environment": {}, - "expected": { - "hasCredential": true, - "credential": { "kind": "file", "file": "credentials", "path": ["apiKey"] }, - "unsupportedAuthentication": false - }, - "expectedCredentialValue": "fixture-secret-credentials" - }, - { - "id": "claude-environment-only", - "source": "claude", - "files": {}, - "environment": { "ANTHROPIC_API_KEY": "fixture-secret-environment" }, - "expected": { - "provider": { "endpoint": "https://api.anthropic.com/v1", "authentication": "apiKey" }, - "credential": { "kind": "environment", "name": "ANTHROPIC_API_KEY" } - }, - "expectedCredentialValue": "fixture-secret-environment" - }, - { - "id": "claude-not-configured", - "source": "claude", - "files": { "settings": "", "credentials": " " }, - "environment": { "OPENAI_API_KEY": "fixture-secret-environment" }, - "expected": null - } - ], - "draftCases": [ - { "id": "codex-empty", "source": "codex", "files": { "config": "" }, - "expected": { "endpoint": "", "model": "", "apiProtocol": "responses", "authentication": "bearer" } }, - { "id": "codex-whitespace", "source": "codex", "files": { "config": " \n\t " }, - "expected": { "endpoint": "", "model": "", "apiProtocol": "responses", "authentication": "bearer" } }, - { "id": "codex-model-only", "source": "codex", "files": { "config": "model = 'draft-model'" }, - "expected": { "endpoint": "", "model": "draft-model", "apiProtocol": "responses", "authentication": "bearer" } }, - { "id": "codex-endpoint-only", "source": "codex", "files": { "config": "model_provider = 'custom'\n[model_providers.custom]\nbase_url = 'https://example.test/v1'" }, - "expected": { "endpoint": "https://example.test/v1", "model": "", "apiProtocol": "responses", "authentication": "bearer" } }, - { "id": "codex-pasted-auth-key", "source": "codex", - "files": { "config": "model_provider = \"lithe\"\nmodel = \"draft-model\"\n[model_providers.lithe]\nbase_url = \"https://example.test/v1\"\nwire_api = \"responses\"\n", "auth": "{\"api_key\":\"fixture-secret-pasted\"}" }, - "expected": { "endpoint": "https://example.test/v1", "model": "draft-model", "apiProtocol": "responses" }, - "expectedCredential": { "kind": "file", "file": "auth", "path": ["api_key"] }, - "expectedCredentialValue": "fixture-secret-pasted" }, - { "id": "claude-blank", "source": "claude", "files": { "settings": "" }, - "expected": { "endpoint": "", "model": "", "apiProtocol": "anthropicMessages", "authentication": "apiKey" } }, - { "id": "claude-whitespace", "source": "claude", "files": { "settings": " \n\t " }, - "expected": { "endpoint": "", "model": "", "apiProtocol": "anthropicMessages", "authentication": "apiKey" } }, - { "id": "claude-empty", "source": "claude", "files": { "settings": "{}" }, - "expected": { "endpoint": "", "model": "", "apiProtocol": "anthropicMessages", "authentication": "apiKey" } }, - { "id": "claude-empty-template", "source": "claude", "files": { "settings": "{\"env\":{\"ANTHROPIC_BASE_URL\":\"\",\"ANTHROPIC_MODEL\":\"\",\"ANTHROPIC_API_KEY\":\"\"}}" }, - "expected": { "endpoint": "", "model": "", "apiProtocol": "anthropicMessages", "authentication": "apiKey" } }, - { "id": "claude-model-only", "source": "claude", "files": { "settings": "{\"env\":{\"ANTHROPIC_MODEL\":\"draft-model\"}}" }, - "expected": { "endpoint": "", "model": "draft-model", "apiProtocol": "anthropicMessages", "authentication": "apiKey" } }, - { "id": "claude-key-only", "source": "claude", "files": { "settings": "{\"env\":{\"ANTHROPIC_API_KEY\":\"fixture-secret-pasted\"}}" }, - "expected": { "endpoint": "", "model": "", "apiProtocol": "anthropicMessages", "authentication": "apiKey" }, - "expectedCredential": { "kind": "file", "file": "settings", "path": ["env", "ANTHROPIC_API_KEY"] }, - "expectedCredentialValue": "fixture-secret-pasted" }, - { "id": "claude-alias", "source": "claude", "files": { "settings": "{\"env\":{\"ANTHROPIC_MODEL\":\"sonnet\",\"ANTHROPIC_DEFAULT_SONNET_MODEL\":\"alias-model\"}}" }, - "expected": { "endpoint": "", "model": "alias-model", "apiProtocol": "anthropicMessages", "authentication": "apiKey" } }, - { "id": "claude-pasted-token-is-bearer", "source": "claude", "files": { "settings": "{\"env\":{\"ANTHROPIC_AUTH_TOKEN\":\"fixture-secret-token\",\"ANTHROPIC_API_KEY\":\"fixture-secret-pasted\"}}" }, - "expected": { "authentication": "bearer", "unsupportedAuthentication": false }, - "expectedCredential": { "kind": "file", "file": "settings", "path": ["env", "ANTHROPIC_AUTH_TOKEN"] }, - "expectedCredentialValue": "fixture-secret-token" }, - { "id": "claude-pasted-cloud-route", "source": "claude", "files": { "settings": "{\"env\":{\"CLAUDE_CODE_USE_VERTEX\":\"true\",\"ANTHROPIC_API_KEY\":\"fixture-secret-pasted\"}}" }, - "expected": { "unsupportedAuthentication": true }, - "expectedCredential": null } - ], - "errorCases": [ - { "id": "codex-malformed", "payload": { "source": "codex", "files": { "config": "fixture-secret = [" } }, "code": "AI_COMMIT_INVALID_CONFIG" }, - { "id": "codex-smart-quotes", "payload": { "source": "codex", "files": { "config": "model = “fixture-secret”" }, "allowIncomplete": true }, "code": "AI_CONFIGURATION_SMART_QUOTES" }, - { "id": "codex-auth-not-object", "payload": { "source": "codex", "files": { "config": "model = 'x'", "auth": "[\"fixture-secret\"]" } }, "code": "AI_CONFIGURATION_INVALID_AUTHENTICATION" }, - { "id": "codex-auth-key-not-string", "payload": { "source": "codex", "files": { "config": "model = 'x'", "auth": "{\"OPENAI_API_KEY\":42}" }, "allowIncomplete": true }, "code": "AI_CONFIGURATION_INVALID_AUTHENTICATION" }, - { "id": "claude-not-object", "payload": { "source": "claude", "files": { "settings": "[\"fixture-secret\"]" } }, "code": "AI_COMMIT_INVALID_CONFIG" }, - { "id": "unknown-source", "payload": { "source": "fixture", "files": {} }, "code": "AI_COMMIT_INVALID_CONFIG" }, - { "id": "unknown-file", "payload": { "source": "codex", "files": { "fixture": "fixture-secret" } }, "code": "AI_COMMIT_INVALID_CONFIG" } - ] -} diff --git a/shared/fixtures/ai/commit-generation-v1.json b/shared/fixtures/ai/commit-generation-v1.json deleted file mode 100644 index 31c7c382bf..0000000000 --- a/shared/fixtures/ai/commit-generation-v1.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "version": 1, - "provider": { - "id": "fixture-provider", "name": "Example", "endpoint": "https://api.example.com/v1", - "model": "example-model", "apiProtocol": "responses", "authentication": "bearer", "source": "local", - "requiresApiKey": true, "allowsInsecureHttp": false, - "chatTokenLimitField": "max_completion_tokens" - }, - "options": { - "language": "simplifiedChinese", "format": "conventional", "customInstructions": "", - "includeBody": false, "subjectMaximumLength": 72, "maximumDiffCharacters": 32000, "reasoningEffort": "low" - }, - "files": [ - { "path": "src/editor.ts", "changeKind": "modified", "diff": "-const indicator = false;\n+const indicator = true;" }, - { "path": "src/editor.css", "changeKind": "modified", "diff": "+.indicator { display: block; }" } - ], - "responses": [ - { "protocol": "responses", "tokenField": "max_output_tokens", "body": { "output": [{ "type": "message", "content": [{ "type": "output_text", "text": "feat(editor): 添加指示器" }] }] } }, - { "protocol": "chatCompletions", "tokenField": "max_completion_tokens", "body": { "choices": [{ "message": { "content": "feat(editor): 添加指示器" } }] } }, - { "protocol": "anthropicMessages", "tokenField": "max_tokens", "body": { "content": [{ "type": "text", "text": "feat(editor): 添加指示器" }] } } - ], - "expectedMessage": "feat(editor): 添加指示器" -} diff --git a/shared/fixtures/ai/inline-edit-v1.json b/shared/fixtures/ai/inline-edit-v1.json deleted file mode 100644 index 2b17b7b151..0000000000 --- a/shared/fixtures/ai/inline-edit-v1.json +++ /dev/null @@ -1,323 +0,0 @@ -{ - "version": 1, - "edit": { - "beforeSelection": "fn main() {\n", - "selectedText": " println!(\"hi\");", - "afterSelection": "\n}\n", - "instruction": " ", - "filePath": "src/main.rs", - "languageId": "rust" - }, - "expectedUserPrompt": "File: src/main.rs\nLanguage: rust\n\nInstruction:\nImprove this code while preserving behavior.\n\nBefore selection:\nfn main() {\n\n\nSelected text:\n println!(\"hi\");\n\nAfter selection:\n\n}\n", - "plans": [ - { - "case": "chatCompletionsCatalogModel", - "provider": { - "wireProtocol": "chatCompletions", - "endpoint": "https://api.example.com/v1/chat/completions", - "requiresApiKey": true, - "acceptsUnlistedModels": false, - "chatTokenLimitField": "max_tokens", - "supportsTemperature": true - }, - "model": { - "id": "example-model", - "listing": "catalog", - "maxTokens": 200000 - }, - "expected": { - "url": "https://api.example.com/v1/chat/completions", - "tokenField": "max_tokens", - "outputTokens": 4096, - "temperature": 0.2, - "credential": { - "required": true, - "header": "Authorization", - "scheme": "bearer" - } - } - }, - { - "case": "compatibleBaseUrlGetsPathOnce", - "provider": { - "wireProtocol": "chatCompletions", - "endpoint": "http://localhost:11434/v1/", - "requiresApiKey": false, - "allowsInsecureHttp": true, - "acceptsUnlistedModels": false, - "chatTokenLimitField": "max_completion_tokens", - "supportsTemperature": false - }, - "model": { - "id": "local-model", - "listing": "discovered", - "maxTokens": null - }, - "expected": { - "url": "http://localhost:11434/v1/chat/completions", - "tokenField": "max_completion_tokens", - "outputTokens": 4096, - "temperature": null, - "credential": { - "required": false, - "header": "Authorization", - "scheme": "bearer" - } - } - }, - { - "case": "anthropicSmallModelLimit", - "provider": { - "wireProtocol": "anthropicMessages", - "endpoint": "https://api.example.com/v1/messages", - "requiresApiKey": true - }, - "model": { - "id": "example-claude", - "listing": "catalog", - "maxTokens": 1024 - }, - "expected": { - "url": "https://api.example.com/v1/messages", - "tokenField": "max_tokens", - "outputTokens": 1024, - "temperature": 0.2, - "credential": { - "required": true, - "header": "x-api-key", - "scheme": "raw" - } - } - }, - { - "case": "geminiModelPath", - "provider": { - "wireProtocol": "geminiGenerateContent", - "endpoint": "https://generative.example.com/v1beta/models", - "requiresApiKey": true - }, - "model": { - "id": "example-gemini", - "listing": "catalog", - "maxTokens": 65536 - }, - "expected": { - "url": "https://generative.example.com/v1beta/models/example-gemini:generateContent", - "tokenField": "generationConfig.maxOutputTokens", - "outputTokens": 4096, - "temperature": 0.2, - "credential": { - "required": true, - "header": "x-goog-api-key", - "scheme": "raw" - } - } - }, - { - "case": "unlistedModelOnOpenProvider", - "provider": { - "wireProtocol": "chatCompletions", - "endpoint": "https://router.example.com/api/v1/chat/completions", - "requiresApiKey": true, - "acceptsUnlistedModels": true - }, - "model": { - "id": "vendor/new-model", - "listing": "unlisted" - }, - "expected": { - "url": "https://router.example.com/api/v1/chat/completions", - "tokenField": "max_tokens", - "outputTokens": 4096, - "temperature": 0.2, - "credential": { - "required": true, - "header": "Authorization", - "scheme": "bearer" - } - } - } - ], - "planRejections": [ - { - "case": "unlistedModel", - "provider": { - "wireProtocol": "chatCompletions", - "endpoint": "https://api.example.com/v1/chat/completions", - "requiresApiKey": true - }, - "model": { - "id": "missing", - "listing": "unlisted" - }, - "code": "AI_INLINE_EDIT_MODEL_NOT_FOUND" - }, - { - "case": "blankModel", - "provider": { - "wireProtocol": "chatCompletions", - "endpoint": "https://api.example.com/v1", - "requiresApiKey": true - }, - "model": { - "id": " ", - "listing": "catalog" - }, - "code": "AI_INLINE_EDIT_MODEL_MISSING" - }, - { - "case": "customEndpointMissing", - "provider": { - "wireProtocol": "chatCompletions", - "endpoint": " ", - "requiresApiKey": false, - "acceptsUnlistedModels": true - }, - "model": { - "id": "m", - "listing": "unlisted" - }, - "code": "AI_INLINE_EDIT_ENDPOINT_MISSING" - }, - { - "case": "httpWithoutTrust", - "provider": { - "wireProtocol": "chatCompletions", - "endpoint": "http://api.example.com/v1", - "requiresApiKey": true - }, - "model": { - "id": "m", - "listing": "catalog" - }, - "code": "AI_INLINE_EDIT_INSECURE_ENDPOINT" - }, - { - "case": "queryCouldCarryCredential", - "provider": { - "wireProtocol": "geminiGenerateContent", - "endpoint": "https://generative.example.com/v1beta/models?key=x", - "requiresApiKey": true - }, - "model": { - "id": "m", - "listing": "catalog" - }, - "code": "AI_INLINE_EDIT_INVALID_ENDPOINT" - }, - { - "case": "providerWithoutWireProtocol", - "provider": { - "wireProtocol": "", - "endpoint": "https://api.example.com", - "requiresApiKey": false - }, - "model": { - "id": "m", - "listing": "catalog" - }, - "code": "AI_INLINE_EDIT_UNSUPPORTED_PROVIDER" - } - ], - "decodes": [ - { - "case": "fencedReplacementKeepsIndentation", - "wireProtocol": "chatCompletions", - "response": { - "choices": [ - { - "message": { - "content": "```rust\n println!(\"hello\");\n```" - }, - "finish_reason": "stop" - } - ] - }, - "editedText": " println!(\"hello\");" - }, - { - "case": "anthropicText", - "wireProtocol": "anthropicMessages", - "response": { - "content": [ - { - "type": "text", - "text": "let value = 1;" - } - ], - "stop_reason": "end_turn" - }, - "editedText": "let value = 1;" - }, - { - "case": "geminiParts", - "wireProtocol": "geminiGenerateContent", - "response": { - "candidates": [ - { - "content": { - "parts": [ - { - "text": "let a" - }, - { - "text": " = 1;" - } - ] - }, - "finishReason": "STOP" - } - ] - }, - "editedText": "let a = 1;" - }, - { - "case": "emptyIsAResult", - "wireProtocol": "chatCompletions", - "response": { - "choices": [ - { - "message": { - "content": " " - } - } - ] - }, - "editedText": "" - }, - { - "case": "truncatedUsedToBeApplied", - "wireProtocol": "chatCompletions", - "response": { - "choices": [ - { - "message": { - "content": "fn partial(" - }, - "finish_reason": "length" - } - ] - }, - "code": "AI_INLINE_EDIT_OUTPUT_LIMIT" - }, - { - "case": "geminiTruncated", - "wireProtocol": "geminiGenerateContent", - "response": { - "candidates": [ - { - "content": { - "parts": [ - { - "text": "fn" - } - ] - }, - "finishReason": "MAX_TOKENS" - } - ] - }, - "code": "AI_INLINE_EDIT_OUTPUT_LIMIT" - } - ] -} diff --git a/shared/fixtures/ai/pull-request-description-v1.json b/shared/fixtures/ai/pull-request-description-v1.json deleted file mode 100644 index 9a438e730c..0000000000 --- a/shared/fixtures/ai/pull-request-description-v1.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "version": 1, - "provider": { - "id": "fixture-provider", - "name": "Example", - "endpoint": "https://api.example.com/v1", - "model": "example-model", - "apiProtocol": "chatCompletions", - "authentication": "bearer", - "source": "local", - "requiresApiKey": true, - "allowsInsecureHttp": false, - "chatTokenLimitField": "max_completion_tokens" - }, - "options": { - "language": "english", - "format": "custom", - "customTemplate": "## Summary\n\n{summary}\n\n## Testing\n\n{testing}", - "maximumDiffCharacters": 32000, - "reasoningEffort": "default" - }, - "comparison": { - "repository": "example/lithe", - "base": "main", - "head": "feature/ai-pr", - "commitMessages": [ - "Add generation" - ], - "files": [ - { - "path": "Sources/PullRequest.swift", - "changeKind": "modified", - "diff": "@@ -1 +1 @@\n-old\n+new" - }, - { - "path": "Assets/logo.png", - "changeKind": "modified", - "diff": "" - } - ] - }, - "expectedPrompt": { - "outputTokens": 4096, - "systemContains": [ - "Preserve this Markdown template", - "never claim tests passed", - "## Testing" - ], - "userContains": [ - "Base branch: \"main\"", - "Compare branch: \"feature/ai-pr\"", - "1. Add generation", - "path: \"Sources/PullRequest.swift\"", - "+new" - ], - "userExcludes": [ - "Assets/logo.png" - ] - }, - "responses": [ - { - "protocol": "responses", - "tokenField": "max_output_tokens", - "body": { - "output_text": "{\"title\": \"Add AI pull request descriptions\", \"description\": \"## Summary\\n\\nAdds grounded pull request descriptions.\"}" - } - }, - { - "protocol": "chatCompletions", - "tokenField": "max_completion_tokens", - "body": { - "choices": [ - { - "message": { - "content": "```json\n{\"title\": \"Add AI pull request descriptions\", \"description\": \"## Summary\\n\\nAdds grounded pull request descriptions.\"}\n```" - } - } - ] - } - }, - { - "protocol": "anthropicMessages", - "tokenField": "max_tokens", - "body": { - "content": [ - { - "type": "text", - "text": "{\"title\": \"Add AI pull request descriptions\", \"description\": \"## Summary\\n\\nAdds grounded pull request descriptions.\"}" - } - ] - } - } - ], - "expectedDescription": { - "title": "Add AI pull request descriptions", - "description": "## Summary\n\nAdds grounded pull request descriptions." - }, - "planRejections": [ - { - "case": "credentialFileUsedToBeSentByMacOS", - "files": [ - { - "path": "config/credentials.json", - "changeKind": "modified", - "diff": "+x" - } - ], - "code": "AI_COMMIT_SENSITIVE_FILE" - }, - { - "case": "privateKey", - "files": [ - { - "path": "deploy/id_ed25519", - "changeKind": "added", - "diff": "+x" - } - ], - "code": "AI_COMMIT_SENSITIVE_FILE" - }, - { - "case": "noTextualPatch", - "files": [ - { - "path": "Assets/logo.png", - "changeKind": "modified", - "diff": " \n" - } - ], - "code": "AI_PULL_REQUEST_EMPTY_COMPARISON" - } - ], - "decodeRejections": [ - { - "case": "titleOnlyUsedToBeAcceptedByWindows", - "protocol": "chatCompletions", - "body": { - "choices": [ - { - "message": { - "content": "{\"title\":\"Only a title\"}" - } - } - ] - }, - "code": "AI_PULL_REQUEST_INVALID_RESPONSE" - }, - { - "case": "proseAroundJsonUsedToBeAcceptedByWindows", - "protocol": "chatCompletions", - "body": { - "choices": [ - { - "message": { - "content": "Here is the draft: {\"title\": \"Add AI pull request descriptions\", \"description\": \"## Summary\\n\\nAdds grounded pull request descriptions.\"}" - } - } - ] - }, - "code": "AI_PULL_REQUEST_INVALID_RESPONSE" - }, - { - "case": "blankDescription", - "protocol": "responses", - "body": { - "output_text": "{\"title\":\"Title\",\"description\":\" \"}" - }, - "code": "AI_PULL_REQUEST_INVALID_RESPONSE" - }, - { - "case": "empty", - "protocol": "anthropicMessages", - "body": { - "content": [] - }, - "code": "AI_PULL_REQUEST_EMPTY_RESPONSE" - }, - { - "case": "outputLimit", - "protocol": "responses", - "body": { - "output_text": "{\"title\":", - "incomplete_details": { - "reason": "max_output_tokens" - } - }, - "code": "AI_COMMIT_OUTPUT_LIMIT" - } - ] -} diff --git a/shared/fixtures/build-project-options/local-edits.json b/shared/fixtures/build-project-options/local-edits.json deleted file mode 100644 index 1cbe878123..0000000000 --- a/shared/fixtures/build-project-options/local-edits.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": 1, - "team": {"version": 1, "systems": {"cargo": {"options": {"offline": true, "features": ["alpha", "beta"]}, "instanceDefaults": {"release": true}, "instances": {"other": {"label": "team other"}}, "savedChoices": {"features": ["remembered"]}}, "dormant": {"options": {"label": "keep"}}}}, - "emptyLocal": {"version": 1, "document": {"version": 1, "systems": {}}, "emptySelections": {}}, - "cases": [ - {"name": "instance false overrides team default", "root": "app", "optionID": "release", "value": false, "modelValues": {}, "valid": true}, - {"name": "workspace false remains explicit", "root": "app", "optionID": "offline", "value": false, "modelValues": {}, "valid": true}, - {"name": "explicit empty preserves sibling feature", "root": "app", "optionID": "features", "value": [], "modelValues": {"features": ["alpha"]}, "valid": true}, - {"name": "invalid model feature refuses whole edit", "root": "app", "optionID": "features", "value": ["alpha", "unknown"], "modelValues": {"features": ["alpha"]}, "valid": false}, - {"name": "unknown option refuses", "root": "app", "optionID": "unknown", "value": true, "modelValues": {}, "valid": false}, - {"name": "wrong type refuses", "root": "app", "optionID": "offline", "value": "false", "modelValues": {}, "valid": false}, - {"name": "escaping root refuses", "root": "../other", "optionID": "release", "value": true, "modelValues": {}, "valid": false} - ] -} diff --git a/shared/fixtures/build-project-options/shared-defaults.json b/shared/fixtures/build-project-options/shared-defaults.json deleted file mode 100644 index fc63a3cada..0000000000 --- a/shared/fixtures/build-project-options/shared-defaults.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "version": 1, - "systems": { - "maven": { - "options": {}, - "instanceDefaults": { - "profiles": [ - "ci" - ], - "skipTests": false - }, - "instances": { - "services/a": { - "offline": true - } - }, - "savedChoices": { - "profiles": [ - "ci", - "manual" - ] - } - } - } -} diff --git a/shared/fixtures/build-project-options/validation.json b/shared/fixtures/build-project-options/validation.json deleted file mode 100644 index b300e01a92..0000000000 --- a/shared/fixtures/build-project-options/validation.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "version": 1, - "cases": [ - { "name": "empty document", "valid": true, "document": {"version": 1, "systems": {}} }, - { "name": "numeric schema const", "valid": true, "document": {"version": 1.0, "systems": {}} }, - { "name": "per root empty selection and inactive custom choice", "valid": true, "document": {"version": 1, "systems": {"maven": {"instanceDefaults": {"profiles": ["ci"], "offline": false}, "instances": {"services/项目": {"profiles": []}, ".": {"settingsFile": "selected.xml"}}, "savedChoices": {"profiles": ["ci", "manual"]}}}} }, - { "name": "unknown system retained", "valid": true, "document": {"version": 1, "systems": {"future-tool": {"options": {"custom.option": "saved"}}}} }, - { "name": "boolean version", "valid": false, "document": {"version": true, "systems": {}} }, - { "name": "unsupported version", "valid": false, "document": {"version": 2, "systems": {}} }, - { "name": "unknown document field", "valid": false, "document": {"version": 1, "systems": {}, "extra": true} }, - { "name": "unknown system field", "valid": false, "document": {"version": 1, "systems": {"maven": {"extra": true}}} }, - { "name": "numeric option", "valid": false, "document": {"version": 1, "systems": {"maven": {"options": {"threads": 2}}}} }, - { "name": "null option", "valid": false, "document": {"version": 1, "systems": {"maven": {"options": {"profiles": null}}}} }, - { "name": "mixed list", "valid": false, "document": {"version": 1, "systems": {"maven": {"options": {"profiles": ["ci", false]}}}} }, - { "name": "empty system id", "valid": false, "document": {"version": 1, "systems": {"": {}}} }, - { "name": "invalid system id", "valid": false, "document": {"version": 1, "systems": {"maven.plugin": {}}} }, - { "name": "invalid option id", "valid": false, "document": {"version": 1, "systems": {"maven": {"options": {"profile/value": []}}}} }, - { "name": "root escape", "valid": false, "document": {"version": 1, "systems": {"maven": {"instances": {"../outside": {}}}}} }, - { "name": "absolute root", "valid": false, "document": {"version": 1, "systems": {"maven": {"instances": {"/outside": {}}}}} }, - { "name": "windows root", "valid": false, "document": {"version": 1, "systems": {"maven": {"instances": {"C:/outside": {}}}}} }, - { "name": "empty segment", "valid": false, "document": {"version": 1, "systems": {"maven": {"instances": {"a//b": {}}}}} }, - { "name": "backslash root", "valid": false, "document": {"version": 1, "systems": {"maven": {"instances": {"a\\b": {}}}}} }, - { "name": "malformed saved choices", "valid": false, "document": {"version": 1, "systems": {"maven": {"savedChoices": {"profiles": [false]}}}} } - ] -} diff --git a/shared/fixtures/build-provider/test-results-v1.json b/shared/fixtures/build-provider/test-results-v1.json deleted file mode 100644 index 5b0ae4f277..0000000000 --- a/shared/fixtures/build-provider/test-results-v1.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "tests": [ - { - "suite": "checkout / HTTP", - "case": "accepts(payload)[1]", - "status": "passed", - "invocations": 2, - "durationMillis": 10 - }, - { - "suite": "checkout / HTTP", - "case": "accepts(payload)[2]", - "status": "error", - "message": "Rejected payload", - "durationMillis": 125, - "path": "tests/checkout.spec", - "line": 7 - }, - { - "suite": "checkout / HTTP", - "case": "disabled", - "status": "skipped", - "durationMillis": 0 - }, - { - "suite": "checkout / HTTP", - "case": "unmeasured", - "status": "passed" - } - ], - "summary": { - "total": 4, - "passed": 2, - "failed": 0, - "errors": 1, - "skipped": 1 - }, - "success": false -} diff --git a/shared/fixtures/build/native-tool-context.json b/shared/fixtures/build/native-tool-context.json deleted file mode 100644 index 8217acf6d4..0000000000 --- a/shared/fixtures/build/native-tool-context.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "manifest": { "id": "dev.example.build" }, - "identity": { "operationEvidence": "fixture-only" }, - "pluginDirectory": "C:/plugins/example", - "workspaceStateDirectory": "C:/state/example", - "environment": { "COMPILER_HOME": "C:/tools/compiler" }, - "tool": { "executable": "C:/tools/builder/bin/build.cmd" }, - "resolvedExecutables": { - "dev.example.tools:builder": "C:/tools/builder/bin/build.cmd", - "dev.example.tools:compiler": "C:/tools/compiler/bin/compiler.exe" - }, - "executesProjectCode": false -} diff --git a/shared/fixtures/build/test-outcome-merge-v1.json b/shared/fixtures/build/test-outcome-merge-v1.json deleted file mode 100644 index 8fdcbd31dd..0000000000 --- a/shared/fixtures/build/test-outcome-merge-v1.json +++ /dev/null @@ -1,264 +0,0 @@ -{ - "version": 1, - "description": "build.mergeTestOutcomes: the run's results replace the history only inside the scope the host states (exact ids and id prefixes). Hosts turn their own naming rules, such as Java nested classes, into prefixes before calling Core. Entries point at positions in `previous` or `incoming`.", - "cases": [ - { - "name": "method run replaces only that method's result", - "request": { - "previous": [ - "A#x", - "A#y", - "A$N#x", - "B#z" - ], - "incoming": [ - "A#x" - ], - "scope": { - "ids": [ - "A#x" - ] - } - }, - "expected": { - "entries": [ - { - "source": "previous", - "index": 1 - }, - { - "source": "previous", - "index": 2 - }, - { - "source": "previous", - "index": 3 - }, - { - "source": "incoming", - "index": 0 - } - ] - } - }, - { - "name": "class run replaces the class and its nested classes", - "request": { - "previous": [ - "A#x", - "A#y", - "A$N#x", - "B#z" - ], - "incoming": [ - "A#x", - "A$N#w" - ], - "scope": { - "prefixes": [ - "A#", - "A$" - ] - } - }, - "expected": { - "entries": [ - { - "source": "previous", - "index": 3 - }, - { - "source": "incoming", - "index": 0 - }, - { - "source": "incoming", - "index": 1 - } - ] - } - }, - { - "name": "a test seen for the first time is appended", - "request": { - "previous": [ - "A#x" - ], - "incoming": [ - "A#x", - "A#new" - ], - "scope": { - "prefixes": [ - "A#" - ] - } - }, - "expected": { - "entries": [ - { - "source": "incoming", - "index": 0 - }, - { - "source": "incoming", - "index": 1 - } - ] - } - }, - { - "name": "results outside the scope are kept and the run's out-of-scope results are dropped", - "request": { - "previous": [ - "A#x", - "B#z" - ], - "incoming": [ - "A#x", - "B#z" - ], - "scope": { - "ids": [ - "A#x" - ] - } - }, - "expected": { - "entries": [ - { - "source": "previous", - "index": 1 - }, - { - "source": "incoming", - "index": 0 - } - ] - } - }, - { - "name": "a repeated identifier keeps the later entry", - "request": { - "previous": [ - "A#x", - "A#x", - "B#z" - ], - "incoming": [ - "A#y", - "A#y" - ], - "scope": { - "ids": [ - "A#y" - ] - } - }, - "expected": { - "entries": [ - { - "source": "previous", - "index": 1 - }, - { - "source": "previous", - "index": 2 - }, - { - "source": "incoming", - "index": 1 - } - ] - } - }, - { - "name": "a covered stored result is replaced by the run's result", - "request": { - "previous": [ - "A#x" - ], - "incoming": [ - "A#x" - ], - "scope": { - "ids": [ - "A#x" - ] - } - }, - "expected": { - "entries": [ - { - "source": "incoming", - "index": 0 - } - ] - } - }, - { - "name": "an empty scope keeps the history and discards the run", - "request": { - "previous": [ - "A#x", - "B#z" - ], - "incoming": [ - "A#x", - "C#q" - ], - "scope": {} - }, - "expected": { - "entries": [ - { - "source": "previous", - "index": 0 - }, - { - "source": "previous", - "index": 1 - } - ] - } - }, - { - "name": "empty history takes the covered results", - "request": { - "previous": [], - "incoming": [ - "A#x" - ], - "scope": { - "ids": [ - "A#x" - ] - } - }, - "expected": { - "entries": [ - { - "source": "incoming", - "index": 0 - } - ] - } - } - ], - "rejected": [ - { - "name": "an empty prefix would cover everything", - "request": { - "previous": [ - "A#x" - ], - "incoming": [], - "scope": { - "prefixes": [ - "" - ] - } - } - } - ] -} diff --git a/shared/fixtures/build/test-run-outcome-v1.json b/shared/fixtures/build/test-run-outcome-v1.json deleted file mode 100644 index f9e620ce5d..0000000000 --- a/shared/fixtures/build/test-run-outcome-v1.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "version": 1, - "description": "build.resolveTestRunOutcome: one tool-neutral verdict per test run. macOS used to pass a zero-match selection on exit code 0; Windows failed it.", - "cases": [ - { - "name": "selected case that ran nothing did not match", - "request": { - "termination": { "kind": "exited", "exitCode": 0 }, - "scope": "case", - "summary": { "total": 0, "passed": 0, "failed": 0, "errors": 0, "skipped": 0 } - }, - "expected": { "outcome": "noTestsMatched", "success": false, "exitCode": 0 } - }, - { - "name": "selected suite that ran nothing did not match", - "request": { - "termination": { "kind": "exited", "exitCode": 0 }, - "scope": "suite", - "summary": { "total": 0 } - }, - "expected": { "outcome": "noTestsMatched", "success": false, "exitCode": 0 } - }, - { - "name": "project scope without tests found none", - "request": { - "termination": { "kind": "exited", "exitCode": 0 }, - "scope": "project", - "summary": { "total": 0 } - }, - "expected": { "outcome": "noTestsFound", "success": false, "exitCode": 0 } - }, - { - "name": "passing tests pass", - "request": { - "termination": { "kind": "exited", "exitCode": 0 }, - "scope": "suite", - "summary": { "total": 3, "passed": 3, "failed": 0, "errors": 0, "skipped": 0 } - }, - "expected": { "outcome": "passed", "success": true, "exitCode": 0 } - }, - { - "name": "skipped-only run is a pass", - "request": { - "termination": { "kind": "exited", "exitCode": 0 }, - "scope": "case", - "summary": { "total": 1, "passed": 0, "failed": 0, "errors": 0, "skipped": 1 } - }, - "expected": { "outcome": "passed", "success": true, "exitCode": 0 } - }, - { - "name": "reported failure outranks a zero exit code", - "request": { - "termination": { "kind": "exited", "exitCode": 0 }, - "scope": "workspace", - "summary": { "total": 2, "passed": 1, "failed": 1, "errors": 0, "skipped": 0 } - }, - "expected": { "outcome": "testsFailed", "success": false, "exitCode": 0 } - }, - { - "name": "reported error outranks a non-zero exit code", - "request": { - "termination": { "kind": "exited", "exitCode": 1 }, - "scope": "suite", - "summary": { "total": 1, "passed": 0, "failed": 0, "errors": 1, "skipped": 0 } - }, - "expected": { "outcome": "testsFailed", "success": false, "exitCode": 1 } - }, - { - "name": "non-zero exit without results is a tool failure, not a zero match", - "request": { - "termination": { "kind": "exited", "exitCode": 1 }, - "scope": "case", - "summary": { "total": 0 } - }, - "expected": { "outcome": "exitedWithError", "success": false, "exitCode": 1 } - }, - { - "name": "run without structured results relies on the exit code", - "request": { - "termination": { "kind": "exited", "exitCode": 0 }, - "scope": "case", - "summary": null - }, - "expected": { "outcome": "passed", "success": true, "exitCode": 0 } - }, - { - "name": "run without structured results fails on a non-zero exit", - "request": { - "termination": { "kind": "exited", "exitCode": 2 }, - "scope": "workspace" - }, - "expected": { "outcome": "exitedWithError", "success": false, "exitCode": 2 } - }, - { - "name": "timeout never claims a test outcome", - "request": { - "termination": { "kind": "timedOut" }, - "scope": "suite", - "summary": { "total": 4, "passed": 4 } - }, - "expected": { "outcome": "timedOut", "success": false, "exitCode": null } - }, - { - "name": "cancellation never claims a test outcome", - "request": { - "termination": { "kind": "cancelled" }, - "scope": "case", - "summary": { "total": 0 } - }, - "expected": { "outcome": "cancelled", "success": false, "exitCode": null } - } - ], - "rejected": [ - { - "name": "counts exceeding the total", - "request": { - "termination": { "kind": "exited", "exitCode": 0 }, - "scope": "suite", - "summary": { "total": 1, "passed": 2 } - } - }, - { - "name": "unknown termination kind", - "request": { - "termination": { "kind": "crashed" }, - "scope": "suite" - } - }, - { - "name": "tool-specific scope", - "request": { - "termination": { "kind": "exited", "exitCode": 0 }, - "scope": "surefireMethod" - } - } - ] -} diff --git a/shared/fixtures/community/discourse-auth-v1.json b/shared/fixtures/community/discourse-auth-v1.json deleted file mode 100644 index 2dc9276967..0000000000 --- a/shared/fixtures/community/discourse-auth-v1.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "version": 1, - "begin": { - "command": "community.discourse.auth.begin", - "payload": { - "origin": "https://linux.do", - "clientId": "app.lithe.linux-do", - "applicationName": "Lithe", - "authRedirect": "lithe://auth/linux-do", - "scopes": ["read", "session_info"] - }, - "expected": { - "authorizationPath": "/user-api-key/new", - "padding": "oaep", - "scopes": "read,session_info" - } - }, - "complete": { - "command": "community.discourse.auth.complete", - "payloadFields": ["flowId", "callbackUrl"], - "responseFields": ["apiVersion", "userApiKey"] - }, - "authenticatedCommands": [ - "community.discourse.auth.revoke", - "community.discourse.categories", - "community.discourse.search", - "community.discourse.topic", - "community.discourse.topics" - ], - "limits": { - "requestTimeoutSeconds": 30, - "responseBytes": 5242880 - } -} diff --git a/shared/fixtures/core/cancellation.json b/shared/fixtures/core/cancellation.json deleted file mode 100644 index a14a81308b..0000000000 --- a/shared/fixtures/core/cancellation.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "protocolVersion": 1, - "request": { - "id": "fixture-request", - "operationId": "fixture-operation", - "timeoutMilliseconds": 250, - "command": "workspace.search", - "payload": {} - }, - "expectedErrors": [ - { - "code": "cancelled", - "message": "Operation was cancelled" - }, - { - "code": "timed_out", - "message": "Operation timed out" - } - ] -} diff --git a/shared/fixtures/debug/adapter-endpoints-v1.json b/shared/fixtures/debug/adapter-endpoints-v1.json deleted file mode 100644 index 7525d809f3..0000000000 --- a/shared/fixtures/debug/adapter-endpoints-v1.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { "input": { "host": "127.0.0.1", "port": 5678 }, "remote": false }, - { "input": { "host": "127.8.9.10", "port": 1 }, "remote": false }, - { "input": { "host": "LocalHost", "port": 65535 }, "remote": false }, - { "input": { "host": "::1", "port": 5678 }, "remote": false }, - { "input": { "host": "2001:db8::1", "port": 5678 }, "remote": true }, - { "input": { "host": "::ffff:127.0.0.1", "port": 5678 }, "remote": true }, - { "input": { "host": "debug.example.org", "port": 5678 }, "remote": true }, - { "input": { "host": "localhost.example.org", "port": 5678 }, "remote": true }, - { "input": { "host": "10.0.0.5", "port": 5678 }, "remote": true }, - { "input": { "host": "0.0.0.0", "port": 5678 }, "remote": true }, - { "input": { "host": "", "port": 5678 } }, - { "input": { "host": "host", "port": 0 } }, - { "input": { "host": "host", "port": 65536 } }, - { "input": { "host": "host", "port": -1 } }, - { "input": { "host": "host", "port": 1.5 } }, - { "input": { "host": "host", "port": "5678" } }, - { "input": { "host": "user@host", "port": 5678 } }, - { "input": { "host": "http://host", "port": 5678 } }, - { "input": { "host": "[::1]", "port": 5678 } }, - { "input": { "host": "fe80::1%en0", "port": 5678 } }, - { "input": { "host": "host:5678", "port": 5678 } }, - { "input": { "host": "host/path", "port": 5678 } }, - { "input": { "host": "host name", "port": 5678 } }, - { "input": { "host": "-host", "port": 5678 } }, - { "input": { "host": "1.2.3", "port": 5678 } }, - { "input": { "host": "host", "port": 5678, "proxy": "unsupported" } }, - { "input": { "port": 5678 } }, - { "input": { "host": "host" } } - ] -} diff --git a/shared/fixtures/debug/adapter-selection-v1.json b/shared/fixtures/debug/adapter-selection-v1.json deleted file mode 100644 index b265a65b53..0000000000 --- a/shared/fixtures/debug/adapter-selection-v1.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "format": "litheDebugAdapterSelection", - "version": 1, - "providers": [ - { - "id": "c", - "displayName": "Default C", - "fileExtensions": [ - "c" - ], - "selectsByFile": true, - "requests": [ - "launch", - "attach" - ] - }, - { - "id": "dev.example.native/lldb", - "displayName": "Native", - "fileExtensions": [ - "c" - ], - "selectsByFile": false, - "requests": [ - "launch" - ] - }, - { - "id": "dev.example.attach/native", - "displayName": "Attach", - "fileExtensions": [ - "c" - ], - "selectsByFile": false, - "requests": [ - "attach" - ] - } - ], - "cases": [ - { - "id": "file-default", - "target": "main.c", - "configuration": { - "name": "file-default", - "request": "launch", - "arguments": {} - }, - "expectedProviderID": "c" - }, - { - "id": "qualified-file", - "target": "main.c", - "configuration": { - "name": "qualified-file", - "request": "launch", - "arguments": {}, - "adapterProviderID": "dev.example.native/lldb" - }, - "expectedProviderID": "dev.example.native/lldb" - }, - { - "id": "qualified-project", - "target": ".", - "configuration": { - "name": "qualified-project", - "request": "launch", - "arguments": {}, - "adapterProviderID": "dev.example.native/lldb" - }, - "expectedProviderID": "dev.example.native/lldb" - }, - { - "id": "missing-qualified", - "target": "main.c", - "configuration": { - "name": "missing-qualified", - "request": "launch", - "arguments": {}, - "adapterProviderID": "dev.example.missing/native" - }, - "error": "unavailable" - }, - { - "id": "empty-explicit", - "target": "main.c", - "configuration": { - "name": "empty-explicit", - "request": "launch", - "arguments": {}, - "adapterProviderID": "" - }, - "error": "unavailable" - }, - { - "id": "unsupported-request", - "target": "main.c", - "configuration": { - "name": "unsupported-request", - "request": "launch", - "arguments": {}, - "adapterProviderID": "dev.example.attach/native" - }, - "error": "unsupported" - }, - { - "id": "explicit-attach", - "target": ".", - "configuration": { - "name": "explicit-attach", - "request": "attach", - "arguments": {}, - "adapterProviderID": "dev.example.attach/native" - }, - "expectedProviderID": "dev.example.attach/native" - } - ] -} diff --git a/shared/fixtures/debug/breakpoint-binding-v1.json b/shared/fixtures/debug/breakpoint-binding-v1.json deleted file mode 100644 index 5048cb7677..0000000000 --- a/shared/fixtures/debug/breakpoint-binding-v1.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "version": 1, - "sourcePath": "/workspace/Example.java", - "requestedLine": 3, - "response": { - "id": 41, - "verified": false, - "line": 5, - "message": "Class not loaded" - }, - "changed": { - "id": 41, - "verified": true - }, - "expected": { - "requestedLine": 3, - "line": 5, - "sourcePath": "/workspace/Example.java", - "verified": true - } -} diff --git a/shared/fixtures/debug/breakpoint-relocation-v1.json b/shared/fixtures/debug/breakpoint-relocation-v1.json deleted file mode 100644 index bc70d80231..0000000000 --- a/shared/fixtures/debug/breakpoint-relocation-v1.json +++ /dev/null @@ -1,387 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "inserted line moves breakpoint with statement", - "payload": { - "source": "class Main {\n void run() {}\n}\n", - "edit": { - "startUtf16Offset": 13, - "endUtf16Offset": 13, - "replacement": "\n" - }, - "breakpoints": [ - { - "line": 2, - "column": null, - "enabled": true, - "condition": "ready", - "hitCondition": "3", - "logMessage": null - } - ] - }, - "expected": { - "breakpoints": [ - { - "line": 3, - "column": null, - "enabled": true, - "condition": "ready", - "hitCondition": "3", - "logMessage": null - } - ], - "originalIndices": [ - 0 - ] - } - }, - { - "name": "delete preceding line", - "payload": { - "source": "first();\nrun();\n", - "edit": { - "startUtf16Offset": 0, - "endUtf16Offset": 9, - "replacement": "" - }, - "breakpoints": [ - { - "line": 2, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ] - }, - "expected": { - "breakpoints": [ - { - "line": 1, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ], - "originalIndices": [ - 0 - ] - } - }, - { - "name": "Chinese emoji CRLF insertion", - "payload": { - "source": "中文😀\r\nrun();\r\n", - "edit": { - "startUtf16Offset": 6, - "endUtf16Offset": 6, - "replacement": "新😀\r\n" - }, - "breakpoints": [ - { - "line": 2, - "column": null, - "enabled": false, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ] - }, - "expected": { - "breakpoints": [ - { - "line": 3, - "column": null, - "enabled": false, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ], - "originalIndices": [ - 0 - ] - } - }, - { - "name": "edit after anchor keeps line", - "payload": { - "source": "run();\n", - "edit": { - "startUtf16Offset": 3, - "endUtf16Offset": 3, - "replacement": "Next" - }, - "breakpoints": [ - { - "line": 1, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ] - }, - "expected": { - "breakpoints": [ - { - "line": 1, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ], - "originalIndices": [ - 0 - ] - } - }, - { - "name": "deletion collapses anchors and keeps surviving state", - "payload": { - "source": "first();\nrun();\n", - "edit": { - "startUtf16Offset": 0, - "endUtf16Offset": 9, - "replacement": "" - }, - "breakpoints": [ - { - "line": 1, - "column": null, - "enabled": false, - "condition": null, - "hitCondition": null, - "logMessage": null - }, - { - "line": 2, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ] - }, - "expected": { - "breakpoints": [ - { - "line": 1, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ], - "originalIndices": [ - 1 - ] - } - }, - { - "name": "insert two lines before breakpoint", - "payload": { - "source": "run();\n", - "edit": { - "startUtf16Offset": 0, - "endUtf16Offset": 0, - "replacement": "first();\nsecond();\n" - }, - "breakpoints": [ - { - "line": 1, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ] - }, - "expected": { - "breakpoints": [ - { - "line": 3, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ], - "originalIndices": [ - 0 - ] - } - }, - { - "name": "survivor indices follow sorted relocated positions", - "payload": { - "source": "a\nb\nc", - "edit": { - "startUtf16Offset": 0, - "endUtf16Offset": 0, - "replacement": "\n" - }, - "breakpoints": [ - { - "line": 3, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - }, - { - "line": 1, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ] - }, - "expected": { - "breakpoints": [ - { - "line": 2, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - }, - { - "line": 4, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ], - "originalIndices": [ - 1, - 0 - ] - } - }, - { - "name": "sequential edits preserve survivor identity", - "payload": { - "source": "first();\nrun();\n", - "edit": { - "startUtf16Offset": 0, - "endUtf16Offset": 9, - "replacement": "" - }, - "editBatches": [ - [ - { - "startUtf16Offset": 0, - "endUtf16Offset": 0, - "replacement": "\n" - } - ] - ], - "breakpoints": [ - { - "line": 1, - "column": null, - "enabled": false, - "condition": null, - "hitCondition": null, - "logMessage": null - }, - { - "line": 2, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ] - }, - "expected": { - "breakpoints": [ - { - "line": 2, - "column": null, - "enabled": true, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ], - "originalIndices": [ - 1 - ] - } - }, - { - "name": "sequential UTF-16 CRLF edits preserve lines", - "payload": { - "source": "中😀\r\nrun();\r\n", - "edit": { - "startUtf16Offset": 0, - "endUtf16Offset": 0, - "replacement": "\n" - }, - "editBatches": [ - [ - { - "startUtf16Offset": 6, - "endUtf16Offset": 6, - "replacement": " " - } - ], - [ - { - "startUtf16Offset": 0, - "endUtf16Offset": 0, - "replacement": "x\n" - } - ] - ], - "breakpoints": [ - { - "line": 2, - "column": null, - "enabled": false, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ] - }, - "expected": { - "breakpoints": [ - { - "line": 4, - "column": null, - "enabled": false, - "condition": null, - "hitCondition": null, - "logMessage": null - } - ], - "originalIndices": [ - 0 - ] - } - } - ] -} diff --git a/shared/fixtures/debug/dap-session-v1.json b/shared/fixtures/debug/dap-session-v1.json deleted file mode 100644 index 89278e05ac..0000000000 --- a/shared/fixtures/debug/dap-session-v1.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "version": 1, - "session": { - "sessionId": "contract-debug-session", - "adapterId": "java", - "rootPath": "/workspace" - }, - "launch": { - "operationId": "launch-main", - "configuration": { - "name": "Main", - "request": "launch", - "arguments": { - "mainClass": "example.Main" - } - } - }, - "breakpoints": { - "sourcePath": "/workspace/src/main/java/example/Main.java", - "values": [ - { - "line": 12, - "enabled": true, - "condition": "value > 1", - "hitCondition": "3", - "logMessage": "value = {value}" - }, - { - "line": 14, - "enabled": false - } - ] - }, - "exceptionBreakpoints": { - "values": [ - { - "filter": "caught", - "enabled": true, - "condition": "example.CustomException" - }, - { - "filter": "uncaught", - "enabled": false - } - ] - }, - "functionBreakpoints": { - "values": [ - { - "name": "example.Main.run", - "enabled": true, - "condition": "ready", - "hitCondition": "2" - }, - { - "name": "example.Main.skip", - "enabled": false - } - ] - }, - "dataBreakpointInfo": { - "operationId": "field-count", - "name": "count", - "variablesReference": 42, - "frameId": 7 - }, - "dataBreakpoints": { - "values": [ - { - "dataId": "field:count", - "label": "Main.count", - "enabled": true, - "accessType": "write", - "condition": "count > 1", - "hitCondition": "2" - } - ] - }, - "setVariable": { - "operationId": "set-count", - "variablesReference": 42, - "name": "count", - "value": "7" - }, - "adapterMessages": { - "initializeResponse": { - "seq": 101, - "type": "response", - "request_seq": 1, - "success": true, - "command": "initialize", - "body": { - "supportsConfigurationDoneRequest": true, - "supportsConditionalBreakpoints": true, - "supportsHitConditionalBreakpoints": true, - "supportsLogPoints": true, - "supportsFunctionBreakpoints": true, - "supportsDataBreakpoints": true, - "supportsSetVariable": true, - "supportsCancelRequest": true, - "supportsSingleThreadExecutionRequests": true, - "supportsRestartRequest": true, - "supportsExceptionInfoRequest": true, - "supportsExceptionFilterOptions": true, - "exceptionBreakpointFilters": [ - { - "filter": "caught", - "label": "Caught Exceptions", - "default": false, - "supportsCondition": true - }, - { - "filter": "uncaught", - "label": "Uncaught Exceptions", - "default": true, - "supportsCondition": false - } - ] - } - }, - "initializedEvent": { - "seq": 102, - "type": "event", - "event": "initialized" - } - }, - "expected": { - "createState": "initializing", - "createCommand": "initialize", - "postInitializeState": "launching", - "postInitializeCommand": "launch", - "configurationCommands": [ - "setExceptionBreakpoints", - "setFunctionBreakpoints", - "setDataBreakpoints", - "setBreakpoints", - "configurationDone" - ] - } -} diff --git a/shared/fixtures/debug/disassembly-paging-v1.json b/shared/fixtures/debug/disassembly-paging-v1.json deleted file mode 100644 index 61c4b47814..0000000000 --- a/shared/fixtures/debug/disassembly-paging-v1.json +++ /dev/null @@ -1,868 +0,0 @@ -{ - "version": 1, - "description": "debug.planDisassemblyWindow / debug.reduceDisassemblyPage: the bounded request sequence a disassembly fetch sends and the step after every adapter reply. 'rejected' is an adapter response with success=false; 'failed' is a transport failure, timeout or cancellation.", - "scenarios": [ - { - "name": "first window drops adapter padding", - "plan": { - "direction": "around", - "reference": "0x19b5f2a4c", - "count": 96, - "instructionsBefore": 24 - }, - "steps": [ - { - "request": { - "memoryReference": "0x19b5f2a4c", - "instructionOffset": -24, - "instructionCount": 96 - }, - "reply": { - "kind": "instructions", - "instructions": [ - { - "address": "0x19b5f2a48", - "instruction": "mov x16, #0x148" - }, - { - "address": "0x19b5f2a4c", - "instruction": "svc #0x80" - }, - { - "address": "0xffffffffffffffff", - "instruction": "" - } - ] - }, - "expected": { - "kind": "page", - "keep": [ - 0, - 1 - ], - "exhausted": false - } - } - ] - }, - { - "name": "first window refused at a negative offset retries from the instruction pointer", - "plan": { - "direction": "around", - "reference": "0x19b5f2a4c", - "count": 96, - "instructionsBefore": 24 - }, - "steps": [ - { - "request": { - "memoryReference": "0x19b5f2a4c", - "instructionOffset": -24, - "instructionCount": 96 - }, - "reply": { - "kind": "failed", - "message": "negative offsets are not supported" - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x19b5f2a4c", - "instructionOffset": 0, - "instructionCount": 96 - }, - "reply": { - "kind": "instructions", - "instructions": [ - { - "address": "0x19b5f2a4c", - "instruction": "svc #0x80" - } - ] - }, - "expected": { - "kind": "page", - "keep": [ - 0 - ], - "exhausted": false - } - } - ] - }, - { - "name": "retried first window failure is reported", - "plan": { - "direction": "around", - "reference": "0x10", - "count": 96, - "instructionsBefore": 24 - }, - "steps": [ - { - "request": { - "memoryReference": "0x10", - "instructionOffset": -24, - "instructionCount": 96 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x10", - "instructionOffset": 0, - "instructionCount": 96 - }, - "reply": { - "kind": "rejected", - "message": "Could not read memory" - }, - "expected": { - "kind": "failed", - "message": "Could not read memory" - } - } - ] - }, - { - "name": "repeated edge in another spelling exhausts the direction", - "plan": { - "direction": "before", - "reference": "0x19b5f2a4c", - "count": 64 - }, - "knownAddresses": [ - "0x19b5f2a4c" - ], - "steps": [ - { - "request": { - "memoryReference": "0x19b5f2a4c", - "instructionOffset": -64, - "instructionCount": 64 - }, - "reply": { - "kind": "instructions", - "instructions": [ - { - "address": "0x000019b5f2a4c", - "instruction": "svc #0x80" - } - ] - }, - "expected": { - "kind": "page", - "keep": [], - "exhausted": true - } - } - ] - }, - { - "name": "duplicates within a page are listed once", - "plan": { - "direction": "after", - "reference": "0x19b5f2a4c", - "count": 64 - }, - "knownAddresses": [ - "0x19b5f2a4c" - ], - "steps": [ - { - "request": { - "memoryReference": "0x19b5f2a4c", - "instructionOffset": 1, - "instructionCount": 64 - }, - "reply": { - "kind": "instructions", - "instructions": [ - { - "address": "0x19b5f2a50", - "instruction": "ret" - }, - { - "address": "0x19b5f2a50", - "instruction": "ret" - } - ] - }, - "expected": { - "kind": "page", - "keep": [ - 0 - ], - "exhausted": false - } - } - ] - }, - { - "name": "before: a refused page shrinks without skipping readable neighbours", - "plan": { - "direction": "before", - "reference": "0x100000014", - "count": 64 - }, - "knownAddresses": [ - "0x100000014" - ], - "steps": [ - { - "request": { - "memoryReference": "0x100000014", - "instructionOffset": -64, - "instructionCount": 64 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000014", - "instructionOffset": -32, - "instructionCount": 32 - }, - "reply": { - "kind": "instructions", - "instructions": [ - { - "address": "0x100000010", - "instruction": "nop" - }, - { - "address": "0xffffffffffffffff", - "instruction": "" - } - ] - }, - "expected": { - "kind": "page", - "keep": [ - 0 - ], - "exhausted": false - } - } - ] - }, - { - "name": "before: a mapping boundary ends the direction only after the known edge is verified", - "plan": { - "direction": "before", - "reference": "0x100000000", - "count": 64 - }, - "knownAddresses": [ - "0x100000000" - ], - "steps": [ - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -64, - "instructionCount": 64 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -32, - "instructionCount": 32 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -16, - "instructionCount": 16 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -8, - "instructionCount": 8 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -4, - "instructionCount": 4 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -2, - "instructionCount": 2 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -1, - "instructionCount": 1 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": 0, - "instructionCount": 1 - }, - "reply": { - "kind": "instructions", - "instructions": [ - { - "address": "0x0000000100000000", - "instruction": "; _mh_execute_header" - } - ] - }, - "expected": { - "kind": "page", - "keep": [], - "exhausted": true - } - } - ] - }, - { - "name": "after: a refused page shrinks without skipping readable neighbours", - "plan": { - "direction": "after", - "reference": "0x100000014", - "count": 64 - }, - "knownAddresses": [ - "0x100000014" - ], - "steps": [ - { - "request": { - "memoryReference": "0x100000014", - "instructionOffset": 1, - "instructionCount": 64 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000014", - "instructionOffset": 1, - "instructionCount": 32 - }, - "reply": { - "kind": "instructions", - "instructions": [ - { - "address": "0x100000018", - "instruction": "nop" - }, - { - "address": "0xffffffffffffffff", - "instruction": "" - } - ] - }, - "expected": { - "kind": "page", - "keep": [ - 0 - ], - "exhausted": false - } - } - ] - }, - { - "name": "after: a mapping boundary ends the direction only after the known edge is verified", - "plan": { - "direction": "after", - "reference": "0x100000000", - "count": 64 - }, - "knownAddresses": [ - "0x100000000" - ], - "steps": [ - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": 1, - "instructionCount": 64 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": 1, - "instructionCount": 32 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": 1, - "instructionCount": 16 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": 1, - "instructionCount": 8 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": 1, - "instructionCount": 4 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": 1, - "instructionCount": 2 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": 1, - "instructionCount": 1 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": 0, - "instructionCount": 1 - }, - "reply": { - "kind": "instructions", - "instructions": [ - { - "address": "0x0000000100000000", - "instruction": "; _mh_execute_header" - } - ] - }, - "expected": { - "kind": "page", - "keep": [], - "exhausted": true - } - } - ] - }, - { - "name": "an edge probe that does not return the edge reports the refused window", - "plan": { - "direction": "before", - "reference": "0x100000000", - "count": 64 - }, - "knownAddresses": [ - "0x100000000" - ], - "steps": [ - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -64, - "instructionCount": 64 - }, - "reply": { - "kind": "rejected", - "message": "Could not decode the requested window" - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -32, - "instructionCount": 32 - }, - "reply": { - "kind": "rejected", - "message": "Could not decode the requested window" - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -16, - "instructionCount": 16 - }, - "reply": { - "kind": "rejected", - "message": "Could not decode the requested window" - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -8, - "instructionCount": 8 - }, - "reply": { - "kind": "rejected", - "message": "Could not decode the requested window" - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -4, - "instructionCount": 4 - }, - "reply": { - "kind": "rejected", - "message": "Could not decode the requested window" - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -2, - "instructionCount": 2 - }, - "reply": { - "kind": "rejected", - "message": "Could not decode the requested window" - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -1, - "instructionCount": 1 - }, - "reply": { - "kind": "rejected", - "message": "Could not decode the requested window" - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": 0, - "instructionCount": 1 - }, - "reply": { - "kind": "instructions", - "instructions": [ - { - "address": "0x200000000", - "instruction": "nop" - } - ] - }, - "expected": { - "kind": "failed", - "message": "Could not decode the requested window" - } - } - ] - }, - { - "name": "a failed edge probe is reported instead of exhausting the listing", - "plan": { - "direction": "before", - "reference": "0x100000000", - "count": 64 - }, - "knownAddresses": [ - "0x100000000" - ], - "steps": [ - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -64, - "instructionCount": 64 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -32, - "instructionCount": 32 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -16, - "instructionCount": 16 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -8, - "instructionCount": 8 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -4, - "instructionCount": 4 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -2, - "instructionCount": 2 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -1, - "instructionCount": 1 - }, - "reply": { - "kind": "rejected", - "message": "Unexpected error while disassembling instructions." - }, - "expected": { - "kind": "request" - } - }, - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": 0, - "instructionCount": 1 - }, - "reply": { - "kind": "failed", - "message": "The request timed out." - }, - "expected": { - "kind": "failed", - "message": "The request timed out." - } - } - ] - }, - { - "name": "transport failures are not mistaken for mapping boundaries", - "plan": { - "direction": "before", - "reference": "0x100000000", - "count": 64 - }, - "knownAddresses": [ - "0x100000000" - ], - "steps": [ - { - "request": { - "memoryReference": "0x100000000", - "instructionOffset": -64, - "instructionCount": 64 - }, - "reply": { - "kind": "failed", - "message": "The request timed out." - }, - "expected": { - "kind": "failed", - "message": "The request timed out." - } - } - ] - } - ] -} diff --git a/shared/fixtures/debug/disconnect-policy-v1.json b/shared/fixtures/debug/disconnect-policy-v1.json deleted file mode 100644 index 386652db72..0000000000 --- a/shared/fixtures/debug/disconnect-policy-v1.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "local launch owns the debuggee", - "request": "launch", - "expectedArguments": { - "restart": false, - "terminateDebuggee": true - } - }, - { - "name": "remote attach does not own the debuggee", - "request": "attach", - "expectedArguments": { - "restart": false, - "terminateDebuggee": false - } - }, - { - "name": "unstarted session has no debuggee ownership", - "request": null, - "expectedArguments": { - "restart": false, - "terminateDebuggee": false - } - } - ] -} diff --git a/shared/fixtures/debug/exception-info-v1.json b/shared/fixtures/debug/exception-info-v1.json deleted file mode 100644 index c7810523c7..0000000000 --- a/shared/fixtures/debug/exception-info-v1.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "version": 1, - "request": { - "operationId": "exception-main", - "threadId": 13 - }, - "adapterResponse": { - "exceptionId": "java.lang.IllegalStateException", - "description": "java.lang.IllegalStateException: session expired", - "breakMode": "always", - "details": { - "message": "session expired", - "typeName": "IllegalStateException", - "fullTypeName": "java.lang.IllegalStateException", - "evaluateName": "exception", - "stackTrace": "java.lang.IllegalStateException: session expired\n\tat example.LoginService.login(LoginService.java:42)", - "innerException": [ - { - "message": "token expired", - "typeName": "TokenExpiredException", - "fullTypeName": "example.TokenExpiredException" - } - ] - } - }, - "expected": { - "kind": "exceptionInfo", - "exceptionInfo": { - "exceptionId": "java.lang.IllegalStateException", - "description": "java.lang.IllegalStateException: session expired", - "breakMode": "always", - "details": { - "message": "session expired", - "typeName": "IllegalStateException", - "fullTypeName": "java.lang.IllegalStateException", - "evaluateName": "exception", - "stackTrace": "java.lang.IllegalStateException: session expired\n\tat example.LoginService.login(LoginService.java:42)", - "innerExceptions": [ - { - "message": "token expired", - "typeName": "TokenExpiredException", - "fullTypeName": "example.TokenExpiredException", - "evaluateName": null, - "stackTrace": null, - "innerExceptions": [] - } - ] - } - } - } -} diff --git a/shared/fixtures/debug/hot-code-replace-v1.json b/shared/fixtures/debug/hot-code-replace-v1.json deleted file mode 100644 index fa36df2d86..0000000000 --- a/shared/fixtures/debug/hot-code-replace-v1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - {"name":"replacement", "body":{"changedClasses":["b.B","a.A","b.B"]}, "result":{"kind":"redefineClasses","changedClasses":["a.A","b.B"]}}, - {"name":"no changes", "body":{"changedClasses":[]}, "result":{"kind":"redefineClasses","changedClasses":[]}}, - {"name":"DAP success with JVM failure", "body":{"changedClasses":[],"errorMessage":"Schema change not supported"}, "failure":true}, - {"name":"missing result", "body":{}, "failure":true}, - {"name":"invalid class name", "body":{"changedClasses":[3]}, "failure":true} - ] -} diff --git a/shared/fixtures/debug/launch-event-order.json b/shared/fixtures/debug/launch-event-order.json deleted file mode 100644 index 52200d28a5..0000000000 --- a/shared/fixtures/debug/launch-event-order.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "cases": [ - { - "id": "late-launch-paused", - "event": { - "type": "event", - "event": "stopped", - "body": { - "reason": "breakpoint", - "threadId": 1 - } - }, - "state": "paused" - }, - { - "id": "late-launch-ended", - "event": { - "type": "event", - "event": "terminated", - "body": {} - }, - "state": "terminated" - } - ] -} diff --git a/shared/fixtures/debug/memory-window-v1.json b/shared/fixtures/debug/memory-window-v1.json deleted file mode 100644 index cec35d9e42..0000000000 --- a/shared/fixtures/debug/memory-window-v1.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "description": "debug.planMemoryWindow places the memory view's readMemory window at an address; debug.locateMemoryWindow finds where each reply's bytes start and which of them is at the address read. A number (0x hexadecimal or decimal) is read from the multiple of 64 at or below it; any other reference is opaque and read from where it points. Addresses are strings because a 64-bit address can exceed the JavaScript safe integer range.", - "scenarios": [ - { - "name": "hexadecimal address inside an aligned row", - "address": "0x2010", - "window": { - "address": "0x2010", - "request": { "memoryReference": "0x2010", "offset": -16, "count": 1024 } - }, - "replies": [ - { "start": "0x2000", "length": 1024, "expected": { "base": "0x2000", "mark": 16 } }, - { "length": 1024, "expected": { "base": "0x2000", "mark": 16 } }, - { "start": "0x2008", "length": 1024, "expected": { "base": "0x2008", "mark": 8 } }, - { "start": "0x2000", "length": 8, "expected": { "base": "0x2000" } }, - { "start": "0x2020", "length": 1024, "expected": { "base": "0x2020" } } - ] - }, - { - "name": "decimal address and decimal reply start", - "address": "8208", - "window": { - "address": "0x2010", - "request": { "memoryReference": "0x2010", "offset": -16, "count": 1024 } - }, - "replies": [ - { "start": "8192", "length": 1024, "expected": { "base": "0x2000", "mark": 16 } } - ] - }, - { - "name": "uppercase prefix, padding and surrounding spaces", - "address": " 0X0000ABCD ", - "window": { - "address": "0xabcd", - "request": { "memoryReference": "0xabcd", "offset": -13, "count": 1024 } - }, - "replies": [ - { "start": "0x000000000000ABC0", "length": 1024, "expected": { "base": "0xabc0", "mark": 13 } } - ] - }, - { - "name": "opaque reference is read from where it points", - "address": "frame:3:ip", - "window": { - "address": "frame:3:ip", - "request": { "memoryReference": "frame:3:ip", "offset": 0, "count": 1024 } - }, - "replies": [ - { "start": "0x7ff0", "length": 1024, "expected": { "base": "0x7ff0", "mark": 0 } }, - { "length": 1024, "expected": { "mark": 0 } }, - { "length": 0, "expected": {} } - ] - }, - { - "name": "address zero", - "address": "0", - "window": { - "address": "0x0", - "request": { "memoryReference": "0x0", "offset": 0, "count": 1024 } - }, - "replies": [ - { "length": 0, "expected": { "base": "0x0" } }, - { "length": 1024, "expected": { "base": "0x0", "mark": 0 } } - ] - }, - { - "name": "highest 64-bit address", - "address": "0xffffffffffffffff", - "window": { - "address": "0xffffffffffffffff", - "request": { "memoryReference": "0xffffffffffffffff", "offset": -63, "count": 1024 } - }, - "replies": [ - { "start": "0xffffffffffffffc0", "length": 64, "expected": { "base": "0xffffffffffffffc0", "mark": 63 } } - ] - } - ] -} diff --git a/shared/fixtures/debug/node-source-map-v1.json b/shared/fixtures/debug/node-source-map-v1.json deleted file mode 100644 index 1fa50958f8..0000000000 --- a/shared/fixtures/debug/node-source-map-v1.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "version": 1, - "note": "A Node adapter maps TypeScript sources to generated JavaScript itself. Core must pass the TypeScript path through unchanged in both directions and keep the requested line when the adapter resolves a different one.", - "sourcePath": "/workspace/src/app.ts", - "requestedLine": 10, - "response": { - "id": 51, - "verified": true, - "line": 12, - "source": {"path": "/workspace/src/app.ts"} - }, - "expectedBreakpoint": { - "sourcePath": "/workspace/src/app.ts", - "requestedLine": 10, - "line": 12, - "verified": true - }, - "stackFrames": [ - { - "id": 1, - "name": "handler", - "source": {"path": "/workspace/src/app.ts", "origin": "inlined content from source map"}, - "line": 12, - "column": 3 - } - ], - "expectedFrame": {"sourcePath": "/workspace/src/app.ts", "line": 12, "column": 3} -} diff --git a/shared/fixtures/debug/projection-v2-examples.json b/shared/fixtures/debug/projection-v2-examples.json deleted file mode 100644 index d6591624ff..0000000000 --- a/shared/fixtures/debug/projection-v2-examples.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "description": "Shared debug session projection v2 regression inputs for Rust Core and macOS decoding tests. accept entries must decode and round-trip unchanged in Core; reject entries must fail decoding or validation. Semantic rules (supported equals the conjunction, stale generations are dropped) belong to Core tests.", - "accept": [ - { - "name": "source frame and no-source assembly frame on one thread", - "value": { - "projectionVersion": 2, - "sessionID": "s-1", - "stopGeneration": 3, - "projection": { - "kind": "stackTrace", - "threadID": 1, - "frames": [ - { - "id": "f-0", - "name": "parse_header", - "source": { "kind": "workspace", "path": "src/parse.c" }, - "line": 42, - "column": 5, - "instructionPointerReference": "0x0000000100003f2c" - }, - { - "id": "f-1", - "name": "memcpy", - "instructionPointerReference": "0xffffffff81002a10", - "presentationHint": "subtle" - } - ], - "totalFrames": 2 - } - } - }, - { - "name": "session-bound decompiled source", - "value": { - "projectionVersion": 2, - "sessionID": "s-2", - "stopGeneration": 1, - "projection": { - "kind": "stackTrace", - "threadID": 17, - "frames": [ - { - "id": "f-0", - "name": "ArrayList.add", - "source": { "kind": "session", "sourceReference": 1001, "name": "ArrayList.class", "origin": "decompiled" }, - "line": 467, - "column": 1 - } - ] - } - } - }, - { - "name": "registers scope and unknown presentation hint", - "value": { - "projectionVersion": 2, - "sessionID": "s-1", - "stopGeneration": 3, - "projection": { - "kind": "scopes", - "frameID": "f-1", - "scopes": [ - { "name": "Locals", "presentationHint": "locals", "variablesReference": 11, "expensive": false }, - { "name": "General Purpose Registers", "presentationHint": "registers", "variablesReference": 12, "namedVariables": 33, "expensive": true }, - { "name": "Vector", "presentationHint": "x-vendor-simd", "variablesReference": 13, "expensive": true } - ] - } - } - }, - { - "name": "capability snapshot with read-only memory and no write extension", - "value": { - "projectionVersion": 2, - "sessionID": "s-1", - "stopGeneration": 0, - "projection": { - "kind": "capabilities", - "revision": 2, - "capabilities": { - "supportsConfigurationDoneRequest": { "adapter": true, "extension": true, "authorized": true, "supported": true }, - "supportsDisassembleRequest": { "adapter": true, "extension": true, "authorized": true, "supported": true }, - "supportsReadMemoryRequest": { "adapter": true, "extension": true, "authorized": true, "supported": true }, - "supportsWriteMemoryRequest": { "adapter": true, "extension": false, "authorized": true, "supported": false } - } - } - } - } - ], - "reject": [ - { - "name": "address as JSON number loses precision", - "value": { - "projectionVersion": 2, - "sessionID": "s-1", - "stopGeneration": 3, - "projection": { - "kind": "stackTrace", - "threadID": 1, - "frames": [{ "id": "f-1", "name": "memcpy", "instructionPointerReference": 18446744071562078736 }] - } - } - }, - { - "name": "line without source fakes a location", - "value": { - "projectionVersion": 2, - "sessionID": "s-1", - "stopGeneration": 3, - "projection": { - "kind": "stackTrace", - "threadID": 1, - "frames": [{ "id": "f-1", "name": "memcpy", "line": 1 }] - } - } - }, - { - "name": "two source identities at once", - "value": { - "projectionVersion": 2, - "sessionID": "s-2", - "stopGeneration": 1, - "projection": { - "kind": "stackTrace", - "threadID": 1, - "frames": [{ "id": "f-0", "name": "m", "source": { "kind": "workspace", "path": "a.java", "sourceReference": 3 } }] - } - } - }, - { - "name": "workspace path escapes the workspace", - "value": { - "projectionVersion": 2, - "sessionID": "s-2", - "stopGeneration": 1, - "projection": { - "kind": "stackTrace", - "threadID": 1, - "frames": [{ "id": "f-0", "name": "m", "source": { "kind": "workspace", "path": "src/../../etc/passwd" }, "line": 1 }] - } - } - }, - { - "name": "projection without stop generation", - "value": { - "projectionVersion": 2, - "sessionID": "s-1", - "projection": { "kind": "scopes", "frameID": "f-0", "scopes": [] } - } - } - ] -} diff --git a/shared/fixtures/debug/run-in-terminal-v1.json b/shared/fixtures/debug/run-in-terminal-v1.json deleted file mode 100644 index 06d95d23d5..0000000000 --- a/shared/fixtures/debug/run-in-terminal-v1.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "version": 1, - "adapterRequest": { - "seq": 44, - "type": "request", - "command": "runInTerminal", - "arguments": { - "kind": "integrated", - "title": "Debug Main", - "cwd": "/workspace/service", - "args": [ - "/opt/jdk/bin/java", - "-cp", - "/workspace/service/classes", - "example.Main" - ], - "env": { - "JAVA_HOME": "/opt/jdk", - "LITHE_REMOVE_ME": null - }, - "argsCanBeInterpretedByShell": false - } - }, - "expectedRequest": { - "kind": "integrated", - "title": "Debug Main", - "cwd": "/workspace/service", - "args": [ - "/opt/jdk/bin/java", - "-cp", - "/workspace/service/classes", - "example.Main" - ], - "environment": [ - { - "name": "JAVA_HOME", - "value": "/opt/jdk" - }, - { - "name": "LITHE_REMOVE_ME", - "value": null - } - ], - "argsCanBeInterpretedByShell": false - }, - "successResponse": { - "processId": 4242, - "shellProcessId": null - }, - "expectedSuccessBody": { - "processId": 4242 - }, - "failureMessage": "The integrated terminal is unavailable." -} diff --git a/shared/fixtures/debug/stale-reference-v1.json b/shared/fixtures/debug/stale-reference-v1.json deleted file mode 100644 index d9745ba8ec..0000000000 --- a/shared/fixtures/debug/stale-reference-v1.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "version": 1, - "description": "A reference-bound reply that arrives after a newer stop must fail as StaleReference; a reply issued under the current stop still completes.", - "staleOperationId": "old", - "freshOperationId": "fresh", - "evaluateResponseBody": {"result": "3"}, - "expectedFailureCode": "staleReference" -} diff --git a/shared/fixtures/debug/start-debugging-v1.json b/shared/fixtures/debug/start-debugging-v1.json deleted file mode 100644 index 1da4716f3c..0000000000 --- a/shared/fixtures/debug/start-debugging-v1.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "version": 1, - "adapterRequest": { - "seq": 61, - "type": "request", - "command": "startDebugging", - "arguments": { - "request": "attach", - "configuration": { - "type": "pwa-node", - "name": "Worker 1", - "request": "attach", - "__pendingTargetId": "target-7", - "port": 9230 - } - } - }, - "expectedRequest": { - "request": "attach", - "configuration": { - "type": "pwa-node", - "name": "Worker 1", - "__pendingTargetId": "target-7", - "port": 9230 - } - }, - "failureMessage": "The child debug transport could not be opened." -} diff --git a/shared/fixtures/debug/stepping-filters-v1.json b/shared/fixtures/debug/stepping-filters-v1.json deleted file mode 100644 index 99d9c85ece..0000000000 --- a/shared/fixtures/debug/stepping-filters-v1.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "unknown-adapter-is-unfiltered", - "payload": { - "adapterId": "go" - }, - "expected": { - "classNameFilters": [], - "skipSynthetics": false, - "skipStaticInitializers": false, - "skipConstructors": false, - "hideFilteredStackFrames": false - } - }, - { - "name": "unknown-adapter-empty-override-stays-unfiltered", - "payload": { - "adapterId": "python", - "filters": {} - }, - "expected": { - "classNameFilters": [], - "skipSynthetics": false, - "skipStaticInitializers": false, - "skipConstructors": false, - "hideFilteredStackFrames": false - } - } - ] -} diff --git a/shared/fixtures/debug/transport-lifecycle-v1.json b/shared/fixtures/debug/transport-lifecycle-v1.json deleted file mode 100644 index 78c8d3910e..0000000000 --- a/shared/fixtures/debug/transport-lifecycle-v1.json +++ /dev/null @@ -1,3149 +0,0 @@ -{ - "version": 1, - "description": "Scripted byte-stream lifecycle scenarios. Each step feeds one event to a fresh transport and expects the exact step Core answers with. Timer ids are allocated 1, 2, ... per transport and never reused; write ids likewise. Platform adapters reuse these scenarios to prove they execute the effects Core returns.", - "scenarios": [ - { - "name": "frames queued during discovery flush once connected, then a clean EOF terminates with 0", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 10 - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "dataReceived", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "deliverData" - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - }, - { - "kind": "armTimer", - "timerId": 3, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 1, - "bytes": 10 - } - ] - } - }, - { - "event": { - "type": "dataReceived", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "deliverData" - } - ] - } - }, - { - "event": { - "type": "writeCompleted", - "generation": 1, - "writeId": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 3 - } - ] - } - }, - { - "event": { - "type": "peerClosed", - "generation": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "close" - }, - { - "kind": "notifyTermination", - "exitCode": 0 - } - ] - } - }, - { - "event": { - "type": "dataReceived", - "generation": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "peerClosed", - "generation": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - } - ] - }, - { - "name": "discovery that never finds an endpoint times out once", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "close" - }, - { - "kind": "reportFailure", - "reason": "startupTimedOut" - }, - { - "kind": "notifyTermination", - "exitCode": 1 - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - } - ] - }, - { - "name": "a connect that never completes times out on its own budget, not the discovery remainder", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 1 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 2 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "close" - }, - { - "kind": "reportFailure", - "reason": "startupTimedOut" - }, - { - "kind": "notifyTermination", - "exitCode": 1 - } - ] - } - } - ] - }, - { - "name": "a connect failure reports the host message and terminates with 1", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "failed", - "generation": 1, - "message": "connection refused" - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - }, - { - "kind": "close" - }, - { - "kind": "reportFailure", - "reason": "host", - "message": "connection refused" - }, - { - "kind": "notifyTermination", - "exitCode": 1 - } - ] - } - }, - { - "event": { - "type": "failed", - "generation": 1, - "message": "late" - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - } - ] - }, - { - "name": "a port above 65535 from the provider fails before any connect", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 70000 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "close" - }, - { - "kind": "reportFailure", - "reason": "invalidEndpoint" - }, - { - "kind": "notifyTermination", - "exitCode": 1 - } - ] - } - } - ] - }, - { - "name": "port zero from the provider fails before any connect", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 0 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "close" - }, - { - "kind": "reportFailure", - "reason": "invalidEndpoint" - }, - { - "kind": "notifyTermination", - "exitCode": 1 - } - ] - } - } - ] - }, - { - "name": "a negative port from the provider fails before any connect", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": -1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "close" - }, - { - "kind": "reportFailure", - "reason": "invalidEndpoint" - }, - { - "kind": "notifyTermination", - "exitCode": 1 - } - ] - } - } - ] - }, - { - "name": "an empty host from the provider fails before any connect", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "", - "port": 5005 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "close" - }, - { - "kind": "reportFailure", - "reason": "invalidEndpoint" - }, - { - "kind": "notifyTermination", - "exitCode": 1 - } - ] - } - } - ] - }, - { - "name": "an endpoint reported twice or for a stale generation is ignored", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 9, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 9 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "ignored", - "effects": [] - } - } - ] - }, - { - "name": "a cancelled startup timer that fires anyway cannot fail a ready stream", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 2 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "ignored", - "effects": [] - } - } - ] - }, - { - "name": "a stalled write times out and terminates with 1", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 10 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 3, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 1, - "bytes": 10 - } - ] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 3 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "close" - }, - { - "kind": "reportFailure", - "reason": "writeTimedOut" - }, - { - "kind": "notifyTermination", - "exitCode": 1 - } - ] - } - }, - { - "event": { - "type": "writeCompleted", - "generation": 1, - "writeId": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - } - ] - }, - { - "name": "custom limits shape the armed deadlines", - "steps": [ - { - "event": { - "type": "start", - "limits": { - "discoveryMilliseconds": 120000, - "connectMilliseconds": 500, - "writeMilliseconds": 250 - } - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 120000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 500 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 3, - "purpose": "write", - "afterMilliseconds": 250 - }, - { - "kind": "write", - "writeId": 1, - "bytes": 1 - } - ] - } - } - ] - }, - { - "name": "only one write is in flight and frames go out in order", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 5 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 3, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 1, - "bytes": 5 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 7 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [] - } - }, - { - "event": { - "type": "send", - "bytes": 0 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [] - } - }, - { - "event": { - "type": "writeCompleted", - "generation": 1, - "writeId": 2 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "writeCompleted", - "generation": 1, - "writeId": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 3 - }, - { - "kind": "armTimer", - "timerId": 4, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 2, - "bytes": 7 - } - ] - } - }, - { - "event": { - "type": "writeCompleted", - "generation": 1, - "writeId": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "writeCompleted", - "generation": 1, - "writeId": 2 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 4 - } - ] - } - } - ] - }, - { - "name": "exceeding the queued frame count fails the stream and refuses further sends", - "steps": [ - { - "event": { - "type": "start", - "limits": { - "bufferedWrites": 2 - } - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 1 - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [] - } - }, - { - "event": { - "type": "send", - "bytes": 1 - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [] - } - }, - { - "event": { - "type": "send", - "bytes": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "rejectedBufferLimit", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "close" - }, - { - "kind": "reportFailure", - "reason": "bufferLimit" - }, - { - "kind": "notifyTermination", - "exitCode": 1 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "rejectedNotRunning", - "effects": [] - } - } - ] - }, - { - "name": "exceeding the queued byte budget fails the stream, but filling it exactly is allowed", - "steps": [ - { - "event": { - "type": "start", - "limits": { - "bufferedBytes": 100 - } - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 60 - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [] - } - }, - { - "event": { - "type": "send", - "bytes": 40 - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [] - } - }, - { - "event": { - "type": "send", - "bytes": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "rejectedBufferLimit", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "close" - }, - { - "kind": "reportFailure", - "reason": "bufferLimit" - }, - { - "kind": "notifyTermination", - "exitCode": 1 - } - ] - } - } - ] - }, - { - "name": "completed writes free their share of the byte budget", - "steps": [ - { - "event": { - "type": "start", - "limits": { - "bufferedBytes": 100 - } - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 100 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 3, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 1, - "bytes": 100 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "rejectedBufferLimit", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 3 - }, - { - "kind": "close" - }, - { - "kind": "reportFailure", - "reason": "bufferLimit" - }, - { - "kind": "notifyTermination", - "exitCode": 1 - } - ] - } - } - ] - }, - { - "name": "a completed write makes room for the next frame", - "steps": [ - { - "event": { - "type": "start", - "limits": { - "bufferedBytes": 100 - } - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 100 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 3, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 1, - "bytes": 100 - } - ] - } - }, - { - "event": { - "type": "writeCompleted", - "generation": 1, - "writeId": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 3 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 100 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 4, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 2, - "bytes": 100 - } - ] - } - } - ] - }, - { - "name": "a user stop is silent and invalidates every outstanding callback", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "stop" - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - }, - { - "kind": "close" - } - ] - } - }, - { - "event": { - "type": "stop" - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "send", - "bytes": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "rejectedNotRunning", - "effects": [] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 2 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "failed", - "generation": 1, - "message": "late" - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - } - ] - }, - { - "name": "a stopped transport can start again and ignores the previous run's callbacks", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "stop" - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "close" - } - ] - } - }, - { - "event": { - "type": "start" - }, - "expect": { - "generation": 3, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 2, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 3, - "phase": "discovering", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 1 - }, - "expect": { - "generation": 3, - "phase": "discovering", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 3, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 3, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - }, - { - "kind": "armTimer", - "timerId": 3, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - } - ] - }, - { - "name": "starting twice keeps the running lifecycle", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "ignored", - "effects": [] - } - } - ] - }, - { - "name": "finishing a stream with queued frames drains them silently once the last write completes", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 4 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 3, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 1, - "bytes": 4 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 6 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [] - } - }, - { - "event": { - "type": "finishSendingAndStop" - }, - "expect": { - "generation": 1, - "phase": "draining", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 4, - "purpose": "drain", - "afterMilliseconds": 1000 - } - ] - } - }, - { - "event": { - "type": "dataReceived", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "draining", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "send", - "bytes": 1 - }, - "expect": { - "generation": 1, - "phase": "draining", - "outcome": "rejectedNotRunning", - "effects": [] - } - }, - { - "event": { - "type": "finishSendingAndStop" - }, - "expect": { - "generation": 1, - "phase": "draining", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "writeCompleted", - "generation": 1, - "writeId": 1 - }, - "expect": { - "generation": 1, - "phase": "draining", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 3 - }, - { - "kind": "armTimer", - "timerId": 5, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 2, - "bytes": 6 - } - ] - } - }, - { - "event": { - "type": "writeCompleted", - "generation": 1, - "writeId": 2 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 5 - }, - { - "kind": "cancelTimer", - "timerId": 4 - }, - { - "kind": "close" - } - ] - } - } - ] - }, - { - "name": "the drain deadline closes a stream whose peer stopped reading, without a termination", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 4 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 3, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 1, - "bytes": 4 - } - ] - } - }, - { - "event": { - "type": "finishSendingAndStop" - }, - "expect": { - "generation": 1, - "phase": "draining", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 4, - "purpose": "drain", - "afterMilliseconds": 1000 - } - ] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 4 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 3 - }, - { - "kind": "close" - } - ] - } - }, - { - "event": { - "type": "writeCompleted", - "generation": 1, - "writeId": 1 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - } - ] - }, - { - "name": "a failure while draining stays silent", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 4 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 3, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 1, - "bytes": 4 - } - ] - } - }, - { - "event": { - "type": "finishSendingAndStop" - }, - "expect": { - "generation": 1, - "phase": "draining", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 4, - "purpose": "drain", - "afterMilliseconds": 1000 - } - ] - } - }, - { - "event": { - "type": "failed", - "generation": 1, - "message": "reset" - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 4 - }, - { - "kind": "cancelTimer", - "timerId": 3 - }, - { - "kind": "close" - } - ] - } - } - ] - }, - { - "name": "a write timeout while draining stays silent", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 4 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 3, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 1, - "bytes": 4 - } - ] - } - }, - { - "event": { - "type": "finishSendingAndStop" - }, - "expect": { - "generation": 1, - "phase": "draining", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 4, - "purpose": "drain", - "afterMilliseconds": 1000 - } - ] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 3 - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 4 - }, - { - "kind": "close" - } - ] - } - } - ] - }, - { - "name": "finishing with nothing queued, or before the stream is ready, closes immediately", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 3 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [] - } - }, - { - "event": { - "type": "finishSendingAndStop" - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - }, - { - "kind": "close" - } - ] - } - }, - { - "event": { - "type": "finishSendingAndStop" - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - } - ] - }, - { - "name": "finishing a ready stream with an empty queue closes immediately", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "finishSendingAndStop" - }, - "expect": { - "generation": 2, - "phase": "stopped", - "outcome": "applied", - "effects": [ - { - "kind": "close" - } - ] - } - } - ] - }, - { - "name": "starting while a drain is pending replaces it and ignores the old drain's callbacks", - "steps": [ - { - "event": { - "type": "start" - }, - "expect": { - "generation": 1, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 1, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "endpointResolved", - "generation": 1, - "host": "127.0.0.1", - "port": 5005 - }, - "expect": { - "generation": 1, - "phase": "connecting", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 1 - }, - { - "kind": "armTimer", - "timerId": 2, - "purpose": "connect", - "afterMilliseconds": 10000 - }, - { - "kind": "connect", - "host": "127.0.0.1", - "port": 5005 - } - ] - } - }, - { - "event": { - "type": "connectionReady", - "generation": 1 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 2 - } - ] - } - }, - { - "event": { - "type": "send", - "bytes": 4 - }, - "expect": { - "generation": 1, - "phase": "ready", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 3, - "purpose": "write", - "afterMilliseconds": 10000 - }, - { - "kind": "write", - "writeId": 1, - "bytes": 4 - } - ] - } - }, - { - "event": { - "type": "finishSendingAndStop" - }, - "expect": { - "generation": 1, - "phase": "draining", - "outcome": "applied", - "effects": [ - { - "kind": "armTimer", - "timerId": 4, - "purpose": "drain", - "afterMilliseconds": 1000 - } - ] - } - }, - { - "event": { - "type": "start" - }, - "expect": { - "generation": 3, - "phase": "discovering", - "outcome": "applied", - "effects": [ - { - "kind": "cancelTimer", - "timerId": 4 - }, - { - "kind": "cancelTimer", - "timerId": 3 - }, - { - "kind": "close" - }, - { - "kind": "armTimer", - "timerId": 5, - "purpose": "discovery", - "afterMilliseconds": 10000 - }, - { - "kind": "discoverEndpoint" - } - ] - } - }, - { - "event": { - "type": "writeCompleted", - "generation": 1, - "writeId": 1 - }, - "expect": { - "generation": 3, - "phase": "discovering", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "timerFired", - "generation": 1, - "timerId": 4 - }, - "expect": { - "generation": 3, - "phase": "discovering", - "outcome": "ignored", - "effects": [] - } - } - ] - }, - { - "name": "events for a stream that never started are ignored or refused", - "steps": [ - { - "event": { - "type": "send", - "bytes": 1 - }, - "expect": { - "generation": 0, - "phase": "stopped", - "outcome": "rejectedNotRunning", - "effects": [] - } - }, - { - "event": { - "type": "dataReceived", - "generation": 0 - }, - "expect": { - "generation": 0, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "peerClosed", - "generation": 0 - }, - "expect": { - "generation": 0, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "stop" - }, - "expect": { - "generation": 0, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - }, - { - "event": { - "type": "finishSendingAndStop" - }, - "expect": { - "generation": 0, - "phase": "stopped", - "outcome": "ignored", - "effects": [] - } - } - ] - } - ] -} diff --git a/shared/fixtures/debug/v1-baseline.json b/shared/fixtures/debug/v1-baseline.json deleted file mode 100644 index 6f636fcbd9..0000000000 --- a/shared/fixtures/debug/v1-baseline.json +++ /dev/null @@ -1,514 +0,0 @@ -{ - "version": 1, - "purpose": "P0 behavior baseline for #1210: every behavior the unified debug engine must keep. Each item points at the executable evidence on the current Swift session, Rust Core and Windows host. status covered = every platform that owns the behavior has a test; partial = some platforms lack a test; gap = no test yet and P1 must add one before the old path is removed. Windows is out of scope for the P0/P1 phase tracked here (macOS and the shared Rust Core only); Windows evidence is kept where it exists but its absence is not a gap.", - "sourceNote": ".agents/notes/proposed/architecture/2026-10-25-unified-debug-engine-and-adapter-registry.md", - "items": [ - { - "id": "launch-sequence", - "behavior": "initialize, wait for initialized, then launch/attach, breakpoints and configurationDone in a fixed order", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "initialize_launch_breakpoints_and_inspection_are_reduced_in_order" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/tests/protocol.rs", - "test": "debug_create_and_destroy_commands_cross_the_json_boundary", - "fixture": "shared/fixtures/debug/dap-session-v1.json" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "coreProtocolSessionProjectsRustUpdatesThroughInjectedTransport" - }, - { - "platform": "windows", - "path": "windows/tauri/src-tauri/src/debug.rs", - "test": "facade_launch_reaches_the_adapter_through_the_shared_state_machine" - } - ], - "gaps": [] - }, - { - "id": "breakpoints-before-launch", - "behavior": "breakpoints and launch requested before the adapter is ready are queued and sent in order after initialized; restored breakpoints in other sources are sent at start", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "initialize_launch_breakpoints_and_inspection_are_reduced_in_order" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheTests/RunConfigurationIntegrationTests.swift", - "test": "restoredBreakpointInAnotherSourceIsSentWhenDebugStarts" - }, - { - "platform": "windows", - "path": "windows/tauri/src-tauri/src/debug.rs", - "test": "startup_events_are_buffered_until_session_ready" - } - ], - "gaps": [] - }, - { - "id": "breakpoint-relocation", - "behavior": "adapter-corrected breakpoint lines keep the requested identity, stale replies are rejected, and source edits relocate breakpoints", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "source_breakpoint_binding_preserves_requested_identity_and_rejects_stale_replies", - "fixture": "shared/fixtures/debug/breakpoint-binding-v1.json" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/tests/protocol.rs", - "test": "debug_breakpoint_relocation_matches_the_shared_contract_fixture", - "fixture": "shared/fixtures/debug/breakpoint-relocation-v1.json" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "sourceEditRelocatesPersistsAndResynchronizesBreakpoints" - }, - { - "platform": "windows", - "path": "windows/tauri/src-tauri/src/debug.rs", - "test": "translates_set_breakpoints_into_the_core_contract" - } - ], - "gaps": [] - }, - { - "id": "variable-paging", - "behavior": "indexed and named variables load in bounded pages, child counts are normalized, ignored start offsets stop paging, stale pages are discarded", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "variable_paging_is_forwarded_and_normalized_from_shared_fixture", - "fixture": "shared/fixtures/debug/variable-paging-v1.json" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "variable_paging_arguments_reject_invalid_combinations" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "largeIndexedVariableCollectionsLoadInBoundedPages" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "repeatedVariablePageStopsWhenAdapterIgnoresStart" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "staleVariablePageDoesNotEnterNewStackFrame" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "coreProtocolSessionForwardsVariablePagingAndChildCounts" - } - ], - "gaps": [] - }, - { - "id": "stop-and-disconnect", - "behavior": "launch terminates the debuggee on disconnect, attach never does, stopping one session leaves the others alive and releases its resources", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "disconnect_policy_matches_shared_fixture", - "fixture": "shared/fixtures/debug/disconnect-policy-v1.json" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "stoppingActiveSessionPromotesTheMostRecentRemainingSession" - }, - { - "platform": "windows", - "path": "windows/tauri/src-tauri/src/debug.rs", - "test": "repeated_stop_only_ends_the_selected_session" - }, - { - "platform": "windows", - "path": "windows/tauri/src-tauri/src/debug.rs", - "test": "fake_dap_adapter_initialize_rejection_triggers_host_teardown" - } - ], - "gaps": [] - }, - { - "id": "run-in-terminal", - "behavior": "reverse runInTerminal requests are normalized, completed with the process ID, failed explicitly when malformed, and late completions after stop are ignored", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "run_in_terminal_request_is_normalized_completed_and_stale_safe", - "fixture": "shared/fixtures/debug/run-in-terminal-v1.json" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "malformed_run_in_terminal_request_gets_an_explicit_failure_response" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "unknown_server_request_gets_an_explicit_failure_response" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "coreProtocolSessionLaunchesRunInTerminalAndReturnsProcessID" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "stoppingCoreProtocolSessionFailsPendingTerminalRequestAndIgnoresLateCompletion" - } - ], - "gaps": [] - }, - { - "id": "child-debug-sessions", - "behavior": "startDebugging creates a child session that routes inspection and is removed when it finishes", - "status": "partial", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "start_debugging_request_is_normalized_completed_and_stale_safe", - "fixture": "shared/fixtures/debug/start-debugging-v1.json" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "start_debugging_failure_and_unsupported_hosts_answer_the_adapter" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "disconnect_fails_a_pending_start_debugging_request" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "coreProtocolSessionDelegatesStartDebuggingAndReportsTheOutcome" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "child_sessions_stop_with_the_parent_and_leave_the_tree_when_destroyed" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "destroying_a_parent_destroys_its_whole_child_tree" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "coreProtocolSessionRejectsStartDebuggingWithoutAHostHandler" - } - ], - "gaps": [ - "Core now tracks parent and child sessions (attach, stop with the parent, detach on destroy). No macOS handler is installed yet, so adapters that spawn child sessions are still answered with a failure until the workbench can host more than one active session. Go and Node debugging was removed and will return through language plugins." - ] - }, - { - "id": "source-mapped-locations", - "behavior": "Locations an adapter reports after source mapping (for example from a JavaScript debug plugin) reach the projection unchanged", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "node_source_mapped_locations_pass_through_unchanged", - "fixture": "shared/fixtures/debug/node-source-map-v1.json" - } - ] - }, - { - "id": "hot-code-replace", - "behavior": "declared hot code replace sends the adapter's declared request, normalizes success, empty and error bodies, keeps the paused state, and is only offered after the host prepared the change", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "hot_replace_normalizes_success_empty_and_error_bodies", - "fixture": "shared/fixtures/debug/hot-code-replace-v1.json" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "hot_replace_requires_the_declaration_and_preserves_paused_state" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "declared_hot_code_replace_sends_the_declared_request_and_reads_its_fields" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "anAdapterThatDeclaredHotCodeReplaceOffersApplyingChangesAndSendsItAfterPreparing" - }, - { - "platform": "windows", - "path": "windows/tauri/src-tauri/src/debug.rs", - "test": "translates_java_hot_replace_and_its_timeout_without_a_thread" - } - ], - "gaps": [] - }, - { - "id": "stepping-filters", - "behavior": "stepping filters are normalized, projected into the launch argument an adapter declared, and mark stack frames; adapters without a declaration stay unfiltered", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/tests/protocol.rs", - "test": "debug_stepping_filters_match_the_shared_contract_fixture", - "fixture": "shared/fixtures/debug/stepping-filters-v1.json" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "stepping_filters_are_normalized_projected_and_mark_stack_frames" - } - ], - "gaps": [] - }, - { - "id": "cancel-and-late-events", - "behavior": "a cancelled operation forwards DAP cancel and ignores the late response; stale session callbacks, out-of-order inspection results and overlapping controls cannot corrupt state", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "cancelled_operation_forwards_dap_cancel_and_ignores_late_response" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "stale_reference_fixture_matches_core_behavior", - "fixture": "shared/fixtures/debug/stale-reference-v1.json" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "staleSessionCallbacksCannotOverwriteAReplacementSession" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "rapidInspectionSelectionDiscardsOutOfOrderResults" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "executionControlsIgnoreOverlappingRequestsUntilSessionLeavesPausedState" - } - ], - "gaps": [] - }, - { - "id": "stop-inspection-chain", - "behavior": "a stopped event loads threads, stack, scopes and variables in order; the first source-backed unfiltered frame is selected; continued clears inspection before the event", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "initialize_launch_breakpoints_and_inspection_are_reduced_in_order" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "stoppedEventLoadsThreadStackScopeAndVariablesInOrder" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "stoppedStackPrefersTheFirstSourceBackedUnfilteredFrame" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "runningStateClearsStoppedInspectionBeforeContinuedEvent" - }, - { - "platform": "windows", - "path": "windows/tauri/src-tauri/src/debug.rs", - "test": "translates_inspection_requests_onto_debug_inspect" - } - ], - "gaps": [] - }, - { - "id": "optional-adapter-features", - "behavior": "data breakpoints, variable mutation, advanced execution, goto/step-in targets and exception info are gated by negotiated capabilities", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "data_breakpoint_identity_and_verification_are_correlated" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "variable_mutation_is_capability_gated_and_correlated" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "advanced_execution_controls_are_capability_gated_and_correlated" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "smart_step_and_goto_targets_are_normalized_before_targeted_execution" - }, - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/engine.rs", - "test": "exception_information_is_capability_gated_and_normalized", - "fixture": "shared/fixtures/debug/exception-info-v1.json" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "coreProtocolSessionGatesOptionalFeaturesOnNegotiatedCapabilities" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "coreProtocolSessionProjectsRustUpdatesThroughInjectedTransport" - } - ], - "gaps": [] - }, - { - "id": "adapter-tcp-endpoint", - "behavior": "IDE-to-DAP endpoints are validated independently of debuggee attach arguments; TCP startup/write waits, buffering, cancellation and ownership are bounded", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/endpoint.rs", - "test": "dap_endpoint_contract_fixtures_match_validation_and_consent_classification", - "fixture": "shared/fixtures/debug/adapter-endpoints-v1.json" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheTests/TCPDebugAdapterTests.swift", - "test": "realTCPRunsCoreInitializeAndAttachWithFragmentedDAPResponses" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "explicitEndpointUsesItsFactoryAndPreservesTheDAPRequest" - } - ], - "gaps": [] - }, - { - "id": "adapter-tcp-lifecycle", - "behavior": "The TCP byte-stream lifecycle (state transitions, generation tokens, finish-once, connect/write/drain deadlines, queue budgets, single in-flight write) is decided by Rust Core and replayed from a shared fixture; platforms only run the returned effects", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/transport_lifecycle.rs", - "test": "lifecycle_fixture_scenarios_match_expected_steps", - "fixture": "shared/fixtures/debug/transport-lifecycle-v1.json" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheTests/TCPDebugAdapterTests.swift", - "test": "terminalEventsCleanUpExactlyOnceAndRevokeCallbacks" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheTests/TCPDebugAdapterTests.swift", - "test": "restartRejectsOldSocketCallbacksAndWriteCompletions" - } - ], - "gaps": [] - }, - { - "id": "explicit-adapter-routing", - "behavior": "host-selected adapter identities survive configuration transforms and retry; missing registrations and unsupported requests never fall back to a matching source-file adapter; fileless targets and concurrent matching adapters retain session ownership", - "status": "covered", - "evidence": [ - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "adapterSelectionMatchesTheSharedHostFixture", - "fixture": "shared/fixtures/debug/adapter-selection-v1.json" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheDebugModuleTests/DebugModuleTests.swift", - "test": "explicitFeatureRetryKeepsItsAdapterAndFailureCleansUpOnlyItsNewSession" - }, - { - "platform": "macos", - "path": "macos/Tests/LitheTests/PluginLiveActivationTests.swift", - "test": "qualifiedAdaptersKeepEveryPackageAndNeverBecomeFileDefaults" - } - ], - "gaps": [] - }, - { - "id": "core-variable-page-cursor", - "behavior": "variable containers page by the adapter's named/indexed counts, drop repeated pages and stop when exhausted (Core-owned cursor)", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/variable_paging.rs", - "test": "variable_page_plan_matches_the_shared_fixture", - "fixture": "shared/fixtures/debug/variable-page-plan-v1.json" - } - ], - "gaps": [] - }, - { - "id": "core-disassembly-page-recovery", - "behavior": "disassembly windows shrink on rejection, retry negative first offsets from the instruction pointer and end a direction only at a readable edge", - "status": "covered", - "evidence": [ - { - "platform": "rust", - "path": "rust/lithe-core/src/debug/disassembly_paging.rs", - "test": "disassembly_paging_matches_the_shared_fixture", - "fixture": "shared/fixtures/debug/disassembly-paging-v1.json" - } - ], - "gaps": [] - } - ] -} diff --git a/shared/fixtures/debug/variable-page-plan-v1.json b/shared/fixtures/debug/variable-page-plan-v1.json deleted file mode 100644 index a0e0dcafc5..0000000000 --- a/shared/fixtures/debug/variable-page-plan-v1.json +++ /dev/null @@ -1,1573 +0,0 @@ -{ - "version": 1, - "description": "debug.planVariablePage / debug.reduceVariablePage: page cursors for one variable container. 'page' lists the identity fields the host fingerprints; 'newItemCount' is how many of them the host did not already show.", - "scenarios": [ - { - "name": "large indexed collection loads in bounded pages", - "plan": { - "variablesReference": 700, - "namedVariables": 0, - "indexedVariables": 250, - "pageSize": 100 - }, - "firstRequest": { - "filter": "indexed", - "start": 0, - "count": 100, - "remainingCount": 250 - }, - "pages": [ - { - "page": [ - { - "name": "[0]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[1]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[2]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[3]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[4]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[5]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[6]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[7]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[8]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[9]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[10]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[11]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[12]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[13]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[14]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[15]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[16]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[17]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[18]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[19]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[20]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[21]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[22]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[23]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[24]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[25]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[26]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[27]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[28]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[29]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[30]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[31]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[32]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[33]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[34]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[35]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[36]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[37]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[38]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[39]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[40]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[41]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[42]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[43]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[44]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[45]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[46]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[47]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[48]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[49]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[50]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[51]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[52]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[53]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[54]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[55]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[56]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[57]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[58]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[59]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[60]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[61]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[62]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[63]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[64]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[65]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[66]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[67]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[68]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[69]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[70]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[71]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[72]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[73]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[74]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[75]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[76]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[77]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[78]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[79]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[80]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[81]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[82]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[83]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[84]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[85]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[86]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[87]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[88]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[89]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[90]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[91]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[92]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[93]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[94]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[95]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[96]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[97]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[98]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[99]", - "value": "1", - "variablesReference": 0 - } - ], - "newItemCount": 100, - "accept": true, - "next": { - "filter": "indexed", - "start": 100, - "count": 100, - "remainingCount": 150 - } - }, - { - "page": [ - { - "name": "[100]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[101]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[102]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[103]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[104]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[105]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[106]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[107]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[108]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[109]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[110]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[111]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[112]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[113]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[114]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[115]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[116]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[117]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[118]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[119]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[120]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[121]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[122]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[123]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[124]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[125]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[126]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[127]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[128]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[129]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[130]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[131]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[132]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[133]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[134]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[135]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[136]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[137]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[138]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[139]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[140]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[141]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[142]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[143]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[144]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[145]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[146]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[147]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[148]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[149]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[150]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[151]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[152]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[153]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[154]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[155]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[156]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[157]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[158]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[159]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[160]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[161]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[162]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[163]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[164]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[165]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[166]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[167]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[168]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[169]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[170]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[171]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[172]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[173]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[174]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[175]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[176]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[177]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[178]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[179]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[180]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[181]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[182]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[183]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[184]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[185]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[186]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[187]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[188]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[189]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[190]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[191]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[192]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[193]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[194]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[195]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[196]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[197]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[198]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[199]", - "value": "1", - "variablesReference": 0 - } - ], - "newItemCount": 100, - "accept": true, - "next": { - "filter": "indexed", - "start": 200, - "count": 50, - "remainingCount": 50 - } - }, - { - "page": [ - { - "name": "[200]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[201]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[202]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[203]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[204]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[205]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[206]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[207]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[208]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[209]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[210]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[211]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[212]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[213]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[214]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[215]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[216]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[217]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[218]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[219]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[220]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[221]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[222]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[223]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[224]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[225]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[226]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[227]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[228]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[229]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[230]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[231]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[232]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[233]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[234]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[235]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[236]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[237]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[238]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[239]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[240]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[241]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[242]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[243]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[244]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[245]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[246]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[247]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[248]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[249]", - "value": "1", - "variablesReference": 0 - } - ], - "newItemCount": 50, - "accept": true, - "next": null - } - ] - }, - { - "name": "named children page before indexed children", - "plan": { - "variablesReference": 9, - "namedVariables": 2, - "indexedVariables": 3, - "pageSize": 100 - }, - "firstRequest": { - "filter": "named", - "start": 0, - "count": 2, - "remainingCount": 5 - }, - "pages": [ - { - "page": [ - { - "name": "size", - "value": "1", - "variablesReference": 0 - }, - { - "name": "modCount", - "value": "1", - "variablesReference": 0 - } - ], - "newItemCount": 2, - "accept": true, - "next": { - "filter": "indexed", - "start": 0, - "count": 3, - "remainingCount": 3 - } - }, - { - "page": [ - { - "name": "[0]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[1]", - "value": "1", - "variablesReference": 0 - }, - { - "name": "[2]", - "value": "1", - "variablesReference": 0 - } - ], - "newItemCount": 3, - "accept": true, - "next": null - } - ] - }, - { - "name": "adapter that ignores start repeats a page and stops paging", - "plan": { - "variablesReference": 5, - "namedVariables": 0, - "indexedVariables": 0, - "pageSize": 2 - }, - "firstRequest": { - "start": 0, - "count": 2 - }, - "pages": [ - { - "page": [ - { - "name": "a", - "value": "1", - "variablesReference": 0 - }, - { - "name": "b", - "value": "1", - "variablesReference": 0 - } - ], - "newItemCount": 2, - "accept": true, - "next": { - "start": 2, - "count": 2 - } - }, - { - "page": [ - { - "name": "a", - "value": "1", - "variablesReference": 0 - }, - { - "name": "b", - "value": "1", - "variablesReference": 0 - } - ], - "newItemCount": 0, - "accept": false, - "next": null - } - ] - }, - { - "name": "unknown length stops on a short page", - "plan": { - "variablesReference": 5, - "pageSize": 100 - }, - "firstRequest": { - "start": 0, - "count": 100 - }, - "pages": [ - { - "page": [ - { - "name": "a", - "value": "1", - "variablesReference": 0 - } - ], - "newItemCount": 1, - "accept": true, - "next": null - } - ] - }, - { - "name": "a page of only known children stops paging", - "plan": { - "variablesReference": 5, - "namedVariables": 10, - "pageSize": 4 - }, - "firstRequest": { - "filter": "named", - "start": 0, - "count": 4, - "remainingCount": 10 - }, - "pages": [ - { - "page": [ - { - "name": "a", - "value": "1", - "variablesReference": 0 - }, - { - "name": "b", - "value": "1", - "variablesReference": 0 - }, - { - "name": "c", - "value": "1", - "variablesReference": 0 - }, - { - "name": "d", - "value": "1", - "variablesReference": 0 - } - ], - "newItemCount": 4, - "accept": true, - "next": { - "filter": "named", - "start": 4, - "count": 4, - "remainingCount": 6 - } - }, - { - "page": [ - { - "name": "a", - "value": "2", - "variablesReference": 0 - }, - { - "name": "b", - "value": "2", - "variablesReference": 0 - } - ], - "newItemCount": 0, - "accept": true, - "next": null - } - ] - }, - { - "name": "an oversized page stops paging", - "plan": { - "variablesReference": 5, - "namedVariables": 10, - "pageSize": 2 - }, - "firstRequest": { - "filter": "named", - "start": 0, - "count": 2, - "remainingCount": 10 - }, - "pages": [ - { - "page": [ - { - "name": "a", - "value": "1", - "variablesReference": 0 - }, - { - "name": "b", - "value": "1", - "variablesReference": 0 - }, - { - "name": "c", - "value": "1", - "variablesReference": 0 - } - ], - "newItemCount": 3, - "accept": true, - "next": null - } - ] - }, - { - "name": "an empty page ends the segment", - "plan": { - "variablesReference": 5, - "namedVariables": 10, - "indexedVariables": 1, - "pageSize": 4 - }, - "firstRequest": { - "filter": "named", - "start": 0, - "count": 4, - "remainingCount": 11 - }, - "pages": [ - { - "page": [], - "newItemCount": 0, - "accept": true, - "next": { - "filter": "indexed", - "start": 0, - "count": 1, - "remainingCount": 1 - } - } - ] - } - ] -} diff --git a/shared/fixtures/debug/variable-paging-v1.json b/shared/fixtures/debug/variable-paging-v1.json deleted file mode 100644 index 40c643c51d..0000000000 --- a/shared/fixtures/debug/variable-paging-v1.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "version": 1, - "request": { - "operationId": "variables-customers-100", - "variablesReference": 700, - "variableFilter": "indexed", - "start": 100, - "count": 2 - }, - "adapterResponse": { - "variables": [ - { - "name": "[100]", - "value": "Customer@100", - "type": "example.Customer", - "evaluateName": "customers[100]", - "variablesReference": 701, - "namedVariables": 4, - "indexedVariables": 0 - }, - { - "name": "[101]", - "value": "Customer@101", - "type": "example.Customer", - "evaluateName": "customers[101]", - "variablesReference": 702, - "namedVariables": -3, - "indexedVariables": 5 - } - ] - }, - "expected": { - "kind": "variables", - "variables": [ - { - "name": "[100]", - "value": "Customer@100", - "type": "example.Customer", - "evaluateName": "customers[100]", - "variablesReference": 701, - "namedVariables": 4, - "indexedVariables": 0 - }, - { - "name": "[101]", - "value": "Customer@101", - "type": "example.Customer", - "evaluateName": "customers[101]", - "variablesReference": 702, - "namedVariables": 0, - "indexedVariables": 5 - } - ] - } -} diff --git a/shared/fixtures/diagnostics/build-manifest-v1.json b/shared/fixtures/diagnostics/build-manifest-v1.json deleted file mode 100644 index 00d9ba10c1..0000000000 --- a/shared/fixtures/diagnostics/build-manifest-v1.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "version": 1, - "request": { - "command": "diagnostics.buildManifest", - "payload": { - "environment": { - "appVersion": "1.2.3", - "osName": "macOS", - "osVersion": "15.0", - "cpuCoreCount": 8, - "memoryRssBytes": 123456789, - "diskFreeBytes": 987654321 - }, - "files": [ - { - "relativePath": "logs/lithe.2.log", - "sizeBytes": 10, - "description": "Rotated application log" - }, - { - "relativePath": "environment.json", - "sizeBytes": 5, - "description": "Environment snapshot" - }, - { - "relativePath": "logs/lithe.log", - "sizeBytes": 20, - "description": "Current application log" - } - ], - "generatedAtEpochMilliseconds": 1700000000000 - } - }, - "expected": { - "schemaVersion": 1, - "generatedAtEpochMilliseconds": 1700000000000, - "orderedRelativePaths": [ - "environment.json", - "logs/lithe.2.log", - "logs/lithe.log" - ] - } -} diff --git a/shared/fixtures/diagnostics/engine-logging-v2.json b/shared/fixtures/diagnostics/engine-logging-v2.json deleted file mode 100644 index cfa50c93c0..0000000000 --- a/shared/fixtures/diagnostics/engine-logging-v2.json +++ /dev/null @@ -1,137 +0,0 @@ -{ - "version": 1, - "start": { - "providerId": "opaque:git:provider", - "role": "vcs", - "logSubject": "git", - "pluginId": "io.example.git", - "executablePath": "/tools/provider", - "rootUri": "file:///workspace", - "workingDirectory": "/workspace" - }, - "trace": { - "version": 1, - "command": "lsp.setDetailedDiagnostics", - "payload": { - "sessionId": "lsp-1", - "enabled": true - } - }, - "drain": { - "version": 1, - "command": "diagnostics.drainCoreEvents", - "payload": {} - }, - "startResponse": { - "sessionId": "lsp-1", - "state": "initializing", - "processId": null, - "channel": "vcs/git" - }, - "pluginFiles": { - "command": "diagnostics.resolveLogChannel", - "payload": { - "channel": "plugins/io.example.git/host" - }, - "result": { - "relativePath": "plugins/io.example.git/host.log", - "pluginFilesPath": "plugins/io.example.git/files/" - } - }, - "resolveSubject": { - "command": "diagnostics.resolveEngineLogSubject", - "payload": { - "role": "language_server", - "providerId": "c++" - }, - "result": { - "channel": "lsp/invalid-cedb1bac7efcd7db47e9f2f2250a7c83", - "segment": "invalid-cedb1bac7efcd7db47e9f2f2250a7c83" - } - }, - "lifecycleEvent": { - "type": "stateChanged", - "sequence": 17, - "providerId": "opaque:git:provider", - "sessionId": "lsp-1", - "state": "ready", - "channel": "vcs/git", - "pluginId": "io.example.git", - "role": "vcs", - "event": "vcs.session.updated", - "catalogLevel": "DEBUG", - "fields": { - "provider": "git", - "state": "ready" - } - }, - "hostOperations": [ - { - "payload": { - "pluginId": "io.github.lithe-idea.go-support", - "operation": "languageServer/start", - "outcome": "finished", - "durationMs": 412, - "operationId": "0F8E1C2A-7B5D-4E61-9A3C-2D4B6F8E0A1C" - }, - "event": "plugins.operation.finished", - "channel": "plugins/io.github.lithe-idea.go-support/host" - }, - { - "payload": { - "pluginId": "io.github.lithe-idea.go-support", - "operation": "languageServer/start", - "outcome": "failed", - "stage": "resolve", - "durationMs": 3 - }, - "event": "plugins.operation.failed", - "channel": "plugins/io.github.lithe-idea.go-support/host", - "code": "host.executableUnavailable" - }, - { - "payload": { - "pluginId": "io.github.lithe-idea.lldb-debug", - "operation": "debugAdapter/start", - "outcome": "failed", - "stage": "timeout", - "durationMs": 10000 - }, - "event": "plugins.operation.failed", - "channel": "plugins/io.github.lithe-idea.lldb-debug/host", - "code": "host.timedOut" - }, - { - "payload": { - "pluginId": "io.github.lithe-idea.gradle-build", - "operation": "lithe/build/model", - "outcome": "failed", - "stage": "exit", - "durationMs": 5210 - }, - "event": "plugins.operation.failed", - "channel": "plugins/io.github.lithe-idea.gradle-build/host", - "code": "host.commandFailed" - }, - { - "payload": { - "pluginId": "io.github.lithe-idea.go-support", - "operation": "languageServer/start", - "outcome": "failed", - "stage": "decode", - "durationMs": 2 - }, - "rejected": -32064 - }, - { - "payload": { - "pluginId": "io.github.lithe-idea.go-support", - "operation": "languageServer/start", - "outcome": "finished", - "durationMs": 2, - "message": "gopls: GOPROXY=https://user:secret@proxy" - }, - "rejected": -32064 - } - ] -} diff --git a/shared/fixtures/diagnostics/logging-ui-v1.json b/shared/fixtures/diagnostics/logging-ui-v1.json deleted file mode 100644 index 5d2ac6d71b..0000000000 --- a/shared/fixtures/diagnostics/logging-ui-v1.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": 1, - "navigation": { - "group": "Tools", - "title": "Logs and Diagnostics", - "macosCategory": "Diagnostics", - "windowsCategory": "logs" - }, - "sections": ["Log timeline", "Diagnostics", "Log locations", "Retention and cleanup", "Diagnostic bundle"], - "defaults": {"category": null, "session": "current", "minimumLevel": "info"}, - "previewLimits": {"lines": 2000, "characters": 200000}, - "clearScope": {"directory": "effective", "modules": "all", "sessions": "all", "managedFilesOnly": true}, - "export": {"previewRequired": true, "frozenSelection": true, "discardOnCancel": true} -} diff --git a/shared/fixtures/diagnostics/logging-v1.json b/shared/fixtures/diagnostics/logging-v1.json deleted file mode 100644 index 0dc939e66c..0000000000 --- a/shared/fixtures/diagnostics/logging-v1.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "version": 1, - "categories": [ - "application", - "language", - "run", - "git", - "plugins", - "performance" - ], - "limits": { - "fileBytes": 10485760, - "totalBytes": 104857600, - "performanceBytes": 20971520, - "exportBytes": 10485760, - "diagnosticDurationMilliseconds": 900000 - }, - "cases": [ - { - "scope": "language.java", - "category": "language" - }, - { - "scope": "git.fetch", - "category": "git" - }, - { - "scope": "run.build", - "category": "run" - }, - { - "scope": "plugins.activate", - "category": "plugins" - }, - { - "scope": "perf.fps", - "category": "performance" - }, - { - "scope": "../../escape", - "category": "application" - } - ], - "timeQueries": [ - { - "request": { - "sources": [ - { - "category": "application", - "text": "2026-10-20T01:00:00.500Z INFO middle\n2026-10-20T01:00:01.000Z INFO later\n2026-10-20T01:00:00Z INFO start" - } - ], - "since": "2026-10-20T01:00:00Z", - "until": "2026-10-20T01:00:00.500000000+00:00" - }, - "messages": [ - "start", - "middle" - ] - }, - { - "request": { - "sources": [ - { - "category": "git", - "text": "2026-10-20T01:00:01Z INFO later\n2026-10-20T03:00:00.1+02:00 INFO fractional\n2026-10-20T01:00:00Z INFO start" - } - ], - "since": "2026-10-20T03:00:00+02:00", - "until": "2026-10-20T01:00:01.000Z" - }, - "messages": [ - "start", - "fractional", - "later" - ] - } - ] -} diff --git a/shared/fixtures/diagnostics/logging-v2.json b/shared/fixtures/diagnostics/logging-v2.json deleted file mode 100644 index 77d27e6916..0000000000 --- a/shared/fixtures/diagnostics/logging-v2.json +++ /dev/null @@ -1,1559 +0,0 @@ -{ - "version": 2, - "limits": { - "lineBytes": 8192, - "sessionChannels": 128, - "segmentBytes": 10485760, - "segments": 3 - }, - "roundtrips": [ - { - "input": { - "ts": "2026-11-03T08:00:01.123Z", - "level": "WARN", - "seq": 42, - "event": "vcs.git.command.failed", - "op": "7f3a", - "msg": "git fetch failed", - "fields": { - "command": "fetch", - "exit_code": 128, - "duration_ms": 311 - } - }, - "message": "git fetch failed", - "line": "2026-11-03T08:00:01.123Z WARN seq=42 event=vcs.git.command.failed op=7f3a msg=\"git fetch failed\" command=fetch duration_ms=311 exit_code=128" - }, - { - "input": { - "ts": "2026-11-03T08:00:01.123Z", - "level": "WARN", - "seq": 42, - "event": "vcs.git.command.failed", - "op": "7f3a", - "msg": "quote \" and backslash \\", - "fields": { - "command": "fetch", - "exit_code": 128, - "duration_ms": 311 - } - }, - "message": "quote \" and backslash \\" - }, - { - "input": { - "ts": "2026-11-03T08:00:01.123Z", - "level": "WARN", - "seq": 42, - "event": "vcs.git.command.failed", - "op": "7f3a", - "msg": "line\nreturn\rtab\tcontrol\u0000\u001f…", - "fields": { - "command": "fetch", - "exit_code": 128, - "duration_ms": 311 - } - }, - "message": "line\nreturn\rtab\tcontrol\u0000\u001f…" - }, - { - "input": { - "ts": "2026-11-03T08:00:01.123Z", - "level": "WARN", - "seq": 42, - "event": "vcs.git.command.failed", - "op": "7f3a", - "msg": "中文日志 🦀 café", - "fields": { - "command": "fetch", - "exit_code": 128, - "duration_ms": 311 - } - }, - "message": "中文日志 🦀 café" - }, - { - "input": { - "ts": "2026-11-03T08:00:01.123Z", - "level": "WARN", - "seq": 42, - "event": "vcs.git.command.failed", - "op": "7f3a", - "msg": "", - "fields": { - "command": "fetch", - "exit_code": 128, - "duration_ms": 311 - } - }, - "message": "" - }, - { - "input": { - "ts": "2026-11-03T08:00:01.123Z", - "level": "WARN", - "seq": 42, - "event": "vcs.git.command.failed", - "op": "7f3a", - "msg": "bare:/@+-._123", - "fields": { - "command": "fetch", - "exit_code": 128, - "duration_ms": 311 - } - }, - "message": "bare:/@+-._123" - } - ], - "truncations": [ - { - "input": { - "ts": "2026-11-03T08:00:01.123Z", - "level": "WARN", - "seq": 42, - "event": "vcs.git.command.failed", - "op": "7f3a", - "msg": "short", - "fields": { - "large": "界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界界", - "small": "keep" - } - }, - "keepSmall": true - }, - { - "input": { - "ts": "2026-11-03T08:00:01.123Z", - "level": "WARN", - "seq": 42, - "event": "vcs.git.command.failed", - "op": "7f3a", - "msg": "\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界\\\n界", - "fields": {} - } - } - ], - "invalidLines": [ - { - "line": "2026-11-03T08:00:01.123Z WARN seq=042 event=vcs.git.command.failed op=7f3a msg=\"git fetch failed\" command=fetch duration_ms=311 exit_code=128", - "code": -32044 - }, - { - "line": "2026-11-03T08:00:01.123Z TRACE seq=42 event=vcs.git.command.failed op=7f3a msg=\"git fetch failed\" command=fetch duration_ms=311 exit_code=128", - "code": -32045 - }, - { - "line": "2026-11-03T08:00:01.123Z WARN seq=42 event=vcs.git.command.failed op=7f3a msg=\"git fetch failed\" command=fetch command=push duration_ms=311 exit_code=128", - "code": -32039 - }, - { - "line": "2026-11-03T08:00:01.123Z WARN seq=42 event=vcs.git.command.failed op=7f3a msg=\"bad\\q\" command=fetch duration_ms=311 exit_code=128", - "code": -32042 - }, - { - "line": "2026-11-03T08:00:01.123Z WARN seq=42 event=vcs.git.command.failed op=7f3a msg=\"unterminated command=fetch duration_ms=311 exit_code=128", - "code": -32041 - }, - { - "line": "2026-11-03T08:00:01.123Z WARN event=vcs.git.command.failed seq=42 op=7f3a msg=\"git fetch failed\" command=fetch duration_ms=311 exit_code=128", - "code": -32043 - }, - { - "line": "2026-11-03T08:00:01.123Z WARN seq=42 event=vcs.git.command.failed op=7f3a msg=\"git fetch failed\" command=fetch duration_ms=311 exit_code=128 msg=again", - "code": -32038 - }, - { - "line": "2026-11-03T08:00:01.123Z WARN seq=42 event=vcs.git.command.failed op=7f3a msg=\"git fetch failed\" command=fetch duration_ms=311 exit_code=128 Upper=bad", - "code": -32037 - }, - { - "line": "2026-11-03T08:00:01Z WARN seq=42 event=vcs.git.command.failed op=7f3a msg=\"git fetch failed\" command=fetch duration_ms=311 exit_code=128", - "code": -32035 - }, - { - "line": "2026-11-03T08:00:01.123Z WARN seq=42 event=vcs.git.command.failed op=7f3a msg=\"git fetch failed\" command=fetch duration_ms=311 exit_code=128", - "code": -32037 - }, - { - "line": "2026-11-03T08:00:00.000Z INFO seq=\"1\" event=app.ready msg=ready", - "code": -32041 - }, - { - "line": "2026-11-03T08:00:00.000Z INFO seq=18446744073709551616 event=app.ready msg=ready", - "code": -32044 - }, - { - "line": "2026-11-03T08:00:00.000Z INFO seq=1 event=app.ready msg=\"bad\\u{D800}\"", - "code": -32042 - }, - { - "line": "2026-11-03T08:00:00.000Z INFO seq=1 event=app.ready msg=\"bad\\u{20}\"", - "code": -32042 - }, - { - "line": "2026-11-03T08:00:00.000Z INFO seq=1 event=app.ready msg=\"physical\nnewline\"", - "code": -32041 - } - ], - "channels": [ - { - "channel": "app", - "path": "app.log", - "rotation": 0 - }, - { - "channel": "vcs/git", - "path": "vcs/git~2.log", - "rotation": 2 - }, - { - "channel": "lsp/foo.1", - "path": "lsp/foo.1.log", - "rotation": 0 - }, - { - "channel": "lsp/foo", - "path": "lsp/foo~1.log", - "rotation": 1 - }, - { - "channel": "plugins/io.example.test/host", - "path": "plugins/io.example.test/host.log", - "rotation": 0 - }, - { - "channel": "plugins/p", - "code": -32032 - }, - { - "channel": "unknown", - "code": -32031 - }, - { - "channel": "app/a/b", - "code": -32032 - }, - { - "channel": "plugins/p/files", - "code": -32032 - }, - { - "channel": "vcs/..", - "code": -32033 - }, - { - "channel": "vcs/.", - "code": -32033 - }, - { - "channel": "vcs/Upper", - "code": -32033 - }, - { - "channel": "vcs/", - "code": -32033 - }, - { - "channel": "vcs/a\\b", - "code": -32033 - }, - { - "channel": "vcs/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "code": -32033 - }, - { - "channel": "vcs/中文", - "code": -32033 - }, - { - "channel": "vcs/git.1", - "rotation": 0, - "path": "vcs/git.1.log" - }, - { - "channel": "plugins/example", - "code": -32032 - } - ], - "segments": { - "valid": [ - "a", - "0", - "a.b_c-d", - "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" - ], - "invalid": [ - "", - ".", - "..", - "A", - "a/b", - "a\\b", - " a", - "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "é", - "con", - "aux", - "nul.txt", - "com1", - "lpt9.log", - "git." - ] - }, - "retention": [ - { - "name": "expired-session-and-legacy", - "request": { - "sessions": [ - { - "name": "2026-10-01T00-00-00_11111111", - "files": [ - { - "relativePath": "app.log", - "sizeBytes": 4, - "modifiedAt": "2026-11-01T00:00:00Z" - } - ] - }, - { - "name": "2026-11-03T00-00-00_33333333", - "files": [ - { - "relativePath": "app.log", - "sizeBytes": 4, - "modifiedAt": "2026-11-01T00:00:00Z" - } - ] - } - ], - "currentSession": "2026-11-03T00-00-00_33333333", - "now": "2026-11-03T08:00:00Z", - "limits": {}, - "startupCleanup": false, - "legacyFiles": [ - { - "relativePath": "application/lithe.old.log", - "sizeBytes": 4, - "modifiedAt": "2026-09-01T00:00:00Z" - } - ] - }, - "deletions": [ - { - "relativePath": "application/lithe.old.log", - "directory": false, - "reason": "expired" - }, - { - "relativePath": "sessions/2026-10-01T00-00-00_11111111", - "directory": true, - "reason": "expired" - } - ], - "warningPlugins": [] - }, - { - "name": "oldest-whole-session", - "request": { - "sessions": [ - { - "name": "2026-11-02T00-00-00_22222222", - "files": [ - { - "relativePath": "app.log", - "sizeBytes": 60, - "modifiedAt": "2026-11-01T00:00:00Z" - } - ] - }, - { - "name": "2026-11-03T00-00-00_33333333", - "files": [ - { - "relativePath": "app.log", - "sizeBytes": 60, - "modifiedAt": "2026-11-01T00:00:00Z" - } - ] - } - ], - "currentSession": "2026-11-03T00-00-00_33333333", - "now": "2026-11-03T08:00:00Z", - "limits": { - "totalBytes": 100 - }, - "startupCleanup": false, - "legacyFiles": [] - }, - "deletions": [ - { - "relativePath": "sessions/2026-11-02T00-00-00_22222222", - "directory": true, - "reason": "totalBudget" - } - ], - "warningPlugins": [] - }, - { - "name": "perf-only-budget", - "request": { - "sessions": [ - { - "name": "2026-11-02T00-00-00_22222222", - "files": [ - { - "relativePath": "perf/fps.log", - "sizeBytes": 30, - "modifiedAt": "2026-11-01T00:00:00Z" - }, - { - "relativePath": "app.log", - "sizeBytes": 10, - "modifiedAt": "2026-11-01T00:00:00Z" - } - ] - }, - { - "name": "2026-11-03T00-00-00_33333333", - "files": [ - { - "relativePath": "perf.log", - "sizeBytes": 10, - "modifiedAt": "2026-11-01T00:00:00Z" - } - ] - } - ], - "currentSession": "2026-11-03T00-00-00_33333333", - "now": "2026-11-03T08:00:00Z", - "limits": { - "perfBytes": 20 - }, - "startupCleanup": false, - "legacyFiles": [] - }, - "deletions": [ - { - "relativePath": "sessions/2026-11-02T00-00-00_22222222/perf/fps.log", - "directory": false, - "reason": "perfBudget" - } - ], - "warningPlugins": [] - }, - { - "name": "live-session-always-protected", - "request": { - "sessions": [ - { - "name": "2026-11-03T00-00-00_33333333", - "files": [ - { - "relativePath": "perf.log", - "sizeBytes": 200, - "modifiedAt": "2026-11-01T00:00:00Z" - }, - { - "relativePath": "plugins/p/files/current", - "sizeBytes": 200, - "modifiedAt": "2026-11-01T00:00:00Z" - } - ] - } - ], - "currentSession": "2026-11-03T00-00-00_33333333", - "now": "2026-11-03T08:00:00Z", - "limits": { - "totalBytes": 1, - "perfBytes": 1, - "pluginFilesBytes": 1, - "maxAgeMs": 0 - }, - "startupCleanup": true, - "legacyFiles": [] - }, - "deletions": [], - "warningPlugins": [ - "p" - ] - }, - { - "name": "runtime-plugin-warning", - "request": { - "sessions": [ - { - "name": "2026-11-02T00-00-00_22222222", - "files": [ - { - "relativePath": "plugins/p/files/old", - "sizeBytes": 15, - "modifiedAt": "2026-11-01T00:00:00Z" - }, - { - "relativePath": "plugins/p/files/new", - "sizeBytes": 15, - "modifiedAt": "2026-11-02T00:00:00Z" - } - ] - } - ], - "currentSession": "2026-11-03T00-00-00_33333333", - "now": "2026-11-03T08:00:00Z", - "limits": { - "pluginFilesBytes": 20 - }, - "startupCleanup": false, - "legacyFiles": [] - }, - "deletions": [], - "warningPlugins": [ - "p" - ] - }, - { - "name": "startup-oldest-plugin-file", - "request": { - "sessions": [ - { - "name": "2026-11-02T00-00-00_22222222", - "files": [ - { - "relativePath": "plugins/p/files/new", - "sizeBytes": 15, - "modifiedAt": "2026-11-02T00:00:00Z" - }, - { - "relativePath": "plugins/p/files/old", - "sizeBytes": 15, - "modifiedAt": "2026-11-01T00:00:00Z" - } - ] - } - ], - "currentSession": "2026-11-03T00-00-00_33333333", - "now": "2026-11-03T08:00:00Z", - "limits": { - "pluginFilesBytes": 20 - }, - "startupCleanup": true, - "legacyFiles": [] - }, - "deletions": [ - { - "relativePath": "sessions/2026-11-02T00-00-00_22222222/plugins/p/files/old", - "directory": false, - "reason": "pluginFilesBudget" - } - ], - "warningPlugins": [ - "p" - ] - }, - { - "name": "legacy-counts-but-only-age-deletes", - "request": { - "sessions": [ - { - "name": "2026-11-02T00-00-00_22222222", - "files": [ - { - "relativePath": "app.log", - "sizeBytes": 20, - "modifiedAt": "2026-11-01T00:00:00Z" - } - ] - } - ], - "currentSession": "2026-11-03T00-00-00_33333333", - "now": "2026-11-03T08:00:00Z", - "limits": { - "totalBytes": 50 - }, - "startupCleanup": false, - "legacyFiles": [ - { - "relativePath": "git/lithe.recent.log", - "sizeBytes": 100, - "modifiedAt": "2026-11-01T00:00:00Z" - } - ] - }, - "deletions": [ - { - "relativePath": "sessions/2026-11-02T00-00-00_22222222", - "directory": true, - "reason": "totalBudget" - } - ], - "warningPlugins": [] - } - ], - "queries": [ - { - "name": "v1-application", - "request": { - "sources": [ - { - "relativePath": "application/lithe.legacy.log", - "text": "2026-11-03T10:00:01.123+02:00 WARN [session=abc] [scope=application.test] [sequence=00042] legacy message schema_version=1 process_id=123\n" - } - ] - }, - "messages": [ - "legacy message" - ], - "channels": [ - "app" - ], - "events": [ - "legacy" - ], - "sequences": [ - 42 - ], - "invalid": 0, - "truncated": false - }, - { - "name": "v1-language", - "request": { - "sources": [ - { - "relativePath": "language/lithe.legacy.log", - "text": "2026-11-03T10:00:01.123+02:00 WARN [session=abc] [scope=language.test] [sequence=00042] legacy message schema_version=1 process_id=123\n" - } - ] - }, - "messages": [ - "legacy message" - ], - "channels": [ - "lsp" - ], - "events": [ - "legacy" - ], - "sequences": [ - 42 - ], - "invalid": 0, - "truncated": false - }, - { - "name": "v1-git", - "request": { - "sources": [ - { - "relativePath": "git/lithe.legacy.log", - "text": "2026-11-03T10:00:01.123+02:00 WARN [session=abc] [scope=git.test] [sequence=00042] legacy message schema_version=1 process_id=123\n" - } - ] - }, - "messages": [ - "legacy message" - ], - "channels": [ - "vcs" - ], - "events": [ - "legacy" - ], - "sequences": [ - 42 - ], - "invalid": 0, - "truncated": false - }, - { - "name": "v1-performance", - "request": { - "sources": [ - { - "relativePath": "performance/lithe.legacy.log", - "text": "2026-11-03T10:00:01.123+02:00 WARN [session=abc] [scope=performance.test] [sequence=00042] legacy message schema_version=1 process_id=123\n" - } - ] - }, - "messages": [ - "legacy message" - ], - "channels": [ - "perf" - ], - "events": [ - "legacy" - ], - "sequences": [ - 42 - ], - "invalid": 0, - "truncated": false - }, - { - "name": "v1-run", - "request": { - "sources": [ - { - "relativePath": "run/lithe.legacy.log", - "text": "2026-11-03T10:00:01.123+02:00 WARN [session=abc] [scope=run.test] [sequence=00042] legacy message schema_version=1 process_id=123\n" - } - ] - }, - "messages": [ - "legacy message" - ], - "channels": [ - "run" - ], - "events": [ - "legacy" - ], - "sequences": [ - 42 - ], - "invalid": 0, - "truncated": false - }, - { - "name": "v1-plugins", - "request": { - "sources": [ - { - "relativePath": "plugins/lithe.legacy.log", - "text": "2026-11-03T10:00:01.123+02:00 WARN [session=abc] [scope=plugins.test] [sequence=00042] legacy message schema_version=1 process_id=123\n" - } - ] - }, - "messages": [ - "legacy message" - ], - "channels": [ - "plugins" - ], - "events": [ - "legacy" - ], - "sequences": [ - 42 - ], - "invalid": 0, - "truncated": false - }, - { - "name": "mixed-filtered-tail", - "request": { - "sources": [ - { - "relativePath": "vcs/git.log", - "startsMidLine": true, - "firstLineNumber": 10, - "text": "partial ignored\n2026-11-03T08:00:01.123Z WARN seq=42 event=vcs.git.command.failed op=7f3a msg=\"git fetch failed\" command=fetch duration_ms=311 exit_code=128\ninvalid\n" - }, - { - "relativePath": "git/lithe.legacy.log", - "text": "2026-11-03T10:00:01.123+02:00 WARN [session=abc] [scope=git] legacy message schema_version=1 sequence=00041 operationID=7f3a\n" - } - ], - "minimumLevel": "WARN", - "op": "7f3a", - "since": "2026-11-03T10:00:01+02:00", - "until": "2026-11-03T08:00:02Z", - "channelPrefixes": [ - "vcs" - ], - "limit": 1 - }, - "messages": [ - "git fetch failed" - ], - "channels": [ - "vcs/git" - ], - "events": [ - "vcs.git.command.failed" - ], - "sequences": [ - 42 - ], - "invalid": 1, - "truncated": true, - "warnCounts": { - "vcs": 1, - "vcs/git": 1 - }, - "lineNumbers": [ - 11 - ] - }, - { - "name": "v1-json-context-and-fields", - "request": { - "sources": [ - { - "relativePath": "run/lithe.legacy.log", - "text": "2026-11-03T08:00:01.000001Z ERROR [session=abc] [scope=run] quoted context schema_version=1 sequence=0009 operation_id=\"op one\" cwd=\"/tmp/example path\" context={\"a\":\"b c\"}\n" - } - ], - "fields": { - "cwd": "/tmp/example path" - }, - "op": "op one", - "search": "QUOTED" - }, - "messages": [ - "quoted context" - ], - "channels": [ - "run" - ], - "events": [ - "legacy" - ], - "sequences": [ - 9 - ], - "invalid": 0, - "truncated": false, - "errorCounts": { - "run": 1 - } - }, - { - "name": "v1-preserves-submillisecond-order", - "request": { - "sources": [ - { - "relativePath": "application/lithe.legacy.log", - "text": "2026-11-03T08:00:01.000002Z INFO later schema_version=1 sequence=1\n2026-11-03T08:00:01.000001Z INFO earlier schema_version=1 sequence=2\n" - } - ] - }, - "messages": [ - "earlier", - "later" - ], - "channels": [ - "app", - "app" - ], - "events": [ - "legacy", - "legacy" - ], - "sequences": [ - 2, - 1 - ], - "invalid": 0, - "truncated": false - }, - { - "name": "segmented-prefix-boundary", - "request": { - "sources": [ - { - "relativePath": "vcs/git-extra.log", - "text": "2026-11-03T08:00:01.123Z WARN seq=42 event=vcs.git.command.failed op=7f3a msg=\"git fetch failed\" command=fetch duration_ms=311 exit_code=128\n" - } - ], - "channelPrefixes": [ - "vcs/git" - ] - }, - "messages": [], - "channels": [], - "events": [], - "sequences": [], - "invalid": 0, - "truncated": false - }, - { - "name": "exact-level-set", - "request": { - "sources": [ - { - "relativePath": "app.log", - "text": "2026-11-03T08:00:00.000Z DEBUG seq=1 event=app.trace msg=trace\n2026-11-03T08:00:01.000Z INFO seq=2 event=app.ready msg=ready\n2026-11-03T08:00:02.000Z ERROR seq=3 event=app.failed msg=failed\n" - } - ], - "levels": [ - "DEBUG", - "ERROR" - ] - }, - "messages": [ - "trace", - "failed" - ], - "channels": [ - "app", - "app" - ], - "events": [ - "app.trace", - "app.failed" - ], - "sequences": [ - 1, - 3 - ], - "invalid": 0, - "truncated": false - } - ], - "errorCodes": { - "-32031": "unknownChannelRoot", - "-32032": "unsupportedChannelShape", - "-32033": "invalidSegment", - "-32034": "invalidSessionUuid", - "-32035": "invalidTimestamp", - "-32036": "invalidSessionDirectory", - "-32037": "invalidFieldKey", - "-32038": "reservedContextKey", - "-32039": "duplicateContextKey", - "-32040": "invalidFileHeader", - "-32041": "invalidLineSyntax", - "-32042": "invalidEscape", - "-32043": "reservedFieldOrder", - "-32044": "invalidSequence", - "-32045": "invalidLevel", - "-32046": "lineBudget", - "-32047": "nonScalarContext", - "-32048": "invalidEventOrOperation", - "-32049": "invalidRetentionInventory", - "-32050": "invalidQuerySource", - "-32051": "invalidEventShape", - "-32052": "reversedQueryRange", - "-32053": "unknownCatalogEvent", - "-32054": "missingCatalogField", - "-32055": "invalidCatalogField", - "-32056": "unknownCatalogField", - "-32057": "catalogLevelMismatch", - "-32058": "invalidCollectionInventory", - "-32059": "coreEventOwnerMismatch", - "-32060": "invalidLogFilterExpression", - "-32061": "invalidHistogramBucketCount", - "-32062": "logCopyInputBudget", - "-32063": "noncanonicalRedactedLogRecord" - }, - "catalogBatch": [ - { - "name": "catalog message and channel", - "input": { - "ts": "2026-11-03T08:00:00Z", - "level": "WARN", - "seq": 1, - "event": "app.font.missing", - "msg": "untrusted message", - "fields": { - "font": "FixtureFont" - } - }, - "channel": "app", - "contains": "Bundled font FixtureFont missing" - }, - { - "name": "unknown event", - "input": { - "ts": "2026-11-03T08:00:00Z", - "level": "WARN", - "seq": 1, - "event": "unknown.event", - "msg": "untrusted message", - "fields": { - "font": "FixtureFont" - } - }, - "code": -32053 - }, - { - "name": "missing field", - "input": { - "ts": "2026-11-03T08:00:00Z", - "level": "WARN", - "seq": 1, - "event": "app.font.missing", - "msg": "untrusted message", - "fields": {} - }, - "code": -32054 - }, - { - "name": "invalid field", - "input": { - "ts": "2026-11-03T08:00:00Z", - "level": "WARN", - "seq": 1, - "event": "app.font.missing", - "msg": "untrusted message", - "fields": { - "font": "has spaces" - } - }, - "code": -32055 - }, - { - "name": "unknown field", - "input": { - "ts": "2026-11-03T08:00:00Z", - "level": "WARN", - "seq": 1, - "event": "app.font.missing", - "msg": "untrusted message", - "fields": { - "font": "FixtureFont", - "extra": true - } - }, - "code": -32056 - }, - { - "name": "level mismatch", - "input": { - "ts": "2026-11-03T08:00:00Z", - "level": "INFO", - "seq": 1, - "event": "app.font.missing", - "msg": "untrusted message", - "fields": { - "font": "FixtureFont" - } - }, - "code": -32057 - }, - { - "name": "legacy identity is not a catalog event", - "input": { - "ts": "2026-11-03T08:00:00Z", - "level": "WARN", - "seq": 1, - "event": "legacy", - "msg": "untrusted message", - "fields": { - "font": "FixtureFont" - } - }, - "code": -32053 - } - ], - "catalogNormalization": [ - { - "event": "editor.document.open_failed", - "level": "ERROR", - "fields": { - "reason": "unavailable", - "error_code": 42, - "error_domain": "fixture" - }, - "diagnosticField": "error" - }, - { - "event": "lsp.stderr.received", - "level": "DEBUG", - "fields": { - "server": "fixture" - }, - "diagnosticField": "diagnostic" - } - ], - "lspMaintenanceWarnings": [ - { - "code": "mavenSettingsUnchanged", - "stage": "mavenSettings" - }, - { - "code": "configurationCleanupFailed", - "stage": "configurationCleanup" - }, - { - "code": "mavenProfileStartFailed", - "stage": "mavenProfileStart" - }, - { - "code": "upstreamStderr", - "stage": "stderr" - }, - { - "code": "stderrReadFailed", - "stage": "stderr" - }, - { - "code": "navigationLimited", - "stage": "navigation" - }, - { - "code": "navigationMarkerFailed", - "stage": "navigation" - }, - { - "code": "workspaceImportStalled", - "stage": "workspaceImport" - }, - { - "code": "mavenProfileUpdateFailed", - "stage": "mavenProfile" - }, - { - "code": "shutdownTimeout", - "stage": "shutdown" - }, - { - "code": "mavenProfileTimeout", - "stage": "mavenProfile" - } - ], - "collection": [ - { - "name": "active channels before rotations under byte pressure", - "request": { - "files": [ - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/lsp/z~2.log", - "sizeBytes": 2097152, - "modifiedAt": "2026-11-03T01:00:00Z" - }, - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/lsp/z~1.log", - "sizeBytes": 2097152, - "modifiedAt": "2026-11-03T01:00:00Z" - }, - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/lsp/z.log", - "sizeBytes": 2097152, - "modifiedAt": "2026-11-03T01:00:00Z" - }, - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/lsp/a~2.log", - "sizeBytes": 2097152, - "modifiedAt": "2026-11-03T01:00:00Z" - }, - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/lsp/a~1.log", - "sizeBytes": 2097152, - "modifiedAt": "2026-11-03T01:00:00Z" - }, - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/lsp/a.log", - "sizeBytes": 2097152, - "modifiedAt": "2026-11-03T01:00:00Z" - } - ], - "currentSession": "", - "session": "all", - "category": "language" - }, - "reads": [ - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/lsp/a.log", - "offset": 0, - "maxBytes": 2097152 - }, - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/lsp/z.log", - "offset": 0, - "maxBytes": 2097152 - }, - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/lsp/a~1.log", - "offset": 0, - "maxBytes": 2097152 - }, - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/lsp/z~1.log", - "offset": 0, - "maxBytes": 2097152 - }, - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/lsp/a~2.log", - "offset": 0, - "maxBytes": 2097152 - } - ], - "truncated": true, - "estimatedBytes": 10485760, - "sessions": [ - "2026-11-03T00-00-00_abcdef12" - ] - }, - { - "name": "update maps to application and plugin files stay opaque", - "request": { - "files": [ - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/update.log", - "sizeBytes": 10, - "modifiedAt": "2026-11-03T01:00:00Z" - }, - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/plugins/example/files/native.log", - "sizeBytes": 10, - "modifiedAt": "2026-11-03T01:00:00Z" - } - ], - "currentSession": "2026-11-03T00-00-00_abcdef12", - "session": "current", - "category": "application" - }, - "reads": [ - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/update.log", - "offset": 0, - "maxBytes": 10 - } - ], - "truncated": false, - "estimatedBytes": 10, - "sessions": [ - "2026-11-03T00-00-00_abcdef12" - ] - }, - { - "name": "current and previous ignore unparseable and opaque files", - "request": { - "files": [ - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/app.log", - "sizeBytes": 100, - "modifiedAt": "2026-11-03T01:00:00Z" - }, - { - "relativePath": "sessions/2026-11-02T00-00-00_12345678/app.log", - "sizeBytes": 50, - "modifiedAt": "2026-11-02T01:00:00Z" - }, - { - "relativePath": "sessions/2026-11-03T00-00-00_abcdef12/plugins/p/files/server.log", - "sizeBytes": 1000000, - "modifiedAt": "2026-11-03T01:00:00Z" - } - ], - "currentSession": "2026-11-03T00-00-00_abcdef12", - "session": "previous", - "category": null - }, - "reads": [ - { - "relativePath": "sessions/2026-11-02T00-00-00_12345678/app.log", - "offset": 0, - "maxBytes": 50 - } - ], - "truncated": false, - "estimatedBytes": 50, - "sessions": [ - "2026-11-02T00-00-00_12345678" - ] - } - ], - "windowCommands": [ - { - "command": "diagnostics.parseLogFilter", - "request": { - "expression": "\"😀 a\" level>=WrN" - }, - "expected": { - "terms": [ - { - "kind": "text", - "value": "😀 a", - "negate": false, - "start": 0, - "end": 6 - }, - { - "kind": "level_at_least", - "value": "warn", - "negate": false, - "start": 7, - "end": 17 - } - ], - "errors": [] - } - }, - { - "command": "diagnostics.parseLogFilter", - "request": { - "expression": "level:bad" - }, - "expected": { - "terms": [], - "errors": [ - { - "start": 0, - "end": 9, - "code": "invalidLevel", - "message": "Unknown log severity" - } - ] - } - }, - { - "command": "diagnostics.composeLogFilter", - "request": { - "expression": "event:old foo", - "term": { - "kind": "event", - "value": "app.failed", - "negate": false - } - }, - "expected": { - "expression": "event:app.failed foo" - } - }, - { - "command": "diagnostics.composeLogFilter", - "request": { - "expression": "", - "term": { - "kind": "level", - "value": "bad", - "negate": false - } - }, - "code": -32060 - }, - { - "command": "diagnostics.formatLogRecords", - "request": { - "lines": [ - "2026-11-03T00:00:00.000Z WARN seq=1 event=app.failed msg=failed" - ], - "format": "markdown" - }, - "expected": { - "text": "**Lithe**\n\n```ndjson\n2026-11-03T00:00:00.000Z WARN seq=1 event=app.failed msg=failed\n```\n" - } - }, - { - "command": "diagnostics.formatLogRecords", - "request": { - "lines": [ - "2026-11-03T00:00:00.000Z WARN seq=1 event=app.failed msg=failed token=unsafe" - ], - "format": "json" - }, - "code": -32063 - }, - { - "command": "diagnostics.queryLogsV2", - "request": { - "expression": "/[/ " - }, - "code": -32060 - }, - { - "command": "diagnostics.queryLogsV2", - "request": { - "histogramBuckets": 0 - }, - "code": -32061 - }, - { - "command": "diagnostics.formatLogRecords", - "request": { - "lines": [ - "2026-11-03T00:00:00.000Z WARN seq=1 event=app.failed msg=failed" - ], - "format": "json" - }, - "expected": { - "text": "{\n \"ts\": \"2026-11-03T00:00:00.000Z\",\n \"level\": \"WARN\",\n \"seq\": 1,\n \"event\": \"app.failed\",\n \"msg\": \"failed\",\n \"fields\": {}\n}" - } - }, - { - "command": "diagnostics.planLogCollection", - "request": { - "files": [], - "currentSession": "", - "session": "all", - "recentSessions": 2, - "since": "2026-11-03T00:00:00Z" - }, - "expected": { - "reads": [], - "truncated": false, - "estimatedBytes": 0, - "sessions": [] - } - }, - { - "command": "diagnostics.buildManifest", - "request": { - "environment": { - "appVersion": "1", - "osName": "macOS", - "osVersion": "27", - "cpuCoreCount": 1, - "memoryRssBytes": 0, - "diskFreeBytes": 0 - }, - "files": [], - "generatedAtEpochMilliseconds": 0 - }, - "expected": { - "schemaVersion": 1, - "generatedAtEpochMilliseconds": 0, - "redaction": "core-v2", - "environment": { - "appVersion": "1", - "osName": "macOS", - "osVersion": "27", - "cpuCoreCount": 1, - "memoryRssBytes": 0, - "diskFreeBytes": 0 - }, - "files": [] - } - }, - { - "command": "diagnostics.formatLogRecords", - "request": { - "lines": [], - "format": "json" - }, - "repeatLine": "2026-11-03T00:00:00.000Z WARN seq=1 event=app.failed msg=failed", - "repeatCount": 10001, - "code": -32062 - }, - { - "command": "diagnostics.queryLogsV2", - "request": { - "sources": [ - { - "relativePath": "app.log", - "text": "2026-11-03T00:00:00.000Z WARN seq=1 event=app.failed op=one msg=failed" - } - ], - "op": "one", - "histogramBuckets": 1, - "expression": "level>=info" - }, - "expected": { - "records": [ - { - "line": "2026-11-03T00:00:00.000Z WARN seq=1 event=app.failed op=one msg=failed", - "channel": "app", - "relativePath": "app.log", - "lineNumber": 1, - "foldKey": "c4d60ef213ff7102", - "epochMs": 1793664000000, - "opOffsetMs": 0, - "ts": "2026-11-03T00:00:00.000Z", - "level": "WARN", - "seq": 1, - "event": "app.failed", - "op": "one", - "msg": "failed", - "fields": {} - } - ], - "channelCounts": { - "app": { - "warn": 1, - "error": 0 - } - }, - "truncated": false, - "skippedInvalidLines": 0, - "foldMinimumRun": 3, - "channels": { - "app": { - "total": 1, - "warn": 1, - "error": 0 - } - }, - "histogram": { - "startEpochMs": 1793664000000, - "endEpochMs": 1793664000001, - "bucketMs": 1, - "buckets": [ - { - "debug": 0, - "info": 0, - "warn": 1, - "error": 0 - } - ] - }, - "opSummary": { - "op": "one", - "count": 1, - "firstEpochMs": 1793664000000, - "lastEpochMs": 1793664000000, - "durationMs": 0 - }, - "sessionSequences": { - "": 1 - } - } - }, - { - "name": "session watermark", - "command": "diagnostics.queryLogsV2", - "request": { - "sources": [ - { - "relativePath": "sessions/2026-11-03T00-00-00_12345678/app.log", - "text": "2026-11-03T00:00:01.000Z INFO seq=2 event=app.ready msg=ready" - } - ], - "afterSequences": { - "2026-11-03T00-00-00_12345678": 2 - } - }, - "expected": { - "records": [], - "channelCounts": {}, - "truncated": false, - "skippedInvalidLines": 0, - "foldMinimumRun": 3, - "channels": { - "app": { - "total": 1, - "warn": 0, - "error": 0 - } - }, - "histogram": null, - "sessionSequences": { - "2026-11-03T00-00-00_12345678": 2 - } - } - }, - { - "name": "disjoint export range", - "command": "diagnostics.queryLogsV2", - "request": { - "sources": [ - { - "relativePath": "sessions/2026-11-03T00-00-00_12345678/app.log", - "text": "2026-11-03T00:00:01.000Z INFO seq=2 event=app.ready msg=ready" - } - ], - "since": "2026-11-03T00:00:02Z", - "filterUntil": "2026-11-03T00:00:01Z" - }, - "expected": { - "records": [], - "channelCounts": {}, - "truncated": false, - "skippedInvalidLines": 0, - "foldMinimumRun": 3, - "channels": { - "app": { - "total": 1, - "warn": 0, - "error": 0 - } - }, - "histogram": null, - "sessionSequences": { - "2026-11-03T00-00-00_12345678": 2 - } - } - } - ] -} diff --git a/shared/fixtures/diagnostics/redact-text-v1.json b/shared/fixtures/diagnostics/redact-text-v1.json deleted file mode 100644 index 3df66d9c06..0000000000 --- a/shared/fixtures/diagnostics/redact-text-v1.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "bearer authorization header", - "request": { - "command": "diagnostics.redactText", - "payload": { "text": "Authorization: Bearer abc123def456" } - }, - "expected": { "redacted": "Authorization=" } - }, - { - "name": "sensitive query parameter", - "request": { - "command": "diagnostics.redactText", - "payload": { "text": "https://api.example.com/x?token=abc&user=me" } - }, - "expected": { - "redacted": "https://api.example.com/x?token=&user=me" - } - }, - { - "name": "quoted value containing spaces", - "request": { - "command": "diagnostics.redactText", - "payload": { "text": "password=\"hunter two\"" } - }, - "expected": { "redacted": "password=" } - }, - { - "name": "json style sensitive field", - "request": { - "command": "diagnostics.redactText", - "payload": { "text": "{\"password\": \"hunter2\"}" } - }, - "expected": { "redacted": "{\"password=}" } - }, - { - "name": "macOS home directory path", - "request": { - "command": "diagnostics.redactText", - "payload": { "text": "/Users/example/src/website/file.log" } - }, - "expected": { "redacted": "/src/website/file.log" } - }, - { - "name": "windows home directory path", - "request": { - "command": "diagnostics.redactText", - "payload": { "text": "C:\\Users\\example\\AppData\\lithe.log" } - }, - "expected": { "redacted": "\\AppData\\lithe.log" } - }, - { - "name": "unrelated text is unchanged", - "request": { - "command": "diagnostics.redactText", - "payload": { "text": "plain diagnostic line with no secrets" } - }, - "expected": { "redacted": "plain diagnostic line with no secrets" } - } - ] -} diff --git a/shared/fixtures/diff/compare-texts-v1.json b/shared/fixtures/diff/compare-texts-v1.json deleted file mode 100644 index ab1dde549d..0000000000 --- a/shared/fixtures/diff/compare-texts-v1.json +++ /dev/null @@ -1,697 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "single line edit pairs as a change", - "oldText": "before\n", - "newText": "after\n", - "expected": { - "rows": [ - { - "oldLine": 1, - "newLine": 1, - "left": "before", - "right": "after", - "kind": "changed" - } - ], - "lines": [ - { - "kind": "removed", - "content": "before", - "oldLine": 1, - "newLine": null - }, - { - "kind": "added", - "content": "after", - "oldLine": null, - "newLine": 1 - } - ], - "oldLineCount": 1, - "newLineCount": 1, - "additions": 1, - "deletions": 1 - } - }, - { - "name": "CRLF and LF compare equal", - "oldText": "alpha\r\nbeta\r\n", - "newText": "alpha\nbeta", - "expected": { - "rows": [ - { - "oldLine": 1, - "newLine": 1, - "left": "alpha", - "kind": "context" - }, - { - "oldLine": 2, - "newLine": 2, - "left": "beta", - "kind": "context" - } - ], - "lines": [ - { - "kind": "context", - "content": "alpha", - "oldLine": 1, - "newLine": 1 - }, - { - "kind": "context", - "content": "beta", - "oldLine": 2, - "newLine": 2 - } - ], - "oldLineCount": 2, - "newLineCount": 2, - "additions": 0, - "deletions": 0 - } - }, - { - "name": "lone carriage return terminates a line", - "oldText": "alpha\rbeta", - "newText": "alpha\nbeta\n", - "expected": { - "rows": [ - { - "oldLine": 1, - "newLine": 1, - "left": "alpha", - "kind": "context" - }, - { - "oldLine": 2, - "newLine": 2, - "left": "beta", - "kind": "context" - } - ], - "lines": [ - { - "kind": "context", - "content": "alpha", - "oldLine": 1, - "newLine": 1 - }, - { - "kind": "context", - "content": "beta", - "oldLine": 2, - "newLine": 2 - } - ], - "oldLineCount": 2, - "newLineCount": 2, - "additions": 0, - "deletions": 0 - } - }, - { - "name": "final terminator does not add an empty line", - "oldText": "only\n", - "newText": "only", - "expected": { - "rows": [ - { - "oldLine": 1, - "newLine": 1, - "left": "only", - "kind": "context" - } - ], - "lines": [ - { - "kind": "context", - "content": "only", - "oldLine": 1, - "newLine": 1 - } - ], - "oldLineCount": 1, - "newLineCount": 1, - "additions": 0, - "deletions": 0 - } - }, - { - "name": "empty baseline lists every line as added", - "oldText": "", - "newText": "first\nsecond\n", - "expected": { - "rows": [ - { - "oldLine": null, - "newLine": 1, - "left": null, - "right": "first", - "kind": "addition" - }, - { - "oldLine": null, - "newLine": 2, - "left": null, - "right": "second", - "kind": "addition" - } - ], - "lines": [ - { - "kind": "added", - "content": "first", - "oldLine": null, - "newLine": 1 - }, - { - "kind": "added", - "content": "second", - "oldLine": null, - "newLine": 2 - } - ], - "oldLineCount": 0, - "newLineCount": 2, - "additions": 2, - "deletions": 0 - } - }, - { - "name": "empty current text lists every line as removed", - "oldText": "first\nsecond\n", - "newText": "", - "expected": { - "rows": [ - { - "oldLine": 1, - "newLine": null, - "left": "first", - "kind": "removal" - }, - { - "oldLine": 2, - "newLine": null, - "left": "second", - "kind": "removal" - } - ], - "lines": [ - { - "kind": "removed", - "content": "first", - "oldLine": 1, - "newLine": null - }, - { - "kind": "removed", - "content": "second", - "oldLine": 2, - "newLine": null - } - ], - "oldLineCount": 2, - "newLineCount": 0, - "additions": 0, - "deletions": 2 - } - }, - { - "name": "blank lines are real lines", - "oldText": "a\n\n\nb\n", - "newText": "a\n\nb\n", - "expected": { - "rows": [ - { - "oldLine": 1, - "newLine": 1, - "left": "a", - "kind": "context" - }, - { - "oldLine": 2, - "newLine": 2, - "left": "", - "kind": "context" - }, - { - "oldLine": 3, - "newLine": null, - "left": "", - "kind": "removal" - }, - { - "oldLine": 4, - "newLine": 3, - "left": "b", - "kind": "context" - } - ], - "lines": [ - { - "kind": "context", - "content": "a", - "oldLine": 1, - "newLine": 1 - }, - { - "kind": "context", - "content": "", - "oldLine": 2, - "newLine": 2 - }, - { - "kind": "removed", - "content": "", - "oldLine": 3, - "newLine": null - }, - { - "kind": "context", - "content": "b", - "oldLine": 4, - "newLine": 3 - } - ], - "oldLineCount": 4, - "newLineCount": 3, - "additions": 0, - "deletions": 1 - } - }, - { - "name": "unrelated blocks stay separate removals and additions", - "oldText": "keep\nimport Foundation\nimport AppKit\ntail\n", - "newText": "keep\nlet x = 1\nlet y = 2\nlet z = 3\ntail\n", - "expected": { - "rows": [ - { - "oldLine": 1, - "newLine": 1, - "left": "keep", - "kind": "context" - }, - { - "oldLine": 2, - "newLine": null, - "left": "import Foundation", - "kind": "removal" - }, - { - "oldLine": 3, - "newLine": null, - "left": "import AppKit", - "kind": "removal" - }, - { - "oldLine": null, - "newLine": 2, - "left": null, - "right": "let x = 1", - "kind": "addition" - }, - { - "oldLine": null, - "newLine": 3, - "left": null, - "right": "let y = 2", - "kind": "addition" - }, - { - "oldLine": null, - "newLine": 4, - "left": null, - "right": "let z = 3", - "kind": "addition" - }, - { - "oldLine": 4, - "newLine": 5, - "left": "tail", - "kind": "context" - } - ], - "lines": [ - { - "kind": "context", - "content": "keep", - "oldLine": 1, - "newLine": 1 - }, - { - "kind": "removed", - "content": "import Foundation", - "oldLine": 2, - "newLine": null - }, - { - "kind": "removed", - "content": "import AppKit", - "oldLine": 3, - "newLine": null - }, - { - "kind": "added", - "content": "let x = 1", - "oldLine": null, - "newLine": 2 - }, - { - "kind": "added", - "content": "let y = 2", - "oldLine": null, - "newLine": 3 - }, - { - "kind": "added", - "content": "let z = 3", - "oldLine": null, - "newLine": 4 - }, - { - "kind": "context", - "content": "tail", - "oldLine": 4, - "newLine": 5 - } - ], - "oldLineCount": 4, - "newLineCount": 5, - "additions": 3, - "deletions": 2 - } - }, - { - "name": "similar lines pair even when positions differ", - "oldText": "let total = compute(a, b);\n", - "newText": "// recompute the total\nlet total = compute(a, b, c);\n", - "expected": { - "rows": [ - { - "oldLine": null, - "newLine": 1, - "left": null, - "right": "// recompute the total", - "kind": "addition" - }, - { - "oldLine": 1, - "newLine": 2, - "left": "let total = compute(a, b);", - "right": "let total = compute(a, b, c);", - "kind": "changed" - } - ], - "lines": [ - { - "kind": "removed", - "content": "let total = compute(a, b);", - "oldLine": 1, - "newLine": null - }, - { - "kind": "added", - "content": "// recompute the total", - "oldLine": null, - "newLine": 1 - }, - { - "kind": "added", - "content": "let total = compute(a, b, c);", - "oldLine": null, - "newLine": 2 - } - ], - "oldLineCount": 1, - "newLineCount": 2, - "additions": 2, - "deletions": 1 - } - }, - { - "name": "insertion keeps surrounding context numbered", - "oldText": "one\ntwo\nthree\n", - "newText": "one\ntwo\ninserted\nthree\n", - "expected": { - "rows": [ - { - "oldLine": 1, - "newLine": 1, - "left": "one", - "kind": "context" - }, - { - "oldLine": 2, - "newLine": 2, - "left": "two", - "kind": "context" - }, - { - "oldLine": null, - "newLine": 3, - "left": null, - "right": "inserted", - "kind": "addition" - }, - { - "oldLine": 3, - "newLine": 4, - "left": "three", - "kind": "context" - } - ], - "lines": [ - { - "kind": "context", - "content": "one", - "oldLine": 1, - "newLine": 1 - }, - { - "kind": "context", - "content": "two", - "oldLine": 2, - "newLine": 2 - }, - { - "kind": "added", - "content": "inserted", - "oldLine": null, - "newLine": 3 - }, - { - "kind": "context", - "content": "three", - "oldLine": 3, - "newLine": 4 - } - ], - "oldLineCount": 3, - "newLineCount": 4, - "additions": 1, - "deletions": 0 - } - }, - { - "name": "patience anchors on unique lines instead of braces", - "oldText": "fn a() {\n one();\n}\n\nfn b() {\n two();\n}\n", - "newText": "fn b() {\n two();\n}\n\nfn a() {\n one();\n}\n", - "expected": { - "rows": [ - { - "oldLine": null, - "newLine": 1, - "left": null, - "right": "fn b() {", - "kind": "addition" - }, - { - "oldLine": null, - "newLine": 2, - "left": null, - "right": " two();", - "kind": "addition" - }, - { - "oldLine": null, - "newLine": 3, - "left": null, - "right": "}", - "kind": "addition" - }, - { - "oldLine": null, - "newLine": 4, - "left": null, - "right": "", - "kind": "addition" - }, - { - "oldLine": 1, - "newLine": 5, - "left": "fn a() {", - "kind": "context" - }, - { - "oldLine": 2, - "newLine": 6, - "left": " one();", - "kind": "context" - }, - { - "oldLine": 3, - "newLine": 7, - "left": "}", - "kind": "context" - }, - { - "oldLine": 4, - "newLine": null, - "left": "", - "kind": "removal" - }, - { - "oldLine": 5, - "newLine": null, - "left": "fn b() {", - "kind": "removal" - }, - { - "oldLine": 6, - "newLine": null, - "left": " two();", - "kind": "removal" - }, - { - "oldLine": 7, - "newLine": null, - "left": "}", - "kind": "removal" - } - ], - "lines": [ - { - "kind": "added", - "content": "fn b() {", - "oldLine": null, - "newLine": 1 - }, - { - "kind": "added", - "content": " two();", - "oldLine": null, - "newLine": 2 - }, - { - "kind": "added", - "content": "}", - "oldLine": null, - "newLine": 3 - }, - { - "kind": "added", - "content": "", - "oldLine": null, - "newLine": 4 - }, - { - "kind": "context", - "content": "fn a() {", - "oldLine": 1, - "newLine": 5 - }, - { - "kind": "context", - "content": " one();", - "oldLine": 2, - "newLine": 6 - }, - { - "kind": "context", - "content": "}", - "oldLine": 3, - "newLine": 7 - }, - { - "kind": "removed", - "content": "", - "oldLine": 4, - "newLine": null - }, - { - "kind": "removed", - "content": "fn b() {", - "oldLine": 5, - "newLine": null - }, - { - "kind": "removed", - "content": " two();", - "oldLine": 6, - "newLine": null - }, - { - "kind": "removed", - "content": "}", - "oldLine": 7, - "newLine": null - } - ], - "oldLineCount": 7, - "newLineCount": 7, - "additions": 4, - "deletions": 4 - } - }, - { - "name": "reindentation pairs as a change", - "oldText": " return value\nend\n", - "newText": "\t\treturn value\nend\n", - "expected": { - "rows": [ - { - "oldLine": 1, - "newLine": 1, - "left": " return value", - "right": "\t\treturn value", - "kind": "changed" - }, - { - "oldLine": 2, - "newLine": 2, - "left": "end", - "kind": "context" - } - ], - "lines": [ - { - "kind": "removed", - "content": " return value", - "oldLine": 1, - "newLine": null - }, - { - "kind": "added", - "content": "\t\treturn value", - "oldLine": null, - "newLine": 1 - }, - { - "kind": "context", - "content": "end", - "oldLine": 2, - "newLine": 2 - } - ], - "oldLineCount": 2, - "newLineCount": 2, - "additions": 1, - "deletions": 1 - } - } - ] -} diff --git a/shared/fixtures/documents/encoding-explicit-reopen-v1.json b/shared/fixtures/documents/encoding-explicit-reopen-v1.json deleted file mode 100644 index d5f1c926d9..0000000000 --- a/shared/fixtures/documents/encoding-explicit-reopen-v1.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "gbk-bytes-explicitly-read-as-utf8", - "bytes": [214, 208, 206, 196], - "storageEncoding": "GBK", - "readEncoding": "UTF-8", - "expectedText": "����", - "expectedReadEncoding": "UTF-8", - "expectedSaveEncoding": "GBK" - } - ] -} diff --git a/shared/fixtures/documents/lifecycle-v1.json b/shared/fixtures/documents/lifecycle-v1.json deleted file mode 100644 index b3eeb0adb4..0000000000 --- a/shared/fixtures/documents/lifecycle-v1.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "clean-external-change-reloads-disk", - "state": { - "status": "clean", - "revision": 2 - }, - "event": { - "type": "externalChanged" - }, - "expected": { - "state": { - "status": "clean", - "revision": 2 - }, - "action": "reloadFromDisk" - } - }, - { - "name": "dirty-external-change-preserves-editor", - "state": { - "status": "dirty", - "revision": 4, - "savedRevision": 2 - }, - "event": { - "type": "externalChanged" - }, - "expected": { - "state": { - "status": "conflict", - "revision": 4, - "savedRevision": 2 - }, - "action": "showConflict" - } - }, - { - "name": "save-completion-cleans-matching-revision", - "state": { - "status": "saving", - "revision": 5, - "savedRevision": 3, - "saveRevision": 5, - "operationId": "save-1" - }, - "event": { - "type": "saveSucceeded", - "operationId": "save-1" - }, - "expected": { - "state": { - "status": "clean", - "revision": 5 - }, - "action": "none" - } - }, - { - "name": "stale-save-completion-is-ignored", - "state": { - "status": "saving", - "revision": 7, - "savedRevision": 3, - "saveRevision": 6, - "operationId": "save-new" - }, - "event": { - "type": "saveSucceeded", - "operationId": "save-old" - }, - "expected": { - "state": { - "status": "saving", - "revision": 7, - "savedRevision": 3, - "saveRevision": 6, - "operationId": "save-new" - }, - "action": "ignoreStaleResult" - } - }, - { - "name": "missing-clean-file-preserves-editor", - "state": { - "status": "clean", - "revision": 2 - }, - "event": { - "type": "diskConflict" - }, - "expected": { - "state": { - "status": "conflict", - "revision": 2, - "savedRevision": 2 - }, - "action": "showConflict" - } - } - ] -} diff --git a/shared/fixtures/documents/save-batch-v1.json b/shared/fixtures/documents/save-batch-v1.json deleted file mode 100644 index 3a21eca8ed..0000000000 --- a/shared/fixtures/documents/save-batch-v1.json +++ /dev/null @@ -1,410 +0,0 @@ -{ - "version": 1, - "maxDocuments": 10000, - "plan": [ - { - "name": "writable-dirty-documents-in-open-order", - "request": { - "documents": [ - { - "id": "b", - "dirty": true, - "readOnly": false, - "contentSynchronized": true - }, - { - "id": "a", - "dirty": false, - "readOnly": false, - "contentSynchronized": true - }, - { - "id": "c", - "dirty": true, - "readOnly": false, - "contentSynchronized": true - } - ] - }, - "expected": { - "members": [ - "b", - "c" - ] - } - }, - { - "name": "read-only-documents-never-take-part", - "request": { - "documents": [ - { - "id": "a", - "dirty": true, - "readOnly": true, - "contentSynchronized": true - }, - { - "id": "b", - "dirty": false, - "readOnly": true, - "contentSynchronized": false - } - ] - }, - "expected": { - "members": [] - } - }, - { - "name": "clean-model-with-unsynchronized-editor-input-takes-part", - "request": { - "documents": [ - { - "id": "a", - "dirty": false, - "readOnly": false, - "contentSynchronized": false - }, - { - "id": "b", - "dirty": false, - "readOnly": false, - "contentSynchronized": true - } - ] - }, - "expected": { - "members": [ - "a" - ] - } - }, - { - "name": "duplicate-identity-is-rejected", - "request": { - "documents": [ - { - "id": "a", - "dirty": true, - "readOnly": false, - "contentSynchronized": true - }, - { - "id": "a", - "dirty": false, - "readOnly": false, - "contentSynchronized": true - } - ] - }, - "expectedError": "invalid_request" - }, - { - "name": "empty-identity-is-rejected", - "request": { - "documents": [ - { - "id": "", - "dirty": true, - "readOnly": false, - "contentSynchronized": true - } - ] - }, - "expectedError": "invalid_request" - } - ], - "reduce": [ - { - "name": "every-member-saved", - "request": { - "members": [ - "a", - "b" - ], - "results": [ - { - "id": "b", - "outcome": "saved" - }, - { - "id": "a", - "outcome": "saved" - } - ], - "documents": [ - { - "id": "a", - "dirty": false, - "readOnly": false, - "contentSynchronized": true - }, - { - "id": "b", - "dirty": false, - "readOnly": false, - "contentSynchronized": true - } - ] - }, - "expected": { - "status": "saved", - "savedCount": 2, - "failed": [], - "cancelled": [], - "remainingDirty": [] - } - }, - { - "name": "a-failure-does-not-hide-later-successes", - "request": { - "members": [ - "a", - "b", - "c" - ], - "results": [ - { - "id": "a", - "outcome": "saved" - }, - { - "id": "b", - "outcome": "failed" - }, - { - "id": "c", - "outcome": "saved" - } - ], - "documents": [ - { - "id": "a", - "dirty": false, - "readOnly": false, - "contentSynchronized": true - }, - { - "id": "b", - "dirty": true, - "readOnly": false, - "contentSynchronized": true - }, - { - "id": "c", - "dirty": false, - "readOnly": false, - "contentSynchronized": true - } - ] - }, - "expected": { - "status": "failed", - "savedCount": 2, - "failed": [ - "b" - ], - "cancelled": [], - "remainingDirty": [ - "b" - ] - } - }, - { - "name": "member-edited-while-saving-stays-incomplete", - "request": { - "members": [ - "a" - ], - "results": [ - { - "id": "a", - "outcome": "saved" - } - ], - "documents": [ - { - "id": "a", - "dirty": true, - "readOnly": false, - "contentSynchronized": true - } - ] - }, - "expected": { - "status": "incomplete", - "savedCount": 0, - "failed": [], - "cancelled": [], - "remainingDirty": [ - "a" - ] - } - }, - { - "name": "document-dirtied-during-the-batch-stays-incomplete", - "request": { - "members": [ - "a" - ], - "results": [ - { - "id": "a", - "outcome": "saved" - } - ], - "documents": [ - { - "id": "a", - "dirty": false, - "readOnly": false, - "contentSynchronized": true - }, - { - "id": "new", - "dirty": true, - "readOnly": false, - "contentSynchronized": true - } - ] - }, - "expected": { - "status": "incomplete", - "savedCount": 1, - "failed": [], - "cancelled": [], - "remainingDirty": [ - "new" - ] - } - }, - { - "name": "dirty-read-only-document-keeps-the-batch-incomplete", - "request": { - "members": [], - "results": [], - "documents": [ - { - "id": "a", - "dirty": true, - "readOnly": true, - "contentSynchronized": true - } - ] - }, - "expected": { - "status": "incomplete", - "savedCount": 0, - "failed": [], - "cancelled": [], - "remainingDirty": [ - "a" - ] - } - }, - { - "name": "cancellation-takes-precedence-over-failure", - "request": { - "members": [ - "a", - "b" - ], - "results": [ - { - "id": "a", - "outcome": "failed" - }, - { - "id": "b", - "outcome": "cancelled" - } - ], - "documents": [ - { - "id": "a", - "dirty": true, - "readOnly": false, - "contentSynchronized": true - }, - { - "id": "b", - "dirty": true, - "readOnly": false, - "contentSynchronized": true - } - ] - }, - "expected": { - "status": "cancelled", - "savedCount": 0, - "failed": [ - "a" - ], - "cancelled": [ - "b" - ], - "remainingDirty": [ - "a", - "b" - ] - } - }, - { - "name": "missing-member-result-is-rejected", - "request": { - "members": [ - "a", - "b" - ], - "results": [ - { - "id": "a", - "outcome": "saved" - } - ], - "documents": [] - }, - "expectedError": "invalid_request" - }, - { - "name": "result-for-a-non-member-is-rejected", - "request": { - "members": [ - "a" - ], - "results": [ - { - "id": "a", - "outcome": "saved" - }, - { - "id": "x", - "outcome": "saved" - } - ], - "documents": [] - }, - "expectedError": "invalid_request" - }, - { - "name": "repeated-member-result-is-rejected", - "request": { - "members": [ - "a" - ], - "results": [ - { - "id": "a", - "outcome": "saved" - }, - { - "id": "a", - "outcome": "failed" - } - ], - "documents": [] - }, - "expectedError": "invalid_request" - } - ] -} diff --git a/shared/fixtures/editor-themes/lithe-v1.json b/shared/fixtures/editor-themes/lithe-v1.json deleted file mode 100644 index 39b46af278..0000000000 --- a/shared/fixtures/editor-themes/lithe-v1.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "version": 1, - "id": "lithe", - "fallbacks": { - "annotation": "attribute", - "documentationComment": "comment", - "field": "property", - "functionCall": "function", - "functionDeclaration": "function", - "parameter": "variable", - "typeParameter": "type" - }, - "appearances": { - "light": { - "attribute": "#a15c00", - "boolean": "#b83280", - "comment": "#68717d", - "constant": "#a15c00", - "function": "#14777d", - "invalid": "#cf3f4f", - "jsx": "#14777d", - "jsx-attribute": "#a15c00", - "keyword": "#b83280", - "null": "#7656a8", - "number": "#a15c00", - "operator": "#b83280", - "property": "#075e9e", - "punctuation": "#59636f", - "regex": "#287d3c", - "string": "#287d3c", - "tag": "#14777d", - "text": "#1f2328", - "type": "#4169a8", - "variable": "#7656a8" - }, - "dark": { - "attribute": "#b3ae60", - "boolean": "#cf8e6d", - "comment": "#7a7e85", - "constant": "#c77dbb", - "function": "#56a8f5", - "invalid": "#db5c5c", - "jsx": "#d5b778", - "jsx-attribute": "#b3ae60", - "keyword": "#cf8e6d", - "null": "#cf8e6d", - "number": "#2aacb8", - "operator": "#bcbec4", - "property": "#c77dbb", - "punctuation": "#bcbec4", - "regex": "#6aab73", - "string": "#6aab73", - "tag": "#d5b778", - "text": "#dfe1e5", - "type": "#bcbec4", - "variable": "#bcbec4" - } - } -} diff --git a/shared/fixtures/editor/basic-file-highlighting-v1.json b/shared/fixtures/editor/basic-file-highlighting-v1.json deleted file mode 100644 index ebd121eecc..0000000000 --- a/shared/fixtures/editor/basic-file-highlighting-v1.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "version": 1, - "associations": [ - { "filename": "Makefile", "language": "makefile" }, - { "filename": "makefile", "language": "makefile" }, - { "filename": "GNUmakefile", "language": "makefile" }, - { "filename": "Makefile.local", "language": "makefile" }, - { "filename": "rules.mk", "language": "makefile" }, - { "filename": "rules.MAK", "language": "makefile" }, - { "filename": "CMakeLists.txt", "language": "cmake" }, - { "filename": "toolchain.cmake", "language": "cmake" }, - { "filename": "script.groovy", "language": "groovy" }, - { "filename": "build.gradle", "language": "groovy" }, - { "filename": "Jenkinsfile", "language": "groovy" }, - { "filename": "build.gradle.kts", "language": "kotlin" }, - { "filename": "deploy.ps1", "language": "powershell" }, - { "filename": "module.psm1", "language": "powershell" }, - { "filename": "module.psd1", "language": "powershell" }, - { "filename": "build.bat", "language": "batch" }, - { "filename": "build.cmd", "language": "batch" }, - { "filename": "setup.zsh", "language": "bash" }, - { "filename": ".bashrc", "language": "bash" }, - { "filename": ".zshrc", "language": "bash" }, - { "filename": ".bash_profile", "language": "bash" }, - { "filename": ".zprofile", "language": "bash" }, - { "filename": ".profile", "language": "bash" }, - { "filename": ".env", "language": "dotenv" }, - { "filename": ".env.production", "language": "dotenv" }, - { "filename": "Containerfile", "language": "dockerfile" }, - { "filename": "Dockerfile.dev", "language": "dockerfile" }, - { "filename": "Containerfile.dev", "language": "dockerfile" } - ], - "syntax": [ - { "filename": "Makefile", "language": "makefile", "text": "# build\nSOURCES := $(wildcard src/*.c)\nall: $(SOURCES)\n\t@echo $@", "tokens": [{ "line": 1, "text": "#", "role": "comment" }, { "line": 2, "text": "wildcard", "role": "function" }] }, - { "filename": "CMakeLists.txt", "language": "cmake", "text": "# configure\nproject(Example)\nset(NAME \"example\")", "tokens": [{ "line": 1, "text": "#", "role": "comment" }, { "line": 2, "text": "project", "role": "function" }, { "line": 3, "text": "example", "role": "string" }] }, - { "filename": "build.gradle", "language": "groovy", "text": "// build\ndef name = \"example\"\nplugins { id 'java' }", "tokens": [{ "line": 1, "text": "//", "role": "comment" }, { "line": 2, "text": "def", "role": "keyword" }, { "line": 2, "text": "example", "role": "string" }] }, - { "filename": "deploy.ps1", "language": "powershell", "text": "# deploy\nWrite-Host \"example\"", "tokens": [{ "line": 1, "text": "#", "role": "comment" }, { "line": 2, "text": "example", "role": "string" }] }, - { "filename": "build.cmd", "language": "batch", "text": "REM build\necho \"example\"", "tokens": [{ "line": 1, "text": "REM", "role": "comment" }] } - ] -} diff --git a/shared/fixtures/editor/diff-review-v1.json b/shared/fixtures/editor/diff-review-v1.json deleted file mode 100644 index da108dfbd1..0000000000 --- a/shared/fixtures/editor/diff-review-v1.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "version": 1, - "gitDiff": { - "file_path": "Sample.java", - "is_new": false, - "is_deleted": false, - "is_renamed": false, - "lines": [ - { - "line_type": "header", - "content": "@@ -91,2 +91,2 @@" - }, - { - "line_type": "context", - "content": "class Sample {", - "old_line_number": 91, - "new_line_number": 91 - }, - { - "line_type": "removed", - "content": "oldValue", - "old_line_number": 92 - }, - { - "line_type": "added", - "content": "newValue", - "new_line_number": 92 - }, - { - "line_type": "context", - "content": "}", - "old_line_number": 501, - "new_line_number": 501 - } - ] - }, - "rows": [ - { - "id": "line-0", - "oldLine": null, - "newLine": null, - "left": "@@ -91,2 +91,2 @@", - "right": "@@ -91,2 +91,2 @@", - "kind": "information", - "hunkID": "hunk-0" - }, - { - "id": "line-1", - "oldLine": 91, - "newLine": 91, - "left": "class Sample {", - "right": "class Sample {", - "kind": "context", - "hunkID": "hunk-0" - }, - { - "id": "line-2", - "oldLine": 92, - "newLine": null, - "left": "oldValue", - "right": null, - "kind": "removal", - "hunkID": "hunk-0" - }, - { - "id": "line-3", - "oldLine": null, - "newLine": 92, - "left": null, - "right": "newValue", - "kind": "addition", - "hunkID": "hunk-0" - }, - { - "id": "line-4", - "oldLine": 501, - "newLine": 501, - "left": "}", - "right": "}", - "kind": "context", - "hunkID": "hunk-0" - } - ], - "originalText": "@@ -91,2 +91,2 @@\nclass Sample {\noldValue\n}", - "modifiedText": "@@ -91,2 +91,2 @@\nclass Sample {\nnewValue\n}" -} diff --git a/shared/fixtures/editor/file-encoding-v1.json b/shared/fixtures/editor/file-encoding-v1.json deleted file mode 100644 index 76f8244c4a..0000000000 --- a/shared/fixtures/editor/file-encoding-v1.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "version": 1, - "description": "Golden bytes for file.read/file.write. For every case, writing text with encoding yields bytesHex; reading bytesHex with encoding yields text and hasBom. autoDetectedEncoding, when non-null, is what file.read reports with no encoding; null means automatic detection does not apply.", - "cases": [ - { - "name": "UTF-8", - "encoding": "utf-8", - "text": "A中😀", - "bytesHex": "41e4b8adf09f9880", - "hasBom": false, - "autoDetectedEncoding": "utf-8" - }, - { - "name": "UTF-8 BOM", - "encoding": "utf-8-bom", - "text": "A中", - "bytesHex": "efbbbf41e4b8ad", - "hasBom": true, - "autoDetectedEncoding": "utf-8-bom" - }, - { - "name": "UTF-16 LE BOM", - "encoding": "utf-16le-bom", - "text": "A中", - "bytesHex": "fffe41002d4e", - "hasBom": true, - "autoDetectedEncoding": "utf-16le-bom" - }, - { - "name": "UTF-16 BE BOM", - "encoding": "utf-16be-bom", - "text": "A中", - "bytesHex": "feff00414e2d", - "hasBom": true, - "autoDetectedEncoding": "utf-16be-bom" - }, - { - "name": "UTF-16 LE", - "encoding": "utf-16le", - "text": "A中", - "bytesHex": "41002d4e", - "hasBom": false, - "autoDetectedEncoding": null - }, - { - "name": "UTF-16 BE", - "encoding": "utf-16be", - "text": "A中", - "bytesHex": "00414e2d", - "hasBom": false, - "autoDetectedEncoding": null - }, - { - "name": "GBK", - "encoding": "gbk", - "text": "中文", - "bytesHex": "d6d0cec4", - "hasBom": false, - "autoDetectedEncoding": "gbk" - }, - { - "name": "GB18030 four byte", - "encoding": "gb18030", - "text": "𠀀", - "bytesHex": "95328236", - "hasBom": false, - "autoDetectedEncoding": "gb18030" - }, - { - "name": "Big5", - "encoding": "big5", - "text": "中文", - "bytesHex": "a4a4a4e5", - "hasBom": false, - "autoDetectedEncoding": null - }, - { - "name": "Shift JIS", - "encoding": "shift-jis", - "text": "こんにちは", - "bytesHex": "82b182f182c982bf82cd", - "hasBom": false, - "autoDetectedEncoding": null - }, - { - "name": "EUC-JP", - "encoding": "euc-jp", - "text": "こんにちは", - "bytesHex": "a4b3a4f3a4cba4c1a4cf", - "hasBom": false, - "autoDetectedEncoding": null - }, - { - "name": "EUC-KR", - "encoding": "euc-kr", - "text": "한국어", - "bytesHex": "c7d1b1b9beee", - "hasBom": false, - "autoDetectedEncoding": null - }, - { - "name": "Windows-1250", - "encoding": "windows-1250", - "text": "ąęł", - "bytesHex": "b9eab3", - "hasBom": false, - "autoDetectedEncoding": null - }, - { - "name": "Windows-1251", - "encoding": "windows-1251", - "text": "привет", - "bytesHex": "eff0e8e2e5f2", - "hasBom": false, - "autoDetectedEncoding": null - }, - { - "name": "Windows-1252", - "encoding": "windows-1252", - "text": "éü", - "bytesHex": "e9fc", - "hasBom": false, - "autoDetectedEncoding": null - }, - { - "name": "KOI8-R", - "encoding": "koi8-r", - "text": "привет", - "bytesHex": "d0d2c9d7c5d4", - "hasBom": false, - "autoDetectedEncoding": null - } - ], - "unmappable": [ - { - "encoding": "gbk", - "text": "ab😀", - "scalarOffset": 2, - "codePoint": "U+1F600" - }, - { - "encoding": "windows-1252", - "text": "中", - "scalarOffset": 0, - "codePoint": "U+4E2D" - } - ] -} diff --git a/shared/fixtures/editor/line-edit-v1.json b/shared/fixtures/editor/line-edit-v1.json deleted file mode 100644 index 66910c64bf..0000000000 --- a/shared/fixtures/editor/line-edit-v1.json +++ /dev/null @@ -1,430 +0,0 @@ -{ - "protocolVersion": 1, - "cases": [ - { - "name": "toggle comment inserts at line start and maps caret", - "request": { - "operation": "toggleLineComment", - "source": "let x = 1", - "selectionStart": 5, - "selectionLength": 0, - "commentToken": "//" - }, - "expected": { - "applied": true, - "text": "// let x = 1", - "replacedStart": 0, - "replacedLength": 9, - "selectionStart": 8, - "selectionLength": 0 - } - }, - { - "name": "toggle comment inserts after leading indentation", - "request": { - "operation": "toggleLineComment", - "source": " let x = 1", - "selectionStart": 0, - "selectionLength": 0, - "commentToken": "//" - }, - "expected": { - "applied": true, - "text": " // let x = 1", - "replacedStart": 0, - "replacedLength": 11, - "selectionStart": 0, - "selectionLength": 0 - } - }, - { - "name": "toggle comment removes token and one trailing space", - "request": { - "operation": "toggleLineComment", - "source": "// let x = 1", - "selectionStart": 0, - "selectionLength": 0, - "commentToken": "//" - }, - "expected": { - "applied": true, - "text": "let x = 1", - "replacedStart": 0, - "replacedLength": 12, - "selectionStart": 0, - "selectionLength": 0 - } - }, - { - "name": "toggle comment covers both lines when selection ends at next line start", - "request": { - "operation": "toggleLineComment", - "source": "a\nb\nc", - "selectionStart": 0, - "selectionLength": 4, - "commentToken": "//" - }, - "expected": { - "applied": true, - "text": "// a\n// b", - "replacedStart": 0, - "replacedLength": 3, - "selectionStart": 0, - "selectionLength": 10 - } - }, - { - "name": "toggle comment skips blank lines", - "request": { - "operation": "toggleLineComment", - "source": "a\n\nb", - "selectionStart": 0, - "selectionLength": 4, - "commentToken": "//" - }, - "expected": { - "applied": true, - "text": "// a\n\n// b", - "replacedStart": 0, - "replacedLength": 4, - "selectionStart": 0, - "selectionLength": 10 - } - }, - { - "name": "uncomment maps endpoint inside later token to new coordinates", - "request": { - "operation": "toggleLineComment", - "source": "// a\n// b", - "selectionStart": 0, - "selectionLength": 6, - "commentToken": "//" - }, - "expected": { - "applied": true, - "text": "a\nb", - "replacedStart": 0, - "replacedLength": 9, - "selectionStart": 0, - "selectionLength": 2 - } - }, - { - "name": "toggle comment round trip restores a non-first line", - "request": { - "operation": "toggleLineComment", - "source": "func f() {\n let x = 1\n}", - "selectionStart": 23, - "selectionLength": 0, - "commentToken": "//" - }, - "expected": { - "applied": true, - "text": " // let x = 1", - "replacedStart": 11, - "replacedLength": 13, - "selectionStart": 26, - "selectionLength": 0 - } - }, - { - "name": "toggle comment covers both CRLF lines when selection ends at line start", - "request": { - "operation": "toggleLineComment", - "source": "a\r\nb\r\nc", - "selectionStart": 0, - "selectionLength": 6, - "commentToken": "//" - }, - "expected": { - "applied": true, - "text": "// a\r\n// b", - "replacedStart": 0, - "replacedLength": 4, - "selectionStart": 0, - "selectionLength": 12 - } - }, - { - "name": "duplicate line keeps caret column", - "request": { - "operation": "duplicateLine", - "source": "abc\ndef", - "selectionStart": 1, - "selectionLength": 0 - }, - "expected": { - "applied": true, - "text": "abc\n", - "replacedStart": 4, - "replacedLength": 0, - "selectionStart": 5, - "selectionLength": 0 - } - }, - { - "name": "duplicate line on empty document inserts one newline", - "request": { - "operation": "duplicateLine", - "source": "", - "selectionStart": 0, - "selectionLength": 0 - }, - "expected": { - "applied": true, - "text": "\n", - "replacedStart": 0, - "replacedLength": 0, - "selectionStart": 1, - "selectionLength": 0 - } - }, - { - "name": "duplicate selected text as is", - "request": { - "operation": "duplicateLine", - "source": "hello world", - "selectionStart": 0, - "selectionLength": 5 - }, - "expected": { - "applied": true, - "text": "hello", - "replacedStart": 5, - "replacedLength": 0, - "selectionStart": 5, - "selectionLength": 5 - } - }, - { - "name": "duplicate preserves CRLF separator", - "request": { - "operation": "duplicateLine", - "source": "a\r\nb", - "selectionStart": 1, - "selectionLength": 0 - }, - "expected": { - "applied": true, - "text": "a\r\n", - "replacedStart": 3, - "replacedLength": 0, - "selectionStart": 4, - "selectionLength": 0 - } - }, - { - "name": "delete line removes covered line with separator", - "request": { - "operation": "deleteLine", - "source": "a\nb\nc", - "selectionStart": 2, - "selectionLength": 0 - }, - "expected": { - "applied": true, - "text": "", - "replacedStart": 2, - "replacedLength": 2, - "selectionStart": 2, - "selectionLength": 0 - } - }, - { - "name": "move up swaps with line above and shifts caret", - "request": { - "operation": "moveLineUp", - "source": "a\nb\nc", - "selectionStart": 2, - "selectionLength": 0 - }, - "expected": { - "applied": true, - "text": "b\na\n", - "replacedStart": 0, - "replacedLength": 4, - "selectionStart": 0, - "selectionLength": 0 - } - }, - { - "name": "move up on first line is a no-op", - "request": { - "operation": "moveLineUp", - "source": "a\nb", - "selectionStart": 0, - "selectionLength": 0 - }, - "expected": { - "applied": false - } - }, - { - "name": "move down on last line is a no-op", - "request": { - "operation": "moveLineDown", - "source": "a\nb", - "selectionStart": 2, - "selectionLength": 0 - }, - "expected": { - "applied": false - } - }, - { - "name": "move down moves whole block when selection ends at next line start", - "request": { - "operation": "moveLineDown", - "source": "a\nb\nc", - "selectionStart": 0, - "selectionLength": 4 - }, - "expected": { - "applied": true, - "text": "c\na\nb", - "replacedStart": 0, - "replacedLength": 5, - "selectionStart": 2, - "selectionLength": 3 - } - }, - { - "name": "move down to last line without newline clamps selection end", - "request": { - "operation": "moveLineDown", - "source": "a\nb", - "selectionStart": 0, - "selectionLength": 2 - }, - "expected": { - "applied": true, - "text": "b\na", - "replacedStart": 0, - "replacedLength": 3, - "selectionStart": 2, - "selectionLength": 1 - } - }, - { - "name": "move up preserves CRLF separator", - "request": { - "operation": "moveLineUp", - "source": "a\r\nb", - "selectionStart": 3, - "selectionLength": 0 - }, - "expected": { - "applied": true, - "text": "b\r\na", - "replacedStart": 0, - "replacedLength": 4, - "selectionStart": 0, - "selectionLength": 0 - } - }, - { - "name": "copy line up inserts copy above and keeps selection", - "request": { - "operation": "copyLineUp", - "source": "a\nb\nc", - "selectionStart": 2, - "selectionLength": 0 - }, - "expected": { - "applied": true, - "text": "b\n", - "replacedStart": 2, - "replacedLength": 0, - "selectionStart": 2, - "selectionLength": 0 - } - }, - { - "name": "copy line down behaves like duplicate", - "request": { - "operation": "copyLineDown", - "source": "abc\ndef", - "selectionStart": 1, - "selectionLength": 0 - }, - "expected": { - "applied": true, - "text": "abc\n", - "replacedStart": 4, - "replacedLength": 0, - "selectionStart": 5, - "selectionLength": 0 - } - }, - { - "name": "resolve line comment token for extension", - "request": { - "identifier": "py" - }, - "expected": { - "token": "#" - } - }, - { - "name": "resolve line comment token for unknown extension", - "request": { - "identifier": "json" - }, - "expected": { - "token": null - } - }, - { - "name": "move down normalizes a caret inside a CRLF separator", - "request": { - "operation": "moveLineDown", - "source": "a\r\nb", - "selectionStart": 2, - "selectionLength": 0 - }, - "expected": { - "applied": true, - "text": "b\r\na", - "replacedStart": 0, - "replacedLength": 4, - "selectionStart": 4, - "selectionLength": 0 - } - }, - { - "name": "resolve line comment token for dotfile basename", - "request": { - "identifier": ".env" - }, - "expected": { - "token": "#" - } - }, - { - "name": "duplicate preserves selection end across CRLF normalization", - "request": { - "operation": "duplicateLine", - "source": "a\r\nb", - "selectionStart": 2, - "selectionLength": 2 - }, - "expected": { - "applied": true, - "text": "\r\nb", - "replacedStart": 4, - "replacedLength": 0, - "selectionStart": 4, - "selectionLength": 3 - } - }, - { - "name": "resolve line comment token for the rust language id", - "request": { - "identifier": "rust" - }, - "expected": { - "token": "//" - } - } - ] -} diff --git a/shared/fixtures/editor/markdown-html-v1.json b/shared/fixtures/editor/markdown-html-v1.json deleted file mode 100644 index c138b35103..0000000000 --- a/shared/fixtures/editor/markdown-html-v1.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "source": "
\n

HTML header

\n

\n \"First\"\n \"Second\"\n \"Third\"\n

\n

Left aligned

\n

Before
After

\n
\n\nOrdinary paragraph with ![inline image](badge.svg).\n\n\n\nUnsafe link\n" -} diff --git a/shared/fixtures/editor/markdown-render-v1.json b/shared/fixtures/editor/markdown-render-v1.json deleted file mode 100644 index af481d8dd4..0000000000 --- a/shared/fixtures/editor/markdown-render-v1.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "nested lists and task items", - "source": "- Parent\n - Child\n\n1. First\n2. Second\n\n- [x] Done\n- [ ] Next\n", - "contains": [ - "中文😀', '$&';\r\n\r\n```\r\n", - "contains": [ - "language-sql", - " select", - "<script>中文😀</script>", - "$&", - "data-sourcepos=" - ], - "absent": [ - "\n\n\nunsafe\nfile\n", - "contains": [ - "More", - "align=\"center\"", - "badge.png", - "` and note[^1]\n\n[^1]: footnote\n", - "contains": [ - "fourth\n\n```text\na\n\nb\n```\n", - "contains": [ - " 2 H2O}\n$$\n\nWater H~2~O, power x^2^, ~~removed~~ and `H~2~O x^2^`.\n\nReference[^note].\n\n[^note]: A real footnote.\n\n```mermaid\nflowchart LR\n A[Source] --> B[Preview]\n```\n" -} diff --git a/shared/fixtures/editor/navigation-history-v1.json b/shared/fixtures/editor/navigation-history-v1.json deleted file mode 100644 index 74065a0863..0000000000 --- a/shared/fixtures/editor/navigation-history-v1.json +++ /dev/null @@ -1,531 +0,0 @@ -{ - "version": 1, - "maxEntries": 100, - "cases": [ - { - "name": "record-pushes-departure-and-clears-forward", - "request": { - "state": { - "back": [], - "forward": [ - { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - ] - }, - "event": { - "type": "record", - "departure": { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - }, - "destination": { - "document": "file:///w/B.java", - "line": 9, - "column": 7 - } - } - }, - "expected": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - ], - "forward": [] - }, - "destination": null - } - }, - { - "name": "record-to-the-same-position-keeps-history", - "request": { - "state": { - "back": [], - "forward": [ - { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - ] - }, - "event": { - "type": "record", - "departure": { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - }, - "destination": { - "document": "file:///w/A.java", - "line": 4, - "column": 2, - "context": { - "pane": "right" - } - } - } - }, - "expected": { - "state": { - "back": [], - "forward": [ - { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - ] - }, - "destination": null - } - }, - { - "name": "record-without-destination-still-records", - "request": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - ], - "forward": [] - }, - "event": { - "type": "record", - "departure": { - "document": "file:///w/B.java", - "line": 9, - "column": 7 - }, - "destination": null - } - }, - "expected": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - }, - { - "document": "file:///w/B.java", - "line": 9, - "column": 7 - } - ], - "forward": [] - }, - "destination": null - } - }, - { - "name": "record-without-departure-is-ignored", - "request": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - ], - "forward": [ - { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - ] - }, - "event": { - "type": "record", - "departure": null, - "destination": { - "document": "file:///w/B.java", - "line": 9, - "column": 7 - } - } - }, - "expected": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - ], - "forward": [ - { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - ] - }, - "destination": null - } - }, - { - "name": "record-deduplicates-by-position-and-keeps-newest-context", - "request": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2, - "context": { - "scrollTop": 10 - } - } - ], - "forward": [] - }, - "event": { - "type": "record", - "departure": { - "document": "file:///w/A.java", - "line": 4, - "column": 2, - "context": { - "scrollTop": 80 - } - }, - "destination": { - "document": "file:///w/B.java", - "line": 9, - "column": 7 - } - } - }, - "expected": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2, - "context": { - "scrollTop": 80 - } - } - ], - "forward": [] - }, - "destination": null - } - }, - { - "name": "back-records-the-live-caret-for-forward", - "request": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - ], - "forward": [] - }, - "event": { - "type": "back", - "current": { - "document": "file:///w/B.java", - "line": 14, - "column": 3 - } - } - }, - "expected": { - "state": { - "back": [], - "forward": [ - { - "document": "file:///w/B.java", - "line": 14, - "column": 3 - } - ] - }, - "destination": { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - } - }, - { - "name": "forward-records-the-live-caret-for-back", - "request": { - "state": { - "back": [], - "forward": [ - { - "document": "file:///w/B.java", - "line": 14, - "column": 3 - } - ] - }, - "event": { - "type": "forward", - "current": { - "document": "file:///w/A.java", - "line": 6, - "column": 0 - } - } - }, - "expected": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 6, - "column": 0 - } - ], - "forward": [] - }, - "destination": { - "document": "file:///w/B.java", - "line": 14, - "column": 3 - } - } - }, - { - "name": "back-skips-entries-equal-to-the-current-location", - "request": { - "state": { - "back": [ - { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - }, - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - ], - "forward": [] - }, - "event": { - "type": "back", - "current": { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - } - }, - "expected": { - "state": { - "back": [], - "forward": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - ] - }, - "destination": { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - } - }, - { - "name": "back-only-at-current-location-drops-the-no-op-entry", - "request": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - ], - "forward": [ - { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - ] - }, - "event": { - "type": "back", - "current": { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - } - }, - "expected": { - "state": { - "back": [], - "forward": [ - { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - ] - }, - "destination": null - } - }, - { - "name": "back-with-empty-history-does-not-move", - "request": { - "state": { - "back": [], - "forward": [ - { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - ] - }, - "event": { - "type": "back", - "current": { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - } - }, - "expected": { - "state": { - "back": [], - "forward": [ - { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - ] - }, - "destination": null - } - }, - { - "name": "back-without-a-current-editor-location", - "request": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - ], - "forward": [] - }, - "event": { - "type": "back", - "current": null - } - }, - "expected": { - "state": { - "back": [], - "forward": [] - }, - "destination": { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - } - }, - { - "name": "forward-pushes-current-without-duplicating-the-back-top", - "request": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - ], - "forward": [ - { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - ] - }, - "event": { - "type": "forward", - "current": { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - } - }, - "expected": { - "state": { - "back": [ - { - "document": "file:///w/A.java", - "line": 4, - "column": 2 - } - ], - "forward": [] - }, - "destination": { - "document": "file:///w/C.java", - "line": 1, - "column": 0 - } - } - }, - { - "name": "empty-document-identity-is-rejected", - "request": { - "state": { - "back": [ - { - "document": "", - "line": 1, - "column": 0 - } - ], - "forward": [] - }, - "event": { - "type": "back", - "current": null - } - }, - "expectedError": "invalid_request" - } - ] -} diff --git a/shared/fixtures/editor/navigation-input-v1.json b/shared/fixtures/editor/navigation-input-v1.json deleted file mode 100644 index 4771e01fa4..0000000000 --- a/shared/fixtures/editor/navigation-input-v1.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "cases": [ - { - "name": "line", - "input": "120", - "target": { - "line": 119, - "column": 0, - "selectsWholeLine": true - } - }, - { - "name": "line and column", - "input": "120:35", - "target": { - "line": 119, - "column": 34, - "selectsWholeLine": false - } - }, - { - "name": "spaces", - "input": " 12 : 34 ", - "target": { - "line": 11, - "column": 33, - "selectsWholeLine": false - } - }, - { - "name": "plus sign", - "input": "+1:+2", - "target": { - "line": 0, - "column": 1, - "selectsWholeLine": false - } - }, - { - "name": "empty", - "input": "", - "target": null - }, - { - "name": "trailing text", - "input": "12abc", - "target": null - }, - { - "name": "multiple colons", - "input": "1:2:3", - "target": null - }, - { - "name": "missing column", - "input": "120:", - "target": null - }, - { - "name": "zero", - "input": "0", - "target": null - }, - { - "name": "negative", - "input": "-1", - "target": null - }, - { - "name": "newline", - "input": "1\n", - "target": null - }, - { - "name": "overflow", - "input": "9007199254740992", - "target": null - }, - { - "name": "vertical tab is not horizontal whitespace", - "input": "1\u000b", - "target": null - }, - { - "name": "form feed is not horizontal whitespace", - "input": "1\f", - "target": null - }, - { - "name": "nonbreaking spaces are accepted", - "input": " 12 : 3 ", - "target": { - "line": 11, - "column": 2, - "selectsWholeLine": false - } - }, - { - "name": "oversized input is rejected", - "input": "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111", - "target": null - } - ] -} diff --git a/shared/fixtures/editor/svg-preview-v1.json b/shared/fixtures/editor/svg-preview-v1.json deleted file mode 100644 index 8abe2bffa9..0000000000 --- a/shared/fixtures/editor/svg-preview-v1.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "version": 1, - "path": "assets/icon.SVG", - "initialText": "", - "editedText": "", - "invalidText": "=0.110\", \"uvicorn[standard]\"]\n", - "declared/main.py": "from fastapi import FastAPI\napp = FastAPI()\n", - "guessed/main.py": "from fastapi import FastAPI\napp = FastAPI()\n", - "edge/asgi.py": "from starlette.applications import Starlette\napp = Starlette()\n" - }, - "expected": { - "configurations": [ - { - "id": "python.uvicorn:declared/main", - "execution": "service", - "confidence": "declared", - "command": "uvicorn", - "args": ["main:app", "--reload"], - "extensions": { - "python": { "module": "main", "framework": "fastapi" } - } - }, - { - "id": "python.uvicorn:guessed/main", - "confidence": "heuristic", - "reason": "No dependency list, so the framework import in one file is the only evidence." - }, - { - "id": "python.uvicorn:edge/asgi", - "command": "uvicorn", - "args": ["asgi:app", "--reload"], - "extensions": { - "python": { "module": "asgi", "framework": "starlette" } - } - } - ] - } - } - ] -} diff --git a/shared/fixtures/execution/gradle.json b/shared/fixtures/execution/gradle.json deleted file mode 100644 index 28a3e365ec..0000000000 --- a/shared/fixtures/execution/gradle.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "name": "Gradle service detection and toolchain requirements", - "notes": [ - "A Gradle build is runnable when a plugin contributes a start task. The build script is matched for plugin ids rather than executed, because running `gradle tasks` on project open would spawn a daemon per module.", - "Subproject tasks are invoked from the build root, because Gradle only resolves task paths from the directory holding the settings file. The configuration name is the full Gradle project path so two modules with the same leaf name stay distinct.", - "The command is the bare program name `gradle`. Wrapper preference travels in the toolchain requirement so the platform adapter resolves `./gradlew` or `gradlew.bat` for its own operating system." - ], - "requests": [ - { - "command": "runConfig.generate", - "payload": { "root": "/workspace" }, - "workspace": { - "build.gradle": "plugins { id 'org.springframework.boot' version '3.2.0' }\n", - "gradlew": "#!/bin/sh\n" - }, - "expected": { - "configurations": [ - { - "id": "gradle.service:bootRun", - "provider": "gradle.service", - "name": "bootRun", - "execution": "service", - "confidence": "declared", - "command": "gradle", - "args": ["bootRun"], - "cwd": ".", - "source": "build.gradle", - "extensions": { - "gradle": { - "task": "bootRun", - "plugin": "org.springframework.boot", - "project": ":" - } - } - } - ], - "toolchains": { - "project-gradle": { - "type": "gradle", - "wrapper": "./gradlew", - "java": "project-jdk" - }, - "project-jdk": { "type": "java" } - } - } - }, - { - "command": "runConfig.generate", - "payload": { "root": "/workspace" }, - "workspace": { - "settings.gradle": "include 'services:orders'\ninclude 'services:shipping'\n", - "services/orders/build.gradle": "plugins { id 'org.springframework.boot' }\n", - "services/shipping/build.gradle": "plugins { id 'application' }\n" - }, - "expected": { - "configurations": [ - { - "id": "gradle.service:services:orders", - "provider": "gradle.service", - "name": "services:orders", - "execution": "service", - "command": "gradle", - "args": [":services:orders:bootRun"], - "cwd": ".", - "source": "build.gradle" - }, - { - "id": "gradle.application:services:shipping", - "provider": "gradle.application", - "name": "services:shipping", - "execution": "application", - "command": "gradle", - "args": [":services:shipping:run"], - "cwd": ".", - "source": "build.gradle" - } - ] - } - }, - { - "command": "runConfig.generate", - "payload": { "root": "/workspace" }, - "workspace": { - "build.gradle": "plugins { id 'java-library' }\n// id 'org.springframework.boot'\n" - }, - "expected": { - "configurations": [], - "reason": "A library build contributes no start task, and a commented plugin id is not applied." - } - } - ] -} diff --git a/shared/fixtures/execution/launch-environment-v1.json b/shared/fixtures/execution/launch-environment-v1.json deleted file mode 100644 index 6e1d462fe3..0000000000 --- a/shared/fixtures/execution/launch-environment-v1.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { - "name": "explicit-value-replaces-inherited", - "request": { - "inherited": { - "JAVA_HOME": "inherited-jdk", - "PATH": "bin" - }, - "overrides": { - "JAVA_HOME": "selected-jdk" - }, - "caseInsensitive": false - }, - "expected": { - "environment": { - "JAVA_HOME": "selected-jdk", - "PATH": "bin" - } - } - }, - { - "name": "no-override-keeps-inherited", - "request": { - "inherited": { - "JAVA_HOME": "inherited-jdk" - }, - "overrides": {}, - "caseInsensitive": false - }, - "expected": { - "environment": { - "JAVA_HOME": "inherited-jdk" - } - } - }, - { - "name": "unresolved-binding-contributes-nothing", - "request": { - "inherited": { - "JAVA_HOME": "inherited-jdk" - }, - "overrides": { - "JAVA_HOME": { - "toolchain": "example.toolchain", - "property": "home" - }, - "TOOL_HOME": { - "toolchain": "example.toolchain", - "property": "home" - } - }, - "caseInsensitive": false - }, - "expected": { - "environment": { - "JAVA_HOME": "inherited-jdk" - } - } - }, - { - "name": "windows-keys-are-one-name", - "request": { - "inherited": { - "JAVA_HOME": "inherited-jdk", - "Path": "bin" - }, - "overrides": { - "java_home": "user-jdk" - }, - "caseInsensitive": true - }, - "expected": { - "environment": { - "JAVA_HOME": "user-jdk", - "PATH": "bin" - } - } - } - ] -} diff --git a/shared/fixtures/execution/maven-java-main-source-sets-v1.json b/shared/fixtures/execution/maven-java-main-source-sets-v1.json deleted file mode 100644 index e7781682d5..0000000000 --- a/shared/fixtures/execution/maven-java-main-source-sets-v1.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "version": 1, - "name": "Maven Java main source-set launch plans", - "cases": [ - { - "name": "test source main", - "module": "module-a", - "source": "module-a/src/test/java/com/example/App.java", - "sourceSet": "test", - "configurationId": "java-main:com.example.App:module-a", - "mainClass": "com.example.App", - "classPaths": ["/workspace/module-a/target/test-classes"], - "modulePaths": [], - "expectedArguments": ["com.example.App"] - }, - { - "name": "main source main", - "module": "module-b", - "source": "module-b/src/main/java/com/example/App.java", - "sourceSet": "main", - "configurationId": "java-main:com.example.App:module-b", - "mainClass": "module-b/com.example.App", - "classPaths": ["/workspace/module-b/target/classes"], - "modulePaths": ["/workspace/module-b/target/modules"], - "expectedArguments": ["-m", "module-b/com.example.App"] - } - ] -} diff --git a/shared/fixtures/execution/maven-runtime-versions.json b/shared/fixtures/execution/maven-runtime-versions.json deleted file mode 100644 index 96166679f1..0000000000 --- a/shared/fixtures/execution/maven-runtime-versions.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "description": "Maven and mvnd expose the embedded Apache Maven version, never the daemon banner.", - "cases": [ - { "output": "Apache Maven 3.9.11 (fixture)\nMaven home: /fixture/maven\n", "version": "3.9.11" }, - { "output": "Apache Maven Daemon (mvnd) 1.0.6 darwin-aarch64\nApache Maven 3.9.11 (fixture)\n", "version": "3.9.11" }, - { "output": "Apache Maven Daemon (mvnd) 1.0.6 windows-amd64\r\nApache Maven 4.0.0-rc-3 (fixture)\r\n", "version": "4.0.0-rc-3" }, - { "output": "Apache Maven Daemon (mvnd) 1.0.6\n", "version": null }, - { "output": "Java home is invalid\n", "version": null } - ] -} diff --git a/shared/fixtures/execution/maven.json b/shared/fixtures/execution/maven.json deleted file mode 100644 index a8e2a993e8..0000000000 --- a/shared/fixtures/execution/maven.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "name": "Maven framework service detection from the declared module graph", - "notes": [ - "A plugin is what makes a goal available, so the plugin a module applies -- not a `@SpringBootApplication` annotation in a source file -- decides both that a module is a service and which framework it is. An annotation judge reads only the files the caller passed, so the same project generated a different document on every call and every team or local override joined by id came loose.", - "Each framework gets its own provider (`spring-boot.maven`, `quarkus.maven`, `micronaut.maven`) because the goals invented different property names for the same three things. Spring Boot takes `-Dspring-boot.run.jvmArguments` / `.arguments` / `.main-class` and `spring-boot:run`; Quarkus takes `-Djvm.args` / `-Dquarkus.args` and `quarkus:dev`; Micronaut takes `-Dmn.jvmArgs` / `-Dmn.appArgs` and `mn:run`. Passing one framework's names to another's goal is silently ignored, and the service starts with none of the user's arguments.", - "Only Spring Boot's goal accepts a main class. Quarkus and Micronaut resolve it from the build -- the Micronaut mojo's `mainClass` has no user property at all -- so the annotation scan grafts a class onto `spring-boot.maven` configurations only.", - "Debugging is per framework too. `spring-boot:run` forwards JVM arguments verbatim, so JDWP travels among them. Quarkus (`-Ddebug= -Dsuspend=y`) and Micronaut (`-Dmn.debug=true -Dmn.debug.port= -Dmn.debug.suspend=true`) start the agent themselves, so JDWP must NOT also be injected into their JVM arguments: two agents on one port fail to bind and the service never starts. Both are told to suspend because a breakpoint in initialisation is otherwise unreachable -- neither suspends by default.", - "Maven modules are declared, not discovered: the detector reads the graph from the root `pom.xml` instead of judging each directory the shared walk visits. A directory-driven scan is wrong in both directions -- `` may name a directory the walk prunes (one called `build` or `out` is invisible), while a leftover `pom.xml` outside the graph is not part of the build at all.", - "A caller only needs to supply workspace-relative Java paths. Maven root discovery checks their ancestor directories, so a reactor nested below the opened workspace is still selected even when the platform does not include `pom.xml` in the request.", - "Only `` counts. A plugin under `` pins a version for children without applying it, and one under `` never runs. `pom` packaging is an aggregator: it produces no artifact to run, so a plugin declared there configures its children rather than describing a service.", - "Maven is reached through the project toolchain binding rather than a bare program name, because the build may be driven by `./mvnw` instead of an installed `mvn`. Every configuration runs from the reactor root and addresses its module with `-pl`, so `cwd` stays `.` and the module travels in `extensions.maven.module`. The name is therefore what keeps two modules apart: `artifactId` where unique, the module path where two modules share one.", - "The annotation scan still supplies the main class, which is the only place it is named. Where a Spring Boot module holds exactly one annotated class, it becomes `extensions.maven.mainClass`; two candidates are ambiguous and are left for `spring-boot:run` to resolve. A class in a module with no framework plugin is still a runnable `java.main` entry." - ], - "requests": [ - { - "command": "runConfig.generate", - "payload": { "root": "/workspace", "paths": ["backend/src/main/java/com/demo/DemoApplication.java"] }, - "workspace": { - "pom.xml": "platformpombackendshared-lib", - "backend/pom.xml": "backendorg.springframework.bootspring-boot-maven-plugin", - "shared-lib/pom.xml": "shared-lib", - "backend/src/main/java/com/demo/DemoApplication.java": "package com.demo;\n@SpringBootApplication\npublic class DemoApplication { public static void main(String[] a) {} }\n" - }, - "expected": { - "configurations": [ - { - "id": "spring-boot.maven:backend", - "provider": "spring-boot.maven", - "name": "backend", - "execution": "service", - "confidence": "declared", - "command": null, - "cwd": ".", - "source": "backend/pom.xml", - "toolchains": { "java": "project-jdk", "maven": "project-maven" }, - "debug": { "adapter": "jdwp" }, - "extensions": { - "maven": { "module": "backend", "mainClass": "com.demo.DemoApplication" } - } - } - ], - "absentIds": ["spring-boot.maven:shared-lib", "spring:com.demo.DemoApplication"], - "reason": "The library module applies no boot plugin. The annotated class contributes its name to the module's service rather than a service of its own." - } - }, - { - "command": "runConfig.generate", - "payload": { "root": "/workspace", "paths": ["projects/demo/backend/src/main/java/com/demo/DemoApplication.java", "samples/Standalone.java"] }, - "workspace": { - "projects/demo/pom.xml": "platformpombackend", - "projects/demo/backend/pom.xml": "backendorg.springframework.bootspring-boot-maven-plugin", - "projects/demo/backend/src/main/java/com/demo/DemoApplication.java": "package com.demo;\n@SpringBootApplication\npublic class DemoApplication { public static void main(String[] a) {} }\n", - "samples/Standalone.java": "public class Standalone { public static void main(String[] a) {} }\n" - }, - "expected": { - "configurations": [ - { - "id": "spring-boot.maven:backend", - "provider": "spring-boot.maven", - "cwd": "projects/demo", - "source": "projects/demo/backend/pom.xml", - "toolchains": { "java": "project-jdk", "maven": "project-maven" }, - "extensions": { "maven": { "module": "backend", "mainClass": "com.demo.DemoApplication" } } - }, - { - "id": "java-main:Standalone", - "provider": "java.main", - "cwd": ".", - "source": "samples/Standalone.java", - "toolchains": { "java": "project-jdk" }, - "extensions": { "maven": { "module": ".", "mainClass": "Standalone" }, "java": { "source": "samples/Standalone.java" } } - } - ], - "reason": "The Maven Java source discovers and binds to the nested reactor, while the standalone source in the same request remains a direct JDK launch." - } - }, - { - "command": "runConfig.generate", - "payload": { "root": "/workspace" }, - "workspace": { - "pom.xml": "rootpombuild", - "build/pom.xml": "builder-serviceorg.springframework.bootspring-boot-maven-plugin" - }, - "expected": { - "configurations": [ - { - "id": "spring-boot.maven:builder-service", - "provider": "spring-boot.maven", - "execution": "service", - "source": "build/pom.xml", - "extensions": { "maven": { "module": "build" } } - } - ], - "reason": "The shared walk prunes directories named `build`, but `` names this one explicitly, so reading the declared graph is what makes it visible." - } - }, - { - "command": "runConfig.generate", - "payload": { "root": "/workspace" }, - "workspace": { - "pom.xml": "parentpomservice-aorg.springframework.bootspring-boot-maven-plugin", - "service-a/pom.xml": "service-aorg.springframework.bootspring-boot-maven-plugin" - }, - "expected": { - "configurations": [ - { - "id": "spring-boot.maven:service-a", - "provider": "spring-boot.maven", - "execution": "service", - "extensions": { "maven": { "module": "service-a" } } - } - ], - "absentIds": ["spring-boot.maven:parent"], - "reason": "The aggregator produces no artifact, so the plugin it declares configures its children." - } - }, - { - "command": "runConfig.generate", - "payload": { "root": "/workspace" }, - "workspace": { - "pom.xml": "rootpomteam-a/gatewayteam-b/gateway", - "team-a/gateway/pom.xml": "gatewayorg.springframework.bootspring-boot-maven-plugin", - "team-b/gateway/pom.xml": "gatewayorg.springframework.bootspring-boot-maven-plugin" - }, - "expected": { - "configurations": [ - { - "id": "spring-boot.maven:team-a/gateway", - "name": "team-a/gateway", - "extensions": { "maven": { "module": "team-a/gateway" } } - }, - { - "id": "spring-boot.maven:team-b/gateway", - "name": "team-b/gateway", - "extensions": { "maven": { "module": "team-b/gateway" } } - } - ], - "reason": "`artifactId` is only unique per `groupId`. Both modules share one and all Spring Boot configurations share `cwd`, so the name falls back to the module path or one of two real services would be dropped during dedup." - } - }, - { - "command": "runConfig.generate", - "payload": { "root": "/workspace" }, - "workspace": { - "pom.xml": "liborg.springframework.bootspring-boot-maven-plugin3.2.0" - }, - "expected": { - "configurations": [], - "reason": "`pluginManagement` pins a version for children without applying the plugin, so nothing here is runnable." - } - }, - { - "command": "runConfig.generate", - "payload": { "root": "/workspace" }, - "workspace": { - "pom.xml": "platformpomboot-apiquarkus-apimicronaut-apiquarkus-platform-apimicronaut-maven-api", - "boot-api/pom.xml": "boot-apiorg.springframework.bootspring-boot-maven-plugin", - "quarkus-api/pom.xml": "quarkus-apiio.quarkusquarkus-maven-plugin", - "micronaut-api/pom.xml": "micronaut-apiio.micronaut.buildmicronaut-maven-plugin", - "quarkus-platform-api/pom.xml": "quarkus-platform-apiio.quarkus.platformquarkus-maven-plugin", - "micronaut-maven-api/pom.xml": "micronaut-maven-apiio.micronaut.mavenmicronaut-maven-plugin" - }, - "expected": { - "configurations": [ - { - "id": "spring-boot.maven:boot-api", - "provider": "spring-boot.maven", - "execution": "service", - "extensions": { "maven": { "module": "boot-api" } } - }, - { - "id": "quarkus.maven:quarkus-api", - "provider": "quarkus.maven", - "execution": "service", - "extensions": { "maven": { "module": "quarkus-api" } } - }, - { - "id": "micronaut.maven:micronaut-api", - "provider": "micronaut.maven", - "execution": "service", - "extensions": { "maven": { "module": "micronaut-api" } } - }, - { - "id": "quarkus.maven:quarkus-platform-api", - "provider": "quarkus.maven", - "execution": "service", - "extensions": { "maven": { "module": "quarkus-platform-api" } } - }, - { - "id": "micronaut.maven:micronaut-maven-api", - "provider": "micronaut.maven", - "execution": "service", - "extensions": { "maven": { "module": "micronaut-maven-api" } } - } - ], - "reason": "The plugin decides the framework, and the framework decides the provider, because each goal takes its arguments under different property names." - } - }, - { - "command": "runConfig.createLaunchPlan", - "payload": { "root": "/workspace", "configurationId": "quarkus.maven:api", "debugPort": 5005 }, - "notes": "Given `extensions.maven` of `{module: api, jvmArguments: [-Xmx2g], programArguments: [--dev]}`.", - "expected": { - "executable": { "toolchain": "project-maven" }, - "workingDirectory": ".", - "arguments": [ - "-B", - "-ntp", - "-pl", - "api", - "-am", - "-Djvm.args=-Xmx2g", - "-Dquarkus.args=--dev", - "-Ddebug=5005", - "-Dsuspend=y", - "quarkus:dev" - ], - "reason": "`quarkus:dev` starts the debug agent itself given a port, so JDWP is absent from `jvm.args` -- two agents on one port would fail to bind." - } - }, - { - "command": "runConfig.createLaunchPlan", - "payload": { "root": "/workspace", "configurationId": "micronaut.maven:api", "debugPort": 5005 }, - "notes": "Given the same `extensions.maven` as the Quarkus case.", - "expected": { - "executable": { "toolchain": "project-maven" }, - "workingDirectory": ".", - "arguments": [ - "-B", - "-ntp", - "-pl", - "api", - "-am", - "-Dmn.jvmArgs=-Xmx2g", - "-Dmn.appArgs=--dev", - "-Dmn.debug=true", - "-Dmn.debug.port=5005", - "-Dmn.debug.suspend=true", - "mn:run" - ], - "reason": "The Micronaut run mojo takes debugging as three separate properties, and no main class: it resolves one from the build." - } - } - ] -} diff --git a/shared/fixtures/execution/search-path-v1.json b/shared/fixtures/execution/search-path-v1.json deleted file mode 100644 index 63977fd11c..0000000000 --- a/shared/fixtures/execution/search-path-v1.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "existing-first-stable-candidates", - "request": { - "existing": ["/user/bin", "/usr/bin", "/user/bin"], - "candidates": [ - { "priority": 1, "id": "launcher", "path": "/tools/bin" }, - { "priority": 0, "id": "z", "path": "/runtime/z" }, - { "priority": 0, "id": "a", "path": "/runtime/a" } - ], - "caseInsensitive": false - }, - "expected": ["/user/bin", "/usr/bin", "/runtime/a", "/runtime/z", "/tools/bin"] - }, - { - "name": "windows-folds-ascii-and-ignores-empty", - "request": { - "existing": ["C:\\Custom", "", "C:\\Tools"], - "candidates": [ - { "priority": 0, "id": "node", "path": "c:\\tools" }, - { "priority": 1, "id": "launcher", "path": "D:\\Tools" } - ], - "caseInsensitive": true - }, - "expected": ["C:\\Custom", "C:\\Tools", "D:\\Tools"] - }, - { - "name": "case-sensitive-existing-path", - "request": { - "existing": ["/Bin", "/bin"], - "candidates": [], - "caseInsensitive": false - }, - "expected": ["/Bin", "/bin"] - } - ] -} diff --git a/shared/fixtures/execution/standalone-java-compile-run-v1.json b/shared/fixtures/execution/standalone-java-compile-run-v1.json deleted file mode 100644 index 94455756a2..0000000000 --- a/shared/fixtures/execution/standalone-java-compile-run-v1.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "version": 1, - "name": "Standalone Java compile-then-run launch plans", - "description": "Non-Maven java.main sources compile with javac into a per-configuration cache directory, then launch by qualified class name so JDK 8 (which lacks the JEP 330 single-file source launcher) can run them.", - "outputDirectoryPrefix": ".lithe/run/classes/", - "cases": [ - { - "name": "default package", - "source": "samples/Standalone.java", - "package": null, - "configurationId": "java-main:Standalone", - "outputDirectory": ".lithe/run/classes/java-main-Standalone", - "expectedMainClass": "Standalone", - "expectedClasspath": [".lithe/run/classes/java-main-Standalone"], - "expectedPreLaunchSteps": [ - { - "executable": { "toolchain": "project-jdk", "tool": "javac" }, - "arguments": ["-d", ".lithe/run/classes/java-main-Standalone", "samples/Standalone.java"] - } - ], - "expectedArguments": ["Standalone"] - }, - { - "name": "package qualified", - "source": "src/com/example/WorkerMain.java", - "package": "com.example", - "configurationId": "java-main:com.example.WorkerMain", - "outputDirectory": ".lithe/run/classes/java-main-com.example.WorkerMain", - "expectedMainClass": "com.example.WorkerMain", - "expectedClasspath": [".lithe/run/classes/java-main-com.example.WorkerMain"], - "expectedPreLaunchSteps": [ - { - "executable": { "toolchain": "project-jdk", "tool": "javac" }, - "arguments": ["-d", ".lithe/run/classes/java-main-com.example.WorkerMain", "src/com/example/WorkerMain.java"] - } - ], - "expectedArguments": ["com.example.WorkerMain"] - } - ] -} diff --git a/shared/fixtures/git/authentication-failure-v1.json b/shared/fixtures/git/authentication-failure-v1.json deleted file mode 100644 index 3c095acc77..0000000000 --- a/shared/fixtures/git/authentication-failure-v1.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "errorCode": "git_authentication_failed", - "failures": [ - {"name": "http-bad-credentials", "stderr": "remote: Invalid username or password.\nfatal: Authentication failed for 'https://example.com/a.git/'\n"}, - {"name": "http-no-credential", "stderr": "fatal: could not read Username for 'https://example.com': terminal prompts disabled\n"}, - {"name": "http-forbidden", "stderr": "remote: Permission to a/b.git denied to someone.\nfatal: unable to access 'https://github.com/a/b.git/': The requested URL returned error: 403\n"}, - {"name": "ssh-publickey", "stderr": "git@github.com: Permission denied (publickey).\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n"} - ], - "unrelated": [ - {"name": "dns", "stderr": "fatal: unable to access 'https://example.com/': Could not resolve host: example.com\n"}, - {"name": "not-found", "stderr": "fatal: repository 'https://example.com/a.git/' not found\n"}, - {"name": "ssh-timeout", "stderr": "ssh: connect to host example.com port 22: Connection timed out\nfatal: Could not read from remote repository.\n"}, - {"name": "non-fast-forward", "stderr": "! [rejected] main -> main (non-fast-forward)\n"} - ] -} diff --git a/shared/fixtures/git/branch-name-preview-v1.json b/shared/fixtures/git/branch-name-preview-v1.json deleted file mode 100644 index 2e9065c5e2..0000000000 --- a/shared/fixtures/git/branch-name-preview-v1.json +++ /dev/null @@ -1,219 +0,0 @@ -{ - "protocolVersion": 1, - "cases": [ - { - "name": "typing cleanup replaces spaces and drops invalid characters", - "request": { - "rawName": "my new branch", - "requireName": false, - "references": [{"kind": "local", "shortName": "main"}], - "reference": null - }, - "response": { - "typingCleanedName": "my-new-branch", - "cleanedName": "my-new-branch", - "initialName": "", - "error": null - } - }, - { - "name": "submit cleanup strips a trailing dot, slash, or lock suffix", - "request": { - "rawName": "topic.lock", - "requireName": true, - "references": [{"kind": "local", "shortName": "main"}], - "reference": null - }, - "response": { - "typingCleanedName": "topic.lock", - "cleanedName": "topic", - "initialName": "", - "error": null - } - }, - { - "name": "a trailing slash stays while typing and is stripped on submit", - "request": { - "rawName": "feature/", - "requireName": false, - "references": [{"kind": "local", "shortName": "main"}], - "reference": null - }, - "response": { - "typingCleanedName": "feature/", - "cleanedName": "feature", - "initialName": "", - "error": null - } - }, - { - "name": "a remote base proposes the name without its remote prefix", - "request": { - "rawName": "feature/login", - "requireName": false, - "references": [ - {"kind": "local", "shortName": "main"}, - {"kind": "remote", "shortName": "origin/main"} - ], - "reference": {"kind": "remote", "shortName": "origin/feature/login"} - }, - "response": { - "typingCleanedName": "feature/login", - "cleanedName": "feature/login", - "initialName": "feature/login", - "error": null - } - }, - { - "name": "an empty name is allowed while typing", - "request": { - "rawName": "", - "requireName": false, - "references": [{"kind": "local", "shortName": "main"}], - "reference": null - }, - "response": { - "typingCleanedName": "", - "cleanedName": "", - "initialName": "", - "error": null - } - }, - { - "name": "an empty name fails on apply", - "request": { - "rawName": "", - "requireName": true, - "references": [{"kind": "local", "shortName": "main"}], - "reference": null - }, - "response": { - "typingCleanedName": "", - "cleanedName": "", - "initialName": "", - "error": {"code": "empty"} - } - }, - { - "name": "spaces fold into the cleanup symbol", - "request": { - "rawName": " ", - "requireName": true, - "references": [{"kind": "local", "shortName": "main"}], - "reference": null - }, - "response": { - "typingCleanedName": "-", - "cleanedName": "-", - "initialName": "", - "error": null - } - }, - { - "name": "HEAD is reserved regardless of case", - "request": { - "rawName": "Head", - "requireName": true, - "references": [{"kind": "local", "shortName": "main"}], - "reference": null - }, - "response": { - "typingCleanedName": "Head", - "cleanedName": "Head", - "initialName": "", - "error": {"code": "head"} - } - }, - { - "name": "a remote-tracking branch already uses the name", - "request": { - "rawName": "origin/main", - "requireName": true, - "references": [ - {"kind": "local", "shortName": "main"}, - {"kind": "remote", "shortName": "origin/main"} - ], - "reference": null - }, - "response": { - "typingCleanedName": "origin/main", - "cleanedName": "origin/main", - "initialName": "", - "error": {"code": "clashesWithRemote", "name": "origin/main"} - } - }, - { - "name": "local branches already store the name as a directory", - "request": { - "rawName": "feature", - "requireName": true, - "references": [ - {"kind": "local", "shortName": "main"}, - {"kind": "local", "shortName": "feature/login"} - ], - "reference": null - }, - "response": { - "typingCleanedName": "feature", - "cleanedName": "feature", - "initialName": "", - "error": {"code": "clashesWithDirectory", "name": "feature"} - } - }, - { - "name": "a local branch already uses the name", - "request": { - "rawName": "main", - "requireName": true, - "references": [{"kind": "local", "shortName": "main"}], - "reference": null - }, - "response": { - "typingCleanedName": "main", - "cleanedName": "main", - "initialName": "", - "error": {"code": "alreadyExists", "name": "main"} - } - }, - { - "name": "a local branch occupies one of the name slash prefixes", - "request": { - "rawName": "feature/signup", - "requireName": true, - "references": [ - {"kind": "local", "shortName": "main"}, - {"kind": "local", "shortName": "feature"} - ], - "reference": null - }, - "response": { - "typingCleanedName": "feature/signup", - "cleanedName": "feature/signup", - "initialName": "", - "error": { - "code": "clashesWithBranchPrefix", - "name": "feature/signup", - "branch": "feature" - } - } - }, - { - "name": "tags do not occupy the branch namespace", - "request": { - "rawName": "v1", - "requireName": true, - "references": [ - {"kind": "local", "shortName": "main"}, - {"kind": "tag", "shortName": "v1"} - ], - "reference": {"kind": "local", "shortName": "main"} - }, - "response": { - "typingCleanedName": "v1", - "cleanedName": "v1", - "initialName": "main", - "error": null - } - } - ] -} diff --git a/shared/fixtures/git/change-targets-v1.json b/shared/fixtures/git/change-targets-v1.json deleted file mode 100644 index e429e75e12..0000000000 --- a/shared/fixtures/git/change-targets-v1.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "description": "git.normalizeChangeTargets drops entries listed below an untracked directory summary of the same repository. Both hosts send their captured selection and act only on the returned indices.", - "cases": [ - { - "name": "summary absorbs its listed files and nested summaries", - "request": { - "targets": [ - { "root": "/repo", "path": "src/App.swift" }, - { "root": "/repo", "path": "target/", "untrackedDirectory": true }, - { "root": "/repo", "path": "target/a.class" }, - { "root": "/repo", "path": "target/classes/", "untrackedDirectory": true }, - { "root": "/repo", "path": "target/classes/b.class" } - ] - }, - "indices": [0, 1] - }, - { - "name": "a sibling with a shared name prefix is not below the summary", - "request": { - "targets": [ - { "root": "/repo", "path": "target/", "untrackedDirectory": true }, - { "root": "/repo", "path": "targets.txt" }, - { "root": "/repo", "path": "target" } - ] - }, - "indices": [0, 1, 2] - }, - { - "name": "a summary only covers its own repository", - "request": { - "targets": [ - { "root": "/workspace/app", "path": "build/", "untrackedDirectory": true }, - { "root": "/workspace/lib", "path": "build/out.txt" }, - { "root": "/workspace/app", "path": "build/out.txt" } - ] - }, - "indices": [0, 1] - }, - { - "name": "listed files without their summary stay targets", - "request": { - "targets": [ - { "root": "/repo", "path": "target/a.class" }, - { "root": "/repo", "path": "target/classes/" , "untrackedDirectory": true} - ] - }, - "indices": [0, 1] - }, - { - "name": "an empty selection stays empty", - "request": { "targets": [] }, - "indices": [] - } - ], - "invalid": [ - { - "name": "summary without trailing slash", - "request": { "targets": [{ "root": "/repo", "path": "target", "untrackedDirectory": true }] } - }, - { - "name": "missing root", - "request": { "targets": [{ "root": "", "path": "a.txt" }] } - }, - { - "name": "unknown field", - "request": { "targets": [{ "root": "/repo", "path": "a.txt", "status": "??" }] } - } - ] -} diff --git a/shared/fixtures/git/changelists-reducer-v1.json b/shared/fixtures/git/changelists-reducer-v1.json deleted file mode 100644 index ea0b7f0b7e..0000000000 --- a/shared/fixtures/git/changelists-reducer-v1.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "request": { - "state": { - "lists": [ - { - "id": "default", - "name": "" - }, - { - "id": "one", - "name": "One" - }, - { - "id": "two", - "name": "Two" - } - ], - "activeId": "default", - "assignments": { - "/repo": { - "dir/": "one", - "dir/a": "two", - "source": "one", - "dest": "default" - } - } - }, - "files": [ - { - "root": "/repo", - "path": "dir/a", - "isCopy": false - }, - { - "root": "/repo", - "path": "dir/b", - "isCopy": false - } - ], - "repositories": [ - { - "id": "A", - "root": "/repo" - } - ], - "action": { - "type": "remove", - "id": "two" - } - }, - "response": { - "state": { - "lists": [ - { - "id": "default", - "name": "" - }, - { - "id": "one", - "name": "One" - } - ], - "activeId": "default", - "assignments": { - "/repo": { - "dir/": "one", - "dir/a": "default", - "source": "one", - "dest": "default" - } - } - }, - "members": [ - "default", - "one" - ], - "scope": { - "include": false, - "paths": { - "A": [ - "dir/", - "dir/b", - "source" - ] - }, - "membership": { - "activeId": "default", - "assignments": { - "A": { - "dir/": "one", - "dir/a": "default", - "source": "one", - "dest": "default" - } - } - } - } - } -} diff --git a/shared/fixtures/git/checkout-metadata-v1.json b/shared/fixtures/git/checkout-metadata-v1.json deleted file mode 100644 index 9b467ac212..0000000000 --- a/shared/fixtures/git/checkout-metadata-v1.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "cases": [ - { "command": "git.parseCheckoutMetadata", "text": "ref: refs/heads/feature/search\n", "expected": { "branch": "feature/search" } }, - { "command": "git.parseCheckoutMetadata", "text": "0123456789abcdef0123456789abcdef01234567\n", "expected": { "branch": "01234567" } }, - { "command": "git.parseCheckoutMetadata", "text": "ref: refs/tags/v1\n", "expected": { "branch": null } }, - { "command": "git.parseCheckoutMetadata", "text": "\n", "expected": { "branch": null } }, - { "command": "git.parseGitdirPointer", "text": "gitdir: ../repository/.git/worktrees/checkout\n", "expected": { "path": "../repository/.git/worktrees/checkout" } }, - { "command": "git.parseGitdirPointer", "text": "gitdir: \n", "expected": { "path": null } } - ], - "expected": "Each case returns its expected object without accessing the filesystem." -} diff --git a/shared/fixtures/git/command-error-response-v1.json b/shared/fixtures/git/command-error-response-v1.json deleted file mode 100644 index de3fbe4359..0000000000 --- a/shared/fixtures/git/command-error-response-v1.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "arguments": ["stash", "push", "--include-untracked", "--message", "Lithe Smart Checkout"], - "output": "No local changes to save\n", - "stdout": "No local changes to save\n", - "stderr": "", - "exitCode": 0, - "invocations": [ - { - "arguments": ["stash", "push", "--include-untracked", "--message", "Lithe Smart Checkout"], - "stdout": "No local changes to save\n", - "stderr": "", - "exitCode": 0 - } - ], - "operationError": { - "code": "invalid_request", - "message": "Invalid Git reference" - } -} diff --git a/shared/fixtures/git/command-response-v1.json b/shared/fixtures/git/command-response-v1.json deleted file mode 100644 index 691383c9f5..0000000000 --- a/shared/fixtures/git/command-response-v1.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "arguments": ["checkout", "HEAD", "--", "README.md"], - "output": "", - "stdout": "", - "stderr": "", - "exitCode": 0, - "invocations": [ - { - "arguments": ["status", "--porcelain", "--untracked-files=all", "--", "README.md"], - "stdout": " M README.md\n", - "stderr": "", - "exitCode": 0 - }, - { - "arguments": ["checkout", "HEAD", "--", "README.md"], - "stdout": "", - "stderr": "", - "exitCode": 0 - } - ] -} diff --git a/shared/fixtures/git/commit-lookup-response-v1.json b/shared/fixtures/git/commit-lookup-response-v1.json deleted file mode 100644 index ddb22ca382..0000000000 --- a/shared/fixtures/git/commit-lookup-response-v1.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "commit": { - "hash": "0123456789abcdef0123456789abcdef01234567", - "shortHash": "0123456", - "parentHashes": ["89abcdef0123456789abcdef0123456789abcdef"], - "authorName": "Lithe Test", - "authorEmail": "test@example.invalid", - "date": "2026/08/30 12:00", - "dateUtcOffsetMinutes": 480, - "subject": "Fix commit details", - "decorations": "HEAD -> feature/recent" - }, - "body": "Explain why the change is needed.\n\n- keep blank lines\n and indentation" -} diff --git a/shared/fixtures/git/commit-message-context-v1.json b/shared/fixtures/git/commit-message-context-v1.json deleted file mode 100644 index 00f6795ca4..0000000000 --- a/shared/fixtures/git/commit-message-context-v1.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "captureRequest": { - "action": "capture", - "mode": "staged", - "maximumDiffCharacters": 8000, - "repositories": [ - { - "root": "/repo", - "files": [{ "path": "text.txt", "changeKind": "modified" }] - } - ] - }, - "captureResponse": { - "files": [ - { "path": "text.txt", "changeKind": "modified", "diff": "+example", "originalCharacters": 8, "truncated": false } - ], - "token": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" - }, - "checkResponse": { "isCurrent": false } -} diff --git a/shared/fixtures/git/commit-selection-plan-v1.json b/shared/fixtures/git/commit-selection-plan-v1.json deleted file mode 100644 index f55d3e6ae9..0000000000 --- a/shared/fixtures/git/commit-selection-plan-v1.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "version": 1, - "cases": [ - {"name":"preserve partially staged selection and exclude other index entry", "selected":[{"path":"selected.txt","status":"MM"}], "changes":[{"path":"selected.txt","status":"MM"},{"path":"excluded.txt","status":"M "}], "unstage":["excluded.txt"], "stage":[]}, - {"name":"stage a new selection", "selected":[{"path":"selected.txt","status":" M"}], "changes":[{"path":"selected.txt","status":" M"}], "unstage":[], "stage":["selected.txt"]}, - {"name":"excluded copy does not unstage selected source", "selected":[{"path":"source.txt","status":"M "}], "changes":[{"path":"source.txt","status":"M "},{"path":"copy.txt","originalPath":"source.txt","status":"C "}], "unstage":["copy.txt"], "stage":[]}, - {"name":"excluded rename includes both paths", "selected":[{"path":"selected.txt","status":" M"}], "changes":[{"path":"selected.txt","status":" M"},{"path":"new.txt","originalPath":"old.txt","status":"R "}], "unstage":["new.txt","old.txt"], "stage":["selected.txt"]} - ] -} diff --git a/shared/fixtures/git/comparison-untracked-v1.json b/shared/fixtures/git/comparison-untracked-v1.json deleted file mode 100644 index 1ea3dd2bbc..0000000000 --- a/shared/fixtures/git/comparison-untracked-v1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "request": { - "reference": "HEAD", - "includeUntracked": true - }, - "expected": [ - { "path": "a-untracked.txt", "status": "A", "isUntracked": true }, - { "path": "tracked.txt", "status": "M" } - ] -} diff --git a/shared/fixtures/git/console-command-v1.json b/shared/fixtures/git/console-command-v1.json deleted file mode 100644 index 97de07c1fc..0000000000 --- a/shared/fixtures/git/console-command-v1.json +++ /dev/null @@ -1,301 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "fetch folds legacy global flags with temporary environment configuration", - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "fetch", - "--progress", - "--prune", - "--", - "origin" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ], - [ - "core.quotepath", - "false" - ], - [ - "log.showSignature", - "false" - ] - ], - "displayArguments": [ - "fetch", - "--progress", - "--prune", - "--", - "origin" - ], - "globalArguments": [ - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "-c", - "log.showSignature=false", - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false" - ] - }, - { - "name": "global working directory and inline config remain inspectable", - "arguments": [ - "-C", - "nested repo", - "-ccore.quotepath=false", - "status" - ], - "temporaryConfig": [], - "displayArguments": [ - "status" - ], - "globalArguments": [ - "-C", - "nested repo", - "-ccore.quotepath=false" - ] - }, - { - "name": "commit message and paths are never interpreted as global options", - "arguments": [ - "commit", - "-m", - "fix -c color.ui=false", - "--", - "-c" - ], - "temporaryConfig": [], - "displayArguments": [ - "commit", - "-m", - "fix -c color.ui=false", - "--", - "-c" - ], - "globalArguments": [] - }, - { - "name": "version flag remains visible", - "arguments": [ - "--version" - ], - "temporaryConfig": [], - "displayArguments": [ - "--version" - ], - "globalArguments": [] - }, - { - "name": "add uses the same inline global option fold", - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "add", - "--", - "notes with spaces.txt" - ], - "temporaryConfig": [ - [ - "core.quotepath", - "false" - ] - ], - "displayArguments": [ - "add", - "--", - "notes with spaces.txt" - ], - "globalArguments": [ - "-c", - "core.quotepath=false", - "--no-pager", - "-c", - "color.ui=false" - ] - }, - { - "name": "commit uses the same inline global option fold", - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "commit", - "-m", - "update notes" - ], - "temporaryConfig": [ - [ - "core.quotepath", - "false" - ] - ], - "displayArguments": [ - "commit", - "-m", - "update notes" - ], - "globalArguments": [ - "-c", - "core.quotepath=false", - "--no-pager", - "-c", - "color.ui=false" - ] - }, - { - "name": "checkout uses the same inline global option fold", - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "checkout", - "feature" - ], - "temporaryConfig": [ - [ - "core.quotepath", - "false" - ] - ], - "displayArguments": [ - "checkout", - "feature" - ], - "globalArguments": [ - "-c", - "core.quotepath=false", - "--no-pager", - "-c", - "color.ui=false" - ] - }, - { - "name": "push uses the same inline global option fold", - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "push", - "origin", - "feature" - ], - "temporaryConfig": [ - [ - "core.quotepath", - "false" - ] - ], - "displayArguments": [ - "push", - "origin", - "feature" - ], - "globalArguments": [ - "-c", - "core.quotepath=false", - "--no-pager", - "-c", - "color.ui=false" - ] - }, - { - "name": "stash uses the same inline global option fold", - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "stash", - "pop" - ], - "temporaryConfig": [ - [ - "core.quotepath", - "false" - ] - ], - "displayArguments": [ - "stash", - "pop" - ], - "globalArguments": [ - "-c", - "core.quotepath=false", - "--no-pager", - "-c", - "color.ui=false" - ] - }, - { - "name": "rebase uses the same inline global option fold", - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "rebase", - "main" - ], - "temporaryConfig": [ - [ - "core.quotepath", - "false" - ] - ], - "displayArguments": [ - "rebase", - "main" - ], - "globalArguments": [ - "-c", - "core.quotepath=false", - "--no-pager", - "-c", - "color.ui=false" - ] - }, - { - "name": "worktree uses the same inline global option fold", - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "worktree", - "add", - "../feature", - "feature" - ], - "temporaryConfig": [ - [ - "core.quotepath", - "false" - ] - ], - "displayArguments": [ - "worktree", - "add", - "../feature", - "feature" - ], - "globalArguments": [ - "-c", - "core.quotepath=false", - "--no-pager", - "-c", - "color.ui=false" - ] - } - ] -} diff --git a/shared/fixtures/git/console-lifecycle-v1.json b/shared/fixtures/git/console-lifecycle-v1.json deleted file mode 100644 index 8bd50b35a9..0000000000 --- a/shared/fixtures/git/console-lifecycle-v1.json +++ /dev/null @@ -1,439 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "silent requests never allocate command rows", - "steps": [ - { - "event": { - "operationId": "pending", - "type": "requestStarted", - "retention": { - "maxRecords": 200, - "maxRecordOutputCharacters": 32768, - "maxRecordOutputLines": 2000, - "maxTotalOutputCharacters": 1048576 - } - }, - "commands": [], - "running": [] - }, - { - "event": { - "operationId": "pending", - "type": "requestFinished", - "unconfirmedInvocations": [], - "failureRecord": false - }, - "commands": [], - "running": [] - } - ] - }, - { - "name": "clearing preflight suppresses the old request and permits a new one", - "steps": [ - { - "event": { - "operationId": "pending", - "type": "requestStarted", - "retention": { - "maxRecords": 200, - "maxRecordOutputCharacters": 32768, - "maxRecordOutputLines": 2000, - "maxTotalOutputCharacters": 1048576 - } - }, - "commands": [], - "running": [] - }, - { - "clear": true, - "commands": [], - "running": [] - }, - { - "event": { - "operationId": "pending", - "type": "started", - "invocationId": 1, - "workingDirectory": "/workspace/repository", - "arguments": [ - "push", - "origin", - "feature" - ] - }, - "commands": [], - "running": [ - "pending" - ] - }, - { - "event": { - "operationId": "pending", - "type": "output", - "invocationId": 1, - "text": "late output", - "stream": "stdout" - }, - "commands": [], - "running": [ - "pending" - ] - }, - { - "event": { - "operationId": "pending", - "type": "requestFinished", - "error": { - "code": "cancelled", - "message": "Operation was cancelled" - }, - "unconfirmedInvocations": [ - 1 - ], - "failureRecord": false - }, - "commands": [], - "running": [] - }, - { - "event": { - "operationId": "new", - "type": "requestStarted", - "retention": { - "maxRecords": 200, - "maxRecordOutputCharacters": 32768, - "maxRecordOutputLines": 2000, - "maxTotalOutputCharacters": 1048576 - } - }, - "commands": [], - "running": [] - }, - { - "event": { - "operationId": "new", - "type": "started", - "invocationId": 1, - "workingDirectory": "/workspace/repository", - "arguments": [ - "worktree", - "repair" - ] - }, - "commands": [ - [ - "worktree", - "repair" - ] - ], - "running": [ - "new" - ] - }, - { - "event": { - "operationId": "new", - "type": "finished", - "invocationId": 1, - "exitCode": 0, - "state": "completed" - }, - "commands": [ - [ - "worktree", - "repair" - ] - ], - "running": [ - "new" - ] - }, - { - "event": { - "operationId": "new", - "type": "requestFinished", - "unconfirmedInvocations": [], - "failureRecord": false - }, - "commands": [ - [ - "worktree", - "repair" - ] - ], - "running": [] - } - ] - }, - { - "name": "cleared started commands stay cancellable until the request finishes", - "steps": [ - { - "event": { - "operationId": "pending", - "type": "requestStarted", - "retention": { - "maxRecords": 200, - "maxRecordOutputCharacters": 32768, - "maxRecordOutputLines": 2000, - "maxTotalOutputCharacters": 1048576 - } - }, - "commands": [], - "running": [] - }, - { - "event": { - "operationId": "pending", - "type": "started", - "invocationId": 1, - "workingDirectory": "/workspace/repository", - "arguments": [ - "fetch", - "origin" - ] - }, - "commands": [ - [ - "fetch", - "origin" - ] - ], - "running": [ - "pending" - ] - }, - { - "clear": true, - "commands": [], - "running": [ - "pending" - ] - }, - { - "event": { - "operationId": "pending", - "type": "finished", - "invocationId": 1, - "exitCode": 0, - "state": "completed" - }, - "commands": [], - "running": [ - "pending" - ] - }, - { - "event": { - "operationId": "pending", - "type": "requestFinished", - "unconfirmedInvocations": [], - "failureRecord": false - }, - "commands": [], - "running": [] - } - ] - }, - { - "name": "preflight failures retain their reason without a command", - "steps": [ - { - "event": { - "operationId": "preflight-failure", - "type": "requestStarted", - "workingDirectory": "/workspace/repository", - "retention": { - "maxRecords": 200, - "maxRecordOutputCharacters": 32768, - "maxRecordOutputLines": 2000, - "maxTotalOutputCharacters": 1048576 - } - }, - "commands": [], - "running": [] - }, - { - "event": { - "operationId": "preflight-failure", - "type": "requestFinished", - "error": { - "code": "process_start_failed", - "message": "Could not inspect Git executable", - "details": "Permission denied" - }, - "unconfirmedInvocations": [], - "failureRecord": true - }, - "commands": [ - [] - ], - "running": [], - "errors": [ - "Could not inspect Git executable\nPermission denied" - ], - "roots": [ - "/workspace/repository" - ], - "states": [ - "unconfirmed" - ] - } - ] - }, - { - "name": "cancelled requests without a command leave no failure row", - "steps": [ - { - "event": { - "operationId": "superseded", - "type": "requestStarted", - "workingDirectory": "/workspace/repository", - "retention": { - "maxRecords": 200, - "maxRecordOutputCharacters": 32768, - "maxRecordOutputLines": 2000, - "maxTotalOutputCharacters": 1048576 - } - }, - "commands": [], - "running": [] - }, - { - "event": { - "operationId": "superseded", - "type": "requestFinished", - "error": { - "code": "cancelled", - "message": "Operation was cancelled" - }, - "unconfirmedInvocations": [], - "failureRecord": false - }, - "commands": [], - "running": [], - "errors": [], - "roots": [], - "states": [] - } - ] - }, - { - "name": "a cancelled request keeps the command it had started", - "steps": [ - { - "event": { - "operationId": "interrupted", - "type": "requestStarted", - "workingDirectory": "/workspace/repository", - "retention": { - "maxRecords": 200, - "maxRecordOutputCharacters": 32768, - "maxRecordOutputLines": 2000, - "maxTotalOutputCharacters": 1048576 - } - }, - "commands": [], - "running": [] - }, - { - "event": { - "operationId": "interrupted", - "type": "started", - "invocationId": 1, - "workingDirectory": "/workspace/repository", - "arguments": [ - "fetch", - "origin" - ] - }, - "commands": [ - [ - "fetch", - "origin" - ] - ], - "running": [ - "interrupted" - ] - }, - { - "event": { - "operationId": "interrupted", - "type": "requestFinished", - "error": { - "code": "cancelled", - "message": "Operation was cancelled" - }, - "unconfirmedInvocations": [ - 1 - ], - "failureRecord": false - }, - "commands": [ - [ - "fetch", - "origin" - ] - ], - "running": [], - "errors": [ - "Operation was cancelled" - ], - "roots": [ - "/workspace/repository" - ], - "states": [ - "unconfirmed" - ] - } - ] - }, - { - "name": "cleared preflight failures remain hidden", - "steps": [ - { - "event": { - "operationId": "preflight-failure", - "type": "requestStarted", - "workingDirectory": "/workspace/repository", - "retention": { - "maxRecords": 200, - "maxRecordOutputCharacters": 32768, - "maxRecordOutputLines": 2000, - "maxTotalOutputCharacters": 1048576 - } - }, - "commands": [], - "running": [] - }, - { - "clear": true, - "commands": [], - "running": [] - }, - { - "event": { - "operationId": "preflight-failure", - "type": "requestFinished", - "error": { - "code": "process_start_failed", - "message": "Could not inspect Git executable", - "details": "Permission denied" - }, - "unconfirmedInvocations": [], - "failureRecord": true - }, - "commands": [], - "running": [], - "errors": [], - "roots": [], - "states": [] - } - ] - } - ] -} diff --git a/shared/fixtures/git/console-presentation-v1.json b/shared/fixtures/git/console-presentation-v1.json deleted file mode 100644 index 0e16c984e2..0000000000 --- a/shared/fixtures/git/console-presentation-v1.json +++ /dev/null @@ -1,4455 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "behavior flags remain visible", - "input": { - "records": [ - { - "id": "one", - "root": "/workspace/repo", - "arguments": [ - "-C", - "../other repo", - "reset", - "--hard", - "HEAD~3" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "visibleCommandContains": [ - "-C", - "'../other repo'", - "reset", - "--hard", - "HEAD~3" - ], - "folds": [] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "-C" - }, - { - "count": 1, - "id": "argument-3", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'../other repo'" - }, - { - "count": 1, - "id": "argument-4", - "kind": "text", - "matches": 0, - "preview": "", - "text": "reset" - }, - { - "count": 1, - "id": "argument-5", - "kind": "text", - "matches": 0, - "preview": "", - "text": "--hard" - }, - { - "count": 1, - "id": "argument-6", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'HEAD~3'" - } - ], - "failed": false, - "id": "one", - "output": [], - "repositoryLabel": "/workspace/repo", - "notice": "completedWithoutOutput" - } - ], - "groups": [ - { - "id": "one", - "matches": 0, - "recordIds": [ - "one" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "short output is complete", - "input": { - "records": [ - { - "id": "one", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "line 0" - }, - { - "stream": "stdout", - "text": "line 1" - }, - { - "stream": "stdout", - "text": "line 2" - }, - { - "stream": "stdout", - "text": "line 3" - }, - { - "stream": "stdout", - "text": "line 4" - }, - { - "stream": "stdout", - "text": "line 5" - }, - { - "stream": "stdout", - "text": "line 6" - }, - { - "stream": "stdout", - "text": "line 7" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "folds": [] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "one", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 2, - "id": "output-1", - "kind": "text", - "matches": 0, - "start": 1, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 3, - "id": "output-2", - "kind": "text", - "matches": 0, - "start": 2, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 4, - "id": "output-3", - "kind": "text", - "matches": 0, - "start": 3, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 5, - "id": "output-4", - "kind": "text", - "matches": 0, - "start": 4, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 6, - "id": "output-5", - "kind": "text", - "matches": 0, - "start": 5, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 7, - "id": "output-6", - "kind": "text", - "matches": 0, - "start": 6, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 8, - "id": "output-7", - "kind": "text", - "matches": 0, - "start": 7, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - } - ], - "groups": [ - { - "id": "one", - "matches": 0, - "recordIds": [ - "one" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "ordinary long output remains visible", - "input": { - "records": [ - { - "id": "one", - "root": "/workspace/repo", - "arguments": [ - "unknown-command" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "line 0" - }, - { - "stream": "stdout", - "text": "line 1" - }, - { - "stream": "stdout", - "text": "line 2" - }, - { - "stream": "stdout", - "text": "line 3" - }, - { - "stream": "stdout", - "text": "line 4" - }, - { - "stream": "stdout", - "text": "line 5" - }, - { - "stream": "stdout", - "text": "line 6" - }, - { - "stream": "stdout", - "text": "line 7" - }, - { - "stream": "stdout", - "text": "line 8" - }, - { - "stream": "stdout", - "text": "line 9" - }, - { - "stream": "stdout", - "text": "line 10" - }, - { - "stream": "stdout", - "text": "line 11" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "line 6" - }, - "expected": { - "folds": [], - "matches": 1 - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "unknown-command" - } - ], - "failed": false, - "id": "one", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 2, - "id": "output-1", - "kind": "text", - "matches": 0, - "start": 1, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 3, - "id": "output-2", - "kind": "text", - "matches": 0, - "start": 2, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 4, - "id": "output-3", - "kind": "text", - "matches": 0, - "start": 3, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 5, - "id": "output-4", - "kind": "text", - "matches": 0, - "start": 4, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 6, - "id": "output-5", - "kind": "text", - "matches": 0, - "start": 5, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 7, - "id": "output-6", - "kind": "text", - "matches": 1, - "start": 6, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 8, - "id": "output-7", - "kind": "text", - "matches": 0, - "start": 7, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 9, - "id": "output-8", - "kind": "text", - "matches": 0, - "start": 8, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 10, - "id": "output-9", - "kind": "text", - "matches": 0, - "start": 9, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 11, - "id": "output-10", - "kind": "text", - "matches": 0, - "start": 10, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 12, - "id": "output-11", - "kind": "text", - "matches": 0, - "start": 11, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - } - ], - "groups": [ - { - "id": "one", - "matches": 1, - "recordIds": [ - "one" - ] - } - ], - "matches": [ - { - "fragmentId": "output-6", - "lineIndex": 6, - "recordId": "one" - } - ], - "totalMatches": 1 - } - }, - { - "name": "failure keeps complete output context", - "input": { - "records": [ - { - "id": "one", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "line 0" - }, - { - "stream": "stdout", - "text": "line 1" - }, - { - "stream": "stdout", - "text": "line 2" - }, - { - "stream": "stdout", - "text": "line 3" - }, - { - "stream": "stdout", - "text": "line 4" - }, - { - "stream": "stdout", - "text": "line 5" - }, - { - "stream": "stdout", - "text": "line 6" - }, - { - "stream": "stdout", - "text": "line 7" - }, - { - "stream": "stdout", - "text": "line 8" - }, - { - "stream": "stdout", - "text": "line 9" - }, - { - "stream": "stderr", - "text": "fatal: cannot update reference" - }, - { - "stream": "stdout", - "text": "line 11" - }, - { - "stream": "stdout", - "text": "line 12" - }, - { - "stream": "stdout", - "text": "line 13" - }, - { - "stream": "stdout", - "text": "line 14" - }, - { - "stream": "stdout", - "text": "line 15" - }, - { - "stream": "stdout", - "text": "line 16" - }, - { - "stream": "stdout", - "text": "line 17" - }, - { - "stream": "stdout", - "text": "line 18" - }, - { - "stream": "stdout", - "text": "line 19" - }, - { - "stream": "stdout", - "text": "line 20" - }, - { - "stream": "stdout", - "text": "line 21" - }, - { - "stream": "stdout", - "text": "line 22" - }, - { - "stream": "stdout", - "text": "line 23" - }, - { - "stream": "stdout", - "text": "line 24" - }, - { - "stream": "stdout", - "text": "line 25" - }, - { - "stream": "stdout", - "text": "line 26" - }, - { - "stream": "stdout", - "text": "line 27" - }, - { - "stream": "stdout", - "text": "line 28" - }, - { - "stream": "stdout", - "text": "line 29" - } - ], - "state": "completed", - "exitCode": 128, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "folds": [], - "failed": true - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": true, - "id": "one", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 2, - "id": "output-1", - "kind": "text", - "matches": 0, - "start": 1, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 3, - "id": "output-2", - "kind": "text", - "matches": 0, - "start": 2, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 4, - "id": "output-3", - "kind": "text", - "matches": 0, - "start": 3, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 5, - "id": "output-4", - "kind": "text", - "matches": 0, - "start": 4, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 6, - "id": "output-5", - "kind": "text", - "matches": 0, - "start": 5, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 7, - "id": "output-6", - "kind": "text", - "matches": 0, - "start": 6, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 8, - "id": "output-7", - "kind": "text", - "matches": 0, - "start": 7, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 9, - "id": "output-8", - "kind": "text", - "matches": 0, - "start": 8, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 10, - "id": "output-9", - "kind": "text", - "matches": 0, - "start": 9, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 11, - "id": "output-10", - "kind": "text", - "matches": 0, - "start": 10, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 12, - "id": "output-11", - "kind": "text", - "matches": 0, - "start": 11, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 13, - "id": "output-12", - "kind": "text", - "matches": 0, - "start": 12, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 14, - "id": "output-13", - "kind": "text", - "matches": 0, - "start": 13, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 15, - "id": "output-14", - "kind": "text", - "matches": 0, - "start": 14, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 16, - "id": "output-15", - "kind": "text", - "matches": 0, - "start": 15, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 17, - "id": "output-16", - "kind": "text", - "matches": 0, - "start": 16, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 18, - "id": "output-17", - "kind": "text", - "matches": 0, - "start": 17, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 19, - "id": "output-18", - "kind": "text", - "matches": 0, - "start": 18, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 20, - "id": "output-19", - "kind": "text", - "matches": 0, - "start": 19, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 21, - "id": "output-20", - "kind": "text", - "matches": 0, - "start": 20, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 22, - "id": "output-21", - "kind": "text", - "matches": 0, - "start": 21, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 23, - "id": "output-22", - "kind": "text", - "matches": 0, - "start": 22, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 24, - "id": "output-23", - "kind": "text", - "matches": 0, - "start": 23, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 25, - "id": "output-24", - "kind": "text", - "matches": 0, - "start": 24, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 26, - "id": "output-25", - "kind": "text", - "matches": 0, - "start": 25, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 27, - "id": "output-26", - "kind": "text", - "matches": 0, - "start": 26, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 28, - "id": "output-27", - "kind": "text", - "matches": 0, - "start": 27, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 29, - "id": "output-28", - "kind": "text", - "matches": 0, - "start": 28, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 30, - "id": "output-29", - "kind": "text", - "matches": 0, - "start": 29, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - } - ], - "groups": [ - { - "id": "one", - "matches": 0, - "recordIds": [ - "one" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "repeated ordinary text remains independent", - "input": { - "records": [ - { - "id": "one", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - }, - { - "stream": "stdout", - "text": "same response" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "folds": [] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "one", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 2, - "id": "output-1", - "kind": "text", - "matches": 0, - "start": 1, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 3, - "id": "output-2", - "kind": "text", - "matches": 0, - "start": 2, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 4, - "id": "output-3", - "kind": "text", - "matches": 0, - "start": 3, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 5, - "id": "output-4", - "kind": "text", - "matches": 0, - "start": 4, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 6, - "id": "output-5", - "kind": "text", - "matches": 0, - "start": 5, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 7, - "id": "output-6", - "kind": "text", - "matches": 0, - "start": 6, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 8, - "id": "output-7", - "kind": "text", - "matches": 0, - "start": 7, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 9, - "id": "output-8", - "kind": "text", - "matches": 0, - "start": 8, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 10, - "id": "output-9", - "kind": "text", - "matches": 0, - "start": 9, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 11, - "id": "output-10", - "kind": "text", - "matches": 0, - "start": 10, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 12, - "id": "output-11", - "kind": "text", - "matches": 0, - "start": 11, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 13, - "id": "output-12", - "kind": "text", - "matches": 0, - "start": 12, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 14, - "id": "output-13", - "kind": "text", - "matches": 0, - "start": 13, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 15, - "id": "output-14", - "kind": "text", - "matches": 0, - "start": 14, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 16, - "id": "output-15", - "kind": "text", - "matches": 0, - "start": 15, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 17, - "id": "output-16", - "kind": "text", - "matches": 0, - "start": 16, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 18, - "id": "output-17", - "kind": "text", - "matches": 0, - "start": 17, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 19, - "id": "output-18", - "kind": "text", - "matches": 0, - "start": 18, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 20, - "id": "output-19", - "kind": "text", - "matches": 0, - "start": 19, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - } - ], - "groups": [ - { - "id": "one", - "matches": 0, - "recordIds": [ - "one" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "reflog remains plain output", - "input": { - "records": [ - { - "id": "one", - "root": "/workspace/repo", - "arguments": [ - "reflog" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "abcdef0 HEAD@{0}: commit: message 0" - }, - { - "stream": "stdout", - "text": "abcdef0 HEAD@{1}: commit: message 1" - }, - { - "stream": "stdout", - "text": "abcdef0 HEAD@{2}: commit: message 2" - }, - { - "stream": "stdout", - "text": "abcdef0 HEAD@{3}: commit: message 3" - }, - { - "stream": "stdout", - "text": "abcdef0 HEAD@{4}: commit: message 4" - }, - { - "stream": "stdout", - "text": "abcdef0 HEAD@{5}: commit: message 5" - }, - { - "stream": "stdout", - "text": "abcdef0 HEAD@{6}: commit: message 6" - }, - { - "stream": "stdout", - "text": "abcdef0 HEAD@{7}: commit: message 7" - }, - { - "stream": "stdout", - "text": "abcdef0 HEAD@{8}: commit: message 8" - }, - { - "stream": "stdout", - "text": "abcdef0 HEAD@{9}: commit: message 9" - }, - { - "stream": "stdout", - "text": "abcdef0 HEAD@{10}: commit: message 10" - }, - { - "stream": "stdout", - "text": "abcdef0 HEAD@{11}: commit: message 11" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "folds": [] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "reflog" - } - ], - "failed": false, - "id": "one", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 2, - "id": "output-1", - "kind": "text", - "matches": 0, - "start": 1, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 3, - "id": "output-2", - "kind": "text", - "matches": 0, - "start": 2, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 4, - "id": "output-3", - "kind": "text", - "matches": 0, - "start": 3, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 5, - "id": "output-4", - "kind": "text", - "matches": 0, - "start": 4, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 6, - "id": "output-5", - "kind": "text", - "matches": 0, - "start": 5, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 7, - "id": "output-6", - "kind": "text", - "matches": 0, - "start": 6, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 8, - "id": "output-7", - "kind": "text", - "matches": 0, - "start": 7, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 9, - "id": "output-8", - "kind": "text", - "matches": 0, - "start": 8, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 10, - "id": "output-9", - "kind": "text", - "matches": 0, - "start": 9, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 11, - "id": "output-10", - "kind": "text", - "matches": 0, - "start": 10, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 12, - "id": "output-11", - "kind": "text", - "matches": 0, - "start": 11, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - } - ], - "groups": [ - { - "id": "one", - "matches": 0, - "recordIds": [ - "one" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "custom format never invents list semantics", - "input": { - "records": [ - { - "id": "one", - "root": "/workspace/repo", - "arguments": [ - "reflog", - "--format=custom" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "custom text 0" - }, - { - "stream": "stdout", - "text": "custom text 1" - }, - { - "stream": "stdout", - "text": "custom text 2" - }, - { - "stream": "stdout", - "text": "custom text 3" - }, - { - "stream": "stdout", - "text": "custom text 4" - }, - { - "stream": "stdout", - "text": "custom text 5" - }, - { - "stream": "stdout", - "text": "custom text 6" - }, - { - "stream": "stdout", - "text": "custom text 7" - }, - { - "stream": "stdout", - "text": "custom text 8" - }, - { - "stream": "stdout", - "text": "custom text 9" - }, - { - "stream": "stdout", - "text": "custom text 10" - }, - { - "stream": "stdout", - "text": "custom text 11" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "folds": [] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "reflog" - }, - { - "count": 1, - "id": "argument-3", - "kind": "text", - "matches": 0, - "preview": "", - "text": "--format=custom" - } - ], - "failed": false, - "id": "one", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 2, - "id": "output-1", - "kind": "text", - "matches": 0, - "start": 1, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 3, - "id": "output-2", - "kind": "text", - "matches": 0, - "start": 2, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 4, - "id": "output-3", - "kind": "text", - "matches": 0, - "start": 3, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 5, - "id": "output-4", - "kind": "text", - "matches": 0, - "start": 4, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 6, - "id": "output-5", - "kind": "text", - "matches": 0, - "start": 5, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 7, - "id": "output-6", - "kind": "text", - "matches": 0, - "start": 6, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 8, - "id": "output-7", - "kind": "text", - "matches": 0, - "start": 7, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 9, - "id": "output-8", - "kind": "text", - "matches": 0, - "start": 8, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 10, - "id": "output-9", - "kind": "text", - "matches": 0, - "start": 9, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 11, - "id": "output-10", - "kind": "text", - "matches": 0, - "start": 10, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 12, - "id": "output-11", - "kind": "text", - "matches": 0, - "start": 11, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - } - ], - "groups": [ - { - "id": "one", - "matches": 0, - "recordIds": [ - "one" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "file arguments remain visible", - "input": { - "records": [ - { - "id": "one", - "root": "/workspace/repo", - "arguments": [ - "add", - "--", - "file 0.txt", - "file 1.txt", - "file 2.txt", - "file 3.txt", - "file 4.txt", - "file 5.txt", - "file 6.txt", - "file 7.txt", - "file 8.txt", - "file 9.txt", - "file 10.txt", - "file 11.txt", - "file 12.txt", - "file 13.txt", - "file 14.txt", - "file 15.txt", - "file 16.txt", - "file 17.txt", - "file 18.txt", - "file 19.txt" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "commandFoldKinds": [ - "configuration" - ] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "add" - }, - { - "count": 1, - "id": "argument-3", - "kind": "text", - "matches": 0, - "preview": "", - "text": "--" - }, - { - "count": 1, - "id": "argument-4", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 0.txt'" - }, - { - "count": 1, - "id": "argument-5", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 1.txt'" - }, - { - "count": 1, - "id": "argument-6", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 2.txt'" - }, - { - "count": 1, - "id": "argument-7", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 3.txt'" - }, - { - "count": 1, - "id": "argument-8", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 4.txt'" - }, - { - "count": 1, - "id": "argument-9", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 5.txt'" - }, - { - "count": 1, - "id": "argument-10", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 6.txt'" - }, - { - "count": 1, - "id": "argument-11", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 7.txt'" - }, - { - "count": 1, - "id": "argument-12", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 8.txt'" - }, - { - "count": 1, - "id": "argument-13", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 9.txt'" - }, - { - "count": 1, - "id": "argument-14", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 10.txt'" - }, - { - "count": 1, - "id": "argument-15", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 11.txt'" - }, - { - "count": 1, - "id": "argument-16", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 12.txt'" - }, - { - "count": 1, - "id": "argument-17", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 13.txt'" - }, - { - "count": 1, - "id": "argument-18", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 14.txt'" - }, - { - "count": 1, - "id": "argument-19", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 15.txt'" - }, - { - "count": 1, - "id": "argument-20", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 16.txt'" - }, - { - "count": 1, - "id": "argument-21", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 17.txt'" - }, - { - "count": 1, - "id": "argument-22", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 18.txt'" - }, - { - "count": 1, - "id": "argument-23", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'file 19.txt'" - } - ], - "failed": false, - "id": "one", - "output": [], - "repositoryLabel": "/workspace/repo", - "notice": "completedWithoutOutput" - } - ], - "groups": [ - { - "id": "one", - "matches": 0, - "recordIds": [ - "one" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "message remains visible with quotes and newlines", - "input": { - "records": [ - { - "id": "one", - "root": "/workspace/repo", - "arguments": [ - "commit", - "--amend", - "-m", - "first line\nmore content more content more content more content more content more content more content more content more content more content more content more content more content more content more content more content more content more content more content more content " - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "visibleCommandContains": [ - "commit", - "--amend", - "-m" - ], - "commandFoldKinds": [ - "configuration" - ] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "commit" - }, - { - "count": 1, - "id": "argument-3", - "kind": "text", - "matches": 0, - "preview": "", - "text": "--amend" - }, - { - "count": 1, - "id": "argument-4", - "kind": "text", - "matches": 0, - "preview": "", - "text": "-m" - }, - { - "count": 1, - "id": "argument-5", - "kind": "text", - "matches": 0, - "preview": "", - "text": "'first line\nmore content more content more content more content more content more content more content more content more content more content more content more content more content more content more content more content more content more content more content more content '" - } - ], - "failed": false, - "id": "one", - "output": [], - "repositoryLabel": "/workspace/repo", - "notice": "completedWithoutOutput" - } - ], - "groups": [ - { - "id": "one", - "matches": 0, - "recordIds": [ - "one" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "repeated queries remain independent", - "input": { - "records": [ - { - "id": "0", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "clean" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "background", - "truncated": false - }, - { - "id": "1", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "clean" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "background", - "truncated": false - }, - { - "id": "2", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "clean" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "user", - "truncated": false - }, - { - "id": "3", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "clean" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "background", - "truncated": false - }, - { - "id": "4", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "clean" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "background", - "truncated": false - }, - { - "id": "5", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "clean" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "groups": [ - [ - "0" - ], - [ - "1" - ], - [ - "2" - ], - [ - "3" - ], - [ - "4" - ], - [ - "5" - ] - ] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "0", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - }, - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "1", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - }, - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "2", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - }, - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "3", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - }, - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "4", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - }, - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "5", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - } - ], - "groups": [ - { - "id": "0", - "matches": 0, - "recordIds": [ - "0" - ] - }, - { - "id": "1", - "matches": 0, - "recordIds": [ - "1" - ] - }, - { - "id": "2", - "matches": 0, - "recordIds": [ - "2" - ] - }, - { - "id": "3", - "matches": 0, - "recordIds": [ - "3" - ] - }, - { - "id": "4", - "matches": 0, - "recordIds": [ - "4" - ] - }, - { - "id": "5", - "matches": 0, - "recordIds": [ - "5" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "changed output and failures retain separate commands", - "input": { - "records": [ - { - "id": "0", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "clean" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "background", - "truncated": false - }, - { - "id": "1", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "clean" - } - ], - "state": "completed", - "exitCode": 1, - "error": null, - "executable": null, - "progress": null, - "source": "background", - "truncated": false - }, - { - "id": "2", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "changed" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "background", - "truncated": false - }, - { - "id": "3", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "changed" - } - ], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "background", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "groups": [ - [ - "0" - ], - [ - "1" - ], - [ - "2" - ], - [ - "3" - ] - ] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "0", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - }, - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": true, - "id": "1", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - }, - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "2", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - }, - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "3", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - } - ], - "groups": [ - { - "id": "0", - "matches": 0, - "recordIds": [ - "0" - ] - }, - { - "id": "1", - "matches": 0, - "recordIds": [ - "1" - ] - }, - { - "id": "2", - "matches": 0, - "recordIds": [ - "2" - ] - }, - { - "id": "3", - "matches": 0, - "recordIds": [ - "3" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "writes never merge even with background provenance", - "input": { - "records": [ - { - "id": "0", - "root": "/workspace/repo", - "arguments": [ - "fetch", - "origin" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "background", - "truncated": false - }, - { - "id": "1", - "root": "/workspace/repo", - "arguments": [ - "fetch", - "origin" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "background", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "groups": [ - [ - "0" - ], - [ - "1" - ] - ] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "fetch" - }, - { - "count": 1, - "id": "argument-3", - "kind": "text", - "matches": 0, - "preview": "", - "text": "origin" - } - ], - "failed": false, - "id": "0", - "output": [], - "repositoryLabel": "/workspace/repo", - "notice": "completedWithoutOutput" - }, - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "fetch" - }, - { - "count": 1, - "id": "argument-3", - "kind": "text", - "matches": 0, - "preview": "", - "text": "origin" - } - ], - "failed": false, - "id": "1", - "output": [], - "repositoryLabel": "/workspace/repo", - "notice": "completedWithoutOutput" - } - ], - "groups": [ - { - "id": "0", - "matches": 0, - "recordIds": [ - "0" - ] - }, - { - "id": "1", - "matches": 0, - "recordIds": [ - "1" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "repository paths remain explicit", - "input": { - "records": [ - { - "id": "a", - "root": "/workspace/a/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - }, - { - "id": "b", - "root": "/workspace/b/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [], - "state": "completed", - "exitCode": 0, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "labels": [ - "/workspace/a/repo", - "/workspace/b/repo" - ] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "a", - "output": [], - "repositoryLabel": "/workspace/a/repo", - "notice": "completedWithoutOutput" - }, - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "b", - "output": [], - "repositoryLabel": "/workspace/b/repo", - "notice": "completedWithoutOutput" - } - ], - "groups": [ - { - "id": "a", - "matches": 0, - "recordIds": [ - "a" - ] - }, - { - "id": "b", - "matches": 0, - "recordIds": [ - "b" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "live ordinary output remains visible", - "input": { - "records": [ - { - "id": "one", - "root": "/workspace/repo", - "arguments": [ - "status" - ], - "temporaryConfig": [ - [ - "color.ui", - "false" - ] - ], - "lines": [ - { - "stream": "stdout", - "text": "line 0" - }, - { - "stream": "stdout", - "text": "line 1" - }, - { - "stream": "stdout", - "text": "line 2" - }, - { - "stream": "stdout", - "text": "line 3" - }, - { - "stream": "stdout", - "text": "line 4" - }, - { - "stream": "stdout", - "text": "line 5" - }, - { - "stream": "stdout", - "text": "line 6" - }, - { - "stream": "stdout", - "text": "line 7" - }, - { - "stream": "stdout", - "text": "line 8" - }, - { - "stream": "stdout", - "text": "line 9" - }, - { - "stream": "stdout", - "text": "line 10" - }, - { - "stream": "stdout", - "text": "line 11" - } - ], - "state": "running", - "exitCode": null, - "error": null, - "executable": null, - "progress": null, - "source": "unknown", - "truncated": false - } - ], - "search": "" - }, - "expected": { - "folds": [] - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "configuration-0", - "kind": "configuration", - "matches": 0, - "preview": "-c …", - "text": "-c color.ui=false" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "one", - "output": [ - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 1, - "id": "output-0", - "kind": "text", - "matches": 0, - "start": 0, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 2, - "id": "output-1", - "kind": "text", - "matches": 0, - "start": 1, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 3, - "id": "output-2", - "kind": "text", - "matches": 0, - "start": 2, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 4, - "id": "output-3", - "kind": "text", - "matches": 0, - "start": 3, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 5, - "id": "output-4", - "kind": "text", - "matches": 0, - "start": 4, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 6, - "id": "output-5", - "kind": "text", - "matches": 0, - "start": 5, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 7, - "id": "output-6", - "kind": "text", - "matches": 0, - "start": 6, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 8, - "id": "output-7", - "kind": "text", - "matches": 0, - "start": 7, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 9, - "id": "output-8", - "kind": "text", - "matches": 0, - "start": 8, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 10, - "id": "output-9", - "kind": "text", - "matches": 0, - "start": 9, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 11, - "id": "output-10", - "kind": "text", - "matches": 0, - "start": 10, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 12, - "id": "output-11", - "kind": "text", - "matches": 0, - "start": 11, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repo", - "notice": null - } - ], - "groups": [ - { - "id": "one", - "matches": 0, - "recordIds": [ - "one" - ] - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "other executions do not alter command identity", - "input": { - "search": "project", - "repositoryRoots": [ - "/workspace/two/project" - ], - "records": [ - { - "id": "before", - "root": "/workspace/one/project", - "arguments": [ - "status" - ], - "source": "background", - "state": "completed", - "exitCode": 0, - "lines": [], - "sequence": 1 - }, - { - "id": "after", - "root": "/workspace/one/project", - "arguments": [ - "status" - ], - "source": "background", - "state": "completed", - "exitCode": 0, - "lines": [], - "sequence": 3 - } - ] - }, - "expected": { - "groups": [ - [ - "before" - ], - [ - "after" - ] - ], - "labels": [ - "/workspace/one/project", - "/workspace/one/project" - ], - "matches": 2 - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "argument-0", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "before", - "output": [], - "repositoryLabel": "/workspace/one/project", - "notice": "completedWithoutOutput" - }, - { - "command": [ - { - "count": 1, - "id": "argument-0", - "kind": "text", - "matches": 0, - "preview": "", - "text": "status" - } - ], - "failed": false, - "id": "after", - "output": [], - "repositoryLabel": "/workspace/one/project", - "notice": "completedWithoutOutput" - } - ], - "groups": [ - { - "id": "before", - "matches": 1, - "recordIds": [ - "before" - ] - }, - { - "id": "after", - "matches": 1, - "recordIds": [ - "after" - ] - } - ], - "matches": [ - { - "fragmentId": "repository", - "lineIndex": null, - "recordId": "before" - }, - { - "fragmentId": "repository", - "lineIndex": null, - "recordId": "after" - } - ], - "totalMatches": 2 - } - }, - { - "name": "IDEA progress folding uses a contiguous block and leaves diagnostics visible", - "input": { - "search": "Counting", - "records": [ - { - "id": "progress", - "root": "/workspace/repository", - "arguments": [ - "fetch", - "origin", - "--prune" - ], - "state": "completed", - "exitCode": 0, - "lines": [ - { - "stream": "stderr", - "text": "remote: Enumerating objects: 8, done." - }, - { - "stream": "stderr", - "text": "remote: Counting objects: 100% (8/8), done." - }, - { - "stream": "stderr", - "text": "remote: Compressing objects: 100% (4/4), done." - }, - { - "stream": "stderr", - "text": "remote: Total 8 (delta 3), reused 8 (delta 3)" - }, - { - "stream": "stderr", - "text": "From https://example.invalid/repository" - }, - { - "stream": "stderr", - "text": " abc1234..def5678 main -> origin/main" - } - ] - } - ] - }, - "expected": { - "folds": [ - [ - 0, - 3, - "progress" - ] - ], - "matches": 1 - }, - "presentation": { - "entries": [ - { - "command": [ - { - "count": 1, - "id": "argument-0", - "kind": "text", - "matches": 0, - "preview": "", - "text": "fetch" - }, - { - "count": 1, - "id": "argument-1", - "kind": "text", - "matches": 0, - "preview": "", - "text": "origin" - }, - { - "count": 1, - "id": "argument-2", - "kind": "text", - "matches": 0, - "preview": "", - "text": "--prune" - } - ], - "failed": false, - "id": "progress", - "output": [ - { - "added": 0, - "count": 3, - "deleted": 0, - "end": 3, - "id": "output-0", - "kind": "progress", - "matches": 1, - "start": 0, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 4, - "id": "output-3", - "kind": "text", - "matches": 0, - "start": 3, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 5, - "id": "output-4", - "kind": "text", - "matches": 0, - "start": 4, - "updated": 0 - }, - { - "added": 0, - "count": 1, - "deleted": 0, - "end": 6, - "id": "output-5", - "kind": "text", - "matches": 0, - "start": 5, - "updated": 0 - } - ], - "repositoryLabel": "/workspace/repository", - "notice": null - } - ], - "groups": [ - { - "id": "progress", - "matches": 1, - "recordIds": [ - "progress" - ] - } - ], - "matches": [ - { - "fragmentId": "output-0", - "lineIndex": 1, - "recordId": "progress" - } - ], - "totalMatches": 1 - } - }, - { - "name": "running command waits for output", - "input": { - "records": [ - { - "id": "status-notice", - "root": "/workspace/repository", - "arguments": [ - "fetch", - "origin" - ], - "temporaryConfig": [], - "lines": [], - "state": "running", - "exitCode": null - } - ], - "search": "" - }, - "expected": { - "notice": "waitingForOutput" - }, - "presentation": { - "entries": [ - { - "id": "status-notice", - "repositoryLabel": "/workspace/repository", - "command": [ - { - "id": "argument-0", - "kind": "text", - "text": "fetch", - "preview": "", - "count": 1, - "matches": 0 - }, - { - "id": "argument-1", - "kind": "text", - "text": "origin", - "preview": "", - "count": 1, - "matches": 0 - } - ], - "output": [], - "failed": false, - "notice": "waitingForOutput" - } - ], - "groups": [ - { - "id": "status-notice", - "recordIds": [ - "status-notice" - ], - "matches": 0 - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "successful command with no output", - "input": { - "records": [ - { - "id": "status-notice", - "root": "/workspace/repository", - "arguments": [ - "checkout", - "main" - ], - "temporaryConfig": [], - "lines": [], - "state": "completed", - "exitCode": 0 - } - ], - "search": "" - }, - "expected": { - "notice": "completedWithoutOutput" - }, - "presentation": { - "entries": [ - { - "id": "status-notice", - "repositoryLabel": "/workspace/repository", - "command": [ - { - "id": "argument-0", - "kind": "text", - "text": "checkout", - "preview": "", - "count": 1, - "matches": 0 - }, - { - "id": "argument-1", - "kind": "text", - "text": "main", - "preview": "", - "count": 1, - "matches": 0 - } - ], - "output": [], - "failed": false, - "notice": "completedWithoutOutput" - } - ], - "groups": [ - { - "id": "status-notice", - "recordIds": [ - "status-notice" - ], - "matches": 0 - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "fetch without reference changes", - "input": { - "records": [ - { - "id": "status-notice", - "root": "/workspace/repository", - "arguments": [ - "fetch", - "origin" - ], - "temporaryConfig": [], - "lines": [], - "state": "completed", - "exitCode": 0, - "remoteResult": { - "succeeded": true, - "referencesAvailable": true, - "updatedReferenceCount": 0, - "deletedReferenceCount": 0 - } - } - ], - "search": "" - }, - "expected": { - "notice": "fetchUnchanged" - }, - "presentation": { - "entries": [ - { - "id": "status-notice", - "repositoryLabel": "/workspace/repository", - "command": [ - { - "id": "argument-0", - "kind": "text", - "text": "fetch", - "preview": "", - "count": 1, - "matches": 0 - }, - { - "id": "argument-1", - "kind": "text", - "text": "origin", - "preview": "", - "count": 1, - "matches": 0 - } - ], - "output": [], - "failed": false, - "notice": "fetchUnchanged" - } - ], - "groups": [ - { - "id": "status-notice", - "recordIds": [ - "status-notice" - ], - "matches": 0 - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "unknown reference counts do not imply no changes", - "input": { - "records": [ - { - "id": "status-notice", - "root": "/workspace/repository", - "arguments": [ - "fetch", - "origin" - ], - "temporaryConfig": [], - "lines": [], - "state": "completed", - "exitCode": 0, - "remoteResult": { - "succeeded": true - } - } - ], - "search": "" - }, - "expected": { - "notice": "completedWithoutOutput" - }, - "presentation": { - "entries": [ - { - "id": "status-notice", - "repositoryLabel": "/workspace/repository", - "command": [ - { - "id": "argument-0", - "kind": "text", - "text": "fetch", - "preview": "", - "count": 1, - "matches": 0 - }, - { - "id": "argument-1", - "kind": "text", - "text": "origin", - "preview": "", - "count": 1, - "matches": 0 - } - ], - "output": [], - "failed": false, - "notice": "completedWithoutOutput" - } - ], - "groups": [ - { - "id": "status-notice", - "recordIds": [ - "status-notice" - ], - "matches": 0 - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "failed reference inspection does not imply no changes", - "input": { - "records": [ - { - "id": "status-notice", - "root": "/workspace/repository", - "arguments": [ - "fetch", - "origin" - ], - "temporaryConfig": [], - "lines": [], - "state": "completed", - "exitCode": 0, - "remoteResult": { - "succeeded": true, - "referencesAvailable": false, - "updatedReferenceCount": 0, - "deletedReferenceCount": 0 - } - } - ], - "search": "" - }, - "expected": { - "notice": "completedWithoutOutput" - }, - "presentation": { - "entries": [ - { - "id": "status-notice", - "repositoryLabel": "/workspace/repository", - "command": [ - { - "id": "argument-0", - "kind": "text", - "text": "fetch", - "preview": "", - "count": 1, - "matches": 0 - }, - { - "id": "argument-1", - "kind": "text", - "text": "origin", - "preview": "", - "count": 1, - "matches": 0 - } - ], - "output": [], - "failed": false, - "notice": "completedWithoutOutput" - } - ], - "groups": [ - { - "id": "status-notice", - "recordIds": [ - "status-notice" - ], - "matches": 0 - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "truncated output does not imply empty output", - "input": { - "records": [ - { - "id": "status-notice", - "root": "/workspace/repository", - "arguments": [ - "fetch", - "origin" - ], - "temporaryConfig": [], - "lines": [], - "state": "completed", - "exitCode": 0, - "truncated": true - } - ], - "search": "" - }, - "expected": { - "notice": null - }, - "presentation": { - "entries": [ - { - "id": "status-notice", - "repositoryLabel": "/workspace/repository", - "command": [ - { - "id": "argument-0", - "kind": "text", - "text": "fetch", - "preview": "", - "count": 1, - "matches": 0 - }, - { - "id": "argument-1", - "kind": "text", - "text": "origin", - "preview": "", - "count": 1, - "matches": 0 - } - ], - "output": [], - "failed": false, - "notice": null - } - ], - "groups": [ - { - "id": "status-notice", - "recordIds": [ - "status-notice" - ], - "matches": 0 - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "failed command never reports success", - "input": { - "records": [ - { - "id": "status-notice", - "root": "/workspace/repository", - "arguments": [ - "fetch", - "origin" - ], - "temporaryConfig": [], - "lines": [], - "state": "completed", - "exitCode": 1, - "error": "Fetch failed" - } - ], - "search": "" - }, - "expected": { - "notice": null - }, - "presentation": { - "entries": [ - { - "id": "status-notice", - "repositoryLabel": "/workspace/repository", - "command": [ - { - "id": "argument-0", - "kind": "text", - "text": "fetch", - "preview": "", - "count": 1, - "matches": 0 - }, - { - "id": "argument-1", - "kind": "text", - "text": "origin", - "preview": "", - "count": 1, - "matches": 0 - } - ], - "output": [], - "failed": true, - "notice": null - } - ], - "groups": [ - { - "id": "status-notice", - "recordIds": [ - "status-notice" - ], - "matches": 0 - } - ], - "matches": [], - "totalMatches": 0 - } - }, - { - "name": "active progress needs no extra waiting notice", - "input": { - "records": [ - { - "id": "status-notice", - "root": "/workspace/repository", - "arguments": [ - "fetch", - "origin" - ], - "temporaryConfig": [], - "lines": [], - "state": "running", - "exitCode": null, - "progress": "Receiving objects: 50%" - } - ], - "search": "" - }, - "expected": { - "notice": null - }, - "presentation": { - "entries": [ - { - "id": "status-notice", - "repositoryLabel": "/workspace/repository", - "command": [ - { - "id": "argument-0", - "kind": "text", - "text": "fetch", - "preview": "", - "count": 1, - "matches": 0 - }, - { - "id": "argument-1", - "kind": "text", - "text": "origin", - "preview": "", - "count": 1, - "matches": 0 - } - ], - "output": [], - "failed": false, - "notice": null - } - ], - "groups": [ - { - "id": "status-notice", - "recordIds": [ - "status-notice" - ], - "matches": 0 - } - ], - "matches": [], - "totalMatches": 0 - } - } - ] -} diff --git a/shared/fixtures/git/diff-blocks-v1.json b/shared/fixtures/git/diff-blocks-v1.json deleted file mode 100644 index 0bb862c6f4..0000000000 --- a/shared/fixtures/git/diff-blocks-v1.json +++ /dev/null @@ -1,324 +0,0 @@ -{ - "version": 1, - "description": "Core-owned commit-review blocks (git.planDiffBlocks) and Git-default stageable hunks for complete-file diffs (git.diff). Patches are real Git output; expected write patches are what Core applies with git apply --cached (include/exclude) or git apply (rollback).", - "blockCases": [ - { - "name": "unstaged insertion and replacement stay separate blocks", - "worktree": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex 9405325..94836e8 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,6 @@\n a\n+new\n b\n c\n-d\n+D\n e\n" - }, - "index": null, - "blocks": [ - { - "id": "line-2", - "checked": false, - "indeterminate": false, - "canToggle": true, - "canRollback": true, - "include": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,4 +1,5 @@\n a\n+new\n b\n c\n d\n", - "exclude": null, - "rollback": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,4 @@\n a\n-new\n b\n c\n D\n" - }, - { - "id": "line-5", - "checked": false, - "indeterminate": false, - "canToggle": true, - "canRollback": true, - "include": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,5 @@\n a\n b\n c\n-d\n+D\n e\n", - "exclude": null, - "rollback": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -2,5 +2,5 @@\n new\n b\n c\n-D\n+d\n e\n" - } - ] - }, - { - "name": "an earlier staged insertion shifts the next block's index span", - "worktree": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex 9405325..94836e8 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,6 @@\n a\n+new\n b\n c\n-d\n+D\n e\n" - }, - "index": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex 9405325..6d3092f 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,6 @@\n a\n+new\n b\n c\n d\n e\n" - }, - "blocks": [ - { - "id": "line-2", - "checked": true, - "indeterminate": false, - "canToggle": true, - "canRollback": false, - "include": null, - "exclude": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,4 @@\n a\n-new\n b\n c\n d\n", - "rollback": null - }, - { - "id": "line-5", - "checked": false, - "indeterminate": false, - "canToggle": true, - "canRollback": true, - "include": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -2,5 +2,5 @@\n new\n b\n c\n-d\n+D\n e\n", - "exclude": null, - "rollback": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -2,5 +2,5 @@\n new\n b\n c\n-D\n+d\n e\n" - } - ] - }, - { - "name": "index content that is neither HEAD nor worktree is partial", - "worktree": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex de98044..3b6f40a 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,3 +1,3 @@\n a\n-b\n+B2\n c\n" - }, - "index": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex de98044..f4ea702 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,3 +1,3 @@\n a\n-b\n+B1\n c\n" - }, - "blocks": [ - { - "id": "line-2", - "checked": false, - "indeterminate": true, - "canToggle": true, - "canRollback": true, - "include": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,3 +1,3 @@\n a\n-B1\n+B2\n c\n", - "exclude": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,3 +1,3 @@\n a\n-B1\n+b\n c\n", - "rollback": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,3 +1,3 @@\n a\n-B2\n+B1\n c\n" - } - ] - }, - { - "name": "a CRLF-only edit is a writable block with its original bytes", - "worktree": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex 422c2b7..4565b4d 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,2 +1,2 @@\n-a\n+a\r\n b\n" - }, - "index": null, - "blocks": [ - { - "id": "line-1", - "checked": false, - "indeterminate": false, - "canToggle": true, - "canRollback": true, - "include": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,2 +1,2 @@\n-a\n+a\r\n b\n", - "exclude": null, - "rollback": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,2 +1,2 @@\n-a\r\n+a\n b\n" - } - ] - }, - { - "name": "a missing final newline is kept on both sides", - "worktree": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex 0a207c0..817f660 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,2 +1,2 @@\n a\n-b\n\\ No newline at end of file\n+c\n\\ No newline at end of file\n" - }, - "index": null, - "blocks": [ - { - "id": "line-2", - "checked": false, - "indeterminate": false, - "canToggle": true, - "canRollback": true, - "include": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,2 +1,2 @@\n a\n-b\n\\ No newline at end of file\n+c\n\\ No newline at end of file\n", - "exclude": null, - "rollback": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,2 +1,2 @@\n a\n-c\n\\ No newline at end of file\n+b\n\\ No newline at end of file\n" - } - ] - }, - { - "name": "a staged insertion at a replacement boundary blocks writes", - "worktree": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex de98044..7be73ce 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,3 +1,3 @@\n a\n-b\n+B\n c\n" - }, - "index": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex de98044..5eff2a3 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,3 +1,4 @@\n a\n+X\n b\n c\n" - }, - "blocks": [ - { - "id": "line-2", - "checked": false, - "indeterminate": true, - "canToggle": false, - "canRollback": false - } - ] - }, - { - "name": "a new file toggles as a whole", - "worktree": { - "status": "A", - "patch": "diff --git a/file.txt b/file.txt\nnew file mode 100644\nindex 0000000..814f4a4\n--- /dev/null\n+++ b/file.txt\n@@ -0,0 +1,2 @@\n+one\n+two\n" - }, - "index": null, - "blocks": [ - { - "id": "line-1", - "checked": false, - "indeterminate": false, - "canToggle": true, - "canRollback": false, - "wholeFile": true, - "include": null, - "exclude": null, - "rollback": null - } - ] - }, - { - "name": "decoded output with replaced bytes is read-only", - "worktree": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex 9405325..94836e8 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,6 @@\n a\n+new\n b\n c\n-d\n+D\n e\n" - }, - "index": null, - "writable": false, - "blocks": [ - { - "id": "line-2", - "checked": false, - "indeterminate": false, - "canToggle": false, - "canRollback": false - }, - { - "id": "line-5", - "checked": false, - "indeterminate": false, - "canToggle": false, - "canRollback": false - } - ] - }, - { - "name": "unsafe worktree attributes keep inclusion but block rollback", - "worktree": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex 9405325..94836e8 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,6 @@\n a\n+new\n b\n c\n-d\n+D\n e\n" - }, - "index": null, - "rollbackSafe": false, - "blocks": [ - { - "id": "line-2", - "checked": false, - "indeterminate": false, - "canToggle": true, - "canRollback": false - }, - { - "id": "line-5", - "checked": false, - "indeterminate": false, - "canToggle": true, - "canRollback": false - } - ] - }, - { - "name": "an index review only excludes", - "worktree": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex 9405325..6d3092f 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,6 @@\n a\n+new\n b\n c\n d\n e\n" - }, - "index": { - "status": "M", - "patch": "diff --git a/file.txt b/file.txt\nindex 9405325..6d3092f 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,6 @@\n a\n+new\n b\n c\n d\n e\n" - }, - "blocks": [ - { - "id": "line-2", - "checked": true, - "indeterminate": false, - "canToggle": true, - "canRollback": false, - "include": null, - "exclude": "diff --git a/file.txt b/file.txt\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,4 @@\n a\n-new\n b\n c\n d\n", - "rollback": null - } - ] - }, - { - "name": "a renamed file only supports whole-file actions", - "worktree": { - "status": "R", - "patch": "diff --git a/file.txt b/file.txt\nindex 9405325..94836e8 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,5 +1,6 @@\n a\n+new\n b\n c\n-d\n+D\n e\n" - }, - "index": null, - "blocks": null - } - ], - "hunkCases": [ - { - "name": "distant changes split like git diff -U3 and nearby changes share a hunk", - "patch": "diff --git a/file.txt b/file.txt\nindex bab081f..95bcc4e 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,40 +1,40 @@\n line 1\n line 2\n line 3\n line 4\n line 5\n-line 6\n+first\n line 7\n line 8\n line 9\n line 10\n line 11\n line 12\n line 13\n line 14\n line 15\n line 16\n line 17\n line 18\n line 19\n-line 20\n+second\n line 21\n line 22\n line 23\n line 24\n line 25\n line 26\n line 27\n line 28\n line 29\n line 30\n line 31\n line 32\n line 33\n-line 34\n+third\n line 35\n line 36\n-line 37\n+fourth\n line 38\n line 39\n line 40\n", - "hunks": [ - { - "id": "hunk-0", - "header": "@@ -3,7 +3,7 @@", - "lineStart": 3, - "lineEnd": 11, - "patch": "diff --git a/file.txt b/file.txt\nindex bab081f..95bcc4e 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -3,7 +3,7 @@\n line 3\n line 4\n line 5\n-line 6\n+first\n line 7\n line 8\n line 9\n" - }, - { - "id": "hunk-1", - "header": "@@ -17,7 +17,7 @@", - "lineStart": 18, - "lineEnd": 26, - "patch": "diff --git a/file.txt b/file.txt\nindex bab081f..95bcc4e 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -17,7 +17,7 @@\n line 17\n line 18\n line 19\n-line 20\n+second\n line 21\n line 22\n line 23\n" - }, - { - "id": "hunk-2", - "header": "@@ -31,10 +31,10 @@", - "lineStart": 33, - "lineEnd": 45, - "patch": "diff --git a/file.txt b/file.txt\nindex bab081f..95bcc4e 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -31,10 +31,10 @@\n line 31\n line 32\n line 33\n-line 34\n+third\n line 35\n line 36\n-line 37\n+fourth\n line 38\n line 39\n line 40\n" - } - ] - }, - { - "name": "end-of-file markers stay attached to their lines", - "patch": "diff --git a/file.txt b/file.txt\nindex a5d34a2..3d60a4b 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,11 +1,11 @@\n-a\n+A\n b\n c\n d\n e\n f\n g\n h\n i\n j\n-k\n\\ No newline at end of file\n+K\n\\ No newline at end of file\n", - "hunks": [ - { - "id": "hunk-0", - "header": "@@ -1,4 +1,4 @@", - "lineStart": 1, - "lineEnd": 6, - "patch": "diff --git a/file.txt b/file.txt\nindex a5d34a2..3d60a4b 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -1,4 +1,4 @@\n-a\n+A\n b\n c\n d\n" - }, - { - "id": "hunk-1", - "header": "@@ -8,4 +8,4 @@", - "lineStart": 9, - "lineEnd": 14, - "patch": "diff --git a/file.txt b/file.txt\nindex a5d34a2..3d60a4b 100644\n--- a/file.txt\n+++ b/file.txt\n@@ -8,4 +8,4 @@\n h\n i\n j\n-k\n\\ No newline at end of file\n+K\n\\ No newline at end of file\n" - } - ] - }, - { - "name": "a section with two hunks is not split", - "patch": "diff --git a/f b/f\n--- a/f\n+++ b/f\n@@ -1 +1 @@\n-a\n+b\n@@ -9 +9 @@\n-c\n+d\n", - "hunks": null - } - ], - "wholeFileWriteCases": [ - { - "name": "whole-file inclusion is bound to the planned token", - "head": "a\nb\nc\n", - "worktree": "a\nB\nc\n", - "movedWorktree": "a\nB\nc\nlater\n", - "staleError": "GIT_DIFF_BLOCK_STALE", - "actions": [ - "includeFile", - "excludeFile" - ], - "indexAfterInclude": "a\nB\nc\nlater\n", - "indexAfterExclude": "a\nb\nc\n" - } - ] -} diff --git a/shared/fixtures/git/diff.json b/shared/fixtures/git/diff.json deleted file mode 100644 index 27bc16ff7d..0000000000 --- a/shared/fixtures/git/diff.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "structured-diff", - "typedComparisonRequest": { - "gitReference": { - "fullName": "refs/heads/main", - "shortName": "main", - "kind": "local" - }, - "targetGitReference": { - "fullName": "refs/remotes/origin/feature", - "shortName": "origin/feature", - "kind": "remote" - } - }, - "patch": "diff --git a/Example.java b/Example.java\n--- a/Example.java\n+++ b/Example.java\n@@ -1,3 +1,4 @@\n class Example {\n- return 1;\n+ return 2;\n+ // added\n }\n", - "expected": { - "rowKinds": ["information", "context", "changed", "addition", "context"], - "oldLines": [null, 1, 2, null, 3], - "newLines": [null, 1, 2, 3, 4], - "hunkCount": 1 - } -} diff --git a/shared/fixtures/git/execution-events-v1.json b/shared/fixtures/git/execution-events-v1.json deleted file mode 100644 index fb1b8d4df9..0000000000 --- a/shared/fixtures/git/execution-events-v1.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "version": 1, - "events": [ - { - "operationId": "fixture", - "type": "requestStarted", - "retention": { - "maxRecords": 200, - "maxRecordOutputCharacters": 32768, - "maxRecordOutputLines": 2000, - "maxTotalOutputCharacters": 1048576 - } - }, - { - "operationId": "fixture", - "type": "started", - "invocationId": 1, - "workingDirectory": "/workspace", - "arguments": [ - "fetch", - "--progress" - ], - "executable": null, - "temporaryConfig": [ - [ - "color.ui", - "false" - ], - [ - "core.quotepath", - "false" - ], - [ - "log.showSignature", - "false" - ] - ], - "displayArguments": [ - "fetch", - "--progress" - ], - "globalArguments": [ - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "-c", - "log.showSignature=false" - ], - "source": "unknown" - }, - { - "operationId": "fixture", - "type": "output", - "invocationId": 1, - "stream": "stderr", - "text": "Receiving: 50%", - "progress": true, - "truncated": false - }, - { - "operationId": "fixture", - "type": "output", - "invocationId": 1, - "stream": "stderr", - "text": "Receiving: 100%", - "progress": false, - "truncated": false - }, - { - "operationId": "fixture", - "type": "output", - "invocationId": 1, - "stream": "stdout", - "text": "reference updated", - "progress": false, - "truncated": false - }, - { - "operationId": "fixture", - "type": "finished", - "invocationId": 1, - "exitCode": 0, - "durationMilliseconds": 0, - "error": null, - "expectedExit": false, - "state": "completed" - }, - { - "operationId": "fixture", - "type": "requestFinished", - "error": null, - "unconfirmedInvocations": [], - "failureRecord": false - } - ] -} diff --git a/shared/fixtures/git/execution-policy-v1.json b/shared/fixtures/git/execution-policy-v1.json deleted file mode 100644 index 3981ba88f3..0000000000 --- a/shared/fixtures/git/execution-policy-v1.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "version": 1, - "temporaryConfig": [ - [ - "color.ui", - "false" - ], - [ - "core.quotepath", - "false" - ], - [ - "log.showSignature", - "false" - ] - ], - "precedence": [ - "singleOperation", - "repositoryPreference", - "applicationDefault", - "gitConfiguration" - ], - "progress": [ - { - "text": "remote: Counting objects: 50% (5/10)", - "expected": { - "stage": "counting", - "percent": 50, - "completed": 5, - "total": 10 - } - }, - { - "text": "Receiving objects: 100% (12/12), done.", - "expected": { - "stage": "receiving", - "percent": 100, - "completed": 12, - "total": 12 - } - }, - { - "text": "Resolving deltas: 0% (0/3)", - "expected": { - "stage": "resolving", - "percent": 0, - "completed": 0, - "total": 3 - } - }, - { - "text": "fatal: authentication failed", - "expected": null - } - ], - "authentication": { - "operationId": "fixture", - "type": "authentication", - "requestId": "fixture-challenge", - "prompt": "Password for https://example.invalid:", - "secret": true, - "attempt": 1 - }, - "remoteResult": { - "operationId": "fixture", - "type": "remoteResult", - "remote": "origin", - "succeeded": true, - "updatedReferences": [ - "refs/remotes/origin/main" - ], - "deletedReferences": [ - "refs/remotes/origin/old" - ], - "error": null, - "updatedReferenceCount": 1, - "deletedReferenceCount": 1, - "referencesTruncated": false, - "referencesAvailable": true - }, - "repositoryPlan": { - "options": { - "remote": null, - "prune": true, - "submodules": "inherit", - "tags": "inherit" - }, - "enabledRemotes": [ - "origin", - "upstream" - ], - "commands": [ - [ - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "fetch", - "--progress", - "--prune", - "--", - "origin" - ], - [ - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "fetch", - "--progress", - "--prune", - "--", - "upstream" - ] - ] - } -} diff --git a/shared/fixtures/git/fetch-behavior-v1.json b/shared/fixtures/git/fetch-behavior-v1.json deleted file mode 100644 index c95bc1d65b..0000000000 --- a/shared/fixtures/git/fetch-behavior-v1.json +++ /dev/null @@ -1,863 +0,0 @@ -{ - "cases": [ - { - "name": "no remotes", - "request": { - "entries": [], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "unavailable", - "source": null, - "basis": "git", - "reasonCode": "noRemotes" - } - } - }, - { - "name": "Git auto-follow", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "reachable", - "source": null, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "remote disables tags", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.tagopt", - "value": "--no-tags", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "none", - "source": { - "scope": "local", - "origin": "file:fixture.gitconfig" - }, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "global prune tags", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "fetch.prunetags", - "value": "true", - "scope": "global", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "prune", - "source": { - "scope": "global", - "origin": "file:fixture.gitconfig" - }, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "no-tags does not override prune-tags", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "fetch.prunetags", - "value": "true", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": { - "prune": false, - "tags": "none" - }, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "all", - "source": { - "scope": "local", - "origin": "file:fixture.gitconfig" - }, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "explicit refspec overrides no-tags", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.fetch", - "value": "+refs/tags/*:refs/tags/*", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": { - "prune": false, - "tags": "none" - }, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "all", - "source": { - "scope": "local", - "origin": "file:fixture.gitconfig" - }, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "partial refspec is custom", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.fetch", - "value": "+refs/tags/v*:refs/tags/v*", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "custom", - "source": { - "scope": "local", - "origin": "file:fixture.gitconfig" - }, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "negative refspec prevents all-tags claim", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.fetch", - "value": "+refs/tags/*:refs/tags/*", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.fetch", - "value": "^refs/tags/private", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "custom", - "source": { - "scope": "local", - "origin": "file:fixture.gitconfig" - }, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "explicit option without forced refspec", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": { - "tags": "none" - }, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "none", - "source": null, - "basis": "lithe", - "reasonCode": null - } - } - }, - { - "name": "mixed remotes", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.tagopt", - "value": "--no-tags", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.upstream.url", - "value": "https://example.invalid/other.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.upstream.tagopt", - "value": "--tags", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "remoteDependent", - "source": null, - "basis": "multiple", - "reasonCode": null - } - } - }, - { - "name": "skip disabled remote", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.tagopt", - "value": "--no-tags", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.upstream.url", - "value": "https://example.invalid/other.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.upstream.tagopt", - "value": "--tags", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.upstream.skipfetchall", - "value": "true", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "none", - "source": { - "scope": "local", - "origin": "file:fixture.gitconfig" - }, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "invalid boolean prevents fetch", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.prunetags", - "value": "invalid", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [ - "remote.origin.prunetags" - ] - }, - "expected": { - "tags": { - "value": "unavailable", - "source": null, - "basis": "git", - "reasonCode": "invalidConfiguration" - } - } - }, - { - "name": "invalid unrelated remote still prevents Git fetch", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.other.prunetags", - "value": "invalid", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [ - "remote.other.prunetags" - ] - }, - "expected": { - "tags": { - "value": "unavailable", - "source": null, - "basis": "git", - "reasonCode": "invalidConfiguration" - } - } - }, - { - "name": "remote false overrides global true", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "fetch.prunetags", - "value": "true", - "scope": "global", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.prunetags", - "value": "false", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.tagopt", - "value": "--no-tags", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "none", - "source": { - "scope": "local", - "origin": "file:fixture.gitconfig" - }, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "selected remote is included despite skipFetchAll", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.upstream.url", - "value": "https://example.invalid/other.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.upstream.tagopt", - "value": "--tags", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.upstream.skipfetchall", - "value": "true", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": { - "remote": "upstream" - }, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "all", - "source": { - "scope": "local", - "origin": "file:fixture.gitconfig" - }, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "explicit all with no forced config", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": { - "tags": "all" - }, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "all", - "source": null, - "basis": "lithe", - "reasonCode": null - } - } - }, - { - "name": "false global uses reachable default", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "fetch.prunetags", - "value": "false", - "scope": "global", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "reachable", - "source": null, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "all remotes skipped", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.skipfetchall", - "value": "true", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "unavailable", - "source": null, - "basis": "git", - "reasonCode": "noRemotes" - } - } - }, - { - "name": "empty fetch refspec clears earlier entries", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/repo.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.fetch", - "value": "+refs/tags/*:refs/tags/*", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": false - }, - { - "key": "remote.origin.fetch", - "value": "", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": { - "tags": "none" - }, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "none", - "source": null, - "basis": "lithe", - "reasonCode": null - } - } - }, - { - "name": "empty remote URL clears the remote", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "unavailable", - "source": null, - "basis": "git", - "reasonCode": "noRemotes" - } - } - }, - { - "name": "explicit prune records the Lithe source", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/repo.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "fetch.prunetags", - "value": "true", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "lithe.fetch.tags", - "value": "prune", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": { - "tags": "prune" - }, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "prune", - "source": { - "scope": "local", - "origin": "file:fixture.gitconfig" - }, - "basis": "lithe", - "reasonCode": null - } - } - }, - { - "name": "broad negative can exclude tags", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/repo.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.fetch", - "value": "^refs/*", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": { - "tags": "none" - }, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "custom", - "source": { - "scope": "local", - "origin": "file:fixture.gitconfig" - }, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "broad mapping can include tags", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/repo.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.fetch", - "value": "+refs/*:refs/*", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - } - ], - "options": { - "tags": "none" - }, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "custom", - "source": { - "scope": "local", - "origin": "file:fixture.gitconfig" - }, - "basis": "git", - "reasonCode": null - } - } - }, - { - "name": "same behavior from different sources", - "request": { - "entries": [ - { - "key": "remote.origin.url", - "value": "https://example.invalid/fixture.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.origin.tagopt", - "value": "--no-tags", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.upstream.url", - "value": "https://example.invalid/other.git", - "scope": "local", - "origin": "file:fixture.gitconfig", - "effective": true - }, - { - "key": "remote.upstream.tagopt", - "value": "--no-tags", - "scope": "global", - "origin": "file:other.gitconfig", - "effective": true - } - ], - "options": {}, - "invalidKeys": [] - }, - "expected": { - "tags": { - "value": "none", - "source": null, - "basis": "multiple", - "reasonCode": null - } - } - } - ] -} diff --git a/shared/fixtures/git/fetch-plan-v1.json b/shared/fixtures/git/fetch-plan-v1.json deleted file mode 100644 index 8aa36fb29d..0000000000 --- a/shared/fixtures/git/fetch-plan-v1.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "legacy scope with explicit progress", - "options": {}, - "expectedOptions": { - "remote": null, - "prune": true, - "submodules": "inherit", - "tags": "inherit" - }, - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "fetch", - "--progress", - "--all", - "--prune" - ] - }, - { - "name": "selected nested remote without pruning or submodules", - "options": { - "remote": "team/origin", - "prune": false, - "submodules": "no" - }, - "expectedOptions": { - "remote": "team/origin", - "prune": false, - "submodules": "no", - "tags": "inherit" - }, - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "fetch", - "--progress", - "--no-prune", - "--recurse-submodules=no", - "--", - "team/origin" - ] - }, - { - "name": "all remotes and on-demand submodules", - "options": { - "submodules": "onDemand" - }, - "expectedOptions": { - "remote": null, - "prune": true, - "submodules": "onDemand", - "tags": "inherit" - }, - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "fetch", - "--progress", - "--all", - "--prune", - "--recurse-submodules=on-demand" - ] - }, - { - "name": "unicode remote with recursive fetch", - "options": { - "remote": "团队", - "submodules": "yes" - }, - "expectedOptions": { - "remote": "团队", - "prune": true, - "submodules": "yes", - "tags": "inherit" - }, - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "fetch", - "--progress", - "--prune", - "--recurse-submodules=yes", - "--", - "团队" - ] - }, - { - "name": "configured remote name with punctuation", - "options": { - "remote": "mirror+archive" - }, - "expectedOptions": { - "remote": "mirror+archive", - "prune": true, - "submodules": "inherit", - "tags": "inherit" - }, - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "fetch", - "--progress", - "--prune", - "--", - "mirror+archive" - ] - }, - { - "name": "explicit all tags", - "options": { - "tags": "all" - }, - "expectedOptions": { - "remote": null, - "prune": true, - "submodules": "inherit", - "tags": "all" - }, - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "fetch", - "--progress", - "--all", - "--prune", - "--tags" - ] - }, - { - "name": "explicit none tags", - "options": { - "tags": "none" - }, - "expectedOptions": { - "remote": null, - "prune": true, - "submodules": "inherit", - "tags": "none" - }, - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "fetch", - "--progress", - "--all", - "--prune", - "--no-tags" - ] - }, - { - "name": "explicit prune tags", - "options": { - "tags": "prune" - }, - "expectedOptions": { - "remote": null, - "prune": true, - "submodules": "inherit", - "tags": "prune" - }, - "arguments": [ - "--no-pager", - "-c", - "color.ui=false", - "-c", - "core.quotepath=false", - "fetch", - "--progress", - "--all", - "--prune", - "--prune-tags" - ] - } - ], - "invalidRemotes": [ - "", - "--upload-pack=evil", - "https://example.invalid/repo", - "../repo", - "/repo", - "origin\nother", - "origin main", - "origin:main", - "origin.lock", - "origin//team" - ] -} diff --git a/shared/fixtures/git/fetch-skip-boolean-v1.json b/shared/fixtures/git/fetch-skip-boolean-v1.json deleted file mode 100644 index 78bacdf5ba..0000000000 --- a/shared/fixtures/git/fetch-skip-boolean-v1.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { "name": "missing", "configuration": "", "skipped": false }, - { "name": "valueless", "configuration": "skipFetchAll", "skipped": true }, - { "name": "empty", "configuration": "skipFetchAll =", "skipped": false }, - { "name": "true", "configuration": "skipFetchAll = TrUe", "skipped": true }, - { "name": "yes", "configuration": "skipFetchAll = yes", "skipped": true }, - { "name": "on", "configuration": "skipFetchAll = on", "skipped": true }, - { "name": "positive", "configuration": "skipFetchAll = 2", "skipped": true }, - { "name": "negative", "configuration": "skipFetchAll = -1", "skipped": true }, - { "name": "false", "configuration": "skipFetchAll = false", "skipped": false }, - { "name": "off", "configuration": "skipFetchAll = off", "skipped": false }, - { "name": "zero", "configuration": "skipFetchAll = 0", "skipped": false } - ], - "invalid": "skipFetchAll = sometimes" -} diff --git a/shared/fixtures/git/graph-idea/NOTICE.txt b/shared/fixtures/git/graph-idea/NOTICE.txt deleted file mode 100644 index 91736e48d8..0000000000 --- a/shared/fixtures/git/graph-idea/NOTICE.txt +++ /dev/null @@ -1,12 +0,0 @@ -The macOS Git graph projection and upstream regression fixtures adapt portions -of JetBrains IntelliJ Platform Community, Copyright 2000-2024 JetBrains s.r.o. -and contributors, licensed under the Apache License, Version 2.0. - -Pinned upstream commit: 36415d346b3d18a6ded90d05afb8e0a0bface9d6 -https://github.com/JetBrains/intellij-community - -Adapted algorithms: GraphLayoutBuilder, GraphElementComparatorByLayoutIndex, -PrintElementGeneratorImpl, DottedFilterEdgesGenerator, SimpleGraphCellPainter. -Swift adaptation and native integration: Lithe contributors. -See .agents/notes/implemented/feature/2026-09-13-macos-git-graph-intellij-layout.md -for source links and behavior. diff --git a/shared/fixtures/git/graph-idea/elementGenerator/longEdges_in.txt b/shared/fixtures/git/graph-idea/elementGenerator/longEdges_in.txt deleted file mode 100644 index f885ece4b3..0000000000 --- a/shared/fixtures/git/graph-idea/elementGenerator/longEdges_in.txt +++ /dev/null @@ -1,13 +0,0 @@ -0_U|-1_U 2_U 3_U 4_U 5_U 6_U 7_U 8_U 9_U 10_U 11_U 12_U -1_U|-12_U -2_U|-12_U -3_U|-12_U -4_U|-12_U -5_U|-12_U -6_U|-12_U -7_U|-12_U -8_U|-12_U -9_U|-12_U -10_U|-12_U -11_U|-12_U -12_U|- \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/elementGenerator/longEdges_out.txt b/shared/fixtures/git/graph-idea/elementGenerator/longEdges_out.txt deleted file mode 100644 index 63a813c133..0000000000 --- a/shared/fixtures/git/graph-idea/elementGenerator/longEdges_out.txt +++ /dev/null @@ -1,207 +0,0 @@ -Node|-0:0|-0:Unselect(0_U) - Edge:DOWN:SOLID|-0:0:0|-12:Unselect(0:12:n_U) - Edge:DOWN:SOLID|-0:0:1|-1:Unselect(0:1:n_U) - Edge:DOWN:SOLID|-0:0:2|-2:Unselect(0:2:n_U) - Edge:DOWN:SOLID|-0:0:3|-3:Unselect(0:3:n_U) - Edge:DOWN:SOLID|-0:0:4|-4:Unselect(0:4:n_U) - Edge:DOWN:SOLID|-0:0:5|-5:Unselect(0:5:n_U) - Edge:DOWN:SOLID|-0:0:6|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-0:0:7|-7:Unselect(0:7:n_U) - Edge:DOWN:SOLID|-0:0:8|-8:Unselect(0:8:n_U) - Edge:DOWN:SOLID|-0:0:9|-9:Unselect(0:9:n_U) - Edge:DOWN:SOLID|-0:0:10|-10:Unselect(0:10:n_U) - Edge:DOWN:SOLID|-0:0:11|-11:Unselect(0:11:n_U) -Edge:UP:SOLID|-1:0:0|-12:Unselect(0:12:n_U) - Edge:DOWN_ARROW:SOLID|-1:0:0|-12:Unselect(0:12:n_U) - Node|-1:1|-1:Unselect(1_U) - Edge:UP:SOLID|-1:1:0|-1:Unselect(0:1:n_U) - Edge:DOWN:SOLID|-1:1:1|-13:Unselect(1:12:n_U) - Edge:UP:SOLID|-1:2:0|-2:Unselect(0:2:n_U) - Edge:DOWN:SOLID|-1:2:2|-2:Unselect(0:2:n_U) - Edge:UP:SOLID|-1:3:0|-3:Unselect(0:3:n_U) - Edge:DOWN:SOLID|-1:3:3|-3:Unselect(0:3:n_U) - Edge:UP:SOLID|-1:4:0|-4:Unselect(0:4:n_U) - Edge:DOWN:SOLID|-1:4:4|-4:Unselect(0:4:n_U) - Edge:UP:SOLID|-1:5:0|-5:Unselect(0:5:n_U) - Edge:DOWN:SOLID|-1:5:5|-5:Unselect(0:5:n_U) - Edge:UP:SOLID|-1:6:0|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-1:6:6|-6:Unselect(0:6:n_U) - Edge:UP:SOLID|-1:7:0|-7:Unselect(0:7:n_U) - Edge:DOWN:SOLID|-1:7:7|-7:Unselect(0:7:n_U) - Edge:UP:SOLID|-1:8:0|-8:Unselect(0:8:n_U) - Edge:DOWN:SOLID|-1:8:8|-8:Unselect(0:8:n_U) - Edge:UP:SOLID|-1:9:0|-9:Unselect(0:9:n_U) - Edge:DOWN:SOLID|-1:9:9|-9:Unselect(0:9:n_U) - Edge:UP:SOLID|-1:10:0|-10:Unselect(0:10:n_U) - Edge:DOWN_ARROW:SOLID|-1:10:10|-10:Unselect(0:10:n_U) - Edge:UP:SOLID|-1:11:0|-11:Unselect(0:11:n_U) - Edge:DOWN_ARROW:SOLID|-1:11:11|-11:Unselect(0:11:n_U) -Edge:UP:SOLID|-2:0:0|-12:Unselect(0:12:n_U) - Edge:DOWN_ARROW:SOLID|-2:0:0|-12:Unselect(0:12:n_U) - Edge:UP:SOLID|-2:1:1|-13:Unselect(1:12:n_U) - Edge:DOWN_ARROW:SOLID|-2:1:0|-13:Unselect(1:12:n_U) - Node|-2:2|-2:Unselect(2_U) - Edge:UP:SOLID|-2:2:2|-2:Unselect(0:2:n_U) - Edge:DOWN:SOLID|-2:2:1|-14:Unselect(2:12:n_U) - Edge:UP:SOLID|-2:3:3|-3:Unselect(0:3:n_U) - Edge:DOWN:SOLID|-2:3:2|-3:Unselect(0:3:n_U) - Edge:UP:SOLID|-2:4:4|-4:Unselect(0:4:n_U) - Edge:DOWN:SOLID|-2:4:3|-4:Unselect(0:4:n_U) - Edge:UP:SOLID|-2:5:5|-5:Unselect(0:5:n_U) - Edge:DOWN:SOLID|-2:5:4|-5:Unselect(0:5:n_U) - Edge:UP:SOLID|-2:6:6|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-2:6:5|-6:Unselect(0:6:n_U) - Edge:UP:SOLID|-2:7:7|-7:Unselect(0:7:n_U) - Edge:DOWN_ARROW:SOLID|-2:7:7|-7:Unselect(0:7:n_U) - Edge:UP:SOLID|-2:8:8|-8:Unselect(0:8:n_U) - Edge:DOWN_ARROW:SOLID|-2:8:8|-8:Unselect(0:8:n_U) - Edge:UP:SOLID|-2:9:9|-9:Unselect(0:9:n_U) - Edge:DOWN_ARROW:SOLID|-2:9:9|-9:Unselect(0:9:n_U) - Edge:UP:SOLID|-2:10:10|-10:Unselect(0:10:n_U) - Edge:DOWN_ARROW:SOLID|-2:10:10|-10:Unselect(0:10:n_U) - Edge:UP:SOLID|-2:11:11|-11:Unselect(0:11:n_U) - Edge:DOWN_ARROW:SOLID|-2:11:11|-11:Unselect(0:11:n_U) -Edge:UP:SOLID|-3:0:1|-13:Unselect(1:12:n_U) - Edge:DOWN_ARROW:SOLID|-3:0:0|-13:Unselect(1:12:n_U) - Edge:UP:SOLID|-3:1:2|-14:Unselect(2:12:n_U) - Edge:DOWN_ARROW:SOLID|-3:1:0|-14:Unselect(2:12:n_U) - Node|-3:2|-3:Unselect(3_U) - Edge:UP:SOLID|-3:2:3|-3:Unselect(0:3:n_U) - Edge:DOWN:SOLID|-3:2:1|-15:Unselect(3:12:n_U) - Edge:UP:SOLID|-3:3:4|-4:Unselect(0:4:n_U) - Edge:DOWN:SOLID|-3:3:2|-4:Unselect(0:4:n_U) - Edge:UP:SOLID|-3:4:5|-5:Unselect(0:5:n_U) - Edge:DOWN:SOLID|-3:4:3|-5:Unselect(0:5:n_U) - Edge:UP:SOLID|-3:5:6|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-3:5:4|-6:Unselect(0:6:n_U) -Edge:UP:SOLID|-4:0:1|-14:Unselect(2:12:n_U) - Edge:DOWN_ARROW:SOLID|-4:0:0|-14:Unselect(2:12:n_U) - Edge:UP:SOLID|-4:1:2|-15:Unselect(3:12:n_U) - Edge:DOWN:SOLID|-4:1:0|-15:Unselect(3:12:n_U) - Node|-4:2|-4:Unselect(4_U) - Edge:UP:SOLID|-4:2:3|-4:Unselect(0:4:n_U) - Edge:DOWN:SOLID|-4:2:1|-16:Unselect(4:12:n_U) - Edge:UP:SOLID|-4:3:4|-5:Unselect(0:5:n_U) - Edge:DOWN:SOLID|-4:3:2|-5:Unselect(0:5:n_U) - Edge:UP:SOLID|-4:4:5|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-4:4:3|-6:Unselect(0:6:n_U) -Edge:UP:SOLID|-5:0:1|-15:Unselect(3:12:n_U) - Edge:DOWN_ARROW:SOLID|-5:0:0|-15:Unselect(3:12:n_U) - Edge:UP:SOLID|-5:1:2|-16:Unselect(4:12:n_U) - Edge:DOWN:SOLID|-5:1:0|-16:Unselect(4:12:n_U) - Node|-5:2|-5:Unselect(5_U) - Edge:UP:SOLID|-5:2:3|-5:Unselect(0:5:n_U) - Edge:DOWN:SOLID|-5:2:1|-17:Unselect(5:12:n_U) - Edge:UP:SOLID|-5:3:4|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-5:3:2|-6:Unselect(0:6:n_U) - Edge:UP_ARROW:SOLID|-5:4:4|-7:Unselect(0:7:n_U) - Edge:DOWN:SOLID|-5:4:3|-7:Unselect(0:7:n_U) -Edge:UP:SOLID|-6:0:1|-16:Unselect(4:12:n_U) - Edge:DOWN_ARROW:SOLID|-6:0:0|-16:Unselect(4:12:n_U) - Edge:UP:SOLID|-6:1:2|-17:Unselect(5:12:n_U) - Edge:DOWN:SOLID|-6:1:0|-17:Unselect(5:12:n_U) - Node|-6:2|-6:Unselect(6_U) - Edge:UP:SOLID|-6:2:3|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-6:2:1|-18:Unselect(6:12:n_U) - Edge:UP:SOLID|-6:3:4|-7:Unselect(0:7:n_U) - Edge:DOWN:SOLID|-6:3:2|-7:Unselect(0:7:n_U) - Edge:UP_ARROW:SOLID|-6:4:4|-8:Unselect(0:8:n_U) - Edge:DOWN:SOLID|-6:4:3|-8:Unselect(0:8:n_U) -Edge:UP:SOLID|-7:0:1|-17:Unselect(5:12:n_U) - Edge:DOWN_ARROW:SOLID|-7:0:0|-17:Unselect(5:12:n_U) - Edge:UP:SOLID|-7:1:2|-18:Unselect(6:12:n_U) - Edge:DOWN:SOLID|-7:1:0|-18:Unselect(6:12:n_U) - Node|-7:2|-7:Unselect(7_U) - Edge:UP:SOLID|-7:2:3|-7:Unselect(0:7:n_U) - Edge:DOWN:SOLID|-7:2:1|-19:Unselect(7:12:n_U) - Edge:UP:SOLID|-7:3:4|-8:Unselect(0:8:n_U) - Edge:DOWN:SOLID|-7:3:2|-8:Unselect(0:8:n_U) - Edge:UP_ARROW:SOLID|-7:4:4|-9:Unselect(0:9:n_U) - Edge:DOWN:SOLID|-7:4:3|-9:Unselect(0:9:n_U) -Edge:UP:SOLID|-8:0:1|-18:Unselect(6:12:n_U) - Edge:DOWN:SOLID|-8:0:0|-18:Unselect(6:12:n_U) - Edge:UP:SOLID|-8:1:2|-19:Unselect(7:12:n_U) - Edge:DOWN:SOLID|-8:1:1|-19:Unselect(7:12:n_U) - Node|-8:2|-8:Unselect(8_U) - Edge:UP:SOLID|-8:2:3|-8:Unselect(0:8:n_U) - Edge:DOWN:SOLID|-8:2:2|-20:Unselect(8:12:n_U) - Edge:UP:SOLID|-8:3:4|-9:Unselect(0:9:n_U) - Edge:DOWN:SOLID|-8:3:3|-9:Unselect(0:9:n_U) - Edge:UP_ARROW:SOLID|-8:4:4|-10:Unselect(0:10:n_U) - Edge:DOWN:SOLID|-8:4:4|-10:Unselect(0:10:n_U) -Edge:UP:SOLID|-9:0:0|-18:Unselect(6:12:n_U) - Edge:DOWN:SOLID|-9:0:6|-18:Unselect(6:12:n_U) - Edge:UP:SOLID|-9:1:1|-19:Unselect(7:12:n_U) - Edge:DOWN:SOLID|-9:1:7|-19:Unselect(7:12:n_U) - Edge:UP:SOLID|-9:2:2|-20:Unselect(8:12:n_U) - Edge:DOWN:SOLID|-9:2:8|-20:Unselect(8:12:n_U) - Node|-9:3|-9:Unselect(9_U) - Edge:UP:SOLID|-9:3:3|-9:Unselect(0:9:n_U) - Edge:DOWN:SOLID|-9:3:9|-21:Unselect(9:12:n_U) - Edge:UP_ARROW:SOLID|-9:4:4|-10:Unselect(0:10:n_U) - Edge:DOWN:SOLID|-9:4:10|-10:Unselect(0:10:n_U) - Edge:UP_ARROW:SOLID|-9:5:5|-11:Unselect(0:11:n_U) - Edge:DOWN:SOLID|-9:5:11|-11:Unselect(0:11:n_U) -Edge:UP_ARROW:SOLID|-10:0:0|-12:Unselect(0:12:n_U) - Edge:DOWN:SOLID|-10:0:0|-12:Unselect(0:12:n_U) - Edge:UP_ARROW:SOLID|-10:1:1|-13:Unselect(1:12:n_U) - Edge:DOWN:SOLID|-10:1:1|-13:Unselect(1:12:n_U) - Edge:UP_ARROW:SOLID|-10:2:2|-14:Unselect(2:12:n_U) - Edge:DOWN:SOLID|-10:2:2|-14:Unselect(2:12:n_U) - Edge:UP_ARROW:SOLID|-10:3:3|-15:Unselect(3:12:n_U) - Edge:DOWN:SOLID|-10:3:3|-15:Unselect(3:12:n_U) - Edge:UP_ARROW:SOLID|-10:4:4|-16:Unselect(4:12:n_U) - Edge:DOWN:SOLID|-10:4:4|-16:Unselect(4:12:n_U) - Edge:UP_ARROW:SOLID|-10:5:5|-17:Unselect(5:12:n_U) - Edge:DOWN:SOLID|-10:5:5|-17:Unselect(5:12:n_U) - Edge:UP:SOLID|-10:6:0|-18:Unselect(6:12:n_U) - Edge:DOWN:SOLID|-10:6:6|-18:Unselect(6:12:n_U) - Edge:UP:SOLID|-10:7:1|-19:Unselect(7:12:n_U) - Edge:DOWN:SOLID|-10:7:7|-19:Unselect(7:12:n_U) - Edge:UP:SOLID|-10:8:2|-20:Unselect(8:12:n_U) - Edge:DOWN:SOLID|-10:8:8|-20:Unselect(8:12:n_U) - Edge:UP:SOLID|-10:9:3|-21:Unselect(9:12:n_U) - Edge:DOWN:SOLID|-10:9:9|-21:Unselect(9:12:n_U) - Node|-10:10|-10:Unselect(10_U) - Edge:UP:SOLID|-10:10:4|-10:Unselect(0:10:n_U) - Edge:DOWN:SOLID|-10:10:10|-22:Unselect(10:12:n_U) - Edge:UP_ARROW:SOLID|-10:11:5|-11:Unselect(0:11:n_U) - Edge:DOWN:SOLID|-10:11:11|-11:Unselect(0:11:n_U) -Edge:UP_ARROW:SOLID|-11:0:0|-12:Unselect(0:12:n_U) - Edge:DOWN:SOLID|-11:0:0|-12:Unselect(0:12:n_U) - Edge:UP_ARROW:SOLID|-11:1:1|-13:Unselect(1:12:n_U) - Edge:DOWN:SOLID|-11:1:0|-13:Unselect(1:12:n_U) - Edge:UP_ARROW:SOLID|-11:2:2|-14:Unselect(2:12:n_U) - Edge:DOWN:SOLID|-11:2:0|-14:Unselect(2:12:n_U) - Edge:UP:SOLID|-11:3:3|-15:Unselect(3:12:n_U) - Edge:DOWN:SOLID|-11:3:0|-15:Unselect(3:12:n_U) - Edge:UP:SOLID|-11:4:4|-16:Unselect(4:12:n_U) - Edge:DOWN:SOLID|-11:4:0|-16:Unselect(4:12:n_U) - Edge:UP:SOLID|-11:5:5|-17:Unselect(5:12:n_U) - Edge:DOWN:SOLID|-11:5:0|-17:Unselect(5:12:n_U) - Edge:UP:SOLID|-11:6:6|-18:Unselect(6:12:n_U) - Edge:DOWN:SOLID|-11:6:0|-18:Unselect(6:12:n_U) - Edge:UP:SOLID|-11:7:7|-19:Unselect(7:12:n_U) - Edge:DOWN:SOLID|-11:7:0|-19:Unselect(7:12:n_U) - Edge:UP:SOLID|-11:8:8|-20:Unselect(8:12:n_U) - Edge:DOWN:SOLID|-11:8:0|-20:Unselect(8:12:n_U) - Edge:UP:SOLID|-11:9:9|-21:Unselect(9:12:n_U) - Edge:DOWN:SOLID|-11:9:0|-21:Unselect(9:12:n_U) - Edge:UP:SOLID|-11:10:10|-22:Unselect(10:12:n_U) - Edge:DOWN:SOLID|-11:10:0|-22:Unselect(10:12:n_U) - Node|-11:11|-11:Unselect(11_U) - Edge:UP:SOLID|-11:11:11|-11:Unselect(0:11:n_U) - Edge:DOWN:SOLID|-11:11:0|-23:Unselect(11:12:n_U) -Node|-12:0|-12:Unselect(12_U) - Edge:UP:SOLID|-12:0:0|-12:Unselect(0:12:n_U) - Edge:UP:SOLID|-12:0:1|-13:Unselect(1:12:n_U) - Edge:UP:SOLID|-12:0:2|-14:Unselect(2:12:n_U) - Edge:UP:SOLID|-12:0:3|-15:Unselect(3:12:n_U) - Edge:UP:SOLID|-12:0:4|-16:Unselect(4:12:n_U) - Edge:UP:SOLID|-12:0:5|-17:Unselect(5:12:n_U) - Edge:UP:SOLID|-12:0:6|-18:Unselect(6:12:n_U) - Edge:UP:SOLID|-12:0:7|-19:Unselect(7:12:n_U) - Edge:UP:SOLID|-12:0:8|-20:Unselect(8:12:n_U) - Edge:UP:SOLID|-12:0:9|-21:Unselect(9:12:n_U) - Edge:UP:SOLID|-12:0:10|-22:Unselect(10:12:n_U) - Edge:UP:SOLID|-12:0:11|-23:Unselect(11:12:n_U) \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/elementGenerator/manyNodes_in.txt b/shared/fixtures/git/graph-idea/elementGenerator/manyNodes_in.txt deleted file mode 100644 index 673c097a3a..0000000000 --- a/shared/fixtures/git/graph-idea/elementGenerator/manyNodes_in.txt +++ /dev/null @@ -1,8 +0,0 @@ -0_U|-1_U 6_U 3_U -1_U|-6_D -2_U|-3_U -3_U|- -4_U|-5_U -5_U|- -6_U|-7_U -7_U|- \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/elementGenerator/manyNodes_out.txt b/shared/fixtures/git/graph-idea/elementGenerator/manyNodes_out.txt deleted file mode 100644 index 7899a7e785..0000000000 --- a/shared/fixtures/git/graph-idea/elementGenerator/manyNodes_out.txt +++ /dev/null @@ -1,44 +0,0 @@ -Node|-0:0|-0:Unselect(0_U) - Edge:DOWN:SOLID|-0:0:0|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-0:0:1|-1:Unselect(0:1:n_U) - Edge:DOWN:SOLID|-0:0:2|-3:Unselect(0:3:n_U) -Edge:UP:SOLID|-1:0:0|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-1:0:0|-6:Unselect(0:6:n_U) - Node|-1:1|-1:Unselect(1_U) - Edge:UP:SOLID|-1:1:0|-1:Unselect(0:1:n_U) - Edge:DOWN:DASHED|-1:1:1|-7:Unselect(1:6:n_D) - Edge:UP:SOLID|-1:2:0|-3:Unselect(0:3:n_U) - Edge:DOWN:SOLID|-1:2:2|-3:Unselect(0:3:n_U) -Edge:UP:SOLID|-2:0:0|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-2:0:0|-6:Unselect(0:6:n_U) - Edge:UP:DASHED|-2:1:1|-7:Unselect(1:6:n_D) - Edge:DOWN:DASHED|-2:1:1|-7:Unselect(1:6:n_D) - Edge:UP:SOLID|-2:2:2|-3:Unselect(0:3:n_U) - Edge:DOWN:SOLID|-2:2:2|-3:Unselect(0:3:n_U) - Node|-2:3|-2:Unselect(2_U) - Edge:DOWN:SOLID|-2:3:2|-5:Unselect(2:3:n_U) -Edge:UP:SOLID|-3:0:0|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-3:0:0|-6:Unselect(0:6:n_U) - Edge:UP:DASHED|-3:1:1|-7:Unselect(1:6:n_D) - Edge:DOWN:DASHED|-3:1:1|-7:Unselect(1:6:n_D) - Node|-3:2|-3:Unselect(3_U) - Edge:UP:SOLID|-3:2:2|-3:Unselect(0:3:n_U) - Edge:UP:SOLID|-3:2:3|-5:Unselect(2:3:n_U) -Edge:UP:SOLID|-4:0:0|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-4:0:0|-6:Unselect(0:6:n_U) - Edge:UP:DASHED|-4:1:1|-7:Unselect(1:6:n_D) - Edge:DOWN:DASHED|-4:1:1|-7:Unselect(1:6:n_D) - Node|-4:2|-4:Unselect(4_U) - Edge:DOWN:SOLID|-4:2:2|-9:Unselect(4:5:n_U) -Edge:UP:SOLID|-5:0:0|-6:Unselect(0:6:n_U) - Edge:DOWN:SOLID|-5:0:0|-6:Unselect(0:6:n_U) - Edge:UP:DASHED|-5:1:1|-7:Unselect(1:6:n_D) - Edge:DOWN:DASHED|-5:1:0|-7:Unselect(1:6:n_D) - Node|-5:2|-5:Unselect(5_U) - Edge:UP:SOLID|-5:2:2|-9:Unselect(4:5:n_U) -Node|-6:0|-6:Unselect(6_U) - Edge:UP:SOLID|-6:0:0|-6:Unselect(0:6:n_U) - Edge:UP:DASHED|-6:0:1|-7:Unselect(1:6:n_D) - Edge:DOWN:SOLID|-6:0:0|-13:Unselect(6:7:n_U) -Node|-7:0|-7:Unselect(7_U) - Edge:UP:SOLID|-7:0:0|-13:Unselect(6:7:n_U) \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/elementGenerator/oneNode_in.txt b/shared/fixtures/git/graph-idea/elementGenerator/oneNode_in.txt deleted file mode 100644 index d980f68dac..0000000000 --- a/shared/fixtures/git/graph-idea/elementGenerator/oneNode_in.txt +++ /dev/null @@ -1 +0,0 @@ -0_U|- \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/elementGenerator/oneNode_out.txt b/shared/fixtures/git/graph-idea/elementGenerator/oneNode_out.txt deleted file mode 100644 index a3948e2218..0000000000 --- a/shared/fixtures/git/graph-idea/elementGenerator/oneNode_out.txt +++ /dev/null @@ -1 +0,0 @@ -Node|-0:0|-0:Unselect(0_U) \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown1_in.txt b/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown1_in.txt deleted file mode 100644 index 751fa56095..0000000000 --- a/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown1_in.txt +++ /dev/null @@ -1,16 +0,0 @@ -0_U|-1_U 7_U -1_U|-2_U -2_U|-3_U -3_U|-4_U 12_U -4_U|-5_U 6_U -5_U|-8_U -6_U|-8_U -7_U|-15_U -8_U|-9_U 10_U -9_U|-11_U -10_U|-11_U -11_U|-12_U -12_U|-13_U -13_U|-14_U -14_U|-15_U -15_U|- \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown1_out.txt b/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown1_out.txt deleted file mode 100644 index dcc00f81f0..0000000000 --- a/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown1_out.txt +++ /dev/null @@ -1,78 +0,0 @@ -Node|-0:0|-0:Unselect(0_U) - Edge:DOWN:SOLID|-0:0:0|-1:Unselect(0:1:n_U) - Edge:DOWN:SOLID|-0:0:1|-7:Unselect(0:7:n_U) -Node|-1:0|-1:Unselect(1_U) - Edge:UP:SOLID|-1:0:0|-1:Unselect(0:1:n_U) - Edge:DOWN:SOLID|-1:0:0|-3:Unselect(1:2:n_U) - Edge:UP:SOLID|-1:1:0|-7:Unselect(0:7:n_U) - Edge:DOWN_ARROW:SOLID|-1:1:1|-7:Unselect(0:7:n_U) -Node|-2:0|-2:Unselect(2_U) - Edge:UP:SOLID|-2:0:0|-3:Unselect(1:2:n_U) - Edge:DOWN:SOLID|-2:0:0|-5:Unselect(2:3:n_U) -Node|-3:0|-3:Unselect(3_U) - Edge:UP:SOLID|-3:0:0|-5:Unselect(2:3:n_U) - Edge:DOWN:SOLID|-3:0:0|-15:Unselect(3:12:n_U) - Edge:DOWN:SOLID|-3:0:1|-7:Unselect(3:4:n_U) -Edge:UP:SOLID|-4:0:0|-15:Unselect(3:12:n_U) - Edge:DOWN_ARROW:SOLID|-4:0:0|-15:Unselect(3:12:n_U) - Node|-4:1|-4:Unselect(4_U) - Edge:UP:SOLID|-4:1:0|-7:Unselect(3:4:n_U) - Edge:DOWN:SOLID|-4:1:0|-9:Unselect(4:5:n_U) - Edge:DOWN:SOLID|-4:1:1|-10:Unselect(4:6:n_U) -Node|-5:0|-5:Unselect(5_U) - Edge:UP:SOLID|-5:0:1|-9:Unselect(4:5:n_U) - Edge:DOWN:SOLID|-5:0:0|-13:Unselect(5:8:n_U) - Edge:UP:SOLID|-5:1:1|-10:Unselect(4:6:n_U) - Edge:DOWN:SOLID|-5:1:1|-10:Unselect(4:6:n_U) -Edge:UP:SOLID|-6:0:0|-13:Unselect(5:8:n_U) - Edge:DOWN:SOLID|-6:0:0|-13:Unselect(5:8:n_U) - Node|-6:1|-6:Unselect(6_U) - Edge:UP:SOLID|-6:1:1|-10:Unselect(4:6:n_U) - Edge:DOWN:SOLID|-6:1:1|-14:Unselect(6:8:n_U) - Edge:UP_ARROW:SOLID|-6:2:2|-7:Unselect(0:7:n_U) - Edge:DOWN:SOLID|-6:2:2|-7:Unselect(0:7:n_U) -Edge:UP:SOLID|-7:0:0|-13:Unselect(5:8:n_U) - Edge:DOWN:SOLID|-7:0:0|-13:Unselect(5:8:n_U) - Edge:UP:SOLID|-7:1:1|-14:Unselect(6:8:n_U) - Edge:DOWN:SOLID|-7:1:0|-14:Unselect(6:8:n_U) - Node|-7:2|-7:Unselect(7_U) - Edge:UP:SOLID|-7:2:2|-7:Unselect(0:7:n_U) - Edge:DOWN:SOLID|-7:2:1|-22:Unselect(7:15:n_U) -Node|-8:0|-8:Unselect(8_U) - Edge:UP:SOLID|-8:0:0|-13:Unselect(5:8:n_U) - Edge:UP:SOLID|-8:0:1|-14:Unselect(6:8:n_U) - Edge:DOWN:SOLID|-8:0:0|-17:Unselect(8:9:n_U) - Edge:DOWN:SOLID|-8:0:1|-18:Unselect(8:10:n_U) - Edge:UP:SOLID|-8:1:2|-22:Unselect(7:15:n_U) - Edge:DOWN_ARROW:SOLID|-8:1:1|-22:Unselect(7:15:n_U) -Node|-9:0|-9:Unselect(9_U) - Edge:UP:SOLID|-9:0:0|-17:Unselect(8:9:n_U) - Edge:DOWN:SOLID|-9:0:0|-20:Unselect(9:11:n_U) - Edge:UP:SOLID|-9:1:0|-18:Unselect(8:10:n_U) - Edge:DOWN:SOLID|-9:1:1|-18:Unselect(8:10:n_U) -Edge:UP:SOLID|-10:0:0|-20:Unselect(9:11:n_U) - Edge:DOWN:SOLID|-10:0:1|-20:Unselect(9:11:n_U) - Node|-10:1|-10:Unselect(10_U) - Edge:UP:SOLID|-10:1:1|-18:Unselect(8:10:n_U) - Edge:DOWN:SOLID|-10:1:1|-21:Unselect(10:11:n_U) -Edge:UP_ARROW:SOLID|-11:0:0|-15:Unselect(3:12:n_U) - Edge:DOWN:SOLID|-11:0:0|-15:Unselect(3:12:n_U) - Node|-11:1|-11:Unselect(11_U) - Edge:UP:SOLID|-11:1:0|-20:Unselect(9:11:n_U) - Edge:UP:SOLID|-11:1:1|-21:Unselect(10:11:n_U) - Edge:DOWN:SOLID|-11:1:0|-23:Unselect(11:12:n_U) -Node|-12:0|-12:Unselect(12_U) - Edge:UP:SOLID|-12:0:0|-15:Unselect(3:12:n_U) - Edge:UP:SOLID|-12:0:1|-23:Unselect(11:12:n_U) - Edge:DOWN:SOLID|-12:0:0|-25:Unselect(12:13:n_U) -Node|-13:0|-13:Unselect(13_U) - Edge:UP:SOLID|-13:0:0|-25:Unselect(12:13:n_U) - Edge:DOWN:SOLID|-13:0:0|-27:Unselect(13:14:n_U) -Node|-14:0|-14:Unselect(14_U) - Edge:UP:SOLID|-14:0:0|-27:Unselect(13:14:n_U) - Edge:DOWN:SOLID|-14:0:0|-29:Unselect(14:15:n_U) - Edge:UP_ARROW:SOLID|-14:1:1|-22:Unselect(7:15:n_U) - Edge:DOWN:SOLID|-14:1:0|-22:Unselect(7:15:n_U) -Node|-15:0|-15:Unselect(15_U) - Edge:UP:SOLID|-15:0:0|-29:Unselect(14:15:n_U) - Edge:UP:SOLID|-15:0:1|-22:Unselect(7:15:n_U) \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown2_in.txt b/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown2_in.txt deleted file mode 100644 index 634d91c7f2..0000000000 --- a/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown2_in.txt +++ /dev/null @@ -1,23 +0,0 @@ -0_U|-1_U 10_U -1_U|-2_U -2_U|-3_U -3_U|-4_U -4_U|-5_U -5_U|-7_U 6_U -6_U|-15_U -7_U|-8_U 9_U -8_U|-11_U -9_U|-11_U -10_U|-22_U -11_U|-12_U 13_U -12_U|-14_U -13_U|-14_U -14_U|-16_U -15_U|-16_U -16_U|-17_U -17_U|-18_U -18_U|-19_U -19_U|-20_U -20_U|-21_U -21_U|-22_U -22_U|- \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown2_out.txt b/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown2_out.txt deleted file mode 100644 index 432b7f54ec..0000000000 --- a/shared/fixtures/git/graph-idea/elementGenerator/oneUpOneDown2_out.txt +++ /dev/null @@ -1,115 +0,0 @@ -Node|-0:0|-0:Unselect(0_U) - Edge:DOWN:SOLID|-0:0:0|-1:Unselect(0:1:n_U) - Edge:DOWN:SOLID|-0:0:1|-10:Unselect(0:10:n_U) -Node|-1:0|-1:Unselect(1_U) - Edge:UP:SOLID|-1:0:0|-1:Unselect(0:1:n_U) - Edge:DOWN:SOLID|-1:0:0|-3:Unselect(1:2:n_U) - Edge:UP:SOLID|-1:1:0|-10:Unselect(0:10:n_U) - Edge:DOWN_ARROW:SOLID|-1:1:1|-10:Unselect(0:10:n_U) -Node|-2:0|-2:Unselect(2_U) - Edge:UP:SOLID|-2:0:0|-3:Unselect(1:2:n_U) - Edge:DOWN:SOLID|-2:0:0|-5:Unselect(2:3:n_U) -Node|-3:0|-3:Unselect(3_U) - Edge:UP:SOLID|-3:0:0|-5:Unselect(2:3:n_U) - Edge:DOWN:SOLID|-3:0:0|-7:Unselect(3:4:n_U) -Node|-4:0|-4:Unselect(4_U) - Edge:UP:SOLID|-4:0:0|-7:Unselect(3:4:n_U) - Edge:DOWN:SOLID|-4:0:0|-9:Unselect(4:5:n_U) -Node|-5:0|-5:Unselect(5_U) - Edge:UP:SOLID|-5:0:0|-9:Unselect(4:5:n_U) - Edge:DOWN:SOLID|-5:0:0|-12:Unselect(5:7:n_U) - Edge:DOWN:SOLID|-5:0:1|-11:Unselect(5:6:n_U) -Edge:UP:SOLID|-6:0:0|-12:Unselect(5:7:n_U) - Edge:DOWN:SOLID|-6:0:0|-12:Unselect(5:7:n_U) - Node|-6:1|-6:Unselect(6_U) - Edge:UP:SOLID|-6:1:0|-11:Unselect(5:6:n_U) - Edge:DOWN:SOLID|-6:1:1|-21:Unselect(6:15:n_U) -Node|-7:0|-7:Unselect(7_U) - Edge:UP:SOLID|-7:0:0|-12:Unselect(5:7:n_U) - Edge:DOWN:SOLID|-7:0:0|-15:Unselect(7:8:n_U) - Edge:DOWN:SOLID|-7:0:1|-16:Unselect(7:9:n_U) - Edge:UP:SOLID|-7:1:1|-21:Unselect(6:15:n_U) - Edge:DOWN:SOLID|-7:1:2|-21:Unselect(6:15:n_U) -Node|-8:0|-8:Unselect(8_U) - Edge:UP:SOLID|-8:0:0|-15:Unselect(7:8:n_U) - Edge:DOWN:SOLID|-8:0:0|-19:Unselect(8:11:n_U) - Edge:UP:SOLID|-8:1:0|-16:Unselect(7:9:n_U) - Edge:DOWN:SOLID|-8:1:1|-16:Unselect(7:9:n_U) - Edge:UP:SOLID|-8:2:1|-21:Unselect(6:15:n_U) - Edge:DOWN:SOLID|-8:2:2|-21:Unselect(6:15:n_U) -Edge:UP:SOLID|-9:0:0|-19:Unselect(8:11:n_U) - Edge:DOWN:SOLID|-9:0:0|-19:Unselect(8:11:n_U) - Node|-9:1|-9:Unselect(9_U) - Edge:UP:SOLID|-9:1:1|-16:Unselect(7:9:n_U) - Edge:DOWN:SOLID|-9:1:1|-20:Unselect(9:11:n_U) - Edge:UP:SOLID|-9:2:2|-21:Unselect(6:15:n_U) - Edge:DOWN:SOLID|-9:2:2|-21:Unselect(6:15:n_U) - Edge:UP_ARROW:SOLID|-9:3:3|-10:Unselect(0:10:n_U) - Edge:DOWN:SOLID|-9:3:3|-10:Unselect(0:10:n_U) -Edge:UP:SOLID|-10:0:0|-19:Unselect(8:11:n_U) - Edge:DOWN:SOLID|-10:0:0|-19:Unselect(8:11:n_U) - Edge:UP:SOLID|-10:1:1|-20:Unselect(9:11:n_U) - Edge:DOWN:SOLID|-10:1:0|-20:Unselect(9:11:n_U) - Edge:UP:SOLID|-10:2:2|-21:Unselect(6:15:n_U) - Edge:DOWN:SOLID|-10:2:1|-21:Unselect(6:15:n_U) - Node|-10:3|-10:Unselect(10_U) - Edge:UP:SOLID|-10:3:3|-10:Unselect(0:10:n_U) - Edge:DOWN:SOLID|-10:3:2|-32:Unselect(10:22:n_U) -Node|-11:0|-11:Unselect(11_U) - Edge:UP:SOLID|-11:0:0|-19:Unselect(8:11:n_U) - Edge:UP:SOLID|-11:0:1|-20:Unselect(9:11:n_U) - Edge:DOWN:SOLID|-11:0:0|-23:Unselect(11:12:n_U) - Edge:DOWN:SOLID|-11:0:1|-24:Unselect(11:13:n_U) - Edge:UP:SOLID|-11:1:2|-21:Unselect(6:15:n_U) - Edge:DOWN:SOLID|-11:1:2|-21:Unselect(6:15:n_U) - Edge:UP:SOLID|-11:2:3|-32:Unselect(10:22:n_U) - Edge:DOWN_ARROW:SOLID|-11:2:2|-32:Unselect(10:22:n_U) -Node|-12:0|-12:Unselect(12_U) - Edge:UP:SOLID|-12:0:0|-23:Unselect(11:12:n_U) - Edge:DOWN:SOLID|-12:0:0|-26:Unselect(12:14:n_U) - Edge:UP:SOLID|-12:1:0|-24:Unselect(11:13:n_U) - Edge:DOWN:SOLID|-12:1:1|-24:Unselect(11:13:n_U) - Edge:UP:SOLID|-12:2:1|-21:Unselect(6:15:n_U) - Edge:DOWN:SOLID|-12:2:2|-21:Unselect(6:15:n_U) -Edge:UP:SOLID|-13:0:0|-26:Unselect(12:14:n_U) - Edge:DOWN:SOLID|-13:0:0|-26:Unselect(12:14:n_U) - Node|-13:1|-13:Unselect(13_U) - Edge:UP:SOLID|-13:1:1|-24:Unselect(11:13:n_U) - Edge:DOWN:SOLID|-13:1:0|-27:Unselect(13:14:n_U) - Edge:UP:SOLID|-13:2:2|-21:Unselect(6:15:n_U) - Edge:DOWN:SOLID|-13:2:1|-21:Unselect(6:15:n_U) -Node|-14:0|-14:Unselect(14_U) - Edge:UP:SOLID|-14:0:0|-26:Unselect(12:14:n_U) - Edge:UP:SOLID|-14:0:1|-27:Unselect(13:14:n_U) - Edge:DOWN:SOLID|-14:0:0|-30:Unselect(14:16:n_U) - Edge:UP:SOLID|-14:1:2|-21:Unselect(6:15:n_U) - Edge:DOWN:SOLID|-14:1:1|-21:Unselect(6:15:n_U) -Edge:UP:SOLID|-15:0:0|-30:Unselect(14:16:n_U) - Edge:DOWN:SOLID|-15:0:0|-30:Unselect(14:16:n_U) - Node|-15:1|-15:Unselect(15_U) - Edge:UP:SOLID|-15:1:1|-21:Unselect(6:15:n_U) - Edge:DOWN:SOLID|-15:1:0|-31:Unselect(15:16:n_U) -Node|-16:0|-16:Unselect(16_U) - Edge:UP:SOLID|-16:0:0|-30:Unselect(14:16:n_U) - Edge:UP:SOLID|-16:0:1|-31:Unselect(15:16:n_U) - Edge:DOWN:SOLID|-16:0:0|-33:Unselect(16:17:n_U) -Node|-17:0|-17:Unselect(17_U) - Edge:UP:SOLID|-17:0:0|-33:Unselect(16:17:n_U) - Edge:DOWN:SOLID|-17:0:0|-35:Unselect(17:18:n_U) -Node|-18:0|-18:Unselect(18_U) - Edge:UP:SOLID|-18:0:0|-35:Unselect(17:18:n_U) - Edge:DOWN:SOLID|-18:0:0|-37:Unselect(18:19:n_U) -Node|-19:0|-19:Unselect(19_U) - Edge:UP:SOLID|-19:0:0|-37:Unselect(18:19:n_U) - Edge:DOWN:SOLID|-19:0:0|-39:Unselect(19:20:n_U) -Node|-20:0|-20:Unselect(20_U) - Edge:UP:SOLID|-20:0:0|-39:Unselect(19:20:n_U) - Edge:DOWN:SOLID|-20:0:0|-41:Unselect(20:21:n_U) -Node|-21:0|-21:Unselect(21_U) - Edge:UP:SOLID|-21:0:0|-41:Unselect(20:21:n_U) - Edge:DOWN:SOLID|-21:0:0|-43:Unselect(21:22:n_U) - Edge:UP_ARROW:SOLID|-21:1:1|-32:Unselect(10:22:n_U) - Edge:DOWN:SOLID|-21:1:0|-32:Unselect(10:22:n_U) -Node|-22:0|-22:Unselect(22_U) - Edge:UP:SOLID|-22:0:0|-43:Unselect(21:22:n_U) - Edge:UP:SOLID|-22:0:1|-32:Unselect(10:22:n_U) \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/layoutBuilder/manyNodes_in.txt b/shared/fixtures/git/graph-idea/layoutBuilder/manyNodes_in.txt deleted file mode 100644 index 8982fbb237..0000000000 --- a/shared/fixtures/git/graph-idea/layoutBuilder/manyNodes_in.txt +++ /dev/null @@ -1,9 +0,0 @@ -a0|-a1 a6 a3 -a1|-a7 -a2|-a3 -a3|- -a4|-a5 -a5|- -a6|-a7 -a7|-a8 -a8|- \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/layoutBuilder/manyNodes_out.txt b/shared/fixtures/git/graph-idea/layoutBuilder/manyNodes_out.txt deleted file mode 100644 index 415b3e125d..0000000000 --- a/shared/fixtures/git/graph-idea/layoutBuilder/manyNodes_out.txt +++ /dev/null @@ -1,9 +0,0 @@ -1|-0 -1|-0 -4|-2 -3|-0 -5|-4 -5|-4 -2|-0 -1|-0 -1|-0 \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/layoutBuilder/notFullGraph_in.txt b/shared/fixtures/git/graph-idea/layoutBuilder/notFullGraph_in.txt deleted file mode 100644 index 7943d8c1ff..0000000000 --- a/shared/fixtures/git/graph-idea/layoutBuilder/notFullGraph_in.txt +++ /dev/null @@ -1,5 +0,0 @@ -a0|-a1 a6 a3 -a1|-a6 -a2|-a3 -a3|- -a4|-a5 \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/layoutBuilder/notFullGraph_out.txt b/shared/fixtures/git/graph-idea/layoutBuilder/notFullGraph_out.txt deleted file mode 100644 index bc40e6aa16..0000000000 --- a/shared/fixtures/git/graph-idea/layoutBuilder/notFullGraph_out.txt +++ /dev/null @@ -1,5 +0,0 @@ -1|-0 -1|-0 -3|-2 -2|-0 -4|-4 \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/layoutBuilder/oneNodeNotFullGraph_in.txt b/shared/fixtures/git/graph-idea/layoutBuilder/oneNodeNotFullGraph_in.txt deleted file mode 100644 index be2a1e0b6a..0000000000 --- a/shared/fixtures/git/graph-idea/layoutBuilder/oneNodeNotFullGraph_in.txt +++ /dev/null @@ -1 +0,0 @@ -a0|-a1 a3 a5 \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/layoutBuilder/oneNodeNotFullGraph_out.txt b/shared/fixtures/git/graph-idea/layoutBuilder/oneNodeNotFullGraph_out.txt deleted file mode 100644 index 9010cabceb..0000000000 --- a/shared/fixtures/git/graph-idea/layoutBuilder/oneNodeNotFullGraph_out.txt +++ /dev/null @@ -1 +0,0 @@ -1|-0 \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/layoutBuilder/oneNode_in.txt b/shared/fixtures/git/graph-idea/layoutBuilder/oneNode_in.txt deleted file mode 100644 index 767a94f56f..0000000000 --- a/shared/fixtures/git/graph-idea/layoutBuilder/oneNode_in.txt +++ /dev/null @@ -1 +0,0 @@ -a0|- \ No newline at end of file diff --git a/shared/fixtures/git/graph-idea/layoutBuilder/oneNode_out.txt b/shared/fixtures/git/graph-idea/layoutBuilder/oneNode_out.txt deleted file mode 100644 index 9010cabceb..0000000000 --- a/shared/fixtures/git/graph-idea/layoutBuilder/oneNode_out.txt +++ /dev/null @@ -1 +0,0 @@ -1|-0 \ No newline at end of file diff --git a/shared/fixtures/git/graph-projection-v1.json b/shared/fixtures/git/graph-projection-v1.json deleted file mode 100644 index e288808271..0000000000 --- a/shared/fixtures/git/graph-projection-v1.json +++ /dev/null @@ -1,3851 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "linearHistory", - "description": "One lane, one color; HEAD and branch labels split from the checkout decoration.", - "request": {"commits":[{"hash":"C","parentHashes":["B"],"decorations":"HEAD -> main"},{"hash":"B","parentHashes":["A"]},{"hash":"A"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "C", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"0:1:false","parentHash":"B","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [{"id":"head:HEAD","title":"HEAD","kind":"head"},{"id":"branch:main","title":"main","kind":"branch"}], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"B"}] - }, - { - "commitHash": "B", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"1:2:false","parentHash":"A","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"C"}, - {"id":"1:2:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"A"} - ] - }, - { - "commitHash": "A", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [], - "labels": [], - "printElements": [{"id":"1:2:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"B"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "forkAndMerge", - "description": "A merge opens a second lane for its later parent and the branch converges into the first-parent lane.", - "request": {"commits":[{"hash":"M","parentHashes":["D","C"]},{"hash":"D","parentHashes":["B"]},{"hash":"C","parentHashes":["B"]},{"hash":"B"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "M", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:1:false","parentHash":"D","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false},{"id":"0:2:false","parentHash":"C","targetLane":1,"colorId":2,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"D"}, - {"id":"0:2:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"C"} - ] - }, - { - "commitHash": "D", - "lane": 0, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,2], - "parentEdges": [{"id":"1:3:false","parentHash":"B","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"M"}, - {"id":"1:3:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"B"}, - {"id":"0:2:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"M"}, - {"id":"0:2:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"C"} - ] - }, - { - "commitHash": "C", - "lane": 1, - "laneCount": 2, - "colorId": 2, - "layoutIndex": 2, - "incomingLaneColors": [0,2], - "parentEdges": [{"id":"2:3:false","parentHash":"B","targetLane":0,"colorId":2,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"1:3:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"D"}, - {"id":"1:3:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"B"}, - {"id":"0:2:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"M"}, - {"id":"2:3:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"B"} - ] - }, - { - "commitHash": "B", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [], - "labels": [], - "printElements": [ - {"id":"1:3:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"D"}, - {"id":"2:3:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"C"} - ] - } - ], - "laneCount": 2, - "recommendedLaneCount": 2, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "octopusMerge", - "description": "Three merge parents fan out to three lanes and converge on the root.", - "request": {"commits":[{"hash":"O","parentHashes":["P1","P2","P3"]},{"hash":"P1","parentHashes":["R"]},{"hash":"P2","parentHashes":["R"]},{"hash":"P3","parentHashes":["R"]},{"hash":"R"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "O", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [ - {"id":"0:1:false","parentHash":"P1","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}, - {"id":"0:2:false","parentHash":"P2","targetLane":1,"colorId":2,"isMissing":false,"isDotted":false}, - {"id":"0:3:false","parentHash":"P3","targetLane":2,"colorId":3,"isMissing":false,"isDotted":false} - ], - "labels": [], - "printElements": [ - {"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P1"}, - {"id":"0:2:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P2"}, - {"id":"0:3:false:down","position":0,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P3"} - ] - }, - { - "commitHash": "P1", - "lane": 0, - "laneCount": 3, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,2,3], - "parentEdges": [{"id":"1:4:false","parentHash":"R","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"O"}, - {"id":"1:4:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"R"}, - {"id":"0:2:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"O"}, - {"id":"0:2:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P2"}, - {"id":"0:3:false:up","position":2,"adjacentPosition":0,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"O"}, - {"id":"0:3:false:down","position":2,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P3"} - ] - }, - { - "commitHash": "P2", - "lane": 1, - "laneCount": 3, - "colorId": 2, - "layoutIndex": 2, - "incomingLaneColors": [0,2,3], - "parentEdges": [{"id":"2:4:false","parentHash":"R","targetLane":1,"colorId":2,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"1:4:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P1"}, - {"id":"1:4:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"R"}, - {"id":"0:2:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"O"}, - {"id":"2:4:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"R"}, - {"id":"0:3:false:up","position":2,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"O"}, - {"id":"0:3:false:down","position":2,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P3"} - ] - }, - { - "commitHash": "P3", - "lane": 2, - "laneCount": 3, - "colorId": 3, - "layoutIndex": 3, - "incomingLaneColors": [0,2,3], - "parentEdges": [{"id":"3:4:false","parentHash":"R","targetLane":0,"colorId":3,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"1:4:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P1"}, - {"id":"1:4:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"R"}, - {"id":"2:4:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P2"}, - {"id":"2:4:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"R"}, - {"id":"0:3:false:up","position":2,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"O"}, - {"id":"3:4:false:down","position":2,"adjacentPosition":0,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"R"} - ] - }, - { - "commitHash": "R", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [], - "labels": [], - "printElements": [ - {"id":"1:4:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P1"}, - {"id":"2:4:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P2"}, - {"id":"3:4:false:up","position":0,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"P3"} - ] - } - ], - "laneCount": 3, - "recommendedLaneCount": 3, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "headOrdering", - "description": "origin/main seeds the layout before local main, other branches, tags, and unreferenced tips.", - "request": { - "commits": [ - {"hash":"untagged","parentHashes":["root"]}, - {"hash":"feature-b","parentHashes":["root"],"decorations":"feature/b"}, - {"hash":"tag-tip","parentHashes":["root"],"decorations":"tag: v1"}, - {"hash":"main-tip","parentHashes":["root"],"decorations":"main, origin/main"}, - {"hash":"feature-a","parentHashes":["root"],"decorations":"HEAD -> feature/a"}, - {"hash":"root"} - ] - }, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "untagged", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 5, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:5:false","parentHash":"root","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [{"id":"0:5:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}] - }, - { - "commitHash": "feature-b", - "lane": 0, - "laneCount": 2, - "colorId": -420504695, - "layoutIndex": 3, - "incomingLaneColors": [-420504695,0], - "parentEdges": [{"id":"1:5:false","parentHash":"root","targetLane":0,"colorId":-420504695,"isMissing":false,"isDotted":false}], - "labels": [{"id":"branch:feature/b","title":"feature/b","kind":"branch"}], - "printElements": [ - {"id":"1:5:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":-420504695,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"0:5:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"untagged"}, - {"id":"0:5:false:down","position":1,"adjacentPosition":2,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"} - ] - }, - { - "commitHash": "tag-tip", - "lane": 1, - "laneCount": 3, - "colorId": 3707, - "layoutIndex": 4, - "incomingLaneColors": [-420504695,3707,0], - "parentEdges": [{"id":"2:5:false","parentHash":"root","targetLane":2,"colorId":3707,"isMissing":false,"isDotted":false}], - "labels": [{"id":"tag:v1","title":"v1","kind":"tag"}], - "printElements": [ - {"id":"1:5:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":-420504695,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"feature-b"}, - {"id":"1:5:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":-420504695,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"2:5:false:down","position":1,"adjacentPosition":2,"direction":"down","colorId":3707,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"0:5:false:up","position":2,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"untagged"}, - {"id":"0:5:false:down","position":2,"adjacentPosition":3,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"} - ] - }, - { - "commitHash": "main-tip", - "lane": 0, - "laneCount": 4, - "colorId": 1685401346, - "layoutIndex": 1, - "incomingLaneColors": [1685401346,-420504695,3707,0], - "parentEdges": [{"id":"3:5:false","parentHash":"root","targetLane":0,"colorId":1685401346,"isMissing":false,"isDotted":false}], - "labels": [{"id":"branch:main","title":"main","kind":"branch"},{"id":"remote:origin/main","title":"origin/main","kind":"remote"}], - "printElements": [ - {"id":"3:5:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":1685401346,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"1:5:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":-420504695,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"feature-b"}, - {"id":"1:5:false:down","position":1,"adjacentPosition":2,"direction":"down","colorId":-420504695,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"2:5:false:up","position":2,"adjacentPosition":1,"direction":"up","colorId":3707,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"tag-tip"}, - {"id":"2:5:false:down","position":2,"adjacentPosition":3,"direction":"down","colorId":3707,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"0:5:false:up","position":3,"adjacentPosition":2,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"untagged"}, - {"id":"0:5:false:down","position":3,"adjacentPosition":4,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"} - ] - }, - { - "commitHash": "feature-a", - "lane": 1, - "laneCount": 5, - "colorId": -420504696, - "layoutIndex": 2, - "incomingLaneColors": [1685401346,-420504696,-420504695,3707,0], - "parentEdges": [{"id":"4:5:false","parentHash":"root","targetLane":0,"colorId":-420504696,"isMissing":false,"isDotted":false}], - "labels": [{"id":"head:HEAD","title":"HEAD","kind":"head"},{"id":"branch:feature/a","title":"feature/a","kind":"branch"}], - "printElements": [ - {"id":"3:5:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":1685401346,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"main-tip"}, - {"id":"3:5:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":1685401346,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"4:5:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":-420504696,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"1:5:false:up","position":2,"adjacentPosition":1,"direction":"up","colorId":-420504695,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"feature-b"}, - {"id":"1:5:false:down","position":2,"adjacentPosition":0,"direction":"down","colorId":-420504695,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"2:5:false:up","position":3,"adjacentPosition":2,"direction":"up","colorId":3707,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"tag-tip"}, - {"id":"2:5:false:down","position":3,"adjacentPosition":0,"direction":"down","colorId":3707,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"0:5:false:up","position":4,"adjacentPosition":3,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"untagged"}, - {"id":"0:5:false:down","position":4,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"} - ] - }, - { - "commitHash": "root", - "lane": 0, - "laneCount": 1, - "colorId": 1685401346, - "layoutIndex": 1, - "incomingLaneColors": [1685401346], - "parentEdges": [], - "labels": [], - "printElements": [ - {"id":"0:5:false:up","position":0,"adjacentPosition":4,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"untagged"}, - {"id":"1:5:false:up","position":0,"adjacentPosition":2,"direction":"up","colorId":-420504695,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"feature-b"}, - {"id":"2:5:false:up","position":0,"adjacentPosition":3,"direction":"up","colorId":3707,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"tag-tip"}, - {"id":"3:5:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":1685401346,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"main-tip"}, - {"id":"4:5:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":-420504696,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"feature-a"} - ] - } - ], - "laneCount": 5, - "recommendedLaneCount": 4, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "naturalHeadOrder", - "description": "Equal-priority branches order by natural name, so release/2 precedes release/10.", - "request": {"commits":[{"hash":"r10","parentHashes":["root"],"decorations":"release/10"},{"hash":"r2","parentHashes":["root"],"decorations":"release/2"},{"hash":"root"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "r10", - "lane": 0, - "laneCount": 1, - "colorId": -1517175513, - "layoutIndex": 2, - "incomingLaneColors": [-1517175513], - "parentEdges": [{"id":"0:2:false","parentHash":"root","targetLane":1,"colorId":-1517175513,"isMissing":false,"isDotted":false}], - "labels": [{"id":"branch:release/10","title":"release/10","kind":"branch"}], - "printElements": [{"id":"0:2:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":-1517175513,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}] - }, - { - "commitHash": "r2", - "lane": 0, - "laneCount": 2, - "colorId": 89606186, - "layoutIndex": 1, - "incomingLaneColors": [89606186,-1517175513], - "parentEdges": [{"id":"1:2:false","parentHash":"root","targetLane":0,"colorId":89606186,"isMissing":false,"isDotted":false}], - "labels": [{"id":"branch:release/2","title":"release/2","kind":"branch"}], - "printElements": [ - {"id":"1:2:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":89606186,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"0:2:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":-1517175513,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"r10"}, - {"id":"0:2:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":-1517175513,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"} - ] - }, - { - "commitHash": "root", - "lane": 0, - "laneCount": 1, - "colorId": 89606186, - "layoutIndex": 1, - "incomingLaneColors": [89606186], - "parentEdges": [], - "labels": [], - "printElements": [ - {"id":"0:2:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":-1517175513,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"r10"}, - {"id":"1:2:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":89606186,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"r2"} - ] - } - ], - "laneCount": 2, - "recommendedLaneCount": 2, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "remoteNames", - "description": "A bare remote-tracking name is typed as remote only when the host supplies the remote short names.", - "request": {"commits":[{"hash":"local","parentHashes":["root"],"decorations":"main"},{"hash":"remote","parentHashes":["root"],"decorations":"upstream/work"},{"hash":"root"}],"remoteNames":["upstream/work"]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "local", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 2, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"0:2:false","parentHash":"root","targetLane":1,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [{"id":"branch:main","title":"main","kind":"branch"}], - "printElements": [{"id":"0:2:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}] - }, - { - "commitHash": "remote", - "lane": 0, - "laneCount": 2, - "colorId": -1107768635, - "layoutIndex": 1, - "incomingLaneColors": [-1107768635,3343801], - "parentEdges": [{"id":"1:2:false","parentHash":"root","targetLane":0,"colorId":-1107768635,"isMissing":false,"isDotted":false}], - "labels": [{"id":"remote:upstream/work","title":"upstream/work","kind":"remote"}], - "printElements": [ - {"id":"1:2:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":-1107768635,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"0:2:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"local"}, - {"id":"0:2:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"} - ] - }, - { - "commitHash": "root", - "lane": 0, - "laneCount": 1, - "colorId": -1107768635, - "layoutIndex": 1, - "incomingLaneColors": [-1107768635], - "parentEdges": [], - "labels": [], - "printElements": [ - {"id":"0:2:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"local"}, - {"id":"1:2:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":-1107768635,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"remote"} - ] - } - ], - "laneCount": 2, - "recommendedLaneCount": 2, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "pageOne", - "description": "The first history page ends with a parent outside the loaded window.", - "request": {"commits":[{"hash":"m3","parentHashes":["m2"],"decorations":"HEAD -> main"},{"hash":"m2","parentHashes":["m1"]},{"hash":"m1","parentHashes":["m0"]}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "m3", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"0:1:false","parentHash":"m2","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [{"id":"head:HEAD","title":"HEAD","kind":"head"},{"id":"branch:main","title":"main","kind":"branch"}], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m2"}] - }, - { - "commitHash": "m2", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"1:2:false","parentHash":"m1","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m3"}, - {"id":"1:2:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m1"} - ] - }, - { - "commitHash": "m1", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"2:m0:false","parentHash":"m0","targetLane":null,"colorId":3343801,"isMissing":true,"isDotted":false}], - "labels": [], - "printElements": [{"id":"1:2:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m2"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": true, - "currentBranchHashes": [] - } - }, - { - "name": "pageTwo", - "description": "The cumulative window after loading the next page resolves the missing parent.", - "request": {"commits":[{"hash":"m3","parentHashes":["m2"],"decorations":"HEAD -> main"},{"hash":"m2","parentHashes":["m1"]},{"hash":"m1","parentHashes":["m0"]},{"hash":"m0","parentHashes":["m-1"]},{"hash":"m-1"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "m3", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"0:1:false","parentHash":"m2","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [{"id":"head:HEAD","title":"HEAD","kind":"head"},{"id":"branch:main","title":"main","kind":"branch"}], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m2"}] - }, - { - "commitHash": "m2", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"1:2:false","parentHash":"m1","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m3"}, - {"id":"1:2:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m1"} - ] - }, - { - "commitHash": "m1", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"2:3:false","parentHash":"m0","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"1:2:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m2"}, - {"id":"2:3:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m0"} - ] - }, - { - "commitHash": "m0", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"3:4:false","parentHash":"m-1","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"2:3:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m1"}, - {"id":"3:4:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m-1"} - ] - }, - { - "commitHash": "m-1", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [], - "labels": [], - "printElements": [{"id":"3:4:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m0"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "windowAfterRefresh", - "description": "A refresh adds a newer commit; main keeps its color because the head fragment is keyed by name.", - "request": {"commits":[{"hash":"m4","parentHashes":["m3"],"decorations":"HEAD -> main"},{"hash":"m3","parentHashes":["m2"]},{"hash":"m2","parentHashes":["m1"]},{"hash":"m1","parentHashes":["m0"]},{"hash":"m0"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "m4", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"0:1:false","parentHash":"m3","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [{"id":"head:HEAD","title":"HEAD","kind":"head"},{"id":"branch:main","title":"main","kind":"branch"}], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m3"}] - }, - { - "commitHash": "m3", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"1:2:false","parentHash":"m2","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m4"}, - {"id":"1:2:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m2"} - ] - }, - { - "commitHash": "m2", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"2:3:false","parentHash":"m1","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"1:2:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m3"}, - {"id":"2:3:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m1"} - ] - }, - { - "commitHash": "m1", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"3:4:false","parentHash":"m0","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"2:3:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m2"}, - {"id":"3:4:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m0"} - ] - }, - { - "commitHash": "m0", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [], - "labels": [], - "printElements": [{"id":"3:4:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m1"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "branchScopeWithRepositoryContext", - "description": "A branch scope keeps the repository graph's layout indices, colors, and base order.", - "request": { - "commits": [{"hash":"side","parentHashes":["root"],"decorations":"HEAD -> feature"},{"hash":"root"}], - "repositoryCommits": [{"hash":"main-tip","parentHashes":["root"],"decorations":"origin/main"},{"hash":"side","parentHashes":["root"],"decorations":"HEAD -> feature"},{"hash":"root"}] - }, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "side", - "lane": 0, - "laneCount": 1, - "colorId": -979207434, - "layoutIndex": 2, - "incomingLaneColors": [-979207434], - "parentEdges": [{"id":"0:1:false","parentHash":"root","targetLane":0,"colorId":-979207434,"isMissing":false,"isDotted":false}], - "labels": [{"id":"head:HEAD","title":"HEAD","kind":"head"},{"id":"branch:feature","title":"feature","kind":"branch"}], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":-979207434,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}] - }, - { - "commitHash": "root", - "lane": 0, - "laneCount": 1, - "colorId": 1685401346, - "layoutIndex": 1, - "incomingLaneColors": [1685401346], - "parentEdges": [], - "labels": [], - "printElements": [{"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":-979207434,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"side"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "incompleteRepositoryContext", - "description": "A context that does not cover every scoped commit is ignored, never dropping commits.", - "request": {"commits":[{"hash":"tip","parentHashes":["root"]},{"hash":"root"}],"repositoryCommits":[{"hash":"root"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "tip", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:1:false","parentHash":"root","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}] - }, - { - "commitHash": "root", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [], - "labels": [], - "printElements": [{"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"tip"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "duplicateCommits", - "description": "A repeated hash keeps only its first row, so overlapping pages cannot draw a commit twice.", - "request": {"commits":[{"hash":"b","parentHashes":["a"]},{"hash":"a"},{"hash":"b","parentHashes":["a"]}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "b", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:1:false","parentHash":"a","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"a"}] - }, - { - "commitHash": "a", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [], - "labels": [], - "printElements": [{"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"b"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "filteredDottedAncestor", - "description": "Hidden linear ancestors collapse into one dotted edge between the visible endpoints.", - "request": {"commits":[{"hash":"a","parentHashes":["b"]},{"hash":"b","parentHashes":["c"]},{"hash":"c","parentHashes":["d"]},{"hash":"d"}],"visibleHashes":["a","d"]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "a", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:1:true","parentHash":"d","targetLane":0,"colorId":0,"isMissing":false,"isDotted":true}], - "labels": [], - "printElements": [{"id":"0:1:true:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":true,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"d"}] - }, - { - "commitHash": "d", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [], - "labels": [], - "printElements": [{"id":"0:1:true:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":true,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"a"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "filteredHiddenDiamond", - "description": "Direct merge parents stay solid; a visible ancestor reached only through hidden commits is dotted.", - "request": {"commits":[{"hash":"m","parentHashes":["x","y"]},{"hash":"x","parentHashes":["base"]},{"hash":"y","parentHashes":["base"]},{"hash":"base","parentHashes":["root"]},{"hash":"root"}],"visibleHashes":["m","x","root"]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "m", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:1:false","parentHash":"x","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"x"}] - }, - { - "commitHash": "x", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"1:2:true","parentHash":"root","targetLane":0,"colorId":0,"isMissing":false,"isDotted":true}], - "labels": [], - "printElements": [ - {"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"m"}, - {"id":"1:2:true:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":true,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"} - ] - }, - { - "commitHash": "root", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [], - "labels": [], - "printElements": [{"id":"1:2:true:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":true,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"x"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "filteredDirectEdgeWins", - "description": "A direct parent wins over a second path through hidden commits to the same visible ancestor.", - "request": {"commits":[{"hash":"top","parentHashes":["mid","low"]},{"hash":"mid","parentHashes":["low"]},{"hash":"low"}],"visibleHashes":["top","low"]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "top", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:1:false","parentHash":"low","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"low"}] - }, - { - "commitHash": "low", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [], - "labels": [], - "printElements": [{"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"top"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "filteredMissingParents", - "description": "Hidden commits project their unloaded parents onto the visible descendants; unrelated hidden roots add nothing.", - "request": { - "commits": [ - {"hash":"a","parentHashes":["left","right","missing"]}, - {"hash":"peer","parentHashes":["left"]}, - {"hash":"left","parentHashes":["missing","missing"]}, - {"hash":"right","parentHashes":["missing","other"]}, - {"hash":"unrelated","parentHashes":["unrelated-missing"]} - ], - "visibleHashes": ["a","peer"] - }, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "a", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:missing:false","parentHash":"missing","targetLane":0,"colorId":0,"isMissing":true,"isDotted":false},{"id":"0:other:true","parentHash":"other","targetLane":1,"colorId":0,"isMissing":true,"isDotted":true}], - "labels": [], - "printElements": [ - {"id":"0:missing:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":true,"hasArrow":false,"isTerminal":false,"targetHash":null}, - {"id":"0:other:true:down","position":0,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":true,"isMissing":true,"hasArrow":false,"isTerminal":false,"targetHash":null} - ] - }, - { - "commitHash": "peer", - "lane": 2, - "laneCount": 3, - "colorId": 0, - "layoutIndex": 3, - "incomingLaneColors": [0,0,0], - "parentEdges": [{"id":"1:missing:true","parentHash":"missing","targetLane":null,"colorId":0,"isMissing":true,"isDotted":true}], - "labels": [], - "printElements": [ - {"id":"0:missing:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":true,"hasArrow":false,"isTerminal":false,"targetHash":null}, - {"id":"0:missing:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":true,"hasArrow":true,"isTerminal":true,"targetHash":null}, - {"id":"0:other:true:up","position":1,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":true,"isMissing":true,"hasArrow":false,"isTerminal":false,"targetHash":null}, - {"id":"0:other:true:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":true,"isMissing":true,"hasArrow":true,"isTerminal":true,"targetHash":null} - ] - } - ], - "laneCount": 3, - "recommendedLaneCount": 2, - "hasMissingParents": true, - "currentBranchHashes": [] - } - }, - { - "name": "filteredBoundaryStopsAtVisible", - "description": "Unloaded-parent propagation stops at a visible ancestor, which owns its own continuation.", - "request": {"commits":[{"hash":"a","parentHashes":["b"]},{"hash":"b","parentHashes":["c"]},{"hash":"c","parentHashes":["missing"]}],"visibleHashes":["a","b"]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "a", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:1:false","parentHash":"b","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"b"}] - }, - { - "commitHash": "b", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"1:missing:true","parentHash":"missing","targetLane":null,"colorId":0,"isMissing":true,"isDotted":true}], - "labels": [], - "printElements": [{"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"a"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": true, - "currentBranchHashes": [] - } - }, - { - "name": "filteredEmpty", - "description": "A filter that matches nothing produces no rows and no missing-history notice.", - "request": {"commits":[{"hash":"a","parentHashes":["b"]}],"visibleHashes":[]}, - "response": {"version":1,"rows":[],"laneCount":0,"recommendedLaneCount":0,"hasMissingParents":false,"currentBranchHashes":[]} - }, - { - "name": "missingParentLastRow", - "description": "An unloaded parent draws a terminal arrow on the next row, never a fabricated target.", - "request": {"commits":[{"hash":"a","parentHashes":["b","b"]}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "a", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:b:false","parentHash":"b","targetLane":null,"colorId":0,"isMissing":true,"isDotted":false}], - "labels": [], - "printElements": [] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": true, - "currentBranchHashes": [] - } - }, - { - "name": "compactLongEdge", - "description": "A 39-row edge exceeds the 30-row compact limit, so only its two ends are drawn, each with a navigation arrow.", - "request": { - "commits": [ - {"hash":"0","parentHashes":["1","39"]}, - {"hash":"1","parentHashes":["2"]}, - {"hash":"2","parentHashes":["3"]}, - {"hash":"3","parentHashes":["4"]}, - {"hash":"4","parentHashes":["5"]}, - {"hash":"5","parentHashes":["6"]}, - {"hash":"6","parentHashes":["7"]}, - {"hash":"7","parentHashes":["8"]}, - {"hash":"8","parentHashes":["9"]}, - {"hash":"9","parentHashes":["10"]}, - {"hash":"10","parentHashes":["11"]}, - {"hash":"11","parentHashes":["12"]}, - {"hash":"12","parentHashes":["13"]}, - {"hash":"13","parentHashes":["14"]}, - {"hash":"14","parentHashes":["15"]}, - {"hash":"15","parentHashes":["16"]}, - {"hash":"16","parentHashes":["17"]}, - {"hash":"17","parentHashes":["18"]}, - {"hash":"18","parentHashes":["19"]}, - {"hash":"19","parentHashes":["20"]}, - {"hash":"20","parentHashes":["21"]}, - {"hash":"21","parentHashes":["22"]}, - {"hash":"22","parentHashes":["23"]}, - {"hash":"23","parentHashes":["24"]}, - {"hash":"24","parentHashes":["25"]}, - {"hash":"25","parentHashes":["26"]}, - {"hash":"26","parentHashes":["27"]}, - {"hash":"27","parentHashes":["28"]}, - {"hash":"28","parentHashes":["29"]}, - {"hash":"29","parentHashes":["30"]}, - {"hash":"30","parentHashes":["31"]}, - {"hash":"31","parentHashes":["32"]}, - {"hash":"32","parentHashes":["33"]}, - {"hash":"33","parentHashes":["34"]}, - {"hash":"34","parentHashes":["35"]}, - {"hash":"35","parentHashes":["36"]}, - {"hash":"36","parentHashes":["37"]}, - {"hash":"37","parentHashes":["38"]}, - {"hash":"38","parentHashes":["39"]}, - {"hash":"39"} - ] - }, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "0", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:1:false","parentHash":"1","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false},{"id":"0:39:false","parentHash":"39","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"1"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"} - ] - }, - { - "commitHash": "1", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"1:2:false","parentHash":"2","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":true,"isTerminal":true,"targetHash":"39"}, - {"id":"0:1:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"1:2:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"2"} - ] - }, - { - "commitHash": "2", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"2:3:false","parentHash":"3","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"1:2:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"1"}, - {"id":"2:3:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"} - ] - }, - { - "commitHash": "3", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"3:4:false","parentHash":"4","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"2:3:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"2"}, - {"id":"3:4:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"4"} - ] - }, - { - "commitHash": "4", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"4:5:false","parentHash":"5","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"3:4:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"}, - {"id":"4:5:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"} - ] - }, - { - "commitHash": "5", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"5:6:false","parentHash":"6","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"4:5:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"4"}, - {"id":"5:6:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"6"} - ] - }, - { - "commitHash": "6", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"6:7:false","parentHash":"7","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"5:6:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"}, - {"id":"6:7:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"7"} - ] - }, - { - "commitHash": "7", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"7:8:false","parentHash":"8","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"6:7:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"6"}, - {"id":"7:8:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"8"} - ] - }, - { - "commitHash": "8", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"8:9:false","parentHash":"9","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"7:8:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"7"}, - {"id":"8:9:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"9"} - ] - }, - { - "commitHash": "9", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"9:10:false","parentHash":"10","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"8:9:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"8"}, - {"id":"9:10:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"10"} - ] - }, - { - "commitHash": "10", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"10:11:false","parentHash":"11","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"9:10:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"9"}, - {"id":"10:11:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"11"} - ] - }, - { - "commitHash": "11", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"11:12:false","parentHash":"12","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"10:11:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"10"}, - {"id":"11:12:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"12"} - ] - }, - { - "commitHash": "12", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"12:13:false","parentHash":"13","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"11:12:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"11"}, - {"id":"12:13:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"13"} - ] - }, - { - "commitHash": "13", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"13:14:false","parentHash":"14","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"12:13:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"12"}, - {"id":"13:14:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"14"} - ] - }, - { - "commitHash": "14", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"14:15:false","parentHash":"15","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"13:14:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"13"}, - {"id":"14:15:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"15"} - ] - }, - { - "commitHash": "15", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"15:16:false","parentHash":"16","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"14:15:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"14"}, - {"id":"15:16:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"16"} - ] - }, - { - "commitHash": "16", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"16:17:false","parentHash":"17","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"15:16:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"15"}, - {"id":"16:17:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"17"} - ] - }, - { - "commitHash": "17", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"17:18:false","parentHash":"18","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"16:17:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"16"}, - {"id":"17:18:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"18"} - ] - }, - { - "commitHash": "18", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"18:19:false","parentHash":"19","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"17:18:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"17"}, - {"id":"18:19:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"19"} - ] - }, - { - "commitHash": "19", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"19:20:false","parentHash":"20","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"18:19:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"18"}, - {"id":"19:20:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"20"} - ] - }, - { - "commitHash": "20", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"20:21:false","parentHash":"21","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"19:20:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"19"}, - {"id":"20:21:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"21"} - ] - }, - { - "commitHash": "21", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"21:22:false","parentHash":"22","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"20:21:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"20"}, - {"id":"21:22:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"22"} - ] - }, - { - "commitHash": "22", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"22:23:false","parentHash":"23","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"21:22:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"21"}, - {"id":"22:23:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"23"} - ] - }, - { - "commitHash": "23", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"23:24:false","parentHash":"24","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"22:23:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"22"}, - {"id":"23:24:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"24"} - ] - }, - { - "commitHash": "24", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"24:25:false","parentHash":"25","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"23:24:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"23"}, - {"id":"24:25:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"25"} - ] - }, - { - "commitHash": "25", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"25:26:false","parentHash":"26","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"24:25:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"24"}, - {"id":"25:26:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"26"} - ] - }, - { - "commitHash": "26", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"26:27:false","parentHash":"27","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"25:26:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"25"}, - {"id":"26:27:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"27"} - ] - }, - { - "commitHash": "27", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"27:28:false","parentHash":"28","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"26:27:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"26"}, - {"id":"27:28:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"28"} - ] - }, - { - "commitHash": "28", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"28:29:false","parentHash":"29","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"27:28:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"27"}, - {"id":"28:29:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"29"} - ] - }, - { - "commitHash": "29", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"29:30:false","parentHash":"30","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"28:29:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"28"}, - {"id":"29:30:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"} - ] - }, - { - "commitHash": "30", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"30:31:false","parentHash":"31","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"29:30:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"29"}, - {"id":"30:31:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"} - ] - }, - { - "commitHash": "31", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"31:32:false","parentHash":"32","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"30:31:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"31:32:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"} - ] - }, - { - "commitHash": "32", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"32:33:false","parentHash":"33","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"31:32:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"}, - {"id":"32:33:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"} - ] - }, - { - "commitHash": "33", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"33:34:false","parentHash":"34","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"32:33:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"}, - {"id":"33:34:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"} - ] - }, - { - "commitHash": "34", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"34:35:false","parentHash":"35","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"33:34:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"}, - {"id":"34:35:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"} - ] - }, - { - "commitHash": "35", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"35:36:false","parentHash":"36","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"34:35:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"}, - {"id":"35:36:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"} - ] - }, - { - "commitHash": "36", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"36:37:false","parentHash":"37","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"35:36:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"}, - {"id":"36:37:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"} - ] - }, - { - "commitHash": "37", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"37:38:false","parentHash":"38","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"36:37:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"}, - {"id":"37:38:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - }, - { - "commitHash": "38", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"38:39:false","parentHash":"39","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":true,"isTerminal":true,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"37:38:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"}, - {"id":"38:39:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"} - ] - }, - { - "commitHash": "39", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"38:39:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - } - ], - "laneCount": 2, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "currentBranchAncestry", - "description": "currentBranch lists every ancestor, following all merge parents through the repository context.", - "request": { - "commits": [{"hash":"head","parentHashes":["left","merged"],"decorations":"HEAD -> main"},{"hash":"other","parentHashes":["base"],"decorations":"other"},{"hash":"left","parentHashes":["base"]}], - "repositoryCommits": [{"hash":"merged","parentHashes":["base"]},{"hash":"base","parentHashes":["missing"]}], - "currentBranch": "main" - }, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "head", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [ - {"id":"0:2:false","parentHash":"left","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}, - {"id":"0:merged:false","parentHash":"merged","targetLane":1,"colorId":3343801,"isMissing":true,"isDotted":false} - ], - "labels": [{"id":"head:HEAD","title":"HEAD","kind":"head"},{"id":"branch:main","title":"main","kind":"branch"}], - "printElements": [ - {"id":"0:2:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"left"}, - {"id":"0:merged:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":true,"hasArrow":false,"isTerminal":false,"targetHash":null} - ] - }, - { - "commitHash": "other", - "lane": 2, - "laneCount": 3, - "colorId": 106069776, - "layoutIndex": 2, - "incomingLaneColors": [3343801,3343801,106069776], - "parentEdges": [{"id":"1:base:false","parentHash":"base","targetLane":1,"colorId":106069776,"isMissing":true,"isDotted":false}], - "labels": [{"id":"branch:other","title":"other","kind":"branch"}], - "printElements": [ - {"id":"0:2:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"head"}, - {"id":"0:2:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"left"}, - {"id":"0:merged:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":true,"hasArrow":false,"isTerminal":false,"targetHash":null}, - {"id":"0:merged:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":true,"hasArrow":true,"isTerminal":true,"targetHash":null}, - {"id":"1:base:false:down","position":2,"adjacentPosition":1,"direction":"down","colorId":106069776,"isDotted":false,"isMissing":true,"hasArrow":false,"isTerminal":false,"targetHash":null} - ] - }, - { - "commitHash": "left", - "lane": 0, - "laneCount": 2, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801,106069776], - "parentEdges": [{"id":"2:base:false","parentHash":"base","targetLane":null,"colorId":3343801,"isMissing":true,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:2:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"head"}, - {"id":"1:base:false:up","position":1,"adjacentPosition":2,"direction":"up","colorId":106069776,"isDotted":false,"isMissing":true,"hasArrow":false,"isTerminal":false,"targetHash":null}, - {"id":"1:base:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":106069776,"isDotted":false,"isMissing":true,"hasArrow":true,"isTerminal":true,"targetHash":null} - ] - } - ], - "laneCount": 3, - "recommendedLaneCount": 2, - "hasMissingParents": true, - "currentBranchHashes": ["base","head","left","merged","missing"] - } - }, - { - "name": "expandedMode", - "description": "Expanded mode keeps a 39-row edge as a full lane with no compaction.", - "request": { - "commits": [ - {"hash":"0","parentHashes":["1","39"]}, - {"hash":"1","parentHashes":["2"]}, - {"hash":"2","parentHashes":["3"]}, - {"hash":"3","parentHashes":["4"]}, - {"hash":"4","parentHashes":["5"]}, - {"hash":"5","parentHashes":["6"]}, - {"hash":"6","parentHashes":["7"]}, - {"hash":"7","parentHashes":["8"]}, - {"hash":"8","parentHashes":["9"]}, - {"hash":"9","parentHashes":["10"]}, - {"hash":"10","parentHashes":["11"]}, - {"hash":"11","parentHashes":["12"]}, - {"hash":"12","parentHashes":["13"]}, - {"hash":"13","parentHashes":["14"]}, - {"hash":"14","parentHashes":["15"]}, - {"hash":"15","parentHashes":["16"]}, - {"hash":"16","parentHashes":["17"]}, - {"hash":"17","parentHashes":["18"]}, - {"hash":"18","parentHashes":["19"]}, - {"hash":"19","parentHashes":["20"]}, - {"hash":"20","parentHashes":["21"]}, - {"hash":"21","parentHashes":["22"]}, - {"hash":"22","parentHashes":["23"]}, - {"hash":"23","parentHashes":["24"]}, - {"hash":"24","parentHashes":["25"]}, - {"hash":"25","parentHashes":["26"]}, - {"hash":"26","parentHashes":["27"]}, - {"hash":"27","parentHashes":["28"]}, - {"hash":"28","parentHashes":["29"]}, - {"hash":"29","parentHashes":["30"]}, - {"hash":"30","parentHashes":["31"]}, - {"hash":"31","parentHashes":["32"]}, - {"hash":"32","parentHashes":["33"]}, - {"hash":"33","parentHashes":["34"]}, - {"hash":"34","parentHashes":["35"]}, - {"hash":"35","parentHashes":["36"]}, - {"hash":"36","parentHashes":["37"]}, - {"hash":"37","parentHashes":["38"]}, - {"hash":"38","parentHashes":["39"]}, - {"hash":"39"} - ], - "displayMode": "expanded" - }, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "0", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:1:false","parentHash":"1","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false},{"id":"0:39:false","parentHash":"39","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"1"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"} - ] - }, - { - "commitHash": "1", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"1:2:false","parentHash":"2","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":true,"isTerminal":false,"targetHash":"39"}, - {"id":"0:1:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"1:2:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"2"} - ] - }, - { - "commitHash": "2", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"2:3:false","parentHash":"3","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"1:2:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"1"}, - {"id":"2:3:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"} - ] - }, - { - "commitHash": "3", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"3:4:false","parentHash":"4","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"2:3:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"2"}, - {"id":"3:4:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"4"} - ] - }, - { - "commitHash": "4", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"4:5:false","parentHash":"5","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"3:4:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"}, - {"id":"4:5:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"} - ] - }, - { - "commitHash": "5", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"5:6:false","parentHash":"6","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"4:5:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"4"}, - {"id":"5:6:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"6"} - ] - }, - { - "commitHash": "6", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"6:7:false","parentHash":"7","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"5:6:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"}, - {"id":"6:7:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"7"} - ] - }, - { - "commitHash": "7", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"7:8:false","parentHash":"8","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"6:7:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"6"}, - {"id":"7:8:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"8"} - ] - }, - { - "commitHash": "8", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"8:9:false","parentHash":"9","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"7:8:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"7"}, - {"id":"8:9:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"9"} - ] - }, - { - "commitHash": "9", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"9:10:false","parentHash":"10","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"8:9:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"8"}, - {"id":"9:10:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"10"} - ] - }, - { - "commitHash": "10", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"10:11:false","parentHash":"11","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"9:10:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"9"}, - {"id":"10:11:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"11"} - ] - }, - { - "commitHash": "11", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"11:12:false","parentHash":"12","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"10:11:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"10"}, - {"id":"11:12:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"12"} - ] - }, - { - "commitHash": "12", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"12:13:false","parentHash":"13","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"11:12:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"11"}, - {"id":"12:13:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"13"} - ] - }, - { - "commitHash": "13", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"13:14:false","parentHash":"14","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"12:13:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"12"}, - {"id":"13:14:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"14"} - ] - }, - { - "commitHash": "14", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"14:15:false","parentHash":"15","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"13:14:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"13"}, - {"id":"14:15:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"15"} - ] - }, - { - "commitHash": "15", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"15:16:false","parentHash":"16","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"14:15:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"14"}, - {"id":"15:16:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"16"} - ] - }, - { - "commitHash": "16", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"16:17:false","parentHash":"17","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"15:16:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"15"}, - {"id":"16:17:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"17"} - ] - }, - { - "commitHash": "17", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"17:18:false","parentHash":"18","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"16:17:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"16"}, - {"id":"17:18:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"18"} - ] - }, - { - "commitHash": "18", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"18:19:false","parentHash":"19","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"17:18:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"17"}, - {"id":"18:19:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"19"} - ] - }, - { - "commitHash": "19", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"19:20:false","parentHash":"20","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"18:19:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"18"}, - {"id":"19:20:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"20"} - ] - }, - { - "commitHash": "20", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"20:21:false","parentHash":"21","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"19:20:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"19"}, - {"id":"20:21:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"21"} - ] - }, - { - "commitHash": "21", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"21:22:false","parentHash":"22","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"20:21:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"20"}, - {"id":"21:22:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"22"} - ] - }, - { - "commitHash": "22", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"22:23:false","parentHash":"23","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"21:22:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"21"}, - {"id":"22:23:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"23"} - ] - }, - { - "commitHash": "23", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"23:24:false","parentHash":"24","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"22:23:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"22"}, - {"id":"23:24:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"24"} - ] - }, - { - "commitHash": "24", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"24:25:false","parentHash":"25","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"23:24:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"23"}, - {"id":"24:25:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"25"} - ] - }, - { - "commitHash": "25", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"25:26:false","parentHash":"26","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"24:25:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"24"}, - {"id":"25:26:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"26"} - ] - }, - { - "commitHash": "26", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"26:27:false","parentHash":"27","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"25:26:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"25"}, - {"id":"26:27:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"27"} - ] - }, - { - "commitHash": "27", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"27:28:false","parentHash":"28","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"26:27:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"26"}, - {"id":"27:28:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"28"} - ] - }, - { - "commitHash": "28", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"28:29:false","parentHash":"29","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"27:28:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"27"}, - {"id":"28:29:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"29"} - ] - }, - { - "commitHash": "29", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"29:30:false","parentHash":"30","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"28:29:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"28"}, - {"id":"29:30:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"} - ] - }, - { - "commitHash": "30", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"30:31:false","parentHash":"31","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"29:30:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"29"}, - {"id":"30:31:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"} - ] - }, - { - "commitHash": "31", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"31:32:false","parentHash":"32","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:31:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"31:32:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"} - ] - }, - { - "commitHash": "32", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"32:33:false","parentHash":"33","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"31:32:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"}, - {"id":"32:33:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"} - ] - }, - { - "commitHash": "33", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"33:34:false","parentHash":"34","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"32:33:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"}, - {"id":"33:34:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"} - ] - }, - { - "commitHash": "34", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"34:35:false","parentHash":"35","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"33:34:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"}, - {"id":"34:35:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"} - ] - }, - { - "commitHash": "35", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"35:36:false","parentHash":"36","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"34:35:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"}, - {"id":"35:36:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"} - ] - }, - { - "commitHash": "36", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"36:37:false","parentHash":"37","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"35:36:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"}, - {"id":"36:37:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"} - ] - }, - { - "commitHash": "37", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"37:38:false","parentHash":"38","targetLane":1,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"36:37:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"}, - {"id":"37:38:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - }, - { - "commitHash": "38", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0,0], - "parentEdges": [{"id":"38:39:false","parentHash":"39","targetLane":0,"colorId":0,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":true,"isTerminal":false,"targetHash":"0"}, - {"id":"0:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"37:38:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"}, - {"id":"38:39:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"} - ] - }, - { - "commitHash": "39", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [], - "labels": [], - "printElements": [ - {"id":"0:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"38:39:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":0,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - } - ], - "laneCount": 2, - "recommendedLaneCount": 2, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "shiftedForks", - "description": "Forks shift columns between rows while every half-edge keeps its identity and color.", - "request": { - "commits": [ - {"hash":"0","parentHashes":["1"],"decorations":"HEAD -> main"}, - {"hash":"1","parentHashes":["3","2"],"decorations":"feature"}, - {"hash":"2","parentHashes":["3","5"]}, - {"hash":"3","parentHashes":["5","4"]}, - {"hash":"4","parentHashes":["5"]}, - {"hash":"5"} - ] - }, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "0", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"0:1:false","parentHash":"1","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [{"id":"head:HEAD","title":"HEAD","kind":"head"},{"id":"branch:main","title":"main","kind":"branch"}], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"1"}] - }, - { - "commitHash": "1", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"1:2:false","parentHash":"2","targetLane":1,"colorId":3,"isMissing":false,"isDotted":false},{"id":"1:3:false","parentHash":"3","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [{"id":"branch:feature","title":"feature","kind":"branch"}], - "printElements": [ - {"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"1:2:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"2"}, - {"id":"1:3:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"} - ] - }, - { - "commitHash": "2", - "lane": 1, - "laneCount": 2, - "colorId": 3, - "layoutIndex": 3, - "incomingLaneColors": [3343801,3], - "parentEdges": [{"id":"2:3:false","parentHash":"3","targetLane":0,"colorId":3,"isMissing":false,"isDotted":false},{"id":"2:5:false","parentHash":"5","targetLane":1,"colorId":3,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"1:3:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"1"}, - {"id":"1:3:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"}, - {"id":"1:2:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"1"}, - {"id":"2:3:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"}, - {"id":"2:5:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"} - ] - }, - { - "commitHash": "3", - "lane": 0, - "laneCount": 2, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801,3], - "parentEdges": [{"id":"3:4:false","parentHash":"4","targetLane":1,"colorId":2,"isMissing":false,"isDotted":false},{"id":"3:5:false","parentHash":"5","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"1:3:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"1"}, - {"id":"2:3:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"2"}, - {"id":"3:4:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"4"}, - {"id":"3:5:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"}, - {"id":"2:5:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"2"}, - {"id":"2:5:false:down","position":1,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"} - ] - }, - { - "commitHash": "4", - "lane": 1, - "laneCount": 3, - "colorId": 2, - "layoutIndex": 2, - "incomingLaneColors": [3343801,2,3], - "parentEdges": [{"id":"4:5:false","parentHash":"5","targetLane":0,"colorId":2,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"3:5:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"}, - {"id":"3:5:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"}, - {"id":"3:4:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"}, - {"id":"4:5:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"}, - {"id":"2:5:false:up","position":2,"adjacentPosition":1,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"2"}, - {"id":"2:5:false:down","position":2,"adjacentPosition":0,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"} - ] - }, - { - "commitHash": "5", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [], - "labels": [], - "printElements": [ - {"id":"2:5:false:up","position":0,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"2"}, - {"id":"3:5:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"}, - {"id":"4:5:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"4"} - ] - } - ], - "laneCount": 3, - "recommendedLaneCount": 3, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "missingParentBesideRoot", - "description": "An unloaded parent has no navigation target and does not connect to an unrelated commit.", - "request": {"commits":[{"hash":"tip","parentHashes":["missing"]},{"hash":"other"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "tip", - "lane": 0, - "laneCount": 1, - "colorId": 0, - "layoutIndex": 1, - "incomingLaneColors": [0], - "parentEdges": [{"id":"0:missing:false","parentHash":"missing","targetLane":0,"colorId":0,"isMissing":true,"isDotted":false}], - "labels": [], - "printElements": [{"id":"0:missing:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":true,"hasArrow":false,"isTerminal":false,"targetHash":null}] - }, - { - "commitHash": "other", - "lane": 1, - "laneCount": 2, - "colorId": 0, - "layoutIndex": 2, - "incomingLaneColors": [0,0], - "parentEdges": [], - "labels": [], - "printElements": [ - {"id":"0:missing:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":0,"isDotted":false,"isMissing":true,"hasArrow":false,"isTerminal":false,"targetHash":null}, - {"id":"0:missing:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":0,"isDotted":false,"isMissing":true,"hasArrow":true,"isTerminal":true,"targetHash":null} - ] - } - ], - "laneCount": 2, - "recommendedLaneCount": 1, - "hasMissingParents": true, - "currentBranchHashes": [] - } - }, - { - "name": "decoratedChain", - "description": "A linear history whose commits carry unrelated decorations stays in one lane.", - "request": {"commits":[{"hash":"a","parentHashes":["b"],"decorations":"keep-a"},{"hash":"b","parentHashes":["c"]},{"hash":"c","decorations":"keep-c"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "a", - "lane": 0, - "laneCount": 1, - "colorId": -1135254503, - "layoutIndex": 1, - "incomingLaneColors": [-1135254503], - "parentEdges": [{"id":"0:1:false","parentHash":"b","targetLane":0,"colorId":-1135254503,"isMissing":false,"isDotted":false}], - "labels": [{"id":"branch:keep-a","title":"keep-a","kind":"branch"}], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":-1135254503,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"b"}] - }, - { - "commitHash": "b", - "lane": 0, - "laneCount": 1, - "colorId": -1135254503, - "layoutIndex": 1, - "incomingLaneColors": [-1135254503], - "parentEdges": [{"id":"1:2:false","parentHash":"c","targetLane":0,"colorId":-1135254503,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":-1135254503,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"a"}, - {"id":"1:2:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":-1135254503,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"c"} - ] - }, - { - "commitHash": "c", - "lane": 0, - "laneCount": 1, - "colorId": -1135254503, - "layoutIndex": 1, - "incomingLaneColors": [-1135254503], - "parentEdges": [], - "labels": [{"id":"branch:keep-c","title":"keep-c","kind":"branch"}], - "printElements": [{"id":"1:2:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":-1135254503,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"b"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "filteredDecoratedChain", - "description": "Filtering out the middle commit of a chain leaves one dotted edge between the matches.", - "request": {"commits":[{"hash":"a","parentHashes":["b"],"decorations":"keep-a"},{"hash":"b","parentHashes":["c"]},{"hash":"c","decorations":"keep-c"}],"visibleHashes":["a","c"]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "a", - "lane": 0, - "laneCount": 1, - "colorId": -1135254503, - "layoutIndex": 1, - "incomingLaneColors": [-1135254503], - "parentEdges": [{"id":"0:1:true","parentHash":"c","targetLane":0,"colorId":-1135254503,"isMissing":false,"isDotted":true}], - "labels": [{"id":"branch:keep-a","title":"keep-a","kind":"branch"}], - "printElements": [{"id":"0:1:true:down","position":0,"adjacentPosition":0,"direction":"down","colorId":-1135254503,"isDotted":true,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"c"}] - }, - { - "commitHash": "c", - "lane": 0, - "laneCount": 1, - "colorId": -1135254503, - "layoutIndex": 1, - "incomingLaneColors": [-1135254503], - "parentEdges": [], - "labels": [{"id":"branch:keep-c","title":"keep-c","kind":"branch"}], - "printElements": [{"id":"0:1:true:up","position":0,"adjacentPosition":0,"direction":"up","colorId":-1135254503,"isDotted":true,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"a"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "singleCommit", - "description": "A lone commit is one node in one lane with no routes.", - "request": {"commits":[{"hash":"tip"}]}, - "response": { - "version": 1, - "rows": [{"commitHash":"tip","lane":0,"laneCount":1,"colorId":0,"layoutIndex":1,"incomingLaneColors":[0],"parentEdges":[],"labels":[],"printElements":[]}], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "headAndRoot", - "description": "The checked-out commit and its root share one lane and one color.", - "request": {"commits":[{"hash":"head","parentHashes":["root"],"decorations":"HEAD -> main"},{"hash":"root"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "head", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"0:1:false","parentHash":"root","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [{"id":"head:HEAD","title":"HEAD","kind":"head"},{"id":"branch:main","title":"main","kind":"branch"}], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}] - }, - { - "commitHash": "root", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [], - "labels": [], - "printElements": [{"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"head"}] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "decoratedTip", - "description": "HEAD, local, remote, and tag decorations on one commit become four typed labels.", - "request": {"commits":[{"hash":"tip","decorations":"HEAD -> master, origin/master, tag: v1.0.0"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "tip", - "lane": 0, - "laneCount": 1, - "colorId": 468329835, - "layoutIndex": 1, - "incomingLaneColors": [468329835], - "parentEdges": [], - "labels": [ - {"id":"head:HEAD","title":"HEAD","kind":"head"}, - {"id":"branch:master","title":"master","kind":"branch"}, - {"id":"remote:origin/master","title":"origin/master","kind":"remote"}, - {"id":"tag:v1.0.0","title":"v1.0.0","kind":"tag"} - ], - "printElements": [] - } - ], - "laneCount": 1, - "recommendedLaneCount": 1, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "namedMergeEndpoint", - "description": "Two named lanes meet at the merge base and keep separate colors up to the node.", - "request": {"commits":[{"hash":"merge","parentHashes":["main","side"],"decorations":"HEAD -> main"},{"hash":"main","parentHashes":["root"]},{"hash":"side","parentHashes":["root"],"decorations":"feature"},{"hash":"root"}]}, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "merge", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"0:1:false","parentHash":"main","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false},{"id":"0:2:false","parentHash":"side","targetLane":1,"colorId":2,"isMissing":false,"isDotted":false}], - "labels": [{"id":"head:HEAD","title":"HEAD","kind":"head"},{"id":"branch:main","title":"main","kind":"branch"}], - "printElements": [ - {"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"main"}, - {"id":"0:2:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"side"} - ] - }, - { - "commitHash": "main", - "lane": 0, - "laneCount": 2, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801,2], - "parentEdges": [{"id":"1:3:false","parentHash":"root","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"merge"}, - {"id":"1:3:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"0:2:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"merge"}, - {"id":"0:2:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"side"} - ] - }, - { - "commitHash": "side", - "lane": 1, - "laneCount": 2, - "colorId": 2, - "layoutIndex": 2, - "incomingLaneColors": [3343801,2], - "parentEdges": [{"id":"2:3:false","parentHash":"root","targetLane":0,"colorId":2,"isMissing":false,"isDotted":false}], - "labels": [{"id":"branch:feature","title":"feature","kind":"branch"}], - "printElements": [ - {"id":"1:3:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"main"}, - {"id":"1:3:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"}, - {"id":"0:2:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"merge"}, - {"id":"2:3:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"root"} - ] - }, - { - "commitHash": "root", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [], - "labels": [], - "printElements": [ - {"id":"1:3:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"main"}, - {"id":"2:3:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"side"} - ] - } - ], - "laneCount": 2, - "recommendedLaneCount": 2, - "hasMissingParents": false, - "currentBranchHashes": [] - } - }, - { - "name": "wideMerge", - "description": "An eight-parent merge widens its own rows while rows outside the cluster stay narrow.", - "request": { - "commits": [ - {"hash":"0","parentHashes":["1"],"decorations":"HEAD -> main"}, - {"hash":"1","parentHashes":["2"]}, - {"hash":"2","parentHashes":["3"]}, - {"hash":"3","parentHashes":["4"]}, - {"hash":"4","parentHashes":["5"]}, - {"hash":"5","parentHashes":["6"]}, - {"hash":"6","parentHashes":["7"]}, - {"hash":"7","parentHashes":["8"]}, - {"hash":"8","parentHashes":["9"]}, - {"hash":"9","parentHashes":["10"]}, - {"hash":"10","parentHashes":["11"]}, - {"hash":"11","parentHashes":["12"]}, - {"hash":"12","parentHashes":["13"]}, - {"hash":"13","parentHashes":["14"]}, - {"hash":"14","parentHashes":["15"]}, - {"hash":"15","parentHashes":["16"]}, - {"hash":"16","parentHashes":["17"]}, - {"hash":"17","parentHashes":["18"]}, - {"hash":"18","parentHashes":["19"]}, - {"hash":"19","parentHashes":["20"]}, - {"hash":"20","parentHashes":["21"]}, - {"hash":"21","parentHashes":["22"]}, - {"hash":"22","parentHashes":["23"]}, - {"hash":"23","parentHashes":["24"]}, - {"hash":"24","parentHashes":["25"]}, - {"hash":"25","parentHashes":["26"]}, - {"hash":"26","parentHashes":["27"]}, - {"hash":"27","parentHashes":["28"]}, - {"hash":"28","parentHashes":["29"]}, - {"hash":"29","parentHashes":["30"]}, - {"hash":"30","parentHashes":["31","32","33","34","35","36","37","38"]}, - {"hash":"31","parentHashes":["39"]}, - {"hash":"32","parentHashes":["39"]}, - {"hash":"33","parentHashes":["39"]}, - {"hash":"34","parentHashes":["39"]}, - {"hash":"35","parentHashes":["39"]}, - {"hash":"36","parentHashes":["39"]}, - {"hash":"37","parentHashes":["39"]}, - {"hash":"38","parentHashes":["39"]}, - {"hash":"39","parentHashes":["40"]}, - {"hash":"40","parentHashes":["41"]}, - {"hash":"41","parentHashes":["42"]}, - {"hash":"42","parentHashes":["43"]}, - {"hash":"43","parentHashes":["44"]}, - {"hash":"44","parentHashes":["45"]}, - {"hash":"45","parentHashes":["46"]}, - {"hash":"46","parentHashes":["47"]}, - {"hash":"47","parentHashes":["48"]}, - {"hash":"48","parentHashes":["49"]}, - {"hash":"49","parentHashes":["50"]}, - {"hash":"50","parentHashes":["51"]}, - {"hash":"51","parentHashes":["52"]}, - {"hash":"52","parentHashes":["53"]}, - {"hash":"53","parentHashes":["54"]}, - {"hash":"54","parentHashes":["55"]}, - {"hash":"55","parentHashes":["56"]}, - {"hash":"56","parentHashes":["57"]}, - {"hash":"57","parentHashes":["58"]}, - {"hash":"58","parentHashes":["59"]}, - {"hash":"59"} - ] - }, - "response": { - "version": 1, - "rows": [ - { - "commitHash": "0", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"0:1:false","parentHash":"1","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [{"id":"head:HEAD","title":"HEAD","kind":"head"},{"id":"branch:main","title":"main","kind":"branch"}], - "printElements": [{"id":"0:1:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"1"}] - }, - { - "commitHash": "1", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"1:2:false","parentHash":"2","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"0:1:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"0"}, - {"id":"1:2:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"2"} - ] - }, - { - "commitHash": "2", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"2:3:false","parentHash":"3","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"1:2:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"1"}, - {"id":"2:3:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"} - ] - }, - { - "commitHash": "3", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"3:4:false","parentHash":"4","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"2:3:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"2"}, - {"id":"3:4:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"4"} - ] - }, - { - "commitHash": "4", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"4:5:false","parentHash":"5","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"3:4:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"3"}, - {"id":"4:5:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"} - ] - }, - { - "commitHash": "5", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"5:6:false","parentHash":"6","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"4:5:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"4"}, - {"id":"5:6:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"6"} - ] - }, - { - "commitHash": "6", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"6:7:false","parentHash":"7","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"5:6:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"5"}, - {"id":"6:7:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"7"} - ] - }, - { - "commitHash": "7", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"7:8:false","parentHash":"8","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"6:7:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"6"}, - {"id":"7:8:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"8"} - ] - }, - { - "commitHash": "8", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"8:9:false","parentHash":"9","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"7:8:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"7"}, - {"id":"8:9:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"9"} - ] - }, - { - "commitHash": "9", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"9:10:false","parentHash":"10","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"8:9:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"8"}, - {"id":"9:10:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"10"} - ] - }, - { - "commitHash": "10", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"10:11:false","parentHash":"11","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"9:10:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"9"}, - {"id":"10:11:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"11"} - ] - }, - { - "commitHash": "11", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"11:12:false","parentHash":"12","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"10:11:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"10"}, - {"id":"11:12:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"12"} - ] - }, - { - "commitHash": "12", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"12:13:false","parentHash":"13","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"11:12:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"11"}, - {"id":"12:13:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"13"} - ] - }, - { - "commitHash": "13", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"13:14:false","parentHash":"14","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"12:13:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"12"}, - {"id":"13:14:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"14"} - ] - }, - { - "commitHash": "14", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"14:15:false","parentHash":"15","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"13:14:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"13"}, - {"id":"14:15:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"15"} - ] - }, - { - "commitHash": "15", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"15:16:false","parentHash":"16","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"14:15:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"14"}, - {"id":"15:16:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"16"} - ] - }, - { - "commitHash": "16", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"16:17:false","parentHash":"17","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"15:16:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"15"}, - {"id":"16:17:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"17"} - ] - }, - { - "commitHash": "17", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"17:18:false","parentHash":"18","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"16:17:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"16"}, - {"id":"17:18:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"18"} - ] - }, - { - "commitHash": "18", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"18:19:false","parentHash":"19","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"17:18:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"17"}, - {"id":"18:19:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"19"} - ] - }, - { - "commitHash": "19", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"19:20:false","parentHash":"20","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"18:19:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"18"}, - {"id":"19:20:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"20"} - ] - }, - { - "commitHash": "20", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"20:21:false","parentHash":"21","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"19:20:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"19"}, - {"id":"20:21:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"21"} - ] - }, - { - "commitHash": "21", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"21:22:false","parentHash":"22","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"20:21:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"20"}, - {"id":"21:22:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"22"} - ] - }, - { - "commitHash": "22", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"22:23:false","parentHash":"23","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"21:22:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"21"}, - {"id":"22:23:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"23"} - ] - }, - { - "commitHash": "23", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"23:24:false","parentHash":"24","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"22:23:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"22"}, - {"id":"23:24:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"24"} - ] - }, - { - "commitHash": "24", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"24:25:false","parentHash":"25","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"23:24:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"23"}, - {"id":"24:25:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"25"} - ] - }, - { - "commitHash": "25", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"25:26:false","parentHash":"26","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"24:25:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"24"}, - {"id":"25:26:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"26"} - ] - }, - { - "commitHash": "26", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"26:27:false","parentHash":"27","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"25:26:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"25"}, - {"id":"26:27:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"27"} - ] - }, - { - "commitHash": "27", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"27:28:false","parentHash":"28","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"26:27:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"26"}, - {"id":"27:28:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"28"} - ] - }, - { - "commitHash": "28", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"28:29:false","parentHash":"29","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"27:28:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"27"}, - {"id":"28:29:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"29"} - ] - }, - { - "commitHash": "29", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"29:30:false","parentHash":"30","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"28:29:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"28"}, - {"id":"29:30:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"} - ] - }, - { - "commitHash": "30", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [ - {"id":"30:31:false","parentHash":"31","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}, - {"id":"30:32:false","parentHash":"32","targetLane":1,"colorId":2,"isMissing":false,"isDotted":false}, - {"id":"30:33:false","parentHash":"33","targetLane":2,"colorId":3,"isMissing":false,"isDotted":false}, - {"id":"30:34:false","parentHash":"34","targetLane":3,"colorId":4,"isMissing":false,"isDotted":false}, - {"id":"30:35:false","parentHash":"35","targetLane":4,"colorId":5,"isMissing":false,"isDotted":false}, - {"id":"30:36:false","parentHash":"36","targetLane":5,"colorId":6,"isMissing":false,"isDotted":false}, - {"id":"30:37:false","parentHash":"37","targetLane":6,"colorId":7,"isMissing":false,"isDotted":false}, - {"id":"30:38:false","parentHash":"38","targetLane":7,"colorId":8,"isMissing":false,"isDotted":false} - ], - "labels": [], - "printElements": [ - {"id":"29:30:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"29"}, - {"id":"30:31:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"}, - {"id":"30:32:false:down","position":0,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"}, - {"id":"30:33:false:down","position":0,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"}, - {"id":"30:34:false:down","position":0,"adjacentPosition":3,"direction":"down","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"}, - {"id":"30:35:false:down","position":0,"adjacentPosition":4,"direction":"down","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"}, - {"id":"30:36:false:down","position":0,"adjacentPosition":5,"direction":"down","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"}, - {"id":"30:37:false:down","position":0,"adjacentPosition":6,"direction":"down","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"}, - {"id":"30:38:false:down","position":0,"adjacentPosition":7,"direction":"down","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - }, - { - "commitHash": "31", - "lane": 0, - "laneCount": 8, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801,2,3,4,5,6,7,8], - "parentEdges": [{"id":"31:39:false","parentHash":"39","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"30:31:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"31:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:32:false:up","position":1,"adjacentPosition":0,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:32:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"}, - {"id":"30:33:false:up","position":2,"adjacentPosition":0,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:33:false:down","position":2,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"}, - {"id":"30:34:false:up","position":3,"adjacentPosition":0,"direction":"up","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:34:false:down","position":3,"adjacentPosition":3,"direction":"down","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"}, - {"id":"30:35:false:up","position":4,"adjacentPosition":0,"direction":"up","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:35:false:down","position":4,"adjacentPosition":4,"direction":"down","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"}, - {"id":"30:36:false:up","position":5,"adjacentPosition":0,"direction":"up","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:36:false:down","position":5,"adjacentPosition":5,"direction":"down","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"}, - {"id":"30:37:false:up","position":6,"adjacentPosition":0,"direction":"up","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:37:false:down","position":6,"adjacentPosition":6,"direction":"down","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"}, - {"id":"30:38:false:up","position":7,"adjacentPosition":0,"direction":"up","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:38:false:down","position":7,"adjacentPosition":7,"direction":"down","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - }, - { - "commitHash": "32", - "lane": 1, - "laneCount": 8, - "colorId": 2, - "layoutIndex": 2, - "incomingLaneColors": [3343801,2,3,4,5,6,7,8], - "parentEdges": [{"id":"32:39:false","parentHash":"39","targetLane":1,"colorId":2,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"31:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"}, - {"id":"31:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:32:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"32:39:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:33:false:up","position":2,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:33:false:down","position":2,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"}, - {"id":"30:34:false:up","position":3,"adjacentPosition":3,"direction":"up","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:34:false:down","position":3,"adjacentPosition":3,"direction":"down","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"}, - {"id":"30:35:false:up","position":4,"adjacentPosition":4,"direction":"up","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:35:false:down","position":4,"adjacentPosition":4,"direction":"down","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"}, - {"id":"30:36:false:up","position":5,"adjacentPosition":5,"direction":"up","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:36:false:down","position":5,"adjacentPosition":5,"direction":"down","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"}, - {"id":"30:37:false:up","position":6,"adjacentPosition":6,"direction":"up","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:37:false:down","position":6,"adjacentPosition":6,"direction":"down","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"}, - {"id":"30:38:false:up","position":7,"adjacentPosition":7,"direction":"up","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:38:false:down","position":7,"adjacentPosition":7,"direction":"down","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - }, - { - "commitHash": "33", - "lane": 2, - "laneCount": 8, - "colorId": 3, - "layoutIndex": 3, - "incomingLaneColors": [3343801,2,3,4,5,6,7,8], - "parentEdges": [{"id":"33:39:false","parentHash":"39","targetLane":2,"colorId":3,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"31:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"}, - {"id":"31:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"32:39:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"}, - {"id":"32:39:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:33:false:up","position":2,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"33:39:false:down","position":2,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:34:false:up","position":3,"adjacentPosition":3,"direction":"up","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:34:false:down","position":3,"adjacentPosition":3,"direction":"down","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"}, - {"id":"30:35:false:up","position":4,"adjacentPosition":4,"direction":"up","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:35:false:down","position":4,"adjacentPosition":4,"direction":"down","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"}, - {"id":"30:36:false:up","position":5,"adjacentPosition":5,"direction":"up","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:36:false:down","position":5,"adjacentPosition":5,"direction":"down","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"}, - {"id":"30:37:false:up","position":6,"adjacentPosition":6,"direction":"up","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:37:false:down","position":6,"adjacentPosition":6,"direction":"down","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"}, - {"id":"30:38:false:up","position":7,"adjacentPosition":7,"direction":"up","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:38:false:down","position":7,"adjacentPosition":7,"direction":"down","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - }, - { - "commitHash": "34", - "lane": 3, - "laneCount": 8, - "colorId": 4, - "layoutIndex": 4, - "incomingLaneColors": [3343801,2,3,4,5,6,7,8], - "parentEdges": [{"id":"34:39:false","parentHash":"39","targetLane":3,"colorId":4,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"31:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"}, - {"id":"31:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"32:39:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"}, - {"id":"32:39:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"33:39:false:up","position":2,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"}, - {"id":"33:39:false:down","position":2,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:34:false:up","position":3,"adjacentPosition":3,"direction":"up","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"34:39:false:down","position":3,"adjacentPosition":3,"direction":"down","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:35:false:up","position":4,"adjacentPosition":4,"direction":"up","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:35:false:down","position":4,"adjacentPosition":4,"direction":"down","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"}, - {"id":"30:36:false:up","position":5,"adjacentPosition":5,"direction":"up","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:36:false:down","position":5,"adjacentPosition":5,"direction":"down","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"}, - {"id":"30:37:false:up","position":6,"adjacentPosition":6,"direction":"up","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:37:false:down","position":6,"adjacentPosition":6,"direction":"down","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"}, - {"id":"30:38:false:up","position":7,"adjacentPosition":7,"direction":"up","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:38:false:down","position":7,"adjacentPosition":7,"direction":"down","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - }, - { - "commitHash": "35", - "lane": 4, - "laneCount": 8, - "colorId": 5, - "layoutIndex": 5, - "incomingLaneColors": [3343801,2,3,4,5,6,7,8], - "parentEdges": [{"id":"35:39:false","parentHash":"39","targetLane":4,"colorId":5,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"31:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"}, - {"id":"31:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"32:39:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"}, - {"id":"32:39:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"33:39:false:up","position":2,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"}, - {"id":"33:39:false:down","position":2,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"34:39:false:up","position":3,"adjacentPosition":3,"direction":"up","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"}, - {"id":"34:39:false:down","position":3,"adjacentPosition":3,"direction":"down","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:35:false:up","position":4,"adjacentPosition":4,"direction":"up","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"35:39:false:down","position":4,"adjacentPosition":4,"direction":"down","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:36:false:up","position":5,"adjacentPosition":5,"direction":"up","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:36:false:down","position":5,"adjacentPosition":5,"direction":"down","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"}, - {"id":"30:37:false:up","position":6,"adjacentPosition":6,"direction":"up","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:37:false:down","position":6,"adjacentPosition":6,"direction":"down","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"}, - {"id":"30:38:false:up","position":7,"adjacentPosition":7,"direction":"up","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:38:false:down","position":7,"adjacentPosition":7,"direction":"down","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - }, - { - "commitHash": "36", - "lane": 5, - "laneCount": 8, - "colorId": 6, - "layoutIndex": 6, - "incomingLaneColors": [3343801,2,3,4,5,6,7,8], - "parentEdges": [{"id":"36:39:false","parentHash":"39","targetLane":5,"colorId":6,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"31:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"}, - {"id":"31:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"32:39:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"}, - {"id":"32:39:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"33:39:false:up","position":2,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"}, - {"id":"33:39:false:down","position":2,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"34:39:false:up","position":3,"adjacentPosition":3,"direction":"up","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"}, - {"id":"34:39:false:down","position":3,"adjacentPosition":3,"direction":"down","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"35:39:false:up","position":4,"adjacentPosition":4,"direction":"up","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"}, - {"id":"35:39:false:down","position":4,"adjacentPosition":4,"direction":"down","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:36:false:up","position":5,"adjacentPosition":5,"direction":"up","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"36:39:false:down","position":5,"adjacentPosition":5,"direction":"down","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:37:false:up","position":6,"adjacentPosition":6,"direction":"up","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:37:false:down","position":6,"adjacentPosition":6,"direction":"down","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"}, - {"id":"30:38:false:up","position":7,"adjacentPosition":7,"direction":"up","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:38:false:down","position":7,"adjacentPosition":7,"direction":"down","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - }, - { - "commitHash": "37", - "lane": 6, - "laneCount": 8, - "colorId": 7, - "layoutIndex": 7, - "incomingLaneColors": [3343801,2,3,4,5,6,7,8], - "parentEdges": [{"id":"37:39:false","parentHash":"39","targetLane":6,"colorId":7,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"31:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"}, - {"id":"31:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"32:39:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"}, - {"id":"32:39:false:down","position":1,"adjacentPosition":1,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"33:39:false:up","position":2,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"}, - {"id":"33:39:false:down","position":2,"adjacentPosition":2,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"34:39:false:up","position":3,"adjacentPosition":3,"direction":"up","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"}, - {"id":"34:39:false:down","position":3,"adjacentPosition":3,"direction":"down","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"35:39:false:up","position":4,"adjacentPosition":4,"direction":"up","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"}, - {"id":"35:39:false:down","position":4,"adjacentPosition":4,"direction":"down","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"36:39:false:up","position":5,"adjacentPosition":5,"direction":"up","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"}, - {"id":"36:39:false:down","position":5,"adjacentPosition":5,"direction":"down","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:37:false:up","position":6,"adjacentPosition":6,"direction":"up","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"37:39:false:down","position":6,"adjacentPosition":6,"direction":"down","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:38:false:up","position":7,"adjacentPosition":7,"direction":"up","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"30:38:false:down","position":7,"adjacentPosition":7,"direction":"down","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"} - ] - }, - { - "commitHash": "38", - "lane": 7, - "laneCount": 8, - "colorId": 8, - "layoutIndex": 8, - "incomingLaneColors": [3343801,2,3,4,5,6,7,8], - "parentEdges": [{"id":"38:39:false","parentHash":"39","targetLane":0,"colorId":8,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"31:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"}, - {"id":"31:39:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"32:39:false:up","position":1,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"}, - {"id":"32:39:false:down","position":1,"adjacentPosition":0,"direction":"down","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"33:39:false:up","position":2,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"}, - {"id":"33:39:false:down","position":2,"adjacentPosition":0,"direction":"down","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"34:39:false:up","position":3,"adjacentPosition":3,"direction":"up","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"}, - {"id":"34:39:false:down","position":3,"adjacentPosition":0,"direction":"down","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"35:39:false:up","position":4,"adjacentPosition":4,"direction":"up","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"}, - {"id":"35:39:false:down","position":4,"adjacentPosition":0,"direction":"down","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"36:39:false:up","position":5,"adjacentPosition":5,"direction":"up","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"}, - {"id":"36:39:false:down","position":5,"adjacentPosition":0,"direction":"down","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"37:39:false:up","position":6,"adjacentPosition":6,"direction":"up","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"}, - {"id":"37:39:false:down","position":6,"adjacentPosition":0,"direction":"down","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"30:38:false:up","position":7,"adjacentPosition":7,"direction":"up","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"30"}, - {"id":"38:39:false:down","position":7,"adjacentPosition":0,"direction":"down","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"} - ] - }, - { - "commitHash": "39", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"39:40:false","parentHash":"40","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"31:39:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"31"}, - {"id":"32:39:false:up","position":0,"adjacentPosition":1,"direction":"up","colorId":2,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"32"}, - {"id":"33:39:false:up","position":0,"adjacentPosition":2,"direction":"up","colorId":3,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"33"}, - {"id":"34:39:false:up","position":0,"adjacentPosition":3,"direction":"up","colorId":4,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"34"}, - {"id":"35:39:false:up","position":0,"adjacentPosition":4,"direction":"up","colorId":5,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"35"}, - {"id":"36:39:false:up","position":0,"adjacentPosition":5,"direction":"up","colorId":6,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"36"}, - {"id":"37:39:false:up","position":0,"adjacentPosition":6,"direction":"up","colorId":7,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"37"}, - {"id":"38:39:false:up","position":0,"adjacentPosition":7,"direction":"up","colorId":8,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"38"}, - {"id":"39:40:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"40"} - ] - }, - { - "commitHash": "40", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"40:41:false","parentHash":"41","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"39:40:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"39"}, - {"id":"40:41:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"41"} - ] - }, - { - "commitHash": "41", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"41:42:false","parentHash":"42","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"40:41:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"40"}, - {"id":"41:42:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"42"} - ] - }, - { - "commitHash": "42", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"42:43:false","parentHash":"43","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"41:42:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"41"}, - {"id":"42:43:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"43"} - ] - }, - { - "commitHash": "43", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"43:44:false","parentHash":"44","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"42:43:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"42"}, - {"id":"43:44:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"44"} - ] - }, - { - "commitHash": "44", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"44:45:false","parentHash":"45","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"43:44:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"43"}, - {"id":"44:45:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"45"} - ] - }, - { - "commitHash": "45", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"45:46:false","parentHash":"46","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"44:45:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"44"}, - {"id":"45:46:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"46"} - ] - }, - { - "commitHash": "46", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"46:47:false","parentHash":"47","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"45:46:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"45"}, - {"id":"46:47:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"47"} - ] - }, - { - "commitHash": "47", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"47:48:false","parentHash":"48","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"46:47:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"46"}, - {"id":"47:48:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"48"} - ] - }, - { - "commitHash": "48", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"48:49:false","parentHash":"49","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"47:48:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"47"}, - {"id":"48:49:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"49"} - ] - }, - { - "commitHash": "49", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"49:50:false","parentHash":"50","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"48:49:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"48"}, - {"id":"49:50:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"50"} - ] - }, - { - "commitHash": "50", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"50:51:false","parentHash":"51","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"49:50:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"49"}, - {"id":"50:51:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"51"} - ] - }, - { - "commitHash": "51", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"51:52:false","parentHash":"52","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"50:51:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"50"}, - {"id":"51:52:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"52"} - ] - }, - { - "commitHash": "52", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"52:53:false","parentHash":"53","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"51:52:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"51"}, - {"id":"52:53:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"53"} - ] - }, - { - "commitHash": "53", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"53:54:false","parentHash":"54","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"52:53:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"52"}, - {"id":"53:54:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"54"} - ] - }, - { - "commitHash": "54", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"54:55:false","parentHash":"55","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"53:54:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"53"}, - {"id":"54:55:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"55"} - ] - }, - { - "commitHash": "55", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"55:56:false","parentHash":"56","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"54:55:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"54"}, - {"id":"55:56:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"56"} - ] - }, - { - "commitHash": "56", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"56:57:false","parentHash":"57","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"55:56:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"55"}, - {"id":"56:57:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"57"} - ] - }, - { - "commitHash": "57", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"57:58:false","parentHash":"58","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"56:57:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"56"}, - {"id":"57:58:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"58"} - ] - }, - { - "commitHash": "58", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [{"id":"58:59:false","parentHash":"59","targetLane":0,"colorId":3343801,"isMissing":false,"isDotted":false}], - "labels": [], - "printElements": [ - {"id":"57:58:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"57"}, - {"id":"58:59:false:down","position":0,"adjacentPosition":0,"direction":"down","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"59"} - ] - }, - { - "commitHash": "59", - "lane": 0, - "laneCount": 1, - "colorId": 3343801, - "layoutIndex": 1, - "incomingLaneColors": [3343801], - "parentEdges": [], - "labels": [], - "printElements": [{"id":"58:59:false:up","position":0,"adjacentPosition":0,"direction":"up","colorId":3343801,"isDotted":false,"isMissing":false,"hasArrow":false,"isTerminal":false,"targetHash":"58"}] - } - ], - "laneCount": 8, - "recommendedLaneCount": 4, - "hasMissingParents": false, - "currentBranchHashes": [] - } - } - ], - "stability": [{"name":"namedBranchKeepsColorAcrossPagesAndRefresh","branch":"main","expectedColorId":3343801,"steps":[{"case":"pageOne","hash":"m3"},{"case":"pageTwo","hash":"m3"},{"case":"windowAfterRefresh","hash":"m4"}]}], - "invalid": [ - {"name":"missingCommits","request":{}}, - {"name":"unknownField","request":{"commits":[],"extra":true}}, - {"name":"commitWithoutHash","request":{"commits":[{"parentHashes":[]}]}}, - {"name":"badDisplayMode","request":{"commits":[],"displayMode":"wide"}} - ] -} diff --git a/shared/fixtures/git/graph.json b/shared/fixtures/git/graph.json deleted file mode 100644 index 5e5b240662..0000000000 --- a/shared/fixtures/git/graph.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "merge-graph", - "commits": [ - { - "hash": "merge", - "parents": ["feature", "root"], - "subject": "Merge feature", - "decorations": "HEAD -> main" - }, - { - "hash": "feature", - "parents": ["root"], - "subject": "Add feature", - "decorations": "feature/orders" - }, - { - "hash": "root", - "parents": [], - "subject": "Initial commit", - "decorations": "" - } - ], - "expected": { - "rowCount": 3, - "mergeRow": 0, - "mergeParentCount": 2, - "hasMissingParents": false, - "headLabel": "HEAD" - } -} diff --git a/shared/fixtures/git/history-action-capabilities-v1.json b/shared/fixtures/git/history-action-capabilities-v1.json deleted file mode 100644 index 3caab0f1b8..0000000000 --- a/shared/fixtures/git/history-action-capabilities-v1.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "version": 1, - "request": { - "root": ".", - "revisions": ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"] - }, - "headResponse": { - "head": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "canCherryPick": false, - "canUndo": true, - "canSquash": false - }, - "otherResponse": { - "head": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "canCherryPick": true, - "canUndo": false, - "canSquash": false - } -} diff --git a/shared/fixtures/git/history-date-query-v1.json b/shared/fixtures/git/history-date-query-v1.json deleted file mode 100644 index 50ccaa74ac..0000000000 --- a/shared/fixtures/git/history-date-query-v1.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "version": 1, - "request": { - "entries": [ - {"id":"east", "date":"2026/09/10 00:30", "utcOffsetMinutes":480}, - {"id":"west", "date":"2026/09/09 09:30", "utcOffsetMinutes":-420}, - {"id":"tooEarly", "date":"2026/09/09 16:29", "utcOffsetMinutes":0}, - {"id":"exclusiveEnd", "date":"2026/09/09 16:31", "utcOffsetMinutes":0}, - {"id":"invalid", "date":"2026/02/30 12:00", "utcOffsetMinutes":0}, - {"id":"legacy", "date":"2026/09/10 00:30", "fallbackUnixSeconds":1788971400} - ], - "afterUnixSeconds": 1788971400, - "beforeUnixSeconds": 1788971460 - }, - "response": {"matchingIds":["east", "west", "legacy"]} -} diff --git a/shared/fixtures/git/history-locate-v1.json b/shared/fixtures/git/history-locate-v1.json deleted file mode 100644 index 2e2b6c69f9..0000000000 --- a/shared/fixtures/git/history-locate-v1.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "protocolVersion": 1, - "request": { - "root": ".", - "reference": "refs/heads/main", - "order": "topo", - "target": "0123456789abcdef0123456789abcdef01234567", - "cursor": "git-history-cursor-fixture", - "limit": 100, - "maxPages": 20 - }, - "minimalRequest": { - "root": ".", - "target": "0123456789abcdef0123456789abcdef01234567" - }, - "responses": { - "found": { - "found": true, - "commits": [ - { - "hash": "0123456789abcdef0123456789abcdef01234567", - "shortHash": "0123456", - "parentHashes": [], - "authorName": "Lithe Test", - "authorEmail": "test@example.invalid", - "date": "2026/08/30 12:00", - "dateUtcOffsetMinutes": 480, - "subject": "Located commit", - "decorations": "HEAD -> feature/recent" - } - ], - "nextCursor": "git-history-cursor-fixture", - "hasMore": true, - "pagesLoaded": 2 - }, - "exhausted": { - "found": false, - "commits": [], - "nextCursor": null, - "hasMore": false, - "pagesLoaded": 1 - }, - "budgetExhausted": { - "found": false, - "commits": [], - "nextCursor": "git-history-cursor-fixture", - "hasMore": true, - "pagesLoaded": 3 - } - } -} diff --git a/shared/fixtures/git/history-page-date-request-v1.json b/shared/fixtures/git/history-page-date-request-v1.json deleted file mode 100644 index 4bbee2e62b..0000000000 --- a/shared/fixtures/git/history-page-date-request-v1.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "root": ".", - "reference": "HEAD", - "order": "date", - "limit": 2 -} diff --git a/shared/fixtures/git/history-page-response-v1.json b/shared/fixtures/git/history-page-response-v1.json deleted file mode 100644 index 3fd5d95813..0000000000 --- a/shared/fixtures/git/history-page-response-v1.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "commits": [ - { - "hash": "0123456789abcdef0123456789abcdef01234567", - "shortHash": "0123456", - "parentHashes": [], - "authorName": "Lithe Test", - "authorEmail": "test@example.invalid", - "date": "2026/08/30 12:00", - "dateUtcOffsetMinutes": 480, - "subject": "Initial commit", - "decorations": "HEAD -> feature/recent" - } - ], - "nextCursor": "git-history-cursor-fixture", - "hasMore": true -} diff --git a/shared/fixtures/git/history-response-v1.json b/shared/fixtures/git/history-response-v1.json deleted file mode 100644 index 4efa5904a5..0000000000 --- a/shared/fixtures/git/history-response-v1.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "references": [ - { - "fullName": "refs/heads/feature/recent", - "shortName": "feature/recent", - "kind": "local", - "peelsToCommit": true, - "isCurrent": true, - "upstreamShortName": null, - "ahead": 0, - "behind": 0 - }, - { - "fullName": "refs/heads/main", - "shortName": "main", - "kind": "local", - "peelsToCommit": true, - "isCurrent": false, - "upstreamShortName": "origin/main", - "ahead": 2, - "behind": 1 - } - ], - "recentReferences": [ - { - "fullName": "refs/heads/feature/recent", - "shortName": "feature/recent", - "kind": "local", - "peelsToCommit": true, - "isCurrent": true, - "upstreamShortName": null, - "ahead": 0, - "behind": 0 - }, - { - "fullName": "refs/heads/main", - "shortName": "main", - "kind": "local", - "peelsToCommit": true, - "isCurrent": false, - "upstreamShortName": "origin/main", - "ahead": 2, - "behind": 1 - } - ], - "commits": [ - { - "hash": "0123456789abcdef0123456789abcdef01234567", - "shortHash": "0123456", - "parentHashes": [], - "authorName": "Lithe Test", - "authorEmail": "test@example.invalid", - "date": "2026/08/30 12:00", - "dateUtcOffsetMinutes": 480, - "subject": "Initial commit", - "decorations": "HEAD -> feature/recent" - } - ], - "hasMore": false, - "userName": "Lithe Test", - "userEmail": "test@example.invalid" -} diff --git a/shared/fixtures/git/history-rewrite-v1.json b/shared/fixtures/git/history-rewrite-v1.json deleted file mode 100644 index d3f17a92ad..0000000000 --- a/shared/fixtures/git/history-rewrite-v1.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "protocolVersion": 1, - "previewRequest": { - "operation": "editCommitMessage", - "revisions": ["2222222222222222222222222222222222222222"] - }, - "preview": { - "operation": "editCommitMessage", - "allowed": true, - "blockers": [], - "branch": "refs/heads/feature/example", - "head": "3333333333333333333333333333333333333333", - "selectedCommits": [{ - "hash": "2222222222222222222222222222222222222222", - "parents": ["1111111111111111111111111111111111111111"], - "message": "Update example\n\nKeep the complete description.\n" - }], - "affectedCommits": [{ - "hash": "2222222222222222222222222222222222222222", - "parents": ["1111111111111111111111111111111111111111"], - "message": "Update example\n\nKeep the complete description.\n" - }, { - "hash": "3333333333333333333333333333333333333333", - "parents": ["2222222222222222222222222222222222222222"], - "message": "Follow up\n" - }], - "suggestedMessage": "Update example\n\nKeep the complete description.\n", - "expectedState": { - "branch": "refs/heads/feature/example", - "head": "3333333333333333333333333333333333333333", - "stateToken": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "operation": "editCommitMessage", - "revisions": ["2222222222222222222222222222222222222222"] - } - }, - "historyRewrite": { - "operation": "editCommitMessage", - "branch": "refs/heads/feature/example", - "originalHead": "3333333333333333333333333333333333333333", - "newHead": "4444444444444444444444444444444444444444", - "recoveryReference": "refs/lithe/history-recovery/00000000000000000001-example", - "mutationApplied": true, - "outcomeKnown": true, - "worktreeRefresh": "notNeeded" - } -} diff --git a/shared/fixtures/git/history-window-v1.json b/shared/fixtures/git/history-window-v1.json deleted file mode 100644 index 5a7501e627..0000000000 --- a/shared/fixtures/git/history-window-v1.json +++ /dev/null @@ -1,280 +0,0 @@ -{ - "description": "git.historyWindow keeps a refreshed Git Log window at its loaded depth, extends it by commits that appeared at the head, and retains selection, focus, and range anchor. Hosts own commits, cursors, and pixel scroll anchors.", - "cases": [ - { - "name": "a watcher refresh keeps the loaded depth", - "request": { - "operation": "refreshPlan", - "loadedCount": 320, - "pageSize": 50, - "preserveLoaded": true - }, - "response": { - "limit": 320 - } - }, - { - "name": "a shallow window still reads a full page", - "request": { - "operation": "refreshPlan", - "loadedCount": 12, - "pageSize": 50, - "preserveLoaded": true - }, - "response": { - "limit": 50 - } - }, - { - "name": "a fresh history starts at one page", - "request": { - "operation": "refreshPlan", - "loadedCount": 320, - "pageSize": 100, - "preserveLoaded": false - }, - "response": { - "limit": 100 - } - }, - { - "name": "the refresh never exceeds the window bound", - "request": { - "operation": "refreshPlan", - "loadedCount": 9000, - "pageSize": 100, - "preserveLoaded": true - }, - "response": { - "limit": 5000 - } - }, - { - "name": "new heads extend the page by their displacement", - "request": { - "operation": "extendPlan", - "previous": [ - "c1", - "c2", - "c3", - "c4" - ], - "page": [ - "n1", - "n2", - "c1", - "c2" - ], - "canContinue": true - }, - "response": { - "extensionLimit": 2 - } - }, - { - "name": "a page that still contains the old tail is kept", - "request": { - "operation": "extendPlan", - "previous": [ - "c1", - "c2" - ], - "page": [ - "n1", - "c1", - "c2" - ], - "canContinue": true - }, - "response": { - "extensionLimit": 0 - } - }, - { - "name": "an exhausted history is not extended", - "request": { - "operation": "extendPlan", - "previous": [ - "c1", - "c2", - "c3" - ], - "page": [ - "n1", - "c1" - ], - "canContinue": false - }, - "response": { - "extensionLimit": 0 - } - }, - { - "name": "a rewritten history shares nothing and is not extended", - "request": { - "operation": "extendPlan", - "previous": [ - "c1", - "c2" - ], - "page": [ - "r1", - "r2" - ], - "canContinue": true - }, - "response": { - "extensionLimit": 0 - } - }, - { - "name": "merging skips commits already in the window", - "request": { - "operation": "mergePage", - "window": [ - "n1", - "n2", - "c1", - "c2" - ], - "page": [ - "c2", - "c3", - "c4" - ], - "pageHasMore": true - }, - "response": { - "append": [ - 1, - 2 - ], - "hasMore": true - } - }, - { - "name": "a continuation that adds nothing ends the window", - "request": { - "operation": "mergePage", - "window": [ - "c1", - "c2" - ], - "page": [ - "c2" - ], - "pageHasMore": true - }, - "response": { - "append": [], - "hasMore": false - } - }, - { - "name": "selection, focus, and anchor survive when still loaded", - "request": { - "operation": "reconcileSelection", - "window": [ - "n1", - "c1", - "c2", - "c3" - ], - "selected": [ - "c3", - "c1" - ], - "focused": "c3", - "anchor": "c1" - }, - "response": { - "selected": [ - "c1", - "c3" - ], - "focused": "c3", - "anchor": "c1" - } - }, - { - "name": "missing commits fall back to the first row", - "request": { - "operation": "reconcileSelection", - "window": [ - "r1", - "r2" - ], - "selected": [ - "c1", - "c2" - ], - "focused": "c2", - "anchor": "c1" - }, - "response": { - "selected": [ - "r1" - ], - "focused": "r1", - "anchor": "r1" - } - }, - { - "name": "a missing anchor falls back to the retained focus", - "request": { - "operation": "reconcileSelection", - "window": [ - "c1", - "c2" - ], - "selected": [ - "c2", - "gone" - ], - "focused": "c2", - "anchor": "gone" - }, - "response": { - "selected": [ - "c2" - ], - "focused": "c2", - "anchor": "c2" - } - }, - { - "name": "an empty window clears the selection", - "request": { - "operation": "reconcileSelection", - "window": [], - "selected": [ - "c1" - ], - "focused": "c1", - "anchor": "c1" - }, - "response": { - "selected": [], - "focused": null, - "anchor": null - } - } - ], - "invalid": [ - { - "name": "zero page size", - "request": { - "operation": "refreshPlan", - "loadedCount": 0, - "pageSize": 0, - "preserveLoaded": false - } - }, - { - "name": "unknown operation", - "request": { - "operation": "scroll" - } - } - ] -} diff --git a/shared/fixtures/git/local-changelist-scope-v1.json b/shared/fixtures/git/local-changelist-scope-v1.json deleted file mode 100644 index 70aeb47307..0000000000 --- a/shared/fixtures/git/local-changelist-scope-v1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "defaultScope": { "include": false, "paths": { "A": ["application.yaml"] } }, - "customScope": { "include": true, "paths": { "A": ["application.yaml"] } }, - "cases": [ - { "scope": "defaultScope", "stagedPaths": ["feature.ts"], "allowed": true }, - { "scope": "defaultScope", "stagedPaths": ["feature.ts", "application.yaml"], "allowed": false }, - { "scope": "customScope", "stagedPaths": ["application.yaml"], "allowed": true }, - { "scope": "customScope", "stagedPaths": ["application.yaml", "feature.ts"], "allowed": false } - ] -} diff --git a/shared/fixtures/git/metadata-classification-v1.json b/shared/fixtures/git/metadata-classification-v1.json deleted file mode 100644 index 3a3ff5b083..0000000000 --- a/shared/fixtures/git/metadata-classification-v1.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "contexts": { - "main": { - "workspaceRoot": "workspace/main", - "repositoryRoot": "workspace/main", - "gitDirectory": "workspace/main/.git", - "gitCommonDirectory": "workspace/main/.git", - "ruleDirectories": [] - }, - "linked": { - "workspaceRoot": "workspace/linked/src", - "repositoryRoot": "workspace/linked", - "gitDirectory": "workspace/main/.git/worktrees/linked", - "gitCommonDirectory": "workspace/main/.git", - "ruleDirectories": ["workspace/linked"] - } - }, - "cases": [ - {"name":"main index", "context":"main", "path":"workspace/main/.git/index", "kind":"metadata", "indexOnly":true}, - {"name":"index lock", "context":"main", "path":"workspace/main/.git/index.lock", "kind":"metadata", "indexOnly":true}, - {"name":"index descendant is not index-only", "context":"main", "path":"workspace/main/.git/index/nested", "kind":"metadata", "indexOnly":false}, - {"name":"main head", "context":"main", "path":"workspace/main/.git/HEAD", "kind":"metadata", "indexOnly":false}, - {"name":"object store", "context":"main", "path":"workspace/main/.git/objects/ab/abcdef", "kind":"ignored", "indexOnly":false}, - {"name":"lfs store", "context":"main", "path":"workspace/main/.git/lfs/objects/a", "kind":"ignored", "indexOnly":false}, - {"name":"submodule head updates parent status", "context":"main", "path":"workspace/main/.git/modules/child/HEAD", "kind":"metadata", "indexOnly":false}, - {"name":"shared submodule head updates linked status", "context":"linked", "path":"workspace/main/.git/modules/child/HEAD", "kind":"metadata", "indexOnly":false}, - {"name":"temporary commit context", "context":"main", "path":"workspace/main/.git/lithe-commit-4242-7/index", "kind":"ignored", "indexOnly":false}, - {"name":"other worktree index", "context":"main", "path":"workspace/main/.git/worktrees/other/index.lock", "kind":"ignored", "indexOnly":false}, - {"name":"other worktree logs", "context":"main", "path":"workspace/main/.git/worktrees/other/logs/HEAD", "kind":"ignored", "indexOnly":false}, - {"name":"other worktree head", "context":"main", "path":"workspace/main/.git/worktrees/other/HEAD", "kind":"metadata", "indexOnly":false}, - {"name":"other worktree lock", "context":"linked", "path":"workspace/main/.git/worktrees/other/locked", "kind":"metadata", "indexOnly":false}, - {"name":"linked own index", "context":"linked", "path":"workspace/main/.git/worktrees/linked/index", "kind":"metadata", "indexOnly":true}, - {"name":"main index is not linked index", "context":"linked", "path":"workspace/main/.git/index", "kind":"ignored", "indexOnly":false}, - {"name":"shared reference", "context":"linked", "path":"workspace/main/.git/refs/heads/main", "kind":"metadata", "indexOnly":false}, - {"name":"repository git pointer", "context":"linked", "path":"workspace/linked/.git", "kind":"context", "indexOnly":false}, - {"name":"workspace git pointer", "context":"linked", "path":"workspace/linked/src/.git", "kind":"context", "indexOnly":false}, - {"name":"root ignore rules", "context":"linked", "path":"workspace/linked/.gitignore", "kind":"ignoreRule", "indexOnly":false}, - {"name":"nested ignore rules", "context":"linked", "path":"workspace/linked/src/nested/.gitignore", "kind":"ignoreRule", "indexOnly":false}, - {"name":"ordinary source", "context":"linked", "path":"workspace/linked/src/Main.java", "kind":"other", "indexOnly":false}, - {"name":"prefix is not containment", "context":"main", "path":"workspace/main/.git-other/index", "kind":"other", "indexOnly":false} - ] -} diff --git a/shared/fixtures/git/parsed-diff-v1.json b/shared/fixtures/git/parsed-diff-v1.json deleted file mode 100644 index efb321c6b2..0000000000 --- a/shared/fixtures/git/parsed-diff-v1.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "version": 1, - "parseRequest": {"root":".", "patch":""}, - "sectionRequest": {"pathspecs":["."], "staged":true, "includeFileSections":true}, - "expectedTextLines": [ - {"lineType":"header", "content":"@@ -1,2 +1,2 @@", "oldLine":null, "newLine":null}, - {"lineType":"removed", "content":"first", "oldLine":1, "newLine":null}, - {"lineType":"removed", "content":"base", "oldLine":2, "newLine":null}, - {"lineType":"added", "content":"first", "oldLine":null, "newLine":1}, - {"lineType":"added", "content":"changed", "oldLine":null, "newLine":2} - ] -} diff --git a/shared/fixtures/git/patch-exchange-v1.json b/shared/fixtures/git/patch-exchange-v1.json deleted file mode 100644 index 812ddddf70..0000000000 --- a/shared/fixtures/git/patch-exchange-v1.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "version": 1, - "exportRequest": { - "root": ".", - "source": "workingTree", - "paths": [ - "example.txt" - ] - }, - "unstagedWithUntrackedRequest": { - "root": ".", - "source": "unstaged", - "paths": [], - "includeUntracked": true - }, - "exportResponse": { - "patch": "diff --git a/example.txt b/example.txt\nnew file mode 100644\n--- /dev/null\n+++ b/example.txt\n@@ -0,0 +1 @@\n+hello\n", - "files": [ - { - "path": "example.txt", - "originalPath": null, - "additions": 1, - "deletions": 0 - } - ], - "byteLength": 113 - }, - "previewRequest": { - "root": ".", - "patch": "diff --git a/example.txt b/example.txt\nnew file mode 100644\n--- /dev/null\n+++ b/example.txt\n@@ -0,0 +1 @@\n+hello\n", - "target": "worktree" - }, - "previewResponse": { - "applicable": true, - "files": [ - { - "path": "example.txt", - "originalPath": null, - "additions": 1, - "deletions": 0 - } - ], - "diagnostic": "", - "expectedState": "opaque-state-from-preview", - "byteLength": 113 - }, - "metadataRequest": { - "root": ".", - "source": "workingTree", - "paths": [], - "metadataOnly": true - }, - "metadataResponse": { - "patch": "", - "files": [ - { - "path": "example.txt", - "originalPath": null, - "additions": 1, - "deletions": 0 - } - ], - "byteLength": 0 - }, - "reversePreviewRequest": { - "root": ".", - "patch": "diff --git a/example.txt b/example.txt\nnew file mode 100644\n--- /dev/null\n+++ b/example.txt\n@@ -0,0 +1 @@\n+hello\n", - "target": "worktree", - "reverse": true - }, - "reverseApplyRequest": { - "root": ".", - "patch": "diff --git a/example.txt b/example.txt\nnew file mode 100644\n--- /dev/null\n+++ b/example.txt\n@@ -0,0 +1 @@\n+hello\n", - "target": "worktree", - "reverse": true, - "expectedState": "opaque-reverse-state-from-preview" - } -} diff --git a/shared/fixtures/git/push-preview-v1.json b/shared/fixtures/git/push-preview-v1.json deleted file mode 100644 index ffb0413d26..0000000000 --- a/shared/fixtures/git/push-preview-v1.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "localBranch": "feature/core", - "localHead": "2222222222222222222222222222222222222222", - "remote": "origin", - "remoteBranch": "feature/core", - "targetKind": "tracking", - "createsRemoteBranch": false, - "remoteTrackingOid": "1111111111111111111111111111111111111111", - "upstream": "origin/feature/core", - "tags": [ - { - "fullName": "refs/tags/v1.0.0", - "objectId": "3333333333333333333333333333333333333333" - } - ], - "commits": [ - { - "hash": "2222222222222222222222222222222222222222", - "shortHash": "2222222", - "parentHashes": ["1111111111111111111111111111111111111111"], - "authorName": "Lithe Developer", - "authorEmail": "developer@lithe.local", - "date": "2026/08/31 10:30", - "dateUtcOffsetMinutes": -300, - "subject": "Add push preview", - "decorations": "HEAD -> feature/core" - } - ], - "hasMore": false -} diff --git a/shared/fixtures/git/rebase-plan-preview-v1.json b/shared/fixtures/git/rebase-plan-preview-v1.json deleted file mode 100644 index 5467148831..0000000000 --- a/shared/fixtures/git/rebase-plan-preview-v1.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "description": "git.rebasePlanPreview validates an interactive rebase draft and derives the messages git.rebaseStart will use. A step message is the user's explicit override; without one a reword keeps the original message and a squash uses the default combined message.", - "commits": [ - { "hash": "2222222222222222222222222222222222222222", "message": "First change\n\nFull body\n" }, - { "hash": "3333333333333333333333333333333333333333", "message": "Second change\n" }, - { "hash": "4444444444444444444444444444444444444444", "message": "Third change\n" } - ], - "cases": [ - { - "name": "default squash trims the preceding message's trailing newlines", - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "edit" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick" } - ], - "response": { - "issue": null, - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "edit", "message": "First change\n\nFull body\n" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash", "message": "First change\n\nFull body\n\nSecond change\n" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick", "message": "Third change\n" } - ], - "startSteps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "edit" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick" } - ], - "outputCommitCount": 2 - } - }, - { - "name": "reword without an override submits the original message and a squash override is kept", - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "reword" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash", "message": "Reviewed title\n\nCombined body\n" }, - { "hash": "4444444444444444444444444444444444444444", "action": "fixup" } - ], - "response": { - "issue": null, - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "reword", "message": "First change\n\nFull body\n" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash", "message": "Reviewed title\n\nCombined body\n" }, - { "hash": "4444444444444444444444444444444444444444", "action": "fixup", "message": "Third change\n" } - ], - "startSteps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "reword", "message": "First change\n\nFull body\n" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash", "message": "Reviewed title\n\nCombined body\n" }, - { "hash": "4444444444444444444444444444444444444444", "action": "fixup" } - ], - "outputCommitCount": 1 - } - }, - { - "name": "squash after only dropped commits has no preceding commit", - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "drop" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick" } - ], - "response": { - "issue": { "code": "missingPrecedingCommit", "hash": "3333333333333333333333333333333333333333" }, - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "drop", "message": "First change\n\nFull body\n" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash", "message": "Second change\n" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick", "message": "Third change\n" } - ], - "startSteps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "drop" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick" } - ], - "outputCommitCount": 1 - } - }, - { - "name": "blank reword and squash overrides need a message", - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "reword", "message": " \n" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash", "message": "" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick" } - ], - "response": { - "issue": { "code": "emptyRewordMessage", "hash": "2222222222222222222222222222222222222222" }, - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "reword", "message": " \n" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash", "message": "" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick", "message": "Third change\n" } - ], - "startSteps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "reword", "message": " \n" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash", "message": "" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick" } - ], - "outputCommitCount": 2 - } - }, - { - "name": "blank squash override", - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "pick" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash", "message": "\n" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick" } - ], - "response": { - "issue": { "code": "emptySquashMessage", "hash": "3333333333333333333333333333333333333333" }, - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "pick", "message": "First change\n\nFull body\n" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash", "message": "\n" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick", "message": "Third change\n" } - ], - "startSteps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "pick" }, - { "hash": "3333333333333333333333333333333333333333", "action": "squash", "message": "\n" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick" } - ], - "outputCommitCount": 2 - } - } - ], - "invalid": [ - { - "name": "a commit missing from the plan", - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "pick" }, - { "hash": "3333333333333333333333333333333333333333", "action": "pick" } - ] - }, - { - "name": "a duplicated commit", - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "pick" }, - { "hash": "2222222222222222222222222222222222222222", "action": "pick" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick" } - ] - }, - { - "name": "a message on a pick", - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "pick", "message": "x" }, - { "hash": "3333333333333333333333333333333333333333", "action": "pick" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick" } - ] - }, - { - "name": "an unsupported action", - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "exec" }, - { "hash": "3333333333333333333333333333333333333333", "action": "pick" }, - { "hash": "4444444444444444444444444444444444444444", "action": "pick" } - ] - } - ] -} diff --git a/shared/fixtures/git/rebase-session-v1.json b/shared/fixtures/git/rebase-session-v1.json deleted file mode 100644 index 5415ebda86..0000000000 --- a/shared/fixtures/git/rebase-session-v1.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "protocolVersion": 1, - "previewRequest": { "root": "/workspace/project", "revision": "1111111111111111111111111111111111111111" }, - "previewResponse": { - "allowed": true, - "blockers": [], - "branch": "refs/heads/feature/local", - "head": "3333333333333333333333333333333333333333", - "base": "1111111111111111111111111111111111111111", - "commits": [ - { "hash": "2222222222222222222222222222222222222222", "parents": ["1111111111111111111111111111111111111111"], "message": "First change\n\nFull body\n" }, - { "hash": "3333333333333333333333333333333333333333", "parents": ["2222222222222222222222222222222222222222"], "message": "Second change\n" } - ], - "expectedState": { - "branch": "refs/heads/feature/local", - "head": "3333333333333333333333333333333333333333", - "stateToken": "opaque-reviewed-range-token", - "operation": "interactiveRebase", - "revisions": ["2222222222222222222222222222222222222222"] - } - }, - "startRequest": { - "root": "/workspace/project", - "expectedState": { - "branch": "refs/heads/feature/local", - "head": "3333333333333333333333333333333333333333", - "stateToken": "opaque-reviewed-range-token", - "operation": "interactiveRebase", - "revisions": ["2222222222222222222222222222222222222222"] - }, - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "edit" }, - { "hash": "3333333333333333333333333333333333333333", "action": "reword", "message": "Revised title\n\nComplete replacement body\n" } - ] - }, - "sessionResponse": { - "sessionId": "0123456789abcdef0123456789abcdef", - "status": "edit", - "branch": "refs/heads/feature/local", - "originalHead": "3333333333333333333333333333333333333333", - "head": "2222222222222222222222222222222222222222", - "recoveryReference": "refs/lithe/history-recovery/00000000000000000001-1-1", - "steps": [ - { "hash": "2222222222222222222222222222222222222222", "action": "edit" }, - { "hash": "3333333333333333333333333333333333333333", "action": "reword", "message": "Revised title\n\nComplete replacement body\n" } - ], - "completedSteps": 1, - "currentCommit": "2222222222222222222222222222222222222222", - "currentMessage": "First change\n\nFull body\n", - "conflictedPaths": [], - "canContinue": true, - "canSkip": false, - "canAbort": true - }, - "controlRequest": { "root": "/workspace/project", "sessionId": "0123456789abcdef0123456789abcdef", "action": "continue", "expectedHead": "2222222222222222222222222222222222222222", "amendMessage": "Amended title\n\nAmend includes currently staged content.\n" }, - "mutationResponseShape": { "command": "GitCommandResponse", "session": "sessionResponse" }, - "absentSessionResponse": null -} diff --git a/shared/fixtures/git/reference-tree-v1.json b/shared/fixtures/git/reference-tree-v1.json deleted file mode 100644 index 2224e86381..0000000000 --- a/shared/fixtures/git/reference-tree-v1.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "description": "git.referenceTree groups one kind of references by '/' segments. Siblings sort by prioritized reference, group containing a prioritized reference, references before pure groups, then IDEA natural name order. Views own expansion, indentation, and row identities.", - "cases": [ - { - "name": "natural order with references before groups", - "request": { - "references": [ - { - "name": "feature/b" - }, - { - "name": "main" - }, - { - "name": "feature/a" - }, - { - "name": "v10" - }, - { - "name": "v2" - }, - { - "name": "feature" - } - ] - }, - "nodes": [ - { - "name": "feature", - "path": "feature", - "reference": 5, - "children": [ - { - "name": "a", - "path": "feature/a", - "reference": 2, - "children": [] - }, - { - "name": "b", - "path": "feature/b", - "reference": 0, - "children": [] - } - ] - }, - { - "name": "main", - "path": "main", - "reference": 1, - "children": [] - }, - { - "name": "v2", - "path": "v2", - "reference": 4, - "children": [] - }, - { - "name": "v10", - "path": "v10", - "reference": 3, - "children": [] - } - ] - }, - { - "name": "pure groups follow references", - "request": { - "references": [ - { - "name": "release/1.0" - }, - { - "name": "main" - }, - { - "name": "bugfix/x/y" - } - ] - }, - "nodes": [ - { - "name": "main", - "path": "main", - "reference": 1, - "children": [] - }, - { - "name": "bugfix", - "path": "bugfix", - "reference": null, - "children": [ - { - "name": "x", - "path": "bugfix/x", - "reference": null, - "children": [ - { - "name": "y", - "path": "bugfix/x/y", - "reference": 2, - "children": [] - } - ] - } - ] - }, - { - "name": "release", - "path": "release", - "reference": null, - "children": [ - { - "name": "1.0", - "path": "release/1.0", - "reference": 0, - "children": [] - } - ] - } - ] - }, - { - "name": "prioritized references and the groups holding them sort first", - "request": { - "references": [ - { - "name": "main" - }, - { - "name": "zeta/one", - "prioritized": true - }, - { - "name": "alpha" - }, - { - "name": "beta", - "prioritized": true - } - ] - }, - "nodes": [ - { - "name": "beta", - "path": "beta", - "reference": 3, - "children": [] - }, - { - "name": "zeta", - "path": "zeta", - "reference": null, - "children": [ - { - "name": "one", - "path": "zeta/one", - "reference": 1, - "children": [] - } - ] - }, - { - "name": "alpha", - "path": "alpha", - "reference": 2, - "children": [] - }, - { - "name": "main", - "path": "main", - "reference": 0, - "children": [] - } - ] - }, - { - "name": "case differences tie-break by raw name", - "request": { - "references": [ - { - "name": "release" - }, - { - "name": "Release" - } - ] - }, - "nodes": [ - { - "name": "Release", - "path": "Release", - "reference": 1, - "children": [] - }, - { - "name": "release", - "path": "release", - "reference": 0, - "children": [] - } - ] - }, - { - "name": "empty segments are ignored", - "request": { - "references": [ - { - "name": "//a//b" - }, - { - "name": "/" - } - ] - }, - "nodes": [ - { - "name": "a", - "path": "a", - "reference": null, - "children": [ - { - "name": "b", - "path": "a/b", - "reference": 0, - "children": [] - } - ] - } - ] - } - ] -} diff --git a/shared/fixtures/git/references-response-v1.json b/shared/fixtures/git/references-response-v1.json deleted file mode 100644 index f5dfb5df77..0000000000 --- a/shared/fixtures/git/references-response-v1.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "references": [ - { - "fullName": "refs/heads/feature/recent", - "shortName": "feature/recent", - "kind": "local", - "peelsToCommit": true, - "isCurrent": true, - "upstreamShortName": null, - "ahead": 0, - "behind": 0 - }, - { - "fullName": "refs/heads/main", - "shortName": "main", - "kind": "local", - "peelsToCommit": true, - "isCurrent": false, - "upstreamShortName": "origin/main", - "ahead": 2, - "behind": 1 - } - ], - "recentReferences": [ - { - "fullName": "refs/heads/feature/recent", - "shortName": "feature/recent", - "kind": "local", - "peelsToCommit": true, - "isCurrent": true, - "upstreamShortName": null, - "ahead": 0, - "behind": 0 - }, - { - "fullName": "refs/heads/main", - "shortName": "main", - "kind": "local", - "peelsToCommit": true, - "isCurrent": false, - "upstreamShortName": "origin/main", - "ahead": 2, - "behind": 1 - } - ], - "userName": "Lithe Test", - "userEmail": "test@example.invalid" -} diff --git a/shared/fixtures/git/remote-checkout-v1.json b/shared/fixtures/git/remote-checkout-v1.json deleted file mode 100644 index 57277b77bc..0000000000 --- a/shared/fixtures/git/remote-checkout-v1.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "protocolVersion": 1, - "reference": { - "fullName": "refs/remotes/upstream/preview", - "shortName": "upstream/preview", - "kind": "remote" - }, - "cases": [ - { "id": "behind-other", "startingBranch": "other", "expected": "updated" }, - { "id": "behind-current", "startingBranch": "preview", "expected": "updated" }, - { "id": "missing-local", "startingBranch": "other", "localHistory": "missing", "expected": "updated" }, - { "id": "dirty-other", "startingBranch": "other", "dirty": "tracked", "expected": "blocked" }, - { "id": "dirty-current", "startingBranch": "preview", "dirty": "staged", "expected": "blocked" }, - { "id": "untracked-other", "startingBranch": "other", "dirty": "untracked", "expected": "blocked" }, - { "id": "force-other", "startingBranch": "other", "dirty": "tracked", "force": true, "expected": "updated" }, - { "id": "force-current", "startingBranch": "preview", "dirty": "tracked", "force": true, "expected": "updated" }, - { "id": "smart-other", "startingBranch": "other", "dirty": "unrelated", "autoStash": true, "expected": "updated" }, - { "id": "smart-current", "startingBranch": "preview", "dirty": "unrelated", "autoStash": true, "expected": "updated" }, - { "id": "ahead-local", "startingBranch": "other", "localHistory": "ahead", "force": true, "expected": "blocked" }, - { "id": "diverged-local", "startingBranch": "other", "localHistory": "diverged", "dirty": "unrelated", "autoStash": true, "expected": "blocked" }, - { "id": "other-worktree", "startingBranch": "other", "otherWorktree": true, "expected": "blocked" } - ] -} diff --git a/shared/fixtures/git/remote-tag-catalog-v1.json b/shared/fixtures/git/remote-tag-catalog-v1.json deleted file mode 100644 index 50caf28430..0000000000 --- a/shared/fixtures/git/remote-tag-catalog-v1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "expected": { - "remotes": [{ "name": "origin", "url": "https://example.invalid/team path" }], - "tags": [ - { "name": "nested", "isAnnotated": true, "message": "nested subject" }, - { "name": "shared", "isAnnotated": true, "message": "annotated subject" }, - { "name": "v-light", "isAnnotated": false } - ] - } -} diff --git a/shared/fixtures/git/remote-url-v1.json b/shared/fixtures/git/remote-url-v1.json deleted file mode 100644 index e45559f0e6..0000000000 --- a/shared/fixtures/git/remote-url-v1.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "missing origin is a successful empty lookup", - "remote": "origin", - "configuredURL": null, - "expectedURL": null - }, - { - "name": "HTTPS origin is returned without a console command", - "remote": "origin", - "configuredURL": "https://example.invalid/team/repository.git", - "expectedURL": "https://example.invalid/team/repository.git" - }, - { - "name": "named SSH remote is preserved", - "remote": "upstream", - "configuredURL": "git@example.invalid:team/repository.git", - "expectedURL": "git@example.invalid:team/repository.git" - } - ] -} diff --git a/shared/fixtures/git/repository-colors-v1.json b/shared/fixtures/git/repository-colors-v1.json deleted file mode 100644 index 030161c4ca..0000000000 --- a/shared/fixtures/git/repository-colors-v1.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "cases": [ - { - "name": "empty", - "request": { - "offset": 0, - "totalCount": 0, - "repositoryIds": [] - }, - "expected": { - "assignments": [], - "fallbackSlot": 0, - "showColors": false - } - }, - { - "name": "single", - "request": { - "offset": 0, - "totalCount": 1, - "repositoryIds": [ - "/project" - ] - }, - "expected": { - "assignments": [ - { - "id": "/project", - "slot": 0 - } - ], - "fallbackSlot": 0, - "showColors": false - } - }, - { - "name": "full order includes hidden worktree", - "request": { - "offset": 0, - "totalCount": 3, - "repositoryIds": [ - "/work/app", - "/work/app/.worktrees/topic", - "/work/lib" - ] - }, - "expected": { - "assignments": [ - { - "id": "/work/app", - "slot": 0 - }, - { - "id": "/work/app/.worktrees/topic", - "slot": 1 - }, - { - "id": "/work/lib", - "slot": 2 - } - ], - "fallbackSlot": 0, - "showColors": true - } - }, - { - "name": "page retains global offset and wraps", - "request": { - "offset": 7, - "totalCount": 10, - "repositoryIds": [ - "C:/g", - "C:/h", - "C:/i" - ] - }, - "expected": { - "assignments": [ - { - "id": "C:/g", - "slot": 7 - }, - { - "id": "C:/h", - "slot": 0 - }, - { - "id": "C:/i", - "slot": 1 - } - ], - "fallbackSlot": 0, - "showColors": true - } - }, - { - "name": "remote and UNC identities", - "request": { - "offset": 0, - "totalCount": 2, - "repositoryIds": [ - "remote://server/work/app", - "//server/share/app" - ] - }, - "expected": { - "assignments": [ - { - "id": "remote://server/work/app", - "slot": 0 - }, - { - "id": "//server/share/app", - "slot": 1 - } - ], - "fallbackSlot": 0, - "showColors": true - } - }, - { - "name": "later page", - "request": { - "offset": 256, - "totalCount": 257, - "repositoryIds": [ - "/work/last" - ] - }, - "expected": { - "assignments": [ - { - "id": "/work/last", - "slot": 0 - } - ], - "fallbackSlot": 0, - "showColors": true - } - } - ] -} diff --git a/shared/fixtures/git/repository-setup-v1.json b/shared/fixtures/git/repository-setup-v1.json deleted file mode 100644 index 1e730f9b66..0000000000 --- a/shared/fixtures/git/repository-setup-v1.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "schemaVersion": 1, - "uninitialized": { - "isRepository": false, "hasCommits": false, "branch": null, "scope": "local", - "configuredName": null, "configuredEmail": null, - "effectiveName": "Fixture User", "effectiveEmail": "fixture@example.invalid" - }, - "unborn": { - "isRepository": true, "hasCommits": false, "branch": "fixture-branch", "scope": "local", - "configuredName": null, "configuredEmail": null, - "effectiveName": "Fixture User", "effectiveEmail": "fixture@example.invalid" - }, - "configured": { - "isRepository": true, "hasCommits": true, "branch": "fixture-branch", "scope": "local", - "configuredName": "Local User", "configuredEmail": "local@example.invalid", - "effectiveName": "Local User", "effectiveEmail": "local@example.invalid" - } -} diff --git a/shared/fixtures/git/rollback-plan-v1.json b/shared/fixtures/git/rollback-plan-v1.json deleted file mode 100644 index 4d863107d4..0000000000 --- a/shared/fixtures/git/rollback-plan-v1.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "version": 1, - "cases": [ - {"name":"staged addition is unstaged but preserved", "changes":[{"path":"new.txt","status":"A "}], "deleteAddedFiles":false, "steps":[{"operation":"unstage","paths":["new.txt"]}]}, - {"name":"intent to add is unstaged", "changes":[{"path":"intent.txt","status":" A"}], "deleteAddedFiles":false, "steps":[{"operation":"unstage","paths":["intent.txt"]}]}, - {"name":"rename restores both sides", "changes":[{"path":"new.txt","originalPath":"old.txt","status":"R "}], "deleteAddedFiles":false, "steps":[{"operation":"discardAll","paths":["old.txt","new.txt"]}]}, - {"name":"copy preserves source", "changes":[{"path":"copy.txt","originalPath":"source.txt","status":"C "}], "deleteAddedFiles":false, "steps":[{"operation":"unstage","paths":["copy.txt"]}]}, - {"name":"worktree copy is not silently skipped", "changes":[{"path":"copy.txt","originalPath":"source.txt","status":" C"}], "deleteAddedFiles":false, "steps":[{"operation":"unstage","paths":["copy.txt"]}]}, - {"name":"ordinary tracked modification", "changes":[{"path":"modified.txt","status":"MM"}], "deleteAddedFiles":false, "steps":[{"operation":"discardAll","paths":["modified.txt"]}]}, - {"name":"unmerged additions are not treated as new files", "changes":[{"path":"conflict.txt","status":"AA"}], "deleteAddedFiles":false, "steps":[{"operation":"discardAll","paths":["conflict.txt"]}]}, - {"name":"untracked file is preserved by default", "changes":[{"path":"loose.txt","status":"??"}], "deleteAddedFiles":false, "steps":[]}, - {"name":"explicitly delete untracked file", "changes":[{"path":"loose.txt","status":"??"}], "deleteAddedFiles":true, "steps":[{"operation":"discardAll","paths":["loose.txt"]}]}, - {"name":"explicitly delete untracked directory selection", "changes":[{"path":"new-dir/","status":"??"}], "deleteAddedFiles":true, "steps":[{"operation":"discardAll","paths":["new-dir/"]}]}, - {"name":"explicit deletion removes a new file after unstaging", "changes":[{"path":"new.txt","status":"A "}], "deleteAddedFiles":true, "steps":[{"operation":"unstage","paths":["new.txt"]},{"operation":"discard","paths":["new.txt"]}]} - ] -} diff --git a/shared/fixtures/git/saved-stash-v1.json b/shared/fixtures/git/saved-stash-v1.json deleted file mode 100644 index 65972bc80f..0000000000 --- a/shared/fixtures/git/saved-stash-v1.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "version": 1, - "stashesResponse": { - "stashes": [ - { - "reference": "stash@{0}", - "oid": "1111111111111111111111111111111111111111", - "message": "WIP example", - "date": "2026-10-16" - } - ] - }, - "diffRequest": { - "root": ".", - "pathspecs": [ - "." - ], - "stashReference": "1111111111111111111111111111111111111111" - }, - "dropRequest": { - "root": ".", - "operation": "stashDrop", - "reference": "1111111111111111111111111111111111111111" - }, - "sectionRequest": { - "root": ".", - "pathspecs": [ - "." - ], - "stashReference": "1111111111111111111111111111111111111111", - "includeFileSections": true - }, - "sectionResponse": { - "patch": "", - "rows": [], - "hunks": [], - "hasDecodingLoss": false, - "files": [ - { - "path": "example.txt", - "originalPath": null, - "status": "M", - "patch": "diff --git a/example.txt b/example.txt\n--- a/example.txt\n+++ b/example.txt\n@@ -1 +1 @@\n-before\n+after\n", - "rows": [ - { - "oldLine": null, - "newLine": null, - "left": "@@ -1 +1 @@", - "kind": "information", - "hunkId": "hunk-0" - }, - { - "oldLine": 1, - "newLine": 1, - "left": "before", - "right": "after", - "kind": "changed", - "hunkId": "hunk-0" - } - ], - "hunks": [ - { - "id": "hunk-0", - "header": "@@ -1 +1 @@", - "patch": "diff --git a/example.txt b/example.txt\n--- a/example.txt\n+++ b/example.txt\n@@ -1 +1 @@\n-before\n+after\n" - } - ] - } - ] - } -} diff --git a/shared/fixtures/git/shelf-v1.json b/shared/fixtures/git/shelf-v1.json deleted file mode 100644 index ea0093e9d1..0000000000 --- a/shared/fixtures/git/shelf-v1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "capture": { "stagedPatch": "staged patch", "workingPatch": "working patch", "paths": ["old.txt", "新文件.txt"] }, - "cleanPlan": { "layers": ["working", "staged"] }, - "restorePlan": { "layers": ["staged", "working"] } -} diff --git a/shared/fixtures/git/tag-names.json b/shared/fixtures/git/tag-names.json deleted file mode 100644 index 2aa2589dd8..0000000000 --- a/shared/fixtures/git/tag-names.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "protocolVersion": 1, - "valid": [ - "v1", - "v1.0.0", - "release-2026.08", - "feature/x", - "a/b/c", - "v1_rc1" - ], - "invalid": [ - "", - " ", - "a..b", - "-v1", - "a b", - "v~1", - "a:b", - "a?b", - "a*b", - "a[b", - "a\\b", - "@{x", - "a//b", - "a.lock", - ".hidden", - "@", - "head/", - "x/../y", - "foo/.bar", - "foo/bar.lock", - "a/.b/c", - "x/./y" - ] -} diff --git a/shared/fixtures/git/tag-write-v1.json b/shared/fixtures/git/tag-write-v1.json deleted file mode 100644 index 2868315902..0000000000 --- a/shared/fixtures/git/tag-write-v1.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "protocolVersion": 1, - "operation": "createTag", - "target": "0123456789abcdef0123456789abcdef01234567", - "cases": [ - { - "name": "legacy lightweight tag when no message is supplied", - "request": {"message": null, "lightweight": null, "signed": null}, - "arguments": ["tag", "v1.0", "0123456789abcdef0123456789abcdef01234567"] - }, - { - "name": "legacy annotated tag when a message is present", - "request": {"message": "release", "lightweight": null, "signed": null}, - "arguments": [ - "tag", - "-a", - "--cleanup=verbatim", - "v1.0", - "-m", - "release", - "0123456789abcdef0123456789abcdef01234567" - ] - }, - { - "name": "explicit lightweight overrides tag.gpgSign", - "request": {"message": null, "lightweight": true, "signed": false}, - "arguments": [ - "tag", - "--no-sign", - "v1.0", - "0123456789abcdef0123456789abcdef01234567" - ] - }, - { - "name": "explicit lightweight ignores a whitespace-only message", - "request": {"message": " ", "lightweight": true, "signed": null}, - "arguments": [ - "tag", - "--no-sign", - "v1.0", - "0123456789abcdef0123456789abcdef01234567" - ] - }, - { - "name": "explicit non-lightweight keeps the annotated form", - "request": {"message": "release", "lightweight": false, "signed": false}, - "arguments": [ - "tag", - "-a", - "--cleanup=verbatim", - "v1.0", - "-m", - "release", - "0123456789abcdef0123456789abcdef01234567" - ] - }, - { - "name": "signed lightweight tag without a message", - "request": {"message": null, "lightweight": null, "signed": true}, - "arguments": ["tag", "-s", "v1.0", "0123456789abcdef0123456789abcdef01234567"] - }, - { - "name": "signed annotated tag with a message", - "request": {"message": "release", "lightweight": null, "signed": true}, - "arguments": [ - "tag", - "-s", - "-a", - "--cleanup=verbatim", - "v1.0", - "-m", - "release", - "0123456789abcdef0123456789abcdef01234567" - ] - } - ], - "rejectedCases": [ - { - "name": "lightweight tag with a message", - "request": {"message": "release", "lightweight": true, "signed": null}, - "error": { - "code": "invalid_request", - "message": "Lightweight tags cannot include a message or signature" - } - }, - { - "name": "lightweight tag with a signature", - "request": {"message": null, "lightweight": true, "signed": true}, - "error": { - "code": "invalid_request", - "message": "Lightweight tags cannot include a message or signature" - } - } - ] -} diff --git a/shared/fixtures/git/update-plan-v1.json b/shared/fixtures/git/update-plan-v1.json deleted file mode 100644 index 93dd578eca..0000000000 --- a/shared/fixtures/git/update-plan-v1.json +++ /dev/null @@ -1,625 +0,0 @@ -{ - "description": "git.updatePlan routes a branch Update and gates every pull. Hosts fetch and run git.pullPreflight for the returned checkout, ask only on chooseStrategy, and re-inspect before sending the confirmation.", - "cases": [ - { - "name": "current branch is inspected in its own worktree and may ask", - "request": { - "stage": "route", - "branch": { - "fullName": "refs/heads/main", - "upstream": "origin/main", - "isCurrent": true - }, - "worktrees": [ - { - "path": "/repo", - "branch": "refs/heads/main", - "isCurrent": true - }, - { - "path": "/repo-feature", - "branch": "refs/heads/feature", - "isCurrent": false - }, - { - "path": "/repo-detached", - "branch": null, - "isCurrent": false - } - ] - }, - "plan": { - "step": "inspect", - "checkout": "/repo", - "expectedBranch": "refs/heads/main", - "upstream": "origin/main", - "interactive": true - } - }, - { - "name": "current branch without listed worktrees uses the request root", - "request": { - "stage": "route", - "branch": { - "fullName": "refs/heads/main", - "upstream": "origin/main", - "isCurrent": true - }, - "worktrees": [] - }, - "plan": { - "step": "inspect", - "checkout": null, - "expectedBranch": "refs/heads/main", - "upstream": "origin/main", - "interactive": true - } - }, - { - "name": "a branch checked out in another worktree is pulled there without asking", - "request": { - "stage": "route", - "branch": { - "fullName": "refs/heads/feature", - "upstream": "origin/feature", - "isCurrent": false - }, - "worktrees": [ - { - "path": "/repo", - "branch": "refs/heads/main", - "isCurrent": true - }, - { - "path": "/repo-feature", - "branch": "refs/heads/feature", - "isCurrent": false - }, - { - "path": "/repo-detached", - "branch": null, - "isCurrent": false - } - ] - }, - "plan": { - "step": "inspect", - "checkout": "/repo-feature", - "expectedBranch": "refs/heads/feature", - "upstream": "origin/feature", - "interactive": false - } - }, - { - "name": "an unchecked-out branch fast-forwards in place", - "request": { - "stage": "route", - "branch": { - "fullName": "refs/heads/release", - "upstream": "origin/release", - "isCurrent": false - }, - "worktrees": [ - { - "path": "/repo", - "branch": "refs/heads/main", - "isCurrent": true - }, - { - "path": "/repo-feature", - "branch": "refs/heads/feature", - "isCurrent": false - }, - { - "path": "/repo-detached", - "branch": null, - "isCurrent": false - } - ] - }, - "plan": { - "step": "fastForwardReference", - "expectedBranch": "refs/heads/release" - } - }, - { - "name": "no upstream blocks before any network call", - "request": { - "stage": "route", - "branch": { - "fullName": "refs/heads/main", - "upstream": null, - "isCurrent": true - }, - "worktrees": [ - { - "path": "/repo", - "branch": "refs/heads/main", - "isCurrent": true - }, - { - "path": "/repo-feature", - "branch": "refs/heads/feature", - "isCurrent": false - }, - { - "path": "/repo-detached", - "branch": null, - "isCurrent": false - } - ] - }, - "plan": { - "step": "blocked", - "blocker": "noUpstream" - } - }, - { - "name": "behind only fast-forwards by default", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 0, - "behind": 2, - "diverged": false, - "hasLocalChanges": false - }, - "interactive": true - }, - "plan": { - "step": "pull", - "strategy": "ffOnly" - } - }, - { - "name": "diverged current branch asks for a strategy", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - }, - "interactive": true - }, - "plan": { - "step": "chooseStrategy" - } - }, - { - "name": "diverged branch in another worktree cannot fast-forward", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - }, - "interactive": false - }, - "plan": { - "step": "blocked", - "blocker": "notFastForward" - } - }, - { - "name": "tracked local changes block the pull", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 0, - "behind": 2, - "diverged": false, - "hasLocalChanges": true - }, - "interactive": true - }, - "plan": { - "step": "blocked", - "blocker": "localChanges" - } - }, - { - "name": "nothing new upstream", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 3, - "behind": 0, - "diverged": false, - "hasLocalChanges": false - }, - "interactive": true - }, - "plan": { - "step": "blocked", - "blocker": "upToDate" - } - }, - { - "name": "inspected checkout without upstream", - "request": { - "stage": "inspect", - "preflight": { - "upstream": null, - "ahead": 0, - "behind": 0, - "diverged": false, - "hasLocalChanges": false - }, - "interactive": true - }, - "plan": { - "step": "blocked", - "blocker": "noUpstream" - } - }, - { - "name": "confirmed strategy runs when the history is unchanged", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - }, - "interactive": true, - "confirmation": { - "strategy": "rebase", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - } - } - }, - "plan": { - "step": "pull", - "strategy": "rebase" - } - }, - { - "name": "confirmed strategy stops when the history moved", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 3, - "diverged": true, - "hasLocalChanges": false - }, - "interactive": true, - "confirmation": { - "strategy": "merge", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - } - } - }, - "plan": { - "step": "blocked", - "blocker": "stateChanged" - } - }, - { - "name": "confirmed strategy still refuses new local changes", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": true - }, - "interactive": true, - "confirmation": { - "strategy": "merge", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - } - } - }, - "plan": { - "step": "blocked", - "blocker": "localChanges" - } - }, - { - "name": "a chosen merge does not ask again", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - }, - "interactive": true, - "strategy": "merge" - }, - "plan": { - "step": "pull", - "strategy": "merge" - } - }, - { - "name": "an explicit source ignores upstream and up-to-date gates", - "request": { - "stage": "inspect", - "preflight": { - "upstream": null, - "ahead": 0, - "behind": 0, - "diverged": false, - "hasLocalChanges": false - }, - "interactive": true, - "explicitSource": true, - "strategy": "rebase" - }, - "plan": { - "step": "pull", - "strategy": "rebase" - } - }, - { - "name": "Git configured for rebase pulls with rebase without asking", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false, - "configuredStrategy": "rebase" - }, - "interactive": true - }, - "plan": { - "step": "pull", - "strategy": "rebase" - } - }, - { - "name": "Git configured for merge pulls with merge without asking", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false, - "configuredStrategy": "merge" - }, - "interactive": false - }, - "plan": { - "step": "pull", - "strategy": "merge" - } - }, - { - "name": "Git configured for fast-forward only still asks when diverged", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false, - "configuredStrategy": "ffOnly" - }, - "interactive": true - }, - "plan": { - "step": "chooseStrategy" - } - }, - { - "name": "Git configured for fast-forward only fast-forwards a linear history", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 0, - "behind": 2, - "diverged": false, - "hasLocalChanges": false, - "configuredStrategy": "ffOnly" - }, - "interactive": true - }, - "plan": { - "step": "pull", - "strategy": "ffOnly" - } - }, - { - "name": "the user's choice wins over Git configuration", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false, - "configuredStrategy": "rebase" - }, - "interactive": true, - "strategy": "merge" - }, - "plan": { - "step": "pull", - "strategy": "merge" - } - }, - { - "name": "configured strategy still honors local changes", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": true, - "configuredStrategy": "rebase" - }, - "interactive": true - }, - "plan": { - "step": "blocked", - "blocker": "localChanges" - } - }, - { - "name": "dialog default is fast-forward when the source allows it", - "request": { - "stage": "defaultStrategy", - "preflight": { - "upstream": "origin/main", - "ahead": 0, - "behind": 2, - "diverged": false, - "hasLocalChanges": false - }, - "fastForwardPossible": true - }, - "plan": { - "step": "defaultStrategy", - "strategy": "ffOnly" - } - }, - { - "name": "dialog default falls back to merge when fast-forward is impossible", - "request": { - "stage": "defaultStrategy", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - }, - "fastForwardPossible": false - }, - "plan": { - "step": "defaultStrategy", - "strategy": "merge" - } - }, - { - "name": "dialog default follows Git configuration", - "request": { - "stage": "defaultStrategy", - "preflight": { - "upstream": "origin/main", - "ahead": 0, - "behind": 2, - "diverged": false, - "hasLocalChanges": false, - "configuredStrategy": "rebase" - }, - "fastForwardPossible": true - }, - "plan": { - "step": "defaultStrategy", - "strategy": "rebase" - } - } - ], - "invalid": [ - { - "name": "short branch name", - "request": { - "stage": "route", - "branch": { - "fullName": "main", - "upstream": "origin/main", - "isCurrent": true - }, - "worktrees": [] - } - }, - { - "name": "fast-forward is not a confirmation", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - }, - "interactive": true, - "confirmation": { - "strategy": "ffOnly", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - } - } - } - }, - { - "name": "background updates cannot be confirmed", - "request": { - "stage": "inspect", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - }, - "interactive": false, - "confirmation": { - "strategy": "merge", - "preflight": { - "upstream": "origin/main", - "ahead": 1, - "behind": 2, - "diverged": true, - "hasLocalChanges": false - } - } - } - }, - { - "name": "unknown stage", - "request": { - "stage": "execute" - } - } - ] -} diff --git a/shared/fixtures/git/windows-paths.json b/shared/fixtures/git/windows-paths.json deleted file mode 100644 index 61e6d37cec..0000000000 --- a/shared/fixtures/git/windows-paths.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "accepted": [ - { - "input": "\\\\?\\C:\\work\\repo", - "normalized": "C:/work/repo" - }, - { - "input": "\\\\?\\UNC\\server\\share\\repo", - "normalized": "//server/share/repo" - }, - { - "input": "\\\\?\\unc\\server\\share\\repo", - "normalized": "//server/share/repo" - }, - { - "input": "\\\\server\\share\\repo", - "normalized": "//server/share/repo" - }, - { - "input": "C:\\项目 space\\repo", - "normalized": "C:/项目 space/repo" - }, - { - "input": "//?/C:/work/repo", - "normalized": "C:/work/repo" - }, - { - "input": "C:\\", - "normalized": "C:/" - }, - { - "input": "/work/repo", - "normalized": "/work/repo" - }, - { - "input": "\\\\server.example.\\share\\repo", - "normalized": "//server.example./share/repo" - }, - { - "input": "\\\\?\\UNC\\server.example.\\share\\repo", - "normalized": "//server.example./share/repo" - } - ], - "rejected": [ - "\\\\?\\C:\\work\\repo.", - "\\\\?\\C:\\work\\repo ", - "\\\\?\\C:\\work.\\repo", - "\\\\?\\UNC\\server\\share\\repo.\\src", - "\\\\server\\share\\repo ", - "C:\\work\\repo.", - "//?/C:/work/repo ", - "\\\\.\\C:\\work\\repo", - "\\\\?\\Volume{fixture}\\repo", - "\\\\?\\C:\\work\\NUL.txt", - "\\\\?\\C:\\work\\COM1", - "\\\\?\\C:\\work\\..\\repo", - "\\\\?\\UNC\\server" - ] -} diff --git a/shared/fixtures/git/workspace-commit-v1.json b/shared/fixtures/git/workspace-commit-v1.json deleted file mode 100644 index 3e1809709d..0000000000 --- a/shared/fixtures/git/workspace-commit-v1.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "version": 1, - "commitState": { - "head": "1111111111111111111111111111111111111111", - "branch": "refs/heads/main", - "indexEntries": "160000 2222222222222222222222222222222222222222 0\tlibs/B\u0000", - "gitlinks": [{ "path": "libs/B", "revision": "2222222222222222222222222222222222222222" }], - "stagedPaths": [], - "conflictedPaths": [] - }, - "dirtySubmodule": { "commitChanged": false, "trackedChanges": true, "untrackedChanges": false }, - "advancedSubmodule": { "commitChanged": true, "trackedChanges": false, "untrackedChanges": false } -} diff --git a/shared/fixtures/git/workspace-commit-workflow-v1.json b/shared/fixtures/git/workspace-commit-workflow-v1.json deleted file mode 100644 index 11a89dce66..0000000000 --- a/shared/fixtures/git/workspace-commit-workflow-v1.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "request": { - "repositories": [ - { - "id": "A", - "root": "/workspace/A" - }, - { - "id": "A/B", - "root": "/workspace/A/B" - } - ], - "message": "commit", - "amend": false, - "push": true, - "includeParentReferences": true - }, - "states": { - "A": { - "head": "initial", - "branch": "refs/heads/main", - "indexEntries": "", - "gitlinks": [ - { - "path": "B", - "revision": "initial" - } - ], - "stagedPaths": [], - "conflictedPaths": [] - }, - "A/B": { - "head": "initial", - "branch": "refs/heads/main", - "indexEntries": "hello.ts", - "gitlinks": [], - "stagedPaths": [ - "hello.ts" - ], - "conflictedPaths": [] - } - }, - "preparation": { - "session": { - "plan": { - "repositories": [ - { - "id": "A", - "root": "/workspace/A" - }, - { - "id": "A/B", - "root": "/workspace/A/B" - } - ], - "message": "commit", - "amend": false, - "push": true, - "includeParentReferences": true, - "isRetry": false, - "orderedIds": [ - "A/B", - "A" - ], - "propagatedRelations": [ - { - "parent": "A", - "child": "A/B", - "path": "B" - } - ], - "dependencyRelations": [ - { - "parent": "A", - "child": "A/B", - "path": "B" - } - ], - "states": { - "A": { - "head": "initial", - "branch": "refs/heads/main", - "indexEntries": "", - "gitlinks": [ - { - "path": "B", - "revision": "initial" - } - ], - "stagedPaths": [], - "conflictedPaths": [] - }, - "A/B": { - "head": "initial", - "branch": "refs/heads/main", - "indexEntries": "hello.ts", - "gitlinks": [], - "stagedPaths": [ - "hello.ts" - ], - "conflictedPaths": [] - } - }, - "committedIds": [], - "pendingPushIds": [] - }, - "states": { - "A": { - "head": "initial", - "branch": "refs/heads/main", - "indexEntries": "", - "gitlinks": [ - { - "path": "B", - "revision": "initial" - } - ], - "stagedPaths": [], - "conflictedPaths": [] - }, - "A/B": { - "head": "initial", - "branch": "refs/heads/main", - "indexEntries": "hello.ts", - "gitlinks": [], - "stagedPaths": [ - "hello.ts" - ], - "conflictedPaths": [] - } - }, - "results": { - "A": { - "committed": false, - "pushed": false, - "status": "pending", - "detail": "" - }, - "A/B": { - "committed": false, - "pushed": false, - "status": "pending", - "detail": "" - } - }, - "blocked": [], - "cursor": 0, - "commandFailed": false, - "finished": false, - "succeeded": false, - "canRetry": true - }, - "reviewChanged": false, - "requiresConfirmation": true - } -} \ No newline at end of file diff --git a/shared/fixtures/git/worktree-creation-v1.json b/shared/fixtures/git/worktree-creation-v1.json deleted file mode 100644 index f3a53d4bae..0000000000 --- a/shared/fixtures/git/worktree-creation-v1.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "protocolVersion": 1, - "command": "git.write", - "requests": [ - { - "operation": "createWorktree", - "destination": "../feature-worktree", - "name": "feature/worktree", - "gitReference": { "kind": "local", "shortName": "main", "fullName": "refs/heads/main" } - }, - { - "operation": "createWorktree", - "worktreeMode": "existingBranch", - "destination": "../existing-worktree", - "gitReference": { "kind": "local", "shortName": "feature/existing", "fullName": "refs/heads/feature/existing" }, - "noCheckout": false - }, - { - "operation": "createWorktree", - "worktreeMode": "detached", - "destination": "../detached-worktree", - "revision": "1111111111111111111111111111111111111111", - "noCheckout": true - } - ], - "invalidRequests": [ - { "worktreeMode": "existingBranch", "name": "unexpected-new-branch" }, - { "worktreeMode": "existingBranch", "gitReference": { "kind": "remote", "shortName": "origin/main", "fullName": "refs/remotes/origin/main" } }, - { "worktreeMode": "detached", "name": "unexpected-new-branch" }, - { "worktreeMode": "unknown" } - ] -} diff --git a/shared/fixtures/git/worktrees-v1.json b/shared/fixtures/git/worktrees-v1.json deleted file mode 100644 index 9b38c62c20..0000000000 --- a/shared/fixtures/git/worktrees-v1.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "protocolVersion": 1, - "worktrees": [ - { - "path": "/example/project", - "head": "1111111111111111111111111111111111111111", - "branch": "refs/heads/main", - "isCurrent": true, - "isPrimary": true, - "isBare": false, - "isDetached": false, - "isLocked": false, - "lockReason": null, - "isPrunable": false, - "pruneReason": null - }, - { - "path": "/example/worktrees/feature-core", - "head": "2222222222222222222222222222222222222222", - "branch": "refs/heads/feature/core", - "isCurrent": false, - "isPrimary": false, - "isBare": false, - "isDetached": false, - "isLocked": true, - "lockReason": "active task", - "isPrunable": false, - "pruneReason": null - } - ] -} diff --git a/shared/fixtures/git/write.json b/shared/fixtures/git/write.json deleted file mode 100644 index 9b2b2a1db5..0000000000 --- a/shared/fixtures/git/write.json +++ /dev/null @@ -1,264 +0,0 @@ -{ - "protocolVersion": 1, - "operations": [ - { - "operation": "pull", - "payload": { - "mode": "ffOnly", - "expectedBranch": "refs/heads/topic" - } - }, - { - "operation": "stage", - "payload": { - "paths": ["src/Main.java"] - } - }, - { - "operation": "commit", - "payload": { - "message": "Add Main", - "amend": false - } - }, - { - "operation": "createBranch", - "payload": { - "reference": "refs/heads/main", - "name": "feature/core", - "checkout": true - } - }, - { - "operation": "setUpstream", - "payload": { - "name": "feature/core", - "gitReference": { - "fullName": "refs/remotes/origin/feature/core", - "shortName": "origin/feature/core", - "kind": "remote" - } - } - }, - { - "operation": "updateBranch", - "payload": { - "gitReference": { - "fullName": "refs/heads/feature/core", - "shortName": "feature/core", - "kind": "local" - } - } - }, - { - "operation": "createWorktree", - "payload": { - "destination": "../feature-core-worktree", - "name": "feature/core-worktree", - "gitReference": { - "fullName": "refs/remotes/origin/feature/core", - "shortName": "origin/feature/core", - "kind": "remote" - } - } - }, - { - "operation": "checkout", - "payload": { - "reference": "refs/heads/main", - "referenceKind": "local" - } - }, - { - "operation": "checkout", - "payload": { - "gitReference": { - "fullName": "refs/remotes/origin/feature/core", - "shortName": "origin/feature/core", - "kind": "remote" - } - } - }, - { - "operation": "checkoutAndRebase", - "payload": { - "reference": "refs/remotes/origin/feature/core", - "referenceKind": "remote" - } - }, - { - "operation": "checkoutAndRebase", - "payload": { - "gitReference": { - "fullName": "refs/remotes/origin/feature/core", - "shortName": "origin/feature/core", - "kind": "remote" - } - } - }, - { - "operation": "pull", - "payload": { - "reference": "refs/remotes/origin/feature/core", - "referenceKind": "remote", - "mode": "rebase" - } - }, - { - "operation": "push", - "payload": { - "gitReference": { - "fullName": "refs/heads/feature/core", - "shortName": "feature/core", - "kind": "local" - }, - "expectedPush": { - "localBranch": "feature/core", - "localHead": "2222222222222222222222222222222222222222", - "remote": "origin", - "remoteBranch": "feature/core", - "remoteTrackingOid": "1111111111111111111111111111111111111111" - }, - "force": true, - "pushTags": "reachable" - } - }, - { - "operation": "pull", - "payload": { - "gitReference": { - "fullName": "refs/remotes/origin/feature/core", - "shortName": "origin/feature/core", - "kind": "remote" - }, - "mode": "rebase" - } - }, - { - "operation": "deleteRemoteBranch", - "payload": { - "gitReference": { - "fullName": "refs/remotes/team/origin/feature/core", - "shortName": "team/origin/feature/core", - "kind": "remote" - } - } - }, - { - "operation": "stashPush", - "payload": { - "message": "Save work", - "includeUntracked": true - } - }, - { - "operation": "createTag", - "payload": { - "name": "v1.0.0", - "revision": "2f1c9a4" - } - }, - { - "operation": "createTag", - "payload": { - "name": "v2.0.0", - "revision": "8e4b2d7", - "message": "Release 2.0.0" - } - }, - { - "operation": "deleteTag", - "payload": { - "name": "v2.0.0" - } - }, - { - "operation": "deleteBranch", - "payload": { - "reference": "refs/heads/feature/pending" - } - } - ], - "responses": [ - { - "operation": "deleteTag", - "tagDeletion": { - "name": "v2.0.0", - "deletedTarget": "8e4b2d7bb019f0e5a3c6f1a2d4e5b6c7d8e9f0a1", - "kind": "annotated", - "message": "Release 2.0.0" - } - }, - { - "operation": "deleteBranch", - "branchDeletion": { - "name": "feature/pending", - "deletedTarget": "2f1c9a4bb019f0e5a3c6f1a2d4e5b6c7d8e9f0a1" - } - } - ], - "invalidRequests": [ - { - "operation": "reset", - "payload": { - "revision": "HEAD", - "mode": "--invalid" - }, - "errorCode": "invalid_request" - }, - { - "operation": "stage", - "payload": { - "paths": ["../outside.txt"] - }, - "errorCode": "invalid_request" - }, - { - "operation": "createTag", - "payload": { - "name": "bad tag name", - "revision": "HEAD" - }, - "errorCode": "invalid_request" - }, - { - "operation": "pull", - "payload": { - "reference": "refs/heads/main", - "referenceKind": "local", - "mode": "merge" - }, - "errorCode": "invalid_request" - }, - { - "operation": "checkoutAndRebase", - "payload": { - "gitReference": { - "fullName": "refs/remotes/origin/feature/core", - "shortName": "feature/core", - "kind": "local" - } - }, - "errorCode": "invalid_request" - }, - { - "operation": "push", - "payload": { - "reference": "refs/heads/main", - "pushTags": "invalid" - }, - "errorCode": "invalid_request" - }, - { - "operation": "deleteRemoteBranch", - "payload": { - "gitReference": { - "fullName": "refs/heads/main", - "shortName": "main", - "kind": "local" - } - }, - "errorCode": "invalid_request" - } - ] -} diff --git a/shared/fixtures/github/device-authorization-transition-v1.json b/shared/fixtures/github/device-authorization-transition-v1.json deleted file mode 100644 index 39430cc5bf..0000000000 --- a/shared/fixtures/github/device-authorization-transition-v1.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "cases": [ - {"name":"initial clamp", "request":{"event":"start","expiresIn":0,"interval":0,"elapsedMilliseconds":0}, "expected":{"action":"wait","intervalSeconds":1,"waitMilliseconds":1000}}, - {"name":"pending retains interval", "request":{"event":"pending","expiresIn":120,"interval":5,"elapsedMilliseconds":6000}, "expected":{"action":"wait","intervalSeconds":5,"waitMilliseconds":5000}}, - {"name":"slow down increases interval", "request":{"event":"slowDown","expiresIn":120,"interval":5,"suggestedInterval":10,"elapsedMilliseconds":6000}, "expected":{"action":"wait","intervalSeconds":15,"waitMilliseconds":15000}}, - {"name":"bounded slow down", "request":{"event":"slowDown","expiresIn":120,"interval":59,"suggestedInterval":18446744073709551615,"elapsedMilliseconds":1000}, "expected":{"action":"wait","intervalSeconds":86400,"waitMilliseconds":119000}}, - {"name":"slow down above previous limit", "request":{"event":"slowDown","expiresIn":120,"interval":60,"elapsedMilliseconds":1000}, "expected":{"action":"wait","intervalSeconds":65,"waitMilliseconds":65000}}, - {"name":"do not wait past expiration", "request":{"event":"pending","expiresIn":10,"interval":5,"elapsedMilliseconds":8001}, "expected":{"action":"wait","intervalSeconds":5,"waitMilliseconds":1999}}, - {"name":"poll before expiration", "request":{"event":"tick","expiresIn":10,"interval":5,"elapsedMilliseconds":5000}, "expected":{"action":"poll","intervalSeconds":5,"waitMilliseconds":0}}, - {"name":"expire at deadline", "request":{"event":"tick","expiresIn":10,"interval":5,"elapsedMilliseconds":10000}, "expected":{"action":"expired","intervalSeconds":5,"waitMilliseconds":0}}, - {"name":"server authorization is authoritative", "request":{"event":"authorized","expiresIn":10,"interval":5,"elapsedMilliseconds":11000}, "expected":{"action":"authorize","intervalSeconds":5,"waitMilliseconds":0}}, - {"name":"server denial", "request":{"event":"denied","expiresIn":10,"interval":5,"elapsedMilliseconds":1000}, "expected":{"action":"denied","intervalSeconds":5,"waitMilliseconds":0}}, - {"name":"server expiry", "request":{"event":"expired","expiresIn":10,"interval":5,"elapsedMilliseconds":1000}, "expected":{"action":"expired","intervalSeconds":5,"waitMilliseconds":0}}, - {"name":"server failure", "request":{"event":"failed","expiresIn":10,"interval":5,"elapsedMilliseconds":1000}, "expected":{"action":"failed","intervalSeconds":5,"waitMilliseconds":0}} - ] -} diff --git a/shared/fixtures/github/pr-checkout-plan-v1.json b/shared/fixtures/github/pr-checkout-plan-v1.json deleted file mode 100644 index 4c14d854a9..0000000000 --- a/shared/fixtures/github/pr-checkout-plan-v1.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "errorCodes": {"branchExists":"git_branch_exists","checkoutChanged":"git_checkout_changed"}, - "cases": [ - {"name":"ordinary branch", "request":{"number":42,"headRef":"feature/my-change","branchExists":false}, "expected":{"allowed":true,"branch":"pr/42-feature-my-change","conflict":null,"actions":["fetchPullRequest","createBranch"]}}, - {"name":"existing local branch must not be reset", "request":{"number":42,"headRef":"feature/my-change","branchExists":true}, "expected":{"allowed":false,"branch":"pr/42-feature-my-change","conflict":"branchExists","actions":[]}}, - {"name":"invalid branch characters are bounded", "request":{"number":7,"headRef":"..// ","branchExists":false}, "expected":{"allowed":true,"branch":"pr/7-head","conflict":null,"actions":["fetchPullRequest","createBranch"]}}, - {"name":"git lock suffix is not created", "request":{"number":2,"headRef":"topic.lock","branchExists":false}, "expected":{"allowed":true,"branch":"pr/2-topic.lock-head","conflict":null,"actions":["fetchPullRequest","createBranch"]}} - ] -} diff --git a/shared/fixtures/github/pull-request-v1.json b/shared/fixtures/github/pull-request-v1.json deleted file mode 100644 index 6cd68c306f..0000000000 --- a/shared/fixtures/github/pull-request-v1.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "schemaVersion": 1, - "repository": { - "name": "codex", - "owner": "openai" - }, - "pullRequest": { - "assignees": [ - { - "avatarUrl": null, - "login": "amy", - "url": "https://github.com/amy" - }, - { - "avatarUrl": null, - "login": "zoe", - "url": "https://github.com/zoe" - } - ], - "baseRef": "main", - "baseRepository": "openai/codex", - "body": "Ready for review", - "commentsCount": 1, - "createdAt": "2026-01-01T00:00:00Z", - "headRef": "feature/github", - "headRepository": "octocat/codex", - "isDraft": false, - "isMerged": false, - "labels": [ - { - "color": "000000", - "name": "alpha" - }, - { - "color": "ffffff", - "name": "zeta" - } - ], - "number": 7, - "state": "open", - "title": "GitHub integration", - "updatedAt": "2026-01-02T00:00:00Z", - "url": "https://github.com/openai/codex/pull/7" - } -} diff --git a/shared/fixtures/history/basic.json b/shared/fixtures/history/basic.json deleted file mode 100644 index a982e87b93..0000000000 --- a/shared/fixtures/history/basic.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "history-basic", - "path": "src/Main.java", - "reasons": ["projectBaseline", "saved", "beforeBatchReplace", "restored"], - "rules": { - "deduplicateLatestContent": true, - "maximumEntriesPerFile": 100, - "retentionDays": 30, - "corruptMetadataIsIgnored": true - } -} diff --git a/shared/fixtures/history/event-plan-v1.json b/shared/fixtures/history/event-plan-v1.json deleted file mode 100644 index 3ee66f9ee9..0000000000 --- a/shared/fixtures/history/event-plan-v1.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "schemaVersion": 1, - "events": [ - { - "event": "save", - "snapshots": [ - { - "source": "beforeChange", - "reason": "saved" - }, - { - "source": "afterChange", - "reason": "saved" - } - ] - }, - { - "event": "autoSave", - "snapshots": [ - { - "source": "beforeChange", - "reason": "saved" - }, - { - "source": "afterChange", - "reason": "saved" - } - ] - }, - { - "event": "restore", - "snapshots": [ - { - "source": "beforeChange", - "reason": "restored" - } - ] - }, - { - "event": "manual", - "snapshots": [ - { - "source": "afterChange", - "reason": "saved" - } - ] - }, - { - "event": "unsavedDiscard", - "snapshots": [ - { - "source": "editorBuffer", - "reason": "unsavedDiscard" - } - ] - }, - { - "event": "externalChange", - "snapshots": [ - { - "source": "afterChange", - "reason": "externalChange" - } - ] - }, - { - "event": "beforeRename", - "snapshots": [ - { - "source": "beforeChange", - "reason": "beforeRename" - } - ] - }, - { - "event": "beforeBatchReplace", - "snapshots": [ - { - "source": "beforeChange", - "reason": "beforeBatchReplace" - } - ] - } - ], - "unknownEvents": [ - "", - "rename", - "Save" - ] -} diff --git a/shared/fixtures/history/relocation-v1.json b/shared/fixtures/history/relocation-v1.json deleted file mode 100644 index bc2673de65..0000000000 --- a/shared/fixtures/history/relocation-v1.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "cases": [ - { "source": "archive", "destination": "archive-old", "files": ["archive/notes.txt", "archive/deep/draft.txt"] }, - { "source": "archive", "destination": "bucket/archive", "files": ["archive/notes.txt", "archive/deep/draft.txt"] }, - { "source": "archive/notes.txt", "destination": "archive/renamed.txt", "files": ["archive/notes.txt"] }, - { "source": "archive/notes.txt", "destination": "bucket/notes.txt", "files": ["archive/notes.txt"] } - ], - "unaffected": "archive-other/notes.txt" -} diff --git a/shared/fixtures/ide-api/calls.json b/shared/fixtures/ide-api/calls.json deleted file mode 100644 index 44ccd6cdce..0000000000 --- a/shared/fixtures/ide-api/calls.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "version": 1, - "accepted": [ - { - "name": "lithe_project_inspect", - "arguments": {} - }, - { - "name": "lithe_environment_configure", - "arguments": { - "javaHomePath": "", - "mavenExecutablePath": "mvnw" - } - }, - { - "name": "lithe_build_execute", - "arguments": { - "instanceID": "maven@.", - "taskID": "custom", - "projectID": "services/api", - "userArguments": [ - "clean", - "verify" - ] - } - }, - { - "name": "lithe_run_start", - "arguments": { - "configurationID": "service-api" - } - }, - { - "name": "lithe_operation_output", - "arguments": { - "operationID": "run:fixture-execution" - } - }, - { - "name": "lithe_build_inspect", - "arguments": {} - }, - { - "name": "lithe_build_reload", - "arguments": { - "instanceID": "maven@." - } - }, - { - "name": "lithe_maven_execute", - "arguments": { - "goals": [ - "clean", - "verify" - ], - "modulePath": "services/api" - } - } - ], - "rejected": [ - { - "name": "lithe_environment_configure", - "arguments": { - "apiKey": "never-return-a-secret" - } - }, - { - "name": "lithe_build_execute", - "arguments": { - "instanceID": "maven@.", - "taskID": "verify", - "command": "mvn" - } - }, - { - "name": "lithe_build_execute", - "arguments": { - "instanceID": "maven@.", - "taskID": "verify", - "userArguments": [ - 42 - ] - } - }, - { - "name": "lithe_run_start", - "arguments": { - "configurationID": 23 - } - }, - { - "name": "lithe_operation_stop", - "arguments": { - "sessionID": "ambiguous-output-slot" - } - }, - { - "name": "lithe_maven_execute", - "arguments": { - "goals": [ - "verify" - ], - "modulePath": "../outside" - } - }, - { - "name": "lithe_maven_execute", - "arguments": { - "goals": [ - "verify && echo unexpected" - ] - } - } - ] -} diff --git a/shared/fixtures/ide-api/host-tool-exposure.json b/shared/fixtures/ide-api/host-tool-exposure.json deleted file mode 100644 index be938ef01a..0000000000 --- a/shared/fixtures/ide-api/host-tool-exposure.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "version": 1, - "macos": [ - { - "name": "lithe_project_inspect" - }, - { - "name": "lithe_run_list" - }, - { - "name": "lithe_run_start" - }, - { - "name": "lithe_run_restart" - }, - { - "name": "lithe_operations_list" - }, - { - "name": "lithe_operation_output" - }, - { - "name": "lithe_operation_stop" - }, - { - "name": "lithe_build_inspect" - }, - { - "name": "lithe_build_reload" - }, - { - "name": "lithe_build_configure" - }, - { - "name": "lithe_build_execute" - } - ], - "windows": [ - { - "name": "lithe_project_inspect" - }, - { - "name": "lithe_environment_inspect" - }, - { - "name": "lithe_environment_configure" - }, - { - "name": "lithe_run_list" - }, - { - "name": "lithe_run_start" - }, - { - "name": "lithe_run_restart" - }, - { - "name": "lithe_operations_list" - }, - { - "name": "lithe_operation_output" - }, - { - "name": "lithe_operation_stop" - }, - { - "name": "lithe_maven_inspect" - }, - { - "name": "lithe_maven_configure" - }, - { - "name": "lithe_maven_reload" - }, - { - "name": "lithe_maven_execute" - }, - { - "name": "lithe_build_inspect" - }, - { - "name": "lithe_build_reload" - }, - { - "name": "lithe_build_configure" - }, - { - "name": "lithe_build_execute" - } - ] -} diff --git a/shared/fixtures/ide-api/mcp-protocol.json b/shared/fixtures/ide-api/mcp-protocol.json deleted file mode 100644 index 3b8e32e052..0000000000 --- a/shared/fixtures/ide-api/mcp-protocol.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "version": 1, - "legacyProtocolVersion": "2025-11-25", - "modernProtocolVersion": "2026-07-28", - "cachePolicy": { - "ttlMs": 0, - "cacheScope": "private" - }, - "toolCount": 17, - "modes": [ - "legacy", - "modern", - "modern-after-initialize" - ], - "providerTools": [ - "lithe_build_inspect", - "lithe_build_reload", - "lithe_build_configure", - "lithe_build_execute" - ] -} diff --git a/shared/fixtures/java/basic.json b/shared/fixtures/java/basic.json deleted file mode 100644 index 989b30b8f3..0000000000 --- a/shared/fixtures/java/basic.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "Java structure", - "requests": [ - { - "command": "java.structure", - "payload": { - "source": "import a.A;\nimport b.B;\ninterface Service { String call(String value); }\n" - }, - "expected": { - "foldKind": "imports", - "syntaxRoles": [ - "functionDeclaration", - "keyword", - "parameter", - "punctuation", - "type" - ] - } - } - ] -} diff --git a/shared/fixtures/java/run-markers-v1.json b/shared/fixtures/java/run-markers-v1.json deleted file mode 100644 index 4679503154..0000000000 --- a/shared/fixtures/java/run-markers-v1.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "main-methods-including-nested-class", - "request": { - "mainMethods": [ - { - "mainClass": "demo.App", - "projectName": "app", - "range": { "startLine": 3, "startUtf16Column": 23, "endLine": 3, "endUtf16Column": 27 } - }, - { - "mainClass": "demo.App$Inner", - "projectName": "app", - "range": { "startLine": 6, "startUtf16Column": 27, "endLine": 6, "endUtf16Column": 31 } - } - ] - }, - "expected": { - "markers": [ - { "line": 3, "endLine": 3, "kind": "main", "label": "App.main()", "mainClass": "demo.App", "projectName": "app", "status": "none" }, - { "line": 6, "endLine": 6, "kind": "main", "label": "Inner.main()", "mainClass": "demo.App$Inner", "projectName": "app", "status": "none" } - ] - } - }, - { - "name": "nested-test-classes-with-recorded-outcomes", - "request": { - "testItems": [ - { - "id": "app@demo.OrderTest", - "label": "OrderTest", - "fullName": "demo.OrderTest", - "projectName": "app", - "testKind": 0, - "testLevel": 5, - "range": { "startLine": 5, "startUtf16Column": 6, "endLine": 14, "endUtf16Column": 1 }, - "children": [ - { - "id": "app@demo.OrderTest#creates()", - "label": "creates()", - "fullName": "demo.OrderTest#creates()", - "projectName": "app", - "testKind": 0, - "testLevel": 6, - "range": { "startLine": 7, "startUtf16Column": 9, "endLine": 7, "endUtf16Column": 21 }, - "children": [] - }, - { - "id": "app@demo.OrderTest$Refunds", - "label": "Refunds", - "fullName": "demo.OrderTest$Refunds", - "projectName": "app", - "testKind": 0, - "testLevel": 5, - "range": { "startLine": 10, "startUtf16Column": 10, "endLine": 13, "endUtf16Column": 5 }, - "children": [ - { - "id": "app@demo.OrderTest$Refunds#refunds()", - "label": "refunds()", - "fullName": "demo.OrderTest$Refunds#refunds()", - "projectName": "app", - "testKind": 0, - "testLevel": 6, - "range": { "startLine": 12, "startUtf16Column": 13, "endLine": 12, "endUtf16Column": 25 }, - "children": [] - } - ] - } - ] - } - ], - "testCases": [ - { "className": "demo.OrderTest", "method": "creates", "status": "passed", "message": null, "invocations": 1 }, - { "className": "demo.OrderTest$Refunds", "method": "refunds", "status": "failed", "message": "expected refund", "invocations": 1 } - ] - }, - "expected": { - "markers": [ - { "line": 5, "endLine": 14, "kind": "testClass", "label": "OrderTest", "testClass": "demo.OrderTest", "testItemId": "app@demo.OrderTest", "status": "failed" }, - { "line": 7, "endLine": 7, "kind": "testMethod", "label": "OrderTest.creates", "testClass": "demo.OrderTest", "testMethod": "creates", "testItemId": "app@demo.OrderTest#creates()", "status": "passed" }, - { "line": 10, "endLine": 13, "kind": "testClass", "label": "Refunds", "testClass": "demo.OrderTest$Refunds", "testItemId": "app@demo.OrderTest$Refunds", "status": "failed" }, - { "line": 12, "endLine": 12, "kind": "testMethod", "label": "Refunds.refunds", "testClass": "demo.OrderTest$Refunds", "testMethod": "refunds", "testItemId": "app@demo.OrderTest$Refunds#refunds()", "status": "failed" } - ] - } - }, - { - "name": "nested-test-classes-with-canonical-provider-outcomes", - "request": { - "testItems": [ - { - "id": "app@demo.OrderTest", - "label": "OrderTest", - "fullName": "demo.OrderTest", - "projectName": "app", - "testKind": 0, - "testLevel": 5, - "range": { - "startLine": 5, - "startUtf16Column": 6, - "endLine": 14, - "endUtf16Column": 1 - }, - "children": [ - { - "id": "app@demo.OrderTest#creates()", - "label": "creates()", - "fullName": "demo.OrderTest#creates()", - "projectName": "app", - "testKind": 0, - "testLevel": 6, - "range": { - "startLine": 7, - "startUtf16Column": 9, - "endLine": 7, - "endUtf16Column": 21 - }, - "children": [] - }, - { - "id": "app@demo.OrderTest$Refunds", - "label": "Refunds", - "fullName": "demo.OrderTest$Refunds", - "projectName": "app", - "testKind": 0, - "testLevel": 5, - "range": { - "startLine": 10, - "startUtf16Column": 10, - "endLine": 13, - "endUtf16Column": 5 - }, - "children": [ - { - "id": "app@demo.OrderTest$Refunds#refunds()", - "label": "refunds()", - "fullName": "demo.OrderTest$Refunds#refunds()", - "projectName": "app", - "testKind": 0, - "testLevel": 6, - "range": { - "startLine": 12, - "startUtf16Column": 13, - "endLine": 12, - "endUtf16Column": 25 - }, - "children": [] - } - ] - } - ] - } - ], - "testCases": [ - { - "status": "passed", - "message": null, - "invocations": 1, - "suite": "demo.OrderTest", - "case": "creates" - }, - { - "status": "failed", - "message": "expected refund", - "invocations": 1, - "suite": "demo.OrderTest$Refunds", - "case": "refunds" - } - ] - }, - "expected": { - "markers": [ - { - "line": 5, - "endLine": 14, - "kind": "testClass", - "label": "OrderTest", - "testClass": "demo.OrderTest", - "testItemId": "app@demo.OrderTest", - "status": "failed" - }, - { - "line": 7, - "endLine": 7, - "kind": "testMethod", - "label": "OrderTest.creates", - "testClass": "demo.OrderTest", - "testMethod": "creates", - "testItemId": "app@demo.OrderTest#creates()", - "status": "passed" - }, - { - "line": 10, - "endLine": 13, - "kind": "testClass", - "label": "Refunds", - "testClass": "demo.OrderTest$Refunds", - "testItemId": "app@demo.OrderTest$Refunds", - "status": "failed" - }, - { - "line": 12, - "endLine": 12, - "kind": "testMethod", - "label": "Refunds.refunds", - "testClass": "demo.OrderTest$Refunds", - "testMethod": "refunds", - "testItemId": "app@demo.OrderTest$Refunds#refunds()", - "status": "failed" - } - ] - } - } - ] -} diff --git a/shared/fixtures/keymap/binding-conflicts-v1.json b/shared/fixtures/keymap/binding-conflicts-v1.json deleted file mode 100644 index 94c8cb0683..0000000000 --- a/shared/fixtures/keymap/binding-conflicts-v1.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "modifier-order-and-aliases-are-the-same-binding", - "platform": "windows", - "layers": [ - { "entries": [ - { "command": "a", "key": "ctrl+shift+p" }, - { "command": "b", "key": "Shift+CTRL+P" }, - { "command": "c", "key": "cmd+shift+p" }, - { "command": "d", "key": "ctrl+alt+p" } - ] } - ], - "expected": { - "conflicts": [{ "key": "ctrl+shift+p", "when": null, "commands": ["a", "b", "c"] }], - "invalid": [] - } - }, - { - "name": "cmd-is-meta-on-macos-and-ctrl-on-windows", - "platform": "macos", - "layers": [ - { "entries": [ - { "command": "a", "key": "cmd+s" }, - { "command": "b", "key": "ctrl+s" }, - { "command": "c", "key": "meta+s" } - ] } - ], - "expected": { - "conflicts": [{ "key": "meta+s", "when": null, "commands": ["a", "c"] }], - "invalid": [] - } - }, - { - "name": "user-override-replaces-default-so-default-no-longer-conflicts", - "platform": "windows", - "layers": [ - { "entries": [ - { "command": "a", "key": "ctrl+k" }, - { "command": "b", "key": "ctrl+j" } - ] }, - { "entries": [{ "command": "b", "key": "ctrl+m" }] } - ], - "expected": { "conflicts": [], "invalid": [] } - }, - { - "name": "user-binding-collides-with-default-and-preset-bindings", - "platform": "windows", - "layers": [ - { "entries": [ - { "command": "default.only", "key": "ctrl+d" }, - { "command": "preset.replaced", "key": "ctrl+r" }, - { "command": "preset.disabled", "key": "ctrl+x" } - ] }, - { "entries": [{ "command": "preset.replaced", "key": "ctrl+e" }], "disabledCommands": ["preset.disabled"] }, - { "entries": [ - { "command": "user.one", "key": "ctrl+e" }, - { "command": "user.two", "key": "ctrl+x" }, - { "command": "user.three", "key": "ctrl+d" } - ] } - ], - "expected": { - "conflicts": [ - { "key": "ctrl+d", "when": null, "commands": ["default.only", "user.three"] }, - { "key": "ctrl+e", "when": null, "commands": ["preset.replaced", "user.one"] } - ], - "invalid": [] - } - }, - { - "name": "different-when-clauses-do-not-conflict-but-whitespace-does-not-matter", - "platform": "windows", - "layers": [ - { "entries": [ - { "command": "a", "key": "ctrl+t", "when": "editorFocus" }, - { "command": "b", "key": "ctrl+t", "when": "terminalFocus" }, - { "command": "c", "key": "ctrl+t", "when": "editorFocus " }, - { "command": "d", "key": "ctrl+t" }, - { "command": "e", "key": "ctrl+t", "when": " " } - ] } - ], - "expected": { - "conflicts": [ - { "key": "ctrl+t", "when": null, "commands": ["d", "e"] }, - { "key": "ctrl+t", "when": "editorFocus", "commands": ["a", "c"] } - ], - "invalid": [] - } - }, - { - "name": "disabled-entries-and-same-command-repeats-never-conflict", - "platform": "windows", - "layers": [ - { "entries": [ - { "command": "a", "key": "ctrl+g" }, - { "command": "a", "key": "ctrl+g" }, - { "command": "b", "key": "ctrl+g", "enabled": false } - ] } - ], - "expected": { "conflicts": [], "invalid": [] } - }, - { - "name": "disabled-user-entry-unbinds-the-default", - "platform": "windows", - "layers": [ - { "entries": [{ "command": "a", "key": "ctrl+g" }, { "command": "b", "key": "ctrl+h" }] }, - { "entries": [{ "command": "a", "key": "ctrl+h", "enabled": false }] } - ], - "expected": { "conflicts": [], "invalid": [] } - }, - { - "name": "chords-compare-every-step", - "platform": "windows", - "layers": [ - { "entries": [ - { "command": "a", "key": "ctrl+k ctrl+t" }, - { "command": "b", "key": "Ctrl+K Ctrl+T" }, - { "command": "c", "key": "ctrl+k ctrl+y" } - ] } - ], - "expected": { - "conflicts": [{ "key": "ctrl+k ctrl+t", "when": null, "commands": ["a", "b"] }], - "invalid": [] - } - }, - { - "name": "double-shift-gesture-conflicts-with-itself-only", - "platform": "macos", - "layers": [ - { "entries": [ - { "command": "search", "key": "doubleshift" }, - { "command": "other", "key": "doubleshift" }, - { "command": "plain", "key": "shift+a" } - ] } - ], - "expected": { - "conflicts": [{ "key": "doubleshift", "when": null, "commands": ["other", "search"] }], - "invalid": [] - } - }, - { - "name": "invalid-bindings-are-reported-and-skipped", - "platform": "windows", - "layers": [ - { "entries": [ - { "command": "a", "key": "" }, - { "command": "b", "key": "ctrl+" }, - { "command": "c", "key": "ctrl+a+b" }, - { "command": "d", "key": "ctrl++" }, - { "command": "e", "key": "ctrl++" } - ] } - ], - "expected": { - "conflicts": [{ "key": "ctrl++", "when": null, "commands": ["d", "e"] }], - "invalid": [ - { "command": "a", "key": "", "code": "empty" }, - { "command": "b", "key": "ctrl+", "code": "empty_key" }, - { "command": "c", "key": "ctrl+a+b", "code": "multiple_keys" } - ] - } - } - ] -} diff --git a/shared/fixtures/keymap/context-v1.json b/shared/fixtures/keymap/context-v1.json deleted file mode 100644 index 0becc41429..0000000000 --- a/shared/fixtures/keymap/context-v1.json +++ /dev/null @@ -1,278 +0,0 @@ -{ - "version": 1, - "bundledPlans": { - "editorFocus": { - "keys": [ - "editorFocus" - ], - "values": [ - false, - true - ] - }, - "!editorFocus": { - "keys": [ - "editorFocus" - ], - "values": [ - true, - false - ] - }, - "terminalFocus": { - "keys": [ - "terminalFocus" - ], - "values": [ - false, - true - ] - }, - "!terminalFocus": { - "keys": [ - "terminalFocus" - ], - "values": [ - true, - false - ] - }, - "fileOpenTargetFocus": { - "keys": [ - "fileOpenTargetFocus" - ], - "values": [ - false, - true - ] - }, - "editorFocus && vimMode": { - "keys": [ - "editorFocus", - "vimMode" - ], - "values": [ - false, - false, - false, - true - ] - } - }, - "cases": [ - { - "name": "comparison consumes both boolean operands", - "expression": "false == false", - "context": {}, - "matches": true - }, - { - "name": "different strings are not equal", - "expression": "'a' == 'b'", - "context": {}, - "matches": false - }, - { - "name": "empty", - "expression": "", - "context": {}, - "matches": true - }, - { - "name": "whitespace", - "expression": " \n\t", - "context": {}, - "matches": true - }, - { - "name": "missing context", - "expression": "editorFocus", - "context": {}, - "matches": false - }, - { - "name": "focused", - "expression": "editorFocus", - "context": { - "editorFocus": true - }, - "matches": true - }, - { - "name": "negation", - "expression": "!editorFocus", - "context": {}, - "matches": true - }, - { - "name": "and", - "expression": "editorFocus && !vimMode", - "context": { - "editorFocus": true, - "vimMode": false - }, - "matches": true - }, - { - "name": "or precedence", - "expression": "editorFocus || vimMode && terminalFocus", - "context": { - "editorFocus": true - }, - "matches": true - }, - { - "name": "parentheses", - "expression": "(editorFocus || vimMode) && terminalFocus", - "context": { - "editorFocus": true - }, - "matches": false - }, - { - "name": "boolean equality", - "expression": "editorFocus == true", - "context": { - "editorFocus": true - }, - "matches": true - }, - { - "name": "boolean inequality", - "expression": "editorFocus != false", - "context": { - "editorFocus": true - }, - "matches": true - }, - { - "name": "string equality", - "expression": "'中文😀' == \"中文😀\"", - "context": {}, - "matches": true - }, - { - "name": "string versus boolean", - "expression": "editorFocus == 'true'", - "context": { - "editorFocus": true - }, - "matches": false - }, - { - "name": "escaped quote", - "expression": "'can\\'t' == \"can't\"", - "context": {}, - "matches": true - }, - { - "name": "dotted key", - "expression": "editor.focus && true", - "context": { - "editor.focus": true - }, - "matches": true - }, - { - "name": "quoted truthiness", - "expression": "'enabled'", - "context": {}, - "matches": true - }, - { - "name": "reject @", - "expression": "@", - "error": "invalid_character" - }, - { - "name": "reject &", - "expression": "&", - "error": "invalid_character" - }, - { - "name": "reject |", - "expression": "|", - "error": "invalid_character" - }, - { - "name": "reject =", - "expression": "=", - "error": "invalid_character" - }, - { - "name": "reject -", - "expression": "-", - "error": "invalid_character" - }, - { - "name": "reject editorFocus & vimMode", - "expression": "editorFocus & vimMode", - "error": "invalid_character" - }, - { - "name": "reject 'unfinished", - "expression": "'unfinished", - "error": "unclosed_string" - }, - { - "name": "reject (editorFocus", - "expression": "(editorFocus", - "error": "expected_closing_paren" - }, - { - "name": "reject editorFocus &&", - "expression": "editorFocus &&", - "error": "expected_operand" - }, - { - "name": "reject !", - "expression": "!", - "error": "expected_operand" - }, - { - "name": "reject ()", - "expression": "()", - "error": "expected_operand" - }, - { - "name": "reject editorFocus vimMode", - "expression": "editorFocus vimMode", - "error": "trailing_token" - }, - { - "name": "reject editorFocus)", - "expression": "editorFocus)", - "error": "trailing_token" - }, - { - "name": "reject false == true == false", - "expression": "false == true == false", - "error": "trailing_token" - }, - { - "name": "reject true || @", - "expression": "true || @", - "error": "invalid_character" - }, - { - "name": "reject '\\q'", - "expression": "'\\q'", - "error": "invalid_escape" - }, - { - "name": "length limit", - "expression": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "error": "too_long" - }, - { - "name": "nesting limit", - "expression": "(((((((((((((((((((((((((((((((((true)))))))))))))))))))))))))))))))))", - "error": "too_complex" - }, - { - "name": "key limit", - "expression": "key0 || key1 || key2 || key3 || key4 || key5 || key6 || key7 || key8 || key9 || key10 || key11 || key12", - "error": "too_complex" - } - ] -} diff --git a/shared/fixtures/keymap/import-plan-v1.json b/shared/fixtures/keymap/import-plan-v1.json deleted file mode 100644 index b9ee4e9fe9..0000000000 --- a/shared/fixtures/keymap/import-plan-v1.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "An imported key displaces only that key from an untouched default", - "request": { - "current": [ - {"commandID": "debug-resume", "customized": false, "keys": [{"key": "f9", "modifiers": []}, {"key": "r", "modifiers": ["meta", "alt"]}]}, - {"commandID": "toggle-breakpoint", "customized": false, "keys": [{"key": "f8", "modifiers": ["control"]}]} - ], - "incoming": {"bindings": [{"commandID": "toggle-breakpoint", "keys": [{"key": "f9", "modifiers": []}]}]} - }, - "expected": {"displaced": [{"commandID": "debug-resume", "keys": [{"key": "f9", "modifiers": []}]}], "conflicts": []} - }, - { - "name": "A user customized owner is not displaced", - "request": { - "current": [ - {"commandID": "debug-resume", "customized": true, "keys": [{"key": "f9", "modifiers": []}]}, - {"commandID": "toggle-breakpoint", "customized": false, "keys": []} - ], - "incoming": {"bindings": [{"commandID": "toggle-breakpoint", "keys": [{"key": "f9", "modifiers": []}]}]} - }, - "expected": {"displaced": [], "conflicts": [{"commandID": "toggle-breakpoint", "ownerID": "debug-resume", "key": {"key": "f9", "modifiers": []}}]} - }, - { - "name": "Two imported actions cannot own the same key", - "request": { - "current": [{"commandID": "one", "customized": false, "keys": []}, {"commandID": "two", "customized": false, "keys": []}], - "incoming": {"bindings": [{"commandID": "one", "keys": [{"key": "f3", "modifiers": []}]}, {"commandID": "two", "keys": [{"key": "f3", "modifiers": []}]}]} - }, - "expected": {"displaced": [], "conflicts": [{"commandID": "two", "ownerID": "one", "key": {"key": "f3", "modifiers": []}}]} - }, - { - "name": "A custom conflict prevents otherwise valid default displacements", - "request": { - "current": [ - {"commandID": "default-owner", "customized": false, "keys": [{"key": "f3", "modifiers": []}]}, - {"commandID": "custom-owner", "customized": true, "keys": [{"key": "f4", "modifiers": []}]}, - {"commandID": "imported", "customized": false, "keys": []} - ], - "incoming": {"bindings": [{"commandID": "imported", "keys": [{"key": "f3", "modifiers": []}, {"key": "f4", "modifiers": []}]}]} - }, - "expected": {"displaced": [], "conflicts": [{"commandID": "imported", "ownerID": "custom-owner", "key": {"key": "f4", "modifiers": []}}]} - }, - { - "name": "A swap does not displace either imported action", - "request": { - "current": [{"commandID": "one", "customized": true, "keys": [{"key": "f3", "modifiers": []}]}, {"commandID": "two", "customized": true, "keys": [{"key": "f4", "modifiers": []}]}], - "incoming": {"bindings": [{"commandID": "one", "keys": [{"key": "f4", "modifiers": []}]}, {"commandID": "two", "keys": [{"key": "f3", "modifiers": []}]}]} - }, - "expected": {"displaced": [], "conflicts": []} - }, - { - "name": "An unrelated native-only key does not block an import", - "request": { - "current": [{"commandID": "existing", "customized": true, "keys": [{"key": "native-special", "modifiers": []}]}, {"commandID": "imported", "customized": false, "keys": []}], - "incoming": {"bindings": [{"commandID": "imported", "keys": [{"key": "f9", "modifiers": []}]}]} - }, - "expected": {"displaced": [], "conflicts": []} - }, - { - "name": "A provider cannot name an action absent from the current catalog", - "request": {"current": [{"commandID": "one", "customized": false, "keys": []}], "incoming": {"bindings": [{"commandID": "other", "keys": []}]}} - } - ] -} diff --git a/shared/fixtures/keymap/import-provider-v1.json b/shared/fixtures/keymap/import-provider-v1.json deleted file mode 100644 index d21e6b8fd2..0000000000 --- a/shared/fixtures/keymap/import-provider-v1.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "Different sources supply the same normalized action and keys", - "request": { - "commandIDs": ["find-next", "toggle-breakpoint"], - "reply": {"bindings": [ - {"commandID": "toggle-breakpoint", "keys": [{"key": "b", "modifiers": ["meta", "alt"]}]}, - {"commandID": "find-next", "keys": [{"key": "f3", "modifiers": []}]} - ]} - }, - "expected": {"bindings": [ - {"commandID": "find-next", "keys": [{"key": "f3", "modifiers": []}]}, - {"commandID": "toggle-breakpoint", "keys": [{"key": "b", "modifiers": ["alt", "meta"]}]} - ]} - }, - { - "name": "An explicit empty binding is retained", - "request": {"commandIDs": ["find-next"], "reply": {"bindings": [{"commandID": "find-next", "keys": []}]}}, - "expected": {"bindings": [{"commandID": "find-next", "keys": []}]} - }, - { - "name": "Space with an action modifier remains assignable", - "request": {"commandIDs": ["find-next"], "reply": {"bindings": [{"commandID": "find-next", "keys": [{"key": "space", "modifiers": ["control"]}]}]}}, - "expected": {"bindings": [{"commandID": "find-next", "keys": [{"key": "space", "modifiers": ["control"]}]}]} - }, - { - "name": "Portable key names include common Windows navigation keys", - "request": {"commandIDs": ["navigation"], "reply": {"bindings": [{"commandID": "navigation", "keys": [ - {"key": "f24", "modifiers": []}, {"key": "pageup", "modifiers": ["control"]}, - {"key": "backspace", "modifiers": ["alt"]} - ]}]}}, - "expected": {"bindings": [{"commandID": "navigation", "keys": [ - {"key": "f24", "modifiers": []}, {"key": "pageup", "modifiers": ["control"]}, - {"key": "backspace", "modifiers": ["alt"]} - ]}]} - }, - { - "name": "Primary order and cross-action conflicts remain available to the host", - "request": {"commandIDs": ["one", "two"], "reply": {"bindings": [ - {"commandID": "one", "keys": [{"key": "f9", "modifiers": []}, {"key": "f3", "modifiers": []}]}, - {"commandID": "two", "keys": [{"key": "f9", "modifiers": []}]} - ]}}, - "expected": {"bindings": [ - {"commandID": "one", "keys": [{"key": "f9", "modifiers": []}, {"key": "f3", "modifiers": []}]}, - {"commandID": "two", "keys": [{"key": "f9", "modifiers": []}]} - ]} - }, - { - "name": "A provider cannot inject an unknown action", - "request": {"commandIDs": ["find-next"], "reply": {"bindings": [{"commandID": "other", "keys": [{"key": "f3", "modifiers": []}]}]}} - }, - { - "name": "Duplicate action entries cannot silently overwrite each other", - "request": {"commandIDs": ["find-next"], "reply": {"bindings": [{"commandID": "find-next", "keys": []}, {"commandID": "find-next", "keys": []}]}} - }, - { - "name": "Unmodified text input cannot become a global shortcut", - "request": {"commandIDs": ["find-next"], "reply": {"bindings": [{"commandID": "find-next", "keys": [{"key": "a", "modifiers": []}]}]}} - }, - { - "name": "Named space is text input even when combined with shift", - "request": {"commandIDs": ["find-next"], "reply": {"bindings": [{"commandID": "find-next", "keys": [{"key": "space", "modifiers": ["shift"]}]}]}} - }, - { - "name": "Repeated modifiers are invalid", - "request": {"commandIDs": ["find-next"], "reply": {"bindings": [{"commandID": "find-next", "keys": [{"key": "g", "modifiers": ["meta", "meta"]}]}]}} - }, - { - "name": "Modifier order cannot disguise a duplicate shortcut", - "request": {"commandIDs": ["find-next"], "reply": {"bindings": [{"commandID": "find-next", "keys": [ - {"key": "g", "modifiers": ["meta", "alt"]}, - {"key": "g", "modifiers": ["alt", "meta"]} - ]}]}} - }, - { - "name": "Conditions cannot be silently discarded", - "request": {"commandIDs": ["find-next"], "reply": {"bindings": [{"commandID": "find-next", "keys": [{"key": "g", "modifiers": ["meta"], "when": "editorFocus"}]}]}} - }, - { - "name": "Multi-stroke keys cannot be silently truncated", - "request": {"commandIDs": ["find-next"], "reply": {"bindings": [{"commandID": "find-next", "keys": [{"key": "g g", "modifiers": ["meta"]}]}]}} - } - ] -} diff --git a/shared/fixtures/keymap/modifier-gesture-v1.json b/shared/fixtures/keymap/modifier-gesture-v1.json deleted file mode 100644 index d82bbda1a8..0000000000 --- a/shared/fixtures/keymap/modifier-gesture-v1.json +++ /dev/null @@ -1,612 +0,0 @@ -{ - "version": 1, - "thresholdSeconds": 0.35, - "sequences": [ - { - "name": "two-standalone-taps-trigger", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.05, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.2, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.25, - "expected": true - } - ] - }, - { - "name": "trigger-consumes-the-pending-tap", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.05, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.2, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.25, - "expected": true - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.3, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.35, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.4, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.45, - "expected": true - } - ] - }, - { - "name": "typing-uppercase-between-press-and-release-is-not-a-tap", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "keyDown" - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.05, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.2, - "expected": false - }, - { - "event": "keyDown" - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.25, - "expected": false - } - ] - }, - { - "name": "key-between-two-taps-cancels", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 2.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 2.05, - "expected": false - }, - { - "event": "keyDown" - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 2.2, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 2.25, - "expected": false - } - ] - }, - { - "name": "second-tap-after-threshold-starts-a-new-gesture", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.05, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.5, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.55, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.7, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.75, - "expected": true - } - ] - }, - { - "name": "interval-equal-to-threshold-does-not-trigger", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.2, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.35, - "expected": false - } - ] - }, - { - "name": "interval-just-under-threshold-triggers", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.2, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.349, - "expected": true - } - ] - }, - { - "name": "backwards-clock-never-triggers", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 5.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 5.0, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 4.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 4.1, - "expected": false - } - ] - }, - { - "name": "other-modifier-down-with-shift-is-not-standalone", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": true, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.05, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.2, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.25, - "expected": false - } - ] - }, - { - "name": "other-modifier-added-while-shift-is-held-cancels", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.05, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.2, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": true, - "timestamp": 1.22, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.25, - "expected": false - } - ] - }, - { - "name": "other-modifier-on-release-cancels-the-first-tap", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": true, - "timestamp": 1.05, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.2, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.25, - "expected": false - } - ] - }, - { - "name": "other-modifier-change-without-shift-forgets-the-tap", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.05, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": true, - "timestamp": 1.1, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.2, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.25, - "expected": false - } - ] - }, - { - "name": "held-shift-repeat-events-are-ignored", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.01, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.05, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.2, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.21, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.25, - "expected": true - } - ] - }, - { - "name": "release-without-press-is-ignored", - "steps": [ - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.1, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.15, - "expected": false - } - ] - }, - { - "name": "reset-drops-pending-state", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.05, - "expected": false - }, - { - "event": "reset" - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.2, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.25, - "expected": false - } - ] - }, - { - "name": "reset-while-shift-is-down-forgets-the-press", - "steps": [ - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.0, - "expected": false - }, - { - "event": "reset" - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.05, - "expected": false - }, - { - "event": "flags", - "shift": true, - "otherModifiers": false, - "timestamp": 1.1, - "expected": false - }, - { - "event": "flags", - "shift": false, - "otherModifiers": false, - "timestamp": 1.15, - "expected": false - } - ] - } - ] -} diff --git a/shared/fixtures/keymap/provider-negotiation-v1.json b/shared/fixtures/keymap/provider-negotiation-v1.json deleted file mode 100644 index 1dc88cc190..0000000000 --- a/shared/fixtures/keymap/provider-negotiation-v1.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": 1, - "cases": [ - {"name": "one selected provider", "offered": ["first", "second"], "answer": {"version": 0, "providers": ["second"]}, "expected": ["second"]}, - {"name": "selection is ordered deterministically", "offered": ["first", "second"], "answer": {"version": 0, "providers": ["second", "first"]}, "expected": ["first", "second"]}, - {"name": "future optional answer fields do not prevent negotiation", "offered": ["first"], "answer": {"version": 0, "providers": ["first"], "future": true}, "expected": ["first"]}, - {"name": "unsupported version", "offered": ["first"], "answer": {"version": 1, "providers": ["first"]}, "expected": null}, - {"name": "unknown provider", "offered": ["first"], "answer": {"version": 0, "providers": ["first", "other"]}, "expected": null}, - {"name": "duplicate provider", "offered": ["first"], "answer": {"version": 0, "providers": ["first", "first"]}, "expected": null}, - {"name": "empty selection", "offered": ["first"], "answer": {"version": 0, "providers": []}, "expected": null}, - {"name": "non-string provider", "offered": ["first"], "answer": {"version": 0, "providers": [3]}, "expected": null}, - {"name": "no providers offered", "offered": [], "answer": {"version": 0, "providers": ["first"]}, "expected": null} - ] -} diff --git a/shared/fixtures/keymap/source-plans-v1.json b/shared/fixtures/keymap/source-plans-v1.json deleted file mode 100644 index 0b0de22418..0000000000 --- a/shared/fixtures/keymap/source-plans-v1.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "limits": { - "selectors": 16, - "probes": 16, - "files": 128, - "fileBytes": 1048576, - "totalBytes": 8388608, - "chunkBytes": 131072, - "directoryEntries": 4096, - "directoryMatches": 64 - }, - "cases": [ - {"providerID": "first", "expected": {"recognition": [{"kind": "file", "path": "bindings.json"}, {"kind": "root", "base": "userConfig", "components": ["FirstEditor", "User"]}, {"kind": "root", "base": "userConfig", "components": ["FirstEditor", "User", "profiles", "*"]}], "inputs": [{"kind": "file", "path": "bindings.json"}]}}, - {"providerID": "second", "expected": {"recognition": [{"kind": "directory", "path": "keymaps"}], "inputs": [{"kind": "file", "path": "options/map.xml"}, {"kind": "directory", "path": "keymaps", "extension": "xml"}]}}, - {"providerID": "unlisted", "expected": null} - ] -} diff --git a/shared/fixtures/lsp/activation-policy-v1.json b/shared/fixtures/lsp/activation-policy-v1.json deleted file mode 100644 index 2caa80c42a..0000000000 --- a/shared/fixtures/lsp/activation-policy-v1.json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "description": "lsp.activationPolicy: 3 consecutive failures require an explicit retry; automatic starts wait 5000 ms after each failure. nowMs is a platform monotonic clock.", - "maxConsecutiveFailures": 3, - "failureCooldownMs": 5000, - "cases": [ - { - "name": "automatic start without history is allowed", - "request": { - "state": null, - "event": "automaticStart", - "nowMs": 1000 - }, - "response": { - "state": null, - "decision": "allow", - "retryAfterMs": null - } - }, - { - "name": "first failure starts the cooldown", - "request": { - "state": null, - "event": "startFailed", - "nowMs": 1000 - }, - "response": { - "state": { - "consecutiveFailures": 1, - "lastFailureAtMs": 1000 - }, - "decision": "wait", - "retryAfterMs": 5000 - } - }, - { - "name": "automatic start waits for the rest of the cooldown", - "request": { - "state": { - "consecutiveFailures": 1, - "lastFailureAtMs": 1000 - }, - "event": "automaticStart", - "nowMs": 5999 - }, - "response": { - "state": { - "consecutiveFailures": 1, - "lastFailureAtMs": 1000 - }, - "decision": "wait", - "retryAfterMs": 1 - } - }, - { - "name": "automatic start is allowed once the cooldown elapsed", - "request": { - "state": { - "consecutiveFailures": 1, - "lastFailureAtMs": 1000 - }, - "event": "automaticStart", - "nowMs": 6000 - }, - "response": { - "state": { - "consecutiveFailures": 1, - "lastFailureAtMs": 1000 - }, - "decision": "allow", - "retryAfterMs": null - } - }, - { - "name": "second failure restarts the cooldown", - "request": { - "state": { - "consecutiveFailures": 1, - "lastFailureAtMs": 1000 - }, - "event": "startFailed", - "nowMs": 7000 - }, - "response": { - "state": { - "consecutiveFailures": 2, - "lastFailureAtMs": 7000 - }, - "decision": "wait", - "retryAfterMs": 5000 - } - }, - { - "name": "third consecutive failure requires an explicit retry", - "request": { - "state": { - "consecutiveFailures": 2, - "lastFailureAtMs": 7000 - }, - "event": "startFailed", - "nowMs": 20000 - }, - "response": { - "state": { - "consecutiveFailures": 3, - "lastFailureAtMs": 20000 - }, - "decision": "explicitRetryRequired", - "retryAfterMs": null - } - }, - { - "name": "exhausted automatic starts never resume by waiting", - "request": { - "state": { - "consecutiveFailures": 3, - "lastFailureAtMs": 20000 - }, - "event": "automaticStart", - "nowMs": 999999 - }, - "response": { - "state": { - "consecutiveFailures": 3, - "lastFailureAtMs": 20000 - }, - "decision": "explicitRetryRequired", - "retryAfterMs": null - } - }, - { - "name": "explicit start clears the history", - "request": { - "state": { - "consecutiveFailures": 3, - "lastFailureAtMs": 20000 - }, - "event": "explicitStart", - "nowMs": 21000 - }, - "response": { - "state": null, - "decision": "allow", - "retryAfterMs": null - } - }, - { - "name": "ready session clears the history", - "request": { - "state": { - "consecutiveFailures": 2, - "lastFailureAtMs": 7000 - }, - "event": "ready", - "nowMs": 8000 - }, - "response": { - "state": null, - "decision": "allow", - "retryAfterMs": null - } - }, - { - "name": "a clock reading before the last failure restarts the cooldown", - "request": { - "state": { - "consecutiveFailures": 1, - "lastFailureAtMs": 10000 - }, - "event": "automaticStart", - "nowMs": 500 - }, - "response": { - "state": { - "consecutiveFailures": 1, - "lastFailureAtMs": 500 - }, - "decision": "wait", - "retryAfterMs": 5000 - } - } - ] -} diff --git a/shared/fixtures/lsp/completion-merge-v1.json b/shared/fixtures/lsp/completion-merge-v1.json deleted file mode 100644 index a4eb91710f..0000000000 --- a/shared/fixtures/lsp/completion-merge-v1.json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "description": "lsp.mergeCompletions: lists arrive in provider priority order; a provider's own candidates are never collapsed; a lower-priority candidate is dropped when a higher-priority provider offered the same label.", - "cases": [ - { - "name": "a provider keeps every candidate, including overloads that share a label", - "request": { - "lists": [ - { - "labels": [ - "print", - "print", - "println" - ], - "isIncomplete": false - } - ] - }, - "response": { - "keep": [ - [ - 0, - 1, - 2 - ] - ], - "isIncomplete": false - } - }, - { - "name": "a lower-priority provider is shadowed by labels a higher-priority provider offered", - "request": { - "lists": [ - { - "labels": [ - "value", - "valueOf" - ], - "isIncomplete": false - }, - { - "labels": [ - "value", - "values", - "valueOf" - ], - "isIncomplete": false - } - ] - }, - "response": { - "keep": [ - [ - 0, - 1 - ], - [ - 1 - ] - ], - "isIncomplete": false - } - }, - { - "name": "shadowing cascades through every lower-priority provider", - "request": { - "lists": [ - { - "labels": [ - "a" - ], - "isIncomplete": false - }, - { - "labels": [ - "b", - "a" - ], - "isIncomplete": false - }, - { - "labels": [ - "a", - "b", - "c", - "c" - ], - "isIncomplete": false - } - ] - }, - "response": { - "keep": [ - [ - 0 - ], - [ - 0 - ], - [ - 2, - 3 - ] - ], - "isIncomplete": false - } - }, - { - "name": "an empty higher-priority list shadows nothing", - "request": { - "lists": [ - { - "labels": [], - "isIncomplete": true - }, - { - "labels": [ - "x" - ], - "isIncomplete": false - } - ] - }, - "response": { - "keep": [ - [], - [ - 0 - ] - ], - "isIncomplete": true - } - }, - { - "name": "labels compare exactly", - "request": { - "lists": [ - { - "labels": [ - "Foo" - ], - "isIncomplete": false - }, - { - "labels": [ - "foo", - "Foo " - ], - "isIncomplete": false - } - ] - }, - "response": { - "keep": [ - [ - 0 - ], - [ - 0, - 1 - ] - ], - "isIncomplete": false - } - }, - { - "name": "incomplete from any provider marks the merged list incomplete", - "request": { - "lists": [ - { - "labels": [ - "a" - ], - "isIncomplete": false - }, - { - "labels": [ - "b" - ], - "isIncomplete": true - } - ] - }, - "response": { - "keep": [ - [ - 0 - ], - [ - 0 - ] - ], - "isIncomplete": true - } - }, - { - "name": "no providers", - "request": { - "lists": [] - }, - "response": { - "keep": [], - "isIncomplete": false - } - } - ] -} diff --git a/shared/fixtures/lsp/completion-refresh-v1.json b/shared/fixtures/lsp/completion-refresh-v1.json deleted file mode 100644 index 405f23f868..0000000000 --- a/shared/fixtures/lsp/completion-refresh-v1.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "context": { - "triggerKind": 1 - }, - "response": [ - { - "label": "alpha" - } - ], - "isIncomplete": false - }, - { - "context": { - "triggerKind": 2, - "triggerCharacter": "." - }, - "response": { - "items": [ - { - "label": "beta" - } - ], - "isIncomplete": true - }, - "isIncomplete": true - }, - { - "context": { - "triggerKind": 3 - }, - "response": { - "items": [], - "isIncomplete": true - }, - "isIncomplete": true - }, - { - "context": { - "triggerKind": 3 - }, - "response": null, - "isIncomplete": false - } - ] -} diff --git a/shared/fixtures/lsp/diagnostic-code-actions-v1.json b/shared/fixtures/lsp/diagnostic-code-actions-v1.json deleted file mode 100644 index ffbc8eaa5d..0000000000 --- a/shared/fixtures/lsp/diagnostic-code-actions-v1.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "schemaVersion": 1, - "uri": "file:///C:/work/Main.java", - "diagnostic": { - "range": { - "start": { "line": 2, "utf16Column": 4 }, - "end": { "line": 2, "utf16Column": 9 } - }, - "severity": 2, - "message": "Unused declaration", - "source": "fixture-lsp", - "code": "unused", - "tags": [1, 2, 99], - "relatedInformation": [ - { - "location": { - "uri": "file:///C:/work/Other.java", - "range": { - "start": { "line": 7, "utf16Column": 3 }, - "end": { "line": 8, "utf16Column": 6 } - } - }, - "message": "Related declaration" - } - ] - }, - "severityCases": [ - { "name": "error", "severity": 1, "displaySeverity": "error" }, - { "name": "warning", "severity": 2, "displaySeverity": "warning" }, - { "name": "information", "severity": 3, "displaySeverity": "info" }, - { "name": "hint", "severity": 4, "displaySeverity": "info" }, - { "name": "unspecified", "severity": null, "displaySeverity": "info" } - ] -} diff --git a/shared/fixtures/lsp/document-identity-v1.json b/shared/fixtures/lsp/document-identity-v1.json deleted file mode 100644 index 7f1b3bdd23..0000000000 --- a/shared/fixtures/lsp/document-identity-v1.json +++ /dev/null @@ -1,258 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { - "name": "posix-relative", - "request": { - "workspaceRoot": "/work/app", - "input": "src/A.java", - "platform": "posix" - }, - "expected": { - "document": { - "path": "/work/app/src/A.java", - "relativePath": "src/A.java" - } - } - }, - { - "name": "posix-absolute", - "request": { - "workspaceRoot": "/work/app", - "input": "/work/app/src/A.java", - "platform": "auto" - }, - "expected": { - "document": { - "path": "/work/app/src/A.java", - "relativePath": "src/A.java" - } - } - }, - { - "name": "percent-decoded", - "request": { - "workspaceRoot": "/work/app", - "input": "file:///work/app/src/A%20%E4%B8%AD.java", - "platform": "posix" - }, - "expected": { - "document": { - "path": "/work/app/src/A 中.java", - "relativePath": "src/A 中.java" - } - } - }, - { - "name": "localhost", - "request": { - "workspaceRoot": "/work/app", - "input": "file://localhost/work/app/A.java", - "platform": "posix" - }, - "expected": { - "document": { - "path": "/work/app/A.java", - "relativePath": "A.java" - } - } - }, - { - "name": "outside", - "request": { - "workspaceRoot": "/work/app", - "input": "file:///elsewhere/A.java", - "platform": "posix" - }, - "expected": { - "document": null - } - }, - { - "name": "prefix-boundary", - "request": { - "workspaceRoot": "/work/app", - "input": "/work/application/A.java", - "platform": "posix" - }, - "expected": { - "document": null - } - }, - { - "name": "escape-relative", - "request": { - "workspaceRoot": "/work/app", - "input": "../A.java", - "platform": "posix" - }, - "expected": { - "document": null - } - }, - { - "name": "root-is-not-document", - "request": { - "workspaceRoot": "/work/app", - "input": ".", - "platform": "posix" - }, - "expected": { - "document": null - } - }, - { - "name": "external-uri", - "request": { - "workspaceRoot": "/work/app", - "input": "https://example.invalid/a", - "platform": "posix" - }, - "expected": { - "document": null - } - }, - { - "name": "remote-file-posix", - "request": { - "workspaceRoot": "/server/share", - "input": "file://server/share/A.java", - "platform": "posix" - }, - "expected": { - "document": null - } - }, - { - "name": "empty", - "request": { - "workspaceRoot": "/work/app", - "input": "", - "platform": "posix" - }, - "expected": { - "document": null - } - }, - { - "name": "uri-fragment", - "request": { - "workspaceRoot": "/work/app", - "input": "file:///work/app/A.java#secret", - "platform": "posix" - }, - "expected": { - "document": null - } - }, - { - "name": "windows-uri", - "request": { - "workspaceRoot": "C:\\Work\\App", - "input": "file:///C:/Work/App/src/A%20B.java", - "platform": "auto" - }, - "expected": { - "document": { - "path": "C:\\Work\\App\\src\\A B.java", - "relativePath": "src/A B.java" - } - } - }, - { - "name": "windows-relative", - "request": { - "workspaceRoot": "C:\\Work\\App", - "input": "src/A.java", - "platform": "windows" - }, - "expected": { - "document": { - "path": "C:\\Work\\App\\src\\A.java", - "relativePath": "src/A.java" - } - } - }, - { - "name": "windows-case-alias", - "request": { - "workspaceRoot": "C:\\Work\\App", - "input": "c:\\work\\app\\A.java", - "platform": "auto" - }, - "expected": { - "document": { - "path": "c:\\work\\app\\A.java", - "relativePath": "A.java" - } - } - }, - { - "name": "windows-rooted-uri-is-not-relative", - "request": { - "workspaceRoot": "C:\\Work\\App", - "input": "file:///elsewhere/A.java", - "platform": "windows" - }, - "expected": { - "document": null - } - }, - { - "name": "windows-drive-relative-is-ambiguous", - "request": { - "workspaceRoot": "C:\\Work\\App", - "input": "C:A.java", - "platform": "windows" - }, - "expected": { - "document": null - } - }, - { - "name": "windows-rooted-without-drive", - "request": { - "workspaceRoot": "C:\\Work\\App", - "input": "\\elsewhere\\A.java", - "platform": "windows" - }, - "expected": { - "document": null - } - }, - { - "name": "windows-outside", - "request": { - "workspaceRoot": "C:\\Work\\App", - "input": "D:\\Other\\A.java", - "platform": "windows" - }, - "expected": { - "document": null - } - }, - { - "name": "unc-uri", - "request": { - "workspaceRoot": "\\\\server\\share\\app", - "input": "file://server/share/app/A%20B.java", - "platform": "windows" - }, - "expected": { - "document": { - "path": "\\\\server\\share\\app\\A B.java", - "relativePath": "A B.java" - } - } - }, - { - "name": "invalid-root", - "request": { - "workspaceRoot": "relative", - "input": "A.java", - "platform": "posix" - }, - "error": "invalid_request" - } - ] -} diff --git a/shared/fixtures/lsp/document-save-v1.json b/shared/fixtures/lsp/document-save-v1.json deleted file mode 100644 index 8f49cb1aae..0000000000 --- a/shared/fixtures/lsp/document-save-v1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "version": 1, - "cases": [ - { "id": "unsupported", "saveOption": null, "uri": "file:///workspace/Main.java", "savedText": "saved", "sent": false, "includeText": false }, - { "id": "disabled", "saveOption": false, "uri": "file:///workspace/Main.java", "savedText": "saved", "sent": false, "includeText": false }, - { "id": "save-without-text", "saveOption": true, "uri": "file:///C:/workspace/Main.java", "savedText": "saved", "sent": true, "includeText": false }, - { "id": "save-with-text", "saveOption": { "includeText": true }, "uri": "file:///workspace/Main.java", "savedText": "saved", "sent": true, "includeText": true }, - { "id": "default-options", "saveOption": {}, "uri": "file:///workspace/Main.java", "savedText": "saved", "sent": true, "includeText": false } - ] -} diff --git a/shared/fixtures/lsp/document-symbols-v1.json b/shared/fixtures/lsp/document-symbols-v1.json deleted file mode 100644 index 48fe7db189..0000000000 --- a/shared/fixtures/lsp/document-symbols-v1.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "hierarchical DocumentSymbol keeps tree and selectionRange", - "serverResult": [ - { - "name": "Foo", - "detail": "class", - "kind": 5, - "range": {"start": {"line": 0, "character": 0}, "end": {"line": 9, "character": 1}}, - "selectionRange": {"start": {"line": 0, "character": 6}, "end": {"line": 0, "character": 9}}, - "children": [ - { - "name": "bar", - "kind": 6, - "tags": [1], - "range": {"start": {"line": 2, "character": 4}, "end": {"line": 4, "character": 5}}, - "selectionRange": {"start": {"line": 2, "character": 8}, "end": {"line": 2, "character": 11}} - }, - {"name": "broken", "kind": 6} - ] - } - ], - "expected": { - "symbols": [ - { - "name": "Foo", - "detail": "class", - "kind": 5, - "tags": [], - "deprecated": false, - "range": {"start": {"line": 0, "utf16Column": 0}, "end": {"line": 9, "utf16Column": 1}}, - "selectionRange": {"start": {"line": 0, "utf16Column": 6}, "end": {"line": 0, "utf16Column": 9}}, - "containerName": null, - "children": [ - { - "name": "bar", - "detail": null, - "kind": 6, - "tags": [1], - "deprecated": true, - "range": {"start": {"line": 2, "utf16Column": 4}, "end": {"line": 4, "utf16Column": 5}}, - "selectionRange": {"start": {"line": 2, "utf16Column": 8}, "end": {"line": 2, "utf16Column": 11}}, - "containerName": null, - "children": [] - } - ] - } - ] - } - }, - { - "name": "flat SymbolInformation becomes childless symbols", - "serverResult": [ - { - "name": "run", - "kind": 12, - "deprecated": true, - "location": { - "uri": "file:///a.rs", - "range": {"start": {"line": 1, "character": 3}, "end": {"line": 3, "character": 1}} - }, - "containerName": "Foo" - } - ], - "expected": { - "symbols": [ - { - "name": "run", - "detail": null, - "kind": 12, - "tags": [], - "deprecated": true, - "range": {"start": {"line": 1, "utf16Column": 3}, "end": {"line": 3, "utf16Column": 1}}, - "selectionRange": {"start": {"line": 1, "utf16Column": 3}, "end": {"line": 3, "utf16Column": 1}}, - "containerName": "Foo", - "children": [] - } - ] - } - }, - { - "name": "null result is an empty outline", - "serverResult": null, - "expected": {"symbols": []} - } - ] -} diff --git a/shared/fixtures/lsp/document-uri-v1.json b/shared/fixtures/lsp/document-uri-v1.json deleted file mode 100644 index 4840e6d239..0000000000 --- a/shared/fixtures/lsp/document-uri-v1.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "cases": [ - {"name":"posix reserved characters", "platform":"posix", "path":"/work/A#B?.java", "uri":"file:///work/A%23B%3F.java"}, - {"name":"posix percent and unicode", "platform":"posix", "path":"/work/百分%/main.go", "uri":"file:///work/%E7%99%BE%E5%88%86%25/main.go"}, - {"name":"posix backslash is a filename", "platform":"posix", "path":"/work/a\\b", "uri":"file:///work/a%5Cb"}, - {"name":"posix dot segments", "platform":"posix", "path":"/work/a/../b/./Main.java", "uri":"file:///work/b/Main.java"}, - {"name":"posix directory", "platform":"posix", "path":"/work/project/", "uri":"file:///work/project/"}, - {"name":"windows drive and reserved characters", "platform":"windows", "path":"C:\\work\\A#B?.java", "uri":"file:///C:/work/A%23B%3F.java"}, - {"name":"windows percent and spaces", "platform":"windows", "path":"d:\\a b\\100%.java", "uri":"file:///d:/a%20b/100%25.java"}, - {"name":"windows drive root", "platform":"windows", "path":"C:\\", "uri":"file:///C:/"}, - {"name":"windows network share", "platform":"windows", "path":"\\\\server\\share\\A#B.java", "uri":"file://server/share/A%23B.java"}, - {"name":"network parent stays in share", "platform":"windows", "path":"\\\\server\\share\\dir\\..\\..\\Main.java", "uri":"file://server/share/Main.java"}, - {"name":"windows extended drive", "platform":"windows", "path":"\\\\?\\C:\\work\\A.java", "uri":"file:///C:/work/A.java"}, - {"name":"windows extended network share", "platform":"windows", "path":"\\\\?\\UNC\\server\\share\\A.java", "uri":"file://server/share/A.java"}, - {"name":"auto detects windows drive", "platform":"auto", "path":"C:\\work\\A#B.java", "uri":"file:///C:/work/A%23B.java"}, - {"name":"auto detects posix path", "platform":"auto", "path":"/work/A#B.java", "uri":"file:///work/A%23B.java"}, - {"name":"posix relative rejected", "platform":"posix", "path":"work/main.go", "uri":null}, - {"name":"windows drive relative rejected", "platform":"windows", "path":"C:work\\Main.java", "uri":null}, - {"name":"windows incomplete network share rejected", "platform":"windows", "path":"\\\\server", "uri":null} - ], - "identityCases": [ - {"name":"encoded drive colon and drive case", "opened":"file:///D:/project/main.php", "published":"file:///d%3A/project/main.php", "same":true}, - {"name":"unreserved escape", "opened":"file:///work/A.java", "published":"file:///work/%41.java", "same":true}, - {"name":"unicode escapes ignore hex case", "opened":"file:///work/%E7%9B%AE.java", "published":"file:///work/%e7%9b%ae.java", "same":true}, - {"name":"encoded hash differs from fragment", "opened":"file:///work/A%23B.java", "published":"file:///work/A#B.java", "same":false}, - {"name":"encoded question differs from query", "opened":"file:///work/A%3FB.java", "published":"file:///work/A?B.java", "same":false}, - {"name":"encoded slash differs from separator", "opened":"file:///work/A%2FB.java", "published":"file:///work/A/B.java", "same":false} - ] -} diff --git a/shared/fixtures/lsp/java-build-report-v1.json b/shared/fixtures/lsp/java-build-report-v1.json deleted file mode 100644 index 94b69b112d..0000000000 --- a/shared/fixtures/lsp/java-build-report-v1.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "version": 1, - "continuableFailures": [ - { - "code": "javaBuildCompilationErrors", - "message": "The Java project build reported compilation errors.", - "javaBuildReport": { - "markerScope": "launchTarget", - "builderFailedEarlier": false, - "elapsedMilliseconds": 506, - "recovery": "rebuildJavaIndex" - } - }, - { - "code": "javaBuildFailed", - "message": "The Java language service could not complete the project build. Check the Java language server log for the build error.", - "javaBuildReport": { - "markerScope": "workspace", - "builderFailedEarlier": true, - "elapsedMilliseconds": 5012, - "recovery": "rebuildJavaIndex" - } - } - ], - "nonContinuableCodes": [ - "invalidServerResult", - "javaBuildCancelled", - "requestCancelled", - "requestTimeout" - ] -} diff --git a/shared/fixtures/lsp/java-completion-v1.json b/shared/fixtures/lsp/java-completion-v1.json deleted file mode 100644 index 224648fec8..0000000000 --- a/shared/fixtures/lsp/java-completion-v1.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "version": 1, - "pluginCompletion": { - "guessMethodArguments": "insertParameterNames", - "favoriteStaticMembers": ["java.util.Objects.*"], - "filteredTypes": ["example.internal.*"] - }, - "javaSettings": { - "completion": { - "guessMethodArguments": "off", - "favoriteStaticMembers": ["java.util.Objects.*"], - "filteredTypes": ["example.internal.*"] - } - }, - "workspaceConfigurationSections": [ - "java", - "java.completion", - "java.completion.guessMethodArguments", - "java.completion.favoriteStaticMembers", - "java.completion.filteredTypes", - "java.completion.unknown" - ] -} diff --git a/shared/fixtures/lsp/java-launch-preparation-v1.json b/shared/fixtures/lsp/java-launch-preparation-v1.json deleted file mode 100644 index 59f3e91f7a..0000000000 --- a/shared/fixtures/lsp/java-launch-preparation-v1.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "id": "windows-module-and-case", - "rootUri": "file:///C:/Work", - "sourcePath": "c:/work/APP/Main.java", - "mainClass": "demo.Main", - "entries": [ - { - "mainClass": "demo.Main", - "projectName": "lib", - "filePath": "C:/Work/lib/Main.java" - }, - { - "mainClass": "demo.app/demo.Main", - "projectName": "app", - "filePath": "C:/Work/app/Main.java" - }, - { - "mainClass": "demo.Other", - "projectName": "app", - "filePath": "C:/Work/app/Main.java" - } - ], - "paths": [ - [ - "C:/Work/custom/modules" - ], - [ - "C:/Work/custom/tests", - "C:/cache/test-only.jar" - ] - ], - "target": { - "mainClass": "demo.app/demo.Main", - "projectName": "app", - "modulePaths": [ - "C:/Work/custom/modules" - ], - "classPaths": [ - "C:/Work/custom/tests", - "C:/cache/test-only.jar" - ] - } - }, - { - "id": "mac-source-identity", - "rootUri": "file:///workspace", - "sourcePath": "/workspace/app/Main.java", - "mainClass": "demo.Main", - "entries": [ - { - "mainClass": "demo.Main", - "projectName": "lib", - "filePath": "/workspace/lib/Main.java" - }, - { - "mainClass": "demo.Main", - "projectName": "app", - "filePath": "/workspace/app/Main.java" - } - ], - "paths": [ - [], - [ - "/workspace/app/custom-output" - ] - ], - "target": { - "mainClass": "demo.Main", - "projectName": "app", - "modulePaths": [], - "classPaths": [ - "/workspace/app/custom-output" - ] - } - } - ] -} diff --git a/shared/fixtures/lsp/java-navigation-v1.json b/shared/fixtures/lsp/java-navigation-v1.json deleted file mode 100644 index f339e8bb06..0000000000 --- a/shared/fixtures/lsp/java-navigation-v1.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "four-marker-variants-use-deterministic-ordering", - "request": { - "sessionId": "session-1", - "uri": "file:///workspace/src/Service.java", - "documentVersion": 7 - }, - "expectedResult": { - "documentVersion": 7, - "markers": [ - { - "line": 2, - "utf16Column": 9, - "implementationCount": 1, - "direction": "up", - "relation": "interface" - }, - { - "line": 2, - "utf16Column": 9, - "implementationCount": 2, - "direction": "down", - "relation": "interface" - }, - { - "line": 8, - "utf16Column": 16, - "implementationCount": 1, - "direction": "up", - "relation": "inheritance" - }, - { - "line": 8, - "utf16Column": 16, - "implementationCount": 3, - "direction": "down", - "relation": "inheritance" - } - ] - } - }, - { - "name": "zero-target-declarations-are-omitted", - "request": { - "sessionId": "session-1", - "uri": "file:///workspace/src/Unused.java", - "documentVersion": 3 - }, - "expectedResult": { - "documentVersion": 3, - "markers": [] - } - } - ] -} diff --git a/shared/fixtures/lsp/java-project-runtimes-v1.json b/shared/fixtures/lsp/java-project-runtimes-v1.json deleted file mode 100644 index 10e1a51bdb..0000000000 --- a/shared/fixtures/lsp/java-project-runtimes-v1.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "selected-custom-major-wins", - "candidates": [ - { - "homePath": "/bundled/jdk21", - "version": "21" - }, - { - "homePath": "/jdks/jdk25", - "version": "25" - }, - { - "homePath": "/custom/jdk25", - "version": "25.0.1", - "isDefault": true - }, - { - "homePath": "/jdks/jdk17", - "version": "17", - "isDefault": true - } - ], - "expected": [ - { - "name": "JavaSE-17", - "path": "/jdks/jdk17" - }, - { - "name": "JavaSE-21", - "path": "/bundled/jdk21" - }, - { - "name": "JavaSE-25", - "path": "/custom/jdk25", - "default": true - } - ] - }, - { - "name": "legacy-without-default", - "candidates": [ - { - "homePath": "/jdks/jdk21", - "version": "21" - } - ], - "expected": [ - { - "name": "JavaSE-21", - "path": "/jdks/jdk21" - } - ] - }, - { - "name": "invalid-default-is-ignored", - "candidates": [ - { - "homePath": "", - "version": "25", - "isDefault": true - }, - { - "homePath": "/jdks/jdk21", - "version": "21" - } - ], - "expected": [ - { - "name": "JavaSE-21", - "path": "/jdks/jdk21" - } - ] - } - ] -} diff --git a/shared/fixtures/lsp/java-workspace-policy-v1.json b/shared/fixtures/lsp/java-workspace-policy-v1.json deleted file mode 100644 index 463618f1d0..0000000000 --- a/shared/fixtures/lsp/java-workspace-policy-v1.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "mixed-workspace", - "workspacePaths": [ - "README.md", - "node_modules/example/Fake.java", - "src/Main.java", - "target/generated/Generated.java" - ], - "changedPaths": [ - "README.md", - "build.gradle.kts", - "src/Main.java", - "target/generated/Generated.java" - ], - "expected": { - "shouldStart": true, - "representativeJavaPath": "src/Main.java", - "changes": [ - { "path": "README.md", "kind": "other" }, - { "path": "build.gradle.kts", "kind": "buildConfiguration" }, - { "path": "src/Main.java", "kind": "source" }, - { "path": "target/generated/Generated.java", "kind": "ignored" } - ] - } - }, - { - "name": "ignored-java-only", - "workspacePaths": [ - ".worktrees/topic/src/Topic.java", - "build/generated/Generated.java", - "node_modules/example/Fake.java" - ], - "changedPaths": [ - ".mvn/wrapper/maven-wrapper.properties", - "gradle/wrapper/gradle-wrapper.properties", - "settings.gradle" - ], - "expected": { - "shouldStart": false, - "changes": [ - { "path": ".mvn/wrapper/maven-wrapper.properties", "kind": "buildConfiguration" }, - { "path": "gradle/wrapper/gradle-wrapper.properties", "kind": "buildConfiguration" }, - { "path": "settings.gradle", "kind": "buildConfiguration" } - ] - } - }, - { - "name": "maven-project-with-conventional-layout", - "workspacePaths": [ - "pom.xml", - "src/main/java/com/example/demo/DemoApplication.java" - ], - "changedPaths": [], - "expected": { - "shouldStart": true, - "representativeJavaPath": "src/main/java/com/example/demo/DemoApplication.java", - "changes": [] - } - }, - { - "name": "java-fixture-inside-another-ecosystem", - "workspacePaths": [ - "Cargo.toml", - "Package.swift", - "shared/fixtures/projects/demo/pom.xml", - "shared/fixtures/projects/demo/src/main/java/com/example/demo/DemoApplication.java" - ], - "changedPaths": [], - "expected": { - "shouldStart": false, - "representativeJavaPath": "shared/fixtures/projects/demo/src/main/java/com/example/demo/DemoApplication.java", - "changes": [] - } - } - ] -} diff --git a/shared/fixtures/lsp/jdt-cache-retention-v1.json b/shared/fixtures/lsp/jdt-cache-retention-v1.json deleted file mode 100644 index 98f4b77630..0000000000 --- a/shared/fixtures/lsp/jdt-cache-retention-v1.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "expires-only-inactive-cache-older-than-thirty-days", - "nowUnixSeconds": 4000000, - "activeWorkspaceKey": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "entries": [ - { - "workspaceKey": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "lastModifiedUnixSeconds": 1000000 - }, - { - "workspaceKey": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", - "lastModifiedUnixSeconds": 1408000 - }, - { - "workspaceKey": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc", - "lastModifiedUnixSeconds": 1 - }, - { - "workspaceKey": "not-a-workspace-key", - "lastModifiedUnixSeconds": 1 - } - ], - "expected": { - "retentionDays": 30, - "expiredWorkspaceKeys": [ - "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" - ] - } - }, - { - "name": "duplicate-observations-use-newest-timestamp", - "nowUnixSeconds": 4000000, - "entries": [ - { - "workspaceKey": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", - "lastModifiedUnixSeconds": 1 - }, - { - "workspaceKey": "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", - "lastModifiedUnixSeconds": 3999999 - } - ], - "expected": { - "retentionDays": 30, - "expiredWorkspaceKeys": [] - } - } - ] -} diff --git a/shared/fixtures/lsp/jdt-direct-launch-v1.json b/shared/fixtures/lsp/jdt-direct-launch-v1.json deleted file mode 100644 index 90959256d4..0000000000 --- a/shared/fixtures/lsp/jdt-direct-launch-v1.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "schemaVersion": 1, - "request": { - "providerId": "java", - "executablePath": "/opt/lithe/jdtls/bin/jdtls", - "arguments": [ - "--jvm-arg=-Duser.language=en" - ], - "environment": { - "JAVA_HOME": "/opt/lithe/jdk" - }, - "rootUri": "file:///workspace/project", - "workingDirectory": "/workspace/project", - "initializationOptions": null, - "runtimeExecutablePath": "/opt/lithe/jdk/bin/java", - "jdtlsLaunchResources": { - "launcherJarPath": "/opt/lithe/jdtls/plugins/org.eclipse.equinox.launcher_1.7.0.jar", - "configurationDirectory": "/opt/lithe/jdtls/config_mac", - "lombokAgentPath": "/opt/lithe/jdtls/lombok/lombok.jar", - "javaDebugBundlePath": "/opt/lithe/jdtls/java-debug/com.microsoft.java.debug.plugin-0.53.1.jar", - "javaExtensionBundlePaths": [ - "/opt/lithe/jdtls/java-debug/com.microsoft.java.debug.plugin-0.53.1.jar", - "/opt/lithe/jdtls/java-test/extensions/com.microsoft.java.test.plugin-0.42.0.jar" - ] - }, - "cacheDirectory": "/var/cache/lithe/language-servers", - "workspaceFingerprint": "build=|modules=|jdtls=1.55.0", - "initializeTimeoutMilliseconds": 30000, - "serviceReadyIdleTimeoutMilliseconds": 45000, - "serviceReadyAbsoluteTimeoutMilliseconds": 600000, - "requestTimeoutMilliseconds": 30000, - "shutdownTimeoutMilliseconds": 2000 - } -} diff --git a/shared/fixtures/lsp/jdt-readiness-v1.json b/shared/fixtures/lsp/jdt-readiness-v1.json deleted file mode 100644 index 2d1172b456..0000000000 --- a/shared/fixtures/lsp/jdt-readiness-v1.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "schemaVersion": 1, - "idleWarningMilliseconds": 45000, - "absoluteTimeoutMilliseconds": 600000, - "cases": [ - { - "name": "quiet Maven import eventually becomes ready", - "steps": [ - { - "atMilliseconds": 0, - "action": "progress", - "percentage": 23 - }, - { - "atMilliseconds": 46000, - "action": "poll", - "warning": true, - "timeout": false - }, - { - "atMilliseconds": 60000, - "action": "poll", - "warning": false, - "timeout": false - }, - { - "atMilliseconds": 90000, - "action": "ready" - }, - { - "atMilliseconds": 601000, - "action": "poll", - "warning": false, - "timeout": false - } - ] - }, - { - "name": "quiet Maven import reaches the absolute deadline", - "steps": [ - { - "atMilliseconds": 46000, - "action": "poll", - "warning": true, - "timeout": false - }, - { - "atMilliseconds": 600000, - "action": "poll", - "warning": false, - "timeout": true, - "classification": "noProgressStall" - } - ] - }, - { - "name": "progress never extends the absolute deadline", - "steps": [ - { - "atMilliseconds": 599000, - "action": "progress", - "percentage": 99 - }, - { - "atMilliseconds": 600000, - "action": "poll", - "warning": false, - "timeout": true, - "classification": "projectImportActive" - } - ] - } - ] -} diff --git a/shared/fixtures/lsp/jdt-workspace-fingerprint-v1.json b/shared/fixtures/lsp/jdt-workspace-fingerprint-v1.json deleted file mode 100644 index 2e0103d8bc..0000000000 --- a/shared/fixtures/lsp/jdt-workspace-fingerprint-v1.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "sorts-and-deduplicates-platform-observations", - "buildFiles": [ - { "path": "pom.xml" }, - { "path": "build.gradle.kts" }, - { "path": "pom.xml" } - ], - "directMavenModules": ["core", "api", "core"], - "jdtlsVersion": "1.38.0", - "workspaceFingerprint": "build=build.gradle.kts,pom.xml|modules=api,core|jdtls=1.38.0" - }, - { - "name": "gradle-wrapper-version-selects-the-state", - "buildFiles": [ - { "path": "settings.gradle.kts" }, - { "path": "build.gradle.kts" }, - { "path": "gradle/wrapper/gradle-wrapper.properties" } - ], - "directMavenModules": [], - "gradleWrapperDistribution": "https://services.gradle.org/distributions/gradle-8.10-bin.zip", - "jdtlsVersion": "1.38.0", - "workspaceFingerprint": "build=build.gradle.kts,gradle/wrapper/gradle-wrapper.properties,settings.gradle.kts|modules=|jdtls=1.38.0|gradle=https://services.gradle.org/distributions/gradle-8.10-bin.zip" - }, - { - "name": "version-only-workspace", - "buildFiles": [], - "directMavenModules": [], - "jdtlsVersion": "7.6.5", - "workspaceFingerprint": "build=|modules=|jdtls=7.6.5" - } - ] -} diff --git a/shared/fixtures/lsp/jdt-workspace-key-v1.json b/shared/fixtures/lsp/jdt-workspace-key-v1.json deleted file mode 100644 index 16655c8e90..0000000000 --- a/shared/fixtures/lsp/jdt-workspace-key-v1.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "legacy-workspace-path", - "workspaceRoot": "/workspace/demo", - "workspaceFingerprint": null, - "workspaceKey": "4de1d2f8b60db00ae8307a6fe19690b23893974b259297719107bb84e767148a" - }, - { - "name": "maven-modules-and-jdtls-version", - "workspaceRoot": "/workspace/demo", - "workspaceFingerprint": "build=pom.xml@1700000000000:42|modules=api,core|jdtls=1.38.0", - "workspaceKey": "b21826804a57043eec9f155c7ee324870f7df48d7d51a311e25cb04e9671df25" - } - ] -} diff --git a/shared/fixtures/lsp/maven-profile-events-v1.json b/shared/fixtures/lsp/maven-profile-events-v1.json deleted file mode 100644 index ed53dd6efb..0000000000 --- a/shared/fixtures/lsp/maven-profile-events-v1.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "version": 1, - "events": [ - { "type": "log", "sequence": 1, "providerId": "java", "sessionId": "java-session", "mavenProfileTask": "running" }, - { "type": "log", "sequence": 2, "providerId": "java", "sessionId": "java-session", "mavenProfileProject": { "projectUri": "file:///common-11111111", "status": "running" } }, - { "type": "stateChanged", "sequence": 3, "providerId": "java", "sessionId": "java-session", "state": "ready" }, - { "type": "log", "sequence": 4, "providerId": "java", "sessionId": "java-session", "mavenProfileProject": { "projectUri": "file:///common-11111111", "status": "failed", "errorDetails": "Maven profile project update failed." } }, - { "type": "log", "sequence": 5, "providerId": "java", "sessionId": "java-session", "mavenProfileProject": { "projectUri": "file:///common-22222222", "status": "succeeded" } }, - { "type": "log", "sequence": 6, "providerId": "java", "sessionId": "java-session", "mavenProfileTask": "partiallySucceeded" } - ] -} diff --git a/shared/fixtures/lsp/navigation-target-v1.json b/shared/fixtures/lsp/navigation-target-v1.json deleted file mode 100644 index 446ba74317..0000000000 --- a/shared/fixtures/lsp/navigation-target-v1.json +++ /dev/null @@ -1,305 +0,0 @@ -{ - "version": 1, - "command": "lsp.classifyNavigationTarget", - "cases": [ - { - "name": "no workspace accepts any file", - "request": { - "platform": "posix", - "path": "/elsewhere/notes.txt" - }, - "expected": { - "classification": "workspace", - "isReadOnly": false - } - }, - { - "name": "workspace source file", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/work/project/main.go", - "languageID": "go" - }, - "expected": { - "classification": "workspace", - "isReadOnly": false - } - }, - { - "name": "workspace non-source file", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/work/project/config.json", - "languageID": "json" - }, - "expected": { - "classification": "workspace", - "isReadOnly": false - } - }, - { - "name": "in-workspace symlink to an outside secret is rejected", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/work/project/secret.go", - "resolvedPath": "/work/outside/id_rsa", - "languageID": "go" - }, - "expected": { - "classification": "rejected", - "isReadOnly": false - } - }, - { - "name": "in-workspace symlink to an outside source opens read-only", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/work/project/vendor.go", - "resolvedPath": "/work/outside/print.go", - "languageID": "go", - "resolvedLanguageID": "go" - }, - "expected": { - "classification": "externalReadOnly", - "isReadOnly": true - } - }, - { - "name": "outside source of the same language opens read-only", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/go/src/fmt/print.go", - "languageID": "go" - }, - "expected": { - "classification": "externalReadOnly", - "isReadOnly": true - } - }, - { - "name": "outside file of another language is rejected", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/home/user/.aws/credentials.json", - "languageID": "json" - }, - "expected": { - "classification": "rejected", - "isReadOnly": false - } - }, - { - "name": "outside file without a language is rejected", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/home/user/.ssh/id_rsa" - }, - "expected": { - "classification": "rejected", - "isReadOnly": false - } - }, - { - "name": "outside source without a source language is rejected", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "path": "/go/src/fmt/print.go", - "languageID": "go" - }, - "expected": { - "classification": "rejected", - "isReadOnly": false - } - }, - { - "name": "outside symlink to a workspace file is external", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/work/outside/link.go", - "resolvedPath": "/work/project/main.go", - "languageID": "go", - "resolvedLanguageID": "go" - }, - "expected": { - "classification": "externalReadOnly", - "isReadOnly": true - } - }, - { - "name": "outside symlink to a workspace file from another language is rejected", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "php", - "path": "/work/outside/link.go", - "resolvedPath": "/work/project/main.go", - "languageID": "go", - "resolvedLanguageID": "go" - }, - "expected": { - "classification": "rejected", - "isReadOnly": false - } - }, - { - "name": "source-named link to a non-source file is rejected", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/work/outside/notes.go", - "resolvedPath": "/work/project/notes.json", - "languageID": "go", - "resolvedLanguageID": "json" - }, - "expected": { - "classification": "rejected", - "isReadOnly": false - } - }, - { - "name": "symlinked workspace root accepts real paths", - "request": { - "platform": "posix", - "workspaceRoot": "/var/work/project", - "sourceLanguageID": "go", - "resolvedWorkspaceRoot": "/private/var/work/project", - "path": "/private/var/work/project/main.go", - "resolvedPath": "/private/var/work/project/main.go", - "languageID": "go", - "resolvedLanguageID": "go" - }, - "expected": { - "classification": "workspace", - "isReadOnly": false - } - }, - { - "name": "dot segments are resolved before containment", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/work/project/../outside/print.go", - "languageID": "go" - }, - "expected": { - "classification": "externalReadOnly", - "isReadOnly": true - } - }, - { - "name": "sibling directory sharing the root prefix is outside", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/work/project2/main.go", - "languageID": "go" - }, - "expected": { - "classification": "externalReadOnly", - "isReadOnly": true - } - }, - { - "name": "the workspace root itself is not a file inside it", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/work/project", - "languageID": "go" - }, - "expected": { - "classification": "externalReadOnly", - "isReadOnly": true - } - }, - { - "name": "server read-only flag is kept inside the workspace", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "/work/project/generated.go", - "languageID": "go", - "isReadOnly": true - }, - "expected": { - "classification": "workspace", - "isReadOnly": true - } - }, - { - "name": "Windows paths compare without case and separator differences", - "request": { - "platform": "windows", - "workspaceRoot": "C:\\Work\\Project", - "sourceLanguageID": "java", - "path": "c:/work/project/src/Main.java", - "languageID": "java" - }, - "expected": { - "classification": "workspace", - "isReadOnly": false - } - }, - { - "name": "Windows sibling prefix is outside", - "request": { - "platform": "windows", - "workspaceRoot": "C:\\Work\\Project", - "sourceLanguageID": "java", - "path": "C:\\Work\\Project2\\Main.java", - "languageID": "java" - }, - "expected": { - "classification": "externalReadOnly", - "isReadOnly": true - } - }, - { - "name": "Windows UNC workspace", - "request": { - "platform": "auto", - "workspaceRoot": "\\\\server\\share\\project", - "sourceLanguageID": "java", - "path": "//SERVER/share/project/Main.java", - "languageID": "java" - }, - "expected": { - "classification": "workspace", - "isReadOnly": false - } - }, - { - "name": "relative target path is invalid", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "sourceLanguageID": "go", - "path": "main.go", - "languageID": "go" - }, - "expectedError": "invalid_request" - } - ] -} diff --git a/shared/fixtures/lsp/problems-query-v1.json b/shared/fixtures/lsp/problems-query-v1.json deleted file mode 100644 index 3f2f5edb7c..0000000000 --- a/shared/fixtures/lsp/problems-query-v1.json +++ /dev/null @@ -1,1244 +0,0 @@ -{ - "description": "lsp.problems.query filters, orders, and groups Problems tool-window diagnostics. Responses return indices into the submitted diagnostics.", - "cases": [ - { - "name": "default groups files in natural path order and sorts by severity inside each file", - "request": { - "diagnostics": [ - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Unused import", - "source": "java", - "code": "268435844" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 9, - "column": 0, - "severity": 1, - "message": "Type mismatch", - "source": "java", - "code": "16777233" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 3, - "message": "Consider final", - "source": "java" - }, - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "line": 0, - "column": 0, - "severity": null, - "message": "Spelling", - "source": "cspell" - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Duplicate at the same position", - "source": "java" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 4, - "message": "Hint here", - "source": "Java" - } - ] - }, - "response": { - "groups": [ - { - "key": "file:/w/README.md", - "kind": "file", - "fileKey": "/w/README.md", - "displayPath": "README.md", - "indices": [ - 3 - ], - "counts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 1 - } - }, - { - "key": "file:/w/src/File2.java", - "kind": "file", - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "indices": [ - 1, - 2, - 5 - ], - "counts": { - "error": 1, - "warning": 0, - "information": 1, - "hint": 1, - "unknown": 0 - } - }, - { - "key": "file:/w/src/File10.java", - "kind": "file", - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "indices": [ - 0, - 4 - ], - "counts": { - "error": 0, - "warning": 2, - "information": 0, - "hint": 0, - "unknown": 0 - } - } - ], - "files": [ - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "count": 1, - "highestSeverity": 0, - "counts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 1 - } - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "count": 3, - "highestSeverity": 1, - "counts": { - "error": 1, - "warning": 0, - "information": 1, - "hint": 1, - "unknown": 0 - } - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "count": 2, - "highestSeverity": 2, - "counts": { - "error": 0, - "warning": 2, - "information": 0, - "hint": 0, - "unknown": 0 - } - } - ], - "visibleCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - }, - "totalCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - } - } - }, - { - "name": "severity groups list errors first and unknown severities last", - "request": { - "diagnostics": [ - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Unused import", - "source": "java", - "code": "268435844" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 9, - "column": 0, - "severity": 1, - "message": "Type mismatch", - "source": "java", - "code": "16777233" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 3, - "message": "Consider final", - "source": "java" - }, - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "line": 0, - "column": 0, - "severity": null, - "message": "Spelling", - "source": "cspell" - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Duplicate at the same position", - "source": "java" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 4, - "message": "Hint here", - "source": "Java" - } - ], - "groupBy": "severity", - "sortBy": "file" - }, - "response": { - "groups": [ - { - "key": "severity:1", - "kind": "severity", - "severity": 1, - "indices": [ - 1 - ], - "counts": { - "error": 1, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 0 - } - }, - { - "key": "severity:2", - "kind": "severity", - "severity": 2, - "indices": [ - 0, - 4 - ], - "counts": { - "error": 0, - "warning": 2, - "information": 0, - "hint": 0, - "unknown": 0 - } - }, - { - "key": "severity:3", - "kind": "severity", - "severity": 3, - "indices": [ - 2 - ], - "counts": { - "error": 0, - "warning": 0, - "information": 1, - "hint": 0, - "unknown": 0 - } - }, - { - "key": "severity:4", - "kind": "severity", - "severity": 4, - "indices": [ - 5 - ], - "counts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 1, - "unknown": 0 - } - }, - { - "key": "severity:0", - "kind": "severity", - "severity": 0, - "indices": [ - 3 - ], - "counts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 1 - } - } - ], - "files": [ - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "count": 1, - "highestSeverity": 0, - "counts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 1 - } - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "count": 3, - "highestSeverity": 1, - "counts": { - "error": 1, - "warning": 0, - "information": 1, - "hint": 1, - "unknown": 0 - } - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "count": 2, - "highestSeverity": 2, - "counts": { - "error": 0, - "warning": 2, - "information": 0, - "hint": 0, - "unknown": 0 - } - } - ], - "visibleCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - }, - "totalCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - } - } - }, - { - "name": "position order ranks line and column before file and keeps submission order for ties", - "request": { - "diagnostics": [ - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Unused import", - "source": "java", - "code": "268435844" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 9, - "column": 0, - "severity": 1, - "message": "Type mismatch", - "source": "java", - "code": "16777233" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 3, - "message": "Consider final", - "source": "java" - }, - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "line": 0, - "column": 0, - "severity": null, - "message": "Spelling", - "source": "cspell" - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Duplicate at the same position", - "source": "java" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 4, - "message": "Hint here", - "source": "Java" - } - ], - "groupBy": "none", - "sortBy": "position" - }, - "response": { - "groups": [ - { - "key": "all", - "kind": "all", - "indices": [ - 3, - 2, - 5, - 0, - 4, - 1 - ], - "counts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - } - } - ], - "files": [ - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "count": 1, - "highestSeverity": 0, - "counts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 1 - } - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "count": 3, - "highestSeverity": 1, - "counts": { - "error": 1, - "warning": 0, - "information": 1, - "hint": 1, - "unknown": 0 - } - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "count": 2, - "highestSeverity": 2, - "counts": { - "error": 0, - "warning": 2, - "information": 0, - "hint": 0, - "unknown": 0 - } - } - ], - "visibleCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - }, - "totalCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - } - } - }, - { - "name": "severity filter keeps totals for the unfiltered list", - "request": { - "diagnostics": [ - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Unused import", - "source": "java", - "code": "268435844" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 9, - "column": 0, - "severity": 1, - "message": "Type mismatch", - "source": "java", - "code": "16777233" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 3, - "message": "Consider final", - "source": "java" - }, - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "line": 0, - "column": 0, - "severity": null, - "message": "Spelling", - "source": "cspell" - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Duplicate at the same position", - "source": "java" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 4, - "message": "Hint here", - "source": "Java" - } - ], - "filter": { - "severities": [ - 1, - 2 - ] - } - }, - "response": { - "groups": [ - { - "key": "file:/w/src/File2.java", - "kind": "file", - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "indices": [ - 1 - ], - "counts": { - "error": 1, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 0 - } - }, - { - "key": "file:/w/src/File10.java", - "kind": "file", - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "indices": [ - 0, - 4 - ], - "counts": { - "error": 0, - "warning": 2, - "information": 0, - "hint": 0, - "unknown": 0 - } - } - ], - "files": [ - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "count": 1, - "highestSeverity": 1, - "counts": { - "error": 1, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 0 - } - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "count": 2, - "highestSeverity": 2, - "counts": { - "error": 0, - "warning": 2, - "information": 0, - "hint": 0, - "unknown": 0 - } - } - ], - "visibleCounts": { - "error": 1, - "warning": 2, - "information": 0, - "hint": 0, - "unknown": 0 - }, - "totalCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - } - } - }, - { - "name": "unknown severity is selected with zero", - "request": { - "diagnostics": [ - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Unused import", - "source": "java", - "code": "268435844" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 9, - "column": 0, - "severity": 1, - "message": "Type mismatch", - "source": "java", - "code": "16777233" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 3, - "message": "Consider final", - "source": "java" - }, - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "line": 0, - "column": 0, - "severity": null, - "message": "Spelling", - "source": "cspell" - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Duplicate at the same position", - "source": "java" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 4, - "message": "Hint here", - "source": "Java" - } - ], - "filter": { - "severities": [ - 0 - ] - } - }, - "response": { - "groups": [ - { - "key": "file:/w/README.md", - "kind": "file", - "fileKey": "/w/README.md", - "displayPath": "README.md", - "indices": [ - 3 - ], - "counts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 1 - } - } - ], - "files": [ - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "count": 1, - "highestSeverity": 0, - "counts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 1 - } - } - ], - "visibleCounts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 1 - }, - "totalCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - } - } - }, - { - "name": "file scope and source filter compare the source case-insensitively", - "request": { - "diagnostics": [ - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Unused import", - "source": "java", - "code": "268435844" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 9, - "column": 0, - "severity": 1, - "message": "Type mismatch", - "source": "java", - "code": "16777233" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 3, - "message": "Consider final", - "source": "java" - }, - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "line": 0, - "column": 0, - "severity": null, - "message": "Spelling", - "source": "cspell" - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Duplicate at the same position", - "source": "java" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 4, - "message": "Hint here", - "source": "Java" - } - ], - "filter": { - "fileKey": "/w/src/File2.java", - "source": "JAVA" - } - }, - "response": { - "groups": [ - { - "key": "file:/w/src/File2.java", - "kind": "file", - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "indices": [ - 1, - 2, - 5 - ], - "counts": { - "error": 1, - "warning": 0, - "information": 1, - "hint": 1, - "unknown": 0 - } - } - ], - "files": [ - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "count": 3, - "highestSeverity": 1, - "counts": { - "error": 1, - "warning": 0, - "information": 1, - "hint": 1, - "unknown": 0 - } - } - ], - "visibleCounts": { - "error": 1, - "warning": 0, - "information": 1, - "hint": 1, - "unknown": 0 - }, - "totalCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - } - } - }, - { - "name": "query trims and matches the one-based line and column label", - "request": { - "diagnostics": [ - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Unused import", - "source": "java", - "code": "268435844" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 9, - "column": 0, - "severity": 1, - "message": "Type mismatch", - "source": "java", - "code": "16777233" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 3, - "message": "Consider final", - "source": "java" - }, - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "line": 0, - "column": 0, - "severity": null, - "message": "Spelling", - "source": "cspell" - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Duplicate at the same position", - "source": "java" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 4, - "message": "Hint here", - "source": "Java" - } - ], - "filter": { - "query": " 10:1 " - } - }, - "response": { - "groups": [ - { - "key": "file:/w/src/File2.java", - "kind": "file", - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "indices": [ - 1 - ], - "counts": { - "error": 1, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 0 - } - } - ], - "files": [ - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "count": 1, - "highestSeverity": 1, - "counts": { - "error": 1, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 0 - } - } - ], - "visibleCounts": { - "error": 1, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 0 - }, - "totalCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - } - } - }, - { - "name": "query matches the display path case-insensitively", - "request": { - "diagnostics": [ - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Unused import", - "source": "java", - "code": "268435844" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 9, - "column": 0, - "severity": 1, - "message": "Type mismatch", - "source": "java", - "code": "16777233" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 3, - "message": "Consider final", - "source": "java" - }, - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "line": 0, - "column": 0, - "severity": null, - "message": "Spelling", - "source": "cspell" - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Duplicate at the same position", - "source": "java" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 4, - "message": "Hint here", - "source": "Java" - } - ], - "groupBy": "none", - "sortBy": "file", - "filter": { - "query": "FILE10" - } - }, - "response": { - "groups": [ - { - "key": "all", - "kind": "all", - "indices": [ - 0, - 4 - ], - "counts": { - "error": 0, - "warning": 2, - "information": 0, - "hint": 0, - "unknown": 0 - } - } - ], - "files": [ - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "count": 2, - "highestSeverity": 2, - "counts": { - "error": 0, - "warning": 2, - "information": 0, - "hint": 0, - "unknown": 0 - } - } - ], - "visibleCounts": { - "error": 0, - "warning": 2, - "information": 0, - "hint": 0, - "unknown": 0 - }, - "totalCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - } - } - }, - { - "name": "no visible diagnostics produce no groups", - "request": { - "diagnostics": [ - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Unused import", - "source": "java", - "code": "268435844" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 9, - "column": 0, - "severity": 1, - "message": "Type mismatch", - "source": "java", - "code": "16777233" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 3, - "message": "Consider final", - "source": "java" - }, - { - "fileKey": "/w/README.md", - "displayPath": "README.md", - "line": 0, - "column": 0, - "severity": null, - "message": "Spelling", - "source": "cspell" - }, - { - "fileKey": "/w/src/File10.java", - "displayPath": "src/File10.java", - "line": 4, - "column": 2, - "severity": 2, - "message": "Duplicate at the same position", - "source": "java" - }, - { - "fileKey": "/w/src/File2.java", - "displayPath": "src/File2.java", - "line": 1, - "column": 5, - "severity": 4, - "message": "Hint here", - "source": "Java" - } - ], - "groupBy": "none", - "filter": { - "query": "absent" - } - }, - "response": { - "groups": [], - "files": [], - "visibleCounts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 0 - }, - "totalCounts": { - "error": 1, - "warning": 2, - "information": 1, - "hint": 1, - "unknown": 1 - } - } - }, - { - "name": "empty input", - "request": { - "diagnostics": [] - }, - "response": { - "groups": [], - "files": [], - "visibleCounts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 0 - }, - "totalCounts": { - "error": 0, - "warning": 0, - "information": 0, - "hint": 0, - "unknown": 0 - } - } - } - ] -} diff --git a/shared/fixtures/lsp/project-preparation-v1.json b/shared/fixtures/lsp/project-preparation-v1.json deleted file mode 100644 index eb84cdf69d..0000000000 --- a/shared/fixtures/lsp/project-preparation-v1.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "version": 1, - "snapshots": [ - { "phase": "starting", "status": "loading", "blocksRun": true }, - { "phase": "importing", "status": "loading", "blocksRun": true }, - { "phase": "configuring", "status": "loading", "blocksRun": true }, - { "phase": "building", "status": "loading", "blocksRun": true }, - { "phase": "ready", "status": "ready", "blocksRun": false }, - { "phase": "configuring", "status": "failed", "blocksRun": false }, - { "phase": "stopped", "status": "idle", "blocksRun": true } - ] -} diff --git a/shared/fixtures/lsp/semantic-tokens-v1.json b/shared/fixtures/lsp/semantic-tokens-v1.json deleted file mode 100644 index 2e444afe03..0000000000 --- a/shared/fixtures/lsp/semantic-tokens-v1.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "version": 1, - "request": { - "sessionId": "session-1", - "operation": "semanticTokens", - "uri": "file:///workspace/Probe.java" - }, - "serverOptions": { - "full": true, - "legend": { - "tokenTypes": [ - "class", - "method" - ], - "tokenModifiers": [ - "declaration" - ] - } - }, - "serverResult": { - "data": [ - 0, - 6, - 5, - 0, - 1, - 2, - 4, - 3, - 1, - 0, - 0, - 7, - 2, - 1, - 0 - ] - }, - "expectedResult": { - "tokenTypes": [ - "class", - "method" - ], - "tokenModifiers": [ - "declaration" - ], - "tokens": [ - { - "line": 0, - "startChar": 6, - "length": 5, - "tokenType": 0, - "tokenModifiers": 1 - }, - { - "line": 2, - "startChar": 4, - "length": 3, - "tokenType": 1, - "tokenModifiers": 0 - }, - { - "line": 2, - "startChar": 11, - "length": 2, - "tokenType": 1, - "tokenModifiers": 0 - } - ] - } -} diff --git a/shared/fixtures/lsp/text-edits-v1.json b/shared/fixtures/lsp/text-edits-v1.json deleted file mode 100644 index 16b60b8d88..0000000000 --- a/shared/fixtures/lsp/text-edits-v1.json +++ /dev/null @@ -1,382 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "unsorted batch with Chinese emoji and CRLF", - "text": "中文😀\r\n编辑\r\n", - "edits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 2 - } - }, - "newText": "批量" - }, - { - "range": { - "start": { - "line": 0, - "character": 2 - }, - "end": { - "line": 0, - "character": 4 - } - }, - "newText": "🚀" - } - ], - "expectedText": "中文🚀\r\n批量\r\n" - }, - { - "name": "multiline replacement preserves remaining CRLF", - "text": "甲\r\n乙😀\r\n丙", - "edits": [ - { - "range": { - "start": { - "line": 0, - "character": 1 - }, - "end": { - "line": 1, - "character": 1 - } - }, - "newText": "\r\n新" - } - ], - "expectedText": "甲\r\n新😀\r\n丙" - }, - { - "name": "insertion deletion and adjacent replacement", - "text": "abcdef", - "edits": [ - { - "range": { - "start": { - "line": 0, - "character": 4 - }, - "end": { - "line": 0, - "character": 6 - } - }, - "newText": "" - }, - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "中" - }, - { - "range": { - "start": { - "line": 0, - "character": 1 - }, - "end": { - "line": 0, - "character": 3 - } - }, - "newText": "😀" - }, - { - "range": { - "start": { - "line": 0, - "character": 3 - }, - "end": { - "line": 0, - "character": 4 - } - }, - "newText": "文" - } - ], - "expectedText": "中a😀文" - }, - { - "name": "empty edit batch", - "text": "中文😀\r\n", - "edits": [], - "expectedText": "中文😀\r\n" - }, - { - "name": "end of document after CRLF", - "text": "甲\r\n", - "edits": [ - { - "range": { - "start": { - "line": 1, - "character": 0 - }, - "end": { - "line": 1, - "character": 0 - } - }, - "newText": "乙😀" - } - ], - "expectedText": "甲\r\n乙😀" - }, - { - "name": "Core clamps a column beyond line end before CRLF", - "text": "甲\r\n乙", - "edits": [ - { - "range": { - "start": { - "line": 0, - "character": 99 - }, - "end": { - "line": 0, - "character": 99 - } - }, - "newText": "!" - } - ], - "expectedText": "甲!\r\n乙" - }, - { - "name": "Core normalizes a position inside a surrogate pair", - "text": "😀x", - "edits": [ - { - "range": { - "start": { - "line": 0, - "character": 1 - }, - "end": { - "line": 0, - "character": 2 - } - }, - "newText": "中" - } - ], - "expectedText": "中x" - }, - { - "name": "missing line", - "text": "abc", - "edits": [ - { - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 0 - } - }, - "newText": "bad" - } - ], - "expectedError": "invalidRange" - }, - { - "name": "negative line", - "text": "abc", - "edits": [ - { - "range": { - "start": { - "line": -1, - "character": 0 - }, - "end": { - "line": 0, - "character": 1 - } - }, - "newText": "bad" - } - ], - "expectedError": "invalidRange" - }, - { - "name": "negative column", - "text": "abc", - "edits": [ - { - "range": { - "start": { - "line": 0, - "character": -1 - }, - "end": { - "line": 0, - "character": 1 - } - }, - "newText": "bad" - } - ], - "expectedError": "invalidRange" - }, - { - "name": "reversed range", - "text": "abc", - "edits": [ - { - "range": { - "start": { - "line": 0, - "character": 2 - }, - "end": { - "line": 0, - "character": 1 - } - }, - "newText": "bad" - } - ], - "expectedError": "invalidRange" - }, - { - "name": "overlapping edits", - "text": "abcd", - "edits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 3 - } - }, - "newText": "a" - }, - { - "range": { - "start": { - "line": 0, - "character": 2 - }, - "end": { - "line": 0, - "character": 4 - } - }, - "newText": "b" - } - ], - "expectedError": "overlappingEdits" - }, - { - "name": "nested edits", - "text": "abcd", - "edits": [ - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 4 - } - }, - "newText": "a" - }, - { - "range": { - "start": { - "line": 0, - "character": 1 - }, - "end": { - "line": 0, - "character": 2 - } - }, - "newText": "b" - } - ], - "expectedError": "overlappingEdits" - }, - { - "name": "lone CR terminates a line", - "text": "a\rb\rc", - "edits": [ - { - "range": { - "start": { - "line": 2, - "character": 0 - }, - "end": { - "line": 2, - "character": 1 - } - }, - "newText": "C" - } - ], - "expectedText": "a\rb\rC" - }, - { - "name": "insert at a replacement start is adjacent regardless of batch order", - "text": "abcd", - "edits": [ - { - "range": { - "start": { - "line": 0, - "character": 1 - }, - "end": { - "line": 0, - "character": 3 - } - }, - "newText": "R" - }, - { - "range": { - "start": { - "line": 0, - "character": 1 - }, - "end": { - "line": 0, - "character": 1 - } - }, - "newText": "I" - } - ], - "expectedText": "aIRd" - } - ] -} diff --git a/shared/fixtures/lsp/workspace-edit-plan-v1.json b/shared/fixtures/lsp/workspace-edit-plan-v1.json deleted file mode 100644 index fd156d8fd2..0000000000 --- a/shared/fixtures/lsp/workspace-edit-plan-v1.json +++ /dev/null @@ -1,613 +0,0 @@ -{ - "version": 1, - "command": "lsp.planWorkspaceEdit", - "cases": [ - { - "name": "closed files commit before open documents, each by relative path", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "changes": { - "/work/project/src/b.go": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "b" - } - ], - "file:///work/project/src/a.go": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "a" - } - ], - "/work/project/z.go": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "z" - } - ] - }, - "openDocuments": [ - { - "path": "/work/project/src/b.go", - "isReadOnly": false - } - ] - }, - "expected": { - "rejection": null, - "targets": [ - { - "path": "/work/project/src/a.go", - "relativePath": "src/a.go", - "effect": "writeFile", - "edits": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "a" - } - ] - }, - { - "path": "/work/project/z.go", - "relativePath": "z.go", - "effect": "writeFile", - "edits": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "z" - } - ] - }, - { - "path": "/work/project/src/b.go", - "relativePath": "src/b.go", - "effect": "updateDocument", - "edits": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "b" - } - ] - } - ] - } - }, - { - "name": "percent-encoded URI keys decode to native paths", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "changes": { - "file:///work/project/A%23B%20c.go": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "x" - } - ] - } - }, - "expected": { - "rejection": null, - "targets": [ - { - "path": "/work/project/A#B c.go", - "relativePath": "A#B c.go", - "effect": "writeFile", - "edits": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "x" - } - ] - } - ] - } - }, - { - "name": "a target outside the workspace rejects the whole edit", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "changes": { - "/work/project/a.go": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "a" - } - ], - "/etc/hosts": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "x" - } - ] - } - }, - "expected": { - "rejection": { - "code": "outsideWorkspace", - "path": "/etc/hosts" - }, - "targets": [] - } - }, - { - "name": "dot segments cannot escape the workspace", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "changes": { - "/work/project/../secret.go": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "x" - } - ] - } - }, - "expected": { - "rejection": { - "code": "outsideWorkspace", - "path": "/work/project/../secret.go" - }, - "targets": [] - } - }, - { - "name": "a sibling directory sharing the root prefix is outside", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "changes": { - "/work/project2/a.go": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "x" - } - ] - } - }, - "expected": { - "rejection": { - "code": "outsideWorkspace", - "path": "/work/project2/a.go" - }, - "targets": [] - } - }, - { - "name": "non-file URIs are outside the workspace", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "changes": { - "jdt://contents/rt.jar/java.lang/String.class": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "x" - } - ] - } - }, - "expected": { - "rejection": { - "code": "outsideWorkspace", - "path": "jdt://contents/rt.jar/java.lang/String.class" - }, - "targets": [] - } - }, - { - "name": "a read-only open document rejects the whole edit", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "changes": { - "/work/project/a.go": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "a" - } - ], - "/work/project/gen.go": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "g" - } - ] - }, - "openDocuments": [ - { - "path": "/work/project/gen.go", - "isReadOnly": true - } - ] - }, - "expected": { - "rejection": { - "code": "readOnlyDocument", - "path": "/work/project/gen.go" - }, - "targets": [] - } - }, - { - "name": "targets without edits produce no effect", - "request": { - "platform": "posix", - "workspaceRoot": "/work/project", - "changes": { - "/work/project/a.go": [], - "/work/project/b.go": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "b" - } - ] - } - }, - "expected": { - "rejection": null, - "targets": [ - { - "path": "/work/project/b.go", - "relativePath": "b.go", - "effect": "writeFile", - "edits": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "b" - } - ] - } - ] - } - }, - { - "name": "Windows keys match open documents without case or separator differences and keep the host path", - "request": { - "platform": "windows", - "workspaceRoot": "C:\\Work\\Project", - "changes": { - "/C:/Work/Project/src/Main.java": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "m" - } - ], - "file:///c%3A/work/project/README.md": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "r" - } - ] - }, - "openDocuments": [ - { - "path": "C:\\Work\\Project\\src\\Main.java", - "isReadOnly": false - } - ] - }, - "expected": { - "rejection": null, - "targets": [ - { - "path": "c:/work/project/README.md", - "relativePath": "README.md", - "effect": "writeFile", - "edits": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "r" - } - ] - }, - { - "path": "C:\\Work\\Project\\src\\Main.java", - "relativePath": "src/Main.java", - "effect": "updateDocument", - "edits": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "m" - } - ] - } - ] - } - }, - { - "name": "keys naming one file merge in key order", - "request": { - "platform": "windows", - "workspaceRoot": "C:/Work/Project", - "changes": { - "C:/Work/Project/a.txt": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "1" - } - ], - "c:\\work\\project\\a.txt": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "2" - } - ] - } - }, - "expected": { - "rejection": null, - "targets": [ - { - "path": "C:/Work/Project/a.txt", - "relativePath": "a.txt", - "effect": "writeFile", - "edits": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "1" - }, - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "2" - } - ] - } - ] - } - }, - { - "name": "a relative workspace root is invalid", - "request": { - "platform": "posix", - "workspaceRoot": "project", - "changes": { - "/work/project/a.go": [ - { - "range": { - "start": { - "line": 0, - "utf16Column": 0 - }, - "end": { - "line": 0, - "utf16Column": 0 - } - }, - "newText": "a" - } - ] - } - }, - "expectedError": "invalid_request" - } - ] -} diff --git a/shared/fixtures/maven/basic.json b/shared/fixtures/maven/basic.json deleted file mode 100644 index 113eab023f..0000000000 --- a/shared/fixtures/maven/basic.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "name": "recursive Maven project scan", - "request": { - "command": "maven.scan", - "payload": { - "root": "/workspace", - "paths": ["pom.xml", "module-a/pom.xml", "module-a/module-b/pom.xml"] - } - }, - "expected": { - "relativePath": ".", - "artifactId": "demo", - "packaging": "pom", - "sourceRoots": [], - "modules": [ - { - "relativePath": "module-a", - "sourceRoots": [ - { "path": "src/main/java", "kind": "mainJava" }, - { "path": "src/main/resources", "kind": "mainResources" }, - { "path": "src/test/java", "kind": "testJava" }, - { "path": "src/test/resources", "kind": "testResources" }, - { "path": "target/generated-sources", "kind": "generatedMain" }, - { "path": "target/generated-test-sources", "kind": "generatedTest" } - ], - "modules": [ - { - "relativePath": "module-a/module-b", - "sourceRoots": [ - { "path": "src/main/java", "kind": "mainJava" }, - { "path": "src/main/resources", "kind": "mainResources" }, - { "path": "src/test/java", "kind": "testJava" }, - { "path": "src/test/resources", "kind": "testResources" }, - { "path": "target/generated-sources", "kind": "generatedMain" }, - { "path": "target/generated-test-sources", "kind": "generatedTest" } - ] - } - ] - } - ], - "profiles": [ - { - "id": "dev", - "isActiveByDefault": true - } - ], - "hasWrapper": true - } -} diff --git a/shared/fixtures/maven/dependency-tree-v2.json b/shared/fixtures/maven/dependency-tree-v2.json deleted file mode 100644 index de3937b1c6..0000000000 --- a/shared/fixtures/maven/dependency-tree-v2.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "version": 2, - "modulePath": "service", - "treeFile": "com.example:service:jar:1.0.0\n+- org.example:runtime-lib:jar:2.0:runtime\n| \\- org.example:transitive-lib:jar:1.5:runtime (scope updated from test)\n+- org.example:provided-lib:jar:3.0:provided (scope managed from compile)\n+- org.example:test-lib:jar:tests:4.0:test\n+- org.example:managed-lib:jar:2.1:compile (version managed from 0.9.0; scope not updated to compile)\n\\- org.example:compile-lib:jar:1.0:compile\n +- (org.example:duplicate-lib:jar:1.0:compile - version managed from 1.0; omitted for duplicate)\n \\- (org.example:conflict-lib:jar:1.0:compile - version managed from 1.1; omitted for conflict with 2.0)\n", - "expected": { - "modulePath": "service", - "dependencies": [ - { - "modulePath": "service", - "groupId": "org.example", - "artifactId": "compile-lib", - "version": "1.0", - "type": "jar", - "classifier": null, - "scope": "compile", - "resolution": "resolved", - "selectedVersion": null, - "premanagedVersion": null, - "premanagedScope": null, - "originalScope": null, - "ignoredScope": null, - "children": [ - { - "modulePath": "service", - "groupId": "org.example", - "artifactId": "conflict-lib", - "version": "1.0", - "type": "jar", - "classifier": null, - "scope": "compile", - "resolution": "omittedConflict", - "selectedVersion": "2.0", - "premanagedVersion": "1.1", - "premanagedScope": null, - "originalScope": null, - "ignoredScope": null, - "children": [] - }, - { - "modulePath": "service", - "groupId": "org.example", - "artifactId": "duplicate-lib", - "version": "1.0", - "type": "jar", - "classifier": null, - "scope": "compile", - "resolution": "omittedDuplicate", - "selectedVersion": null, - "premanagedVersion": "1.0", - "premanagedScope": null, - "originalScope": null, - "ignoredScope": null, - "children": [] - } - ] - }, - { - "modulePath": "service", - "groupId": "org.example", - "artifactId": "managed-lib", - "version": "2.1", - "type": "jar", - "classifier": null, - "scope": "compile", - "resolution": "resolved", - "selectedVersion": null, - "premanagedVersion": "0.9.0", - "premanagedScope": null, - "originalScope": null, - "ignoredScope": "compile", - "children": [] - }, - { - "modulePath": "service", - "groupId": "org.example", - "artifactId": "provided-lib", - "version": "3.0", - "type": "jar", - "classifier": null, - "scope": "provided", - "resolution": "resolved", - "selectedVersion": null, - "premanagedVersion": null, - "premanagedScope": "compile", - "originalScope": null, - "ignoredScope": null, - "children": [] - }, - { - "modulePath": "service", - "groupId": "org.example", - "artifactId": "runtime-lib", - "version": "2.0", - "type": "jar", - "classifier": null, - "scope": "runtime", - "resolution": "resolved", - "selectedVersion": null, - "premanagedVersion": null, - "premanagedScope": null, - "originalScope": null, - "ignoredScope": null, - "children": [ - { - "modulePath": "service", - "groupId": "org.example", - "artifactId": "transitive-lib", - "version": "1.5", - "type": "jar", - "classifier": null, - "scope": "runtime", - "resolution": "resolved", - "selectedVersion": null, - "premanagedVersion": null, - "premanagedScope": null, - "originalScope": "test", - "ignoredScope": null, - "children": [] - } - ] - }, - { - "modulePath": "service", - "groupId": "org.example", - "artifactId": "test-lib", - "version": "4.0", - "type": "jar", - "classifier": "tests", - "scope": "test", - "resolution": "resolved", - "selectedVersion": null, - "premanagedVersion": null, - "premanagedScope": null, - "originalScope": null, - "ignoredScope": null, - "children": [] - } - ] - } -} diff --git a/shared/fixtures/maven/diagnostics.json b/shared/fixtures/maven/diagnostics.json deleted file mode 100644 index 33df033fb9..0000000000 --- a/shared/fixtures/maven/diagnostics.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "Maven compiler diagnostics", - "request": { - "command": "maven.diagnostics", - "payload": { - "root": "/workspace", - "output": "[ERROR] src/main/java/App.java:[12,4] cannot find symbol\n[WARNING] src/main/java/App.java:[4] unused import\n" - } - }, - "expected": { - "issues": [ - { - "path": "src/main/java/App.java", - "line": 12, - "column": 4, - "severity": "error", - "message": "cannot find symbol" - }, - { - "path": "src/main/java/App.java", - "line": 4, - "column": null, - "severity": "warning", - "message": "unused import" - } - ] - } -} diff --git a/shared/fixtures/maven/launch-plan-v1.json b/shared/fixtures/maven/launch-plan-v1.json deleted file mode 100644 index 8d95427e42..0000000000 --- a/shared/fixtures/maven/launch-plan-v1.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "nested reactor module lifecycle with local settings", - "context": { - "version": 1, - "reactorPath": "projects/demo", - "profiles": ["qa", "dev", "dev"], - "settingsPath": "/Users/example/.m2/settings.xml", - "localRepositoryPath": "/Users/example/.m2/custom-repository", - "skipTests": true, - "mavenExecutablePath": "/opt/apache-maven/bin/mvn", - "javaHomePath": "/Library/Java/JavaVirtualMachines/example/Contents/Home" - }, - "module": "service-api", - "goals": ["verify"], - "expected": { - "version": 1, - "executable": { "toolchain": "project-maven" }, - "arguments": [ - "-B", - "-ntp", - "-P", - "dev,qa", - "-s", - "/Users/example/.m2/settings.xml", - "-Dmaven.repo.local=/Users/example/.m2/custom-repository", - "-pl", - "service-api", - "-am", - "-DskipTests", - "verify" - ], - "workingDirectory": "projects/demo", - "configurationFingerprint": "sha256:0e84a43d287c8e889ff15740114e8de0d719cbf3ca6b6ce3530b97e164770f4a" - } - }, - { - "name": "root reactor custom goal preserves maven config behavior", - "context": { - "version": 1, - "reactorPath": ".", - "profiles": [], - "skipTests": false - }, - "module": null, - "goals": ["spring-boot:run"], - "expected": { - "version": 1, - "executable": { "toolchain": "project-maven" }, - "arguments": ["-B", "-ntp", "spring-boot:run"], - "workingDirectory": ".", - "configurationFingerprint": "sha256:65a5de6ae2a3135ad844ed30ba8558865f97a6696654a83d3d1d8544cc63380f" - } - }, - { - "name": "custom goal keeps property and quiet arguments as argv", - "context": { - "version": 1, - "reactorPath": ".", - "profiles": [], - "skipTests": false - }, - "module": null, - "goals": [ - "help:evaluate", - "-Dexpression=fixture.config", - "-q", - "-DforceStdout" - ], - "expected": { - "version": 1, - "executable": { "toolchain": "project-maven" }, - "arguments": [ - "-B", - "-ntp", - "help:evaluate", - "-Dexpression=fixture.config", - "-q", - "-DforceStdout" - ], - "workingDirectory": ".", - "configurationFingerprint": "sha256:65a5de6ae2a3135ad844ed30ba8558865f97a6696654a83d3d1d8544cc63380f" - } - } - ] -} diff --git a/shared/fixtures/maven/platform-contract-v1.json b/shared/fixtures/maven/platform-contract-v1.json deleted file mode 100644 index afa7ca9b73..0000000000 --- a/shared/fixtures/maven/platform-contract-v1.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "version": 1, - "lifecyclePhases": [ - "clean", - "validate", - "compile", - "test", - "package", - "verify", - "install", - "site", - "deploy" - ], - "storageIdentityCases": [ - { - "name": "macOS preserves workspace path case", - "platform": "macos", - "workspacePath": "/Users/Example/Projects/Lithe", - "reactorPath": "services/api", - "expectedIdentity": "/Users/Example/Projects/Lithe\u0000services/api" - }, - { - "name": "Windows folds workspace case and normalizes reactor separators", - "platform": "windows", - "workspacePath": "C:\\Users\\Example\\Projects\\Lithe", - "reactorPath": "services\\api", - "expectedIdentity": "c:\\users\\example\\projects\\lithe\u0000services/api" - } - ] -} diff --git a/shared/fixtures/maven/source-roots-v1.json b/shared/fixtures/maven/source-roots-v1.json deleted file mode 100644 index ac76765b15..0000000000 --- a/shared/fixtures/maven/source-roots-v1.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "version": 1, - "kindOrder": [ - "mainJava", - "mainResources", - "testJava", - "testResources", - "generatedMain", - "generatedTest" - ], - "cases": [ - { - "name": "standard module", - "sourceRoots": [ - { "path": "src/main/java", "kind": "mainJava" }, - { "path": "src/main/resources", "kind": "mainResources" }, - { "path": "src/test/java", "kind": "testJava" }, - { "path": "src/test/resources", "kind": "testResources" }, - { "path": "target/generated-sources", "kind": "generatedMain" }, - { "path": "target/generated-test-sources", "kind": "generatedTest" } - ] - }, - { - "name": "configured module", - "sourceRoots": [ - { "path": "custom/java", "kind": "mainJava" }, - { "path": "custom/resources", "kind": "mainResources" }, - { "path": "custom/test-java", "kind": "testJava" }, - { "path": "custom/test-resources", "kind": "testResources" }, - { "path": "target/generated-sources/annotations", "kind": "generatedMain" }, - { "path": "target/generated-test-sources", "kind": "generatedTest" } - ] - }, - { - "name": "custom build directory", - "sourceRoots": [ - { "path": "src/main/java", "kind": "mainJava" }, - { "path": "src/main/resources", "kind": "mainResources" }, - { "path": "src/test/java", "kind": "testJava" }, - { "path": "src/test/resources", "kind": "testResources" }, - { "path": "build-output/generated-sources/annotations", "kind": "generatedMain" }, - { "path": "build-output/generated-test-sources/fixtures", "kind": "generatedTest" } - ] - }, - { - "name": "execution-scoped generated sources", - "sourceRoots": [ - { "path": "src/main/java", "kind": "mainJava" }, - { "path": "src/main/resources", "kind": "mainResources" }, - { "path": "src/test/java", "kind": "testJava" }, - { "path": "src/test/resources", "kind": "testResources" }, - { "path": "target/generated-sources/openapi", "kind": "generatedMain" }, - { "path": "target/generated-test-sources/fixtures", "kind": "generatedTest" } - ] - } - ] -} diff --git a/shared/fixtures/maven/test-results-v1.json b/shared/fixtures/maven/test-results-v1.json deleted file mode 100644 index cea6a71014..0000000000 --- a/shared/fixtures/maven/test-results-v1.json +++ /dev/null @@ -1,304 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "junit5-failure-and-error", - "sourceFiles": ["src/test/java/com/example/CalculatorTest.java"], - "output": "[ERROR] Failures:\n[ERROR] additionIsCorrect(com.example.CalculatorTest): expected <4> but was <5>\n[ERROR] at com.example.CalculatorTest.additionIsCorrect(CalculatorTest.java:42)\n[ERROR] Errors:\n[ERROR] contextLoads(com.example.CalculatorTest): application context failed\n[ERROR] at com.example.CalculatorTest.contextLoads(CalculatorTest.java:55)\n[ERROR] Tests run: 4, Failures: 1, Errors: 1, Skipped: 1\n", - "expected": { - "testsRun": 4, - "failures": 1, - "errors": 1, - "skipped": 1, - "passed": 1, - "success": false, - "failureDetails": [ - { - "name": "additionIsCorrect(com.example.CalculatorTest)", - "kind": "failure", - "message": "expected <4> but was <5>", - "path": "src/test/java/com/example/CalculatorTest.java", - "line": 42, - "column": null - }, - { - "name": "contextLoads(com.example.CalculatorTest)", - "kind": "error", - "message": "application context failed", - "path": "src/test/java/com/example/CalculatorTest.java", - "line": 55, - "column": null - } - ], - "testCases": [] - } - }, - { - "name": "junit4-pass", - "sourceFiles": [], - "output": "[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0\n", - "expected": { - "testsRun": 2, - "failures": 0, - "errors": 0, - "skipped": 0, - "passed": 2, - "success": true, - "failureDetails": [], - "testCases": [] - } - }, - { - "name": "surefire-3-detailed-failure-with-reactor-footer", - "sourceFiles": ["src/test/java/review/AppTest.java"], - "output": "[ERROR] review.AppTest.targetFailure -- Time elapsed: 0.023 s <<< FAILURE!\norg.opentest4j.AssertionFailedError: expected review failure\n at org.junit.jupiter.api.Assertions.fail(Assertions.java:138)\n at review.AppTest.targetFailure(AppTest.java:4)\n\n[INFO] Results:\n[ERROR] Failures:\n[ERROR] AppTest.targetFailure:4 expected review failure\n[INFO] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0\n[INFO] Reactor Summary for reactor 1.0-SNAPSHOT:\n[INFO] base ................................ SUCCESS\n[INFO] app ................................ FAILURE\n", - "expected": { - "testsRun": 1, - "failures": 1, - "errors": 0, - "skipped": 0, - "passed": 0, - "success": false, - "failureDetails": [ - { - "name": "review.AppTest.targetFailure", - "kind": "failure", - "message": "expected review failure", - "path": "src/test/java/review/AppTest.java", - "line": 4, - "column": null - } - ], - "testCases": [] - } - }, - { - "name": "surefire-3-parameterized-detailed-failure", - "sourceFiles": ["src/test/java/review/AppTest.java"], - "output": "[ERROR] review.AppTest.targetFailure(int)[1] -- Time elapsed: 0.023 s <<< FAILURE!\njava.lang.AssertionError: expected review failure\n at review.AppTest.targetFailure(AppTest.java:4)\n\n[INFO] Results:\n[ERROR] Failures:\n[ERROR] targetFailure(int)[1](review.AppTest):4 expected review failure\n[INFO] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0\n", - "expected": { - "testsRun": 1, - "failures": 1, - "errors": 0, - "skipped": 0, - "passed": 0, - "success": false, - "failureDetails": [ - { - "name": "review.AppTest.targetFailure(int)[1]", - "kind": "failure", - "message": "expected review failure", - "path": "src/test/java/review/AppTest.java", - "line": 4, - "column": null - } - ], - "testCases": [] - } - }, - { - "name": "surefire-2-detailed-failure", - "sourceFiles": ["src/test/java/review/AppTest.java"], - "output": "[ERROR] fails(review.AppTest) Time elapsed: 0.01 s <<< FAILURE!\njava.lang.AssertionError: expected review failure\n at review.AppTest.fails(AppTest.java:9)\n[INFO] Results:\n[ERROR] Failures:\n[ERROR] fails(review.AppTest): expected review failure\n[INFO] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0\n", - "expected": { - "testsRun": 1, - "failures": 1, - "errors": 0, - "skipped": 0, - "passed": 0, - "success": false, - "failureDetails": [ - { - "name": "fails(review.AppTest)", - "kind": "failure", - "message": "expected review failure", - "path": "src/test/java/review/AppTest.java", - "line": 9, - "column": null - } - ], - "testCases": [] - } - }, - { - "name": "qualified-source-wins-over-simple-name", - "sourceFiles": [ - "module-a/src/test/java/other/AppTest.java", - "module-b/src/test/java/review/AppTest.java" - ], - "output": "[ERROR] review.AppTest.fails -- Time elapsed: 0.01 s <<< FAILURE!\njava.lang.AssertionError: expected review failure\n at review.AppTest.fails(AppTest.java:12)\n[INFO] Results:\n[ERROR] Failures:\n[ERROR] AppTest.fails:12 expected review failure\n[INFO] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0\n", - "expected": { - "testsRun": 1, - "failures": 1, - "errors": 0, - "skipped": 0, - "passed": 0, - "success": false, - "failureDetails": [ - { - "name": "review.AppTest.fails", - "kind": "failure", - "message": "expected review failure", - "path": "module-b/src/test/java/review/AppTest.java", - "line": 12, - "column": null - } - ], - "testCases": [] - } - }, - { - "name": "ambiguous-qualified-source-has-no-location", - "sourceFiles": [ - "module-a/src/test/java/review/AppTest.java", - "module-b/src/test/java/review/AppTest.java" - ], - "output": "[ERROR] review.AppTest.fails -- Time elapsed: 0.01 s <<< FAILURE!\njava.lang.AssertionError: expected review failure\n at review.AppTest.fails(AppTest.java:12)\n[INFO] Results:\n[ERROR] Failures:\n[ERROR] AppTest.fails:12 expected review failure\n[INFO] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0\n", - "expected": { - "testsRun": 1, - "failures": 1, - "errors": 0, - "skipped": 0, - "passed": 0, - "success": false, - "failureDetails": [ - { - "name": "review.AppTest.fails", - "kind": "failure", - "message": "expected review failure", - "path": null, - "line": null, - "column": null - } - ], - "testCases": [] - } - }, - { - "name": "junit5-parameterized-nested-module", - "sourceFiles": ["service/src/test/java/com/example/CalculatorTest.java"], - "output": "[ERROR] Failures:\n[ERROR] additionIsCorrect(int)[1](com.example.CalculatorTest): expected <4> but was <5>\n[ERROR] at com.example.CalculatorTest.additionIsCorrect(CalculatorTest.java:42)\n[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0\n", - "expected": { - "testsRun": 1, - "failures": 1, - "errors": 0, - "skipped": 0, - "passed": 0, - "success": false, - "failureDetails": [ - { - "name": "additionIsCorrect(int)[1](com.example.CalculatorTest)", - "kind": "failure", - "message": "expected <4> but was <5>", - "path": "service/src/test/java/com/example/CalculatorTest.java", - "line": 42, - "column": null - } - ], - "testCases": [] - } - }, - { - "name": "packaged-source-wins-over-root-same-name", - "sourceFiles": [ - "src/test/java/AppTest.java", - "service/src/test/java/com/example/AppTest.java" - ], - "output": "[ERROR] com.example.AppTest.fails -- Time elapsed: 0.023 s <<< FAILURE!\njava.lang.AssertionError: expected failure\n at com.example.AppTest.fails(AppTest.java:8)\n\n[ERROR] Failures:\n[ERROR] com.example.AppTest.fails:8 expected failure\n[INFO] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0\n", - "expected": { - "testsRun": 1, - "failures": 1, - "errors": 0, - "skipped": 0, - "passed": 0, - "success": false, - "failureDetails": [ - { - "name": "com.example.AppTest.fails", - "kind": "failure", - "message": "expected failure", - "path": "service/src/test/java/com/example/AppTest.java", - "line": 8, - "column": null - } - ], - "testCases": [] - } - }, - { - "name": "duplicate-packaged-source-has-no-location", - "sourceFiles": [ - "service-one/src/test/java/com/example/AppTest.java", - "service-two/src/test/java/com/example/AppTest.java" - ], - "output": "[ERROR] com.example.AppTest.fails -- Time elapsed: 0.023 s <<< FAILURE!\njava.lang.AssertionError: expected failure\n at com.example.AppTest.fails(AppTest.java:8)\n\n[ERROR] Failures:\n[ERROR] com.example.AppTest.fails:8 expected failure\n[INFO] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0\n", - "expected": { - "testsRun": 1, - "failures": 1, - "errors": 0, - "skipped": 0, - "passed": 0, - "success": false, - "failureDetails": [ - { - "name": "com.example.AppTest.fails", - "kind": "failure", - "message": "expected failure", - "path": null, - "line": null, - "column": null - } - ], - "testCases": [] - } - }, - { - "name": "surefire-legacy-detailed-failure", - "sourceFiles": ["src/test/java/review/AppTest.java"], - "output": "review.AppTest.targetFailure Time elapsed: 0.01 sec <<< FAILURE!\njava.lang.AssertionError: expected legacy failure\n at org.junit.Assert.fail(Assert.java:88)\n at review.AppTest.targetFailure(AppTest.java:4)\n\nFailed tests:\n targetFailure(review.AppTest):4 expected legacy failure\n\nTests run: 1, Failures: 1, Errors: 0, Skipped: 0\n", - "expected": { - "testsRun": 1, - "failures": 1, - "errors": 0, - "skipped": 0, - "passed": 0, - "success": false, - "failureDetails": [ - { - "name": "review.AppTest.targetFailure", - "kind": "failure", - "message": "expected legacy failure", - "path": "src/test/java/review/AppTest.java", - "line": 4, - "column": null - } - ], - "testCases": [] - } - }, - { - "name": "junit4-failed-tests-footer-only", - "sourceFiles": ["src/test/java/review/AppTest.java"], - "output": "Failed tests:\n targetFailure(review.AppTest):4 expected legacy failure\n\nTests run: 1, Failures: 1, Errors: 0, Skipped: 0\n", - "expected": { - "testsRun": 1, - "failures": 1, - "errors": 0, - "skipped": 0, - "passed": 0, - "success": false, - "failureDetails": [ - { - "name": "targetFailure(review.AppTest)", - "kind": "failure", - "message": "expected legacy failure", - "path": "src/test/java/review/AppTest.java", - "line": 4, - "column": null - } - ], - "testCases": [] - } - } - ] -} diff --git a/shared/fixtures/maven/testcase-durations-v1.json b/shared/fixtures/maven/testcase-durations-v1.json deleted file mode 100644 index 114330b63f..0000000000 --- a/shared/fixtures/maven/testcase-durations-v1.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "xml": "\n\n\n\n\n\n\n\n\n\n\n\n", - "expected": [ - { - "className": "demo.DurationTest", - "method": "fast", - "status": "passed", - "message": null, - "invocations": 1, - "durationMillis": 10 - }, - { - "className": "demo.DurationTest", - "method": "invalid", - "status": "passed", - "message": null, - "invocations": 1 - }, - { - "className": "demo.DurationTest", - "method": "missing", - "status": "passed", - "message": null, - "invocations": 1 - }, - { - "className": "demo.DurationTest", - "method": "negative", - "status": "passed", - "message": null, - "invocations": 1 - }, - { - "className": "demo.DurationTest", - "method": "overflow", - "status": "passed", - "message": null, - "invocations": 1 - }, - { - "className": "demo.DurationTest", - "method": "partial", - "status": "passed", - "message": null, - "invocations": 2 - }, - { - "className": "demo.DurationTest", - "method": "repeat", - "status": "passed", - "message": null, - "invocations": 2, - "durationMillis": 50 - }, - { - "className": "demo.DurationTest", - "method": "slow", - "status": "passed", - "message": null, - "invocations": 1, - "durationMillis": 125 - }, - { - "className": "demo.DurationTest", - "method": "zero", - "status": "passed", - "message": null, - "invocations": 1, - "durationMillis": 0 - } - ] -} diff --git a/shared/fixtures/modules/built-in-v1.json b/shared/fixtures/modules/built-in-v1.json deleted file mode 100644 index aafa878de9..0000000000 --- a/shared/fixtures/modules/built-in-v1.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "version": 1, - "modules": [ - { - "id": "dev.lithe.agent-conversation", - "displayName": "Agent Conversation", - "scope": "application", - "defaultState": "disabled", - "activationPolicy": "onDemand", - "sleepPolicy": { "kind": "never" }, - "dependencies": [], - "capabilities": ["dev.lithe.capability.agent-conversation"], - "contributions": [ - { "id": "agent.conversation", "kind": "toolWindow", "actionID": "agent.conversation.toggle", "rendererID": "agent.conversation" } - ], - "required": false - }, - { - "id": "dev.lithe.ai-assistance", - "displayName": "AI Assistance", - "scope": "application", - "defaultState": "disabled", - "activationPolicy": "onDemand", - "sleepPolicy": { "kind": "whenIdle", "afterSeconds": 300 }, - "dependencies": [], - "capabilities": [ - "dev.lithe.capability.ai-commit-message", - "dev.lithe.capability.ai-pull-request-description" - ], - "contributions": [ - { "id": "ai.commit-message", "kind": "command" }, - { "id": "ai.pull-request-description", "kind": "command" }, - { "id": "ai.settings", "kind": "settings" } - ], - "required": false - }, - { - "id": "dev.lithe.debug", - "displayName": "Debug", - "scope": "workspace", - "defaultState": "enabled", - "activationPolicy": "onDemand", - "sleepPolicy": { "kind": "whenIdle", "afterSeconds": 600 }, - "dependencies": ["dev.lithe.execution", "dev.lithe.language-intelligence", "dev.lithe.workspace"], - "capabilities": ["dev.lithe.capability.debug-workspace"], - "contributions": [ - { "id": "debug.session", "kind": "toolWindow", "actionID": "debug.toggle", "rendererID": "debug.session" } - ], - "required": false - }, - { - "id": "dev.lithe.execution", - "displayName": "Build / Run / Test", - "scope": "workspace", - "defaultState": "enabled", - "activationPolicy": "onDemand", - "sleepPolicy": { "kind": "whenIdle", "afterSeconds": 600 }, - "dependencies": ["dev.lithe.workspace"], - "capabilities": ["dev.lithe.capability.execution-workspace"], - "contributions": [ - { "id": "execution.maven", "kind": "toolWindow", "actionID": "execution.maven.toggle", "rendererID": "execution.maven" }, - { "id": "execution.run", "kind": "toolWindow", "actionID": "execution.run.toggle", "rendererID": "execution.run" }, - { "id": "execution.tests", "kind": "toolWindow", "actionID": "execution.tests.toggle", "rendererID": "execution.tests" } - ], - "required": false - }, - { - "id": "dev.lithe.git", - "displayName": "Git Review", - "scope": "workspace", - "defaultState": "enabled", - "activationPolicy": "onDemand", - "sleepPolicy": { "kind": "whenIdle", "afterSeconds": 600 }, - "dependencies": ["dev.lithe.workspace"], - "capabilities": ["dev.lithe.capability.git-workspace"], - "contributions": [ - { "id": "git.changes", "kind": "toolWindow", "actionID": "git.changes.show", "rendererID": "git.changes" }, - { "id": "git.log", "kind": "toolWindow", "actionID": "git.log.toggle", "rendererID": "git.log" } - ], - "required": false - }, - { - "id": "dev.lithe.language-intelligence", - "displayName": "Language Intelligence", - "scope": "workspace", - "defaultState": "enabled", - "activationPolicy": "onDemand", - "sleepPolicy": { "kind": "whenIdle", "afterSeconds": 600 }, - "dependencies": ["dev.lithe.workspace"], - "capabilities": ["dev.lithe.capability.language-intelligence"], - "contributions": [ - { "id": "language.problems", "kind": "toolWindow", "actionID": "language.problems.toggle", "rendererID": "language.problems" }, - { "id": "language.settings", "kind": "settings" } - ], - "required": false - }, - { - "id": "dev.lithe.local-history", - "displayName": "Local History", - "scope": "workspace", - "defaultState": "enabled", - "activationPolicy": "onDemand", - "sleepPolicy": { "kind": "whenIdle", "afterSeconds": 600 }, - "dependencies": ["dev.lithe.workspace"], - "capabilities": ["dev.lithe.capability.history-workspace"], - "contributions": [ - { "id": "history.local", "kind": "toolWindow" } - ], - "required": false - }, - { - "id": "dev.lithe.search", - "displayName": "Search & Index", - "scope": "workspace", - "defaultState": "enabled", - "activationPolicy": "onDemand", - "sleepPolicy": { "kind": "whenIdle", "afterSeconds": 600 }, - "dependencies": ["dev.lithe.workspace"], - "capabilities": ["dev.lithe.capability.search-workspace"], - "contributions": [ - { "id": "search.workspace", "kind": "toolWindow", "actionID": "search.workspace.show", "rendererID": "search.workspace" } - ], - "required": false - }, - { - "id": "dev.lithe.terminal", - "displayName": "Terminal", - "scope": "workspace", - "defaultState": "enabled", - "activationPolicy": "onDemand", - "sleepPolicy": { "kind": "whenIdle", "afterSeconds": 600 }, - "dependencies": ["dev.lithe.workspace"], - "capabilities": ["dev.lithe.capability.terminal-workspace"], - "contributions": [ - { "id": "terminal.sessions", "kind": "toolWindow", "actionID": "terminal.toggle", "rendererID": "terminal.sessions" } - ], - "required": false - }, - { - "id": "dev.lithe.workspace", - "displayName": "Workspace Foundation", - "scope": "workspace", - "defaultState": "enabled", - "activationPolicy": "eager", - "sleepPolicy": { "kind": "never" }, - "dependencies": [], - "capabilities": ["dev.lithe.capability.workspace-foundation"], - "contributions": [ - { "id": "github.pull-requests", "kind": "toolWindow", "actionID": "github.pull-requests.show", "rendererID": "github.pull-requests" }, - { "id": "workspace.project", "kind": "toolWindow", "actionID": "workspace.project.show", "rendererID": "workspace.project" } - ], - "required": true - } - ] -} diff --git a/shared/fixtures/mybatis/basic.json b/shared/fixtures/mybatis/basic.json deleted file mode 100644 index 76a40ce375..0000000000 --- a/shared/fixtures/mybatis/basic.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "MyBatis mapper XML navigation index", - "request": { - "command": "mybatis.index", - "payload": { - "root": "/fixture/workspace", - "paths": [ - "src/main/java/example/UserMapper.java", - "src/main/resources/mapper/UserMapper.xml" - ], - "textOverrides": { - "src/main/resources/mapper/UserMapper.xml": "" - } - } - }, - "expected": { - "statement": { - "namespace": "example.UserMapper", - "statementId": "selectById", - "kind": "select", - "javaPath": "src/main/java/example/UserMapper.java", - "xmlPath": "src/main/resources/mapper/UserMapper.xml" - } - } -} diff --git a/shared/fixtures/network/proxy-policy-v1.json b/shared/fixtures/network/proxy-policy-v1.json deleted file mode 100644 index 1ab25759f5..0000000000 --- a/shared/fixtures/network/proxy-policy-v1.json +++ /dev/null @@ -1,285 +0,0 @@ -{ - "protocolVersion": 1, - "cases": [ - { - "name": "followSystem", - "request": { - "mode": "system", - "proxyType": "http", - "host": "proxy.example", - "port": 3128, - "username": "lithe", - "password": "secret", - "exclusions": [ - "127.0.0.1" - ] - }, - "expected": { - "policy": "system", - "proxyType": "http", - "host": "", - "port": 0, - "username": "", - "password": "", - "exclusions": [], - "configured": false - } - }, - { - "name": "direct", - "request": { - "mode": "direct", - "proxyType": "http", - "host": "proxy.example", - "port": 3128 - }, - "expected": { - "policy": "direct", - "proxyType": "http", - "host": "", - "port": 0, - "username": "", - "password": "", - "exclusions": [], - "configured": false - } - }, - { - "name": "customHttpWithCredentialsAndExclusions", - "request": { - "mode": "custom", - "proxyType": "http", - "host": " 127.0.0.1 ", - "port": 7890, - "username": " lithe ", - "password": "s ecret", - "exclusions": [ - " 127.0.0.1 ", - "", - " *.internal.example " - ] - }, - "expected": { - "policy": "custom", - "proxyType": "http", - "host": "127.0.0.1", - "port": 7890, - "username": "lithe", - "password": "s ecret", - "exclusions": [ - "127.0.0.1", - "*.internal.example" - ], - "configured": true - } - }, - { - "name": "customSocks5", - "request": { - "mode": "custom", - "proxyType": "socks5", - "host": "proxy.example", - "port": 1080 - }, - "expected": { - "policy": "custom", - "proxyType": "socks5", - "host": "proxy.example", - "port": 1080, - "username": "", - "password": "", - "exclusions": [], - "configured": true - } - }, - { - "name": "customWithoutProxyTypeDefaultsToHttp", - "request": { - "mode": "custom", - "host": "proxy.example", - "port": 3128 - }, - "expected": { - "policy": "custom", - "proxyType": "http", - "host": "proxy.example", - "port": 3128, - "username": "", - "password": "", - "exclusions": [], - "configured": true - } - }, - { - "name": "customMissingHostFallsBackToSystem", - "request": { - "mode": "custom", - "host": " ", - "port": 7890 - }, - "expected": { - "policy": "system", - "proxyType": "http", - "host": "", - "port": 0, - "username": "", - "password": "", - "exclusions": [], - "configured": false - } - }, - { - "name": "customMissingPortFallsBackToSystem", - "request": { - "mode": "custom", - "host": "proxy.example", - "port": 0 - }, - "expected": { - "policy": "system", - "proxyType": "http", - "host": "", - "port": 0, - "username": "", - "password": "", - "exclusions": [], - "configured": false - } - }, - { - "name": "savedPasswordMatches", - "request": { - "mode": "custom", - "proxyType": "http", - "host": "proxy.example", - "port": 3128, - "username": "lithe", - "password": "sample-value", - "passwordIdentity": { - "proxyType": "http", - "host": " Proxy.Example ", - "port": 3128, - "username": " lithe " - } - }, - "expected": { - "proxyType": "http", - "host": "proxy.example", - "port": 3128, - "username": "lithe", - "password": "sample-value", - "policy": "custom", - "configured": true, - "exclusions": [] - } - }, - { - "name": "savedPasswordOtherHost", - "request": { - "mode": "custom", - "proxyType": "http", - "host": "other.example", - "port": 3128, - "username": "lithe", - "password": "sample-value", - "passwordIdentity": { - "proxyType": "http", - "host": " Proxy.Example ", - "port": 3128, - "username": " lithe " - } - }, - "expected": { - "proxyType": "http", - "host": "other.example", - "port": 3128, - "username": "lithe", - "password": "", - "policy": "custom", - "configured": true, - "exclusions": [] - } - }, - { - "name": "savedPasswordOtherPort", - "request": { - "mode": "custom", - "proxyType": "http", - "host": "proxy.example", - "port": 8080, - "username": "lithe", - "password": "sample-value", - "passwordIdentity": { - "proxyType": "http", - "host": " Proxy.Example ", - "port": 3128, - "username": " lithe " - } - }, - "expected": { - "proxyType": "http", - "host": "proxy.example", - "port": 8080, - "username": "lithe", - "password": "", - "policy": "custom", - "configured": true, - "exclusions": [] - } - }, - { - "name": "savedPasswordOtherUser", - "request": { - "mode": "custom", - "proxyType": "http", - "host": "proxy.example", - "port": 3128, - "username": "other", - "password": "sample-value", - "passwordIdentity": { - "proxyType": "http", - "host": " Proxy.Example ", - "port": 3128, - "username": " lithe " - } - }, - "expected": { - "proxyType": "http", - "host": "proxy.example", - "port": 3128, - "username": "other", - "password": "", - "policy": "custom", - "configured": true, - "exclusions": [] - } - }, - { - "name": "savedPasswordOtherType", - "request": { - "mode": "custom", - "proxyType": "socks5", - "host": "proxy.example", - "port": 3128, - "username": "lithe", - "password": "sample-value", - "passwordIdentity": { - "proxyType": "http", - "host": " Proxy.Example ", - "port": 3128, - "username": " lithe " - } - }, - "expected": { - "proxyType": "socks5", - "host": "proxy.example", - "port": 3128, - "username": "lithe", - "password": "", - "policy": "custom", - "configured": true, - "exclusions": [] - } - } - ] -} diff --git a/shared/fixtures/phpunit-project/.gitignore b/shared/fixtures/phpunit-project/.gitignore deleted file mode 100644 index c84ab0ca89..0000000000 --- a/shared/fixtures/phpunit-project/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/vendor/ -/composer.lock -/.phpunit.result.cache diff --git a/shared/fixtures/phpunit-project/composer.json b/shared/fixtures/phpunit-project/composer.json deleted file mode 100644 index d7667b3f22..0000000000 --- a/shared/fixtures/phpunit-project/composer.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "lithe/phpunit-fixture", - "require-dev": { "phpunit/phpunit": "9.6.22" }, - "scripts": { "test": ["@php vendor/bin/phpunit"] } -} diff --git a/shared/fixtures/phpunit-project/phpunit.xml b/shared/fixtures/phpunit-project/phpunit.xml deleted file mode 100644 index ddf7f01b81..0000000000 --- a/shared/fixtures/phpunit-project/phpunit.xml +++ /dev/null @@ -1 +0,0 @@ -tests diff --git a/shared/fixtures/phpunit-project/src/Store.php b/shared/fixtures/phpunit-project/src/Store.php deleted file mode 100644 index 1f61a2131e..0000000000 --- a/shared/fixtures/phpunit-project/src/Store.php +++ /dev/null @@ -1,6 +0,0 @@ -values[] = $value; } - public function values(): array { return $this->values; } -} diff --git a/shared/fixtures/phpunit-project/tests/StoreTest.php b/shared/fixtures/phpunit-project/tests/StoreTest.php deleted file mode 100644 index 63a5e97330..0000000000 --- a/shared/fixtures/phpunit-project/tests/StoreTest.php +++ /dev/null @@ -1,12 +0,0 @@ -add('a'); $store->add('b'); - self::assertSame(['a', 'b'], $store->values()); - } - public function testKeepsInsertionOrderWithDuplicates(): void { - $store = new Store(); $store->add('a'); $store->add('a'); - self::assertSame(['a', 'a'], $store->values()); - } -} diff --git a/shared/fixtures/plugins/host-api-v1.json b/shared/fixtures/plugins/host-api-v1.json deleted file mode 100644 index 0f40eaaf29..0000000000 --- a/shared/fixtures/plugins/host-api-v1.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "authorization": [ - { - "name": "metadata grant allows context listing", - "input": { "method": "lithe/host/workspace/listContexts", "service": "workspace", "grants": ["workspace"] }, - "expected": { "allowed": true } - }, - { - "name": "metadata grant does not grant file reads", - "input": { "method": "lithe/host/workspace/readFile", "service": "workspace", "grants": ["workspace"] }, - "expected": { "allowed": false, "code": "plugin.host.permissionDenied" } - }, - { - "name": "a method cannot be attributed to another service", - "input": { "method": "lithe/host/editor/applyEdits", "service": "workspace", "grants": ["workspace"] }, - "expected": { "allowed": false, "code": "plugin.host.unavailable" } - }, - { - "name": "unknown implicit method is unavailable", - "input": { "method": "lithe/host/unknown", "service": "host", "grants": [] }, - "expected": { "allowed": false, "code": "plugin.host.unavailable" } - }, - { - "name": "individual grant admits its own method", - "input": { "method": "lithe/host/window/showInformation", "service": "window", "grants": ["lithe/host/window/showInformation"] }, - "expected": { "allowed": true } - }, - { - "name": "implicit subscriptions require no grant", - "input": { "method": "lithe/host/subscriptions/dispose", "service": "subscriptions", "grants": [] }, - "expected": { "allowed": true } - } - ] -} diff --git a/shared/fixtures/plugins/installed-versions.json b/shared/fixtures/plugins/installed-versions.json deleted file mode 100644 index 3f34852a25..0000000000 --- a/shared/fixtures/plugins/installed-versions.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { - "name": "numeric-minor-over-directory-order", - "entries": [ - { - "pluginID": "example", - "version": "0.10.0", - "enabled": true - }, - { - "pluginID": "example", - "version": "0.9.0", - "enabled": true - } - ], - "selected": [ - 0 - ], - "rejected": [] - }, - { - "name": "numeric-order-independent", - "entries": [ - { - "pluginID": "example", - "version": "0.9.0", - "enabled": true - }, - { - "pluginID": "example", - "version": "0.10.0", - "enabled": true - } - ], - "selected": [ - 1 - ], - "rejected": [] - }, - { - "name": "numeric-major-and-patch", - "entries": [ - { - "pluginID": "example", - "version": "2.99.99", - "enabled": true - }, - { - "pluginID": "example", - "version": "10.0.9", - "enabled": true - }, - { - "pluginID": "example", - "version": "10.0.10", - "enabled": true - } - ], - "selected": [ - 2 - ], - "rejected": [] - }, - { - "name": "disabled-latest-does-not-revive-older", - "entries": [ - { - "pluginID": "example", - "version": "1.0.0", - "enabled": true - }, - { - "pluginID": "example", - "version": "2.0.0", - "enabled": false - } - ], - "selected": [], - "rejected": [] - }, - { - "name": "settings-may-list-disabled-latest", - "includeDisabled": true, - "entries": [ - { - "pluginID": "example", - "version": "1.0.0", - "enabled": true - }, - { - "pluginID": "example", - "version": "2.0.0", - "enabled": false - } - ], - "selected": [ - 1 - ], - "rejected": [] - }, - { - "name": "invalid-fact-does-not-hide-another-plugin", - "entries": [ - { - "pluginID": "broken", - "version": "invalid", - "enabled": true - }, - { - "pluginID": "healthy", - "version": "1.0.0", - "enabled": true - } - ], - "selected": [ - 1 - ], - "rejected": [ - { - "index": 0, - "code": "plugin.installed.invalidVersion" - } - ] - }, - { - "name": "selection-orders-plugin-identities", - "entries": [ - { - "pluginID": "zeta", - "version": "1.0.0", - "enabled": true - }, - { - "pluginID": "alpha", - "version": "1.0.0", - "enabled": true - } - ], - "selected": [ - 1, - 0 - ], - "rejected": [] - }, - { - "name": "duplicate-version-cannot-overwrite-first-fact", - "entries": [ - { - "pluginID": "example", - "version": "1.0.0", - "enabled": true - }, - { - "pluginID": "example", - "version": "1.0.0", - "enabled": false - } - ], - "selected": [ - 0 - ], - "rejected": [ - { - "index": 1, - "code": "plugin.installed.duplicateVersion" - } - ] - } - ] -} diff --git a/shared/fixtures/plugins/publisher-signature.json b/shared/fixtures/plugins/publisher-signature.json deleted file mode 100644 index 717cbc0da9..0000000000 --- a/shared/fixtures/plugins/publisher-signature.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "description": "Cross-platform public test key only; no production trust. Canonical payload matches PluginPackageSignature.swift.", - "publicKey": "11qYAYKxCrfVS/7TyWQHOg7hcvPapiMlrwIaaPcHURo=", - "contents": { - "plugin.json": "{\"id\":\"dev.example.signed\",\"version\":\"1.2.3\"}\n", - "bin/runner.cmd": "@echo fixture\r\n", - "lib/z.txt": "last ASCII\n", - "lib/ä-雪.txt": "雪 and accents\n", - "lib/é.txt": "Canonical equivalence preserves original UTF-8 bytes\n" - }, - "document": { - "schemaVersion": 1, - "algorithm": "ed25519", - "keyID": "fixture-rfc8032", - "pluginID": "dev.example.signed", - "pluginVersion": "1.2.3", - "files": { - "plugin.json": "ecfdff6026a4a0664e339246c79bd3cb3efa60e1688cc78eaf41b6e33b648555", - "bin/runner.cmd": "a25251292e203527ce5f352d622dfdadbbab8edaef1a0d472dcb31543c0c25cd", - "lib/z.txt": "51214621962a32a2acddd443c7d2e7311a6ce5e383f747d15003dc46153dc393", - "lib/ä-雪.txt": "4362be8d0439a283303be550a63ce3d9b6afd0f9dd2ca8e82adc81c317254e5c", - "lib/é.txt": "85ca67aabba68a386ecb31a062b228490cee96f1f9a95d3772e7a7061f0676c3" - }, - "signature": "r6fo1F3xoG9BXu+w9jErYL7xQJuttPpvnSPUOI+DzbVF4E0TfHP7L171lzV5mhXi1o287cMr9z7aWdGnV9t+Cg==" - }, - "payload": "schemaVersion=1\nalgorithm=ed25519\nkeyID=fixture-rfc8032\npluginID=ZGV2LmV4YW1wbGUuc2lnbmVk\npluginVersion=MS4yLjM\nfile=YmluL3J1bm5lci5jbWQ=a25251292e203527ce5f352d622dfdadbbab8edaef1a0d472dcb31543c0c25cd\nfile=bGliL3oudHh0=51214621962a32a2acddd443c7d2e7311a6ce5e383f747d15003dc46153dc393\nfile=bGliL8OkLembqi50eHQ=4362be8d0439a283303be550a63ce3d9b6afd0f9dd2ca8e82adc81c317254e5c\nfile=bGliL2XMgS50eHQ=85ca67aabba68a386ecb31a062b228490cee96f1f9a95d3772e7a7061f0676c3\nfile=cGx1Z2luLmpzb24=ecfdff6026a4a0664e339246c79bd3cb3efa60e1688cc78eaf41b6e33b648555\n", - "trustedPublisherKeys": { - "lithe-official-plugins-v2": "yTjUaLpCNXXEQDuan5Ymw5rCtR0JeTNmh6hyTfOFjTs=" - } -} diff --git a/shared/fixtures/plugins/settings-actions.json b/shared/fixtures/plugins/settings-actions.json deleted file mode 100644 index 985a20ab7f..0000000000 --- a/shared/fixtures/plugins/settings-actions.json +++ /dev/null @@ -1,140 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { - "name": "confirmation-before-invocation", - "input": { - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "actionID": "rebuildPlt", - "confirmed": false, - "workspaceAvailable": true, - "enabled": true - }, - "plan": { - "pluginID": "dev.lithe.fixture.settings", - "actionID": "rebuildPlt", - "title": "Rebuild PLT", - "kind": "confirmationRequired", - "version": "0.1.0" - } - }, - { - "name": "confirmed-action-has-empty-params", - "input": { - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "actionID": "rebuildPlt", - "confirmed": true, - "workspaceAvailable": true, - "enabled": true - }, - "plan": { - "pluginID": "dev.lithe.fixture.settings", - "actionID": "rebuildPlt", - "title": "Rebuild PLT", - "kind": "invoke", - "function": "dialyzer.rebuild", - "params": {}, - "version": "0.1.0" - } - }, - { - "name": "project-required", - "input": { - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "actionID": "rebuildPlt", - "confirmed": true, - "workspaceAvailable": false, - "enabled": true - }, - "plan": { - "pluginID": "dev.lithe.fixture.settings", - "actionID": "rebuildPlt", - "title": "Rebuild PLT", - "kind": "unavailable", - "reason": "projectRequired", - "version": "0.1.0" - } - }, - { - "name": "unknown-action", - "input": { - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "actionID": "missing", - "confirmed": false, - "workspaceAvailable": true, - "enabled": true - }, - "error": "plugin.settings.actionUnavailable" - }, - { - "name": "wrong-installed-owner", - "input": { - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "9.0.0" - }, - "actionID": "rebuildPlt", - "confirmed": false, - "workspaceAvailable": true, - "enabled": true - }, - "error": "plugin.settings.ownerChanged" - }, - { - "name": "action-without-confirmation", - "input": { - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "actionID": "rebuildPlt", - "confirmed": false, - "workspaceAvailable": true, - "enabled": true - }, - "confirmation": false, - "plan": { - "pluginID": "dev.lithe.fixture.settings", - "actionID": "rebuildPlt", - "title": "Rebuild PLT", - "kind": "invoke", - "function": "dialyzer.rebuild", - "params": {}, - "version": "0.1.0" - } - }, - { - "name": "disabled-plugin-is-not-invoked", - "input": { - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "actionID": "rebuildPlt", - "confirmed": true, - "workspaceAvailable": true, - "enabled": false - }, - "plan": { - "kind": "unavailable", - "pluginID": "dev.lithe.fixture.settings", - "actionID": "rebuildPlt", - "title": "Rebuild PLT", - "reason": "pluginDisabled", - "version": "0.1.0" - } - } - ] -} diff --git a/shared/fixtures/plugins/settings-documents.json b/shared/fixtures/plugins/settings-documents.json deleted file mode 100644 index d9085ba7ae..0000000000 --- a/shared/fixtures/plugins/settings-documents.json +++ /dev/null @@ -1,559 +0,0 @@ -{ - "schemaVersion": 1, - "manifest": { - "schemaVersion": 0, - "id": "dev.example.settings", - "displayName": "Settings Fixture", - "version": "1.0.0", - "pluginAPIVersion": 0, - "requires": { - "settings": 0, - "languages": 0, - "languageServers": 0 - }, - "vendor": { - "id": "dev.example", - "displayName": "Example", - "signatureRequirement": "none" - }, - "permissions": [ - "languageServer.launch" - ], - "activationEvents": [ - "onLanguage:fixture" - ], - "languages": [ - { - "id": "fixture", - "displayName": "Fixture", - "fileExtensions": [ - "fixture" - ] - } - ], - "settings": [ - { - "id": "flag", - "type": "boolean", - "title": "Flag", - "default": true, - "scope": "project" - }, - { - "id": "count", - "type": "integer", - "title": "Count", - "default": 3, - "minimum": 1, - "maximum": 10 - }, - { - "id": "format", - "type": "enum", - "title": "Format", - "default": "plain", - "options": [ - { - "value": "plain", - "title": "Plain" - }, - { - "value": "rich", - "title": "Rich" - } - ], - "scope": "project" - }, - { - "id": "checks", - "type": "multiSelect", - "title": "Checks", - "default": [], - "options": [ - { - "value": "lint", - "title": "Lint" - }, - { - "value": "test", - "title": "Test" - } - ], - "scope": "project", - "effect": "nextRun" - }, - { - "id": "label", - "type": "text", - "title": "Label", - "default": "base", - "pattern": "[a-z]+", - "maxLength": 4, - "scope": "project" - }, - { - "id": "program", - "type": "file", - "title": "Program", - "default": "", - "scope": "project" - }, - { - "id": "folder", - "type": "directory", - "title": "Folder", - "default": "", - "scope": "project" - } - ], - "languageServers": [ - { - "languageID": "fixture", - "launch": { - "kind": "systemCommand", - "commands": [ - "fixture-server" - ] - }, - "arguments": [] - } - ] - }, - "editCases": [ - { - "name": "all-types-and-sibling", - "scope": "global", - "document": "{\"dev.other\":{\"keep\":{\"nested\":[\"unchanged\"]}},\"dev.example.settings\":{\"dormant\":17}}", - "edits": [ - { - "id": "flag", - "value": false - }, - { - "id": "count", - "value": 6 - }, - { - "id": "format", - "value": "rich" - }, - { - "id": "checks", - "value": [ - "lint", - "test" - ] - }, - { - "id": "label", - "value": "fast" - }, - { - "id": "program", - "value": "/fixture/app" - }, - { - "id": "folder", - "value": "C:\\fixture tools" - } - ], - "expected": { - "dev.other": { - "keep": { - "nested": [ - "unchanged" - ] - } - }, - "dev.example.settings": { - "dormant": 17, - "flag": false, - "count": 6, - "format": "rich", - "checks": [ - "lint", - "test" - ], - "label": "fast", - "program": "/fixture/app", - "folder": "C:\\fixture tools" - } - }, - "effects": [ - "nextRun", - "restart" - ] - }, - { - "name": "remove-one-retains-sibling", - "scope": "project", - "document": "{\"dev.example.settings\":{\"flag\":false,\"label\":\"fast\"}}", - "edits": [ - { - "id": "flag", - "value": null - } - ], - "expected": { - "dev.example.settings": { - "label": "fast" - } - }, - "effects": [ - "restart" - ] - }, - { - "name": "empty-layer-delete", - "scope": "project", - "document": "{\"dev.example.settings\":{\"flag\":false}}", - "edits": [ - { - "id": "flag", - "value": null - } - ], - "expected": {}, - "delete": true, - "effects": [ - "restart" - ] - }, - { - "name": "unchanged-preserves-source-text", - "scope": "global", - "document": "{ \"dev.example.settings\": {\"flag\":false} }\n", - "edits": [ - { - "id": "flag", - "value": false - } - ], - "expected": { - "dev.example.settings": { - "flag": false - } - }, - "unchanged": true, - "effects": [] - }, - { - "name": "unknown-id", - "scope": "global", - "document": null, - "edits": [ - { - "id": "missing", - "value": true - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "global-setting-in-project", - "scope": "project", - "document": null, - "edits": [ - { - "id": "count", - "value": 6 - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "invalid-batch-is-not-partial", - "scope": "global", - "document": "{\"dev.example.settings\":{\"flag\":true}}", - "edits": [ - { - "id": "flag", - "value": false - }, - { - "id": "count", - "value": 11 - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "duplicate-edit", - "scope": "global", - "document": null, - "edits": [ - { - "id": "flag", - "value": false - }, - { - "id": "flag", - "value": true - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "bad-document", - "scope": "global", - "document": "not json", - "edits": [ - { - "id": "flag", - "value": true - } - ], - "errorCode": "plugin.settings.invalidDocument" - }, - { - "name": "duplicate-plugin-key", - "scope": "global", - "document": "{\"dev.other\":{},\"dev.other\":{}}", - "edits": [ - { - "id": "flag", - "value": true - } - ], - "errorCode": "plugin.settings.invalidDocument" - }, - { - "name": "duplicate-setting-key", - "scope": "global", - "document": "{\"dev.example.settings\":{\"flag\":false,\"flag\":true}}", - "edits": [ - { - "id": "flag", - "value": true - } - ], - "errorCode": "plugin.settings.invalidDocument" - }, - { - "name": "invalid-group", - "scope": "global", - "document": "{\"dev.other\":[]}", - "edits": [ - { - "id": "flag", - "value": true - } - ], - "errorCode": "plugin.settings.invalidDocument" - }, - { - "name": "empty-batch", - "scope": "global", - "document": null, - "edits": [], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "wrong-boolean", - "scope": "global", - "document": null, - "edits": [ - { - "id": "flag", - "value": "false" - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "fractional-integer", - "scope": "global", - "document": null, - "edits": [ - { - "id": "count", - "value": 1.5 - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "unknown-enum", - "scope": "global", - "document": null, - "edits": [ - { - "id": "format", - "value": "unknown" - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "duplicate-option", - "scope": "global", - "document": null, - "edits": [ - { - "id": "checks", - "value": [ - "lint", - "lint" - ] - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "unsafe-text", - "scope": "global", - "document": null, - "edits": [ - { - "id": "label", - "value": "-x" - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "long-text", - "scope": "global", - "document": null, - "edits": [ - { - "id": "label", - "value": "abcde" - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "relative-file", - "scope": "global", - "document": null, - "edits": [ - { - "id": "program", - "value": "app" - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "relative-directory", - "scope": "global", - "document": null, - "edits": [ - { - "id": "folder", - "value": "tools" - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "duplicate-nested-dormant-value", - "scope": "global", - "document": "{\"dev.other\":{\"dormant\":{\"key\":1,\"key\":2}}}", - "edits": [ - { - "id": "flag", - "value": false - } - ], - "errorCode": "plugin.settings.invalidDocument" - }, - { - "name": "integer-editor-text", - "scope": "global", - "document": null, - "edits": [ - { - "id": "count", - "value": null, - "text": " 6 " - } - ], - "expected": { - "dev.example.settings": { - "count": 6 - } - }, - "effects": [ - "restart" - ] - }, - { - "name": "file-editor-text", - "scope": "global", - "document": null, - "edits": [ - { - "id": "program", - "value": null, - "text": "/fixture tools/app" - } - ], - "expected": { - "dev.example.settings": { - "program": "/fixture tools/app" - } - }, - "effects": [ - "restart" - ] - }, - { - "name": "integer-editor-text-rejects-fraction", - "scope": "global", - "document": null, - "edits": [ - { - "id": "count", - "value": null, - "text": "3.5" - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "integer-editor-text-enforces-bounds", - "scope": "global", - "document": null, - "edits": [ - { - "id": "count", - "value": null, - "text": "11" - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "editor-text-and-value-are-exclusive", - "scope": "global", - "document": null, - "edits": [ - { - "id": "count", - "value": 4, - "text": "6" - } - ], - "errorCode": "plugin.settings.invalidEdit" - }, - { - "name": "editor-text-rejection-is-atomic", - "scope": "global", - "document": "{\"dev.other\":{\"keep\":true}}", - "edits": [ - { - "id": "flag", - "value": false - }, - { - "id": "count", - "value": null, - "text": "not a number" - } - ], - "errorCode": "plugin.settings.invalidEdit" - } - ] -} diff --git a/shared/fixtures/plugins/settings-function-provider.json b/shared/fixtures/plugins/settings-function-provider.json deleted file mode 100644 index 88ea108db2..0000000000 --- a/shared/fixtures/plugins/settings-function-provider.json +++ /dev/null @@ -1,212 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { - "name": "stable-same-workspace-selection", - "request": { - "pluginID": "dev.example.settings", - "version": "1.0.0", - "function": "index.refresh", - "rootUri": "file:///fixture/project", - "candidates": [ - { - "sessionID": "b", - "version": "1.0.0" - }, - { - "sessionID": "a", - "version": "1.0.0" - } - ] - }, - "facts": [ - { - "sessionID": "b", - "pluginID": "dev.example.settings", - "rootUri": "file:///fixture/project", - "serves": true - }, - { - "sessionID": "a", - "pluginID": "dev.example.settings", - "rootUri": "file:///fixture/project/", - "serves": true - } - ], - "sessionID": "a" - }, - { - "name": "never-fall-back-to-other-workspace", - "request": { - "pluginID": "dev.example.settings", - "version": "1.0.0", - "function": "index.refresh", - "rootUri": "file:///fixture/project", - "candidates": [ - { - "sessionID": "b", - "version": "1.0.0" - }, - { - "sessionID": "a", - "version": "1.0.0" - } - ] - }, - "facts": [ - { - "sessionID": "b", - "pluginID": "dev.example.settings", - "rootUri": "file:///fixture/other", - "serves": true - } - ], - "sessionID": null - }, - { - "name": "wrong-plugin-is-not-selected", - "request": { - "pluginID": "dev.example.settings", - "version": "1.0.0", - "function": "index.refresh", - "rootUri": "file:///fixture/project", - "candidates": [ - { - "sessionID": "b", - "version": "1.0.0" - }, - { - "sessionID": "a", - "version": "1.0.0" - } - ] - }, - "facts": [ - { - "sessionID": "b", - "pluginID": "dev.example.other", - "rootUri": "file:///fixture/project", - "serves": true - } - ], - "sessionID": null - }, - { - "name": "unregistered-or-not-ready", - "request": { - "pluginID": "dev.example.settings", - "version": "1.0.0", - "function": "index.refresh", - "rootUri": "file:///fixture/project", - "candidates": [ - { - "sessionID": "b", - "version": "1.0.0" - }, - { - "sessionID": "a", - "version": "1.0.0" - } - ] - }, - "facts": [ - { - "sessionID": "b", - "pluginID": "dev.example.settings", - "rootUri": "file:///fixture/project", - "serves": false - } - ], - "sessionID": null - }, - { - "name": "old-installed-version", - "request": { - "pluginID": "dev.example.settings", - "version": "2.0.0", - "function": "index.refresh", - "rootUri": "file:///fixture/project", - "candidates": [ - { - "sessionID": "b", - "version": "1.0.0" - }, - { - "sessionID": "a", - "version": "1.0.0" - } - ] - }, - "facts": [ - { - "sessionID": "b", - "pluginID": "dev.example.settings", - "rootUri": "file:///fixture/project", - "serves": true - }, - { - "sessionID": "a", - "pluginID": "dev.example.settings", - "rootUri": "file:///fixture/project/", - "serves": true - } - ], - "sessionID": null - }, - { - "name": "duplicate-native-session-facts", - "request": { - "pluginID": "dev.example.settings", - "version": "1.0.0", - "function": "index.refresh", - "rootUri": "file:///fixture/project", - "candidates": [ - { - "sessionID": "b", - "version": "1.0.0" - }, - { - "sessionID": "b", - "version": "1.0.0" - } - ] - }, - "facts": [ - { - "sessionID": "b", - "pluginID": "dev.example.settings", - "rootUri": "file:///fixture/project", - "serves": true - }, - { - "sessionID": "a", - "pluginID": "dev.example.settings", - "rootUri": "file:///fixture/project/", - "serves": true - } - ], - "invalid": true - }, - { - "name": "non-file-root-is-invalid", - "request": { - "pluginID": "dev.example.settings", - "version": "1.0.0", - "function": "index.refresh", - "rootUri": "https://example.invalid/project", - "candidates": [ - { - "sessionID": "b", - "version": "1.0.0" - }, - { - "sessionID": "a", - "version": "1.0.0" - } - ] - }, - "facts": [], - "invalid": true - } - ] -} diff --git a/shared/fixtures/plugins/settings-surfaces.json b/shared/fixtures/plugins/settings-surfaces.json deleted file mode 100644 index c72979141c..0000000000 --- a/shared/fixtures/plugins/settings-surfaces.json +++ /dev/null @@ -1,1669 +0,0 @@ -{ - "cases": [ - { - "name": "enabled_pages", - "command": "plugins.settings.catalog", - "input": { - "plugins": [ - { - "manifest": { - "schemaVersion": 0, - "id": "dev.lithe.fixture.settings", - "displayName": "Settings Fixture", - "version": "0.1.0", - "pluginAPIVersion": 0, - "requires": { - "buildProviders": 0, - "buildSystems": 0, - "languageServers": 0, - "languages": 0, - "settings": 0 - }, - "vendor": { - "id": "org.example", - "displayName": "Example", - "signatureRequirement": "publisherPackage" - }, - "permissions": [ - "languageServer.launch", - "process.build" - ], - "activationEvents": [ - "onBuildSystem:mix", - "onLanguage:elixir" - ], - "languages": [ - { - "id": "elixir", - "displayName": "Elixir", - "fileExtensions": [ - "ex", - "exs" - ], - "projectFileNames": [ - "mix.exs" - ] - } - ], - "languageServers": [ - { - "languageID": "elixir", - "launch": { - "kind": "systemCommand", - "commands": [ - "elixir-ls" - ] - }, - "arguments": [ - "--stdio", - "--env=${setting:mixEnv}" - ], - "workspaceConfiguration": { - "elixirLS": { - "dialyzerEnabled": "${setting:dialyzer}" - } - } - } - ], - "buildSystems": [ - { - "id": "mix", - "displayName": "Mix", - "detection": { - "markers": [ - "mix.exs" - ], - "nesting": "outermost" - }, - "invocation": { - "executables": [ - { - "kind": "command", - "command": "mix" - } - ] - }, - "provider": { - "languageServer": "elixir", - "executesProjectCode": true, - "mayUseNetwork": false - }, - "model": { - "source": "provider" - }, - "tasks": [ - { - "id": "compile", - "displayName": "Compile", - "group": "build", - "scopes": [ - "workspace" - ], - "arguments": [ - "compile" - ] - }, - { - "id": "deps-get", - "displayName": "Fetch Dependencies", - "group": "other", - "scopes": [ - "workspace" - ], - "arguments": [ - "deps.get" - ] - } - ], - "dependencies": { - "source": "provider", - "scopes": [ - "workspace" - ] - }, - "sync": { - "watch": [ - "mix.exs", - "mix.lock" - ] - }, - "layout": { - "excluded": [ - "_build", - "deps" - ] - } - } - ], - "settings": [ - { - "id": "dialyzer", - "type": "boolean", - "title": "Dialyzer", - "default": true, - "scope": "project", - "effect": "immediate", - "page": { - "languageID": "elixir" - } - }, - { - "id": "mixEnv", - "type": "text", - "title": "MIX_ENV", - "default": "dev", - "pattern": "[a-z]+", - "scope": "project", - "effect": "restart", - "page": { - "languageID": "elixir" - }, - "section": "Server" - }, - { - "id": "checks", - "type": "multiSelect", - "title": "Checks", - "default": [ - "format" - ], - "options": [ - { - "value": "format", - "title": "Format" - }, - { - "value": "credo", - "title": "Credo" - } - ], - "effect": "nextRun", - "page": { - "buildSystemID": "mix" - } - } - ], - "settingActions": [ - { - "id": "rebuildPlt", - "title": "Rebuild PLT", - "function": "dialyzer.rebuild", - "page": { - "languageID": "elixir" - }, - "confirm": true - } - ] - }, - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "enabled": true - } - ] - }, - "status": "ok", - "pages": 2 - }, - { - "name": "disabled_contributes_nothing", - "command": "plugins.settings.catalog", - "input": { - "plugins": [ - { - "manifest": { - "schemaVersion": 0, - "id": "dev.lithe.fixture.settings", - "displayName": "Settings Fixture", - "version": "0.1.0", - "pluginAPIVersion": 0, - "requires": { - "buildProviders": 0, - "buildSystems": 0, - "languageServers": 0, - "languages": 0, - "settings": 0 - }, - "vendor": { - "id": "org.example", - "displayName": "Example", - "signatureRequirement": "publisherPackage" - }, - "permissions": [ - "languageServer.launch", - "process.build" - ], - "activationEvents": [ - "onBuildSystem:mix", - "onLanguage:elixir" - ], - "languages": [ - { - "id": "elixir", - "displayName": "Elixir", - "fileExtensions": [ - "ex", - "exs" - ], - "projectFileNames": [ - "mix.exs" - ] - } - ], - "languageServers": [ - { - "languageID": "elixir", - "launch": { - "kind": "systemCommand", - "commands": [ - "elixir-ls" - ] - }, - "arguments": [ - "--stdio", - "--env=${setting:mixEnv}" - ], - "workspaceConfiguration": { - "elixirLS": { - "dialyzerEnabled": "${setting:dialyzer}" - } - } - } - ], - "buildSystems": [ - { - "id": "mix", - "displayName": "Mix", - "detection": { - "markers": [ - "mix.exs" - ], - "nesting": "outermost" - }, - "invocation": { - "executables": [ - { - "kind": "command", - "command": "mix" - } - ] - }, - "provider": { - "languageServer": "elixir", - "executesProjectCode": true, - "mayUseNetwork": false - }, - "model": { - "source": "provider" - }, - "tasks": [ - { - "id": "compile", - "displayName": "Compile", - "group": "build", - "scopes": [ - "workspace" - ], - "arguments": [ - "compile" - ] - }, - { - "id": "deps-get", - "displayName": "Fetch Dependencies", - "group": "other", - "scopes": [ - "workspace" - ], - "arguments": [ - "deps.get" - ] - } - ], - "dependencies": { - "source": "provider", - "scopes": [ - "workspace" - ] - }, - "sync": { - "watch": [ - "mix.exs", - "mix.lock" - ] - }, - "layout": { - "excluded": [ - "_build", - "deps" - ] - } - } - ], - "settings": [ - { - "id": "dialyzer", - "type": "boolean", - "title": "Dialyzer", - "default": true, - "scope": "project", - "effect": "immediate", - "page": { - "languageID": "elixir" - } - }, - { - "id": "mixEnv", - "type": "text", - "title": "MIX_ENV", - "default": "dev", - "pattern": "[a-z]+", - "scope": "project", - "effect": "restart", - "page": { - "languageID": "elixir" - }, - "section": "Server" - }, - { - "id": "checks", - "type": "multiSelect", - "title": "Checks", - "default": [ - "format" - ], - "options": [ - { - "value": "format", - "title": "Format" - }, - { - "value": "credo", - "title": "Credo" - } - ], - "effect": "nextRun", - "page": { - "buildSystemID": "mix" - } - } - ], - "settingActions": [ - { - "id": "rebuildPlt", - "title": "Rebuild PLT", - "function": "dialyzer.rebuild", - "page": { - "languageID": "elixir" - }, - "confirm": true - } - ] - }, - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "enabled": false - } - ] - }, - "status": "ok", - "pages": 0, - "pageOwners": {} - }, - { - "name": "duplicate_owner_rejected", - "command": "plugins.settings.catalog", - "input": { - "plugins": [ - { - "manifest": { - "schemaVersion": 0, - "id": "dev.lithe.fixture.settings", - "displayName": "Settings Fixture", - "version": "0.1.0", - "pluginAPIVersion": 0, - "requires": { - "buildProviders": 0, - "buildSystems": 0, - "languageServers": 0, - "languages": 0, - "settings": 0 - }, - "vendor": { - "id": "org.example", - "displayName": "Example", - "signatureRequirement": "publisherPackage" - }, - "permissions": [ - "languageServer.launch", - "process.build" - ], - "activationEvents": [ - "onBuildSystem:mix", - "onLanguage:elixir" - ], - "languages": [ - { - "id": "elixir", - "displayName": "Elixir", - "fileExtensions": [ - "ex", - "exs" - ], - "projectFileNames": [ - "mix.exs" - ] - } - ], - "languageServers": [ - { - "languageID": "elixir", - "launch": { - "kind": "systemCommand", - "commands": [ - "elixir-ls" - ] - }, - "arguments": [ - "--stdio", - "--env=${setting:mixEnv}" - ], - "workspaceConfiguration": { - "elixirLS": { - "dialyzerEnabled": "${setting:dialyzer}" - } - } - } - ], - "buildSystems": [ - { - "id": "mix", - "displayName": "Mix", - "detection": { - "markers": [ - "mix.exs" - ], - "nesting": "outermost" - }, - "invocation": { - "executables": [ - { - "kind": "command", - "command": "mix" - } - ] - }, - "provider": { - "languageServer": "elixir", - "executesProjectCode": true, - "mayUseNetwork": false - }, - "model": { - "source": "provider" - }, - "tasks": [ - { - "id": "compile", - "displayName": "Compile", - "group": "build", - "scopes": [ - "workspace" - ], - "arguments": [ - "compile" - ] - }, - { - "id": "deps-get", - "displayName": "Fetch Dependencies", - "group": "other", - "scopes": [ - "workspace" - ], - "arguments": [ - "deps.get" - ] - } - ], - "dependencies": { - "source": "provider", - "scopes": [ - "workspace" - ] - }, - "sync": { - "watch": [ - "mix.exs", - "mix.lock" - ] - }, - "layout": { - "excluded": [ - "_build", - "deps" - ] - } - } - ], - "settings": [ - { - "id": "dialyzer", - "type": "boolean", - "title": "Dialyzer", - "default": true, - "scope": "project", - "effect": "immediate", - "page": { - "languageID": "elixir" - } - }, - { - "id": "mixEnv", - "type": "text", - "title": "MIX_ENV", - "default": "dev", - "pattern": "[a-z]+", - "scope": "project", - "effect": "restart", - "page": { - "languageID": "elixir" - }, - "section": "Server" - }, - { - "id": "checks", - "type": "multiSelect", - "title": "Checks", - "default": [ - "format" - ], - "options": [ - { - "value": "format", - "title": "Format" - }, - { - "value": "credo", - "title": "Credo" - } - ], - "effect": "nextRun", - "page": { - "buildSystemID": "mix" - } - } - ], - "settingActions": [ - { - "id": "rebuildPlt", - "title": "Rebuild PLT", - "function": "dialyzer.rebuild", - "page": { - "languageID": "elixir" - }, - "confirm": true - } - ] - }, - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "enabled": true - }, - { - "manifest": { - "schemaVersion": 0, - "id": "dev.lithe.fixture.settings", - "displayName": "Settings Fixture", - "version": "0.1.0", - "pluginAPIVersion": 0, - "requires": { - "buildProviders": 0, - "buildSystems": 0, - "languageServers": 0, - "languages": 0, - "settings": 0 - }, - "vendor": { - "id": "org.example", - "displayName": "Example", - "signatureRequirement": "publisherPackage" - }, - "permissions": [ - "languageServer.launch", - "process.build" - ], - "activationEvents": [ - "onBuildSystem:mix", - "onLanguage:elixir" - ], - "languages": [ - { - "id": "elixir", - "displayName": "Elixir", - "fileExtensions": [ - "ex", - "exs" - ], - "projectFileNames": [ - "mix.exs" - ] - } - ], - "languageServers": [ - { - "languageID": "elixir", - "launch": { - "kind": "systemCommand", - "commands": [ - "elixir-ls" - ] - }, - "arguments": [ - "--stdio", - "--env=${setting:mixEnv}" - ], - "workspaceConfiguration": { - "elixirLS": { - "dialyzerEnabled": "${setting:dialyzer}" - } - } - } - ], - "buildSystems": [ - { - "id": "mix", - "displayName": "Mix", - "detection": { - "markers": [ - "mix.exs" - ], - "nesting": "outermost" - }, - "invocation": { - "executables": [ - { - "kind": "command", - "command": "mix" - } - ] - }, - "provider": { - "languageServer": "elixir", - "executesProjectCode": true, - "mayUseNetwork": false - }, - "model": { - "source": "provider" - }, - "tasks": [ - { - "id": "compile", - "displayName": "Compile", - "group": "build", - "scopes": [ - "workspace" - ], - "arguments": [ - "compile" - ] - }, - { - "id": "deps-get", - "displayName": "Fetch Dependencies", - "group": "other", - "scopes": [ - "workspace" - ], - "arguments": [ - "deps.get" - ] - } - ], - "dependencies": { - "source": "provider", - "scopes": [ - "workspace" - ] - }, - "sync": { - "watch": [ - "mix.exs", - "mix.lock" - ] - }, - "layout": { - "excluded": [ - "_build", - "deps" - ] - } - } - ], - "settings": [ - { - "id": "dialyzer", - "type": "boolean", - "title": "Dialyzer", - "default": true, - "scope": "project", - "effect": "immediate", - "page": { - "languageID": "elixir" - } - }, - { - "id": "mixEnv", - "type": "text", - "title": "MIX_ENV", - "default": "dev", - "pattern": "[a-z]+", - "scope": "project", - "effect": "restart", - "page": { - "languageID": "elixir" - }, - "section": "Server" - }, - { - "id": "checks", - "type": "multiSelect", - "title": "Checks", - "default": [ - "format" - ], - "options": [ - { - "value": "format", - "title": "Format" - }, - { - "value": "credo", - "title": "Credo" - } - ], - "effect": "nextRun", - "page": { - "buildSystemID": "mix" - } - } - ], - "settingActions": [ - { - "id": "rebuildPlt", - "title": "Rebuild PLT", - "function": "dialyzer.rebuild", - "page": { - "languageID": "elixir" - }, - "confirm": true - } - ] - }, - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "enabled": true - } - ] - }, - "status": "rejected" - }, - { - "name": "delivery_global_3", - "command": "plugins.settings.delivery", - "input": { - "scope": "global", - "samePreferences": true, - "sameWorkspace": false, - "sameVersion": true, - "enabled": true, - "effects": [ - "restart", - "immediate", - "restart" - ] - }, - "status": "ok", - "delivery": { - "refresh": true, - "effects": [ - "immediate", - "restart" - ] - } - }, - { - "name": "delivery_project_4", - "command": "plugins.settings.delivery", - "input": { - "scope": "project", - "samePreferences": true, - "sameWorkspace": false, - "sameVersion": true, - "enabled": true, - "effects": [ - "restart", - "immediate", - "restart" - ] - }, - "status": "ok", - "delivery": { - "refresh": false, - "effects": [] - } - }, - { - "name": "delivery_project_5", - "command": "plugins.settings.delivery", - "input": { - "scope": "project", - "samePreferences": true, - "sameWorkspace": true, - "sameVersion": true, - "enabled": true, - "effects": [ - "restart", - "immediate", - "restart" - ] - }, - "status": "ok", - "delivery": { - "refresh": true, - "effects": [ - "immediate", - "restart" - ] - } - }, - { - "name": "delivery_global_6", - "command": "plugins.settings.delivery", - "input": { - "scope": "global", - "samePreferences": false, - "sameWorkspace": true, - "sameVersion": true, - "enabled": true, - "effects": [ - "restart", - "immediate", - "restart" - ] - }, - "status": "ok", - "delivery": { - "refresh": false, - "effects": [] - } - }, - { - "name": "delivery_global_7", - "command": "plugins.settings.delivery", - "input": { - "scope": "global", - "samePreferences": true, - "sameWorkspace": true, - "sameVersion": false, - "enabled": true, - "effects": [ - "restart", - "immediate", - "restart" - ] - }, - "status": "ok", - "delivery": { - "refresh": false, - "effects": [] - } - }, - { - "name": "delivery_global_8", - "command": "plugins.settings.delivery", - "input": { - "scope": "global", - "samePreferences": true, - "sameWorkspace": true, - "sameVersion": true, - "enabled": false, - "effects": [ - "restart", - "immediate", - "restart" - ] - }, - "status": "ok", - "delivery": { - "refresh": true, - "effects": [] - } - }, - { - "name": "search_retains_parent", - "command": "plugins.settings.navigation", - "input": { - "query": "ELIXIR", - "items": [ - { - "id": "languages", - "title": "Languages", - "parent": null, - "group": false, - "expanded": false - }, - { - "id": "language:elixir", - "title": "Elixir", - "parent": "languages", - "group": false, - "expanded": false - } - ] - }, - "status": "ok", - "rowIDs": [ - "languages", - "language:elixir" - ] - }, - { - "name": "wrong_installed_owner", - "command": "plugins.settings.catalog", - "input": { - "plugins": [ - { - "manifest": { - "schemaVersion": 0, - "id": "dev.lithe.fixture.settings", - "displayName": "Settings Fixture", - "version": "0.1.0", - "pluginAPIVersion": 0, - "requires": { - "buildProviders": 0, - "buildSystems": 0, - "languageServers": 0, - "languages": 0, - "settings": 0 - }, - "vendor": { - "id": "org.example", - "displayName": "Example", - "signatureRequirement": "publisherPackage" - }, - "permissions": [ - "languageServer.launch", - "process.build" - ], - "activationEvents": [ - "onBuildSystem:mix", - "onLanguage:elixir" - ], - "languages": [ - { - "id": "elixir", - "displayName": "Elixir", - "fileExtensions": [ - "ex", - "exs" - ], - "projectFileNames": [ - "mix.exs" - ] - } - ], - "languageServers": [ - { - "languageID": "elixir", - "launch": { - "kind": "systemCommand", - "commands": [ - "elixir-ls" - ] - }, - "arguments": [ - "--stdio", - "--env=${setting:mixEnv}" - ], - "workspaceConfiguration": { - "elixirLS": { - "dialyzerEnabled": "${setting:dialyzer}" - } - } - } - ], - "buildSystems": [ - { - "id": "mix", - "displayName": "Mix", - "detection": { - "markers": [ - "mix.exs" - ], - "nesting": "outermost" - }, - "invocation": { - "executables": [ - { - "kind": "command", - "command": "mix" - } - ] - }, - "provider": { - "languageServer": "elixir", - "executesProjectCode": true, - "mayUseNetwork": false - }, - "model": { - "source": "provider" - }, - "tasks": [ - { - "id": "compile", - "displayName": "Compile", - "group": "build", - "scopes": [ - "workspace" - ], - "arguments": [ - "compile" - ] - }, - { - "id": "deps-get", - "displayName": "Fetch Dependencies", - "group": "other", - "scopes": [ - "workspace" - ], - "arguments": [ - "deps.get" - ] - } - ], - "dependencies": { - "source": "provider", - "scopes": [ - "workspace" - ] - }, - "sync": { - "watch": [ - "mix.exs", - "mix.lock" - ] - }, - "layout": { - "excluded": [ - "_build", - "deps" - ] - } - } - ], - "settings": [ - { - "id": "dialyzer", - "type": "boolean", - "title": "Dialyzer", - "default": true, - "scope": "project", - "effect": "immediate", - "page": { - "languageID": "elixir" - } - }, - { - "id": "mixEnv", - "type": "text", - "title": "MIX_ENV", - "default": "dev", - "pattern": "[a-z]+", - "scope": "project", - "effect": "restart", - "page": { - "languageID": "elixir" - }, - "section": "Server" - }, - { - "id": "checks", - "type": "multiSelect", - "title": "Checks", - "default": [ - "format" - ], - "options": [ - { - "value": "format", - "title": "Format" - }, - { - "value": "credo", - "title": "Credo" - } - ], - "effect": "nextRun", - "page": { - "buildSystemID": "mix" - } - } - ], - "settingActions": [ - { - "id": "rebuildPlt", - "title": "Rebuild PLT", - "function": "dialyzer.rebuild", - "page": { - "languageID": "elixir" - }, - "confirm": true - } - ] - }, - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "9.0.0" - }, - "enabled": true - } - ] - }, - "status": "rejected" - }, - { - "name": "multiple_contributors_one_page", - "command": "plugins.settings.catalog", - "input": { - "plugins": [ - { - "manifest": { - "schemaVersion": 0, - "id": "dev.lithe.fixture.other-settings", - "displayName": "Settings Fixture", - "version": "0.1.0", - "pluginAPIVersion": 0, - "requires": { - "buildProviders": 0, - "buildSystems": 0, - "languageServers": 0, - "languages": 0, - "settings": 0 - }, - "vendor": { - "id": "org.example", - "displayName": "Example", - "signatureRequirement": "publisherPackage" - }, - "permissions": [ - "languageServer.launch", - "process.build" - ], - "activationEvents": [ - "onBuildSystem:mix", - "onLanguage:elixir" - ], - "languages": [ - { - "id": "elixir", - "displayName": "Elixir", - "fileExtensions": [ - "ex", - "exs" - ], - "projectFileNames": [ - "mix.exs" - ] - } - ], - "languageServers": [ - { - "languageID": "elixir", - "launch": { - "kind": "systemCommand", - "commands": [ - "elixir-ls" - ] - }, - "arguments": [ - "--stdio", - "--env=${setting:mixEnv}" - ], - "workspaceConfiguration": { - "elixirLS": { - "dialyzerEnabled": "${setting:dialyzer}" - } - } - } - ], - "buildSystems": [ - { - "id": "mix", - "displayName": "Mix", - "detection": { - "markers": [ - "mix.exs" - ], - "nesting": "outermost" - }, - "invocation": { - "executables": [ - { - "kind": "command", - "command": "mix" - } - ] - }, - "provider": { - "languageServer": "elixir", - "executesProjectCode": true, - "mayUseNetwork": false - }, - "model": { - "source": "provider" - }, - "tasks": [ - { - "id": "compile", - "displayName": "Compile", - "group": "build", - "scopes": [ - "workspace" - ], - "arguments": [ - "compile" - ] - }, - { - "id": "deps-get", - "displayName": "Fetch Dependencies", - "group": "other", - "scopes": [ - "workspace" - ], - "arguments": [ - "deps.get" - ] - } - ], - "dependencies": { - "source": "provider", - "scopes": [ - "workspace" - ] - }, - "sync": { - "watch": [ - "mix.exs", - "mix.lock" - ] - }, - "layout": { - "excluded": [ - "_build", - "deps" - ] - } - } - ], - "settings": [ - { - "id": "dialyzer", - "type": "boolean", - "title": "Dialyzer", - "default": true, - "scope": "project", - "effect": "immediate", - "page": { - "languageID": "elixir" - } - }, - { - "id": "mixEnv", - "type": "text", - "title": "MIX_ENV", - "default": "dev", - "pattern": "[a-z]+", - "scope": "project", - "effect": "restart", - "page": { - "languageID": "elixir" - }, - "section": "Server" - }, - { - "id": "checks", - "type": "multiSelect", - "title": "Checks", - "default": [ - "format" - ], - "options": [ - { - "value": "format", - "title": "Format" - }, - { - "value": "credo", - "title": "Credo" - } - ], - "effect": "nextRun", - "page": { - "buildSystemID": "mix" - } - } - ], - "settingActions": [ - { - "id": "rebuildPlt", - "title": "Rebuild PLT", - "function": "dialyzer.rebuild", - "page": { - "languageID": "elixir" - }, - "confirm": true - } - ] - }, - "owner": { - "pluginID": "dev.lithe.fixture.other-settings", - "version": "0.1.0" - }, - "enabled": true - }, - { - "manifest": { - "schemaVersion": 0, - "id": "dev.lithe.fixture.settings", - "displayName": "Settings Fixture", - "version": "0.1.0", - "pluginAPIVersion": 0, - "requires": { - "buildProviders": 0, - "buildSystems": 0, - "languageServers": 0, - "languages": 0, - "settings": 0 - }, - "vendor": { - "id": "org.example", - "displayName": "Example", - "signatureRequirement": "publisherPackage" - }, - "permissions": [ - "languageServer.launch", - "process.build" - ], - "activationEvents": [ - "onBuildSystem:mix", - "onLanguage:elixir" - ], - "languages": [ - { - "id": "elixir", - "displayName": "Elixir", - "fileExtensions": [ - "ex", - "exs" - ], - "projectFileNames": [ - "mix.exs" - ] - } - ], - "languageServers": [ - { - "languageID": "elixir", - "launch": { - "kind": "systemCommand", - "commands": [ - "elixir-ls" - ] - }, - "arguments": [ - "--stdio", - "--env=${setting:mixEnv}" - ], - "workspaceConfiguration": { - "elixirLS": { - "dialyzerEnabled": "${setting:dialyzer}" - } - } - } - ], - "buildSystems": [ - { - "id": "mix", - "displayName": "Mix", - "detection": { - "markers": [ - "mix.exs" - ], - "nesting": "outermost" - }, - "invocation": { - "executables": [ - { - "kind": "command", - "command": "mix" - } - ] - }, - "provider": { - "languageServer": "elixir", - "executesProjectCode": true, - "mayUseNetwork": false - }, - "model": { - "source": "provider" - }, - "tasks": [ - { - "id": "compile", - "displayName": "Compile", - "group": "build", - "scopes": [ - "workspace" - ], - "arguments": [ - "compile" - ] - }, - { - "id": "deps-get", - "displayName": "Fetch Dependencies", - "group": "other", - "scopes": [ - "workspace" - ], - "arguments": [ - "deps.get" - ] - } - ], - "dependencies": { - "source": "provider", - "scopes": [ - "workspace" - ] - }, - "sync": { - "watch": [ - "mix.exs", - "mix.lock" - ] - }, - "layout": { - "excluded": [ - "_build", - "deps" - ] - } - } - ], - "settings": [ - { - "id": "dialyzer", - "type": "boolean", - "title": "Dialyzer", - "default": true, - "scope": "project", - "effect": "immediate", - "page": { - "languageID": "elixir" - } - }, - { - "id": "mixEnv", - "type": "text", - "title": "MIX_ENV", - "default": "dev", - "pattern": "[a-z]+", - "scope": "project", - "effect": "restart", - "page": { - "languageID": "elixir" - }, - "section": "Server" - }, - { - "id": "checks", - "type": "multiSelect", - "title": "Checks", - "default": [ - "format" - ], - "options": [ - { - "value": "format", - "title": "Format" - }, - { - "value": "credo", - "title": "Credo" - } - ], - "effect": "nextRun", - "page": { - "buildSystemID": "mix" - } - } - ], - "settingActions": [ - { - "id": "rebuildPlt", - "title": "Rebuild PLT", - "function": "dialyzer.rebuild", - "page": { - "languageID": "elixir" - }, - "confirm": true - } - ] - }, - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "enabled": true - } - ] - }, - "status": "ok", - "pages": 2, - "pageOwners": { - "language:elixir": [ - "dev.lithe.fixture.other-settings", - "dev.lithe.fixture.settings" - ] - } - }, - { - "name": "action_only_surface", - "command": "plugins.settings.catalog", - "input": { - "plugins": [ - { - "manifest": { - "schemaVersion": 0, - "id": "dev.lithe.fixture.settings", - "displayName": "Settings Fixture", - "version": "0.1.0", - "pluginAPIVersion": 0, - "requires": { - "languages": 0, - "settings": 0, - "languageServers": 0 - }, - "vendor": { - "id": "org.example", - "displayName": "Example", - "signatureRequirement": "publisherPackage" - }, - "permissions": [ - "languageServer.launch", - "process.build" - ], - "activationEvents": [ - "onLanguage:elixir" - ], - "languages": [ - { - "id": "elixir", - "displayName": "Elixir", - "fileExtensions": [ - "ex", - "exs" - ], - "projectFileNames": [ - "mix.exs" - ] - } - ], - "settingActions": [ - { - "id": "refresh", - "title": "Refresh", - "function": "fixture.refresh", - "page": { - "languageID": "elixir" - } - } - ], - "languageServers": [ - { - "languageID": "elixir", - "launch": { - "kind": "systemCommand", - "commands": [ - "fixture-ls" - ] - }, - "arguments": [ - "--stdio" - ] - } - ] - }, - "owner": { - "pluginID": "dev.lithe.fixture.settings", - "version": "0.1.0" - }, - "enabled": true - } - ] - }, - "status": "ok", - "pages": 1 - } - ] -} diff --git a/shared/fixtures/process-lifecycle/exit-plan-v1.json b/shared/fixtures/process-lifecycle/exit-plan-v1.json deleted file mode 100644 index 1a2bdd65de..0000000000 --- a/shared/fixtures/process-lifecycle/exit-plan-v1.json +++ /dev/null @@ -1,325 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { - "name": "quit with default settings", - "request": { - "context": "quit", - "records": [ - {"id": "idle-shell", "kind": "terminal", "ownership": "launched", "idle": true}, - {"id": "spring", "kind": "terminal", "ownership": "launched"}, - {"id": "migration", "kind": "agentTask", "ownership": "scopeToken"}, - {"id": "gradle-daemon", "kind": "daemon", "ownership": "scopeToken", "recognizerId": "gradle.daemon", "recognizedPolicy": "askOnExit"}, - {"id": "unknown-detached", "kind": "pluginTool", "ownership": "scopeToken", "detached": true}, - {"id": "jdtls", "kind": "languageServer", "ownership": "launched"}, - {"id": "outside-docker", "kind": "container", "ownership": "unproven"} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "idle-shell", "kind": "terminal", "policy": "terminate", "action": "terminate", "reason": "idleTerminal"}, - {"id": "spring", "kind": "terminal", "policy": "confirmEach", "action": "confirm", "reason": "busyTerminal"}, - {"id": "migration", "kind": "agentTask", "policy": "confirmEach", "action": "confirm", "reason": "agentTask"}, - {"id": "gradle-daemon", "kind": "daemon", "policy": "askOnExit", "action": "ask", "reason": "recognizer"}, - {"id": "unknown-detached", "kind": "pluginTool", "policy": "askOnExit", "action": "ask", "reason": "detachedProcess"}, - {"id": "jdtls", "kind": "languageServer", "policy": "terminate", "action": "terminate", "reason": "defaultTerminate"}, - {"id": "outside-docker", "kind": "container", "policy": "external", "action": "ignore", "reason": "ownershipUnproven"} - ] - } - }, - { - "name": "quit with every prompt disabled", - "request": { - "context": "quit", - "settings": { - "terminalOnQuit": "terminate", - "agentTasks": "keep", - "backgroundResources": "terminate", - "gracefulStopSeconds": 12 - }, - "records": [ - {"id": "spring", "kind": "terminal", "ownership": "launched"}, - {"id": "migration", "kind": "agentTask", "ownership": "scopeToken"}, - {"id": "container", "kind": "container", "ownership": "instanceLabel"} - ] - }, - "expected": { - "gracefulStopMilliseconds": 12000, - "decisions": [ - {"id": "spring", "kind": "terminal", "policy": "confirmEach", "action": "terminate", "reason": "terminalOnQuitSetting"}, - {"id": "migration", "kind": "agentTask", "policy": "confirmEach", "action": "retain", "reason": "agentTasksSetting"}, - {"id": "container", "kind": "container", "policy": "askOnExit", "action": "terminate", "reason": "backgroundSetting"} - ] - } - }, - { - "name": "remembered choices win over the background setting", - "request": { - "context": "quit", - "settings": { - "backgroundResources": "terminate", - "rememberedChoices": {"gradle.daemon": "keep", "kotlin.daemon": "terminate"} - }, - "records": [ - {"id": "gradle", "kind": "daemon", "ownership": "scopeToken", "recognizerId": "gradle.daemon", "recognizedPolicy": "askOnExit"}, - {"id": "kotlin", "kind": "daemon", "ownership": "scopeToken", "recognizerId": "kotlin.daemon"}, - {"id": "retained-before", "kind": "daemon", "ownership": "scopeToken", "retained": true} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "gradle", "kind": "daemon", "policy": "askOnExit", "action": "retain", "reason": "rememberedChoice"}, - {"id": "kotlin", "kind": "daemon", "policy": "askOnExit", "action": "terminate", "reason": "rememberedChoice"}, - {"id": "retained-before", "kind": "daemon", "policy": "askOnExit", "action": "retain", "reason": "retainedByUser"} - ] - } - }, - { - "name": "launcher declaration outranks recognizers and detachment", - "request": { - "context": "quit", - "records": [ - {"id": "declared", "kind": "pluginTool", "ownership": "launched", "declaredPolicy": "terminate", "recognizedPolicy": "askOnExit", "detached": true}, - {"id": "recognized", "kind": "pluginTool", "ownership": "scopeToken", "recognizedPolicy": "terminate", "detached": true}, - {"id": "agent-daemon", "kind": "agentTask", "ownership": "scopeToken", "recognizedPolicy": "askOnExit", "detached": true} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "declared", "kind": "pluginTool", "policy": "terminate", "action": "terminate", "reason": "declaredByLauncher"}, - {"id": "recognized", "kind": "pluginTool", "policy": "terminate", "action": "terminate", "reason": "recognizer"}, - {"id": "agent-daemon", "kind": "agentTask", "policy": "confirmEach", "action": "confirm", "reason": "agentTask"} - ] - } - }, - { - "name": "closing one terminal tab", - "request": { - "context": "closeTerminalTab", - "records": [ - {"id": "busy", "kind": "terminal", "ownership": "launched"}, - {"id": "detached-from-tab", "kind": "oneShot", "ownership": "scopeToken", "detached": true} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "busy", "kind": "terminal", "policy": "confirmEach", "action": "confirm", "reason": "busyTerminal"}, - {"id": "detached-from-tab", "kind": "oneShot", "policy": "askOnExit", "action": "defer", "reason": "decidedOnQuit"} - ] - } - }, - { - "name": "closing a terminal tab without confirmation", - "request": { - "context": "closeTerminalTab", - "settings": {"confirmTerminalTabClose": false}, - "records": [ - {"id": "busy", "kind": "terminal", "ownership": "launched"} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "busy", "kind": "terminal", "policy": "confirmEach", "action": "terminate", "reason": "terminalTabCloseSetting"} - ] - } - }, - { - "name": "disconnecting an Agent that should end its tasks", - "request": { - "context": "agentDisconnect", - "settings": {"agentTasks": "terminate"}, - "records": [ - {"id": "deploy", "kind": "agentTask", "ownership": "scopeToken"}, - {"id": "mcp-daemon", "kind": "daemon", "ownership": "scopeToken"} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "deploy", "kind": "agentTask", "policy": "confirmEach", "action": "terminate", "reason": "agentTasksSetting"}, - {"id": "mcp-daemon", "kind": "daemon", "policy": "askOnExit", "action": "defer", "reason": "decidedOnQuit"} - ] - } - }, - { - "name": "crash recovery never ends Agent tasks even when told to", - "request": { - "context": "crashRecovery", - "settings": {"agentTasks": "terminate"}, - "records": [ - {"id": "migration", "kind": "agentTask", "ownership": "scopeToken"}, - {"id": "spring", "kind": "terminal", "ownership": "scopeToken"}, - {"id": "daemon", "kind": "daemon", "ownership": "scopeToken"}, - {"id": "run", "kind": "run", "ownership": "scopeToken"} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "migration", "kind": "agentTask", "policy": "confirmEach", "action": "retain", "reason": "agentTaskNeverEndedUnattended"}, - {"id": "spring", "kind": "terminal", "policy": "confirmEach", "action": "terminate", "reason": "busyTerminal"}, - {"id": "daemon", "kind": "daemon", "policy": "askOnExit", "action": "retain", "reason": "leftForStartupSweep"}, - {"id": "run", "kind": "run", "policy": "terminate", "action": "terminate", "reason": "defaultTerminate"} - ] - } - }, - { - "name": "startup sweep ending leftovers still confirms Agent tasks", - "request": { - "context": "startupSweep", - "settings": {"startupSweep": "terminate", "agentTasks": "terminate"}, - "records": [ - {"id": "migration", "kind": "agentTask", "ownership": "scopeToken"}, - {"id": "orphan", "kind": "daemon", "ownership": "scopeToken"}, - {"id": "kept", "kind": "daemon", "ownership": "scopeToken", "retained": true} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "migration", "kind": "agentTask", "policy": "confirmEach", "action": "confirm", "reason": "agentTaskAlwaysConfirmedAtStartup"}, - {"id": "orphan", "kind": "daemon", "policy": "askOnExit", "action": "terminate", "reason": "startupSweepSetting"}, - {"id": "kept", "kind": "daemon", "policy": "askOnExit", "action": "retain", "reason": "retainedByUser"} - ] - } - }, - { - "name": "startup sweep asking about leftovers", - "request": { - "context": "startupSweep", - "records": [ - {"id": "orphan", "kind": "oneShot", "ownership": "scopeToken", "detached": true} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "orphan", "kind": "oneShot", "policy": "askOnExit", "action": "ask", "reason": "startupSweepSetting"} - ] - } - }, - { - "name": "final sweep ends only approved identities and defers unseen background successors", - "request": { - "context": "finalSweep", - "records": [ - {"id": "unseen-successor", "kind": "daemon", "ownership": "scopeToken", "detached": true}, - {"id": "approved-service", "kind": "daemon", "ownership": "scopeToken", "detached": true, "terminationApproved": true}, - {"id": "kept-service", "kind": "daemon", "ownership": "scopeToken", "detached": true, "retained": true}, - {"id": "unseen-task", "kind": "agentTask", "ownership": "scopeToken"}, - {"id": "run", "kind": "run", "ownership": "launched"} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "unseen-successor", "kind": "daemon", "policy": "askOnExit", "action": "defer", "reason": "backgroundResourceRequiresStartupConfirmation"}, - {"id": "approved-service", "kind": "daemon", "policy": "askOnExit", "action": "terminate", "reason": "finalSweepApproved"}, - {"id": "kept-service", "kind": "daemon", "policy": "askOnExit", "action": "retain", "reason": "retainedByUser"}, - {"id": "unseen-task", "kind": "agentTask", "policy": "confirmEach", "action": "defer", "reason": "agentTaskRequiresStartupConfirmation"}, - {"id": "run", "kind": "run", "policy": "terminate", "action": "terminate", "reason": "finalSweepApproved"} - ] - } - }, - { - "name": "final sweep applies choices made in advance to unseen background services", - "request": { - "context": "finalSweep", - "settings": {"backgroundResources": "terminate", "rememberedChoices": {"example.keep": "keep"}}, - "records": [ - {"id": "unseen-service", "kind": "daemon", "ownership": "scopeToken", "detached": true}, - {"id": "remembered-service", "kind": "daemon", "ownership": "scopeToken", "recognizerId": "example.keep", "recognizedPolicy": "askOnExit"} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "unseen-service", "kind": "daemon", "policy": "askOnExit", "action": "terminate", "reason": "backgroundSetting"}, - {"id": "remembered-service", "kind": "daemon", "policy": "askOnExit", "action": "retain", "reason": "rememberedChoice"} - ] - } - }, - { - "name": "quit asks before stopping the run sessions the host tracks", - "request": { - "context": "quit", - "records": [ - {"id": "api", "kind": "run", "ownership": "launched"}, - {"id": "run:other", "kind": "run", "ownership": "scopeToken"}, - {"id": "jdtls", "kind": "languageServer", "ownership": "launched"} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "api", "kind": "run", "policy": "terminate", "action": "confirmStop", "reason": "runServicesSetting"}, - {"id": "run:other", "kind": "run", "policy": "terminate", "action": "terminate", "reason": "defaultTerminate"}, - {"id": "jdtls", "kind": "languageServer", "policy": "terminate", "action": "terminate", "reason": "defaultTerminate"} - ] - } - }, - { - "name": "quit stops run sessions without asking when told to", - "request": { - "context": "quit", - "settings": {"runServicesOnExit": "terminate"}, - "records": [ - {"id": "api", "kind": "run", "ownership": "launched"} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "api", "kind": "run", "policy": "terminate", "action": "terminate", "reason": "runServicesSetting"} - ] - } - }, - { - "name": "closing a workspace decides only its own run sessions", - "request": { - "context": "closeWorkspace", - "records": [ - {"id": "api", "kind": "run", "ownership": "launched"}, - {"id": "kept-api", "kind": "run", "ownership": "launched", "retained": true}, - {"id": "spring", "kind": "terminal", "ownership": "launched"}, - {"id": "migration", "kind": "agentTask", "ownership": "scopeToken"}, - {"id": "daemon", "kind": "daemon", "ownership": "scopeToken", "detached": true}, - {"id": "jdtls", "kind": "languageServer", "ownership": "launched"}, - {"id": "outside", "kind": "container", "ownership": "unproven"} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "api", "kind": "run", "policy": "terminate", "action": "confirmStop", "reason": "runServicesSetting"}, - {"id": "kept-api", "kind": "run", "policy": "terminate", "action": "retain", "reason": "retainedByUser"}, - {"id": "spring", "kind": "terminal", "policy": "confirmEach", "action": "defer", "reason": "decidedOnQuit"}, - {"id": "migration", "kind": "agentTask", "policy": "confirmEach", "action": "defer", "reason": "decidedOnQuit"}, - {"id": "daemon", "kind": "daemon", "policy": "askOnExit", "action": "defer", "reason": "decidedOnQuit"}, - {"id": "jdtls", "kind": "languageServer", "policy": "terminate", "action": "terminate", "reason": "defaultTerminate"}, - {"id": "outside", "kind": "container", "policy": "external", "action": "ignore", "reason": "ownershipUnproven"} - ] - } - }, - { - "name": "run sessions end without a question after a crash", - "request": { - "context": "crashRecovery", - "records": [ - {"id": "api", "kind": "run", "ownership": "launched"} - ] - }, - "expected": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - {"id": "api", "kind": "run", "policy": "terminate", "action": "terminate", "reason": "defaultTerminate"} - ] - } - } - ] -} diff --git a/shared/fixtures/process-lifecycle/inventory-v1.json b/shared/fixtures/process-lifecycle/inventory-v1.json deleted file mode 100644 index e6f045e7fc..0000000000 --- a/shared/fixtures/process-lifecycle/inventory-v1.json +++ /dev/null @@ -1,1304 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { - "name": "live instance with terminals, a daemon, an Agent and outside processes", - "request": { - "scope": "S", - "mode": "live", - "applicationSessionId": 100, - "excludedProcessIds": [ - 100, - 110 - ], - "retained": [ - { - "processId": 600, - "startTime": 600 - } - ], - "agentConnections": [ - { - "scope": "A", - "agentName": "codex-acp", - "workspace": "/work/shop", - "taskBaseline": 2000 - } - ], - "context": "quit", - "processes": [ - { - "processId": 100, - "startTime": 100, - "parentProcessId": 1, - "sessionId": 100, - "name": "Lithe", - "processScope": "S" - }, - { - "processId": 101, - "startTime": 101, - "parentProcessId": 100, - "sessionId": 100, - "name": "java", - "executablePath": "/jdk/bin/java", - "arguments": [ - "java", - "-jar", - "jdtls.jar" - ], - "processScope": "S" - }, - { - "processId": 110, - "startTime": 110, - "parentProcessId": 1, - "sessionId": 110, - "name": "Lithe", - "arguments": [ - "Lithe", - "--lithe-process-supervisor" - ], - "processScope": "S" - }, - { - "processId": 200, - "startTime": 200, - "parentProcessId": 100, - "sessionId": 200, - "hasControllingTerminal": true, - "name": "zsh", - "executablePath": "/bin/zsh", - "arguments": [ - "-zsh" - ], - "processScope": "S" - }, - { - "processId": 201, - "startTime": 201, - "parentProcessId": 200, - "sessionId": 200, - "hasControllingTerminal": true, - "name": "java", - "executablePath": "/jdk/bin/java", - "arguments": [ - "java", - "-jar", - "app.jar" - ], - "processScope": "S", - "workingDirectory": "/work/shop" - }, - { - "processId": 300, - "startTime": 300, - "parentProcessId": 1, - "sessionId": 300, - "name": "redis-server", - "executablePath": "/opt/bin/redis-server", - "arguments": [ - "redis-server", - "--port", - "6380" - ], - "processScope": "S" - }, - { - "processId": 301, - "startTime": 301, - "parentProcessId": 300, - "sessionId": 300, - "name": "redis-bg", - "processScope": "S" - }, - { - "processId": 400, - "startTime": 1000, - "parentProcessId": 100, - "sessionId": 100, - "name": "codex-acp", - "executablePath": "/data/codex-acp", - "arguments": [ - "codex-acp" - ], - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 401, - "startTime": 1500, - "parentProcessId": 400, - "sessionId": 100, - "name": "node", - "arguments": [ - "node", - "mcp-server.js" - ], - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 402, - "startTime": 2500, - "parentProcessId": 400, - "sessionId": 100, - "name": "bash", - "executablePath": "/bin/bash", - "arguments": [ - "bash", - "-c", - "npm run migrate" - ], - "processScope": "S", - "agentScope": "A", - "workingDirectory": "/work/shop" - }, - { - "processId": 403, - "startTime": 2600, - "parentProcessId": 402, - "sessionId": 100, - "name": "node", - "arguments": [ - "node", - "migrate.js" - ], - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 404, - "startTime": 3000, - "parentProcessId": 1, - "sessionId": 404, - "name": "vite", - "arguments": [ - "vite", - "--port", - "5173" - ], - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 500, - "startTime": 500, - "parentProcessId": 1, - "sessionId": 500, - "name": "docker", - "processScope": "OTHER" - }, - { - "processId": 501, - "startTime": 501, - "parentProcessId": 1, - "sessionId": 501, - "name": "postgres" - }, - { - "processId": 600, - "startTime": 600, - "parentProcessId": 1, - "sessionId": 600, - "name": "kept", - "processScope": "S" - } - ] - }, - "expected": { - "items": [ - { - "id": "agentTask:402:2500", - "category": "agentTask", - "kind": "agentTask", - "detached": false, - "name": "bash -c npm run migrate", - "detail": "bash -c npm run migrate", - "rootProcessId": 402, - "startedAt": 2500, - "agentName": "codex-acp", - "workspace": "/work/shop", - "workingDirectory": "/work/shop", - "processes": [ - { - "processId": 402, - "startTime": 2500 - }, - { - "processId": 403, - "startTime": 2600 - } - ] - }, - { - "id": "agentTask:404:3000", - "category": "agentTask", - "kind": "agentTask", - "detached": false, - "name": "vite --port 5173", - "detail": "vite --port 5173", - "rootProcessId": 404, - "startedAt": 3000, - "agentName": "codex-acp", - "workspace": "/work/shop", - "workingDirectory": null, - "processes": [ - { - "processId": 404, - "startTime": 3000 - } - ] - }, - { - "id": "agentInfrastructure:A", - "category": "agentInfrastructure", - "kind": "sidecar", - "detached": false, - "name": "codex-acp", - "detail": "codex-acp", - "rootProcessId": 400, - "startedAt": 1000, - "agentName": "codex-acp", - "workspace": "/work/shop", - "workingDirectory": null, - "processes": [ - { - "processId": 400, - "startTime": 1000 - }, - { - "processId": 401, - "startTime": 1500 - } - ] - }, - { - "id": "service:300:300", - "category": "backgroundService", - "kind": "daemon", - "detached": true, - "name": "redis-server --port 6380", - "detail": "redis-server --port 6380", - "rootProcessId": 300, - "startedAt": 300, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 300, - "startTime": 300 - }, - { - "processId": 301, - "startTime": 301 - } - ] - }, - { - "id": "terminal:200", - "category": "terminal", - "kind": "terminal", - "detached": false, - "name": "zsh", - "detail": "-zsh", - "rootProcessId": 200, - "startedAt": 200, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 200, - "startTime": 200 - }, - { - "processId": 201, - "startTime": 201 - } - ] - }, - { - "id": "run:other", - "category": "other", - "kind": "run", - "detached": false, - "name": "java -jar jdtls.jar", - "detail": "java -jar jdtls.jar", - "rootProcessId": 101, - "startedAt": 101, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 101, - "startTime": 101 - } - ] - } - ], - "plan": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - { - "id": "agentTask:402:2500", - "kind": "agentTask", - "policy": "confirmEach", - "action": "confirm", - "reason": "agentTask" - }, - { - "id": "agentTask:404:3000", - "kind": "agentTask", - "policy": "confirmEach", - "action": "confirm", - "reason": "agentTask" - }, - { - "id": "agentInfrastructure:A", - "kind": "sidecar", - "policy": "terminate", - "action": "terminate", - "reason": "defaultTerminate" - }, - { - "id": "service:300:300", - "kind": "daemon", - "policy": "askOnExit", - "action": "ask", - "reason": "detachedProcess" - }, - { - "id": "terminal:200", - "kind": "terminal", - "policy": "confirmEach", - "action": "confirm", - "reason": "busyTerminal" - }, - { - "id": "run:other", - "kind": "run", - "policy": "terminate", - "action": "terminate", - "reason": "defaultTerminate" - } - ] - } - } - }, - { - "name": "Agent without a prompt has no tasks", - "request": { - "scope": "S", - "applicationSessionId": 100, - "agentConnections": [ - { - "scope": "A", - "agentName": "claude", - "workspace": "/work" - } - ], - "processes": [ - { - "processId": 400, - "startTime": 1000, - "parentProcessId": 100, - "sessionId": 100, - "name": "claude", - "processScope": "S", - "agentScope": "A" - } - ] - }, - "expected": { - "items": [ - { - "id": "agentInfrastructure:A", - "category": "agentInfrastructure", - "kind": "sidecar", - "detached": false, - "name": "claude", - "detail": "claude", - "rootProcessId": 400, - "startedAt": 1000, - "agentName": "claude", - "workspace": "/work", - "workingDirectory": null, - "processes": [ - { - "processId": 400, - "startTime": 1000 - } - ] - } - ], - "plan": null - } - }, - { - "name": "leftovers of a crashed instance group every Agent process as one task", - "request": { - "scope": "S", - "mode": "leftover", - "applicationSessionId": 999, - "agentConnections": [ - { - "scope": "A", - "agentName": "ignored", - "workspace": "/ignored", - "taskBaseline": 1 - } - ], - "context": "startupSweep", - "processes": [ - { - "processId": 400, - "startTime": 1000, - "parentProcessId": 1, - "sessionId": 100, - "name": "codex-acp", - "arguments": [ - "codex-acp" - ], - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 402, - "startTime": 2500, - "parentProcessId": 400, - "sessionId": 100, - "name": "bash", - "arguments": [ - "bash", - "-c", - "deploy.sh" - ], - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 300, - "startTime": 300, - "parentProcessId": 1, - "sessionId": 300, - "name": "gradle", - "arguments": [ - "java", - "GradleDaemon" - ], - "processScope": "S" - } - ] - }, - "expected": { - "items": [ - { - "id": "agentTask:400:1000", - "category": "agentTask", - "kind": "agentTask", - "detached": false, - "name": "codex-acp", - "detail": "codex-acp", - "rootProcessId": 400, - "startedAt": 1000, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 400, - "startTime": 1000 - }, - { - "processId": 402, - "startTime": 2500 - } - ] - }, - { - "id": "service:300:300", - "category": "backgroundService", - "kind": "daemon", - "detached": true, - "name": "gradle GradleDaemon", - "detail": "java GradleDaemon", - "rootProcessId": 300, - "startedAt": 300, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 300, - "startTime": 300 - } - ] - } - ], - "plan": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - { - "id": "agentTask:400:1000", - "kind": "agentTask", - "policy": "confirmEach", - "action": "confirm", - "reason": "agentTaskAlwaysConfirmedAtStartup" - }, - { - "id": "service:300:300", - "kind": "daemon", - "policy": "askOnExit", - "action": "ask", - "reason": "startupSweepSetting" - } - ] - } - } - }, - { - "name": "double-fork daemons survive exited session leaders without claiming application or terminal sessions", - "request": { - "scope": "S", - "applicationSessionId": 100, - "context": "quit", - "processes": [ - { - "processId": 340, - "startTime": 310, - "parentProcessId": 350, - "sessionId": 300, - "name": "worker", - "processScope": "S" - }, - { - "processId": 221, - "startTime": 210, - "parentProcessId": 220, - "sessionId": 200, - "name": "terminal-child", - "processScope": "S" - }, - { - "processId": 450, - "startTime": 400, - "parentProcessId": 1, - "sessionId": 400, - "name": "second-daemon", - "processScope": "S" - }, - { - "processId": 170, - "startTime": 170, - "parentProcessId": 1, - "sessionId": 0, - "name": "unknown-session", - "processScope": "S" - }, - { - "processId": 350, - "startTime": 300, - "parentProcessId": 1, - "sessionId": 300, - "name": "daemon", - "processScope": "S" - }, - { - "processId": 150, - "startTime": 150, - "parentProcessId": 1, - "sessionId": 100, - "name": "app-orphan", - "processScope": "S" - }, - { - "processId": 220, - "startTime": 200, - "parentProcessId": 1, - "sessionId": 200, - "name": "shell", - "processScope": "S", - "hasControllingTerminal": true - } - ] - }, - "expected": { - "items": [ - { - "id": "service:350:300", - "category": "backgroundService", - "kind": "daemon", - "detached": true, - "name": "daemon", - "detail": "daemon", - "rootProcessId": 350, - "startedAt": 300, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 350, - "startTime": 300 - }, - { - "processId": 340, - "startTime": 310 - } - ] - }, - { - "id": "service:450:400", - "category": "backgroundService", - "kind": "daemon", - "detached": true, - "name": "second-daemon", - "detail": "second-daemon", - "rootProcessId": 450, - "startedAt": 400, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 450, - "startTime": 400 - } - ] - }, - { - "id": "terminal:200", - "category": "terminal", - "kind": "terminal", - "detached": false, - "name": "shell", - "detail": "shell", - "rootProcessId": 220, - "startedAt": 200, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 220, - "startTime": 200 - } - ] - }, - { - "id": "run:other", - "category": "other", - "kind": "run", - "detached": false, - "name": "app-orphan", - "detail": "app-orphan", - "rootProcessId": 150, - "startedAt": 150, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 150, - "startTime": 150 - }, - { - "processId": 170, - "startTime": 170 - }, - { - "processId": 221, - "startTime": 210 - } - ] - } - ], - "plan": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - { - "id": "service:350:300", - "kind": "daemon", - "policy": "askOnExit", - "action": "ask", - "reason": "detachedProcess" - }, - { - "id": "service:450:400", - "kind": "daemon", - "policy": "askOnExit", - "action": "ask", - "reason": "detachedProcess" - }, - { - "id": "terminal:200", - "kind": "terminal", - "policy": "confirmEach", - "action": "confirm", - "reason": "busyTerminal" - }, - { - "id": "run:other", - "kind": "run", - "policy": "terminate", - "action": "terminate", - "reason": "defaultTerminate" - } - ] - } - } - }, - { - "name": "closing A never inventories live B tasks or infrastructure", - "request": { - "scope": "S", - "mode": "live", - "applicationSessionId": 100, - "agentScopes": [ - "A" - ], - "agentConnections": [ - { - "scope": "A", - "agentName": "Agent A", - "workspace": "/A", - "taskBaseline": 10 - } - ], - "processes": [ - { - "processId": 10, - "startTime": 1, - "parentProcessId": 1, - "sessionId": 100, - "name": "host-A", - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 11, - "startTime": 20, - "parentProcessId": 10, - "sessionId": 100, - "name": "task-A", - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 20, - "startTime": 1, - "parentProcessId": 1, - "sessionId": 100, - "name": "host-B", - "processScope": "S", - "agentScope": "B" - }, - { - "processId": 21, - "startTime": 20, - "parentProcessId": 20, - "sessionId": 100, - "name": "task-B", - "processScope": "S", - "agentScope": "B" - } - ] - }, - "expected": { - "items": [ - { - "id": "agentTask:11:20", - "category": "agentTask", - "kind": "agentTask", - "detached": false, - "name": "task-A", - "detail": "task-A", - "rootProcessId": 11, - "startedAt": 20, - "agentName": "Agent A", - "workspace": "/A", - "workingDirectory": null, - "processes": [ - { - "processId": 11, - "startTime": 20 - } - ] - }, - { - "id": "agentInfrastructure:A", - "category": "agentInfrastructure", - "kind": "sidecar", - "detached": false, - "name": "host-A", - "detail": "host-A", - "rootProcessId": 10, - "startedAt": 1, - "agentName": "Agent A", - "workspace": "/A", - "workingDirectory": null, - "processes": [ - { - "processId": 10, - "startTime": 1 - } - ] - } - ], - "plan": null - } - }, - { - "name": "closing taskless A still excludes busy B", - "request": { - "scope": "S", - "mode": "live", - "applicationSessionId": 100, - "agentScopes": [ - "A" - ], - "agentConnections": [ - { - "scope": "A", - "agentName": "Agent A", - "workspace": "/A", - "taskBaseline": 10 - } - ], - "processes": [ - { - "processId": 10, - "startTime": 1, - "parentProcessId": 1, - "sessionId": 100, - "name": "host-A", - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 20, - "startTime": 1, - "parentProcessId": 1, - "sessionId": 100, - "name": "host-B", - "processScope": "S", - "agentScope": "B" - }, - { - "processId": 21, - "startTime": 20, - "parentProcessId": 20, - "sessionId": 100, - "name": "task-B", - "processScope": "S", - "agentScope": "B" - } - ] - }, - "expected": { - "items": [ - { - "id": "agentInfrastructure:A", - "category": "agentInfrastructure", - "kind": "sidecar", - "detached": false, - "name": "host-A", - "detail": "host-A", - "rootProcessId": 10, - "startedAt": 1, - "agentName": "Agent A", - "workspace": "/A", - "workingDirectory": null, - "processes": [ - { - "processId": 10, - "startTime": 1 - } - ] - } - ], - "plan": null - } - }, - { - "name": "empty target scope list never broadens to the whole instance", - "request": { - "scope": "S", - "mode": "live", - "applicationSessionId": 100, - "agentScopes": [], - "agentConnections": [ - { - "scope": "A", - "agentName": "Agent A", - "workspace": "/A", - "taskBaseline": 10 - } - ], - "processes": [ - { - "processId": 10, - "startTime": 1, - "parentProcessId": 1, - "sessionId": 100, - "name": "host-A", - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 20, - "startTime": 1, - "parentProcessId": 1, - "sessionId": 100, - "name": "host-B", - "processScope": "S", - "agentScope": "B" - }, - { - "processId": 21, - "startTime": 20, - "parentProcessId": 20, - "sessionId": 100, - "name": "task-B", - "processScope": "S", - "agentScope": "B" - } - ] - }, - "expected": { - "items": [], - "plan": null - } - }, - { - "name": "final sweep defers unseen lineage and reused PIDs but ends approved siblings and infrastructure", - "request": { - "scope": "S", - "mode": "leftover", - "applicationSessionId": 100, - "context": "finalSweep", - "processes": [ - { - "processId": 111, - "startTime": 30, - "parentProcessId": 1, - "sessionId": 100, - "name": "unobserved-orphan", - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 112, - "startTime": 20, - "parentProcessId": 1, - "sessionId": 100, - "name": "approved-sibling", - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 113, - "startTime": 99, - "parentProcessId": 1, - "sessionId": 100, - "name": "reused-pid", - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 114, - "startTime": 1, - "parentProcessId": 1, - "sessionId": 100, - "name": "approved-infrastructure", - "processScope": "S", - "agentScope": "A" - } - ], - "retained": [ - { - "processId": 99, - "startTime": 1 - } - ], - "approvedTermination": [ - { - "processId": 112, - "startTime": 20 - }, - { - "processId": 113, - "startTime": 21 - }, - { - "processId": 114, - "startTime": 1 - } - ] - }, - "expected": { - "items": [ - { - "id": "agentTask:111:30", - "category": "agentTask", - "kind": "agentTask", - "detached": false, - "name": "unobserved-orphan", - "detail": "unobserved-orphan", - "rootProcessId": 111, - "startedAt": 30, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 111, - "startTime": 30 - } - ] - }, - { - "id": "agentTask:112:20", - "category": "agentTask", - "kind": "agentTask", - "detached": false, - "name": "approved-sibling", - "detail": "approved-sibling", - "rootProcessId": 112, - "startedAt": 20, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 112, - "startTime": 20 - } - ] - }, - { - "id": "agentTask:113:99", - "category": "agentTask", - "kind": "agentTask", - "detached": false, - "name": "reused-pid", - "detail": "reused-pid", - "rootProcessId": 113, - "startedAt": 99, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 113, - "startTime": 99 - } - ] - }, - { - "id": "agentTask:114:1", - "category": "agentTask", - "kind": "agentTask", - "detached": false, - "name": "approved-infrastructure", - "detail": "approved-infrastructure", - "rootProcessId": 114, - "startedAt": 1, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 114, - "startTime": 1 - } - ] - } - ], - "plan": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - { - "id": "agentTask:111:30", - "kind": "agentTask", - "policy": "confirmEach", - "action": "defer", - "reason": "agentTaskRequiresStartupConfirmation" - }, - { - "id": "agentTask:112:20", - "kind": "agentTask", - "policy": "confirmEach", - "action": "terminate", - "reason": "finalSweepApproved" - }, - { - "id": "agentTask:113:99", - "kind": "agentTask", - "policy": "confirmEach", - "action": "defer", - "reason": "agentTaskRequiresStartupConfirmation" - }, - { - "id": "agentTask:114:1", - "kind": "agentTask", - "policy": "confirmEach", - "action": "terminate", - "reason": "finalSweepApproved" - } - ] - } - } - }, - { - "name": "startup independently confirms unknown orphan tasks even with terminate setting", - "request": { - "scope": "S", - "mode": "leftover", - "applicationSessionId": 100, - "context": "startupSweep", - "settings": { - "agentTasks": "terminate" - }, - "processes": [ - { - "processId": 111, - "startTime": 30, - "parentProcessId": 1, - "sessionId": 100, - "name": "unobserved-orphan", - "processScope": "S", - "agentScope": "A" - }, - { - "processId": 113, - "startTime": 99, - "parentProcessId": 1, - "sessionId": 100, - "name": "reused-pid", - "processScope": "S", - "agentScope": "A" - } - ] - }, - "expected": { - "items": [ - { - "id": "agentTask:111:30", - "category": "agentTask", - "kind": "agentTask", - "detached": false, - "name": "unobserved-orphan", - "detail": "unobserved-orphan", - "rootProcessId": 111, - "startedAt": 30, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 111, - "startTime": 30 - } - ] - }, - { - "id": "agentTask:113:99", - "category": "agentTask", - "kind": "agentTask", - "detached": false, - "name": "reused-pid", - "detail": "reused-pid", - "rootProcessId": 113, - "startedAt": 99, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 113, - "startTime": 99 - } - ] - } - ], - "plan": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - { - "id": "agentTask:111:30", - "kind": "agentTask", - "policy": "confirmEach", - "action": "confirm", - "reason": "agentTaskAlwaysConfirmedAtStartup" - }, - { - "id": "agentTask:113:99", - "kind": "agentTask", - "policy": "confirmEach", - "action": "confirm", - "reason": "agentTaskAlwaysConfirmedAtStartup" - } - ] - } - } - }, - { - "name": "legacy missing original session asks without claiming detachment", - "request": { - "scope": "S", - "mode": "leftover", - "applicationSessionId": 0, - "context": "startupSweep", - "processes": [ - { - "processId": 150, - "startTime": 2, - "parentProcessId": 1, - "sessionId": 100, - "name": "legacy-tool", - "processScope": "S" - } - ] - }, - "expected": { - "items": [ - { - "id": "run:other", - "category": "other", - "kind": "run", - "detached": false, - "name": "legacy-tool", - "detail": "legacy-tool", - "rootProcessId": 150, - "startedAt": 2, - "agentName": null, - "workspace": null, - "workingDirectory": null, - "processes": [ - { - "processId": 150, - "startTime": 2 - } - ] - } - ], - "plan": { - "gracefulStopMilliseconds": 5000, - "decisions": [ - { - "id": "run:other", - "kind": "run", - "policy": "askOnExit", - "action": "ask", - "reason": "startupSweepSetting" - } - ] - } - } - } - ] -} diff --git a/shared/fixtures/process-lifecycle/settle-v1.json b/shared/fixtures/process-lifecycle/settle-v1.json deleted file mode 100644 index ab2c8081ae..0000000000 --- a/shared/fixtures/process-lifecycle/settle-v1.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { - "name": "answers, silent decisions and remembered choices", - "request": { - "settings": {"rememberedChoices": {"old.daemon": "keep"}}, - "remember": true, - "decisions": [ - {"id": "idle", "action": "terminate"}, - {"id": "spring", "action": "confirm"}, - {"id": "migration", "action": "confirm"}, - {"id": "gradle", "action": "ask", "recognizerId": "gradle.daemon"}, - {"id": "unknown", "action": "ask"}, - {"id": "kept", "action": "retain"}, - {"id": "later", "action": "defer"}, - {"id": "outside", "action": "ignore"} - ], - "answers": {"spring": "terminate", "migration": "keep", "gradle": "terminate", "unknown": "keep"} - }, - "expected": { - "terminate": ["idle", "spring", "gradle"], - "keep": ["migration", "unknown", "kept"], - "settings": { - "terminalOnQuit": "confirmEach", - "confirmTerminalTabClose": true, - "agentTasks": "confirmEach", - "backgroundResources": "ask", - "runServicesOnExit": "ask", - "rememberedChoices": {"gradle.daemon": "terminate", "old.daemon": "keep"}, - "startupSweep": "ask", - "gracefulStopSeconds": 5 - } - } - }, - { - "name": "unanswered questions keep, and confirmations are never remembered", - "request": { - "remember": true, - "decisions": [ - {"id": "task", "action": "confirm", "recognizerId": "agent.task"}, - {"id": "service", "action": "ask"} - ] - }, - "expected": { - "terminate": [], - "keep": ["task", "service"], - "settings": { - "terminalOnQuit": "confirmEach", - "confirmTerminalTabClose": true, - "agentTasks": "confirmEach", - "backgroundResources": "ask", - "runServicesOnExit": "ask", - "rememberedChoices": {}, - "startupSweep": "ask", - "gracefulStopSeconds": 5 - } - } - }, - { - "name": "a confirmed stop ends every listed run session", - "request": { - "decisions": [ - {"id": "api", "action": "confirmStop"}, - {"id": "worker", "action": "confirmStop"}, - {"id": "jdtls", "action": "terminate"} - ] - }, - "expected": { - "terminate": ["api", "worker", "jdtls"], - "keep": [], - "settings": { - "terminalOnQuit": "confirmEach", - "confirmTerminalTabClose": true, - "agentTasks": "confirmEach", - "backgroundResources": "ask", - "runServicesOnExit": "ask", - "rememberedChoices": {}, - "startupSweep": "ask", - "gracefulStopSeconds": 5 - } - } - } - ] -} diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/.classpath b/shared/fixtures/projects/lithe-spring-boot-git-graph/.classpath deleted file mode 100644 index 4e7f67017b..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/.classpath +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/.project b/shared/fixtures/projects/lithe-spring-boot-git-graph/.project deleted file mode 100644 index 441ab09ebd..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/.project +++ /dev/null @@ -1,34 +0,0 @@ - - - lithe-spring-boot-git-graph - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.m2e.core.maven2Nature - - - - 1785591560813 - - 30 - - org.eclipse.core.resources.regexFilterMatcher - node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ - - - - diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.core.resources.prefs b/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index abdea9ac03..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,4 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/main/java=UTF-8 -encoding//src/main/resources=UTF-8 -encoding/=UTF-8 diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.jdt.apt.core.prefs b/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.jdt.apt.core.prefs deleted file mode 100644 index d4313d4b25..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.jdt.apt.core.prefs +++ /dev/null @@ -1,2 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.apt.aptEnabled=false diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.jdt.core.prefs b/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index e60fa3f30b..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,10 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.methodParameters=generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 -org.eclipse.jdt.core.compiler.compliance=21 -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore -org.eclipse.jdt.core.compiler.processAnnotations=disabled -org.eclipse.jdt.core.compiler.release=enabled -org.eclipse.jdt.core.compiler.source=21 diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.m2e.core.prefs b/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f1cb..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/README.md b/shared/fixtures/projects/lithe-spring-boot-git-graph/README.md deleted file mode 100644 index 284e6e9433..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/README.md +++ /dev/null @@ -1,17 +0,0 @@ -# Lithe Spring Boot Git Graph Fixture - -这是 Git Graph 的单一验收项目,不参与 Lithe 本身的构建。 - -项目模拟一个常见的 Spring Boot 用户服务,配套脚本会生成: - -- `main` 主线 -- `feature/users` 分支及真实 Merge Commit -- `feature/orders` 的 Rebase 历史 -- Tag `v0.1.0` -- `origin/main` 远程引用 - -生成: - -```bash -./scripts/git-graph/create-git-graph-fixture.sh -``` diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/history/OrderController-feature.java b/shared/fixtures/projects/lithe-spring-boot-git-graph/history/OrderController-feature.java deleted file mode 100644 index a5451a8ad7..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/history/OrderController-feature.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.example.demo.order; - -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@RestController -@RequestMapping("/api/orders") -public class OrderController { - @GetMapping("/health") - public String health() { - return "ok"; - } -} diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/history/UserService-feature.java b/shared/fixtures/projects/lithe-spring-boot-git-graph/history/UserService-feature.java deleted file mode 100644 index cb6499642e..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/history/UserService-feature.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.example.demo.user; - -import org.springframework.stereotype.Service; - -import java.util.List; - -@Service -public class UserService { - private final UserRepository repository; - - public UserService(UserRepository repository) { - this.repository = repository; - } - - public List listUsers() { - return repository.findAll().stream().toList(); - } -} diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/pom.xml b/shared/fixtures/projects/lithe-spring-boot-git-graph/pom.xml deleted file mode 100644 index 98da55eb28..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - 4.0.0 - - org.springframework.boot - spring-boot-starter-parent - 3.3.5 - - - - com.example - lithe-spring-boot-git-graph - 0.1.0-SNAPSHOT - lithe-spring-boot-git-graph - - - 21 - - - - - org.springframework.boot - spring-boot-starter-web - - - org.springframework.boot - spring-boot-starter-validation - - - org.springframework.boot - spring-boot-starter-test - test - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/DemoApplication.java b/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/DemoApplication.java deleted file mode 100644 index 1bc9554933..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/DemoApplication.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.example.demo; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication -public class DemoApplication { - public static void main(String[] args) { - SpringApplication.run(DemoApplication.class, args); - } -} diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserController.java b/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserController.java deleted file mode 100644 index abdefbac4b..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserController.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.example.demo.user; - -import jakarta.validation.constraints.NotBlank; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -import java.util.List; - -@Validated -@RestController -@RequestMapping("/api/users") -public class UserController { - private final UserService service; - - public UserController(UserService service) { - this.service = service; - } - - @GetMapping - public List list() { - return service.listUsers(); - } - - public record UserQuery(@NotBlank String tenant) {} -} diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserRepository.java b/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserRepository.java deleted file mode 100644 index 2e1a088889..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserRepository.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.example.demo.user; - -import org.springframework.stereotype.Repository; - -import java.util.List; - -@Repository -public class UserRepository { - public List findAll() { - return List.of( - new UserSummary(1L, "Ada Lovelace"), - new UserSummary(2L, "Grace Hopper") - ); - } - - public record UserSummary(Long id, String name) {} -} diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserService.java b/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserService.java deleted file mode 100644 index 2c2cf88244..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/java/com/example/demo/user/UserService.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.example.demo.user; - -import org.springframework.stereotype.Service; - -import java.util.List; - -@Service -public class UserService { - private final UserRepository repository; - - public UserService(UserRepository repository) { - this.repository = repository; - } - - public List listUsers() { - return repository.findAll(); - } -} diff --git a/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/resources/application.yml b/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/resources/application.yml deleted file mode 100644 index 5befe7a5f8..0000000000 --- a/shared/fixtures/projects/lithe-spring-boot-git-graph/src/main/resources/application.yml +++ /dev/null @@ -1,5 +0,0 @@ -spring: - application: - name: lithe-spring-boot-git-graph -server: - port: 8080 diff --git a/shared/fixtures/run-configuration/argument-text.json b/shared/fixtures/run-configuration/argument-text.json deleted file mode 100644 index ced4f9841d..0000000000 --- a/shared/fixtures/run-configuration/argument-text.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "values": [], - "text": "" - }, - { - "values": [ - "validate", - "雪" - ], - "text": "validate 雪" - }, - { - "values": [ - "", - "two words", - "quote\"", - "single'quote", - "C:\\fixture\\path", - "line\nvalue" - ], - "text": "\"\" \"two words\" \"quote\\\"\" \"single'quote\" \"C:\\\\fixture\\\\path\" \"line\nvalue\"" - }, - { - "values": [ - "a…b", - "e f", - "\\", - "\"\"" - ], - "text": "\"a…b\" \"e f\" \"\\\\\" \"\\\"\\\"\"" - } - ], - "expected": { - "exactArgv": true, - "shellExpansion": false - } -} diff --git a/shared/fixtures/run-configuration/automatic-java-selection.json b/shared/fixtures/run-configuration/automatic-java-selection.json deleted file mode 100644 index 93c355ef0d..0000000000 --- a/shared/fixtures/run-configuration/automatic-java-selection.json +++ /dev/null @@ -1,284 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "skip-incompatible-java-home", - "minimum": "17", - "candidates": [ - { - "id": "env", - "version": "1.8.0_402", - "priority": 0 - }, - { - "id": "path", - "version": "17.0.12", - "priority": 1 - }, - { - "id": "latest", - "version": "21.0.4", - "priority": 2 - } - ], - "fallbackId": "env" - }, - { - "name": "compatible-java-home-wins", - "minimum": "17", - "candidates": [ - { - "id": "env", - "version": "17.0.12", - "priority": 0 - }, - { - "id": "latest", - "version": "21.0.4", - "priority": 2 - } - ], - "fallbackId": "env" - }, - { - "name": "numeric-version-order", - "minimum": "8", - "candidates": [ - { - "id": "eleven", - "version": "11.0.22", - "priority": 2 - }, - { - "id": "twenty-one", - "version": "21.0.4", - "priority": 2 - }, - { - "id": "nine", - "version": "9.0.4", - "priority": 2 - } - ], - "fallbackId": "eleven" - }, - { - "name": "numeric-patch-order", - "minimum": "17", - "candidates": [ - { - "id": "nine", - "version": "17.0.9", - "priority": 2 - }, - { - "id": "ten", - "version": "17.0.10", - "priority": 2 - } - ], - "fallbackId": "nine" - }, - { - "name": "legacy-java-eight", - "minimum": "8", - "candidates": [ - { - "id": "env", - "version": "1.8.0_402", - "priority": 0 - }, - { - "id": "latest", - "version": "21.0.4", - "priority": 2 - } - ], - "fallbackId": "env" - }, - { - "name": "stable-tie", - "minimum": "17", - "candidates": [ - { - "id": "z", - "version": "17.0.12", - "priority": 2 - }, - { - "id": "a", - "version": "17.0.12", - "priority": 2 - } - ], - "fallbackId": "z" - }, - { - "name": "exact-feature-beats-newer-java-home", - "minimum": "8", - "candidates": [ - { - "id": "env", - "version": "21.0.4", - "priority": 0 - }, - { - "id": "zulu8", - "version": "1.8.0_504", - "priority": 2 - } - ], - "fallbackId": "env" - }, - { - "name": "oldest-newer-when-exact-missing", - "minimum": "11", - "candidates": [ - { - "id": "env", - "version": "21.0.4", - "priority": 0 - }, - { - "id": "seventeen", - "version": "17.0.12", - "priority": 2 - } - ], - "fallbackId": "env" - }, - { - "name": "priority-breaks-ties-within-feature", - "minimum": "17", - "candidates": [ - { - "id": "detected", - "version": "17.0.14", - "priority": 2 - }, - { - "id": "path", - "version": "17.0.12", - "priority": 1 - }, - { - "id": "latest", - "version": "21.0.4", - "priority": 0 - } - ], - "fallbackId": "latest" - }, - { - "name": "unsatisfied-retains-fallback", - "minimum": "21", - "candidates": [ - { - "id": "env", - "version": "8.0.402", - "priority": 0 - }, - { - "id": "other", - "version": "17.0.12", - "priority": 2 - } - ], - "fallbackId": "env" - }, - { - "name": "missing-requirement-retains-fallback", - "minimum": null, - "candidates": [ - { - "id": "env", - "version": "8.0.402", - "priority": 0 - }, - { - "id": "latest", - "version": "21.0.4", - "priority": 2 - } - ], - "fallbackId": "env" - }, - { - "name": "unknown-version-is-not-compatible", - "minimum": "17", - "candidates": [ - { - "id": "env", - "version": "", - "priority": 0 - }, - { - "id": "other", - "version": "17.0.12", - "priority": 2 - } - ], - "fallbackId": "env" - }, - { - "name": "no-runtimes", - "minimum": "17", - "candidates": [], - "fallbackId": null - } - ], - "expected": { - "skip-incompatible-java-home": { - "id": "path", - "warning": false - }, - "compatible-java-home-wins": { - "id": "env", - "warning": false - }, - "numeric-version-order": { - "id": "nine", - "warning": false - }, - "numeric-patch-order": { - "id": "ten", - "warning": false - }, - "legacy-java-eight": { - "id": "env", - "warning": false - }, - "stable-tie": { - "id": "a", - "warning": false - }, - "unsatisfied-retains-fallback": { - "id": "env", - "warning": true - }, - "missing-requirement-retains-fallback": { - "id": "env", - "warning": false - }, - "unknown-version-is-not-compatible": { - "id": "other", - "warning": false - }, - "no-runtimes": { - "id": null, - "warning": true - }, - "exact-feature-beats-newer-java-home": { - "id": "zulu8", - "warning": false - }, - "oldest-newer-when-exact-missing": { - "id": "seventeen", - "warning": false - }, - "priority-breaks-ties-within-feature": { - "id": "path", - "warning": false - } - } -} diff --git a/shared/fixtures/run-configuration/basic.json b/shared/fixtures/run-configuration/basic.json deleted file mode 100644 index aae0370542..0000000000 --- a/shared/fixtures/run-configuration/basic.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "version": 1, - "generated": { - "version": 1, - "configurations": [ - { - "id": "spring:com.example.DemoApplication", - "name": "DemoApplication", - "type": "spring-boot.maven", - "module": ".", - "mainClass": "com.example.DemoApplication", - "toolchains": { "java": "project-jdk", "maven": "project-maven" }, - "workingDirectory": ".", - "jvmArguments": [], - "programArguments": [], - "mavenProfiles": [] - } - ] - }, - "team": { "version": 1, "configurations": [] }, - "local": { "version": 1, "configurations": [] }, - "expected": { "selectedId": "spring:com.example.DemoApplication", "launchToolchain": "project-maven" } -} diff --git a/shared/fixtures/run-configuration/build-provider-options.json b/shared/fixtures/run-configuration/build-provider-options.json deleted file mode 100644 index 1f30129875..0000000000 --- a/shared/fixtures/run-configuration/build-provider-options.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "version": 1, - "reference": { - "pluginID": "dev.example.engine", - "buildSystemID": "engine", - "root": "app", - "run": "serve", - "projectID": "opaque/project:1", - "targetID": "opaque/target:2", - "execution": "service", - "userArguments": [ - "legacy argument" - ] - }, - "choices": { - "runtimeArguments": [ - "--opaque=one two", - "", - "雪", - "quote\"\\literal" - ], - "entrypoint": "opaque/entry:雪", - "options": { - "features": [ - "a", - "雪" - ], - "strict": false, - "empty": [] - }, - "tools": { - "dev.example.engine:compiler": { - "executable": "/fixture/tools/team compiler" - }, - "dev.example.engine:vm": { - "home": "C:/Fixture Kits/team vm" - } - } - }, - "changed": { - "runtimeArguments": [ - "--next=value" - ], - "entrypoint": "", - "options": {}, - "tools": { - "dev.example.engine:compiler": { - "executable": "/fixture/tools/local compiler" - }, - "dev.example.engine:vm": null - } - }, - "arguments": [ - "--application=one two", - "雪" - ], - "environment": { - "EXAMPLE": "value" - }, - "workingDirectory": "app/work", - "expected": { - "buildSystemID": "engine", - "execution": "service", - "tools": { - "dev.example.engine:compiler": { - "executable": "/fixture/tools/local compiler" - } - } - } -} diff --git a/shared/fixtures/run-configuration/build-provider-stable-identities.json b/shared/fixtures/run-configuration/build-provider-stable-identities.json deleted file mode 100644 index 42142c88dc..0000000000 --- a/shared/fixtures/run-configuration/build-provider-stable-identities.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "version": 1, - "reference": { - "pluginID": "dev.example.engine", - "buildSystemID": "engine", - "root": "app", - "run": "serve", - "projectID": "opaque/project", - "targetID": "opaque/target", - "execution": "service", - "userArguments": [] - }, - "expected": { - "stableID": "imported:old-stable-id", - "duplicateGeneratedEntries": 0 - } -} diff --git a/shared/fixtures/run-configuration/build-provider.json b/shared/fixtures/run-configuration/build-provider.json deleted file mode 100644 index bf80250fc0..0000000000 --- a/shared/fixtures/run-configuration/build-provider.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "version": 1, - "reference": { - "pluginID": "dev.example.gradle", - "buildSystemID": "gradle", - "root": "app", - "run": "application", - "projectID": "project-id", - "targetID": "target-id", - "userArguments": [ - "a b", - "--literal=one two" - ] - }, - "name": "Run Main", - "unrelated": { - "version": 2, - "toolchain": { - "java": { - "homePath": "/fixture/jdk" - } - }, - "configurations": [] - }, - "expected": { - "inspectionStatus": "ready", - "requiresGeneration": true, - "configurationCount": 1, - "provider": "build.provider", - "applicationReferenceUsesLaunchOptions": false - }, - "executionKinds": [ - "service", - "task" - ] -} diff --git a/shared/fixtures/run-configuration/configuration-toolchain-selection.json b/shared/fixtures/run-configuration/configuration-toolchain-selection.json deleted file mode 100644 index 7e6217c2e7..0000000000 --- a/shared/fixtures/run-configuration/configuration-toolchain-selection.json +++ /dev/null @@ -1,446 +0,0 @@ -{ - "description": "Canonical reactor paths plus explicit Run overrides, without applying project defaults as configuration overrides or writing source documents.", - "cases": [ - { - "name": "explicit configuration paths override canonical project defaults", - "request": { - "path": ".", - "configurationId": "maven-run", - "localDocument": { - "version": 2, - "toolchain": { - "java": { - "homePath": "C:/Global JDK" - }, - "maven": { - "executablePath": "C:/Global Maven/bin/mvn.cmd", - "javaHomePath": "C:/Global Maven JDK" - }, - "pathOverrides": { - "reactor": { - "javaHomePath": "C:/Reactor JDK", - "mavenExecutablePath": "C:/Reactor Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Reactor Maven JDK" - } - } - }, - "configurations": [ - { - "id": "maven-run", - "extensions": { - "java": { - "homePath": " C:/Run JDK ", - "mavenExecutablePath": "C:/Run Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Run Maven JDK" - } - } - } - ] - } - }, - "generatedDocument": { - "version": 2, - "configurations": [ - { - "id": "maven-run", - "name": "Module", - "provider": "maven.module", - "execution": "task", - "cwd": ".", - "toolchains": { - "java": "project-jdk", - "maven": "project-maven" - }, - "extensions": { - "maven": { - "module": "." - } - } - } - ] - } - }, - { - "name": "empty configuration values inherit the canonical reactor instead of global defaults", - "request": { - "path": "reactor", - "configurationId": "maven-run", - "localDocument": { - "version": 2, - "toolchain": { - "java": { - "homePath": "C:/Global JDK" - }, - "maven": { - "executablePath": "C:/Global Maven/bin/mvn.cmd", - "javaHomePath": "C:/Global Maven JDK" - }, - "pathOverrides": { - "reactor": { - "javaHomePath": "C:/Reactor JDK", - "mavenExecutablePath": "C:/Reactor Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Reactor Maven JDK" - } - } - }, - "configurations": [ - { - "id": "maven-run", - "extensions": { - "java": { - "homePath": "", - "mavenExecutablePath": "", - "mavenJavaHomePath": "" - } - } - } - ] - } - }, - "generatedDocument": { - "version": 2, - "configurations": [ - { - "id": "maven-run", - "name": "Module", - "provider": "maven.module", - "execution": "task", - "cwd": "reactor", - "toolchains": { - "java": "project-jdk", - "maven": "project-maven" - }, - "extensions": { - "maven": { - "module": "." - } - } - } - ] - } - }, - { - "name": "a configuration cannot select another provider root", - "request": { - "path": ".", - "configurationId": "maven-run", - "localDocument": { - "version": 2, - "toolchain": { - "java": { - "homePath": "C:/Global JDK" - }, - "maven": { - "executablePath": "C:/Global Maven/bin/mvn.cmd", - "javaHomePath": "C:/Global Maven JDK" - }, - "pathOverrides": { - "reactor": { - "javaHomePath": "C:/Reactor JDK", - "mavenExecutablePath": "C:/Reactor Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Reactor Maven JDK" - } - } - }, - "configurations": [ - { - "id": "maven-run", - "extensions": { - "java": {} - } - } - ] - } - }, - "generatedDocument": { - "version": 2, - "configurations": [ - { - "id": "maven-run", - "name": "Module", - "provider": "maven.module", - "execution": "task", - "cwd": "other", - "toolchains": { - "java": "project-jdk", - "maven": "project-maven" - }, - "extensions": { - "maven": { - "module": "." - } - } - } - ] - } - }, - { - "name": "an unknown configuration cannot fall back to project paths", - "request": { - "path": ".", - "configurationId": "missing-run", - "localDocument": { - "version": 2, - "toolchain": { - "java": { - "homePath": "C:/Global JDK" - }, - "maven": { - "executablePath": "C:/Global Maven/bin/mvn.cmd", - "javaHomePath": "C:/Global Maven JDK" - }, - "pathOverrides": { - "reactor": { - "javaHomePath": "C:/Reactor JDK", - "mavenExecutablePath": "C:/Reactor Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Reactor Maven JDK" - } - } - }, - "configurations": [ - { - "id": "maven-run", - "extensions": { - "java": {} - } - } - ] - } - }, - "generatedDocument": { - "version": 2, - "configurations": [ - { - "id": "maven-run", - "name": "Module", - "provider": "maven.module", - "execution": "task", - "cwd": ".", - "toolchains": { - "java": "project-jdk", - "maven": "project-maven" - }, - "extensions": { - "maven": { - "module": "." - } - } - } - ] - } - }, - { - "name": "malformed explicit paths cannot fall back to a valid default", - "request": { - "path": ".", - "configurationId": "maven-run", - "localDocument": { - "version": 2, - "toolchain": { - "java": { - "homePath": "C:/Global JDK" - }, - "maven": { - "executablePath": "C:/Global Maven/bin/mvn.cmd", - "javaHomePath": "C:/Global Maven JDK" - }, - "pathOverrides": { - "reactor": { - "javaHomePath": "C:/Reactor JDK", - "mavenExecutablePath": "C:/Reactor Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Reactor Maven JDK" - } - } - }, - "configurations": [ - { - "id": "maven-run", - "extensions": { - "java": { - "mavenExecutablePath": false - } - } - } - ] - } - }, - "generatedDocument": { - "version": 2, - "configurations": [ - { - "id": "maven-run", - "name": "Module", - "provider": "maven.module", - "execution": "task", - "cwd": ".", - "toolchains": { - "java": "project-jdk", - "maven": "project-maven" - }, - "extensions": { - "maven": { - "module": "." - } - } - } - ] - } - }, - { - "name": "team and local explicit fields reuse the existing Run merge", - "request": { - "path": "reactor", - "configurationId": "maven-run", - "localDocument": { - "version": 2, - "toolchain": { - "java": { - "homePath": "C:/Global JDK" - }, - "maven": { - "executablePath": "C:/Global Maven/bin/mvn.cmd", - "javaHomePath": "C:/Global Maven JDK" - }, - "pathOverrides": { - "reactor": { - "javaHomePath": "C:/Reactor JDK", - "mavenExecutablePath": "C:/Reactor Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Reactor Maven JDK" - } - } - }, - "configurations": [ - { - "id": "maven-run", - "extensions": { - "java": { - "mavenExecutablePath": "", - "mavenJavaHomePath": "C:/Local Maven JDK" - } - } - } - ] - } - }, - "teamDocument": { - "version": 2, - "configurations": [ - { - "id": "maven-run", - "extensions": { - "java": { - "homePath": "C:/Team JDK", - "mavenExecutablePath": "C:/Team Maven/bin/mvn.cmd" - } - } - } - ] - }, - "generatedDocument": { - "version": 2, - "configurations": [ - { - "id": "maven-run", - "name": "Module", - "provider": "maven.module", - "execution": "task", - "cwd": "reactor", - "toolchains": { - "java": "project-jdk", - "maven": "project-maven" - }, - "extensions": { - "maven": { - "module": "." - } - } - } - ] - } - }, - { - "name": "saved selectors inherit canonical paths without a generated layer", - "request": { - "path": "reactor", - "configurationId": "user:reference", - "localDocument": { - "version": 2, - "toolchain": { - "maven": { - "executablePath": "C:/Global Maven/bin/mvn.cmd" - }, - "pathOverrides": { - "reactor": { - "mavenExecutablePath": "C:/Reactor Maven/bin/mvn.cmd" - } - } - }, - "configurations": [ - { - "id": "user:reference", - "name": "Reference", - "provider": "build.provider", - "execution": "task", - "extensions": { - "build": { - "pluginID": "dev.example.build", - "buildSystemID": "example", - "root": "reactor", - "run": "module", - "projectID": "p", - "targetID": "t", - "execution": "task", - "userArguments": [] - } - } - } - ] - } - } - } - ], - "version": 1, - "expected": { - "explicit configuration paths override canonical project defaults": { - "toolchain": { - "javaHomePath": "C:/Run JDK", - "mavenExecutablePath": "C:/Run Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Run Maven JDK", - "runtimeExecutablePaths": {} - } - }, - "empty configuration values inherit the canonical reactor instead of global defaults": { - "toolchain": { - "javaHomePath": "C:/Reactor JDK", - "mavenExecutablePath": "C:/Reactor Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Reactor Maven JDK", - "runtimeExecutablePaths": {} - } - }, - "a configuration cannot select another provider root": { - "errorCode": "invalid_request" - }, - "an unknown configuration cannot fall back to project paths": { - "errorCode": "invalid_request" - }, - "malformed explicit paths cannot fall back to a valid default": { - "errorCode": "parse_failed" - }, - "team and local explicit fields reuse the existing Run merge": { - "toolchain": { - "javaHomePath": "C:/Team JDK", - "mavenExecutablePath": "C:/Reactor Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Local Maven JDK", - "runtimeExecutablePaths": {} - } - }, - "saved selectors inherit canonical paths without a generated layer": { - "toolchain": { - "javaHomePath": "", - "mavenExecutablePath": "C:/Reactor Maven/bin/mvn.cmd", - "mavenJavaHomePath": "", - "runtimeExecutablePaths": {} - } - } - } -} diff --git a/shared/fixtures/run-configuration/context-selection.json b/shared/fixtures/run-configuration/context-selection.json deleted file mode 100644 index c58eee2ec3..0000000000 --- a/shared/fixtures/run-configuration/context-selection.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "version": 1, - "expected": { "providerNeutral": true, "preservesInputOrderOnTies": true }, - "cases": [ - { - "name": "edited copy beats generated when neither is preferred", - "request": { - "sourcePath": "src/App.java", "symbol": "demo.App", "preferredId": null, - "caseInsensitivePaths": false, - "candidates": [ - {"id": "generated", "sourcePath": "src/App.java", "symbol": "demo.App", "generated": true, "disabled": false}, - {"id": "local", "sourcePath": "src/App.java", "symbol": "demo.App", "generated": false, "disabled": false} - ] - }, - "expected": "local" - }, - { - "name": "preferred generated beats edited and disabled never wins", - "request": { - "sourcePath": "src/App.java", "symbol": "demo.App", "preferredId": "generated", - "caseInsensitivePaths": false, - "candidates": [ - {"id": "disabled", "sourcePath": "src/App.java", "symbol": "demo.App", "generated": false, "disabled": true}, - {"id": "local", "sourcePath": "src/App.java", "symbol": "demo.App", "generated": false, "disabled": false}, - {"id": "generated", "sourcePath": "src/App.java", "symbol": "demo.App", "generated": true, "disabled": false} - ] - }, - "expected": "generated" - }, - { - "name": "Windows path identity ignores case and separator but symbol stays exact", - "request": { - "sourcePath": "src\\App.java", "symbol": "demo.App", "preferredId": null, - "caseInsensitivePaths": true, - "candidates": [ - {"id": "wrong-symbol", "sourcePath": "SRC/App.java", "symbol": "demo.app", "generated": false, "disabled": false}, - {"id": "matching", "sourcePath": "SRC/App.java", "symbol": "demo.App", "generated": true, "disabled": false} - ] - }, - "expected": "matching" - }, - { - "name": "macOS path identity remains case sensitive", - "request": { - "sourcePath": "src/App.java", "symbol": "demo.App", "preferredId": null, - "caseInsensitivePaths": false, - "candidates": [ - {"id": "wrong-case", "sourcePath": "SRC/App.java", "symbol": "demo.App", "generated": false, "disabled": false} - ] - }, - "expected": null - }, - { - "name": "equal rank preserves the incoming order", - "request": { - "sourcePath": "src/App.java", "symbol": "demo.App", "preferredId": null, - "caseInsensitivePaths": false, - "candidates": [ - {"id": "first", "sourcePath": "src/App.java", "symbol": "demo.App", "generated": false, "disabled": false}, - {"id": "second", "sourcePath": "src/App.java", "symbol": "demo.App", "generated": false, "disabled": false} - ] - }, - "expected": "first" - } - ] -} diff --git a/shared/fixtures/run-configuration/editor-save.json b/shared/fixtures/run-configuration/editor-save.json deleted file mode 100644 index 9afa859732..0000000000 --- a/shared/fixtures/run-configuration/editor-save.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "version": 1, - "request": { - "command": "runConfig.saveEditorChanges", - "payload": { - "root": "/workspace", - "scope": "project", - "configurationId": "spring", - "workingDirectory": "backend", - "jvmArguments": "-Xmx2g", - "arguments": "--dev", - "environment": { "APP_ENV": "dev" }, - "mavenProfiles": [], - "javaHomePath": "", - "mavenExecutablePath": "", - "mavenJavaHomePath": "", - "toolchain": { - "javaHomePath": "C:/lithe-fixture/jdk-21", - "mavenExecutablePath": "C:/lithe-fixture/apache-maven", - "mavenJavaHomePath": "C:/lithe-fixture/jdk-17" - } - } - }, - "expected": { - "localDocument": "string", - "projectDocument": "string" - } -} diff --git a/shared/fixtures/run-configuration/hybrid-spring-vue.json b/shared/fixtures/run-configuration/hybrid-spring-vue.json deleted file mode 100644 index 1b341033ee..0000000000 --- a/shared/fixtures/run-configuration/hybrid-spring-vue.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "version": 1, - "generated": { - "version": 2, - "configurations": [ - { - "id": "spring-boot.maven:backend", - "name": "backend", - "provider": "spring-boot.maven", - "execution": "service", - "cwd": ".", - "toolchains": { - "java": "project-jdk", - "maven": "project-maven" - } - }, - { - "id": "npm.script:web/dev", - "name": "dev", - "provider": "npm.script", - "execution": "service", - "command": "npm", - "args": ["run", "dev"], - "cwd": "web", - "toolchains": { - "runtime": "project-node" - } - } - ] - }, - "requirements": { - "version": 1, - "toolchains": { - "project-jdk": { "type": "java", "minimumVersion": "21" }, - "project-maven": { "type": "maven", "java": "project-jdk" }, - "project-node": { "type": "node", "minimumVersion": "22" } - } - }, - "expected": { - "missingNodeDiagnosticConfigurationIds": ["npm.script:web/dev"], - "unblockedConfigurationIds": ["spring-boot.maven:backend"] - } -} diff --git a/shared/fixtures/run-configuration/invalid-version.json b/shared/fixtures/run-configuration/invalid-version.json deleted file mode 100644 index cc7a973f3a..0000000000 --- a/shared/fixtures/run-configuration/invalid-version.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 1, - "generated": { "version": 2, "configurations": [] }, - "team": { "version": 1, "configurations": [] }, - "local": { "version": 1, "configurations": [] }, - "expected": { "errorCode": "not_supported" } -} diff --git a/shared/fixtures/run-configuration/maven-module-ownership.json b/shared/fixtures/run-configuration/maven-module-ownership.json deleted file mode 100644 index 23dad637dc..0000000000 --- a/shared/fixtures/run-configuration/maven-module-ownership.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "version": 1, - "files": { - "services/alpha/pom.xml": "4.0.0examplealpha1", - "services/beta/pom.xml": "4.0.0examplebeta1", - "services/alpha/src/main/java/example/Alpha.java": "package example; public class Alpha { public static void main(String[] args) {} }", - "services/beta/src/main/java/example/Beta.java": "package example; public class Beta { public static void main(String[] args) {} }" - }, - "paths": [ - "services/alpha/src/main/java/example/Alpha.java", - "services/beta/src/main/java/example/Beta.java" - ], - "javaEntrypoints": { - "schemaVersion": 1, - "entries": [ - { - "sourcePath": "services/alpha/src/main/java/example/Alpha.java", - "mainClass": "example.Alpha", - "projectName": "alpha" - }, - { - "sourcePath": "services/beta/src/main/java/example/Beta.java", - "mainClass": "example.Beta", - "projectName": "beta" - } - ], - "diagnostics": [] - }, - "local": { - "version": 2, - "configurations": [ - { - "id": "java-main:example.Alpha", - "cwd": ".", - "extensions": { - "maven": { - "reactorPath": "services/beta" - } - } - } - ] - }, - "expected": { - "configurations": [ - { - "id": "java-main:example.Alpha", - "name": "Alpha", - "provider": "java.main", - "execution": "application", - "cwd": ".", - "toolchains": { - "java": "project-jdk", - "maven": "project-maven" - }, - "extensions": { - "maven": { - "module": ".", - "reactorPath": "services/alpha" - } - } - }, - { - "id": "java-main:example.Beta", - "name": "Beta", - "provider": "java.main", - "execution": "application", - "cwd": "services/beta", - "toolchains": { - "java": "project-jdk", - "maven": "project-maven" - }, - "extensions": { - "maven": { - "module": ".", - "reactorPath": "services/beta" - } - } - }, - { - "id": "current-file", - "name": "Current File", - "provider": "java.current-file", - "execution": "application", - "cwd": ".", - "debug": { - "adapter": "jdwp" - } - } - ] - } -} diff --git a/shared/fixtures/run-configuration/multi-module.json b/shared/fixtures/run-configuration/multi-module.json deleted file mode 100644 index d9cc4bbcb7..0000000000 --- a/shared/fixtures/run-configuration/multi-module.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "version": 1, - "generated": { - "version": 1, - "configurations": [ - { - "id": "module:backend", - "name": "backend", - "type": "maven.module", - "module": "backend", - "toolchains": { "java": "project-jdk", "maven": "project-maven" }, - "workingDirectory": ".", - "jvmArguments": [], - "programArguments": [], - "mavenProfiles": [] - }, - { - "id": "module:worker", - "name": "worker", - "type": "maven.module", - "module": "worker", - "toolchains": { "java": "project-jdk", "maven": "project-maven" }, - "workingDirectory": ".", - "jvmArguments": [], - "programArguments": [], - "mavenProfiles": [] - } - ] - }, - "team": { - "version": 1, - "configurations": [{ "id": "module:worker", "mavenProfiles": ["dev"] }] - }, - "local": { - "version": 1, - "configurations": [{ "id": "module:backend", "jvmArguments": ["-Xmx2g"] }] - }, - "expected": { "configurationCount": 2, "selectedId": "module:backend" } -} diff --git a/shared/fixtures/run-configuration/no-entry.json b/shared/fixtures/run-configuration/no-entry.json deleted file mode 100644 index 636fb87f37..0000000000 --- a/shared/fixtures/run-configuration/no-entry.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 1, - "generated": { "version": 1, "configurations": [] }, - "team": { "version": 1, "configurations": [] }, - "local": { "version": 1, "configurations": [] }, - "expected": { "configurationCount": 0, "state": "noEntries" } -} diff --git a/shared/fixtures/run-configuration/project-environment.json b/shared/fixtures/run-configuration/project-environment.json deleted file mode 100644 index bf70b30077..0000000000 --- a/shared/fixtures/run-configuration/project-environment.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "version": 1, - "local": { - "version": 2, - "configurations": [ - { "id": "user:service", "extensions": { "java": { "homePath": "/fixture/service-jdk" } } } - ] - }, - "toolchain": { - "javaHomePath": "/fixture/project-jdk", - "mavenExecutablePath": "/fixture/maven", - "mavenJavaHomePath": "", - "pathOverrides": {} - }, - "expected": { - "toolchain": { - "java": { "homePath": "/fixture/project-jdk" }, - "maven": { "executablePath": "/fixture/maven", "javaHomePath": "" }, - "pathOverrides": {} - } - } -} diff --git a/shared/fixtures/run-configuration/project-toolchain-selection.json b/shared/fixtures/run-configuration/project-toolchain-selection.json deleted file mode 100644 index b3a538c0c2..0000000000 --- a/shared/fixtures/run-configuration/project-toolchain-selection.json +++ /dev/null @@ -1,328 +0,0 @@ -{ - "description": "Read-only canonical Run tool paths for a Provider root; platforms discover executables after shared selection.", - "cases": [ - { - "name": "defaults without generated configurations", - "request": { - "path": ".", - "localDocument": { - "version": 2, - "configurations": [], - "toolchain": { - "java": { - "homePath": " C:/Example JDK " - }, - "maven": { - "executablePath": "C:/Example Maven/bin/mvn.cmd", - "javaHomePath": "C:/Maven JDK" - } - } - } - } - }, - { - "name": "nearest reactor override", - "request": { - "path": "reactor/app", - "localDocument": { - "version": 2, - "configurations": [], - "toolchain": { - "java": { - "homePath": " C:/Example JDK " - }, - "maven": { - "executablePath": "C:/Example Maven/bin/mvn.cmd", - "javaHomePath": "C:/Maven JDK" - }, - "pathOverrides": { - "reactor": { - "mavenExecutablePath": "C:/Reactor Maven/mvn.cmd" - } - } - } - } - } - }, - { - "name": "nearest empty fields inherit project rather than an ancestor", - "request": { - "path": "reactor/app/sub", - "localDocument": { - "version": 2, - "configurations": [], - "toolchain": { - "java": { - "homePath": " C:/Example JDK " - }, - "maven": { - "executablePath": "C:/Example Maven/bin/mvn.cmd", - "javaHomePath": "C:/Maven JDK" - }, - "pathOverrides": { - "reactor": { - "javaHomePath": "C:/Parent JDK" - }, - "reactor/app": { - "mavenExecutablePath": "C:/App Maven/mvn.cmd", - "javaHomePath": "" - } - } - } - } - } - }, - { - "name": "path segments do not match adjacent project names", - "request": { - "path": "reactor/app2", - "localDocument": { - "version": 2, - "configurations": [], - "toolchain": { - "java": { - "homePath": " C:/Example JDK " - }, - "maven": { - "executablePath": "C:/Example Maven/bin/mvn.cmd", - "javaHomePath": "C:/Maven JDK" - }, - "pathOverrides": { - "reactor/app": { - "javaHomePath": "C:/Wrong JDK" - } - } - } - } - } - }, - { - "name": "explicit automatic override inherits project defaults", - "request": { - "path": "reactor", - "localDocument": { - "version": 2, - "configurations": [], - "toolchain": { - "java": { - "homePath": " C:/Example JDK " - }, - "maven": { - "executablePath": "C:/Example Maven/bin/mvn.cmd", - "javaHomePath": "C:/Maven JDK" - }, - "pathOverrides": { - "reactor": {} - } - } - } - } - }, - { - "name": "missing toolchain stays automatic", - "request": { - "path": ".", - "localDocument": { - "version": 2, - "configurations": [] - } - } - }, - { - "name": "escaping owner", - "request": { - "path": "../outside", - "localDocument": { - "version": 2, - "configurations": [], - "toolchain": { - "java": { - "homePath": " C:/Example JDK " - }, - "maven": { - "executablePath": "C:/Example Maven/bin/mvn.cmd", - "javaHomePath": "C:/Maven JDK" - } - } - } - } - }, - { - "name": "noncanonical owner", - "request": { - "path": "reactor\\app", - "localDocument": { - "version": 2, - "configurations": [], - "toolchain": { - "java": { - "homePath": " C:/Example JDK " - }, - "maven": { - "executablePath": "C:/Example Maven/bin/mvn.cmd", - "javaHomePath": "C:/Maven JDK" - } - } - } - } - }, - { - "name": "empty owner", - "request": { - "path": "", - "localDocument": { - "version": 2, - "configurations": [], - "toolchain": { - "java": { - "homePath": " C:/Example JDK " - }, - "maven": { - "executablePath": "C:/Example Maven/bin/mvn.cmd", - "javaHomePath": "C:/Maven JDK" - } - } - } - } - }, - { - "name": "ambiguous owner", - "request": { - "path": "reactor/./app", - "localDocument": { - "version": 2, - "configurations": [], - "toolchain": { - "java": { - "homePath": " C:/Example JDK " - }, - "maven": { - "executablePath": "C:/Example Maven/bin/mvn.cmd", - "javaHomePath": "C:/Maven JDK" - } - } - } - } - }, - { - "name": "unknown document version", - "request": { - "path": ".", - "localDocument": { - "version": 99 - } - } - }, - { - "name": "malformed tool path", - "request": { - "path": ".", - "localDocument": { - "version": 2, - "configurations": [], - "toolchain": { - "java": { - "homePath": 42 - } - } - } - } - }, - { - "name": "malformed override", - "request": { - "path": "app", - "localDocument": { - "version": 2, - "configurations": [], - "toolchain": { - "java": { - "homePath": " C:/Example JDK " - }, - "maven": { - "executablePath": "C:/Example Maven/bin/mvn.cmd", - "javaHomePath": "C:/Maven JDK" - }, - "pathOverrides": { - "app": { - "unknownChoice": "value" - } - } - } - } - } - } - ], - "version": 1, - "expected": { - "defaults without generated configurations": { - "toolchain": { - "javaHomePath": "C:/Example JDK", - "mavenExecutablePath": "C:/Example Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Maven JDK", - "runtimeExecutablePaths": {} - } - }, - "nearest reactor override": { - "toolchain": { - "javaHomePath": "C:/Example JDK", - "mavenExecutablePath": "C:/Reactor Maven/mvn.cmd", - "mavenJavaHomePath": "C:/Maven JDK", - "runtimeExecutablePaths": {} - } - }, - "nearest empty fields inherit project rather than an ancestor": { - "toolchain": { - "javaHomePath": "C:/Example JDK", - "mavenExecutablePath": "C:/App Maven/mvn.cmd", - "mavenJavaHomePath": "C:/Maven JDK", - "runtimeExecutablePaths": {} - } - }, - "path segments do not match adjacent project names": { - "toolchain": { - "javaHomePath": "C:/Example JDK", - "mavenExecutablePath": "C:/Example Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Maven JDK", - "runtimeExecutablePaths": {} - } - }, - "explicit automatic override inherits project defaults": { - "toolchain": { - "javaHomePath": "C:/Example JDK", - "mavenExecutablePath": "C:/Example Maven/bin/mvn.cmd", - "mavenJavaHomePath": "C:/Maven JDK", - "runtimeExecutablePaths": {} - } - }, - "missing toolchain stays automatic": { - "toolchain": { - "javaHomePath": "", - "mavenExecutablePath": "", - "mavenJavaHomePath": "", - "runtimeExecutablePaths": {} - } - }, - "escaping owner": { - "errorCode": "invalid_request" - }, - "noncanonical owner": { - "errorCode": "invalid_request" - }, - "empty owner": { - "errorCode": "invalid_request" - }, - "ambiguous owner": { - "errorCode": "invalid_request" - }, - "unknown document version": { - "errorCode": "not_supported" - }, - "malformed tool path": { - "errorCode": "parse_failed" - }, - "malformed override": { - "errorCode": "invalid_request" - } - } -} diff --git a/shared/fixtures/run-configuration/provider-prepared-java.json b/shared/fixtures/run-configuration/provider-prepared-java.json deleted file mode 100644 index 3a594fc798..0000000000 --- a/shared/fixtures/run-configuration/provider-prepared-java.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "javaLaunch": { - "mainClass": "com.example.MainTests", - "classPaths": [ - "/workspace/target/test-classes" - ], - "modulePaths": [], - "buildPrepared": true - }, - "version": 1, - "expected": { - "arguments": [ - "com.example.MainTests" - ], - "hasPreLaunchSteps": false - } -} diff --git a/shared/fixtures/run-configuration/provider-project-ownership.json b/shared/fixtures/run-configuration/provider-project-ownership.json deleted file mode 100644 index 76f473072e..0000000000 --- a/shared/fixtures/run-configuration/provider-project-ownership.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "version": 1, - "files": { - "alpha/pom.xml": "99", - "alpha/app/pom.xml": "", - "alpha/app/custom-checks/demo/Main.java": "package demo; class Main { public static void main(String[] args) {} }", - "beta/pom.xml": "", - "beta/app/sources/demo/Main.java": "package demo; @org.springframework.boot.autoconfigure.SpringBootApplication class Main { public static void main(String[] args) {} }", - ".java-version": "11", - "alpha/mvnw.cmd": "exit /b 99" - }, - "javaEntrypoints": { - "schemaVersion": 1, - "entries": [ - { - "sourcePath": "alpha/app/custom-checks/demo/Main.java", - "mainClass": "demo.Main", - "projectName": "alpha-app" - }, - { - "sourcePath": "beta/app/sources/demo/Main.java", - "mainClass": "demo.Main", - "projectName": "beta-app" - } - ], - "diagnostics": [] - }, - "projectOwnership": [ - { - "path": "alpha", - "contentRoots": [], - "name": "reactor", - "build": { - "pluginID": "dev.example.engine", - "buildSystemID": "engine", - "root": "alpha", - "projectID": "alpha" - } - }, - { - "path": "alpha/app", - "contentRoots": [ - { - "path": "alpha/app/custom-checks", - "kind": "testSource" - }, - { - "path": "alpha/app/generated-checks", - "kind": "generatedTestSource" - } - ], - "name": "app", - "minimumJavaVersion": "17", - "build": { - "pluginID": "dev.example.engine", - "buildSystemID": "engine", - "root": "alpha", - "projectID": "alpha/app" - } - }, - { - "path": "beta/app", - "contentRoots": [ - { - "path": "beta/app/sources", - "kind": "source" - } - ], - "name": "app", - "minimumJavaVersion": "21", - "build": { - "pluginID": "dev.example.engine", - "buildSystemID": "engine", - "root": "beta", - "projectID": "beta/app" - } - } - ], - "expected": { - "configurations": [ - { - "id": "java-main:demo.Main:alpha/app", - "cwd": "alpha", - "module": "app", - "sourceSet": "test" - }, - { - "id": "java-main:demo.Main:beta/app", - "cwd": "beta", - "module": "app", - "sourceSet": "main" - } - ], - "services": [ - { - "id": "build.provider:41b56f3f0d9046e60aad2d801b216bcc301a0e515dcf749413fbabff07b0ece1", - "cwd": "alpha", - "reference": { - "pluginID": "dev.example.engine", - "buildSystemID": "engine", - "root": "alpha", - "run": "serve", - "projectID": "opaque-project-1", - "targetID": "http/opaque:1", - "execution": "service", - "userArguments": [] - } - }, - { - "id": "build.provider:0d63f34f97ab396280a2b2b3226ad1a539db4d4cc35232c79a6ec4acba568ac2", - "cwd": "beta", - "reference": { - "pluginID": "dev.example.engine", - "buildSystemID": "engine", - "root": "beta", - "run": "serve", - "projectID": "opaque-project-2", - "targetID": "http/opaque:2", - "execution": "service", - "userArguments": [] - } - } - ], - "minimumJavaVersion": "21" - }, - "providerRuns": [ - { - "name": "Application service", - "reference": { - "pluginID": "dev.example.engine", - "buildSystemID": "engine", - "root": "alpha", - "run": "serve", - "projectID": "opaque-project-1", - "targetID": "http/opaque:1", - "execution": "service", - "userArguments": [] - }, - "projectPath": "alpha/app" - }, - { - "name": "Application service", - "reference": { - "pluginID": "dev.example.engine", - "buildSystemID": "engine", - "root": "beta", - "run": "serve", - "projectID": "opaque-project-2", - "targetID": "http/opaque:2", - "execution": "service", - "userArguments": [] - }, - "projectPath": "beta/app" - } - ] -} diff --git a/shared/fixtures/run-configuration/single-module.json b/shared/fixtures/run-configuration/single-module.json deleted file mode 100644 index 94f6fbd154..0000000000 --- a/shared/fixtures/run-configuration/single-module.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "version": 1, - "generated": { - "version": 1, - "configurations": [ - { - "id": "spring:com.example.App", - "name": "App", - "type": "spring-boot.maven", - "module": ".", - "mainClass": "com.example.App", - "toolchains": { "java": "project-jdk", "maven": "project-maven" }, - "workingDirectory": ".", - "jvmArguments": [], - "programArguments": [], - "mavenProfiles": [] - } - ] - }, - "team": { "version": 1, "configurations": [] }, - "local": { "version": 1, "configurations": [] }, - "expected": { "configurationCount": 1, "selectedId": "spring:com.example.App" } -} diff --git a/shared/fixtures/run-configuration/subproject-toolchains.json b/shared/fixtures/run-configuration/subproject-toolchains.json deleted file mode 100644 index 03e1077399..0000000000 --- a/shared/fixtures/run-configuration/subproject-toolchains.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "version": 1, - "toolchain": { - "javaHomePath": "/fixture/project-jdk", - "pathOverrides": { - "services/a": { - "javaHomePath": "/fixture/a-jdk", - "mavenExecutablePath": "/fixture/a maven/bin/mvn", - "mavenJavaHomePath": "" - }, - "services/b": { - "javaHomePath": "", - "mavenExecutablePath": "./mvnw", - "mavenJavaHomePath": "/fixture/b-maven-jdk" - } - } - }, - "invalidRoots": [ - "", - ".", - "..", - "../outside", - "/absolute", - "a/../b", - "a/./b", - "a//b", - "a/", - "C:/absolute", - "a\\b" - ], - "expected": { - "pathOverrides": { - "services/a": { - "javaHomePath": "/fixture/a-jdk", - "mavenExecutablePath": "/fixture/a maven/bin/mvn", - "mavenJavaHomePath": "" - }, - "services/b": { - "javaHomePath": "", - "mavenExecutablePath": "./mvnw", - "mavenJavaHomePath": "/fixture/b-maven-jdk" - } - } - } -} diff --git a/shared/fixtures/run-configuration/title-action-v1.json b/shared/fixtures/run-configuration/title-action-v1.json deleted file mode 100644 index 7781b2cb45..0000000000 --- a/shared/fixtures/run-configuration/title-action-v1.json +++ /dev/null @@ -1,217 +0,0 @@ -{ - "version": 1, - "expected": { "providerNeutral": true, "failedModelLoadsAgainOnlyOnPress": true }, - "description": "runConfig.decideTitleAction: what a press on the title bar's Run or Debug button does, from the facts the host reports. The host keeps a press answered wait or loadModel and asks again with trigger settled once the configurations or the model arrive.", - "cases": [ - { - "name": "current file chosen acts at once, even before the configurations are read", - "request": { - "action": "debug", - "trigger": "press", - "currentFileChosen": true, - "settled": false - }, - "expected": { - "kind": "currentFile" - } - }, - { - "name": "a press before the configurations are read waits", - "request": { - "action": "run", - "trigger": "press", - "currentFileChosen": false, - "settled": false, - "configuration": { - "kind": "modelLoaded", - "debuggable": true - } - }, - "expected": { - "kind": "wait" - } - }, - { - "name": "an answer that leaves the configurations unread keeps waiting", - "request": { - "action": "run", - "trigger": "settled", - "currentFileChosen": false, - "settled": false - }, - "expected": { - "kind": "wait" - } - }, - { - "name": "a project without configurations acts on the current file", - "request": { - "action": "run", - "trigger": "press", - "currentFileChosen": false, - "settled": true - }, - "expected": { - "kind": "currentFile" - } - }, - { - "name": "a configuration that does not start through a build provider", - "request": { - "action": "run", - "trigger": "press", - "currentFileChosen": false, - "settled": true, - "configuration": { - "kind": "unsupported" - } - }, - "expected": { - "kind": "unsupported" - } - }, - { - "name": "an undetected build instance", - "request": { - "action": "run", - "trigger": "press", - "currentFileChosen": false, - "settled": true, - "configuration": { - "kind": "instanceMissing" - } - }, - "expected": { - "kind": "targetMissing" - } - }, - { - "name": "an unloaded model is loaded first", - "request": { - "action": "run", - "trigger": "press", - "currentFileChosen": false, - "settled": true, - "configuration": { - "kind": "modelNotLoaded", - "failed": false - } - }, - "expected": { - "kind": "loadModel" - } - }, - { - "name": "a press loads a model that failed before once more", - "request": { - "action": "run", - "trigger": "press", - "currentFileChosen": false, - "settled": true, - "configuration": { - "kind": "modelNotLoaded", - "failed": true - } - }, - "expected": { - "kind": "loadModel" - } - }, - { - "name": "a model that fails again ends the waiting press", - "request": { - "action": "run", - "trigger": "settled", - "currentFileChosen": false, - "settled": true, - "configuration": { - "kind": "modelNotLoaded", - "failed": true - } - }, - "expected": { - "kind": "modelFailed" - } - }, - { - "name": "a model that has not loaded yet after an answer is loaded", - "request": { - "action": "run", - "trigger": "settled", - "currentFileChosen": false, - "settled": true, - "configuration": { - "kind": "modelNotLoaded", - "failed": false - } - }, - "expected": { - "kind": "loadModel" - } - }, - { - "name": "run with a loaded model", - "request": { - "action": "run", - "trigger": "press", - "currentFileChosen": false, - "settled": true, - "configuration": { - "kind": "modelLoaded", - "debuggable": false - } - }, - "expected": { - "kind": "run" - } - }, - { - "name": "run once the waited model arrives", - "request": { - "action": "run", - "trigger": "settled", - "currentFileChosen": false, - "settled": true, - "configuration": { - "kind": "modelLoaded", - "debuggable": true - } - }, - "expected": { - "kind": "run" - } - }, - { - "name": "debug a run that declares a debug adapter", - "request": { - "action": "debug", - "trigger": "press", - "currentFileChosen": false, - "settled": true, - "configuration": { - "kind": "modelLoaded", - "debuggable": true - } - }, - "expected": { - "kind": "debug" - } - }, - { - "name": "debug a run that declares no debug adapter", - "request": { - "action": "debug", - "trigger": "press", - "currentFileChosen": false, - "settled": true, - "configuration": { - "kind": "modelLoaded", - "debuggable": false - } - }, - "expected": { - "kind": "notDebuggable" - } - } - ] -} diff --git a/shared/fixtures/run-configuration/toolchain-mismatch.json b/shared/fixtures/run-configuration/toolchain-mismatch.json deleted file mode 100644 index 15a29a3bc8..0000000000 --- a/shared/fixtures/run-configuration/toolchain-mismatch.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": 1, - "requirements": { - "version": 1, - "toolchains": { - "project-jdk": { "type": "java", "minimumVersion": "21", "preferredVendor": "temurin" } - } - }, - "candidates": [ - { "id": "project-jdk", "type": "java", "version": "17.0.12", "vendor": "Zulu" } - ], - "expected": { - "diagnosticCodes": ["toolchainVersionMismatch", "toolchainVendorMismatch"] - } -} diff --git a/shared/fixtures/search/actions-v1.json b/shared/fixtures/search/actions-v1.json deleted file mode 100644 index c93e039363..0000000000 --- a/shared/fixtures/search/actions-v1.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "query": "切换终端", - "candidates": [ - {"texts": ["Toggle Terminal", "切换终端", "显示或隐藏终端工具窗口", "Window", "窗口"]}, - {"texts": ["Toggle Run", "切换运行"]} - ], - "indices": [0] - }, - { - "query": " TOG term ", - "candidates": [{"texts": ["Toggle Terminal", "切换终端"]}], - "indices": [0] - }, - { - "query": "显示终端", - "candidates": [{"texts": ["Toggle Terminal", "切换终端", "显示或隐藏终端工具窗口"]}], - "indices": [0] - }, - { - "query": "RUN", - "candidates": [{"texts": ["Run"]}, {"texts": ["Rerun"]}, {"texts": ["Terminal"]}], - "indices": [0, 1] - }, - { - "query": " \t", - "candidates": [{"texts": ["Run"]}, {"texts": ["Terminal"]}], - "indices": [0, 1] - }, - { - "query": "设置", - "candidates": [{"texts": ["Settings", "插件原文 Settings", "Window", "窗口"]}], - "indices": [] - }, - { - "query": "é🦀", - "candidates": [{"texts": ["É Rust 🦀"]}, {"texts": ["é Rust 🦀"]}], - "indices": [0, 1] - } - ] -} diff --git a/shared/fixtures/search/advanced.json b/shared/fixtures/search/advanced.json deleted file mode 100644 index e2782d4445..0000000000 --- a/shared/fixtures/search/advanced.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "advanced-search-and-replacement", - "workspace": "fixture-project", - "files": [ - { - "path": "src/main/java/com/example/UserService.java", - "content": "class UserService {\n void loadUser() {}\n}\n" - } - ], - "searchEverywhere": { - "request": { - "query": "UserService", - "caseSensitive": true, - "wholeWords": true, - "regularExpression": false - }, - "expectedKinds": ["file", "type", "content"] - }, - "replacementPreview": { - "request": { - "query": "load", - "replacement": "fetch", - "caseSensitive": false, - "wholeWords": false, - "regularExpression": false, - "paths": ["src/main/java/com/example/UserService.java"] - }, - "expected": { - "path": "src/main/java/com/example/UserService.java", - "line": 2, - "before": " void loadUser() {}", - "after": " void fetchUser() {}", - "occurrenceCount": 1, - "replacementText": "class UserService {\n void fetchUser() {}\n}\n" - } - } -} diff --git a/shared/fixtures/search/basic.json b/shared/fixtures/search/basic.json deleted file mode 100644 index 18b14f4f57..0000000000 --- a/shared/fixtures/search/basic.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "name": "basic-search", - "workspace": "fixture-project", - "files": [ - { - "path": "src/main/java/com/example/UserService.java", - "content": "class UserService {\n void loadUser() {}\n}\n" - }, - { - "path": "src/main/java/com/example/OrderService.java", - "content": "class OrderService {\n void loadOrder() {}\n}\n" - }, - { - "path": "README.md", - "content": "Search fixtures are shared by both platform implementations.\n" - }, - { - "path": ".worktree/feature/src/main/java/com/example/UserService.java", - "content": "class UserService {\n void loadUser() {}\n}\n" - } - ], - "cases": [ - { - "name": "case-insensitive-content", - "request": { - "query": "userservice", - "caseSensitive": false, - "wholeWords": false, - "regularExpression": false - }, - "expected": [ - { - "kind": "file", - "path": "src/main/java/com/example/UserService.java", - "line": null, - "preview": "src/main/java/com/example/UserService.java" - }, - { - "kind": "content", - "path": "src/main/java/com/example/UserService.java", - "line": 1, - "preview": "class UserService {" - } - ] - }, - { - "name": "whole-word-content", - "request": { - "query": "load", - "caseSensitive": false, - "wholeWords": true, - "regularExpression": false - }, - "expected": [] - }, - { - "name": "file-name-match", - "request": { - "query": "README", - "caseSensitive": true, - "wholeWords": false, - "regularExpression": false - }, - "expected": [ - { - "kind": "file", - "path": "README.md", - "line": null, - "preview": "README.md" - } - ] - } - ] -} diff --git a/shared/fixtures/search/exclusions.json b/shared/fixtures/search/exclusions.json deleted file mode 100644 index 67df8f7c37..0000000000 --- a/shared/fixtures/search/exclusions.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "hiddenFilePatterns": [ - "cache/", - "**/.*/", - ".*/", - "*.log", - "generated/*", - "docs/**", - "notes", - "**/tmp/", - "**/secret.txt" - ], - "cases": [ - { - "path": "cache", - "isDirectory": true, - "hidden": true - }, - { - "path": "cache/deep/Name.swift", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/cache", - "isDirectory": true, - "hidden": false - }, - { - "path": "src/cache/Name.swift", - "isDirectory": false, - "hidden": false - }, - { - "path": ".cache", - "isDirectory": true, - "hidden": true - }, - { - "path": "src/.cache", - "isDirectory": true, - "hidden": true - }, - { - "path": "src/.cache/deep/Name.swift", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/Name.log", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/Name.log", - "isDirectory": true, - "hidden": false - }, - { - "path": "src/.env", - "isDirectory": false, - "hidden": false - }, - { - "path": "src/Name.swift", - "isDirectory": false, - "hidden": false - }, - { - "path": "generated", - "isDirectory": true, - "hidden": true - }, - { - "path": "generated/Name.swift", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/generated", - "isDirectory": true, - "hidden": false - }, - { - "path": "src/generated/Name.swift", - "isDirectory": false, - "hidden": false - }, - { - "path": "generated", - "isDirectory": false, - "hidden": false - }, - { - "path": "docs", - "isDirectory": true, - "hidden": true - }, - { - "path": "docs/api/index.html", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/docs", - "isDirectory": true, - "hidden": false - }, - { - "path": "notes", - "isDirectory": false, - "hidden": true - }, - { - "path": "notes", - "isDirectory": true, - "hidden": false - }, - { - "path": "notes/todo.md", - "isDirectory": false, - "hidden": false - }, - { - "path": "tmp", - "isDirectory": true, - "hidden": true - }, - { - "path": "a/b/tmp", - "isDirectory": true, - "hidden": true - }, - { - "path": "a/b/tmp/x.txt", - "isDirectory": false, - "hidden": true - }, - { - "path": "a/tmp.txt", - "isDirectory": false, - "hidden": false - }, - { - "path": "secret.txt", - "isDirectory": false, - "hidden": true - }, - { - "path": "config/secret.txt", - "isDirectory": false, - "hidden": true - }, - { - "path": "config/secret.txt.bak", - "isDirectory": false, - "hidden": false - }, - { - "path": "secret.txt", - "isDirectory": true, - "hidden": false - } - ] -} diff --git a/shared/fixtures/search/name-matching.json b/shared/fixtures/search/name-matching.json deleted file mode 100644 index 8a8102a76c..0000000000 --- a/shared/fixtures/search/name-matching.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "query": "name", - "cases": [ - { "path": ".build/checkouts/Name.swift", "ranges": [{ "start": 0, "length": 4 }] }, - { "path": "rust/target/debug/build/named_entities.rs", "ranges": [{ "start": 0, "length": 4 }] }, - { "path": "src/NativeMenu.ts", "ranges": [{ "start": 0, "length": 2 }, { "start": 6, "length": 2 }] }, - { "path": "src/navigation-menu.tsx", "ranges": [{ "start": 0, "length": 2 }, { "start": 11, "length": 2 }] }, - { "path": "src/native-menu-accelerators.ts", "ranges": [{ "start": 0, "length": 2 }, { "start": 7, "length": 2 }] }, - { "path": "src/\ud83d\ude00Name.swift", "ranges": [{ "start": 2, "length": 4 }] } - ] -} diff --git a/shared/fixtures/search/path-fallback.json b/shared/fixtures/search/path-fallback.json deleted file mode 100644 index 65ebda141f..0000000000 --- a/shared/fixtures/search/path-fallback.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "files": ["src/Foo.swift", "src/Bar.swift", "src.swift", "other/Foo.swift"], - "cases": [ - {"query": "src", "paths": ["src.swift", "src/Bar.swift", "src/Foo.swift"], "basenameFirst": "src.swift"}, - {"query": "Foo", "paths": ["other/Foo.swift", "src/Foo.swift"]}, - {"query": "src/Foo", "paths": ["src/Foo.swift"]} - ] -} diff --git a/shared/fixtures/search/rank-names-v1.json b/shared/fixtures/search/rank-names-v1.json deleted file mode 100644 index 21f17b1ecd..0000000000 --- a/shared/fixtures/search/rank-names-v1.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "version": 1, - "description": "workspace.rankNames cases. Hosts that list candidates themselves (Windows remote and WSL roots, symbol and navigator lists) send names, the query and explicit context, and receive indices into the request with Core's degree, tier and UTF-16 name ranges. Degrees come from the matcher behind workspace.searchEverywhere; the old Windows fuzzyScore found neither the camel-hump query 'DH' nor ranked it above plain substrings.", - "cases": [ - { - "id": "camel-hump-initials-find-the-class-file", - "request": { - "query": "DH", - "candidates": [ - {"name": "PadController.java", "path": "src/PadController.java"}, - {"name": "DeviceHandler.java", "path": "src/DeviceHandler.java"} - ] - }, - "expected": [ - {"index": 1, "tier": "other", "ranges": [{"start": 0, "length": 1}, {"start": 6, "length": 1}]} - ] - }, - { - "id": "exact-beats-prefix-beats-substring", - "request": { - "query": "DeviceHandler", - "candidates": [ - {"name": "AbstractDeviceHandlerBase.java", "path": "src/AbstractDeviceHandlerBase.java"}, - {"name": "DeviceHandlerFactory.java", "path": "src/DeviceHandlerFactory.java"}, - {"name": "DeviceHandler.java", "path": "src/DeviceHandler.java"}, - {"name": "PadController.java", "path": "src/PadController.java"} - ] - }, - "expected": [ - {"index": 2, "tier": "other", "ranges": [{"start": 0, "length": 13}]}, - {"index": 1, "tier": "other", "ranges": [{"start": 0, "length": 13}]}, - {"index": 0, "tier": "other", "ranges": [{"start": 8, "length": 13}]} - ] - }, - { - "id": "name-match-beats-path-only-match", - "request": { - "query": "handler", - "candidates": [ - {"name": "Pad.java", "path": "handler/Pad.java"}, - {"name": "Handler.java", "path": "Handler.java"} - ] - }, - "expected": [ - {"index": 1, "tier": "other", "ranges": [{"start": 0, "length": 7}]}, - {"index": 0, "tier": "other", "ranges": []} - ] - }, - { - "id": "open-then-recent-break-ties-and-limits-apply-per-tier", - "request": { - "query": "util", - "candidates": [ - {"name": "util.ts", "path": "a/util.ts"}, - {"name": "util.ts", "path": "b/util.ts"}, - {"name": "util.ts", "path": "c/util.ts"}, - {"name": "util.ts", "path": "d/util.ts"} - ], - "context": {"openPaths": ["d/util.ts"], "recentPaths": ["c/util.ts", "b/util.ts"]}, - "limitPerTier": 1 - }, - "expected": [ - {"index": 3, "tier": "open", "ranges": [{"start": 0, "length": 4}]}, - {"index": 2, "tier": "recent", "ranges": [{"start": 0, "length": 4}]}, - {"index": 0, "tier": "other", "ranges": [{"start": 0, "length": 4}]} - ] - }, - { - "id": "blank-query-matches-nothing", - "request": {"query": " ", "candidates": [{"name": "a.ts"}]}, - "expected": [] - } - ] -} diff --git a/shared/fixtures/search/search-everywhere-context-v1.json b/shared/fixtures/search/search-everywhere-context-v1.json deleted file mode 100644 index bee8e45984..0000000000 --- a/shared/fixtures/search/search-everywhere-context-v1.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "version": 1, - "description": "workspace.searchEverywhere file-name results with the optional context { openPaths, recentPaths }. Paths are relative to the request root with '/' separators. Context only breaks ties between equal name matches (open first, then recent by recency); without it the order is unchanged. The ranking code is shared with workspace.rankNames.", - "cases": [ - { - "id": "without-context-ties-keep-path-order", - "files": ["a/util.ts", "b/util.ts", "c/util.ts", "d/util.ts"], - "query": "util", - "expectedPaths": ["a/util.ts", "b/util.ts", "c/util.ts", "d/util.ts"] - }, - { - "id": "open-then-recent-by-recency-break-ties", - "files": ["a/util.ts", "b/util.ts", "c/util.ts", "d/util.ts"], - "query": "util", - "context": {"openPaths": ["d/util.ts"], "recentPaths": ["c/util.ts", "b/util.ts"]}, - "expectedPaths": ["d/util.ts", "c/util.ts", "b/util.ts", "a/util.ts"] - }, - { - "id": "context-never-outranks-a-better-name-match", - "files": ["x/UtilityBelt.ts", "z/util.ts"], - "query": "util", - "context": {"openPaths": ["x/UtilityBelt.ts"], "recentPaths": []}, - "expectedPaths": ["z/util.ts", "x/UtilityBelt.ts"] - } - ] -} diff --git a/shared/fixtures/search/text-snapshot-v1.json b/shared/fixtures/search/text-snapshot-v1.json deleted file mode 100644 index 9b7775e6d9..0000000000 --- a/shared/fixtures/search/text-snapshot-v1.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "cases": [ - { - "name": "replace whole words in a captured snapshot", - "command": "workspace.replaceText", - "payload": { - "text": "$foo foo\nfoo!", - "query": "foo", - "replacement": "bar", - "wholeWords": true - }, - "expected": { - "text": "$foo bar\nbar!", - "count": 2 - } - }, - { - "name": "replace from a one-based UTF-16 position", - "command": "workspace.replaceText", - "payload": { - "text": "😀 foo foo", - "query": "foo", - "replacement": "bar", - "from": { - "line": 1, - "column": 9 - } - }, - "expected": { - "text": "😀 foo bar", - "count": 1 - } - }, - { - "name": "search a provider snapshot with context and UTF-16 ranges", - "command": "workspace.searchTextBatch", - "payload": { - "query": "foo", - "wholeWords": true, - "contextLines": 1, - "files": [ - { - "path": "wsl://fixture/a", - "text": "before\n😀 $foo foo\nafter" - } - ] - }, - "expected": { - "files": [ - { - "path": "wsl://fixture/a", - "matches": [ - { - "line": 2, - "lineText": "😀 $foo foo", - "ranges": [ - { - "start": 8, - "length": 3 - } - ], - "contextBefore": [ - "before" - ], - "contextAfter": [ - "after" - ] - } - ] - } - ] - } - } - ], - "filteredPage": { - "command": "workspace.searchEverywhere", - "payload": { - "query": "needle", - "pageSize": 1, - "resultKinds": [ - "content" - ], - "includePathPatterns": [ - "keep" - ], - "excludePathPatterns": [ - "skip" - ], - "pathFilterPrefix": "module", - "includeContentRanges": true - }, - "expected": { - "firstPath": "b-keep.txt", - "nextPath": "c-keep.txt", - "sourceLine": " 😀needle", - "contentMatchRanges": [ - { - "start": 4, - "length": 6 - } - ] - } - } -} diff --git a/shared/fixtures/search/unicode-contiguous.json b/shared/fixtures/search/unicode-contiguous.json deleted file mode 100644 index 4bf6956a23..0000000000 --- a/shared/fixtures/search/unicode-contiguous.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "cases": [ - { - "path": "src/\u0130.txt", - "query": "i", - "ranges": [ - { - "start": 0, - "length": 1 - } - ] - }, - { - "path": "src/\u0130.txt", - "query": "i\u0307", - "ranges": [ - { - "start": 0, - "length": 1 - } - ] - }, - { - "path": "src/\u0130.txt", - "query": "\u0307", - "ranges": [ - { - "start": 0, - "length": 1 - } - ] - }, - { - "path": "src/\ud83d\ude00\u0130x.txt", - "query": "i\u0307x", - "ranges": [ - { - "start": 2, - "length": 2 - } - ] - }, - { - "path": "src/\u039f\u03a3", - "query": "\u03bf\u03c2", - "ranges": [ - { - "start": 0, - "length": 2 - } - ] - } - ] -} diff --git a/shared/fixtures/settings/workbench-background-v1.json b/shared/fixtures/settings/workbench-background-v1.json deleted file mode 100644 index 3615656f46..0000000000 --- a/shared/fixtures/settings/workbench-background-v1.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "version": 1, - "source": { - "kind": "bundled", - "bundledSlot": "03" - }, - "opacity": 0.42 -} diff --git a/shared/fixtures/spring/basic.json b/shared/fixtures/spring/basic.json deleted file mode 100644 index 1d5c134c3a..0000000000 --- a/shared/fixtures/spring/basic.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "Spring workspace semantic index", - "request": { - "command": "spring.index", - "payload": { - "root": "/fixture/workspace", - "paths": [ - "src/main/java/example/DemoProperties.java", - "src/main/java/example/GreetingController.java", - "src/main/resources/application-dev.yml" - ], - "metadataRepositories": [ - "/fixture/gradle-repository", - "/fixture/maven-repository" - ], - "refreshDependencyMetadata": true, - "textOverrides": { - "src/main/resources/application-dev.yml": "demo:\n enabled: true\n" - } - } - }, - "expected": { - "property": { - "name": "demo.enabled", - "sourcePath": "src/main/java/example/DemoProperties.java", - "sourceLine": 5 - }, - "value": { - "path": "src/main/resources/application-dev.yml", - "profile": "dev", - "overridesBaseValue": false - }, - "propertyReference": { - "key": "demo.enabled" - }, - "injection": { - "typeName": "GreetingService", - "qualifier": "primaryGreeting" - }, - "endpoint": { - "httpMethods": ["GET"], - "route": "/api/greeting" - } - } -} diff --git a/shared/fixtures/terminal/link-target-v1.json b/shared/fixtures/terminal/link-target-v1.json deleted file mode 100644 index ccf9e992ad..0000000000 --- a/shared/fixtures/terminal/link-target-v1.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "relative-path-with-line-and-column", - "request": { "texts": ["Sources/App.swift:12:4", "src/lib.rs:7", "./a/../b.txt"], "baseDirectory": "/work/project" }, - "expected": [ - { "kind": "file", "path": "/work/project/Sources/App.swift", "line": 12, "column": 4, "explicit": true }, - { "kind": "file", "path": "/work/project/src/lib.rs", "line": 7, "column": null, "explicit": true }, - { "kind": "file", "path": "/work/project/b.txt", "line": null, "column": null, "explicit": true } - ] - }, - { - "name": "extension-is-never-inspected", - "request": { "texts": ["Makefile", "build/output", "LICENSE:3", "notes.zzz"], "baseDirectory": "/work/project" }, - "expected": [ - { "kind": "file", "path": "/work/project/Makefile", "line": null, "column": null, "explicit": false }, - { "kind": "file", "path": "/work/project/build/output", "line": null, "column": null, "explicit": true }, - { "kind": "file", "path": "/work/project/LICENSE", "line": 3, "column": null, "explicit": true }, - { "kind": "file", "path": "/work/project/notes.zzz", "line": null, "column": null, "explicit": false } - ] - }, - { - "name": "file-uri-is-decoded", - "request": { "texts": ["file:///Users/me/My%20Project/a%C3%A9.rs:9", "file://localhost/tmp/x.txt", "file:///C:/Users/me/a%20b.rs:3:1", "file:///tmp/%zz"], "baseDirectory": "/work" }, - "expected": [ - { "kind": "file", "path": "/Users/me/My Project/aé.rs", "line": 9, "column": null, "explicit": true }, - { "kind": "file", "path": "/tmp/x.txt", "line": null, "column": null, "explicit": true }, - { "kind": "file", "path": "C:\\Users\\me\\a b.rs", "line": 3, "column": 1, "explicit": true }, - null - ] - }, - { - "name": "web-urls-are-external-and-scheme-lookalikes-are-paths", - "request": { "texts": ["https://example.com/docs", "mailto:a@b.c", "App.swift:12"], "baseDirectory": "/work" }, - "expected": [ - { "kind": "external", "url": "https://example.com/docs" }, - { "kind": "external", "url": "mailto:a@b.c" }, - { "kind": "file", "path": "/work/App.swift", "line": 12, "column": null, "explicit": true } - ] - }, - { - "name": "tilde-needs-a-home-directory", - "request": { "texts": ["~/notes/todo.md:2", "~"], "baseDirectory": "/work", "homeDirectory": "/Users/me" }, - "expected": [ - { "kind": "file", "path": "/Users/me/notes/todo.md", "line": 2, "column": null, "explicit": true }, - { "kind": "file", "path": "/Users/me", "line": null, "column": null, "explicit": true } - ] - }, - { - "name": "tilde-without-home-and-relative-without-base-are-rejected", - "request": { "texts": ["~/a.txt", "src/a.txt", "/abs/a.txt:5"] }, - "expected": [ - null, - null, - { "kind": "file", "path": "/abs/a.txt", "line": 5, "column": null, "explicit": true } - ] - }, - { - "name": "windows-paths-keep-drive-and-separator-style", - "request": { "texts": ["src\\main.rs:10:2", "..\\other\\a.rs", "D:\\x\\y.txt:4", "\\\\srv\\share\\f.txt"], "baseDirectory": "C:\\work\\project" }, - "expected": [ - { "kind": "file", "path": "C:\\work\\project\\src\\main.rs", "line": 10, "column": 2, "explicit": true }, - { "kind": "file", "path": "C:\\work\\other\\a.rs", "line": null, "column": null, "explicit": true }, - { "kind": "file", "path": "D:\\x\\y.txt", "line": 4, "column": null, "explicit": true }, - { "kind": "file", "path": "\\\\srv\\share\\f.txt", "line": null, "column": null, "explicit": true } - ] - }, - { - "name": "provider-workspace-keeps-paths-inside-the-provider", - "request": { "texts": ["src/a.rs:3", "/etc/hosts", "wsl://Ubuntu/home/me/b.rs:1", "../c.rs"], "baseDirectory": "remote://conn1/home/me/app", "providerSchemes": ["remote", "wsl"] }, - "expected": [ - { "kind": "file", "path": "remote://conn1/home/me/app/src/a.rs", "line": 3, "column": null, "explicit": true }, - { "kind": "file", "path": "remote://conn1/etc/hosts", "line": null, "column": null, "explicit": true }, - { "kind": "file", "path": "wsl://Ubuntu/home/me/b.rs", "line": 1, "column": null, "explicit": true }, - { "kind": "file", "path": "remote://conn1/home/me/c.rs", "line": null, "column": null, "explicit": true } - ] - }, - { - "name": "empty-and-zero-location-texts", - "request": { "texts": ["", " ", "a.rs:0"], "baseDirectory": "/work" }, - "expected": [ - null, - null, - { "kind": "file", "path": "/work/a.rs:0", "line": null, "column": null, "explicit": false } - ] - } - ] -} diff --git a/shared/fixtures/terminal/shell-selection-v1.json b/shared/fixtures/terminal/shell-selection-v1.json deleted file mode 100644 index f51f8d3cd4..0000000000 --- a/shared/fixtures/terminal/shell-selection-v1.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "version": 1, - "cases": [ - { - "name": "create-with-another-shell", - "existingSessionShell": "shell-a", - "defaultShell": "shell-a", - "selectedShell": "shell-b", - "expected": { - "newSessionShell": "shell-b", - "newSessionIsActive": true, - "existingSessionIsRunning": true, - "defaultShell": "shell-a" - } - }, - { - "name": "change-default", - "existingSessionShell": "shell-a", - "selectedDefaultShell": "shell-b", - "expected": { - "existingSessionShell": "shell-a", - "existingSessionIsRunning": true, - "nextSessionShell": "shell-b" - } - }, - { - "name": "refresh-does-not-reset-preferences", - "defaultShell": "shell-b", - "detectedShells": ["shell-a"], - "expected": { - "defaultShell": "shell-b", - "sessionsCreated": 0, - "sessionsRestarted": 0 - } - } - ] -} diff --git a/shared/fixtures/toolchain-pin-edit.json b/shared/fixtures/toolchain-pin-edit.json deleted file mode 100644 index 598e42e7db..0000000000 --- a/shared/fixtures/toolchain-pin-edit.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "request": { - "document": { - "version": 1, - "toolchains": { - "legacy": { - "home": "legacy home" - } - }, - "pins": { - ".": { - "java": { - "home": "/fixture/java", - "version": "21", - "provider": "host:manual" - } - } - } - }, - "directory": "apps/web", - "edits": [ - { - "tool": "node", - "pin": { - "home": "/fixture/node", - "version": "22", - "provider": "host:manual" - } - } - ] - }, - "document": { - "version": 1, - "toolchains": { - "legacy": { - "home": "legacy home" - } - }, - "pins": { - ".": { - "java": { - "home": "/fixture/java", - "version": "21", - "provider": "host:manual" - } - }, - "apps/web": { - "node": { - "home": "/fixture/node", - "version": "22", - "provider": "host:manual" - } - } - } - } -} diff --git a/shared/fixtures/toolchain-pin-storage.json b/shared/fixtures/toolchain-pin-storage.json deleted file mode 100644 index 86f9a88483..0000000000 --- a/shared/fixtures/toolchain-pin-storage.json +++ /dev/null @@ -1,450 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { - "name": "storage-plan", - "command": "toolchains.pinStoragePlan", - "input": {}, - "expected": { - "status": "ok", - "storage": { - "documentRelativePath": ".lithe/toolchains/local.json", - "ignoreRelativePath": ".lithe/.gitignore", - "maximumDocumentBytes": 1048576, - "maximumIgnoreBytes": 65536 - } - } - }, - { - "name": "storage-plan-refuses-unknown-input", - "command": "toolchains.pinStoragePlan", - "input": { - "unexpected": true - }, - "error": "plugin.toolchain.invalidParams" - }, - { - "name": "absent-source-default", - "command": "toolchains.decodePinDocument", - "input": { - "document": null - }, - "expected": { - "status": "ok", - "document": { - "version": 1, - "toolchains": {} - } - } - }, - { - "name": "empty-existing", - "command": "toolchains.decodePinDocument", - "input": { - "document": "" - }, - "error": "plugin.toolchain.invalidDocument" - }, - { - "name": "malformed", - "command": "toolchains.decodePinDocument", - "input": { - "document": "{" - }, - "error": "plugin.toolchain.invalidDocument" - }, - { - "name": "duplicate-root", - "command": "toolchains.decodePinDocument", - "input": { - "document": "{\"version\":1,\"toolchains\":{},\"version\":1}" - }, - "error": "plugin.toolchain.invalidDocument" - }, - { - "name": "duplicate-escaped-nested", - "command": "toolchains.decodePinDocument", - "input": { - "document": "{\"version\":1,\"toolchains\":{\"old\":{\"home\":\"/a\",\"h\\u006fme\":\"/b\"}}}" - }, - "error": "plugin.toolchain.invalidDocument" - }, - { - "name": "unknown-root-field", - "command": "toolchains.decodePinDocument", - "input": { - "document": "{\"version\":1,\"toolchains\":{},\"extra\":true}" - }, - "error": "plugin.toolchain.invalidDocument" - }, - { - "name": "non-string-source", - "command": "toolchains.decodePinDocument", - "input": { - "document": {} - }, - "error": "plugin.toolchain.invalidParams" - }, - { - "name": "missing-source-field", - "command": "toolchains.decodePinDocument", - "input": {}, - "error": "plugin.toolchain.invalidParams" - }, - { - "name": "complete-dormant-document", - "command": "toolchains.decodePinDocument", - "input": { - "document": "{\"pins\":{\"nested\":{\"dev.example:compiler\":{\"home\":\"/fixture/tool\",\"provider\":\"host:system\",\"version\":\"1.0\"}}},\"toolchains\":{\"legacy\":{\"home\":\"/fixture/legacy\"}},\"version\":1}" - }, - "expected": { - "status": "ok", - "document": { - "version": 1, - "toolchains": { - "legacy": { - "home": "/fixture/legacy" - } - }, - "pins": { - "nested": { - "dev.example:compiler": { - "home": "/fixture/tool", - "version": "1.0", - "provider": "host:system" - } - } - } - } - } - }, - { - "name": "absent-reset-writes-nothing", - "command": "toolchains.editPinSources", - "input": { - "document": null, - "ignoreDocument": null, - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": null - } - ] - }, - "expected": { - "status": "ok", - "edit": { - "document": null, - "documentChanged": false, - "ignoreDocument": null, - "ignoreChanged": false - } - } - }, - { - "name": "existing-unchanged-preserves-bytes", - "command": "toolchains.editPinSources", - "input": { - "document": "{ \"version\": 1, \"toolchains\": {} }\n", - "ignoreDocument": "# user notes\n", - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": null - } - ] - }, - "expected": { - "status": "ok", - "edit": { - "document": "{ \"version\": 1, \"toolchains\": {} }\n", - "documentChanged": false, - "ignoreDocument": "# user notes\n", - "ignoreChanged": false - } - } - }, - { - "name": "new-pin-and-ignore", - "command": "toolchains.editPinSources", - "input": { - "document": null, - "ignoreDocument": null, - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": { - "home": "/fixture/tool", - "version": "1.0", - "provider": "host:system" - } - } - ] - }, - "expected": { - "status": "ok", - "edit": { - "document": "{\"pins\":{\".\":{\"dev.example:compiler\":{\"home\":\"/fixture/tool\",\"provider\":\"host:system\",\"version\":\"1.0\"}}},\"toolchains\":{},\"version\":1}", - "documentChanged": true, - "ignoreDocument": "/toolchains/local.json\n", - "ignoreChanged": true - } - } - }, - { - "name": "comments-preserved", - "command": "toolchains.editPinSources", - "input": { - "document": "{\"toolchains\":{},\"version\":1}", - "ignoreDocument": "# user notes\n", - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": { - "home": "/fixture/tool", - "version": "1.0", - "provider": "host:system" - } - } - ] - }, - "expected": { - "status": "ok", - "edit": { - "document": "{\"pins\":{\".\":{\"dev.example:compiler\":{\"home\":\"/fixture/tool\",\"provider\":\"host:system\",\"version\":\"1.0\"}}},\"toolchains\":{},\"version\":1}", - "documentChanged": true, - "ignoreDocument": "# user notes\n/toolchains/local.json\n", - "ignoreChanged": true - } - } - }, - { - "name": "later-negation-needs-effective-rule", - "command": "toolchains.editPinSources", - "input": { - "document": "{\"toolchains\":{},\"version\":1}", - "ignoreDocument": "/toolchains/local.json\n!/toolchains/local.json\n", - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": { - "home": "/fixture/tool", - "version": "1.0", - "provider": "host:system" - } - } - ] - }, - "expected": { - "status": "ok", - "edit": { - "document": "{\"pins\":{\".\":{\"dev.example:compiler\":{\"home\":\"/fixture/tool\",\"provider\":\"host:system\",\"version\":\"1.0\"}}},\"toolchains\":{},\"version\":1}", - "documentChanged": true, - "ignoreDocument": "/toolchains/local.json\n!/toolchains/local.json\n/toolchains/local.json\n", - "ignoreChanged": true - } - } - }, - { - "name": "wildcard-already-ignores", - "command": "toolchains.editPinSources", - "input": { - "document": "{\"toolchains\":{},\"version\":1}", - "ignoreDocument": "**/local.json\n", - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": { - "home": "/fixture/tool", - "version": "1.0", - "provider": "host:system" - } - } - ] - }, - "expected": { - "status": "ok", - "edit": { - "document": "{\"pins\":{\".\":{\"dev.example:compiler\":{\"home\":\"/fixture/tool\",\"provider\":\"host:system\",\"version\":\"1.0\"}}},\"toolchains\":{},\"version\":1}", - "documentChanged": true, - "ignoreDocument": "**/local.json\n", - "ignoreChanged": false - } - } - }, - { - "name": "crlf-preserved", - "command": "toolchains.editPinSources", - "input": { - "document": "{\"toolchains\":{},\"version\":1}", - "ignoreDocument": "# user notes\r\n", - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": { - "home": "/fixture/tool", - "version": "1.0", - "provider": "host:system" - } - } - ] - }, - "expected": { - "status": "ok", - "edit": { - "document": "{\"pins\":{\".\":{\"dev.example:compiler\":{\"home\":\"/fixture/tool\",\"provider\":\"host:system\",\"version\":\"1.0\"}}},\"toolchains\":{},\"version\":1}", - "documentChanged": true, - "ignoreDocument": "# user notes\r\n/toolchains/local.json\r\n", - "ignoreChanged": true - } - } - }, - { - "name": "missing-final-newline", - "command": "toolchains.editPinSources", - "input": { - "document": "{\"toolchains\":{},\"version\":1}", - "ignoreDocument": "# user notes", - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": { - "home": "/fixture/tool", - "version": "1.0", - "provider": "host:system" - } - } - ] - }, - "expected": { - "status": "ok", - "edit": { - "document": "{\"pins\":{\".\":{\"dev.example:compiler\":{\"home\":\"/fixture/tool\",\"provider\":\"host:system\",\"version\":\"1.0\"}}},\"toolchains\":{},\"version\":1}", - "documentChanged": true, - "ignoreDocument": "# user notes\n/toolchains/local.json\n", - "ignoreChanged": true - } - } - }, - { - "name": "bom-rule-is-not-a-new-pattern", - "command": "toolchains.editPinSources", - "input": { - "document": "{\"toolchains\":{},\"version\":1}", - "ignoreDocument": "/toolchains/local.json\n", - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": { - "home": "/fixture/tool", - "version": "1.0", - "provider": "host:system" - } - } - ] - }, - "expected": { - "status": "ok", - "edit": { - "document": "{\"pins\":{\".\":{\"dev.example:compiler\":{\"home\":\"/fixture/tool\",\"provider\":\"host:system\",\"version\":\"1.0\"}}},\"toolchains\":{},\"version\":1}", - "documentChanged": true, - "ignoreDocument": "/toolchains/local.json\n", - "ignoreChanged": false - } - } - }, - { - "name": "nul-ignore", - "command": "toolchains.editPinSources", - "input": { - "document": null, - "ignoreDocument": "a\u0000b\n", - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": { - "home": "/fixture/tool", - "version": "1.0", - "provider": "host:system" - } - } - ] - }, - "error": "plugin.toolchain.invalidIgnore" - }, - { - "name": "invalid-ignore-glob", - "command": "toolchains.editPinSources", - "input": { - "document": null, - "ignoreDocument": "[z-a]\n", - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": { - "home": "/fixture/tool", - "version": "1.0", - "provider": "host:system" - } - } - ] - }, - "error": "plugin.toolchain.invalidIgnore" - }, - { - "name": "invalid-edit-batch", - "command": "toolchains.editPinSources", - "input": { - "document": null, - "ignoreDocument": null, - "directory": ".", - "edits": [ - { - "tool": "not a tool", - "pin": { - "home": "/fixture/tool", - "version": "1.0", - "provider": "host:system" - } - } - ] - }, - "error": "plugin.toolchain.invalidParams" - }, - { - "name": "reset-keeps-other-pins", - "command": "toolchains.editPinSources", - "input": { - "document": "{\"pins\":{\".\":{\"dev.example:compiler\":{\"home\":\"/fixture/tool\",\"provider\":\"host:system\",\"version\":\"1.0\"}},\"nested\":{\"dev.example:compiler\":{\"home\":\"/fixture/tool\",\"provider\":\"host:system\",\"version\":\"1.0\"}}},\"toolchains\":{\"legacy\":{\"home\":\"/fixture/legacy\"}},\"version\":1}", - "ignoreDocument": "/toolchains/local.json\n", - "directory": ".", - "edits": [ - { - "tool": "dev.example:compiler", - "pin": null - } - ] - }, - "expected": { - "status": "ok", - "edit": { - "document": "{\"pins\":{\"nested\":{\"dev.example:compiler\":{\"home\":\"/fixture/tool\",\"provider\":\"host:system\",\"version\":\"1.0\"}}},\"toolchains\":{\"legacy\":{\"home\":\"/fixture/legacy\"}},\"version\":1}", - "documentChanged": true, - "ignoreDocument": "/toolchains/local.json\n", - "ignoreChanged": false - } - } - } - ] -} diff --git a/shared/fixtures/toolchains/consumer-preferences.json b/shared/fixtures/toolchains/consumer-preferences.json deleted file mode 100644 index 58fc680586..0000000000 --- a/shared/fixtures/toolchains/consumer-preferences.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "version": 1, - "description": "The consumer follows the workspace tool rather than freezing its current home or inheriting an unrelated directory override. A second consumer follows the general tool at the requested directory, without copying the current installation.", - "document": { - "version": 1, - "workspace": { - "tools": { - "dev.example.runtime:sdk": { - "home": "/fixture/sdk-one" - } - }, - "consumers": { - "dev.example.build/engine": { - "dev.example.runtime:sdk": { - "inherit": "workspace" - } - }, - "dev.example.app/runner": { - "dev.example.runtime:sdk": { - "inherit": "tool" - } - } - } - }, - "directories": { - "nested": { - "tools": { - "dev.example.runtime:sdk": { - "home": "/fixture/directory-sdk" - } - }, - "consumers": { - "dev.example.build/engine": { - "dev.example.runtime:sdk": { - "home": "/fixture/parent-choice" - } - } - } - }, - "nested/child": { - "consumers": { - "dev.example.build/engine": { - "dev.example.runtime:sdk": { - "inherit": "consumer" - } - }, - "dev.example.app/runner": { - "dev.example.runtime:sdk": { - "inherit": "consumer" - } - } - } - } - } - }, - "cases": [ - { - "directory": "nested/child", - "consumer": "dev.example.build/engine", - "expected": { - "home": "/fixture/sdk-one" - } - }, - { - "directory": "nested/other", - "consumer": "dev.example.build/engine", - "expected": { - "home": "/fixture/parent-choice" - } - }, - { - "directory": "nested/child", - "consumer": null, - "expected": { - "home": "/fixture/directory-sdk" - } - }, - { - "directory": ".", - "consumer": "dev.example.build/engine", - "expected": { - "home": "/fixture/sdk-one" - } - }, - { - "directory": "nested/child", - "consumer": "dev.example.app/runner", - "expected": { - "home": "/fixture/directory-sdk" - } - }, - { - "directory": ".", - "consumer": "dev.example.app/runner", - "expected": { - "home": "/fixture/sdk-one" - } - } - ] -} diff --git a/shared/fixtures/toolchains/rpc-id-cases.json b/shared/fixtures/toolchains/rpc-id-cases.json deleted file mode 100644 index 8ce394827f..0000000000 --- a/shared/fixtures/toolchains/rpc-id-cases.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "cases": [ - { - "id": 1, - "accepted": true - }, - { - "id": "1", - "accepted": true - }, - { - "id": "rpc:雪-2", - "accepted": true - }, - { - "id": 0, - "accepted": false - }, - { - "id": -1, - "accepted": false - }, - { - "id": null, - "accepted": false - }, - { - "id": true, - "accepted": false - }, - { - "id": "", - "accepted": false - }, - { - "id": "bad\n", - "accepted": false - }, - { - "id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", - "accepted": false - } - ] -} diff --git a/shared/fixtures/updates/build-time-v1.json b/shared/fixtures/updates/build-time-v1.json deleted file mode 100644 index acf37c868f..0000000000 --- a/shared/fixtures/updates/build-time-v1.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - {"timestamp":"2026-10-15T12:43:54Z","build":"20261015.124354","display":"2026-10-15 12:43:54 UTC"}, - {"timestamp":"2026-10-16T00:00:00Z","build":"20261016.000000","display":"2026-10-16 00:00:00 UTC"}, - {"timestamp":"2028-02-29T23:59:59Z","build":"20280229.235959","display":"2028-02-29 23:59:59 UTC"} - ], - "invalidTimestamps": ["", "2026-02-29T12:00:00Z", "2026-10-15T24:00:00Z", "2026-10-15T12:43:54+08:00", "2026-10-15T12:43:54.123Z", "not-a-date"] -} diff --git a/shared/fixtures/updates/channel-selection-v1.json b/shared/fixtures/updates/channel-selection-v1.json deleted file mode 100644 index 19a5954f86..0000000000 --- a/shared/fixtures/updates/channel-selection-v1.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "schemaVersion": 1, - "defaultChannel": "stable", - "developmentDefaultChannel": "autobuild", - "rollingTag": "AutoBuild", - "rollingRequiresAcknowledgement": true, - "rollingReleaseURL": "https://github.com/1lck/Lithe-IDEA/releases/tag/AutoBuild", - "cases": [ - { "installed": "stable", "selected": "stable", "fullInstallation": false, "windowsMethod": "tauri" }, - { "installed": "stable", "selected": "autobuild", "fullInstallation": true, "windowsMethod": "release-page" }, - { "installed": "autobuild", "selected": "stable", "fullInstallation": true, "windowsMethod": "release-page" }, - { "installed": "autobuild", "selected": "autobuild", "fullInstallation": false, "windowsMethod": "release-page" } - ], - "invalidPreferences": [null, "", "preview", "AutoBuild", "nightly", "https://example.com/feed"] -} diff --git a/shared/fixtures/updates/update-v1.json b/shared/fixtures/updates/update-v1.json deleted file mode 100644 index d9c03240f4..0000000000 --- a/shared/fixtures/updates/update-v1.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "schemaVersion": 1, - "states": [ - "idle", - "checking", - "available", - "downloading", - "installing", - "upToDate", - "failed" - ], - "errorCodes": [ - "app_not_found_in_disk_image", - "checksum_mismatch", - "connection_failed", - "download_failed", - "http_status", - "install_failed", - "invalid_manifest", - "invalid_response", - "no_compatible_asset", - "no_published_release", - "not_app_bundle", - "rate_limited", - "timed_out", - "tls_or_proxy_failure", - "unsupported_schema" - ], - "preferenceSemantics": { - "laterHours": 24, - "skipClearsWhenTargetChanges": true, - "manualChecksIgnoreSuppression": true - }, - "availableState": { - "schemaVersion": 1, - "currentVersion": "0.3.0", - "targetVersion": "0.3.1", - "releaseDate": "2026-01-02T00:00:00Z", - "releaseNotes": "Bug fixes and improvements.", - "releaseURL": "https://github.com/1lck/Lithe-IDEA/releases/tag/v0.3.1", - "status": "available", - "downloadProgress": null, - "errorCode": null - } -} diff --git a/shared/fixtures/vcs/model-v1.json b/shared/fixtures/vcs/model-v1.json deleted file mode 100644 index b6d3600d7c..0000000000 --- a/shared/fixtures/vcs/model-v1.json +++ /dev/null @@ -1,663 +0,0 @@ -{ - "version": 1, - "status": "draft", - "contract": "shared/contracts/vcs-provider-v1.md", - "providers": [ - { - "vcs": "git", - "displayName": "Git", - "origin": { - "kind": "builtIn" - }, - "markers": [ - { - "name": ".git", - "type": "directory" - }, - { - "name": ".git", - "type": "file" - } - ] - }, - { - "vcs": "svn", - "displayName": "Subversion", - "origin": { - "kind": "plugin", - "pluginID": "dev.lithe.fixture.vcs-provider" - }, - "markers": [ - { - "name": ".svn", - "type": "directory" - } - ], - "capabilities": { - "annotate": 0, - "baseContent": 0, - "checkin": 0, - "cleanup": 0, - "conflicts": 0, - "fileHistory": 0, - "fileOperations": 0, - "history": 0, - "rollback": 0, - "status": 0, - "update": 0 - } - } - ], - "rootDetectionCases": [ - { - "name": "nested Subversion working copy inside a Git repository", - "markers": [ - { - "directory": "", - "name": ".git", - "type": "directory" - }, - { - "directory": "services/legacy", - "name": ".svn", - "type": "directory" - } - ], - "expectedRoots": [ - { - "id": "", - "vcs": "git" - }, - { - "id": "services/legacy", - "vcs": "svn" - } - ], - "expectedOwnership": [ - { - "path": "README.md", - "root": "" - }, - { - "path": "services/legacy/src/Main.java", - "root": "services/legacy" - }, - { - "path": "services/legacy-tools/a.sh", - "root": "" - } - ], - "expectedAmbiguous": [] - }, - { - "name": "an unmapped directory with markers of two providers owns nothing and blocks the outer root", - "markers": [ - { - "directory": "", - "name": ".git", - "type": "directory" - }, - { - "directory": "mixed", - "name": ".git", - "type": "directory" - }, - { - "directory": "mixed", - "name": ".svn", - "type": "directory" - } - ], - "expectedRoots": [ - { - "id": "", - "vcs": "git" - } - ], - "expectedOwnership": [ - { - "path": "mixed/a.txt", - "root": null - }, - { - "path": "mixed.txt", - "root": "" - } - ], - "expectedAmbiguous": [ - { - "id": "mixed", - "vcs": [ - "git", - "svn" - ] - } - ] - }, - { - "name": "a mapping chooses the provider of an ambiguous directory", - "markers": [ - { - "directory": "", - "name": ".git", - "type": "directory" - }, - { - "directory": "mixed", - "name": ".git", - "type": "directory" - }, - { - "directory": "mixed", - "name": ".svn", - "type": "directory" - } - ], - "mappings": [ - { - "id": "gone", - "vcs": "git" - }, - { - "id": "mixed", - "vcs": "hg" - }, - { - "id": "mixed", - "vcs": "svn" - } - ], - "expectedRoots": [ - { - "id": "", - "vcs": "git" - }, - { - "id": "mixed", - "vcs": "svn", - "mapped": true - } - ], - "expectedOwnership": [ - { - "path": "mixed/a.txt", - "root": "mixed" - } - ], - "expectedAmbiguous": [], - "expectedUnusedMappings": [ - { - "id": "gone", - "vcs": "git" - }, - { - "id": "mixed", - "vcs": "hg" - } - ] - }, - { - "name": "Git worktree file marker", - "markers": [ - { - "directory": "linked", - "name": ".git", - "type": "file" - } - ], - "expectedRoots": [ - { - "id": "linked", - "vcs": "git" - } - ], - "expectedOwnership": [ - { - "path": "linked/src/lib.rs", - "root": "linked" - }, - { - "path": "other/a.txt", - "root": null - } - ], - "expectedAmbiguous": [] - }, - { - "name": "a workspace opened inside a Subversion working copy", - "workspace": "trunk/module", - "markers": [ - { - "directory": "", - "name": ".svn", - "type": "directory" - } - ], - "expectedRoots": [ - { - "id": "../..", - "vcs": "svn" - } - ], - "expectedOwnership": [ - { - "path": "src/Main.java", - "root": "../.." - } - ], - "expectedAmbiguous": [] - }, - { - "name": "metadata and dependency directories are not searched", - "markers": [ - { - "directory": "", - "name": ".svn", - "type": "directory" - }, - { - "directory": ".svn/pristine", - "name": ".git", - "type": "directory" - }, - { - "directory": "node_modules/left-pad", - "name": ".git", - "type": "directory" - }, - { - "directory": "target/checkout", - "name": ".svn", - "type": "directory" - } - ], - "expectedRoots": [ - { - "id": "", - "vcs": "svn" - } - ], - "expectedOwnership": [ - { - "path": "node_modules/left-pad/index.js", - "root": "" - } - ], - "expectedAmbiguous": [] - }, - { - "name": "roots deeper than eight directories are not looked for", - "markers": [ - { - "directory": "a/b/c/d/e/f/g/h", - "name": ".svn", - "type": "directory" - }, - { - "directory": "z/b/c/d/e/f/g/h/i", - "name": ".git", - "type": "directory" - } - ], - "expectedRoots": [ - { - "id": "a/b/c/d/e/f/g/h", - "vcs": "svn" - } - ], - "expectedOwnership": [ - { - "path": "z/b/c/d/e/f/g/h/i/a.txt", - "root": null - } - ], - "expectedAmbiguous": [] - } - ], - "statusSnapshots": [ - { - "name": "provider with a staging dimension", - "capabilities": { - "baseContent": 0, - "checkin": 0, - "rollback": 0, - "status": 0, - "staging": 0 - }, - "snapshot": { - "head": { - "revision": { - "id": "4b825dc642cb6eb9a060e54bf8d69288fbee4904", - "display": "4b825dc6", - "kind": "hash" - }, - "branch": "preview", - "location": "https://vcs.example.invalid/owner/repo.git" - }, - "changes": [ - { - "path": "docs/new.md", - "oldPath": null, - "status": "added", - "flags": [], - "staging": "staged" - }, - { - "path": "src/lib.rs", - "oldPath": null, - "status": "modified", - "flags": [], - "staging": "partial" - }, - { - "path": "src/renamed.rs", - "oldPath": "src/old.rs", - "status": "renamed", - "flags": [], - "staging": "staged" - }, - { - "path": "vendor/module", - "oldPath": null, - "status": "modified", - "flags": [ - "submodule" - ], - "staging": "unstaged" - } - ], - "truncated": false - } - }, - { - "name": "svn root without staging, with Subversion-only flags", - "capabilities": { - "annotate": 0, - "baseContent": 0, - "checkin": 0, - "cleanup": 0, - "conflicts": 0, - "fileHistory": 0, - "fileOperations": 0, - "history": 0, - "rollback": 0, - "status": 0, - "update": 0 - }, - "snapshot": { - "head": { - "revision": { - "id": "1234", - "display": "r1234", - "kind": "number" - }, - "branch": null, - "location": "https://svn.example.invalid/repo/trunk" - }, - "changes": [ - { - "path": "build.xml", - "oldPath": null, - "status": "missing", - "flags": [] - }, - { - "path": "lib/vendor", - "oldPath": null, - "status": "unversioned", - "flags": [ - "external" - ] - }, - { - "path": "src/Main.java", - "oldPath": null, - "status": "modified", - "flags": [ - "locked", - "propertiesModified" - ] - }, - { - "path": "src/Moved.java", - "oldPath": "src/Old.java", - "status": "renamed", - "flags": [] - }, - { - "path": "src/Shared.java", - "oldPath": null, - "status": "conflicted", - "flags": [ - "treeConflict" - ] - } - ], - "truncated": false - } - } - ], - "pluginReplyValidationCases": [ - { - "name": "unknown status value is rejected", - "reply": { - "changes": [ - { - "path": "a.txt", - "oldPath": null, - "status": "obstructed", - "flags": [] - } - ] - }, - "expectedError": "plugin.vcs.invalidOutput" - }, - { - "name": "path escaping the root is rejected", - "reply": { - "changes": [ - { - "path": "../outside.txt", - "oldPath": null, - "status": "modified", - "flags": [] - } - ] - }, - "expectedError": "plugin.vcs.invalidOutput" - }, - { - "name": "unknown flag is dropped, change is kept", - "reply": { - "changes": [ - { - "path": "a.txt", - "oldPath": null, - "status": "modified", - "flags": [ - "futureFlag", - "locked" - ] - } - ] - }, - "expectedChanges": [ - { - "path": "a.txt", - "oldPath": null, - "status": "modified", - "flags": [ - "locked" - ] - } - ] - }, - { - "name": "staging field from a provider without staging is rejected", - "reply": { - "changes": [ - { - "path": "a.txt", - "oldPath": null, - "status": "modified", - "flags": [], - "staging": "staged" - } - ] - }, - "expectedError": "plugin.vcs.invalidOutput" - }, - { - "name": "unordered changes are sorted by path", - "reply": { - "changes": [ - { - "path": "b.txt", - "oldPath": null, - "status": "added", - "flags": [] - }, - { - "path": "a.txt", - "oldPath": null, - "status": "deleted", - "flags": [] - } - ] - }, - "expectedChanges": [ - { - "path": "a.txt", - "oldPath": null, - "status": "deleted", - "flags": [] - }, - { - "path": "b.txt", - "oldPath": null, - "status": "added", - "flags": [] - } - ] - }, - { - "name": "credentials, query, and fragment leave the head location", - "reply": { - "head": { - "revision": { - "id": "7" - }, - "location": "https://alice:secret@svn.example.invalid/repo/trunk?p=1#top" - }, - "changes": [] - }, - "expectedResult": { - "head": { - "revision": { - "id": "7", - "display": "7", - "kind": "opaque" - }, - "branch": null, - "location": "https://svn.example.invalid/repo/trunk" - }, - "changes": [], - "truncated": false - } - }, - { - "name": "an original path on a modification is rejected", - "reply": { - "changes": [ - { - "path": "a.txt", - "oldPath": "b.txt", - "status": "modified", - "flags": [] - } - ] - }, - "expectedError": "plugin.vcs.invalidOutput" - }, - { - "name": "a history page longer than the request is rejected", - "operation": "history", - "request": { - "limit": 1 - }, - "reply": { - "entries": [ - { - "revision": { - "id": "2" - }, - "author": "a", - "date": "2026-10-22T00:00:00Z", - "message": "m" - }, - { - "revision": { - "id": "1" - }, - "author": "a", - "date": "2026-10-21T00:00:00Z", - "message": "m" - } - ], - "nextCursor": null - }, - "expectedError": "plugin.vcs.invalidOutput" - }, - { - "name": "an annotated line must name a listed revision", - "operation": "annotate", - "request": { - "path": "a.txt" - }, - "reply": { - "revisions": [ - { - "revision": { - "id": "1" - }, - "author": "a", - "date": "2026-10-21T00:00:00Z", - "message": "m" - } - ], - "lines": [ - "1", - "2" - ] - }, - "expectedError": "plugin.vcs.invalidOutput" - }, - { - "name": "update conflicts are sorted and stay inside the root", - "operation": "update", - "request": {}, - "reply": { - "revision": { - "id": "9", - "display": "r9", - "kind": "number" - }, - "conflicts": [ - "b.txt", - "a.txt" - ] - }, - "expectedResult": { - "revision": { - "id": "9", - "display": "r9", - "kind": "number" - }, - "conflicts": [ - "a.txt", - "b.txt" - ] - } - } - ] -} diff --git a/shared/fixtures/workspace/change-filter-v1.json b/shared/fixtures/workspace/change-filter-v1.json deleted file mode 100644 index 0db0a6c594..0000000000 --- a/shared/fixtures/workspace/change-filter-v1.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "paths": [ - "", - "src/Main.java", - "target/classes/Main.class", - "TARGET/classes/Main.class", - "module/build/generated.java", - ".gradle/cache.bin", - "src/targeted/Main.java", - ".sources/Main.java", - ".lithe/run/generated.json", - "pom.xml", - "module/target/X.class", - "module/src/main/resources/application.yml" - ], - "expected": [ - "", - "src/Main.java", - "src/targeted/Main.java", - ".sources/Main.java", - ".lithe/run/generated.json", - "pom.xml", - "module/src/main/resources/application.yml" - ] -} diff --git a/shared/fixtures/workspace/directory-actions-v1.json b/shared/fixtures/workspace/directory-actions-v1.json deleted file mode 100644 index 8786338a19..0000000000 --- a/shared/fixtures/workspace/directory-actions-v1.json +++ /dev/null @@ -1,275 +0,0 @@ -{ - "schemaVersion": 1, - "cases": [ - { - "id": "cancel-then-plain", - "steps": [ - { - "action": { - "kind": "cancelExclusion" - }, - "role": "plain", - "included": true - }, - { - "action": { - "kind": "setRole", - "role": "plain" - }, - "role": "plain", - "included": true - } - ] - }, - { - "id": "plain-then-cancel", - "steps": [ - { - "action": { - "kind": "setRole", - "role": "plain" - }, - "role": "plain", - "included": false - }, - { - "action": { - "kind": "cancelExclusion" - }, - "role": "plain", - "included": true - }, - { - "action": { - "kind": "exclude" - }, - "role": "excluded", - "included": false - }, - { - "action": { - "kind": "cancelExclusion" - }, - "role": "plain", - "included": true - } - ] - }, - { - "id": "cancel-then-sources", - "steps": [ - { - "action": { - "kind": "cancelExclusion" - }, - "role": "plain", - "included": true - }, - { - "action": { - "kind": "setRole", - "role": "sources" - }, - "role": "sources", - "included": true - } - ] - }, - { - "id": "sources-then-cancel", - "steps": [ - { - "action": { - "kind": "setRole", - "role": "sources" - }, - "role": "sources", - "included": false - }, - { - "action": { - "kind": "cancelExclusion" - }, - "role": "sources", - "included": true - }, - { - "action": { - "kind": "exclude" - }, - "role": "excluded", - "included": false - }, - { - "action": { - "kind": "cancelExclusion" - }, - "role": "sources", - "included": true - } - ] - }, - { - "id": "cancel-then-resources", - "steps": [ - { - "action": { - "kind": "cancelExclusion" - }, - "role": "plain", - "included": true - }, - { - "action": { - "kind": "setRole", - "role": "resources" - }, - "role": "resources", - "included": true - } - ] - }, - { - "id": "resources-then-cancel", - "steps": [ - { - "action": { - "kind": "setRole", - "role": "resources" - }, - "role": "resources", - "included": false - }, - { - "action": { - "kind": "cancelExclusion" - }, - "role": "resources", - "included": true - }, - { - "action": { - "kind": "exclude" - }, - "role": "excluded", - "included": false - }, - { - "action": { - "kind": "cancelExclusion" - }, - "role": "resources", - "included": true - } - ] - }, - { - "id": "cancel-then-module", - "steps": [ - { - "action": { - "kind": "cancelExclusion" - }, - "role": "plain", - "included": true - }, - { - "action": { - "kind": "setRole", - "role": "module" - }, - "role": "module", - "included": true - } - ] - }, - { - "id": "module-then-cancel", - "steps": [ - { - "action": { - "kind": "setRole", - "role": "module" - }, - "role": "module", - "included": false - }, - { - "action": { - "kind": "cancelExclusion" - }, - "role": "module", - "included": true - }, - { - "action": { - "kind": "exclude" - }, - "role": "excluded", - "included": false - }, - { - "action": { - "kind": "cancelExclusion" - }, - "role": "module", - "included": true - } - ] - }, - { - "id": "cancel-then-package", - "steps": [ - { - "action": { - "kind": "cancelExclusion" - }, - "role": "plain", - "included": true - }, - { - "action": { - "kind": "setRole", - "role": "package" - }, - "role": "package", - "included": true - } - ] - }, - { - "id": "package-then-cancel", - "steps": [ - { - "action": { - "kind": "setRole", - "role": "package" - }, - "role": "package", - "included": false - }, - { - "action": { - "kind": "cancelExclusion" - }, - "role": "package", - "included": true - }, - { - "action": { - "kind": "exclude" - }, - "role": "excluded", - "included": false - }, - { - "action": { - "kind": "cancelExclusion" - }, - "role": "package", - "included": true - } - ] - } - ] -} diff --git a/shared/fixtures/workspace/directory-rules-v1.json b/shared/fixtures/workspace/directory-rules-v1.json deleted file mode 100644 index a8e377c26f..0000000000 --- a/shared/fixtures/workspace/directory-rules-v1.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "schemaVersion": 1, - "reduce": [ - { - "id": "exclude-remembers-the-role", - "request": {"path": "src", "action": {"kind": "exclude"}, - "rules": {"marks": {"src": "sources"}, "includedDirectories": ["src"], "previousRoles": {}}}, - "response": {"changed": true, - "rules": {"marks": {"src": "excluded"}, "includedDirectories": [], "previousRoles": {"src": "sources"}}} - }, - { - "id": "cancel-restores-the-remembered-role", - "request": {"path": "src", "action": {"kind": "cancelExclusion"}, - "rules": {"marks": {"src": "excluded"}, "includedDirectories": [], "previousRoles": {"src": "sources"}}}, - "response": {"changed": true, - "rules": {"marks": {"src": "sources"}, "includedDirectories": ["src"], "previousRoles": {}}} - }, - { - "id": "cancel-without-a-remembered-role-clears-the-mark", - "request": {"path": "build", "action": {"kind": "cancelExclusion"}, - "rules": {"marks": {"build": "excluded"}, "includedDirectories": [], "previousRoles": {}}}, - "response": {"changed": true, - "rules": {"marks": {}, "includedDirectories": ["build"], "previousRoles": {}}} - }, - { - "id": "cancel-git-exclusion-keeps-the-current-role", - "request": {"path": "gen", "action": {"kind": "cancelExclusion"}, - "rules": {"marks": {"gen": "resources"}, "includedDirectories": [], "previousRoles": {"gen": "sources"}}}, - "response": {"changed": true, - "rules": {"marks": {"gen": "resources"}, "includedDirectories": ["gen"], "previousRoles": {}}} - }, - { - "id": "manual-ancestor-exclusion-cannot-be-overridden", - "request": {"path": "vendor/lib", "action": {"kind": "cancelExclusion"}, - "rules": {"marks": {"vendor": "excluded"}, "includedDirectories": [], "previousRoles": {}}}, - "response": {"changed": false, - "rules": {"marks": {"vendor": "excluded"}, "includedDirectories": [], "previousRoles": {}}} - }, - { - "id": "workspace-root-exclusion-blocks-descendants", - "request": {"path": "src", "action": {"kind": "cancelExclusion"}, - "rules": {"marks": {".": "excluded"}, "includedDirectories": [], "previousRoles": {}}}, - "response": {"changed": false, - "rules": {"marks": {".": "excluded"}, "includedDirectories": [], "previousRoles": {}}} - }, - { - "id": "setting-a-role-keeps-the-include-exception", - "request": {"path": "gen", "action": {"kind": "setRole", "role": "sources"}, - "rules": {"marks": {}, "includedDirectories": ["gen"], "previousRoles": {}}}, - "response": {"changed": true, - "rules": {"marks": {"gen": "sources"}, "includedDirectories": ["gen"], "previousRoles": {}}} - }, - { - "id": "setting-the-same-role-changes-nothing", - "request": {"path": "gen", "action": {"kind": "setRole", "role": "sources"}, - "rules": {"marks": {"gen": "sources"}, "includedDirectories": [], "previousRoles": {}}}, - "response": {"changed": false, - "rules": {"marks": {"gen": "sources"}, "includedDirectories": [], "previousRoles": {}}} - }, - { - "id": "case-insensitive-paths-name-one-directory", - "request": {"path": "SRC", "caseInsensitive": true, "action": {"kind": "cancelExclusion"}, - "rules": {"marks": {"src": "excluded"}, "includedDirectories": [], "previousRoles": {"src": "package"}}}, - "response": {"changed": true, - "rules": {"marks": {"SRC": "package"}, "includedDirectories": ["SRC"], "previousRoles": {}}} - }, - { - "id": "case-sensitive-paths-are-distinct", - "request": {"path": "SRC", "action": {"kind": "exclude"}, - "rules": {"marks": {"src": "sources"}, "includedDirectories": ["src"], "previousRoles": {}}}, - "response": {"changed": true, - "rules": {"marks": {"SRC": "excluded", "src": "sources"}, "includedDirectories": ["src"], "previousRoles": {}}} - } - ], - "relocate": [ - { - "id": "rename-moves-the-subtree", - "request": {"source": "src", "destination": "lib", - "rules": {"marks": {"src": "sources", "src/main": "module", "srcs": "plain"}, - "includedDirectories": ["src/gen", "other"], "previousRoles": {"src/old": "resources"}}}, - "response": {"rules": {"marks": {"lib": "sources", "lib/main": "module", "srcs": "plain"}, - "includedDirectories": ["other", "lib/gen"], "previousRoles": {"lib/old": "resources"}}, "target": null} - }, - { - "id": "delete-drops-the-subtree", - "request": {"source": "src", - "rules": {"marks": {"src": "sources", "src/main": "module", "lib": "plain"}, - "includedDirectories": ["src/gen"], "previousRoles": {"src": "plain"}}}, - "response": {"rules": {"marks": {"lib": "plain"}, "includedDirectories": [], "previousRoles": {}}, "target": null} - }, - { - "id": "case-insensitive-source-match", - "request": {"source": "Src", "destination": "lib", "caseInsensitive": true, - "rules": {"marks": {"src/main": "module"}, "includedDirectories": [], "previousRoles": {}}}, - "response": {"rules": {"marks": {"lib/main": "module"}, "includedDirectories": [], "previousRoles": {}}, "target": null} - }, - { - "id": "move-to-the-workspace-root", - "request": {"source": "a/b", "destination": ".", - "rules": {"marks": {"a/b": "sources", "a/b/c": "module"}, "includedDirectories": [], "previousRoles": {}}}, - "response": {"rules": {"marks": {".": "sources", "c": "module"}, "includedDirectories": [], "previousRoles": {}}, "target": null} - }, - { - "id": "move-across-workspace-roots", - "request": {"source": "pkg", "destination": "vendor/pkg", "caseInsensitive": true, - "rules": {"marks": {"pkg": "package", "keep": "plain"}, "includedDirectories": ["pkg/gen"], "previousRoles": {"pkg": "sources"}}, - "target": {"marks": {"vendor": "plain"}, "includedDirectories": ["vendor/pkg/gen"], "previousRoles": {}}}, - "response": {"rules": {"marks": {"keep": "plain"}, "includedDirectories": [], "previousRoles": {}}, - "target": {"marks": {"vendor": "plain", "vendor/pkg": "package"}, "includedDirectories": ["vendor/pkg/gen"], "previousRoles": {"vendor/pkg": "sources"}}} - } - ], - "invalid": [ - {"command": "workspace.reduceDirectoryAction", "request": {"path": "../x", "action": {"kind": "exclude"}, "rules": {}}}, - {"command": "workspace.reduceDirectoryAction", "request": {"path": "x", "action": {"kind": "setRole", "role": "excluded"}, "rules": {}}}, - {"command": "workspace.reduceDirectoryAction", "request": {"path": "x", "action": {"kind": "exclude"}, "rules": {"marks": {"y": "bogus"}}}}, - {"command": "workspace.relocateDirectoryRules", "request": {"source": "x", "rules": {}, "target": {}}} - ] -} diff --git a/shared/fixtures/workspace/entry-order-v1.json b/shared/fixtures/workspace/entry-order-v1.json deleted file mode 100644 index 12fd278375..0000000000 --- a/shared/fixtures/workspace/entry-order-v1.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "version": 1, - "description": "workspace.orderEntries cases. Hosts that enumerate a directory themselves (Windows local, SSH and WSL trees, macOS plugin listings) send each sibling name with its kind and receive Core's order as indices into the request. Names compare with IDEA's FileNameComparator (see file-name-order-v1.json); directoriesFirst ranks directories before files without changing the name order inside each group. The old Windows order lowercased names and used localeCompare, which put v0.1.12 before v0.1.4 and depended on the WebView locale.", - "cases": [ - { - "id": "release-notes-compare-digit-runs-by-value", - "request": { - "entries": [ - {"name": "v0.1.12.md", "isDirectory": false}, - {"name": "v0.1.4.md", "isDirectory": false}, - {"name": "TEMPLATE.md", "isDirectory": false}, - {"name": "v0.2.0.md", "isDirectory": false}, - {"name": "v0.1.13.md", "isDirectory": false} - ] - }, - "orderedNames": ["TEMPLATE.md", "v0.1.4.md", "v0.1.12.md", "v0.1.13.md", "v0.2.0.md"] - }, - { - "id": "directories-first-is-the-default", - "request": { - "entries": [ - {"name": "zeta.txt", "isDirectory": false}, - {"name": "part10", "isDirectory": true}, - {"name": "Alpha.txt", "isDirectory": false}, - {"name": "part2", "isDirectory": true} - ] - }, - "orderedNames": ["part2", "part10", "Alpha.txt", "zeta.txt"] - }, - { - "id": "name-order-mixes-directories-and-files", - "request": { - "directoriesFirst": false, - "entries": [ - {"name": "zeta.txt", "isDirectory": false}, - {"name": "part10", "isDirectory": true}, - {"name": "Alpha.txt", "isDirectory": false}, - {"name": "part2", "isDirectory": true} - ] - }, - "orderedNames": ["Alpha.txt", "part2", "part10", "zeta.txt"] - }, - { - "id": "case-only-differences-keep-uppercase-first", - "request": { - "entries": [ - {"name": "b.txt", "isDirectory": false}, - {"name": "a.txt", "isDirectory": false}, - {"name": "B.txt", "isDirectory": false}, - {"name": "A.txt", "isDirectory": false} - ] - }, - "orderedNames": ["A.txt", "a.txt", "B.txt", "b.txt"] - }, - { - "id": "locale-independent-punctuation-and-non-ascii", - "request": { - "entries": [ - {"name": "笔记", "isDirectory": false}, - {"name": "fooa", "isDirectory": false}, - {"name": "foo_bar", "isDirectory": false}, - {"name": "foo-bar", "isDirectory": false}, - {"name": "foo.bar", "isDirectory": false}, - {"name": "Äpfel", "isDirectory": false}, - {"name": "notes", "isDirectory": false} - ] - }, - "orderedNames": ["foo.bar", "foo-bar", "foo_bar", "fooa", "notes", "Äpfel", "笔记"] - }, - { - "id": "leading-zeros-sort-after-the-plain-number", - "request": { - "entries": [ - {"name": "a2", "isDirectory": false}, - {"name": "a001", "isDirectory": false}, - {"name": "a01", "isDirectory": false}, - {"name": "a1", "isDirectory": false} - ] - }, - "orderedNames": ["a1", "a01", "a001", "a2"] - } - ], - "invalid": [ - { - "id": "name-over-limit", - "reason": "Names longer than 4096 UTF-8 bytes are rejected with invalid_request instead of being truncated.", - "nameBytes": 4097 - }, - { - "id": "too-many-entries", - "reason": "More than 100000 entries (the plugin directory scan budget) are rejected with invalid_request; hosts send one directory per request.", - "entryCount": 100001 - } - ] -} diff --git a/shared/fixtures/workspace/file-copy-names-v1.json b/shared/fixtures/workspace/file-copy-names-v1.json deleted file mode 100644 index 5b7571d68c..0000000000 --- a/shared/fixtures/workspace/file-copy-names-v1.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "schemaVersion": 1, - "duplicate": [ - {"id": "file-with-extension", "request": {"name": "foo.txt", "isDirectory": false, "existing": ["foo.txt"]}, "name": "foo copy.txt"}, - {"id": "second-copy", "request": {"name": "foo.txt", "isDirectory": false, "existing": ["foo.txt", "foo copy.txt"]}, "name": "foo copy 2.txt"}, - {"id": "gap-is-reused", "request": {"name": "foo.txt", "isDirectory": false, "existing": ["foo.txt", "foo copy 2.txt"]}, "name": "foo copy.txt"}, - {"id": "only-last-extension", "request": {"name": "archive.tar.gz", "isDirectory": false, "existing": ["archive.tar.gz"]}, "name": "archive.tar copy.gz"}, - {"id": "no-extension", "request": {"name": "Makefile", "isDirectory": false}, "name": "Makefile copy"}, - {"id": "leading-dot-is-not-an-extension", "request": {"name": ".gitignore", "isDirectory": false}, "name": ".gitignore copy"}, - {"id": "trailing-dot-is-not-an-extension", "request": {"name": "name.", "isDirectory": false}, "name": "name. copy"}, - {"id": "directory-never-splits", "request": {"name": "my.pkg", "isDirectory": true}, "name": "my.pkg copy"}, - {"id": "case-sensitive-volume", "request": {"name": "a.txt", "isDirectory": false, "existing": ["A COPY.txt"]}, "name": "a copy.txt"}, - {"id": "case-insensitive-volume", "request": {"name": "a.txt", "isDirectory": false, "existing": ["A COPY.TXT"], "caseInsensitive": true}, "name": "a copy 2.txt"}, - {"id": "unicode-name", "request": {"name": "报告.md", "isDirectory": false, "existing": ["报告 copy.md"]}, "name": "报告 copy 2.md"} - ], - "paste": [ - {"id": "free-name-is-kept", "request": {"items": [{"name": "a.txt", "isDirectory": false}], "existing": ["b.txt"]}, "names": ["a.txt"]}, - {"id": "taken-name-gets-a-suffix", "request": {"items": [{"name": "a.txt", "isDirectory": false}], "existing": ["a.txt"]}, "names": ["a copy.txt"]}, - {"id": "same-name-twice-in-one-paste", "request": {"items": [{"name": "a.txt", "isDirectory": false}, {"name": "a.txt", "isDirectory": false}], "existing": []}, "names": ["a.txt", "a copy.txt"]}, - {"id": "later-item-avoids-earlier-suffix", "request": {"items": [{"name": "a.txt", "isDirectory": false}, {"name": "a copy.txt", "isDirectory": false}], "existing": ["a.txt"]}, "names": ["a copy.txt", "a copy copy.txt"]}, - {"id": "case-insensitive-paste", "request": {"items": [{"name": "Readme.MD", "isDirectory": false}], "existing": ["readme.md"], "caseInsensitive": true}, "names": ["Readme copy.MD"]}, - {"id": "directory-paste", "request": {"items": [{"name": "src.v2", "isDirectory": true}], "existing": ["src.v2", "src.v2 copy"]}, "names": ["src.v2 copy 2"]} - ], - "invalidNames": ["", ".", "..", "a/b", "a\\b"] -} diff --git a/shared/fixtures/workspace/file-name-order-v1.json b/shared/fixtures/workspace/file-name-order-v1.json deleted file mode 100644 index 00ba51940a..0000000000 --- a/shared/fixtures/workspace/file-name-order-v1.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "version": 1, - "description": "Sibling names in ascending project-tree order, following IntelliJ IDEA's FileNameComparator (NaturalComparator, ignoreCase and likeFileNames). Every name must sort strictly before each name after it within its group; directories-first ranking is applied by the tree, not by this comparator.", - "orderedGroups": [ - { - "id": "release-notes", - "names": [ - "TEMPLATE.md", - "v0.1.4.md", - "v0.1.5.md", - "v0.1.8.md", - "v0.1.12.md", - "v0.1.13.md", - "v0.1.14.md", - "v0.2.0.md", - "v0.2.1.md", - "v0.2.2.md", - "v0.3.1.md", - "v0.3.3.md" - ] - }, - { - "id": "digit-runs-compare-by-value", - "names": ["file1.txt", "file2.txt", "file10.txt", "file20.txt", "file100.txt"] - }, - { - "id": "leading-zeros-sort-after-the-plain-number", - "names": ["a1", "a01", "a001", "a2"] - }, - { - "id": "case-is-ignored-before-it-breaks-ties", - "names": ["A.txt", "a.txt", "B.txt", "b.txt", "c.txt"] - }, - { - "id": "dash-ranks-next-to-underscore", - "names": ["foo", "foo.bar", "foo-bar", "foo_bar", "fooa"] - }, - { - "id": "spaces-inside-numbers", - "names": ["Test1 2.txt", "Test1 12.txt", "Test2.txt"] - }, - { - "id": "non-ascii-names-follow-code-units", - "names": ["notes", "笔记"] - } - ] -} diff --git a/shared/fixtures/workspace/indexing-policy-v1.json b/shared/fixtures/workspace/indexing-policy-v1.json deleted file mode 100644 index 62f9788c91..0000000000 --- a/shared/fixtures/workspace/indexing-policy-v1.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "schemaVersion": 1, - "command": "workspace.configureIndexing", - "request": { - "root": "/workspace", - "manualExcludedDirectories": [ - "vendor" - ], - "includedDirectories": [ - "generated/examples" - ], - "gitIgnoreEnabled": true, - "refresh": false, - "paths": [ - "vendor", - "generated" - ], - "ownerId": "window-one/workspace-one" - }, - "response": { - "revision": 1, - "excludedDirectories": { - "vendor": "manual" - }, - "gitIgnoreFailed": false - }, - "cases": [ - { - "path": "vendor/src", - "reason": "manual" - }, - { - "path": "generated/examples", - "reason": null - }, - { - "path": "generated", - "reason": null - } - ], - "notes": "generated is a traversal ancestor of an include exception and cannot be pruned as a whole. Hidden-path rules are separate.", - "ownershipCases": [ - { - "nestedRegistered": true, - "parentScopedMatches": 0 - }, - { - "nestedRegistered": false, - "parentScopedMatches": 1 - } - ], - "leaseCases": [ - { - "owners": [ - "window-one/workspace-one", - "window-two/workspace-two" - ], - "releasedOwner": "window-one/workspace-one", - "rootRetired": false - }, - { - "owners": [ - "window-two/workspace-two" - ], - "releasedOwner": "window-two/workspace-two", - "rootRetired": true - } - ] -} diff --git a/shared/fixtures/workspace/recent-projects-v1.json b/shared/fixtures/workspace/recent-projects-v1.json deleted file mode 100644 index 34e275eaaa..0000000000 --- a/shared/fixtures/workspace/recent-projects-v1.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "version": 1, - "command": "workspace.recentProjects.reduce", - "defaultCapacity": 20, - "cases": [ - { - "name": "record into an empty list", - "request": { - "entries": [], - "action": { "kind": "record", "path": "/work/alpha", "openedAt": 1000 } - }, - "expected": { - "entries": [{ "path": "/work/alpha", "lastOpenedAt": 1000, "pinned": false }], - "added": ["/work/alpha"], - "removed": [] - } - }, - { - "name": "recording an existing project moves it first and keeps its pin", - "request": { - "entries": [ - { "path": "/work/beta", "lastOpenedAt": 3000, "pinned": false }, - { "path": "/work/alpha", "lastOpenedAt": 2000, "pinned": true } - ], - "action": { "kind": "record", "path": "/work/beta", "openedAt": 4000 } - }, - "expected": { - "entries": [ - { "path": "/work/alpha", "lastOpenedAt": 2000, "pinned": true }, - { "path": "/work/beta", "lastOpenedAt": 4000, "pinned": false } - ], - "added": [], - "removed": [] - } - }, - { - "name": "capacity evicts the oldest unpinned project and never a pinned one", - "request": { - "entries": [ - { "path": "/work/pinned-old", "lastOpenedAt": 10, "pinned": true }, - { "path": "/work/b", "lastOpenedAt": 300, "pinned": false }, - { "path": "/work/a", "lastOpenedAt": 200, "pinned": false } - ], - "action": { "kind": "record", "path": "/work/c", "openedAt": 400 }, - "capacity": 2 - }, - "expected": { - "entries": [ - { "path": "/work/pinned-old", "lastOpenedAt": 10, "pinned": true }, - { "path": "/work/c", "lastOpenedAt": 400, "pinned": false }, - { "path": "/work/b", "lastOpenedAt": 300, "pinned": false } - ], - "added": ["/work/c"], - "removed": ["/work/a"] - } - }, - { - "name": "pinning moves a project into the pinned group; unpinning returns it by time", - "request": { - "entries": [ - { "path": "/work/new", "lastOpenedAt": 900, "pinned": false }, - { "path": "/work/old", "lastOpenedAt": 100, "pinned": false } - ], - "action": { "kind": "togglePinned", "path": "/work/old" } - }, - "expected": { - "entries": [ - { "path": "/work/old", "lastOpenedAt": 100, "pinned": true }, - { "path": "/work/new", "lastOpenedAt": 900, "pinned": false } - ], - "added": [], - "removed": [] - } - }, - { - "name": "unpinning beyond capacity evicts the oldest unpinned project", - "request": { - "entries": [ - { "path": "/work/pinned", "lastOpenedAt": 50, "pinned": true }, - { "path": "/work/recent", "lastOpenedAt": 500, "pinned": false } - ], - "action": { "kind": "togglePinned", "path": "/work/pinned" }, - "capacity": 1 - }, - "expected": { - "entries": [{ "path": "/work/recent", "lastOpenedAt": 500, "pinned": false }], - "added": [], - "removed": ["/work/pinned"] - } - }, - { - "name": "toggling an unknown path leaves the list unchanged", - "request": { - "entries": [{ "path": "/work/a", "lastOpenedAt": 5, "pinned": false }], - "action": { "kind": "togglePinned", "path": "/work/missing" } - }, - "expected": { - "entries": [{ "path": "/work/a", "lastOpenedAt": 5, "pinned": false }], - "added": [], - "removed": [] - } - }, - { - "name": "remove drops every listed path, pinned or not", - "request": { - "entries": [ - { "path": "/work/a", "lastOpenedAt": 3, "pinned": true }, - { "path": "/work/b", "lastOpenedAt": 2, "pinned": false }, - { "path": "/work/c", "lastOpenedAt": 1, "pinned": false } - ], - "action": { "kind": "remove", "paths": ["/work/a", "/work/c", "/work/unknown"] } - }, - "expected": { - "entries": [{ "path": "/work/b", "lastOpenedAt": 2, "pinned": false }], - "added": [], - "removed": ["/work/a", "/work/c"] - } - }, - { - "name": "import keeps existing projects, skips duplicates, and ranks imports below now in source order", - "request": { - "entries": [{ "path": "/work/existing", "lastOpenedAt": 50000, "pinned": false }], - "action": { - "kind": "import", - "paths": ["/work/first", "/work/existing", "/work/second", "/work/first"], - "openedAt": 40000 - } - }, - "expected": { - "entries": [ - { "path": "/work/existing", "lastOpenedAt": 50000, "pinned": false }, - { "path": "/work/first", "lastOpenedAt": 40000, "pinned": false }, - { "path": "/work/second", "lastOpenedAt": 39999, "pinned": false } - ], - "added": ["/work/first", "/work/second"], - "removed": [] - } - }, - { - "name": "normalize sorts stored entries, keeps the newest duplicate, and treats a missing time as oldest", - "request": { - "entries": [ - { "path": "/work/a", "lastOpenedAt": 10, "pinned": false }, - { "path": "/work/undated", "pinned": false }, - { "path": "/work/b", "lastOpenedAt": 30, "pinned": false }, - { "path": "/work/a", "lastOpenedAt": 40, "pinned": false } - ], - "action": { "kind": "normalize" } - }, - "expected": { - "entries": [ - { "path": "/work/a", "lastOpenedAt": 40, "pinned": false }, - { "path": "/work/b", "lastOpenedAt": 30, "pinned": false }, - { "path": "/work/undated", "lastOpenedAt": 0, "pinned": false } - ], - "added": [], - "removed": [] - } - }, - { - "name": "equal times keep the caller's order", - "request": { - "entries": [ - { "path": "/work/z", "lastOpenedAt": 7, "pinned": false }, - { "path": "/work/a", "lastOpenedAt": 7, "pinned": false } - ], - "action": { "kind": "normalize" } - }, - "expected": { - "entries": [ - { "path": "/work/z", "lastOpenedAt": 7, "pinned": false }, - { "path": "/work/a", "lastOpenedAt": 7, "pinned": false } - ], - "added": [], - "removed": [] - } - } - ], - "invalid": [ - { - "name": "empty path", - "request": { "entries": [], "action": { "kind": "record", "path": "", "openedAt": 1 } } - }, - { - "name": "zero capacity", - "request": { "entries": [], "action": { "kind": "normalize" }, "capacity": 0 } - }, - { - "name": "negative time", - "request": { "entries": [], "action": { "kind": "record", "path": "/a", "openedAt": -1 } } - }, - { - "name": "unknown action", - "request": { "entries": [], "action": { "kind": "rename", "path": "/a" } } - } - ] -} diff --git a/shared/fixtures/workspace/repositories-v1.json b/shared/fixtures/workspace/repositories-v1.json deleted file mode 100644 index 6f84439731..0000000000 --- a/shared/fixtures/workspace/repositories-v1.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "command": "workspace.repositories", - "payload": { - "root": "/workspace" - }, - "response": { - "repositories": [ - { - "path": "/workspace/service-a" - }, - { - "path": "/workspace/service-b" - } - ] - } -} diff --git a/shared/fixtures/workspace/repository-visibility-v1.json b/shared/fixtures/workspace/repository-visibility-v1.json deleted file mode 100644 index 21a5260077..0000000000 --- a/shared/fixtures/workspace/repository-visibility-v1.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "repositoryPaths": [ - ".", - ".build/checkouts/SwiftTerm", - "macos/.build/checkouts/SwiftTerm", - ".cache/package", - "node_modules/package", - "target/package", - "build/package", - "DerivedData/package", - "visible", - "vendor/source" - ], - "expectedRepositoryPaths": [".", "visible", "vendor/source"], - "explicitRepositoryPaths": [".build/checkouts/SwiftTerm", ".cache/package"] -} diff --git a/shared/fixtures/workspace/visibility-v1.json b/shared/fixtures/workspace/visibility-v1.json deleted file mode 100644 index a126609525..0000000000 --- a/shared/fixtures/workspace/visibility-v1.json +++ /dev/null @@ -1,589 +0,0 @@ -{ - "description": "Hidden-path rules shared by Rust Core, macOS and Windows. isDirectory is true for a folder, false for a file and null when the host does not know. hidden means the tree, search and history leave the path out; watchedDespiteHiding marks hidden paths whose file events must still be delivered. Rule lists are the user's own entries; built-ins are added by Core.", - "defaults": { - "hiddenDirectoryNames": [ - ".git", - ".svn", - ".worktree", - ".worktrees", - ".build", - ".swiftpm", - "node_modules", - ".venv", - "venv", - "__pycache__", - "target", - "build", - "DerivedData", - ".gradle", - ".next", - "dist", - "coverage", - "design-qa-artifacts", - ".artifacts" - ], - "hiddenFilePatterns": [ - ".DS_Store", - "*.pyc", - ".lithe/**", - ".lithe/run/local.json" - ], - "builtInPatterns": [ - "**/.git/", - "**/.svn/", - "**/.worktree/", - "**/.worktrees/", - "**/.build/", - "**/.swiftpm/", - "**/node_modules/", - "**/.venv/", - "**/venv/", - "**/__pycache__/", - "**/target/", - "**/build/", - "**/DerivedData/", - "**/.gradle/", - "**/.next/", - "**/dist/", - "**/coverage/", - "**/design-qa-artifacts/", - "**/.artifacts/", - ".DS_Store", - "*.pyc", - ".lithe/**", - ".lithe/run/local.json" - ], - "configurationDirectory": ".lithe", - "configurationPattern": ".lithe/**" - }, - "cases": [ - { - "name": "built-in folders are hidden at any depth, as folders and as ancestors", - "hiddenDirectoryNames": [], - "hiddenFilePatterns": [], - "entries": [ - { - "path": ".git", - "isDirectory": true, - "hidden": true - }, - { - "path": "node_modules", - "isDirectory": true, - "hidden": true - }, - { - "path": "target", - "isDirectory": true, - "hidden": true - }, - { - "path": "a/b/node_modules", - "isDirectory": true, - "hidden": true - }, - { - "path": "node_modules/left-pad/index.js", - "isDirectory": false, - "hidden": true - }, - { - "path": "packages/app/target/classes/A.class", - "isDirectory": false, - "hidden": true - }, - { - "path": "src", - "isDirectory": true, - "hidden": false - }, - { - "path": "src/main/App.java", - "isDirectory": false, - "hidden": false - }, - { - "path": "README.md", - "isDirectory": false, - "hidden": false - } - ] - }, - { - "name": "a file named like a built-in folder is hidden too, such as a linked worktree's .git", - "hiddenDirectoryNames": [], - "hiddenFilePatterns": [], - "entries": [ - { - "path": "build", - "isDirectory": false, - "hidden": true - }, - { - "path": "scripts/target", - "isDirectory": false, - "hidden": true - }, - { - "path": "build", - "isDirectory": true, - "hidden": true - }, - { - "path": "src/dist", - "isDirectory": true, - "hidden": true - }, - { - "path": "build/out.txt", - "isDirectory": false, - "hidden": true - }, - { - "path": "build.gradle", - "isDirectory": false, - "hidden": false - }, - { - "path": "app/.git", - "isDirectory": false, - "hidden": true - }, - { - "path": "builds", - "isDirectory": false, - "hidden": false - } - ] - }, - { - "name": "built-in file patterns", - "hiddenDirectoryNames": [], - "hiddenFilePatterns": [], - "entries": [ - { - "path": ".DS_Store", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/.DS_Store", - "isDirectory": false, - "hidden": true - }, - { - "path": "mod/__init__.pyc", - "isDirectory": false, - "hidden": true - }, - { - "path": "a/b/c.pyc", - "isDirectory": false, - "hidden": true - }, - { - "path": "main.py", - "isDirectory": false, - "hidden": false - }, - { - "path": ".DS_Store", - "isDirectory": true, - "hidden": false - } - ] - }, - { - "name": "matching ignores case on every platform", - "hiddenDirectoryNames": [], - "hiddenFilePatterns": [ - "*.LOG" - ], - "entries": [ - { - "path": "Node_Modules/x.js", - "isDirectory": false, - "hidden": true - }, - { - "path": "SRC/TARGET", - "isDirectory": true, - "hidden": true - }, - { - "path": "App/.GIT/config", - "isDirectory": false, - "hidden": true - }, - { - "path": "run.log", - "isDirectory": false, - "hidden": true - }, - { - "path": "Run.Log", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/.ds_store", - "isDirectory": false, - "hidden": true - } - ] - }, - { - "name": "user folder names and globs add to the built-ins", - "hiddenDirectoryNames": [ - "generated", - "Out" - ], - "hiddenFilePatterns": [ - "*.generated.swift", - "docs/**", - "cache/", - "**/tmp/", - "notes", - "?.tmp" - ], - "entries": [ - { - "path": "generated", - "isDirectory": true, - "hidden": true - }, - { - "path": "src/generated/A.swift", - "isDirectory": false, - "hidden": true - }, - { - "path": "OUT", - "isDirectory": true, - "hidden": true - }, - { - "path": "Foo.generated.swift", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/Foo.generated.swift", - "isDirectory": false, - "hidden": true - }, - { - "path": "docs", - "isDirectory": true, - "hidden": true - }, - { - "path": "docs/guide/a.md", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/docs", - "isDirectory": true, - "hidden": false - }, - { - "path": "cache", - "isDirectory": true, - "hidden": true - }, - { - "path": "cache/x/y.txt", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/cache", - "isDirectory": true, - "hidden": false - }, - { - "path": "tmp", - "isDirectory": true, - "hidden": true - }, - { - "path": "a/b/tmp", - "isDirectory": true, - "hidden": true - }, - { - "path": "a/b/tmp/f", - "isDirectory": false, - "hidden": true - }, - { - "path": "notes", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/notes", - "isDirectory": false, - "hidden": true - }, - { - "path": "notes", - "isDirectory": true, - "hidden": false - }, - { - "path": "a.tmp", - "isDirectory": false, - "hidden": true - }, - { - "path": "ab.tmp", - "isDirectory": false, - "hidden": false - }, - { - "path": "src/Main.swift", - "isDirectory": false, - "hidden": false - } - ] - }, - { - "name": "a bang entry turns a built-in rule off, by name or by displayed form", - "hiddenDirectoryNames": [ - "build" - ], - "hiddenFilePatterns": [ - "!node_modules", - "!**/target/", - "!*.pyc" - ], - "entries": [ - { - "path": "node_modules/x.js", - "isDirectory": false, - "hidden": false - }, - { - "path": "target", - "isDirectory": true, - "hidden": false - }, - { - "path": "a/target/x", - "isDirectory": false, - "hidden": false - }, - { - "path": "mod/a.pyc", - "isDirectory": false, - "hidden": false - }, - { - "path": "dist", - "isDirectory": true, - "hidden": true - }, - { - "path": "build", - "isDirectory": true, - "hidden": true - }, - { - "path": ".git", - "isDirectory": true, - "hidden": true - }, - { - "path": ".DS_Store", - "isDirectory": false, - "hidden": true - } - ] - }, - { - "name": "an unknown kind treats every component as a possible folder", - "hiddenDirectoryNames": [], - "hiddenFilePatterns": [ - "notes", - "cache/" - ], - "entries": [ - { - "path": "build", - "isDirectory": null, - "hidden": true - }, - { - "path": "src/build", - "isDirectory": null, - "hidden": true - }, - { - "path": "notes", - "isDirectory": null, - "hidden": true - }, - { - "path": "cache", - "isDirectory": null, - "hidden": true - }, - { - "path": "src/Main.swift", - "isDirectory": null, - "hidden": false - }, - { - "path": "", - "isDirectory": null, - "hidden": false - } - ] - }, - { - "name": "the project configuration folder is hidden but its events stay watched", - "hiddenDirectoryNames": [], - "hiddenFilePatterns": [], - "entries": [ - { - "path": ".lithe", - "isDirectory": true, - "hidden": true, - "watchedDespiteHiding": true - }, - { - "path": ".lithe/project.json", - "isDirectory": false, - "hidden": true, - "watchedDespiteHiding": true - }, - { - "path": ".lithe/run/configs.json", - "isDirectory": false, - "hidden": true, - "watchedDespiteHiding": true - }, - { - "path": ".lithe/run/local.json", - "isDirectory": false, - "hidden": true - }, - { - "path": "src/.lithe/project.json", - "isDirectory": false, - "hidden": false - }, - { - "path": "src/.lithe", - "isDirectory": true, - "hidden": false - } - ] - }, - { - "name": "turning the configuration pattern off shows the folder but keeps the local run noise hidden", - "hiddenDirectoryNames": [], - "hiddenFilePatterns": [ - "!.lithe/**" - ], - "entries": [ - { - "path": ".lithe", - "isDirectory": true, - "hidden": false - }, - { - "path": ".lithe/project.json", - "isDirectory": false, - "hidden": false - }, - { - "path": ".lithe/run/local.json", - "isDirectory": false, - "hidden": true - } - ] - }, - { - "name": "surrounding whitespace and duplicate entries do not change the answer", - "hiddenDirectoryNames": [ - " generated ", - "GENERATED", - "" - ], - "hiddenFilePatterns": [ - " *.log ", - "*.LOG", - " " - ], - "entries": [ - { - "path": "generated", - "isDirectory": true, - "hidden": true - }, - { - "path": "a.log", - "isDirectory": false, - "hidden": true - }, - { - "path": "a.txt", - "isDirectory": false, - "hidden": false - } - ] - }, - { - "name": "batch: every child of one folder is classified by one request", - "hiddenDirectoryNames": [], - "hiddenFilePatterns": [ - "*.log" - ], - "entries": [ - { - "path": "app/.git", - "isDirectory": true, - "hidden": true - }, - { - "path": "app/.DS_Store", - "isDirectory": false, - "hidden": true - }, - { - "path": "app/node_modules", - "isDirectory": true, - "hidden": true - }, - { - "path": "app/target", - "isDirectory": true, - "hidden": true - }, - { - "path": "app/src", - "isDirectory": true, - "hidden": false - }, - { - "path": "app/pom.xml", - "isDirectory": false, - "hidden": false - }, - { - "path": "app/debug.log", - "isDirectory": false, - "hidden": true - }, - { - "path": "app/.env", - "isDirectory": false, - "hidden": false - } - ] - } - ] -} diff --git a/shared/i18n/README.md b/shared/i18n/README.md index 2b6924e597..70fa30937b 100644 --- a/shared/i18n/README.md +++ b/shared/i18n/README.md @@ -13,6 +13,8 @@ macOS 的字符串表、Windows 的完整翻译字典,以及原先页面内的 显式兼容,原生英文旧 key 通过 `macos.key` 显式兼容。 - `locales/.json` 保存对应语言的 `messages`。平台措辞确实不同时,使用 `overrides.macos` 或 `overrides.windows`,同时填写 `value` 和 `reason`。 +- `fixtures/` 保存生成器测试读取的格式样例(`format-v1.json`、`native-abi-v1.json`), + 只给 `scripts/i18n/test-i18n.mjs` 使用。Rust Core 不读取它们,所以放在这里,不放进 Core 的 `rust/fixtures/`。 修改后运行: diff --git a/shared/fixtures/i18n/format-v1.json b/shared/i18n/fixtures/format-v1.json similarity index 100% rename from shared/fixtures/i18n/format-v1.json rename to shared/i18n/fixtures/format-v1.json diff --git a/shared/fixtures/i18n/native-abi-v1.json b/shared/i18n/fixtures/native-abi-v1.json similarity index 100% rename from shared/fixtures/i18n/native-abi-v1.json rename to shared/i18n/fixtures/native-abi-v1.json diff --git a/shared/platform-feature-matrix/features/ai-commit-generation.json b/shared/platform-feature-matrix/features/ai-commit-generation.json index 35aefdfd46..5221c66ece 100644 --- a/shared/platform-feature-matrix/features/ai-commit-generation.json +++ b/shared/platform-feature-matrix/features/ai-commit-generation.json @@ -14,9 +14,6 @@ "desktop/internal/core/ai_generation.go", "desktop/internal/core/ai_generation_test.go", "desktop/internal/i18n/ai_messages.go", - "shared/contracts/ai-commit.md", - "shared/fixtures/ai/commit-generation-v1.json", - "shared/fixtures/git/commit-message-context-v1.json", "desktop/internal/workbench/ai_provider.go", "desktop/internal/workbench/ai_provider_test.go", "desktop/internal/settingswindow/ai_generation_view.go" @@ -33,9 +30,6 @@ "desktop/internal/core/ai_generation.go", "desktop/internal/core/ai_generation_test.go", "desktop/internal/i18n/ai_messages.go", - "shared/contracts/ai-commit.md", - "shared/fixtures/ai/commit-generation-v1.json", - "shared/fixtures/git/commit-message-context-v1.json", "desktop/internal/workbench/ai_provider.go", "desktop/internal/workbench/ai_provider_test.go", "desktop/internal/settingswindow/ai_generation_view.go" diff --git a/shared/platform-feature-matrix/features/ai-inline-edit.json b/shared/platform-feature-matrix/features/ai-inline-edit.json index 7b83d7163a..2a8c960290 100644 --- a/shared/platform-feature-matrix/features/ai-inline-edit.json +++ b/shared/platform-feature-matrix/features/ai-inline-edit.json @@ -12,9 +12,7 @@ "desktop/internal/workbench/inlinediff.go", "desktop/internal/workbench/inlinediff_test.go", "desktop/internal/core/ai_generation.go", - "desktop/internal/core/ai_generation_test.go", - "shared/contracts/ai-generation-requests.md", - "shared/fixtures/ai/inline-edit-v1.json" + "desktop/internal/core/ai_generation_test.go" ] }, "windows": { @@ -26,9 +24,7 @@ "desktop/internal/workbench/inlinediff.go", "desktop/internal/workbench/inlinediff_test.go", "desktop/internal/core/ai_generation.go", - "desktop/internal/core/ai_generation_test.go", - "shared/contracts/ai-generation-requests.md", - "shared/fixtures/ai/inline-edit-v1.json" + "desktop/internal/core/ai_generation_test.go" ] }, "owner": "AI", diff --git a/shared/platform-feature-matrix/features/debug-disassembly.json b/shared/platform-feature-matrix/features/debug-disassembly.json index 74a37f1b94..35acbf0ea2 100644 --- a/shared/platform-feature-matrix/features/debug-disassembly.json +++ b/shared/platform-feature-matrix/features/debug-disassembly.json @@ -12,7 +12,6 @@ "desktop/internal/workbench/debug_state_test.go", "desktop/internal/core/debug_state.go", "desktop/internal/core/debug_state_test.go", - "shared/fixtures/debug/disassembly-paging-v1.json", "desktop/internal/workbench/debug_memory.go", "desktop/internal/workbench/debug_memory_test.go" ] @@ -26,13 +25,12 @@ "desktop/internal/workbench/debug_state_test.go", "desktop/internal/core/debug_state.go", "desktop/internal/core/debug_state_test.go", - "shared/fixtures/debug/disassembly-paging-v1.json", "desktop/internal/workbench/debug_memory.go", "desktop/internal/workbench/debug_memory_test.go" ] }, "owner": "Debug", - "verification": "macOS:用只带符号表、没有调试信息的 C 程序(含 raise(SIGTRAP))经 Xcode lldb-dap 启动调试,暂停后栈帧显示函数名与地址而不是伪造的文件和第 1 行,反汇编标签自动打开并高亮当前指令;适配器不声明 supportsDisassembleRequest 时没有反汇编标签。反汇编中单步改为按指令前进(仅适配器声明 supportsSteppingGranularity 时),关闭反汇编标签后恢复按行单步;点击地址栏设置或移除指令断点(仅适配器声明 supportsInstructionBreakpoints 时),断点只属于当前会话、不写入持久化,新会话不重放。反汇编打开时,步过/步入的按钮提示变为按指令单步,头部显示“按指令单步”;适配器不支持时头部提示单步仍按源码行前进。寄存器作用域出现在寄存器标签,内存标签接受地址或保存着地址的表达式,从目标地址前 64 字节读起并分页,目标字节在十六进制和 ASCII 两侧高亮并滚入可见区,读取不到的字节显示为缺失而不是 00;右侧显示设置可切换进制、每格字节数、每行字节数、字节序与 ASCII 列;只读内存,不开放 writeMemory。连续单步时线程、调用栈、变量、反汇编、内存与 JSON 视图原地更新,不整面板清空重画,变化的内存字节被标出,继续执行或会话结束才清空。单步暂停到新作用域返回之前,旧变量树与 JSON 仍不可操作;同步取消和切换会话后的旧反汇编失败不重试、不覆盖保留的内存;传输失败清空保留数据。内存偏移表头使用请求引用而不是返回的页首地址。地址和引用对宿主是不透明字符串,宿主不做地址运算、不内置 CPU 寄存器表,也不按适配器 ID 分支。Windows 尚未实现,共享 Rust 内核已经提供能力快照与 debug.inspect 的 disassemble、readMemory,待 React 界面接入。 macOS 反汇编短指令从左侧地址列开始,长指令可横向滚动,当前指令定位只改变纵向位置;接近上下边缘时自动补充有界指令页,不再点击加载更早/更晚按钮。上方插入保留可见指令像素位置,下方追加不跳回当前指令;同页重复地址和无进展停止、失败需显式重试,关闭/继续执行后的迟到页面不得覆盖。运行 DebugDisassemblyLayoutTests 与 DebugModuleTests,真实 lldb-dap 连续滚动验收仍待完成。 映像边界回归:上下页被适配器拒绝后按 64→32→16→8→4→2→1 条缩小,不跳过仍可读取的相邻指令;单条相邻读取失败且原边缘仍可读才停止该方向,不显示永久失败条。空白无效补位不得成为分页地址,另一方向仍可滚动;超时/停止/无效回复继续显示重试,验证迟到不覆盖新暂停点。独立真实 lldb-dap 21/C 程序已复现首地址的负偏移失败与零偏移成功;运行新增 DebugModuleTests 边界回归及原生错误条左对齐测试,完整工作台连续滚动仍 pending。 RUN-14:分页恢复(窗口二分缩小、首窗口负偏移回退、边缘探测与耗尽判定、重复地址去重)已下沉为 Core 的 debug.planDisassemblyWindow / debug.reduceDisassemblyPage,macOS 删除本地实现并复用 shared/fixtures/debug/disassembly-paging-v1.json 同一组用例;视口、滚动锚点和渲染仍由宿主负责。Windows 宿主尚未开放 disassemble 与 readMemory 请求(debug_send_request 只翻译 threads/stackTrace/scopes/variables/evaluate 等),因此 Windows 仍为 missing;开放后直接调用这两个 Core 命令,不再复制算法。", + "verification": "macOS:用只带符号表、没有调试信息的 C 程序(含 raise(SIGTRAP))经 Xcode lldb-dap 启动调试,暂停后栈帧显示函数名与地址而不是伪造的文件和第 1 行,反汇编标签自动打开并高亮当前指令;适配器不声明 supportsDisassembleRequest 时没有反汇编标签。反汇编中单步改为按指令前进(仅适配器声明 supportsSteppingGranularity 时),关闭反汇编标签后恢复按行单步;点击地址栏设置或移除指令断点(仅适配器声明 supportsInstructionBreakpoints 时),断点只属于当前会话、不写入持久化,新会话不重放。反汇编打开时,步过/步入的按钮提示变为按指令单步,头部显示“按指令单步”;适配器不支持时头部提示单步仍按源码行前进。寄存器作用域出现在寄存器标签,内存标签接受地址或保存着地址的表达式,从目标地址前 64 字节读起并分页,目标字节在十六进制和 ASCII 两侧高亮并滚入可见区,读取不到的字节显示为缺失而不是 00;右侧显示设置可切换进制、每格字节数、每行字节数、字节序与 ASCII 列;只读内存,不开放 writeMemory。连续单步时线程、调用栈、变量、反汇编、内存与 JSON 视图原地更新,不整面板清空重画,变化的内存字节被标出,继续执行或会话结束才清空。单步暂停到新作用域返回之前,旧变量树与 JSON 仍不可操作;同步取消和切换会话后的旧反汇编失败不重试、不覆盖保留的内存;传输失败清空保留数据。内存偏移表头使用请求引用而不是返回的页首地址。地址和引用对宿主是不透明字符串,宿主不做地址运算、不内置 CPU 寄存器表,也不按适配器 ID 分支。Windows 尚未实现,共享 Rust 内核已经提供能力快照与 debug.inspect 的 disassemble、readMemory,待 React 界面接入。 macOS 反汇编短指令从左侧地址列开始,长指令可横向滚动,当前指令定位只改变纵向位置;接近上下边缘时自动补充有界指令页,不再点击加载更早/更晚按钮。上方插入保留可见指令像素位置,下方追加不跳回当前指令;同页重复地址和无进展停止、失败需显式重试,关闭/继续执行后的迟到页面不得覆盖。运行 DebugDisassemblyLayoutTests 与 DebugModuleTests,真实 lldb-dap 连续滚动验收仍待完成。 映像边界回归:上下页被适配器拒绝后按 64→32→16→8→4→2→1 条缩小,不跳过仍可读取的相邻指令;单条相邻读取失败且原边缘仍可读才停止该方向,不显示永久失败条。空白无效补位不得成为分页地址,另一方向仍可滚动;超时/停止/无效回复继续显示重试,验证迟到不覆盖新暂停点。独立真实 lldb-dap 21/C 程序已复现首地址的负偏移失败与零偏移成功;运行新增 DebugModuleTests 边界回归及原生错误条左对齐测试,完整工作台连续滚动仍 pending。 RUN-14:分页恢复(窗口二分缩小、首窗口负偏移回退、边缘探测与耗尽判定、重复地址去重)已下沉为 Core 的 debug.planDisassemblyWindow / debug.reduceDisassemblyPage,macOS 删除本地实现并复用 Core 的 rust/fixtures/debug/disassembly-paging-v1.json 同一组用例;视口、滚动锚点和渲染仍由宿主负责。Windows 宿主尚未开放 disassemble 与 readMemory 请求(debug_send_request 只翻译 threads/stackTrace/scopes/variables/evaluate 等),因此 Windows 仍为 missing;开放后直接调用这两个 Core 命令,不再复制算法。", "legacy": { "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", "macos": { diff --git a/shared/platform-feature-matrix/features/debug-state.json b/shared/platform-feature-matrix/features/debug-state.json index 5e9bbc780a..0c14aaccfb 100644 --- a/shared/platform-feature-matrix/features/debug-state.json +++ b/shared/platform-feature-matrix/features/debug-state.json @@ -13,7 +13,6 @@ "desktop/internal/workbench/debug_state_test.go", "desktop/internal/core/debug_state.go", "desktop/internal/core/debug_state_test.go", - "shared/fixtures/debug/variable-page-plan-v1.json", "desktop/internal/workbench/debug_threads.go", "desktop/internal/workbench/debug_watch.go", "desktop/internal/workbench/debug_threads_test.go", @@ -34,7 +33,6 @@ "desktop/internal/workbench/debug_state_test.go", "desktop/internal/core/debug_state.go", "desktop/internal/core/debug_state_test.go", - "shared/fixtures/debug/variable-page-plan-v1.json", "desktop/internal/workbench/debug_threads.go", "desktop/internal/workbench/debug_watch.go", "desktop/internal/workbench/debug_threads_test.go", @@ -46,7 +44,7 @@ ] }, "owner": "Debug", - "verification": "验证变量分页、异常信息、step filters、暂停/继续和 disconnect policy。 Windows验证DAP请求信封、初始断点先于launch入队、暂停线程与线程列表、继续后清空暂停状态、快速单步/失败回滚,以及并发Stop等待同一资源清理。 macOS验证Debug空状态的初始、活跃、无输出终止、关闭最后会话、失败重试、重置,以及明暗主题与配置/帮助链接。 macOS检查活动会话的标题与内容标签焦点、单行工具栏、控制台/变量切换、现有求值与程序输入、窄宽度及停止操作。 macOS验证明暗图标/禁用灰度、Console ANSI常规与亮色、1pt缩放及边界、嵌套折叠/展开/复制/源码链接、内容标签切换保留状态和400k字符范围性能。 检查首次启动/重新启动默认Console、暂停切换,以及13pt为22pt行高、折叠占位和字号改变后行高一致。 检查主工具栏运行/调试重启的绿色底与白色图标、停止红底、明暗主题、hover/按下与默认箭头光标,并验证原有启动/停止动作。 检查各会话状态均不在内容标签旁显示状态文字/圆点,暂停位置仍可跳转。 验证分块SGR、非法/超长CSI过滤、Logback时间/线程/级别/类名颜色及字重、折叠占位手形和展开后左侧9pt标记点击、原文复制及滚动/缩放。 检查收起标记展开、展开标记收起的完整往返及深浅主题资源。 验证内联输入的Enter/空行、发送失败保留、历史正文保护、输出追加与IME/光标保持、会话结束和切换、明暗主题、源码链接/折叠点击、求值与添加监视及历史菜单。 检查Debug标题/工具栏/线程选择/求值/变量监视/Console诊断条的共享1pt横线,线程变量及Performance拖动分隔线的深浅主题、收起恢复、hover与按住不变亮,并确认动作组短竖线和对话框保留各自共享样式。 Console六个左侧动作在明暗主题加载真实16pt SVG;上下箭头深色资源不回退浅色,禁用态只应用IDEA灰度一次,按钮hover复用Git Log共享入口。 Console折叠标记在真实NSScrollView中检查深浅主题实际像素与收起/展开往返点击;追加输出与滚动后折叠栏重绘,不能只验证锚点存在。 Threads & Variables核对线程/作用域菜单、13pt普通标题与代码内容、原始16pt明暗New UI图标、变量展开/加载/层级、求值/添加监视/刷新及灰度、占位/IME和焦点;暂停后的真实变量修改与求值保持原动作。 StatusText深浅主题像素检查居中、三分之一高度与文字行高;检查运行/暂停/终止、变量为空而监视非空、异常非空、线程切换/栈帧选择、Enter求值、添加监视/历史菜单;默认1:2与拖动后宽度、背景开关均保持。 Console上一处/下一处对相同URL的不同文字范围逐一导航、回绕及后退,替换输出后重置定位。 添加监视:空白求值输入禁用内联 Add to Watch,非空表达式点击后进入 Watches;下方+打开共享样式弹窗,检查新增/编辑初值、自动聚焦、共享输入边框和焦点环、中文输入法、空白禁存、Enter保存和Esc取消。 Watch新增和编辑不使用系统sheet;确认弹层从Watches的+锚定,无弹出动画,8pt共享外框及1pt边框,Enter保存、Esc和外部点击关闭,再次编辑显示正确初值。 Console源码导航在未定位时,首次下一处定位第一条、首次上一处定位最后一条;重复URL逐个范围遍历并回绕,输出替换且URL/范围相同时也重置位置。 主动Stop最后运行会话后保留Console日志及内容标签,停留Threads & Variables仍可切回Console;清空无错误的历史后恢复空状态。Console源码导航按钮在无链接→有链接→清空输出时正确禁用/启用,排队通知被新渲染覆盖或原生视图卸载后不得回写旧状态。 双Debug会话中A终端不可输入或绑定缺失、B终端可输入时,A Console必须禁用并拒绝发送给B;选中B后正常发送。超过400000字符时,前台及后台会话按完整SGR边界截断并恢复有效颜色和粗体,覆盖跨chunk、标准/256/真彩、重置及Unicode,缓存仍有界。 验证变量分页、异常信息、step filters、暂停/继续和 disconnect policy。 Windows验证DAP请求信封、初始断点先于launch入队、暂停线程与线程列表、继续后清空暂停状态、快速单步/失败回滚,以及并发Stop等待同一资源清理。macOS Debug 与 Run 复用 OutputTextView 的 IDEA 控制台入口,检查 13pt 字体、ANSI 明暗配色及源码链接高亮一致,不按日志级别给普通输出整行重新着色。 macOS:Run、Debug、Test 共用 OutputTextView/LitheConsoleStyle 默认字体、行高和日志等级色;纯文本及 Maven/Spring ANSI 日志的 INFO 标签均为绿色、WARN 黄色、ERROR 红色,正文及其他 ANSI 片段保留;检查明暗主题、复制、折叠与源码链接。 macOS多会话:startDebugging 子会话带父链接且不抢provider选择、子会话启动前重放已有断点、停止父会话同时停止子会话、功能模型清理子会话快照并回退选择;线程选择器会话分组缩进、状态圆点及单会话右键停止。Windows 暂无多会话实现。 RUN-06:变量分页游标改由 Core debug.planVariablePage / debug.reduceVariablePage 决定(命名与索引子项分段、重复页丢弃、耗尽判定),macOS 删除本地分页状态机,两端共用 shared/fixtures/debug/variable-page-plan-v1.json。Windows 现在保留 Scope 与变量的 namedVariables/indexedVariables,按需只请求非 expensive 的 Scope(expensive 作用域由用户点击加载),首页和后续页携带 filter/start/count,“加载更多”继续取下一页;Windows 前端用 bun test 的 debug-adapter-events.test.ts 验证,真实 Windows 调试会话仍 pending。RUN-07:Windows 栈帧保留 sourceReference、instructionPointerReference 与 isFiltered;带 sourceReference 的栈帧不再把 sourcePath 当磁盘文件打开或高亮,被步进策略过滤的帧在调用栈中淡化。Windows 暂未提供读取 adapter 托管源码内容(source 请求)的界面,反编译/反汇编源码内容的展示仍待后续。 Viva 单步过滤:运行 scripts/desktop/desktop-go.sh test ./internal/settingswindow -run Stepping、./internal/workbench -run 'Stepping|CallStack|DebugFrameRows|DebugLaunch' 与 ./internal/core -run Stepping;实机在设置中改 Java 调试器的不进入类并应用,下一次调试单步不进入这些类,调用栈折叠行可点开。", + "verification": "验证变量分页、异常信息、step filters、暂停/继续和 disconnect policy。 Windows验证DAP请求信封、初始断点先于launch入队、暂停线程与线程列表、继续后清空暂停状态、快速单步/失败回滚,以及并发Stop等待同一资源清理。 macOS验证Debug空状态的初始、活跃、无输出终止、关闭最后会话、失败重试、重置,以及明暗主题与配置/帮助链接。 macOS检查活动会话的标题与内容标签焦点、单行工具栏、控制台/变量切换、现有求值与程序输入、窄宽度及停止操作。 macOS验证明暗图标/禁用灰度、Console ANSI常规与亮色、1pt缩放及边界、嵌套折叠/展开/复制/源码链接、内容标签切换保留状态和400k字符范围性能。 检查首次启动/重新启动默认Console、暂停切换,以及13pt为22pt行高、折叠占位和字号改变后行高一致。 检查主工具栏运行/调试重启的绿色底与白色图标、停止红底、明暗主题、hover/按下与默认箭头光标,并验证原有启动/停止动作。 检查各会话状态均不在内容标签旁显示状态文字/圆点,暂停位置仍可跳转。 验证分块SGR、非法/超长CSI过滤、Logback时间/线程/级别/类名颜色及字重、折叠占位手形和展开后左侧9pt标记点击、原文复制及滚动/缩放。 检查收起标记展开、展开标记收起的完整往返及深浅主题资源。 验证内联输入的Enter/空行、发送失败保留、历史正文保护、输出追加与IME/光标保持、会话结束和切换、明暗主题、源码链接/折叠点击、求值与添加监视及历史菜单。 检查Debug标题/工具栏/线程选择/求值/变量监视/Console诊断条的共享1pt横线,线程变量及Performance拖动分隔线的深浅主题、收起恢复、hover与按住不变亮,并确认动作组短竖线和对话框保留各自共享样式。 Console六个左侧动作在明暗主题加载真实16pt SVG;上下箭头深色资源不回退浅色,禁用态只应用IDEA灰度一次,按钮hover复用Git Log共享入口。 Console折叠标记在真实NSScrollView中检查深浅主题实际像素与收起/展开往返点击;追加输出与滚动后折叠栏重绘,不能只验证锚点存在。 Threads & Variables核对线程/作用域菜单、13pt普通标题与代码内容、原始16pt明暗New UI图标、变量展开/加载/层级、求值/添加监视/刷新及灰度、占位/IME和焦点;暂停后的真实变量修改与求值保持原动作。 StatusText深浅主题像素检查居中、三分之一高度与文字行高;检查运行/暂停/终止、变量为空而监视非空、异常非空、线程切换/栈帧选择、Enter求值、添加监视/历史菜单;默认1:2与拖动后宽度、背景开关均保持。 Console上一处/下一处对相同URL的不同文字范围逐一导航、回绕及后退,替换输出后重置定位。 添加监视:空白求值输入禁用内联 Add to Watch,非空表达式点击后进入 Watches;下方+打开共享样式弹窗,检查新增/编辑初值、自动聚焦、共享输入边框和焦点环、中文输入法、空白禁存、Enter保存和Esc取消。 Watch新增和编辑不使用系统sheet;确认弹层从Watches的+锚定,无弹出动画,8pt共享外框及1pt边框,Enter保存、Esc和外部点击关闭,再次编辑显示正确初值。 Console源码导航在未定位时,首次下一处定位第一条、首次上一处定位最后一条;重复URL逐个范围遍历并回绕,输出替换且URL/范围相同时也重置位置。 主动Stop最后运行会话后保留Console日志及内容标签,停留Threads & Variables仍可切回Console;清空无错误的历史后恢复空状态。Console源码导航按钮在无链接→有链接→清空输出时正确禁用/启用,排队通知被新渲染覆盖或原生视图卸载后不得回写旧状态。 双Debug会话中A终端不可输入或绑定缺失、B终端可输入时,A Console必须禁用并拒绝发送给B;选中B后正常发送。超过400000字符时,前台及后台会话按完整SGR边界截断并恢复有效颜色和粗体,覆盖跨chunk、标准/256/真彩、重置及Unicode,缓存仍有界。 验证变量分页、异常信息、step filters、暂停/继续和 disconnect policy。 Windows验证DAP请求信封、初始断点先于launch入队、暂停线程与线程列表、继续后清空暂停状态、快速单步/失败回滚,以及并发Stop等待同一资源清理。macOS Debug 与 Run 复用 OutputTextView 的 IDEA 控制台入口,检查 13pt 字体、ANSI 明暗配色及源码链接高亮一致,不按日志级别给普通输出整行重新着色。 macOS:Run、Debug、Test 共用 OutputTextView/LitheConsoleStyle 默认字体、行高和日志等级色;纯文本及 Maven/Spring ANSI 日志的 INFO 标签均为绿色、WARN 黄色、ERROR 红色,正文及其他 ANSI 片段保留;检查明暗主题、复制、折叠与源码链接。 macOS多会话:startDebugging 子会话带父链接且不抢provider选择、子会话启动前重放已有断点、停止父会话同时停止子会话、功能模型清理子会话快照并回退选择;线程选择器会话分组缩进、状态圆点及单会话右键停止。Windows 暂无多会话实现。 RUN-06:变量分页游标改由 Core debug.planVariablePage / debug.reduceVariablePage 决定(命名与索引子项分段、重复页丢弃、耗尽判定),macOS 删除本地分页状态机,两端共用 Core 的 rust/fixtures/debug/variable-page-plan-v1.json。Windows 现在保留 Scope 与变量的 namedVariables/indexedVariables,按需只请求非 expensive 的 Scope(expensive 作用域由用户点击加载),首页和后续页携带 filter/start/count,“加载更多”继续取下一页;Windows 前端用 bun test 的 debug-adapter-events.test.ts 验证,真实 Windows 调试会话仍 pending。RUN-07:Windows 栈帧保留 sourceReference、instructionPointerReference 与 isFiltered;带 sourceReference 的栈帧不再把 sourcePath 当磁盘文件打开或高亮,被步进策略过滤的帧在调用栈中淡化。Windows 暂未提供读取 adapter 托管源码内容(source 请求)的界面,反编译/反汇编源码内容的展示仍待后续。 Viva 单步过滤:运行 scripts/desktop/desktop-go.sh test ./internal/settingswindow -run Stepping、./internal/workbench -run 'Stepping|CallStack|DebugFrameRows|DebugLaunch' 与 ./internal/core -run Stepping;实机在设置中改 Java 调试器的不进入类并应用,下一次调试单步不进入这些类,调用栈折叠行可点开。", "notes": "Viva 的 Debug 工具窗口按选中栈帧加载作用域与变量,大容器分页由 Core 的 planVariablePage/reduceVariablePage 决定;暂停且适配器支持时可修改变量;异常断点按适配器声明的过滤器勾选,选择随项目保留并发给 Core。本轮接入 Core 的 threads 检查:停止后列线程并可切换线程重载栈;求值与监视使用 DAP watch 上下文在当前帧求值,监视表达式跨停止保留并自动重求值,拒绝的表达式显示在各自行。单步过滤:设置 > 构建、执行、部署 页的“调试器单步”卡片按适配器(声明了 features.stepFilters 的已安装插件)编辑不进入的类、跳过合成方法/静态初始化块/构造方法与调用栈折叠,起始值是插件声明的默认值,“应用”经 Core debug.steppingFilters 校验整理后存入 desktop 设置的 debugSteppingFilters,“恢复插件默认值”删除覆盖;下一次启动随 launch 的 steppingFilters 发给 Core。调用栈淡化 isFiltered 帧,开启折叠时连续被过滤的帧(顶帧与选中帧除外)合成一行,点击展开到下一次停止。线程菜单可在适配器声明 supportsSingleThreadExecutionRequests 时经 Core debug.execute(singleThread)单独继续一个线程,会话仍为暂停,被继续的线程在选择器标“运行中”且不再显示栈;Core 只在会话运行时接受暂停,所以单独继续的线程在会话暂停期间暂不能单独暂停(菜单项禁用)。监视表达式可双击或经右键“编辑”行内修改,Enter 或焦点离开保存并重新求值,Esc 取消。尚未接入异常信息、断开策略的用户设置与求值输入历史。", "legacy": { "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", diff --git a/shared/platform-feature-matrix/features/debug-tcp-transport.json b/shared/platform-feature-matrix/features/debug-tcp-transport.json index 0680ed13d8..dc0ae17ba2 100644 --- a/shared/platform-feature-matrix/features/debug-tcp-transport.json +++ b/shared/platform-feature-matrix/features/debug-tcp-transport.json @@ -12,8 +12,7 @@ "desktop/internal/workbench/debug_start.go", "desktop/internal/workbench/debug_tcp_test.go", "desktop/internal/core/debug_transport.go", - "desktop/internal/core/debug_state_test.go", - "shared/fixtures/debug/transport-lifecycle-v1.json" + "desktop/internal/core/debug_state_test.go" ] }, "windows": { @@ -25,8 +24,7 @@ "desktop/internal/workbench/debug_start.go", "desktop/internal/workbench/debug_tcp_test.go", "desktop/internal/core/debug_transport.go", - "desktop/internal/core/debug_state_test.go", - "shared/fixtures/debug/transport-lifecycle-v1.json" + "desktop/internal/core/debug_state_test.go" ] }, "owner": "Debug", diff --git a/shared/platform-feature-matrix/features/declarative-plugin-settings.json b/shared/platform-feature-matrix/features/declarative-plugin-settings.json index 5128f3ed11..70ab5134d3 100644 --- a/shared/platform-feature-matrix/features/declarative-plugin-settings.json +++ b/shared/platform-feature-matrix/features/declarative-plugin-settings.json @@ -30,15 +30,12 @@ "desktop/internal/workbench/settings_plugin_actions.go", "desktop/internal/workbench/settings_plugin_actions_test.go", "desktop/internal/pluginservice/settings_actions_test.go", - "shared/fixtures/plugins/settings-actions.json", - "shared/fixtures/plugins/settings-function-provider.json", "desktop/internal/core/settings_surfaces.go", "desktop/internal/core/settings_surfaces_test.go", "desktop/internal/settingswindow/settings_surfaces.go", "desktop/internal/settingswindow/settings_surfaces_test.go", "desktop/internal/workbench/settings_publication.go", "desktop/internal/workbench/settings_publication_test.go", - "shared/fixtures/plugins/settings-surfaces.json", "desktop/internal/settingswindow/installed_view.go", "desktop/internal/settingswindow/installed_view_test.go" ] @@ -70,15 +67,12 @@ "desktop/internal/workbench/settings_plugin_actions.go", "desktop/internal/workbench/settings_plugin_actions_test.go", "desktop/internal/pluginservice/settings_actions_test.go", - "shared/fixtures/plugins/settings-actions.json", - "shared/fixtures/plugins/settings-function-provider.json", "desktop/internal/core/settings_surfaces.go", "desktop/internal/core/settings_surfaces_test.go", "desktop/internal/settingswindow/settings_surfaces.go", "desktop/internal/settingswindow/settings_surfaces_test.go", "desktop/internal/workbench/settings_publication.go", "desktop/internal/workbench/settings_publication_test.go", - "shared/fixtures/plugins/settings-surfaces.json", "desktop/internal/settingswindow/installed_view.go", "desktop/internal/settingswindow/installed_view_test.go" ] diff --git a/shared/platform-feature-matrix/features/editor-go-to-line.json b/shared/platform-feature-matrix/features/editor-go-to-line.json index 7fdbe261a0..59446d2dd3 100644 --- a/shared/platform-feature-matrix/features/editor-go-to-line.json +++ b/shared/platform-feature-matrix/features/editor-go-to-line.json @@ -11,8 +11,7 @@ "desktop/internal/editorview/view.go", "desktop/internal/workbench/navigation.go", "desktop/internal/workbench/navigation_test.go", - "desktop/internal/workbench/editor_menu.go", - "shared/fixtures/editor/navigation-input-v1.json" + "desktop/internal/workbench/editor_menu.go" ] }, "windows": { @@ -23,8 +22,7 @@ "desktop/internal/editorview/view.go", "desktop/internal/workbench/navigation.go", "desktop/internal/workbench/navigation_test.go", - "desktop/internal/workbench/editor_menu.go", - "shared/fixtures/editor/navigation-input-v1.json" + "desktop/internal/workbench/editor_menu.go" ] }, "owner": "Editor", diff --git a/shared/platform-feature-matrix/features/editor-ide-settings-import.json b/shared/platform-feature-matrix/features/editor-ide-settings-import.json index 852b5923d9..34496dce34 100644 --- a/shared/platform-feature-matrix/features/editor-ide-settings-import.json +++ b/shared/platform-feature-matrix/features/editor-ide-settings-import.json @@ -7,16 +7,14 @@ "implementationStatus": "partial", "verificationStatus": "pending", "evidence": [ - "desktop/internal/pluginhost/pluginhost.go", - "shared/contracts/rust-core-api.md" + "desktop/internal/pluginhost/pluginhost.go" ] }, "windows": { "implementationStatus": "partial", "verificationStatus": "pending", "evidence": [ - "desktop/internal/pluginhost/pluginhost.go", - "shared/contracts/rust-core-api.md" + "desktop/internal/pluginhost/pluginhost.go" ] }, "owner": "Editor / Settings", diff --git a/shared/platform-feature-matrix/features/editor-unicode-text-classification.json b/shared/platform-feature-matrix/features/editor-unicode-text-classification.json index 41bc418e93..9da16c9c39 100644 --- a/shared/platform-feature-matrix/features/editor-unicode-text-classification.json +++ b/shared/platform-feature-matrix/features/editor-unicode-text-classification.json @@ -10,8 +10,7 @@ "evidence": [ "desktop/internal/core/documents.go", "desktop/internal/workbench/documents.go", - "desktop/internal/workbench/documents_test.go", - "shared/fixtures/editor/text-content-v1.json" + "desktop/internal/workbench/documents_test.go" ] }, "windows": { @@ -20,8 +19,7 @@ "evidence": [ "desktop/internal/core/documents.go", "desktop/internal/workbench/documents.go", - "desktop/internal/workbench/documents_test.go", - "shared/fixtures/editor/text-content-v1.json" + "desktop/internal/workbench/documents_test.go" ] }, "verification": "双端打开高中文比例的 .properties 和未知扩展名 UTF-8 文件,编辑保存后恢复会话并验证内容及编码;验证 properties 高亮、emoji 跨边界、NUL 和控制字符拒绝、读取错误独立报告,并执行 text-content-v1.json 共享规则样例。", diff --git a/shared/platform-feature-matrix/features/lsp-diagnostics.json b/shared/platform-feature-matrix/features/lsp-diagnostics.json index 98d59267cf..c4637d4fdf 100644 --- a/shared/platform-feature-matrix/features/lsp-diagnostics.json +++ b/shared/platform-feature-matrix/features/lsp-diagnostics.json @@ -15,7 +15,6 @@ "desktop/internal/workbench/problems.go", "desktop/internal/workbench/problems_view.go", "desktop/internal/workbench/plugindiagnostics.go", - "shared/fixtures/lsp/problems-query-v1.json", "desktop/internal/workbench/problems_test.go", "desktop/internal/core/problems_test.go", "desktop/internal/workbench/pluginsync.go", @@ -38,7 +37,6 @@ "desktop/internal/workbench/problems.go", "desktop/internal/workbench/problems_view.go", "desktop/internal/workbench/plugindiagnostics.go", - "shared/fixtures/lsp/problems-query-v1.json", "desktop/internal/workbench/problems_test.go", "desktop/internal/core/problems_test.go", "desktop/internal/workbench/pluginsync.go", diff --git a/shared/platform-feature-matrix/features/lsp-document-identity.json b/shared/platform-feature-matrix/features/lsp-document-identity.json index 44cdbb91b3..f1ce9b4411 100644 --- a/shared/platform-feature-matrix/features/lsp-document-identity.json +++ b/shared/platform-feature-matrix/features/lsp-document-identity.json @@ -14,9 +14,7 @@ "desktop/internal/core/plugin_documents.go", "desktop/internal/core/plugin_documents_test.go", "desktop/internal/workbench/plugindiagnostics.go", - "desktop/internal/workbench/plugindiagnostics_test.go", - "shared/fixtures/lsp/document-identity-v1.json", - "shared/contracts/rust-core-api.md" + "desktop/internal/workbench/plugindiagnostics_test.go" ] }, "windows": { @@ -30,9 +28,7 @@ "desktop/internal/core/plugin_documents.go", "desktop/internal/core/plugin_documents_test.go", "desktop/internal/workbench/plugindiagnostics.go", - "desktop/internal/workbench/plugindiagnostics_test.go", - "shared/fixtures/lsp/document-identity-v1.json", - "shared/contracts/rust-core-api.md" + "desktop/internal/workbench/plugindiagnostics_test.go" ] }, "owner": "Language Intelligence", diff --git a/shared/platform-feature-matrix/features/plugin-debug-adapters.json b/shared/platform-feature-matrix/features/plugin-debug-adapters.json index 42191ad606..a9d69dfb27 100644 --- a/shared/platform-feature-matrix/features/plugin-debug-adapters.json +++ b/shared/platform-feature-matrix/features/plugin-debug-adapters.json @@ -28,7 +28,7 @@ ] }, "owner": "Debug", - "verification": "macOS:安装声明了 debugAdapters 的插件,在其语言文件上启动调试,确认适配器按声明的 stdio 传输由宿主拉起并命中断点;可执行文件缺失时显示插件设置里的安装提示而不是笼统错误;声明 tcpPort 或 tcpAnnounced 传输的适配器在启动进程前被拒绝并说明原因。声明 tcpLanguageServer 传输的适配器(调试服务随同一插件的语言服务器运行,如 Java Debug Server 之于 JDT LS)不由宿主拉起进程:宿主启动该插件声明的语言服务器,用 endpoint.command 向它要端口并连接 127.0.0.1,端口无效、语言服务器不属于该插件或不可用时会话以原因结束。从保存配置直接启动且未打开源码时也会激活、登记语言服务器并探测工具;停止调试取消端口命令而不停止共享语言服务器,拒绝工作区或会话替换后的旧端口。适配器只声明 attach,或 selectors 的 targetKinds 不含 file 时,不会被选作文件启动的调试器;Java 在迁入 Java Support 插件前仍使用宿主自带适配器。capabilities.disabled 中的能力在调试会话里不可用,并随 debug.createSession 传给 Core。会话进行中禁用、更新或卸载该插件,或在模块设置里停用它,只停止该插件拥有的会话,同语言其他插件的会话继续运行。启动后 app bundle 文件清单不变(scripts/desktop/verify/verify-runtime-bundle-immutability.sh)。远程 attach 目前只有 Core 契约:attach 配置可声明 targetBindings.connection,Core 校验主机、端口与路径映射并按适配器自己的参数路径写入启动参数,非 localhost、127.0.0.0/8、::1 的端点返回 remote:true;macOS 宿主尚未接入 attach 与“附加到远程”对话框,因此本项暂不能在应用里验证远程附加,接入后补充:连接新的非回环端点前必须弹确认且默认不记住,附加结束只断开不结束远端程序。Windows:宿主尚未接入 debugAdapters,Core 校验通过不代表 Windows 能调试插件语言。 原生宿主路由回归:使用 shared/fixtures/debug/adapter-selection-v1.json 验证自动文件选择、明确身份、无源文件目标、空身份、已撤回身份和 launch/attach 不匹配;同语言多个适配器分别收到断点,重试保持身份,附加会话启动失败保留原会话。这里只验证宿主交接与受控会话,Provider 原生程序准备 RPC 有受控流程与真实 SDK 进程覆盖;真实适配器的完整工作流与 Windows 接入仍未验收。 真实原生调试集成:公开 Node SDK Provider 用 Clang 编译 C 程序,经生产 macOS 会话、Core 准备、Registry 明确身份、生产 stdio 传输和 LLDB 命中源码断点、读取 main 栈帧、保留空格参数后继续并退出码 0;包 SHA-256/权限不变,所有本次进程回收。测试显式选择 SDK/工具,完整 UI、正式发行与 Windows 尚未验收,verification 保持 pending。 与显式 DAP 端点同时使用时,先按当前 Registry 身份校验请求能力,再调用端点工厂;launch/attach 与默认/明确身份的组合回归覆盖不会回退到本地适配器,配置编码与步进变换保留两个字段。 Windows 增量:服务目标显式保存并调试,唯一当前 Registry 类型/身份、Core 连接绑定、stdio/同包语言服务器、完整参数/初始化身份/禁用能力;覆盖重复/缺失适配器、包和设置变化、注册 ABA、监听取消、迟到启动回执、Run 退出/替换、清理失败重试。原生能力准入仍关闭,正式 Windows 适配器与真实框架断点 UI 尚未验收。 日志验收:在最新macOS宿主分别启动、初始化、暂停/继续、正常结束、取消、超时和适配器拒绝,确认debug/的关键生命周期INFO、内部状态DEBUG、真实失败ERROR;启动与原生进程非零退出固定stage/exit_code进入debug,原始stderr、DAP正文、源码、变量、内存和程序输出不进入诊断日志。同一次launch失败不能重复记session失败,取消不记ERROR。共享Core组件验证不能替代macOS真实UI和Windows v2验收。", + "verification": "macOS:安装声明了 debugAdapters 的插件,在其语言文件上启动调试,确认适配器按声明的 stdio 传输由宿主拉起并命中断点;可执行文件缺失时显示插件设置里的安装提示而不是笼统错误;声明 tcpPort 或 tcpAnnounced 传输的适配器在启动进程前被拒绝并说明原因。声明 tcpLanguageServer 传输的适配器(调试服务随同一插件的语言服务器运行,如 Java Debug Server 之于 JDT LS)不由宿主拉起进程:宿主启动该插件声明的语言服务器,用 endpoint.command 向它要端口并连接 127.0.0.1,端口无效、语言服务器不属于该插件或不可用时会话以原因结束。从保存配置直接启动且未打开源码时也会激活、登记语言服务器并探测工具;停止调试取消端口命令而不停止共享语言服务器,拒绝工作区或会话替换后的旧端口。适配器只声明 attach,或 selectors 的 targetKinds 不含 file 时,不会被选作文件启动的调试器;Java 在迁入 Java Support 插件前仍使用宿主自带适配器。capabilities.disabled 中的能力在调试会话里不可用,并随 debug.createSession 传给 Core。会话进行中禁用、更新或卸载该插件,或在模块设置里停用它,只停止该插件拥有的会话,同语言其他插件的会话继续运行。启动后 app bundle 文件清单不变(scripts/desktop/verify/verify-runtime-bundle-immutability.sh)。远程 attach 目前只有 Core 契约:attach 配置可声明 targetBindings.connection,Core 校验主机、端口与路径映射并按适配器自己的参数路径写入启动参数,非 localhost、127.0.0.0/8、::1 的端点返回 remote:true;macOS 宿主尚未接入 attach 与“附加到远程”对话框,因此本项暂不能在应用里验证远程附加,接入后补充:连接新的非回环端点前必须弹确认且默认不记住,附加结束只断开不结束远端程序。Windows:宿主尚未接入 debugAdapters,Core 校验通过不代表 Windows 能调试插件语言。 原生宿主路由回归:使用 Core 的 rust/fixtures/debug/adapter-selection-v1.json 验证自动文件选择、明确身份、无源文件目标、空身份、已撤回身份和 launch/attach 不匹配;同语言多个适配器分别收到断点,重试保持身份,附加会话启动失败保留原会话。这里只验证宿主交接与受控会话,Provider 原生程序准备 RPC 有受控流程与真实 SDK 进程覆盖;真实适配器的完整工作流与 Windows 接入仍未验收。 真实原生调试集成:公开 Node SDK Provider 用 Clang 编译 C 程序,经生产 macOS 会话、Core 准备、Registry 明确身份、生产 stdio 传输和 LLDB 命中源码断点、读取 main 栈帧、保留空格参数后继续并退出码 0;包 SHA-256/权限不变,所有本次进程回收。测试显式选择 SDK/工具,完整 UI、正式发行与 Windows 尚未验收,verification 保持 pending。 与显式 DAP 端点同时使用时,先按当前 Registry 身份校验请求能力,再调用端点工厂;launch/attach 与默认/明确身份的组合回归覆盖不会回退到本地适配器,配置编码与步进变换保留两个字段。 Windows 增量:服务目标显式保存并调试,唯一当前 Registry 类型/身份、Core 连接绑定、stdio/同包语言服务器、完整参数/初始化身份/禁用能力;覆盖重复/缺失适配器、包和设置变化、注册 ABA、监听取消、迟到启动回执、Run 退出/替换、清理失败重试。原生能力准入仍关闭,正式 Windows 适配器与真实框架断点 UI 尚未验收。 日志验收:在最新macOS宿主分别启动、初始化、暂停/继续、正常结束、取消、超时和适配器拒绝,确认debug/的关键生命周期INFO、内部状态DEBUG、真实失败ERROR;启动与原生进程非零退出固定stage/exit_code进入debug,原始stderr、DAP正文、源码、变量、内存和程序输出不进入诊断日志。同一次launch失败不能重复记session失败,取消不记ERROR。共享Core组件验证不能替代macOS真实UI和Windows v2验收。", "notes": "Viva 声明 debugAdapters 1、2、3:stdio 与 tcpLanguageServer 适配器、launch 与 attach、远程 attach(Core 判定非本机的端点需用户确认,不记住答案;暂无路径映射输入)、features 与 defaults 随 debug.createSession 交给调试引擎。debug/start 宿主方法与 run/start 的 launch 目标已接入;launch.json 导入、tcpPort/tcpAnnounced 与 startDebugging 子会话暂未实现。原生产品验收仍 pending。", "legacy": { "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", diff --git a/shared/platform-feature-matrix/features/plugin-injected-toolchains.json b/shared/platform-feature-matrix/features/plugin-injected-toolchains.json index 7fa7f06cf6..f51934f048 100644 --- a/shared/platform-feature-matrix/features/plugin-injected-toolchains.json +++ b/shared/platform-feature-matrix/features/plugin-injected-toolchains.json @@ -22,7 +22,6 @@ "desktop/internal/core/toolchain_sources.go", "desktop/internal/toolchain/storage_test.go", "desktop/internal/configfile/", - "shared/fixtures/toolchain-pin-storage.json", "desktop/internal/settingswindow/toolchains_view_test.go" ] }, @@ -39,7 +38,6 @@ "desktop/internal/core/toolchain_sources.go", "desktop/internal/toolchain/storage_test.go", "desktop/internal/configfile/", - "shared/fixtures/toolchain-pin-storage.json", "desktop/internal/settingswindow/toolchains_view_test.go" ] }, diff --git a/shared/platform-feature-matrix/features/process-termination-policy.json b/shared/platform-feature-matrix/features/process-termination-policy.json index da5e37186c..a2de6e3f26 100644 --- a/shared/platform-feature-matrix/features/process-termination-policy.json +++ b/shared/platform-feature-matrix/features/process-termination-policy.json @@ -11,8 +11,6 @@ "desktop/internal/workbench/process_exit_test.go", "desktop/internal/core/process_lifecycle.go", "desktop/internal/core/process_lifecycle_test.go", - "shared/fixtures/process-lifecycle/exit-plan-v1.json", - "shared/fixtures/process-lifecycle/settle-v1.json", "desktop/internal/localshell/shell.go", "desktop/internal/localshell/backend_unix.go", "desktop/internal/localshell/shell_unix_test.go", @@ -34,8 +32,6 @@ "desktop/internal/workbench/process_exit_test.go", "desktop/internal/core/process_lifecycle.go", "desktop/internal/core/process_lifecycle_test.go", - "shared/fixtures/process-lifecycle/exit-plan-v1.json", - "shared/fixtures/process-lifecycle/settle-v1.json", "desktop/internal/localshell/shell.go", "desktop/internal/localshell/backend_windows.go", "desktop/internal/localshell/shell_windows_test.go", diff --git a/shared/platform-feature-matrix/features/run-java-test.json b/shared/platform-feature-matrix/features/run-java-test.json index 2e4c711935..27987b48a6 100644 --- a/shared/platform-feature-matrix/features/run-java-test.json +++ b/shared/platform-feature-matrix/features/run-java-test.json @@ -26,7 +26,7 @@ ] }, "owner": "Run", - "verification": "阶段 D 协议 9 增量通过 350 项 macOS、1368 项 Core/集成计时、当前 SDK E2E 及 Maven 3.9.16/JDK 26 组合;完整发行 UI/JDT、正式 SDK/插件锁定和 Windows 实机仍 pending。运行 main、单测试和测试类,验证参数、输出、失败状态和终端策略。 Windows Run 运行输出使用 Geist Mono 显示 ====、==>、=>、!=、>=,确认禁用连字后逐字符显示且复制文本与原始输出一致;检查有输出与空态、ANSI 颜色、自动换行切换及横向滚动。 macOS Tests 顶部核对 41pt 无图标/计数标题、统一底线、运行名称标签的活动/非活动状态;运行中和完成后关闭标签均清理本次运行,保留发现列表并可重新运行。 核对第二行刷新、重跑、停止、清空的 IDEA 原始 16pt 明暗 SVG 与 22pt 按钮悬停范围。 Tests 详情无重复标题/文字 Run 按钮、工具栏右侧无运行状态;第二行首个 Run/Rerun 图标按选中提供方与精确作用域切换,运行中禁用,Stop 常驻;切换测试后运行当前选择,Java 单项 Debug 入口保留。 Tests 布局核对左侧报告状态树(通过/失败/跳过和组折叠)、顶部单行结果摘要、IDEA 控制台及右侧导航/换行/滚动/打印/清空动作;右侧 Details 复用共享收缩条与分隔容器,展开保留作用域、命令和失败定位。控制台左右工具栏均验证明暗主题、背景与原生文本身份。 第二行核对刷新紧挨垃圾桶左侧,两者继续执行发现刷新和输出清空。 Test 的 Performance 展开采集本次进程树 CPU 与 Resident Memory(含构建启动器和测试子进程),复用 Debug 图表及共享折叠条;收起/隐藏停止采集,重跑不混旧数据,结束保留历史,Details 继续显示原有作用域、命令与失败定位。 Stop 等图标禁用时使用 IDEA 灰度,只有可用停止动作保留红色;Performance 收起再展开后时间轴继续保持进程年龄。 Test 右侧 Performance/Details 共用一个可收缩区域,顶部两个标签切换;核对11pt常规标题和Islands文字色。Java选择本次启动器后代中的JUnit/Surefire/Gradle测试JVM,实时CPU/堆曲线,多个worker切换。开始/停止JFR录制、Show Results查看JDK热点方法和分配报告,结束/重跑/关闭正确取消及清理。非Java测试继续用明确标注的CPU/RSS;缺失worker或工具明确提示,不采样Maven/Gradle启动器。 macOS:Run、Debug、Test 共用 OutputTextView/LitheConsoleStyle 默认字体、行高和日志等级色;纯文本及 Maven/Spring ANSI 日志的 INFO 标签均为绿色、WARN 黄色、ERROR 红色,正文及其他 ANSI 片段保留;检查明暗主题、复制、折叠与源码链接。 Test Performance 录制和 Show Results 核对明暗主题、原始录制 SVG、禁用灰度不叠加透明度;Show Results 复用 Commit 的共享 LitheActionButtonStyle,核对28pt可见高度、3pt外留白、13pt常规字、透明/白色背景和独立禁用文字/边框,录制结束后可打开结果。 Show Results 结果窗口使用共享 LitheCenteredPopup 原生标题栏与对话框背景/底部关闭动作,验证 Esc、关闭按钮、系统关闭、重复打开、父窗口关闭及明暗主题,内容保持共享 OutputTextView 的复制和横纵滚动。 Test 结果摘要下方移除普通横线,核对3pt半圆端状态条:失败/错误红色优先于通过绿色;无结果、运行准备和全部跳过不画,重跑清空旧状态。深浅主题使用 ProgressBar 专用色,保持摘要文字和控制台工具栏不变。 调整面板宽度时状态条右端始终停在控制台右侧工具栏左边,不覆盖工具栏及其分隔线。 非Maven无结构化报告时核对成功、失败、取消和超时摘要与状态条;Gradle内置测试通过--no-daemon保持worker属于本次进程树,真实集成先启动兼容常驻daemon,再确认发现与采样的worker身份及独立清理。 Test左侧结果树:根/方法名13pt常规文字、共享Tree文字色;原始16pt明暗SVG覆盖未运行/通过/断言失败/执行错误/跳过和展开箭头,errors保留Error图标而非Failed;核对24pt行高、19pt缩进、12pt两侧留白、折叠、选中/失焦/hover及长名称省略,明暗主题不重染SVG。 结果摘要核对IDEA连续文案(失败、通过、忽略)、中英文单复数、13ptRegular、Label专用失败/警告色、灰色总数和16pt状态图标,覆盖通过但含忽略和全部忽略,不造耗时。结果树类/目录行双击名称展开或折叠,单击选择、箭头点击不变,叶子双击不折叠、不运行。 Test发现列表在首次运行、刷新和重跑等待结果时按工作区/文件/类/方法区分16pt图标,文件复用共享分类;明暗SVG不缺失,结果生成后状态图标优先,保留共享字体、行高、选中与双击展开。 Test未运行且无结构化结果时不显示摘要空态行,仅保留共享控制台的Run a test to see its output提示;运行中及无报告的成功、失败、取消、超时仍显示摘要。 Maven编译失败产生零计数报告、部分测试通过但整体非零退出时,保留Failed/Timed Out文字、错误图标和红色状态条;Gradle同时启用fork编译和测试时,Performance仅发现带Gradle Test Executor身份的worker,不采样通用Gradle Worker Daemon。 回归验证单测→workspace/file→顶栏Run/Debug仍保留新scope;共享testcase-durations-v1.json贯穿Rust报告解析、聚合、通用build.decodeTestResults与Swift呈现,覆盖不同方法耗时、重复调用、部分缺失、非法/负值/超大值及零值;实际Windows UI尚未验收。 回归普通配置仍运行时选择测试,顶栏Run只运行当前测试;单方法JDT启动标签为logsIn()时暂停/继续仍关联所选scope。合成结果树的渲染、选择与默认选中共用节点,报告类/方法可重跑;无语义源码关联的报告节点明确禁用Debug,不猜测源码路径。 macOS边界回归:A处于running/paused时切换测试B,实际注册Debug动作必须准备B;保持同一目标时才重启。混合Java/Node/Python项目只在当前运行的provider组展示报告结果、状态和耗时;关闭或清空带真实方法结果的运行后恢复工作区、文件和未执行测试入口,同时保留编辑器标记历史,并可重新选择文件/工作区运行。 Review 修正:macOS 结果服务、Tests 呈现及 Java 行标记直接消费 BuildTestResults;保留上游摘要与调用次数,耗时只读规范报告,名称不解析括号或参数后缀。非 Maven fixture 覆盖来源定位、独立重跑引用、清空引用及多报告汇总;旧 Windows className/method 字段与通用 suite/case 的行标记 fixture 必须一致。 准备任务使用 buildSystems 4 的 preparation.purpose/sourceRoles,由插件声明内部任务 ID,宿主按当前模型匹配唯一任务;覆盖缺失用途、缺失角色、角色冲突、未知源码根、临时 Profile、取消及工作区变化。真实 Maven 自定义过滤资源经生产 macOS 会话与 Core 执行,插件包清单不变;Windows 产品准入仍关闭。 通用报告按语言提供者隔离编辑器历史,混合结果保留精确源码节点与全部无源码报告项,不因部分 JDT 匹配而丢弃其余用例;源码执行标识原样保留。 RUN-03:测试结束的最终判定由 Core build.resolveTestRunOutcome 归约(超时/取消不声明测试结果,已报告的失败优先于退出码,非零退出优先于空结果,退出码 0 但没有执行任何选中测试判为失败:显式套件/用例为“没有测试匹配所选范围”,项目/工作区为“没有找到任何测试”)。macOS LanguageTestService 与 Windows maven.store 均改为调用该命令,不再各自按退出码判定,两端共用 shared/fixtures/build/test-run-outcome-v1.json;Core 不含 Maven/JUnit 语义。RUN-10:测试历史的覆盖合并由 Core build.mergeTestOutcomes 完成(宿主给出被替换的结果 ID 和 ID 前缀,Core 只比较字符串;保留未覆盖的结果,覆盖范围外的新结果被丢弃,重复 ID 后者胜出)。macOS 把后端 coverage 转成长度前缀 ID 的前缀;Windows Maven 适配层把 Java 的 Outer$Inner 嵌套类转成 `Outer#` 与 `Outer$` 两个前缀,方法运行只给出精确 ID;两端共用 shared/fixtures/build/test-outcome-merge-v1.json。", + "verification": "阶段 D 协议 9 增量通过 350 项 macOS、1368 项 Core/集成计时、当前 SDK E2E 及 Maven 3.9.16/JDK 26 组合;完整发行 UI/JDT、正式 SDK/插件锁定和 Windows 实机仍 pending。运行 main、单测试和测试类,验证参数、输出、失败状态和终端策略。 Windows Run 运行输出使用 Geist Mono 显示 ====、==>、=>、!=、>=,确认禁用连字后逐字符显示且复制文本与原始输出一致;检查有输出与空态、ANSI 颜色、自动换行切换及横向滚动。 macOS Tests 顶部核对 41pt 无图标/计数标题、统一底线、运行名称标签的活动/非活动状态;运行中和完成后关闭标签均清理本次运行,保留发现列表并可重新运行。 核对第二行刷新、重跑、停止、清空的 IDEA 原始 16pt 明暗 SVG 与 22pt 按钮悬停范围。 Tests 详情无重复标题/文字 Run 按钮、工具栏右侧无运行状态;第二行首个 Run/Rerun 图标按选中提供方与精确作用域切换,运行中禁用,Stop 常驻;切换测试后运行当前选择,Java 单项 Debug 入口保留。 Tests 布局核对左侧报告状态树(通过/失败/跳过和组折叠)、顶部单行结果摘要、IDEA 控制台及右侧导航/换行/滚动/打印/清空动作;右侧 Details 复用共享收缩条与分隔容器,展开保留作用域、命令和失败定位。控制台左右工具栏均验证明暗主题、背景与原生文本身份。 第二行核对刷新紧挨垃圾桶左侧,两者继续执行发现刷新和输出清空。 Test 的 Performance 展开采集本次进程树 CPU 与 Resident Memory(含构建启动器和测试子进程),复用 Debug 图表及共享折叠条;收起/隐藏停止采集,重跑不混旧数据,结束保留历史,Details 继续显示原有作用域、命令与失败定位。 Stop 等图标禁用时使用 IDEA 灰度,只有可用停止动作保留红色;Performance 收起再展开后时间轴继续保持进程年龄。 Test 右侧 Performance/Details 共用一个可收缩区域,顶部两个标签切换;核对11pt常规标题和Islands文字色。Java选择本次启动器后代中的JUnit/Surefire/Gradle测试JVM,实时CPU/堆曲线,多个worker切换。开始/停止JFR录制、Show Results查看JDK热点方法和分配报告,结束/重跑/关闭正确取消及清理。非Java测试继续用明确标注的CPU/RSS;缺失worker或工具明确提示,不采样Maven/Gradle启动器。 macOS:Run、Debug、Test 共用 OutputTextView/LitheConsoleStyle 默认字体、行高和日志等级色;纯文本及 Maven/Spring ANSI 日志的 INFO 标签均为绿色、WARN 黄色、ERROR 红色,正文及其他 ANSI 片段保留;检查明暗主题、复制、折叠与源码链接。 Test Performance 录制和 Show Results 核对明暗主题、原始录制 SVG、禁用灰度不叠加透明度;Show Results 复用 Commit 的共享 LitheActionButtonStyle,核对28pt可见高度、3pt外留白、13pt常规字、透明/白色背景和独立禁用文字/边框,录制结束后可打开结果。 Show Results 结果窗口使用共享 LitheCenteredPopup 原生标题栏与对话框背景/底部关闭动作,验证 Esc、关闭按钮、系统关闭、重复打开、父窗口关闭及明暗主题,内容保持共享 OutputTextView 的复制和横纵滚动。 Test 结果摘要下方移除普通横线,核对3pt半圆端状态条:失败/错误红色优先于通过绿色;无结果、运行准备和全部跳过不画,重跑清空旧状态。深浅主题使用 ProgressBar 专用色,保持摘要文字和控制台工具栏不变。 调整面板宽度时状态条右端始终停在控制台右侧工具栏左边,不覆盖工具栏及其分隔线。 非Maven无结构化报告时核对成功、失败、取消和超时摘要与状态条;Gradle内置测试通过--no-daemon保持worker属于本次进程树,真实集成先启动兼容常驻daemon,再确认发现与采样的worker身份及独立清理。 Test左侧结果树:根/方法名13pt常规文字、共享Tree文字色;原始16pt明暗SVG覆盖未运行/通过/断言失败/执行错误/跳过和展开箭头,errors保留Error图标而非Failed;核对24pt行高、19pt缩进、12pt两侧留白、折叠、选中/失焦/hover及长名称省略,明暗主题不重染SVG。 结果摘要核对IDEA连续文案(失败、通过、忽略)、中英文单复数、13ptRegular、Label专用失败/警告色、灰色总数和16pt状态图标,覆盖通过但含忽略和全部忽略,不造耗时。结果树类/目录行双击名称展开或折叠,单击选择、箭头点击不变,叶子双击不折叠、不运行。 Test发现列表在首次运行、刷新和重跑等待结果时按工作区/文件/类/方法区分16pt图标,文件复用共享分类;明暗SVG不缺失,结果生成后状态图标优先,保留共享字体、行高、选中与双击展开。 Test未运行且无结构化结果时不显示摘要空态行,仅保留共享控制台的Run a test to see its output提示;运行中及无报告的成功、失败、取消、超时仍显示摘要。 Maven编译失败产生零计数报告、部分测试通过但整体非零退出时,保留Failed/Timed Out文字、错误图标和红色状态条;Gradle同时启用fork编译和测试时,Performance仅发现带Gradle Test Executor身份的worker,不采样通用Gradle Worker Daemon。 回归验证单测→workspace/file→顶栏Run/Debug仍保留新scope;共享testcase-durations-v1.json贯穿Rust报告解析、聚合、通用build.decodeTestResults与Swift呈现,覆盖不同方法耗时、重复调用、部分缺失、非法/负值/超大值及零值;实际Windows UI尚未验收。 回归普通配置仍运行时选择测试,顶栏Run只运行当前测试;单方法JDT启动标签为logsIn()时暂停/继续仍关联所选scope。合成结果树的渲染、选择与默认选中共用节点,报告类/方法可重跑;无语义源码关联的报告节点明确禁用Debug,不猜测源码路径。 macOS边界回归:A处于running/paused时切换测试B,实际注册Debug动作必须准备B;保持同一目标时才重启。混合Java/Node/Python项目只在当前运行的provider组展示报告结果、状态和耗时;关闭或清空带真实方法结果的运行后恢复工作区、文件和未执行测试入口,同时保留编辑器标记历史,并可重新选择文件/工作区运行。 Review 修正:macOS 结果服务、Tests 呈现及 Java 行标记直接消费 BuildTestResults;保留上游摘要与调用次数,耗时只读规范报告,名称不解析括号或参数后缀。非 Maven fixture 覆盖来源定位、独立重跑引用、清空引用及多报告汇总;旧 Windows className/method 字段与通用 suite/case 的行标记 fixture 必须一致。 准备任务使用 buildSystems 4 的 preparation.purpose/sourceRoles,由插件声明内部任务 ID,宿主按当前模型匹配唯一任务;覆盖缺失用途、缺失角色、角色冲突、未知源码根、临时 Profile、取消及工作区变化。真实 Maven 自定义过滤资源经生产 macOS 会话与 Core 执行,插件包清单不变;Windows 产品准入仍关闭。 通用报告按语言提供者隔离编辑器历史,混合结果保留精确源码节点与全部无源码报告项,不因部分 JDT 匹配而丢弃其余用例;源码执行标识原样保留。 RUN-03:测试结束的最终判定由 Core build.resolveTestRunOutcome 归约(超时/取消不声明测试结果,已报告的失败优先于退出码,非零退出优先于空结果,退出码 0 但没有执行任何选中测试判为失败:显式套件/用例为“没有测试匹配所选范围”,项目/工作区为“没有找到任何测试”)。macOS LanguageTestService 与 Windows maven.store 均改为调用该命令,不再各自按退出码判定,两端共用 Core 的 rust/fixtures/build/test-run-outcome-v1.json;Core 不含 Maven/JUnit 语义。RUN-10:测试历史的覆盖合并由 Core build.mergeTestOutcomes 完成(宿主给出被替换的结果 ID 和 ID 前缀,Core 只比较字符串;保留未覆盖的结果,覆盖范围外的新结果被丢弃,重复 ID 后者胜出)。macOS 把后端 coverage 转成长度前缀 ID 的前缀;Windows Maven 适配层把 Java 的 Outer$Inner 嵌套类转成 `Outer#` 与 `Outer$` 两个前缀,方法运行只给出精确 ID;两端共用 Core 的 rust/fixtures/build/test-outcome-merge-v1.json。", "notes": "Viva:运行配置、运行面板(core/run_start.go、run_config.go、workbench/runs.go)和测试视图(workbench/tests.go)已存在。但 Java main 与测试的发现和测试模型未由宿主声明(pluginhost.go),Java 运行准备没有入口。", "legacy": { "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", diff --git a/shared/platform-feature-matrix/features/run-node-launch-path.json b/shared/platform-feature-matrix/features/run-node-launch-path.json index 6fa50d97be..fb6442a4cc 100644 --- a/shared/platform-feature-matrix/features/run-node-launch-path.json +++ b/shared/platform-feature-matrix/features/run-node-launch-path.json @@ -10,8 +10,7 @@ "desktop/internal/workbench/toolchains.go", "desktop/internal/workbench/toolchains_test.go", "desktop/internal/core/run_discovery.go", - "desktop/internal/core/run_discovery_test.go", - "shared/fixtures/execution/search-path-v1.json" + "desktop/internal/core/run_discovery_test.go" ] }, "windows": { @@ -21,8 +20,7 @@ "desktop/internal/workbench/toolchains.go", "desktop/internal/workbench/toolchains_test.go", "desktop/internal/core/run_discovery.go", - "desktop/internal/core/run_discovery_test.go", - "shared/fixtures/execution/search-path-v1.json" + "desktop/internal/core/run_discovery_test.go" ] }, "owner": "Run", diff --git a/shared/platform-feature-matrix/features/viva-debug-session.json b/shared/platform-feature-matrix/features/viva-debug-session.json index fe55a168d1..b90c775139 100644 --- a/shared/platform-feature-matrix/features/viva-debug-session.json +++ b/shared/platform-feature-matrix/features/viva-debug-session.json @@ -20,7 +20,6 @@ "desktop/internal/workbench/debug_native_e2e_test.go", "desktop/internal/workbench/debug_lookup_darwin.go", "desktop/internal/workbench/debug_lookup_other.go", - "shared/fixtures/debug/launch-event-order.json", "desktop/internal/pluginhost/executable_windows.go", "desktop/internal/pluginhost/executable_other.go", "desktop/internal/pluginhost/executable_windows_test.go" @@ -43,7 +42,6 @@ "desktop/internal/workbench/debug_native_e2e_test.go", "desktop/internal/workbench/debug_lookup_darwin.go", "desktop/internal/workbench/debug_lookup_other.go", - "shared/fixtures/debug/launch-event-order.json", "desktop/internal/pluginhost/executable_windows.go", "desktop/internal/pluginhost/executable_other.go", "desktop/internal/pluginhost/executable_windows_test.go"