doubled-graph 3.0.5__tar.gz → 3.0.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/PKG-INFO +19 -19
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/README.md +18 -18
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/pyproject.toml +1 -1
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/cli.py +26 -1
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/setup.py +20 -2
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/tools/analyze.py +6 -1
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_cli_daemon.py +51 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_cli_entrypoint.py +2 -2
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_cli_surface.py +57 -1
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_health.py +30 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_setup_failure_semantics.py +2 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/.gitignore +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/ARTICLE.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/INDEX.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/LICENSE +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/for-ai-existing-project/README.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/for-ai-maintenance/README.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/for-ai-new-project/README.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/for-humans/FAQ.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/for-humans/deep-dive.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/for-humans/getting-started.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/README.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/approval-checkpoints.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/artifacts.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/auto-scaling.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/ci-templates/github-actions.yml +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/ci-templates/gitlab-ci.yml +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/drift-and-priority.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/language-adapters/_template.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/language-adapters/csharp.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/language-adapters/go.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/language-adapters/java.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/language-adapters/python.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/language-adapters/rust.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/language-adapters/swift.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/language-adapters/typescript.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/principles.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/roles.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/runtime-adapters/_template.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/runtime-adapters/claude-code.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/runtime-adapters/codex.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/runtime-adapters/continue.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/runtime-adapters/cursor.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/runtime-adapters/local-llm.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/runtime-adapters/windsurf.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/tools.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/methodology/workflow.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/maintenance/on-after-edit.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/maintenance/on-before-edit.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/maintenance/on-drift-detected.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/maintenance/on-user-manual-edit.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/migrate-existing-project/00-entry-prompt.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/migrate-existing-project/01-discover.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/migrate-existing-project/02-reconstruct-intent.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/migrate-existing-project/03-draft-plan.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/migrate-existing-project/04-markup-codebase.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/migrate-existing-project/05-verification-and-logs.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/migrate-existing-project/06-validation-gates.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/new-project/00-entry-prompt.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/new-project/01-intent-interview.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/new-project/02-requirements.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/new-project/03-technology.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/new-project/04-development-plan.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/new-project/05-verification-plan.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/new-project/06-generate.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/new-project/07-post-init-sync.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/upgrade-methodology/00-entry-prompt.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/upgrade-methodology/01-content-gaps.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/__init__.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/__main__.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/config.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/daemon/__init__.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/daemon/main.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/daemon/server.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/data/skills/doubled-graph-after-edit/SKILL.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/data/skills/doubled-graph-before-edit/SKILL.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/data/skills/doubled-graph-drift/SKILL.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/data/skills/doubled-graph-guide/SKILL.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/data/skills/doubled-graph-manual-edit/SKILL.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/data/skills/doubled-graph-refactor/SKILL.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/data/skills/doubled-graph-verify/SKILL.md +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/graphs/__init__.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/graphs/anchors.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/graphs/crossref.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/graphs/declared.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/graphs/grace4.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/health.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/hooks_installer.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/integrations/__init__.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/integrations/cgc.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/integrations/grace_cli.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/integrations/graphd.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/integrations/service.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/migrations/__init__.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/migrations/grace3_to_grace4.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/policy/__init__.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/policy/agents_md.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/policy/phase.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/server.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/storage/__init__.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/storage/paths.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/tools/__init__.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/tools/_meta.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/tools/context.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/tools/detect_changes.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/tools/impact.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/tools/post_tool.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/tools/provenance.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/uninstall.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/__init__.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/conftest.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_anchors.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_bom_support.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_cgc_backend.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_cgc_contract.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_cgc_lifecycle.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_crossref_drift.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_daemon.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_daemon_main.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_declared_coverage.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_e2e_acceptance.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_grace4_artifacts.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_grace_cli_coverage.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_grace_cli_engine.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_graphd_client.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_hook_public_coverage.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mcp_transport.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mcp_validation.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_migration_coverage.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_migration_grace3_to_grace4.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mutation_gate_script.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mutation_kill_analyze.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mutation_kill_cgc_edges.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mutation_kill_cgc_fallback.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mutation_kill_cgc_misc.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mutation_kill_context.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mutation_kill_crossref.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mutation_kill_hooks.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mutation_kill_impact.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_mutation_probes.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_packaging.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_platform_branches.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_provenance.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_release_script.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_repo_hygiene.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_service.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_setup_artifacts.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_setup_coverage.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_smoke.py +0 -0
- {doubled_graph-3.0.5 → doubled_graph-3.0.6}/tests/test_uninstall.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: doubled-graph
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.6
|
|
4
4
|
Summary: MCP facade over CodeGraphContext + GRACE 4 (.grace artifacts): impact, context, drift-detect, migration for LLM-driven codebases.
|
|
5
5
|
Project-URL: Homepage, https://github.com/rour/doubled-graph-mcp
|
|
6
6
|
Project-URL: Repository, https://github.com/rour/doubled-graph-mcp
|
|
@@ -88,30 +88,29 @@ pipx ensurepath
|
|
|
88
88
|
|
|
89
89
|
### 2. Установить doubled-graph
|
|
90
90
|
|
|
91
|
-
На PyPI сейчас опубликована **3.0.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
3.0.
|
|
95
|
-
3.0.5 из этого репозитория, соберите wheel поддерживаемым интерпретатором
|
|
91
|
+
На PyPI сейчас опубликована **3.0.5**. Версия **3.0.6 ещё не опубликована**,
|
|
92
|
+
поэтому `pipx install doubled-graph` (без версии) на поддерживаемом Python
|
|
93
|
+
поставит 3.0.5. Чтобы поставить именно
|
|
94
|
+
3.0.6 из этого репозитория, соберите wheel поддерживаемым интерпретатором
|
|
96
95
|
(3.11–3.14) и установите его **с явным `--python`**: если сам pipx запущен
|
|
97
96
|
на 3.15, его venv тоже будет 3.15, и pip откажется ставить пакет.
|
|
98
97
|
|
|
99
98
|
```bash
|
|
100
99
|
python3.14 -m pip install build
|
|
101
100
|
python3.14 -m build --wheel
|
|
102
|
-
pipx install --python python3.14 --force dist/doubled_graph-3.0.
|
|
101
|
+
pipx install --python python3.14 --force dist/doubled_graph-3.0.6-py3-none-any.whl
|
|
103
102
|
```
|
|
104
103
|
|
|
105
104
|
Подойдёт любой минор из 3.11–3.14; `--python python3.14` — пример. После
|
|
106
105
|
публикации релиза команда станет обычной и точной:
|
|
107
106
|
|
|
108
107
|
```bash
|
|
109
|
-
pipx install --python python3.14 doubled-graph==3.0.
|
|
108
|
+
pipx install --python python3.14 doubled-graph==3.0.6 # до релиза — wheel выше
|
|
110
109
|
```
|
|
111
110
|
|
|
112
111
|
> Уже работаете в своём venv или conda-окружении? `python3.14 -m pip install
|
|
113
|
-
> doubled-graph` из PyPI тоже поставит 3.0.
|
|
114
|
-
> `python3.14 -m pip install dist/doubled_graph-3.0.
|
|
112
|
+
> doubled-graph` из PyPI тоже поставит 3.0.5; для 3.0.6 используйте wheel:
|
|
113
|
+
> `python3.14 -m pip install dist/doubled_graph-3.0.6-py3-none-any.whl`.
|
|
115
114
|
|
|
116
115
|
---
|
|
117
116
|
|
|
@@ -121,7 +120,8 @@ pipx install --python python3.14 doubled-graph==3.0.5 # до релиза —
|
|
|
121
120
|
|
|
122
121
|
```bash
|
|
123
122
|
cd your-project
|
|
124
|
-
doubled-graph setup
|
|
123
|
+
doubled-graph setup # статусы шагов; полный отчёт — в .doubled-graph/logs/setup-<ts>.json
|
|
124
|
+
doubled-graph setup --json # тот же отчёт в stdout
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
Одна команда:
|
|
@@ -165,8 +165,8 @@ doubled-graph setup
|
|
|
165
165
|
> отсутствующих колёс для текущего Python, шаг 2 «CGC dep self-heal» вызывает
|
|
166
166
|
> `pipx install --python python3.12|3.13|3.14 --force doubled-graph==<установленная
|
|
167
167
|
> версия>` (`setup.py::_auto_reinstall_on_working_python`). Версия
|
|
168
|
-
> **запинена**: команда без версии поставила бы опубликованную 3.0.
|
|
169
|
-
> откатила текущую версию (3.0.
|
|
168
|
+
> **запинена**: команда без версии поставила бы опубликованную 3.0.5 и молча
|
|
169
|
+
> откатила текущую версию (3.0.6). Это единственная сетевая переустановка пакета; при `--dry-run`
|
|
170
170
|
> она только репортится (`status: "dry_run_reinstall"`), а при `pip install` в
|
|
171
171
|
> venv/CI не выполняется вовсе (`_looks_like_pipx_install()`). Если сети нет
|
|
172
172
|
> или такой версии ещё нет на PyPI, шаг честно возвращает `reinstall_failed`
|
|
@@ -223,7 +223,7 @@ head -1 "$(which doubled-graph)" # вывести shebang — это и ест
|
|
|
223
223
|
### 4. Проверить, что всё встало
|
|
224
224
|
|
|
225
225
|
```bash
|
|
226
|
-
doubled-graph --version # 3.0.
|
|
226
|
+
doubled-graph --version # 3.0.6 (после wheel-установки выше; 3.0.5 при pipx install из PyPI)
|
|
227
227
|
doubled-graph status --repo . # artifacts.project_kind = grace4, grace_engine.upgrade_required = false
|
|
228
228
|
doubled-graph daemon status # installed = true, running = true
|
|
229
229
|
doubled-graph health --repo . # cgc.ok = true (демон ответил)
|
|
@@ -454,10 +454,10 @@ Bun/Node-пакет 4.x: `bun remove -g @osovv/grace-cli` или
|
|
|
454
454
|
|
|
455
455
|
Пошагово с 2.x (или 1.9.x, если проект ещё на `docs/*.xml`):
|
|
456
456
|
|
|
457
|
-
1. **Поставьте именно 3.0.
|
|
458
|
-
**3.0.
|
|
457
|
+
1. **Поставьте именно 3.0.6.** `pipx upgrade doubled-graph` сейчас даёт
|
|
458
|
+
**3.0.5**, а не 3.0.6 (3.0.6 ещё не в PyPI). Точный путь — wheel с явным
|
|
459
459
|
`--python`: см. [§Установка](#2-установить-doubled-graph). Убедитесь:
|
|
460
|
-
`doubled-graph --version` → `3.0.
|
|
460
|
+
`doubled-graph --version` → `3.0.6`.
|
|
461
461
|
2. **`cd your-project && doubled-graph setup`** — в **обычном** шелле, не из
|
|
462
462
|
песочницы. `setup` **всегда** останавливает и заново запускает сервис
|
|
463
463
|
`graphd` (stop → install/update unit → start), регистрирует проект,
|
|
@@ -486,9 +486,9 @@ Bun/Node-пакет 4.x: `bun remove -g @osovv/grace-cli` или
|
|
|
486
486
|
обновлением на 3.0:
|
|
487
487
|
|
|
488
488
|
```bash
|
|
489
|
-
# 1. поставить 3.0.
|
|
489
|
+
# 1. поставить 3.0.6 (pipx upgrade даст только 3.0.5 — см. §Установка)
|
|
490
490
|
python3.14 -m build --wheel
|
|
491
|
-
pipx install --python python3.14 --force dist/doubled_graph-3.0.
|
|
491
|
+
pipx install --python python3.14 --force dist/doubled_graph-3.0.6-py3-none-any.whl
|
|
492
492
|
cd your-project
|
|
493
493
|
doubled-graph setup # 2. движок, .grace и демон graphd — одной командой
|
|
494
494
|
```
|
|
@@ -47,30 +47,29 @@ pipx ensurepath
|
|
|
47
47
|
|
|
48
48
|
### 2. Установить doubled-graph
|
|
49
49
|
|
|
50
|
-
На PyPI сейчас опубликована **3.0.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
3.0.
|
|
54
|
-
3.0.5 из этого репозитория, соберите wheel поддерживаемым интерпретатором
|
|
50
|
+
На PyPI сейчас опубликована **3.0.5**. Версия **3.0.6 ещё не опубликована**,
|
|
51
|
+
поэтому `pipx install doubled-graph` (без версии) на поддерживаемом Python
|
|
52
|
+
поставит 3.0.5. Чтобы поставить именно
|
|
53
|
+
3.0.6 из этого репозитория, соберите wheel поддерживаемым интерпретатором
|
|
55
54
|
(3.11–3.14) и установите его **с явным `--python`**: если сам pipx запущен
|
|
56
55
|
на 3.15, его venv тоже будет 3.15, и pip откажется ставить пакет.
|
|
57
56
|
|
|
58
57
|
```bash
|
|
59
58
|
python3.14 -m pip install build
|
|
60
59
|
python3.14 -m build --wheel
|
|
61
|
-
pipx install --python python3.14 --force dist/doubled_graph-3.0.
|
|
60
|
+
pipx install --python python3.14 --force dist/doubled_graph-3.0.6-py3-none-any.whl
|
|
62
61
|
```
|
|
63
62
|
|
|
64
63
|
Подойдёт любой минор из 3.11–3.14; `--python python3.14` — пример. После
|
|
65
64
|
публикации релиза команда станет обычной и точной:
|
|
66
65
|
|
|
67
66
|
```bash
|
|
68
|
-
pipx install --python python3.14 doubled-graph==3.0.
|
|
67
|
+
pipx install --python python3.14 doubled-graph==3.0.6 # до релиза — wheel выше
|
|
69
68
|
```
|
|
70
69
|
|
|
71
70
|
> Уже работаете в своём venv или conda-окружении? `python3.14 -m pip install
|
|
72
|
-
> doubled-graph` из PyPI тоже поставит 3.0.
|
|
73
|
-
> `python3.14 -m pip install dist/doubled_graph-3.0.
|
|
71
|
+
> doubled-graph` из PyPI тоже поставит 3.0.5; для 3.0.6 используйте wheel:
|
|
72
|
+
> `python3.14 -m pip install dist/doubled_graph-3.0.6-py3-none-any.whl`.
|
|
74
73
|
|
|
75
74
|
---
|
|
76
75
|
|
|
@@ -80,7 +79,8 @@ pipx install --python python3.14 doubled-graph==3.0.5 # до релиза —
|
|
|
80
79
|
|
|
81
80
|
```bash
|
|
82
81
|
cd your-project
|
|
83
|
-
doubled-graph setup
|
|
82
|
+
doubled-graph setup # статусы шагов; полный отчёт — в .doubled-graph/logs/setup-<ts>.json
|
|
83
|
+
doubled-graph setup --json # тот же отчёт в stdout
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
Одна команда:
|
|
@@ -124,8 +124,8 @@ doubled-graph setup
|
|
|
124
124
|
> отсутствующих колёс для текущего Python, шаг 2 «CGC dep self-heal» вызывает
|
|
125
125
|
> `pipx install --python python3.12|3.13|3.14 --force doubled-graph==<установленная
|
|
126
126
|
> версия>` (`setup.py::_auto_reinstall_on_working_python`). Версия
|
|
127
|
-
> **запинена**: команда без версии поставила бы опубликованную 3.0.
|
|
128
|
-
> откатила текущую версию (3.0.
|
|
127
|
+
> **запинена**: команда без версии поставила бы опубликованную 3.0.5 и молча
|
|
128
|
+
> откатила текущую версию (3.0.6). Это единственная сетевая переустановка пакета; при `--dry-run`
|
|
129
129
|
> она только репортится (`status: "dry_run_reinstall"`), а при `pip install` в
|
|
130
130
|
> venv/CI не выполняется вовсе (`_looks_like_pipx_install()`). Если сети нет
|
|
131
131
|
> или такой версии ещё нет на PyPI, шаг честно возвращает `reinstall_failed`
|
|
@@ -182,7 +182,7 @@ head -1 "$(which doubled-graph)" # вывести shebang — это и ест
|
|
|
182
182
|
### 4. Проверить, что всё встало
|
|
183
183
|
|
|
184
184
|
```bash
|
|
185
|
-
doubled-graph --version # 3.0.
|
|
185
|
+
doubled-graph --version # 3.0.6 (после wheel-установки выше; 3.0.5 при pipx install из PyPI)
|
|
186
186
|
doubled-graph status --repo . # artifacts.project_kind = grace4, grace_engine.upgrade_required = false
|
|
187
187
|
doubled-graph daemon status # installed = true, running = true
|
|
188
188
|
doubled-graph health --repo . # cgc.ok = true (демон ответил)
|
|
@@ -413,10 +413,10 @@ Bun/Node-пакет 4.x: `bun remove -g @osovv/grace-cli` или
|
|
|
413
413
|
|
|
414
414
|
Пошагово с 2.x (или 1.9.x, если проект ещё на `docs/*.xml`):
|
|
415
415
|
|
|
416
|
-
1. **Поставьте именно 3.0.
|
|
417
|
-
**3.0.
|
|
416
|
+
1. **Поставьте именно 3.0.6.** `pipx upgrade doubled-graph` сейчас даёт
|
|
417
|
+
**3.0.5**, а не 3.0.6 (3.0.6 ещё не в PyPI). Точный путь — wheel с явным
|
|
418
418
|
`--python`: см. [§Установка](#2-установить-doubled-graph). Убедитесь:
|
|
419
|
-
`doubled-graph --version` → `3.0.
|
|
419
|
+
`doubled-graph --version` → `3.0.6`.
|
|
420
420
|
2. **`cd your-project && doubled-graph setup`** — в **обычном** шелле, не из
|
|
421
421
|
песочницы. `setup` **всегда** останавливает и заново запускает сервис
|
|
422
422
|
`graphd` (stop → install/update unit → start), регистрирует проект,
|
|
@@ -445,9 +445,9 @@ Bun/Node-пакет 4.x: `bun remove -g @osovv/grace-cli` или
|
|
|
445
445
|
обновлением на 3.0:
|
|
446
446
|
|
|
447
447
|
```bash
|
|
448
|
-
# 1. поставить 3.0.
|
|
448
|
+
# 1. поставить 3.0.6 (pipx upgrade даст только 3.0.5 — см. §Установка)
|
|
449
449
|
python3.14 -m build --wheel
|
|
450
|
-
pipx install --python python3.14 --force dist/doubled_graph-3.0.
|
|
450
|
+
pipx install --python python3.14 --force dist/doubled_graph-3.0.6-py3-none-any.whl
|
|
451
451
|
cd your-project
|
|
452
452
|
doubled-graph setup # 2. движок, .grace и демон graphd — одной командой
|
|
453
453
|
```
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "doubled-graph"
|
|
7
|
-
version = "3.0.
|
|
7
|
+
version = "3.0.6"
|
|
8
8
|
description = "MCP facade over CodeGraphContext + GRACE 4 (.grace artifacts): impact, context, drift-detect, migration for LLM-driven codebases."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -40,9 +40,12 @@ import argparse
|
|
|
40
40
|
import json
|
|
41
41
|
import os
|
|
42
42
|
import sys
|
|
43
|
+
from datetime import UTC, datetime
|
|
43
44
|
from pathlib import Path
|
|
44
45
|
from typing import Any
|
|
45
46
|
|
|
47
|
+
from doubled_graph.storage import paths as sp
|
|
48
|
+
|
|
46
49
|
|
|
47
50
|
def _depth_1_to_10(value: str) -> int:
|
|
48
51
|
"""argparse type for `impact --depth`: same 1–10 contract as the MCP schema.
|
|
@@ -833,9 +836,12 @@ def _cmd_uninstall(args: argparse.Namespace) -> int:
|
|
|
833
836
|
|
|
834
837
|
|
|
835
838
|
def _cmd_setup(args: argparse.Namespace) -> int:
|
|
839
|
+
from doubled_graph import setup as setup_mod
|
|
836
840
|
from doubled_graph.setup import run_setup
|
|
837
841
|
|
|
838
842
|
repo = Path(args.repo or ".").resolve()
|
|
843
|
+
if getattr(args, "json", False):
|
|
844
|
+
setup_mod._JSON_MODE = True
|
|
839
845
|
report = run_setup(
|
|
840
846
|
repo_path=repo,
|
|
841
847
|
ide=args.ide,
|
|
@@ -845,7 +851,20 @@ def _cmd_setup(args: argparse.Namespace) -> int:
|
|
|
845
851
|
skip_skills=args.skip_skills,
|
|
846
852
|
dry_run=args.dry_run,
|
|
847
853
|
)
|
|
848
|
-
|
|
854
|
+
# `setup` prints one result line per step on stdout. The full report
|
|
855
|
+
# (every written path) goes to a file, and to stdout only on request: a
|
|
856
|
+
# default JSON dump is noise that hides the one line the user needs.
|
|
857
|
+
stamp = datetime.now(UTC).strftime("%Y%m%dT%H%M%SZ")
|
|
858
|
+
try:
|
|
859
|
+
log_dir = sp.logs_dir(repo)
|
|
860
|
+
report_path = log_dir / f"setup-{stamp}.json"
|
|
861
|
+
report_path.write_text(json.dumps(report, indent=2, ensure_ascii=False), encoding="utf-8")
|
|
862
|
+
except OSError:
|
|
863
|
+
report_path = None
|
|
864
|
+
if getattr(args, "json", False):
|
|
865
|
+
print(json.dumps(report, indent=2, ensure_ascii=False))
|
|
866
|
+
elif report_path is not None:
|
|
867
|
+
print(f"report: {report_path}", file=sys.stderr)
|
|
849
868
|
return 0 if report.get("ok") else 1
|
|
850
869
|
|
|
851
870
|
|
|
@@ -1160,6 +1179,12 @@ def main(argv_default: list[str] | None = None, argv: list[str] | None = None) -
|
|
|
1160
1179
|
p_setup.add_argument("--skip-analyze", action="store_true", help="don't run first full analyze")
|
|
1161
1180
|
p_setup.add_argument("--skip-skills", action="store_true", help="don't write per-IDE skill files")
|
|
1162
1181
|
p_setup.add_argument("--dry-run", action="store_true", help="plan only; no fs/network changes")
|
|
1182
|
+
# The machine-readable report is opt-in: `setup` is a human-facing command,
|
|
1183
|
+
# and dumping it by default buried the step statuses under every path that
|
|
1184
|
+
# was written (prompts, methodology, per-IDE skill files).
|
|
1185
|
+
p_setup.add_argument(
|
|
1186
|
+
"--json", action="store_true", help="print the full JSON report (also written to .doubled-graph/logs/)"
|
|
1187
|
+
)
|
|
1163
1188
|
p_setup.set_defaults(func=_cmd_setup)
|
|
1164
1189
|
|
|
1165
1190
|
# Single removal path for everything `setup`/`daemon install` created.
|
|
@@ -88,9 +88,19 @@ def _have(cmd: str) -> bool:
|
|
|
88
88
|
return shutil.which(cmd) is not None
|
|
89
89
|
|
|
90
90
|
|
|
91
|
+
#: Set by `--json`: the machine report owns stdout, so human lines stay out
|
|
92
|
+
#: of the way (they are still written, to stderr).
|
|
93
|
+
_JSON_MODE = False
|
|
94
|
+
|
|
95
|
+
|
|
91
96
|
def _log(msg: str) -> None:
|
|
92
|
-
"""Emit
|
|
93
|
-
|
|
97
|
+
"""Emit one result line per step.
|
|
98
|
+
|
|
99
|
+
stdout is the default: `setup` is a human-facing command, and a silent run
|
|
100
|
+
looks like it did nothing. With `--json` the report takes stdout, so the
|
|
101
|
+
human lines move to stderr instead of disappearing.
|
|
102
|
+
"""
|
|
103
|
+
print(msg, file=sys.stderr if _JSON_MODE else sys.stdout, flush=True)
|
|
94
104
|
|
|
95
105
|
|
|
96
106
|
#: Step statuses that mean "something went wrong". They are always rendered as
|
|
@@ -1088,6 +1098,14 @@ def _install_daemon_service(repo: Path, dry_run: bool) -> dict[str, Any]:
|
|
|
1088
1098
|
try:
|
|
1089
1099
|
manager = get_service_manager()
|
|
1090
1100
|
result = ensure_running(manager, repo_path=repo, restart=True)
|
|
1101
|
+
# A bootstrap can fail transiently (launchd throttles a job that was
|
|
1102
|
+
# booted out moments ago, an old unit is still cached). `setup` is the
|
|
1103
|
+
# designated repair path, so it retries once instead of asking the user
|
|
1104
|
+
# to run `daemon install` by hand.
|
|
1105
|
+
if result.get("status") != "running" and not manager.status().get("loaded"):
|
|
1106
|
+
retried = ensure_running(manager, repo_path=repo, restart=True)
|
|
1107
|
+
if retried.get("status") == "running":
|
|
1108
|
+
result = retried
|
|
1091
1109
|
result["service"] = manager.status()
|
|
1092
1110
|
result["client_version"] = __version__
|
|
1093
1111
|
daemon_version = (result.get("daemon") or {}).get("version")
|
|
@@ -499,7 +499,12 @@ def _analyze_unlocked(
|
|
|
499
499
|
warnings.append(
|
|
500
500
|
AnalyzeWarning(
|
|
501
501
|
code="CGC_NO_FILES",
|
|
502
|
-
detail=
|
|
502
|
+
detail=(
|
|
503
|
+
"CGC scanned zero source files; the computed graph is empty. "
|
|
504
|
+
f"repo={repo_path} files_processed={s.files_processed} "
|
|
505
|
+
f"symbols_added={s.symbols_added} "
|
|
506
|
+
f"mode={resolved_mode} excluded={len(exclude)}"
|
|
507
|
+
),
|
|
503
508
|
)
|
|
504
509
|
)
|
|
505
510
|
elif indexable and s.symbols_added == 0:
|
|
@@ -393,6 +393,7 @@ def test_setup_version_mismatch_exits_1(
|
|
|
393
393
|
"--skip-hooks",
|
|
394
394
|
"--skip-analyze",
|
|
395
395
|
"--skip-skills",
|
|
396
|
+
"--json",
|
|
396
397
|
]
|
|
397
398
|
)
|
|
398
399
|
|
|
@@ -690,3 +691,53 @@ def test_setup_dry_run_lists_the_self_healing_steps() -> None:
|
|
|
690
691
|
assert "enable" in actions
|
|
691
692
|
assert "bootstrap" in actions
|
|
692
693
|
assert "supervisor stderr" in actions
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
def test_setup_retries_a_failed_bootstrap_once(tmp_path: Path, monkeypatch) -> None:
|
|
697
|
+
"""`setup` is the repair path: one transient bootstrap failure is retried."""
|
|
698
|
+
from doubled_graph import setup as setup_mod
|
|
699
|
+
from doubled_graph.integrations import service as service_mod
|
|
700
|
+
|
|
701
|
+
monkeypatch.delenv("DOUBLED_GRAPH_NO_SERVICE", raising=False)
|
|
702
|
+
calls = {"n": 0}
|
|
703
|
+
|
|
704
|
+
class _Manager:
|
|
705
|
+
def status(self):
|
|
706
|
+
return {"loaded": False}
|
|
707
|
+
|
|
708
|
+
def fake_ensure(manager, repo_path, restart):
|
|
709
|
+
calls["n"] += 1
|
|
710
|
+
if calls["n"] == 2:
|
|
711
|
+
return {"status": "running", "daemon": {"version": setup_mod.__version__}}
|
|
712
|
+
return {"status": "failed", "stderr": "Bootstrap failed: 5"}
|
|
713
|
+
|
|
714
|
+
monkeypatch.setattr(service_mod, "get_service_manager", lambda: _Manager())
|
|
715
|
+
monkeypatch.setattr(service_mod, "ensure_running", fake_ensure)
|
|
716
|
+
|
|
717
|
+
result = setup_mod._install_daemon_service(tmp_path, dry_run=False)
|
|
718
|
+
|
|
719
|
+
assert calls["n"] == 2
|
|
720
|
+
assert result["status"] == "running"
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
def test_setup_reports_a_daemon_that_never_starts(tmp_path: Path, monkeypatch) -> None:
|
|
724
|
+
from doubled_graph import setup as setup_mod
|
|
725
|
+
from doubled_graph.integrations import service as service_mod
|
|
726
|
+
|
|
727
|
+
monkeypatch.delenv("DOUBLED_GRAPH_NO_SERVICE", raising=False)
|
|
728
|
+
|
|
729
|
+
class _Manager:
|
|
730
|
+
def status(self):
|
|
731
|
+
return {"loaded": False}
|
|
732
|
+
|
|
733
|
+
monkeypatch.setattr(service_mod, "get_service_manager", lambda: _Manager())
|
|
734
|
+
monkeypatch.setattr(
|
|
735
|
+
service_mod,
|
|
736
|
+
"ensure_running",
|
|
737
|
+
lambda manager, repo_path, restart: {"status": "failed", "stderr": "nope"},
|
|
738
|
+
)
|
|
739
|
+
|
|
740
|
+
result = setup_mod._install_daemon_service(tmp_path, dry_run=False)
|
|
741
|
+
|
|
742
|
+
assert result["status"] == "failed"
|
|
743
|
+
assert result["stderr"] == "nope"
|
|
@@ -196,9 +196,9 @@ def test_package_version_falls_back_when_distribution_is_missing(monkeypatch) ->
|
|
|
196
196
|
|
|
197
197
|
|
|
198
198
|
def test_release_version_is_3_0_5_and_used_by_meta(tmp_path: Path) -> None:
|
|
199
|
-
"""The 3.0.
|
|
199
|
+
"""The 3.0.6 release string is the single source used by `meta.tool_version`."""
|
|
200
200
|
from doubled_graph import __version__
|
|
201
201
|
from doubled_graph.tools._meta import build_meta
|
|
202
202
|
|
|
203
|
-
assert __version__ == "3.0.
|
|
203
|
+
assert __version__ == "3.0.6"
|
|
204
204
|
assert build_meta(tmp_path).tool_version == __version__
|
|
@@ -706,11 +706,67 @@ def test_setup_maps_ok_to_rc(
|
|
|
706
706
|
]
|
|
707
707
|
)
|
|
708
708
|
assert rc == expected_rc
|
|
709
|
-
|
|
709
|
+
# `setup` is human-facing: the full report goes to a file, stdout stays
|
|
710
|
+
# empty unless `--json` is asked for (the JSON dump used to bury the step
|
|
711
|
+
# statuses under every written path).
|
|
712
|
+
assert capsys.readouterr().out == ""
|
|
713
|
+
reports = list((tmp_path / ".doubled-graph" / "logs").glob("setup-*.json"))
|
|
714
|
+
assert reports, "the JSON report must still be written to .doubled-graph/logs"
|
|
715
|
+
assert json.loads(reports[0].read_text(encoding="utf-8")) == {"ok": ok}
|
|
710
716
|
assert seen["ide"] == "none"
|
|
711
717
|
assert seen["dry_run"] is True
|
|
712
718
|
|
|
713
719
|
|
|
720
|
+
def test_setup_survives_an_unwritable_report_directory(
|
|
721
|
+
tmp_path: Path,
|
|
722
|
+
monkeypatch: pytest.MonkeyPatch,
|
|
723
|
+
capsys: pytest.CaptureFixture[str],
|
|
724
|
+
) -> None:
|
|
725
|
+
from doubled_graph import setup as setup_mod
|
|
726
|
+
|
|
727
|
+
monkeypatch.setattr(setup_mod, "run_setup", lambda **kwargs: {"ok": True})
|
|
728
|
+
monkeypatch.setattr(
|
|
729
|
+
"doubled_graph.cli.sp.logs_dir",
|
|
730
|
+
lambda _repo: (_ for _ in ()).throw(OSError("read-only")),
|
|
731
|
+
)
|
|
732
|
+
rc = cli.main(
|
|
733
|
+
argv=["setup", "--repo", str(tmp_path), "--ide", "none", "--dry-run"]
|
|
734
|
+
)
|
|
735
|
+
assert rc == 0
|
|
736
|
+
# The report could not be written; the command must still succeed and say
|
|
737
|
+
# nothing about a file it did not create.
|
|
738
|
+
captured = capsys.readouterr()
|
|
739
|
+
assert captured.out == ""
|
|
740
|
+
assert captured.err == ""
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
def test_setup_json_flag_prints_the_report(
|
|
744
|
+
tmp_path: Path,
|
|
745
|
+
monkeypatch: pytest.MonkeyPatch,
|
|
746
|
+
capsys: pytest.CaptureFixture[str],
|
|
747
|
+
) -> None:
|
|
748
|
+
from doubled_graph import setup as setup_mod
|
|
749
|
+
|
|
750
|
+
monkeypatch.setattr(setup_mod, "run_setup", lambda **kwargs: {"ok": True})
|
|
751
|
+
rc = cli.main(
|
|
752
|
+
argv=[
|
|
753
|
+
"setup",
|
|
754
|
+
"--repo",
|
|
755
|
+
str(tmp_path),
|
|
756
|
+
"--ide",
|
|
757
|
+
"none",
|
|
758
|
+
"--skip-grace-cli",
|
|
759
|
+
"--skip-hooks",
|
|
760
|
+
"--skip-analyze",
|
|
761
|
+
"--skip-skills",
|
|
762
|
+
"--dry-run",
|
|
763
|
+
"--json",
|
|
764
|
+
]
|
|
765
|
+
)
|
|
766
|
+
assert rc == 0
|
|
767
|
+
assert json.loads(capsys.readouterr().out) == {"ok": True}
|
|
768
|
+
|
|
769
|
+
|
|
714
770
|
# ---------------------------------------------------------------------------
|
|
715
771
|
# entrypoint argv selection (module __main__ passes argv_default)
|
|
716
772
|
# ---------------------------------------------------------------------------
|
|
@@ -754,3 +754,33 @@ def test_health_does_not_call_a_plist_an_installation(
|
|
|
754
754
|
assert daemon["loaded"] is False
|
|
755
755
|
assert daemon["disabled"] is False
|
|
756
756
|
assert "service_check_error" not in daemon
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
def test_health_never_mutates_the_service(tmp_path: Path, healthy_cgc, monkeypatch) -> None:
|
|
760
|
+
"""`health` reports; repairing the service is `setup`'s job (AGENTS.md).
|
|
761
|
+
|
|
762
|
+
The rule is permanent: health must never install, start, stop, restart,
|
|
763
|
+
enable or uninstall anything, even when the daemon is down. A regression
|
|
764
|
+
that "helpfully" starts the daemon would turn a diagnostic into a side
|
|
765
|
+
effect and break the client/daemon contract.
|
|
766
|
+
"""
|
|
767
|
+
|
|
768
|
+
class _ReadOnlyManager:
|
|
769
|
+
def is_installed(self) -> bool:
|
|
770
|
+
return False
|
|
771
|
+
|
|
772
|
+
def __getattr__(self, name: str):
|
|
773
|
+
raise AssertionError(f"health called service.{name}")
|
|
774
|
+
|
|
775
|
+
monkeypatch.setattr(
|
|
776
|
+
"doubled_graph.integrations.service.get_service_manager",
|
|
777
|
+
lambda: _ReadOnlyManager(),
|
|
778
|
+
)
|
|
779
|
+
|
|
780
|
+
repo = tmp_path / "repo"
|
|
781
|
+
repo.mkdir()
|
|
782
|
+
_make_valid_grace(repo)
|
|
783
|
+
|
|
784
|
+
report = build_health_report(repo)
|
|
785
|
+
|
|
786
|
+
assert report["cgc"]["daemon"]["installed"] is False
|
|
@@ -78,6 +78,7 @@ def test_cli_setup_artifact_failure_exits_nonzero(
|
|
|
78
78
|
"--skip-grace-cli",
|
|
79
79
|
"--skip-skills",
|
|
80
80
|
"--skip-analyze",
|
|
81
|
+
"--json",
|
|
81
82
|
]
|
|
82
83
|
)
|
|
83
84
|
|
|
@@ -132,6 +133,7 @@ def test_cli_setup_first_analyze_failure_exits_nonzero(
|
|
|
132
133
|
"none",
|
|
133
134
|
"--skip-grace-cli",
|
|
134
135
|
"--skip-skills",
|
|
136
|
+
"--json",
|
|
135
137
|
]
|
|
136
138
|
)
|
|
137
139
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/migrate-existing-project/00-entry-prompt.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/migrate-existing-project/03-draft-plan.md
RENAMED
|
File without changes
|
{doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/migrate-existing-project/04-markup-codebase.md
RENAMED
|
File without changes
|
|
File without changes
|
{doubled_graph-3.0.5 → doubled_graph-3.0.6}/prompts/migrate-existing-project/06-validation-gates.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{doubled_graph-3.0.5 → doubled_graph-3.0.6}/src/doubled_graph/migrations/grace3_to_grace4.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|