@documentation-robotics/cli 0.1.0 → 0.1.7
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.
- package/LICENSE +21 -0
- package/README.md +466 -693
- package/dist/analysis/data-model-analyzer.js +189 -0
- package/dist/analysis/data-model-analyzer.js.map +7 -0
- package/dist/analysis/index.js +3 -0
- package/dist/analysis/index.js.map +7 -0
- package/dist/analysis/relationship-classifier.js +181 -0
- package/dist/analysis/relationship-classifier.js.map +7 -0
- package/dist/analyzers/base-analyzer.js +1 -0
- package/dist/analyzers/base-analyzer.js.map +7 -0
- package/dist/analyzers/call-graph-utils.js +39 -0
- package/dist/analyzers/call-graph-utils.js.map +7 -0
- package/dist/analyzers/cbm-analyzer.js +1205 -0
- package/dist/analyzers/cbm-analyzer.js.map +7 -0
- package/dist/analyzers/heuristic-utils.js +55 -0
- package/dist/analyzers/heuristic-utils.js.map +7 -0
- package/dist/analyzers/mapping-loader.js +146 -0
- package/dist/analyzers/mapping-loader.js.map +7 -0
- package/dist/analyzers/registry.js +124 -0
- package/dist/analyzers/registry.js.map +7 -0
- package/dist/analyzers/session-state.js +176 -0
- package/dist/analyzers/session-state.js.map +7 -0
- package/dist/analyzers/stdio-client.js +208 -0
- package/dist/analyzers/stdio-client.js.map +7 -0
- package/dist/analyzers/types.js +15 -0
- package/dist/analyzers/types.js.map +7 -0
- package/dist/analyzers/verify-engine.js +209 -0
- package/dist/analyzers/verify-engine.js.map +7 -0
- package/dist/analyzers/verify-ignore.js +130 -0
- package/dist/analyzers/verify-ignore.js.map +7 -0
- package/dist/analyzers/version.js +8 -0
- package/dist/analyzers/version.js.map +7 -0
- package/dist/audit/ai/runner.js +41 -0
- package/dist/audit/ai/runner.js.map +7 -0
- package/dist/audit/differential-analyzer.js +183 -0
- package/dist/audit/differential-analyzer.js.map +7 -0
- package/dist/audit/index.js +32 -0
- package/dist/audit/index.js.map +7 -0
- package/dist/audit/nodes/ai/evaluator.js +49 -0
- package/dist/audit/nodes/ai/evaluator.js.map +7 -0
- package/dist/audit/nodes/ai/parser.js +55 -0
- package/dist/audit/nodes/ai/parser.js.map +7 -0
- package/dist/audit/nodes/ai/prompts.js +103 -0
- package/dist/audit/nodes/ai/prompts.js.map +7 -0
- package/dist/audit/nodes/analysis/node-completeness-checker.js +32 -0
- package/dist/audit/nodes/analysis/node-completeness-checker.js.map +7 -0
- package/dist/audit/nodes/analysis/node-definition-analyzer.js +47 -0
- package/dist/audit/nodes/analysis/node-definition-analyzer.js.map +7 -0
- package/dist/audit/nodes/analysis/node-overlap-detector.js +79 -0
- package/dist/audit/nodes/analysis/node-overlap-detector.js.map +7 -0
- package/dist/audit/nodes/model/orchestrator.js +82 -0
- package/dist/audit/nodes/model/orchestrator.js.map +7 -0
- package/dist/audit/nodes/spec/loader.js +116 -0
- package/dist/audit/nodes/spec/loader.js.map +7 -0
- package/dist/audit/nodes/spec/orchestrator.js +68 -0
- package/dist/audit/nodes/spec/orchestrator.js.map +7 -0
- package/dist/audit/nodes/types.js +1 -0
- package/dist/audit/nodes/types.js.map +7 -0
- package/dist/audit/pipeline/index.js +5 -0
- package/dist/audit/pipeline/index.js.map +7 -0
- package/dist/audit/pipeline/pipeline-orchestrator.js +218 -0
- package/dist/audit/pipeline/pipeline-orchestrator.js.map +7 -0
- package/dist/audit/relationships/ai/evaluator.js +235 -0
- package/dist/audit/relationships/ai/evaluator.js.map +7 -0
- package/dist/audit/relationships/ai/parser.js +197 -0
- package/dist/audit/relationships/ai/parser.js.map +7 -0
- package/dist/audit/relationships/ai/prompts.js +274 -0
- package/dist/audit/relationships/ai/prompts.js.map +7 -0
- package/dist/audit/relationships/analysis/balance-assessor.js +115 -0
- package/dist/audit/relationships/analysis/balance-assessor.js.map +7 -0
- package/dist/audit/relationships/analysis/coverage-analyzer.js +99 -0
- package/dist/audit/relationships/analysis/coverage-analyzer.js.map +7 -0
- package/dist/audit/relationships/analysis/duplicate-detector.js +95 -0
- package/dist/audit/relationships/analysis/duplicate-detector.js.map +7 -0
- package/dist/audit/relationships/analysis/gap-analyzer.js +99 -0
- package/dist/audit/relationships/analysis/gap-analyzer.js.map +7 -0
- package/dist/audit/relationships/analysis/layer-templates.js +294 -0
- package/dist/audit/relationships/analysis/layer-templates.js.map +7 -0
- package/dist/audit/relationships/graph/connectivity.js +129 -0
- package/dist/audit/relationships/graph/connectivity.js.map +7 -0
- package/dist/audit/relationships/graph/relationship-graph.js +179 -0
- package/dist/audit/relationships/graph/relationship-graph.js.map +7 -0
- package/dist/audit/relationships/model/balance-assessor.js +49 -0
- package/dist/audit/relationships/model/balance-assessor.js.map +7 -0
- package/dist/audit/relationships/model/coverage-analyzer.js +34 -0
- package/dist/audit/relationships/model/coverage-analyzer.js.map +7 -0
- package/dist/audit/relationships/model/duplicate-detector.js +68 -0
- package/dist/audit/relationships/model/duplicate-detector.js.map +7 -0
- package/dist/audit/relationships/model/gap-analyzer.js +41 -0
- package/dist/audit/relationships/model/gap-analyzer.js.map +7 -0
- package/dist/audit/relationships/model/orchestrator.js +126 -0
- package/dist/audit/relationships/model/orchestrator.js.map +7 -0
- package/dist/audit/relationships/spec/orchestrator.js +157 -0
- package/dist/audit/relationships/spec/orchestrator.js.map +7 -0
- package/dist/audit/reports/index.js +5 -0
- package/dist/audit/reports/index.js.map +7 -0
- package/dist/audit/reports/report-generator.js +118 -0
- package/dist/audit/reports/report-generator.js.map +7 -0
- package/dist/audit/snapshot-storage.js +163 -0
- package/dist/audit/snapshot-storage.js.map +7 -0
- package/dist/audit/types.js +21 -0
- package/dist/audit/types.js.map +7 -0
- package/dist/cli.js +223 -92
- package/dist/cli.js.map +3 -3
- package/dist/coding-agents/agents/claude-code.js +147 -0
- package/dist/coding-agents/agents/claude-code.js.map +7 -0
- package/dist/coding-agents/agents/index.js +5 -0
- package/dist/coding-agents/agents/index.js.map +7 -0
- package/dist/coding-agents/agents/types.js +1 -0
- package/dist/coding-agents/agents/types.js.map +7 -0
- package/dist/coding-agents/base-chat-client.js +45 -0
- package/dist/coding-agents/base-chat-client.js.map +7 -0
- package/dist/coding-agents/chat-utils.js +23 -0
- package/dist/coding-agents/chat-utils.js.map +7 -0
- package/dist/coding-agents/claude-code-client.js +246 -0
- package/dist/coding-agents/claude-code-client.js.map +7 -0
- package/dist/coding-agents/copilot-client.js +209 -0
- package/dist/coding-agents/copilot-client.js.map +7 -0
- package/dist/commands/add.js +95 -33
- package/dist/commands/add.js.map +2 -2
- package/dist/commands/analyzer.js +511 -0
- package/dist/commands/analyzer.js.map +7 -0
- package/dist/commands/audit-diff.js +49 -0
- package/dist/commands/audit-diff.js.map +7 -0
- package/dist/commands/audit-snapshots.js +62 -0
- package/dist/commands/audit-snapshots.js.map +7 -0
- package/dist/commands/audit.js +81 -0
- package/dist/commands/audit.js.map +7 -0
- package/dist/commands/catalog.js +248 -0
- package/dist/commands/catalog.js.map +7 -0
- package/dist/commands/changeset.js +577 -66
- package/dist/commands/changeset.js.map +2 -2
- package/dist/commands/chat.js +106 -83
- package/dist/commands/chat.js.map +2 -2
- package/dist/commands/claude.js +74 -0
- package/dist/commands/claude.js.map +7 -0
- package/dist/commands/conformance.js +71 -68
- package/dist/commands/conformance.js.map +2 -2
- package/dist/commands/copilot.js +75 -0
- package/dist/commands/copilot.js.map +7 -0
- package/dist/commands/delete.js +125 -11
- package/dist/commands/delete.js.map +3 -3
- package/dist/commands/discover-logic.js +44 -0
- package/dist/commands/discover-logic.js.map +7 -0
- package/dist/commands/docs.js +87 -0
- package/dist/commands/docs.js.map +7 -0
- package/dist/commands/element.js +14 -20
- package/dist/commands/element.js.map +2 -2
- package/dist/commands/export.js +13 -3
- package/dist/commands/export.js.map +2 -2
- package/dist/commands/import.js +51 -0
- package/dist/commands/import.js.map +7 -0
- package/dist/commands/info.js +30 -24
- package/dist/commands/info.js.map +2 -2
- package/dist/commands/init.js +27 -11
- package/dist/commands/init.js.map +2 -2
- package/dist/commands/list.js +63 -13
- package/dist/commands/list.js.map +3 -3
- package/dist/commands/relationship.js +225 -37
- package/dist/commands/relationship.js.map +2 -2
- package/dist/commands/report.js +54 -0
- package/dist/commands/report.js.map +7 -0
- package/dist/commands/reports.js +45 -0
- package/dist/commands/reports.js.map +7 -0
- package/dist/commands/schema.js +135 -0
- package/dist/commands/schema.js.map +7 -0
- package/dist/commands/search.js +40 -12
- package/dist/commands/search.js.map +2 -2
- package/dist/commands/show.js +58 -27
- package/dist/commands/show.js.map +2 -2
- package/dist/commands/stats.js +35 -0
- package/dist/commands/stats.js.map +7 -0
- package/dist/commands/trace.js +39 -16
- package/dist/commands/trace.js.map +2 -2
- package/dist/commands/update.js +141 -14
- package/dist/commands/update.js.map +2 -2
- package/dist/commands/upgrade.js +210 -46
- package/dist/commands/upgrade.js.map +3 -3
- package/dist/commands/validate.js +142 -23
- package/dist/commands/validate.js.map +3 -3
- package/dist/commands/version.js +8 -12
- package/dist/commands/version.js.map +2 -2
- package/dist/commands/visualize.js +162 -25
- package/dist/commands/visualize.js.map +2 -2
- package/dist/core/base-snapshot-manager.js +84 -0
- package/dist/core/base-snapshot-manager.js.map +7 -0
- package/dist/core/changeset-exporter.js +305 -0
- package/dist/core/changeset-exporter.js.map +7 -0
- package/dist/core/changeset-validator.js +41 -0
- package/dist/core/changeset-validator.js.map +7 -0
- package/dist/core/changeset.js +88 -173
- package/dist/core/changeset.js.map +2 -2
- package/dist/core/dependency-tracker.js +4 -2
- package/dist/core/dependency-tracker.js.map +2 -2
- package/dist/core/element.js +98 -27
- package/dist/core/element.js.map +2 -2
- package/dist/core/golden-copy-cache.js +290 -0
- package/dist/core/golden-copy-cache.js.map +7 -0
- package/dist/core/graph-model.js +266 -0
- package/dist/core/graph-model.js.map +7 -0
- package/dist/core/layer.js +159 -16
- package/dist/core/layer.js.map +2 -2
- package/dist/core/layers.js +32 -0
- package/dist/core/layers.js.map +7 -0
- package/dist/core/manifest.js +32 -11
- package/dist/core/manifest.js.map +2 -2
- package/dist/core/migration-registry.js +56 -1
- package/dist/core/migration-registry.js.map +2 -2
- package/dist/core/model.js +424 -217
- package/dist/core/model.js.map +3 -3
- package/dist/core/mutation-handler.js +179 -0
- package/dist/core/mutation-handler.js.map +7 -0
- package/dist/core/reference-registry.js +29 -21
- package/dist/core/reference-registry.js.map +2 -2
- package/dist/core/relationship-catalog.js +189 -0
- package/dist/core/relationship-catalog.js.map +7 -0
- package/dist/core/relationship-registry.js.map +2 -2
- package/dist/core/relationships.js.map +1 -1
- package/dist/core/report-data-model.js +285 -0
- package/dist/core/report-data-model.js.map +7 -0
- package/dist/core/spec-data-service.js +185 -0
- package/dist/core/spec-data-service.js.map +7 -0
- package/dist/core/spec-loader-types.js +1 -0
- package/dist/core/spec-loader-types.js.map +7 -0
- package/dist/core/spec-loader.js +234 -0
- package/dist/core/spec-loader.js.map +7 -0
- package/dist/core/staged-changeset-storage.js +282 -0
- package/dist/core/staged-changeset-storage.js.map +7 -0
- package/dist/core/staging-area.js +1002 -0
- package/dist/core/staging-area.js.map +7 -0
- package/dist/core/stats-collector.js +169 -0
- package/dist/core/stats-collector.js.map +7 -0
- package/dist/core/virtual-projection.js +443 -0
- package/dist/core/virtual-projection.js.map +7 -0
- package/dist/export/archimate-exporter.js +99 -60
- package/dist/export/archimate-exporter.js.map +2 -2
- package/dist/export/audit-formatters.js +479 -0
- package/dist/export/audit-formatters.js.map +7 -0
- package/dist/export/diff-formatters.js +99 -0
- package/dist/export/diff-formatters.js.map +7 -0
- package/dist/export/export-manager.js.map +2 -2
- package/dist/export/graphml-exporter.js +44 -27
- package/dist/export/graphml-exporter.js.map +2 -2
- package/dist/export/index.js +4 -0
- package/dist/export/index.js.map +2 -2
- package/dist/export/json-schema-exporter.js +55 -42
- package/dist/export/json-schema-exporter.js.map +2 -2
- package/dist/export/markdown-exporter.js +92 -70
- package/dist/export/markdown-exporter.js.map +2 -2
- package/dist/export/markdown-generator.js +248 -0
- package/dist/export/markdown-generator.js.map +7 -0
- package/dist/export/markdown-utils.js +30 -0
- package/dist/export/markdown-utils.js.map +7 -0
- package/dist/export/mermaid-markdown-exporter.js +37 -0
- package/dist/export/mermaid-markdown-exporter.js.map +7 -0
- package/dist/export/openapi-exporter.js +119 -71
- package/dist/export/openapi-exporter.js.map +2 -2
- package/dist/export/plantuml-exporter.js +104 -39
- package/dist/export/plantuml-exporter.js.map +2 -2
- package/dist/export/report-formatters.js +111 -0
- package/dist/export/report-formatters.js.map +7 -0
- package/dist/export/stats-formatters.js +98 -0
- package/dist/export/stats-formatters.js.map +7 -0
- package/dist/export/types.js +2 -14
- package/dist/export/types.js.map +2 -2
- package/dist/export/verify-formatters.js +153 -0
- package/dist/export/verify-formatters.js.map +7 -0
- package/dist/generated/compiled-validators.js +17 -0
- package/dist/generated/compiled-validators.js.map +7 -0
- package/dist/generated/index.js +31 -0
- package/dist/generated/index.js.map +7 -0
- package/dist/generated/layer-registry.js +190 -0
- package/dist/generated/layer-registry.js.map +7 -0
- package/dist/generated/layer-types.js +7 -0
- package/dist/generated/layer-types.js.map +7 -0
- package/dist/generated/node-types.js +1719 -0
- package/dist/generated/node-types.js.map +7 -0
- package/dist/generated/relationship-index.js +14552 -0
- package/dist/generated/relationship-index.js.map +7 -0
- package/dist/import/archimate-importer.js +166 -0
- package/dist/import/archimate-importer.js.map +7 -0
- package/dist/import/index.js +47 -0
- package/dist/import/index.js.map +7 -0
- package/dist/import/openapi-importer.js +143 -0
- package/dist/import/openapi-importer.js.map +7 -0
- package/dist/import/types.js +1 -0
- package/dist/import/types.js.map +7 -0
- package/dist/integrations/base-manager.js +311 -0
- package/dist/integrations/base-manager.js.map +7 -0
- package/dist/integrations/claude-manager.js +360 -0
- package/dist/integrations/claude-manager.js.map +7 -0
- package/dist/integrations/claude_code/agents/dr-advisor.md +253 -0
- package/dist/integrations/claude_code/agents/dr-architect.md +278 -0
- package/dist/integrations/claude_code/agents/dr-extractor.md +286 -0
- package/dist/integrations/claude_code/commands/dr-changeset.md +657 -0
- package/dist/integrations/claude_code/commands/dr-design.md +373 -0
- package/dist/integrations/claude_code/commands/dr-info.md +132 -0
- package/dist/integrations/claude_code/commands/dr-init.md +251 -0
- package/dist/integrations/claude_code/commands/dr-map.md +936 -0
- package/dist/integrations/claude_code/commands/dr-model.md +493 -0
- package/dist/integrations/claude_code/commands/dr-relate.md +814 -0
- package/dist/integrations/claude_code/commands/dr-sync.md +279 -0
- package/dist/integrations/claude_code/commands/dr-validate.md +654 -0
- package/dist/integrations/claude_code/commands/dr-verify.md +559 -0
- package/dist/integrations/claude_code/docs/END_TO_END_WALKTHROUGH.md +903 -0
- package/dist/integrations/claude_code/docs/QUICK_START.md +271 -0
- package/dist/integrations/claude_code/docs/README.md +347 -0
- package/dist/integrations/claude_code/skills/dr_01_motivation_layer/SKILL.md +550 -0
- package/dist/integrations/claude_code/skills/dr_02_business_layer/SKILL.md +620 -0
- package/dist/integrations/claude_code/skills/dr_03_security_layer/SKILL.md +642 -0
- package/dist/integrations/claude_code/skills/dr_04_application_layer/SKILL.md +911 -0
- package/dist/integrations/claude_code/skills/dr_05_technology_layer/SKILL.md +836 -0
- package/dist/integrations/claude_code/skills/dr_06_api_layer/SKILL.md +933 -0
- package/dist/integrations/claude_code/skills/dr_07_data_model_layer/SKILL.md +210 -0
- package/dist/integrations/claude_code/skills/dr_08_dataset_layer/SKILL.md +319 -0
- package/dist/integrations/claude_code/skills/dr_09_ux_layer/SKILL.md +319 -0
- package/dist/integrations/claude_code/skills/dr_10_navigation_layer/SKILL.md +318 -0
- package/dist/integrations/claude_code/skills/dr_11_apm_layer/SKILL.md +273 -0
- package/dist/integrations/claude_code/skills/dr_12_testing_layer/SKILL.md +273 -0
- package/dist/integrations/claude_code/skills/dr_changeset_reviewer/SKILL.md +187 -0
- package/dist/integrations/claude_code/skills/dr_codebase_memory/SKILL.md +590 -0
- package/dist/integrations/claude_code/skills/dr_engineering_guide/SKILL.md +295 -0
- package/dist/integrations/copilot-manager.js +328 -0
- package/dist/integrations/copilot-manager.js.map +7 -0
- package/dist/integrations/github_copilot/agents/dr-advisor.md +243 -0
- package/dist/integrations/github_copilot/agents/dr-architect.md +1567 -0
- package/dist/integrations/github_copilot/skills/dr_01_motivation_layer/SKILL.md +491 -0
- package/dist/integrations/github_copilot/skills/dr_02_business_layer/SKILL.md +539 -0
- package/dist/integrations/github_copilot/skills/dr_03_security_layer/SKILL.md +667 -0
- package/dist/integrations/github_copilot/skills/dr_04_application_layer/SKILL.md +670 -0
- package/dist/integrations/github_copilot/skills/dr_05_technology_layer/SKILL.md +660 -0
- package/dist/integrations/github_copilot/skills/dr_06_api_layer/SKILL.md +855 -0
- package/dist/integrations/github_copilot/skills/dr_07_data_model_layer/SKILL.md +171 -0
- package/dist/integrations/github_copilot/skills/dr_08_dataset_layer/SKILL.md +216 -0
- package/dist/integrations/github_copilot/skills/dr_09_ux_layer/SKILL.md +230 -0
- package/dist/integrations/github_copilot/skills/dr_10_navigation_layer/SKILL.md +228 -0
- package/dist/integrations/github_copilot/skills/dr_11_apm_layer/SKILL.md +234 -0
- package/dist/integrations/github_copilot/skills/dr_12_testing_layer/SKILL.md +230 -0
- package/dist/integrations/github_copilot/skills/dr_changeset_reviewer/SKILL.md +187 -0
- package/dist/integrations/hash-utils.js +51 -0
- package/dist/integrations/hash-utils.js.map +7 -0
- package/dist/integrations/types.js +16 -0
- package/dist/integrations/types.js.map +7 -0
- package/dist/reports/model-layer-report-generator.js +278 -0
- package/dist/reports/model-layer-report-generator.js.map +7 -0
- package/dist/reports/model-report-data.js +57 -0
- package/dist/reports/model-report-data.js.map +7 -0
- package/dist/reports/model-report-orchestrator.js +103 -0
- package/dist/reports/model-report-orchestrator.js.map +7 -0
- package/dist/schemas/bundled/analyzers/cbm.json +595 -0
- package/dist/schemas/bundled/analyzers/manifest.json +9 -0
- package/dist/schemas/bundled/api.json +3411 -0
- package/dist/schemas/bundled/apm.json +2371 -0
- package/dist/schemas/bundled/application.json +1253 -0
- package/dist/schemas/bundled/base.json +1622 -0
- package/dist/schemas/bundled/business.json +1279 -0
- package/dist/schemas/bundled/data-model.json +1298 -0
- package/dist/schemas/bundled/data-store.json +2025 -0
- package/dist/schemas/bundled/manifest.json +93 -0
- package/dist/schemas/bundled/motivation.json +1360 -0
- package/dist/schemas/bundled/navigation.json +1874 -0
- package/dist/schemas/bundled/security.json +3488 -0
- package/dist/schemas/bundled/technology.json +2067 -0
- package/dist/schemas/bundled/testing.json +3120 -0
- package/dist/schemas/bundled/ux.json +3592 -0
- package/dist/server/schemas.js +202 -0
- package/dist/server/schemas.js.map +7 -0
- package/dist/server/server.js +1336 -252
- package/dist/server/server.js.map +3 -3
- package/dist/server/telemetry-middleware.js +22 -15
- package/dist/server/telemetry-middleware.js.map +2 -2
- package/dist/server-entry.js +65 -0
- package/dist/server-entry.js.map +7 -0
- package/dist/telemetry/config.js +89 -0
- package/dist/telemetry/config.js.map +7 -0
- package/dist/telemetry/console-interceptor.js.map +1 -1
- package/dist/telemetry/detect.js +24 -0
- package/dist/telemetry/detect.js.map +7 -0
- package/dist/telemetry/fetch-otlp-exporter.js +112 -0
- package/dist/telemetry/fetch-otlp-exporter.js.map +7 -0
- package/dist/telemetry/index.js +153 -3
- package/dist/telemetry/index.js.map +2 -2
- package/dist/telemetry/resilient-exporter.js +22 -8
- package/dist/telemetry/resilient-exporter.js.map +2 -2
- package/dist/telemetry/resilient-log-exporter.js +17 -8
- package/dist/telemetry/resilient-log-exporter.js.map +2 -2
- package/dist/telemetry/test-instrumentation.js.map +2 -2
- package/dist/types/index.js +84 -0
- package/dist/types/index.js.map +3 -3
- package/dist/types/source-reference.js +1 -0
- package/dist/types/source-reference.js.map +7 -0
- package/dist/utils/chat-logger.js +292 -0
- package/dist/utils/chat-logger.js.map +7 -0
- package/dist/utils/claude-stream.js +8 -0
- package/dist/utils/claude-stream.js.map +7 -0
- package/dist/utils/date-utils.js +7 -0
- package/dist/utils/date-utils.js.map +7 -0
- package/dist/utils/element-utils.js.map +1 -1
- package/dist/utils/errors.js +88 -15
- package/dist/utils/errors.js.map +3 -3
- package/dist/utils/export-python-annotations.js +82 -0
- package/dist/utils/export-python-annotations.js.map +7 -0
- package/dist/utils/file-io.js +7 -2
- package/dist/utils/file-io.js.map +2 -2
- package/dist/utils/file-lock.js +156 -0
- package/dist/utils/file-lock.js.map +7 -0
- package/dist/utils/id-generator.js +18 -0
- package/dist/utils/id-generator.js.map +7 -0
- package/dist/utils/layer-name-formatter.js +16 -0
- package/dist/utils/layer-name-formatter.js.map +7 -0
- package/dist/utils/markdown-anchor.js +7 -0
- package/dist/utils/markdown-anchor.js.map +7 -0
- package/dist/utils/markdown-link.js +12 -0
- package/dist/utils/markdown-link.js.map +7 -0
- package/dist/utils/markdown-table.js +17 -0
- package/dist/utils/markdown-table.js.map +7 -0
- package/dist/utils/mermaid-utils.js +11 -0
- package/dist/utils/mermaid-utils.js.map +7 -0
- package/dist/utils/project-paths.js.map +2 -2
- package/dist/utils/source-reference.js +52 -0
- package/dist/utils/source-reference.js.map +7 -0
- package/dist/utils/spec-installer.js +40 -53
- package/dist/utils/spec-installer.js.map +2 -2
- package/dist/utils/spec-version.js +5 -1
- package/dist/utils/spec-version.js.map +2 -2
- package/dist/utils/string-utils.js +12 -0
- package/dist/utils/string-utils.js.map +7 -0
- package/dist/utils/table-formatting.js +19 -0
- package/dist/utils/table-formatting.js.map +7 -0
- package/dist/validators/index.js +4 -0
- package/dist/validators/index.js.map +2 -2
- package/dist/validators/naming-validator.js +20 -23
- package/dist/validators/naming-validator.js.map +2 -2
- package/dist/validators/reference-validator.js +23 -38
- package/dist/validators/reference-validator.js.map +2 -2
- package/dist/validators/relationship-schema-validator.js +243 -0
- package/dist/validators/relationship-schema-validator.js.map +7 -0
- package/dist/validators/schema-validator.js +168 -68
- package/dist/validators/schema-validator.js.map +2 -2
- package/dist/validators/semantic-validator.js +36 -60
- package/dist/validators/semantic-validator.js.map +2 -2
- package/dist/validators/types.js.map +2 -2
- package/dist/validators/validation-formatter.js +159 -0
- package/dist/validators/validation-formatter.js.map +7 -0
- package/dist/validators/validator.js +24 -38
- package/dist/validators/validator.js.map +2 -2
- package/dist/viewer/README.md +139 -0
- package/dist/viewer/assets/main-CY0Xufuj.css +1 -0
- package/dist/viewer/assets/main-DtgErnwF.js +81 -0
- package/dist/viewer/assets/vendor-CxKvDp2x.js +17 -0
- package/dist/viewer/favicon.svg +11 -0
- package/dist/viewer/fonts/inter/Inter-Black.woff2 +0 -0
- package/dist/viewer/fonts/inter/Inter-Bold.woff2 +0 -0
- package/dist/viewer/fonts/inter/Inter-ExtraBold.woff2 +0 -0
- package/dist/viewer/fonts/inter/Inter-Light.woff2 +0 -0
- package/dist/viewer/fonts/inter/Inter-Medium.woff2 +0 -0
- package/dist/viewer/fonts/inter/Inter-Regular.woff2 +0 -0
- package/dist/viewer/fonts/inter/Inter-SemiBold.woff2 +0 -0
- package/dist/viewer/fonts/jetbrains-mono/JetBrainsMono-Medium.woff2 +0 -0
- package/dist/viewer/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2 +0 -0
- package/dist/viewer/fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2 +0 -0
- package/dist/viewer/index.html +15 -0
- package/dist/viewer/manifest.json +99 -0
- package/dist/viewer/version.json +1 -0
- package/package.json +42 -16
- package/PYTHON_CLI_PARITY.md +0 -265
- package/PYTHON_CLI_STRUCTURE_UPDATE.md +0 -246
- package/biome.json +0 -42
- package/bunfig.toml +0 -3
- package/dist/ai/claude-client.js +0 -71
- package/dist/ai/claude-client.js.map +0 -7
- package/dist/ai/context-provider.js +0 -129
- package/dist/ai/context-provider.js.map +0 -7
- package/dist/ai/tools.js +0 -231
- package/dist/ai/tools.js.map +0 -7
- package/dist/commands/migrate.js +0 -36
- package/dist/commands/migrate.js.map +0 -7
- package/dist/commands/project.js +0 -74
- package/dist/commands/project.js.map +0 -7
- package/dist/core/active-changeset.js +0 -52
- package/dist/core/active-changeset.js.map +0 -7
- package/dist/core/projection-engine.js +0 -288
- package/dist/core/projection-engine.js.map +0 -7
- package/dist/schemas/bundled/01-motivation-layer.schema.json +0 -942
- package/dist/schemas/bundled/02-business-layer.schema.json +0 -1293
- package/dist/schemas/bundled/03-security-layer.schema.json +0 -2177
- package/dist/schemas/bundled/04-application-layer.schema.json +0 -1328
- package/dist/schemas/bundled/05-technology-layer.schema.json +0 -1465
- package/dist/schemas/bundled/06-api-layer.schema.json +0 -1743
- package/dist/schemas/bundled/07-data-model-layer.schema.json +0 -1253
- package/dist/schemas/bundled/08-datastore-layer.schema.json +0 -892
- package/dist/schemas/bundled/09-ux-layer.schema.json +0 -1506
- package/dist/schemas/bundled/10-navigation-layer.schema.json +0 -843
- package/dist/schemas/bundled/11-apm-observability-layer.schema.json +0 -1430
- package/dist/schemas/bundled/12-testing-layer.schema.json +0 -1091
- package/dist/schemas/bundled/common/layer-extensions.schema.json +0 -266
- package/dist/schemas/bundled/common/predicates.schema.json +0 -493
- package/dist/schemas/bundled/common/relationships.schema.json +0 -791
- package/dist/schemas/bundled/common/source-references.schema.json +0 -71
- package/dist/schemas/bundled/link-registry.json +0 -1839
- package/dist/schemas/bundled/link-registry.schema.json +0 -339
- package/dist/schemas/bundled/relationship-catalog.json +0 -1302
- package/dist/schemas/bundled/relationship-type.schema.json +0 -221
- package/dist/utils/model-path.js +0 -22
- package/dist/utils/model-path.js.map +0 -7
- package/docs/TEST-INSTRUMENTATION.md +0 -405
- package/docs/telemetry.md +0 -427
- package/test-debug.js +0 -33
- package/test-special.mjs +0 -46
- package/test_runner.ts +0 -7
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: DR Quick Start Guide
|
|
3
|
+
description: Fastest path from zero to extracted and verified architecture model
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Documentation Robotics: Quick Start (5 Minutes)
|
|
7
|
+
|
|
8
|
+
**TL;DR:** The fastest way to extract and verify your architecture model.
|
|
9
|
+
|
|
10
|
+
## One-Minute Summary
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
# 1. Initialize (30 seconds)
|
|
14
|
+
dr init my-project
|
|
15
|
+
|
|
16
|
+
# 2. Setup analyzer (1 minute)
|
|
17
|
+
dr analyzer discover # Choose codebase-memory
|
|
18
|
+
dr analyzer index # Wait for indexing
|
|
19
|
+
|
|
20
|
+
# 3. Extract (2-5 minutes depending on codebase)
|
|
21
|
+
/dr-map ./src
|
|
22
|
+
|
|
23
|
+
# 4. Verify (1 minute)
|
|
24
|
+
/dr-verify
|
|
25
|
+
|
|
26
|
+
# Done! Model extracted and verified.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## The Three Essential Commands
|
|
32
|
+
|
|
33
|
+
### 1️⃣ Extract: `/dr-map <path>`
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
/dr-map ./src --tech "Python FastAPI"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**What it does:** Analyzes your codebase and extracts an architecture model.
|
|
40
|
+
|
|
41
|
+
**Options:**
|
|
42
|
+
|
|
43
|
+
- `--layers <layers>` — Specific layers (e.g., `api,application,data-model`)
|
|
44
|
+
- `--tech <stack>` — Technology hints (helps with detection)
|
|
45
|
+
|
|
46
|
+
**Output:** Model elements across all relevant layers with source provenance.
|
|
47
|
+
|
|
48
|
+
**Time:** 2-5 minutes (depending on size)
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
### 2️⃣ Verify: `/dr-verify [--layer <layer>]`
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
/dr-verify --layer api
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**What it does:** Cross-references your model against the code analyzer.
|
|
59
|
+
|
|
60
|
+
**Shows:**
|
|
61
|
+
|
|
62
|
+
- ✓ **Matched** — Elements correctly in both code and model
|
|
63
|
+
- ⚠ **Graph-only** — Routes in code but missing from model (gaps)
|
|
64
|
+
- ? **Model-only** — Operations in model but not in code (drift)
|
|
65
|
+
|
|
66
|
+
**Interactive:** Prompts you to add gaps or remove drift.
|
|
67
|
+
|
|
68
|
+
**Time:** 1-2 minutes
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
### 3️⃣ Validate: `dr validate --strict`
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
dr validate --strict
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**What it does:** Checks model integrity (schema, references, naming).
|
|
79
|
+
|
|
80
|
+
**Output:** Errors, warnings, and recommendations.
|
|
81
|
+
|
|
82
|
+
**Time:** 30 seconds
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Choosing Your Path
|
|
87
|
+
|
|
88
|
+
### Path A: New Project (Empty Model)
|
|
89
|
+
|
|
90
|
+
```
|
|
91
|
+
Initialize → Discover Analyzer → Index → Extract (Recipe Mode) → Verify → Done
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Time:** ~15-20 minutes
|
|
95
|
+
|
|
96
|
+
### Path B: Existing Project (You Have a Model)
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
Verify → Address Gaps/Drift → Validate → Done
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Time:** ~5-10 minutes
|
|
103
|
+
|
|
104
|
+
### Path C: Incremental Extraction
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
Extract Specific Layers → Verify → Reconcile → Done
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Time:** ~5-10 minutes
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## What Each Step Does
|
|
115
|
+
|
|
116
|
+
| Step | Command | Time | What Happens |
|
|
117
|
+
| -------------- | ---------------------- | ---- | ----------------------------- |
|
|
118
|
+
| **Initialize** | `dr init <name>` | 30s | Creates empty model |
|
|
119
|
+
| **Discover** | `dr analyzer discover` | 2m | Installs code analyzer |
|
|
120
|
+
| **Index** | `dr analyzer index` | 1-2m | Scans codebase & builds graph |
|
|
121
|
+
| **Extract** | `/dr-map <path>` | 2-5m | Generates model from code |
|
|
122
|
+
| **Verify** | `/dr-verify` | 1-2m | Cross-checks against code |
|
|
123
|
+
| **Reconcile** | Interactive prompts | 2-5m | Fix gaps and drift |
|
|
124
|
+
| **Validate** | `dr validate --strict` | 30s | Final integrity check |
|
|
125
|
+
|
|
126
|
+
**Total for new project:** ~15-20 minutes
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Common Workflows
|
|
131
|
+
|
|
132
|
+
### "I just have code, no model"
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
dr init my-service
|
|
136
|
+
dr analyzer discover # Follow prompts to install
|
|
137
|
+
dr analyzer index
|
|
138
|
+
/dr-map ./src
|
|
139
|
+
/dr-verify --layer api
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**Result:** Complete model extracted and verified against code.
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
### "I have a model but want to verify it"
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
dr analyzer index # (if not already indexed)
|
|
150
|
+
/dr-verify --layer api
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
**Result:** See gaps and drift, reconcile interactively.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
### "I want to extract just one layer"
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
/dr-map ./src --layers api
|
|
161
|
+
/dr-verify --layer api
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**Result:** API layer extracted, verified, and ready.
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
### "I need a complete model fast"
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
dr init my-project
|
|
172
|
+
dr analyzer discover
|
|
173
|
+
dr analyzer index
|
|
174
|
+
/dr-map ./src # Choose Recipe Mode when prompted
|
|
175
|
+
/dr-verify # Answer prompts interactively
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
**Pro tip:** Recipe Mode walks you through all 12 layers with checkpoints. Most thorough approach.
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## Key Concepts in 30 Seconds
|
|
183
|
+
|
|
184
|
+
- **Source Provenance:** Every extracted element includes `source_file`, `source_symbol`, `source_provenance` — the link back to code
|
|
185
|
+
- **Pre-Briefs:** Analyzer provides summaries of endpoints, services, datastores that `/dr-map` uses for high-confidence extraction
|
|
186
|
+
- **Three Buckets:** Verification shows **matched** (good), **graph-only** (gaps), **model-only** (drift)
|
|
187
|
+
- **Interactive Reconciliation:** `/dr-verify` prompts you to add gaps or remove drift one by one
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Output You'll See
|
|
192
|
+
|
|
193
|
+
### After `/dr-map`
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
✓ Extraction complete!
|
|
197
|
+
|
|
198
|
+
Created Elements:
|
|
199
|
+
- 8 application services
|
|
200
|
+
- 35 API operations
|
|
201
|
+
- 12 data models
|
|
202
|
+
|
|
203
|
+
Validation: ✓ Passed
|
|
204
|
+
|
|
205
|
+
Next: /dr-verify
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### After `/dr-verify`
|
|
209
|
+
|
|
210
|
+
```
|
|
211
|
+
Verified 45 graph routes against 40 model operations.
|
|
212
|
+
35 matched ✓, 8 graph-only ⚠, 2 model-only ?
|
|
213
|
+
|
|
214
|
+
[Interactive prompts for each gap/drift]
|
|
215
|
+
|
|
216
|
+
Verification Complete
|
|
217
|
+
Next Steps: dr validate --strict
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### After `dr validate --strict`
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
✓ Schema validation passed
|
|
224
|
+
✓ Reference validation passed
|
|
225
|
+
⚠ 2 semantic warnings (see /dr-model)
|
|
226
|
+
|
|
227
|
+
Ready for export/sharing
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## Troubleshooting Quick Fixes
|
|
233
|
+
|
|
234
|
+
| Problem | Solution |
|
|
235
|
+
| ------------------- | -------------------------------------------------------------- |
|
|
236
|
+
| "No analyzer" | `dr analyzer discover` then pick one |
|
|
237
|
+
| "Not indexed" | `dr analyzer index` to build graph |
|
|
238
|
+
| "Index stale" | `dr analyzer index` to refresh |
|
|
239
|
+
| "Many gaps" | `/dr-map ./src --layers api` to re-extract |
|
|
240
|
+
| "Validation errors" | `dr validate --strict` to see details, then `/dr-model` to fix |
|
|
241
|
+
| "Lost in process" | Read `END_TO_END_WALKTHROUGH.md` for detailed guide |
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## Pro Tips
|
|
246
|
+
|
|
247
|
+
1. **Start with Recipe Mode** if extracting everything — ensures proper layer order
|
|
248
|
+
2. **Use `--tech` flag** when extracting — helps detector recognize your stack
|
|
249
|
+
3. **Always run `/dr-verify`** after `/dr-map` — catches gaps and drift immediately
|
|
250
|
+
4. **Use Interactive Prompts** — `/dr-verify` offers pre-populated `dr add` commands
|
|
251
|
+
5. **Commit `source_provenance`** — Makes `/dr-sync` work later when code changes
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## Next Steps
|
|
256
|
+
|
|
257
|
+
**Ready to start?**
|
|
258
|
+
|
|
259
|
+
→ Full walkthrough: [END_TO_END_WALKTHROUGH.md](END_TO_END_WALKTHROUGH.md)
|
|
260
|
+
|
|
261
|
+
**Need command reference?**
|
|
262
|
+
|
|
263
|
+
- `/dr-map` — See `commands/dr-map.md`
|
|
264
|
+
- `/dr-verify` — See `commands/dr-verify.md`
|
|
265
|
+
- `dr validate` — See `commands/dr-validate.md`
|
|
266
|
+
|
|
267
|
+
**Want to explore your model?**
|
|
268
|
+
|
|
269
|
+
- `/dr-model` — Manually add/edit elements
|
|
270
|
+
- `dr search` — Query elements
|
|
271
|
+
- `dr show <element-id>` — Inspect details
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Documentation Robotics (DR) Documentation Hub
|
|
3
|
+
description: Complete documentation for the DR workflow, commands, and features
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Documentation Robotics Documentation Hub
|
|
7
|
+
|
|
8
|
+
Welcome to the Documentation Robotics documentation. This directory contains guides, walkthroughs, and references for using DR to extract, verify, and maintain your architecture model.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 🚀 Getting Started
|
|
13
|
+
|
|
14
|
+
**New to DR?** Start here:
|
|
15
|
+
|
|
16
|
+
### [QUICK_START.md](QUICK_START.md) — 5-Minute Overview
|
|
17
|
+
|
|
18
|
+
The fastest path from zero to an extracted and verified architecture model. Includes:
|
|
19
|
+
|
|
20
|
+
- One-minute summary of essential commands
|
|
21
|
+
- Three command reference (extract, verify, validate)
|
|
22
|
+
- Common workflows
|
|
23
|
+
- Troubleshooting quick fixes
|
|
24
|
+
|
|
25
|
+
**Time:** 5 minutes to understand the basics
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
### [END_TO_END_WALKTHROUGH.md](END_TO_END_WALKTHROUGH.md) — Complete Workflow
|
|
30
|
+
|
|
31
|
+
The comprehensive manual walkthrough covering every step from fresh project through verification and reconciliation. Includes:
|
|
32
|
+
|
|
33
|
+
- Visual workflow diagram
|
|
34
|
+
- Detailed step-by-step instructions with examples
|
|
35
|
+
- Pre-brief concepts and source provenance explained
|
|
36
|
+
- Complete example (Python FastAPI)
|
|
37
|
+
- Interactive reconciliation process
|
|
38
|
+
- Key concepts and troubleshooting
|
|
39
|
+
|
|
40
|
+
**Time:** 20 minutes to read, 15-20 minutes to execute
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 📚 Documentation By Topic
|
|
45
|
+
|
|
46
|
+
### Architecture & Concepts
|
|
47
|
+
|
|
48
|
+
- **[END_TO_END_WALKTHROUGH.md](END_TO_END_WALKTHROUGH.md)** — The complete workflow from fresh project to verified model
|
|
49
|
+
- **[QUICK_START.md](QUICK_START.md)** — Five-minute overview of essential commands
|
|
50
|
+
|
|
51
|
+
### Command Reference
|
|
52
|
+
|
|
53
|
+
- **[dr-map.md](../commands/dr-map.md)** — Extract architecture from your codebase
|
|
54
|
+
- Recipe vs. Targeted modes
|
|
55
|
+
- Layer-by-layer extraction
|
|
56
|
+
- Analyzer integration for pre-briefs
|
|
57
|
+
|
|
58
|
+
- **[dr-verify.md](../commands/dr-verify.md)** — Verify model against code analyzer
|
|
59
|
+
- Three-bucket reporting (matched, gaps, drift)
|
|
60
|
+
- Interactive reconciliation
|
|
61
|
+
- Ignore lists and drift management
|
|
62
|
+
|
|
63
|
+
- **[dr-validate.md](../commands/dr-validate.md)** — Validate model integrity
|
|
64
|
+
- Schema and reference validation
|
|
65
|
+
- Semantic rules checking
|
|
66
|
+
- Orphan analysis
|
|
67
|
+
|
|
68
|
+
- **[dr-model.md](../commands/dr-model.md)** — Manually add and edit elements
|
|
69
|
+
|
|
70
|
+
- **[dr-init.md](../commands/dr-init.md)** — Initialize new models
|
|
71
|
+
|
|
72
|
+
### Skills & Agents
|
|
73
|
+
|
|
74
|
+
- **[dr-codebase-memory/SKILL.md](../skills/dr_codebase_memory/SKILL.md)** — Codebase memory and context management
|
|
75
|
+
- Layer-specific skills (Layer 1-12)
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 🔄 The DR Workflow at a Glance
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
1. Initialize Model
|
|
83
|
+
↓
|
|
84
|
+
2. Setup Code Analyzer (discover + index)
|
|
85
|
+
↓
|
|
86
|
+
3. Extract Architecture (/dr-map)
|
|
87
|
+
• Analyzes codebase
|
|
88
|
+
• Consumes analyzer pre-briefs
|
|
89
|
+
• Creates elements with source provenance
|
|
90
|
+
↓
|
|
91
|
+
4. Verify Alignment (/dr-verify)
|
|
92
|
+
• Reports matched, gaps, drift
|
|
93
|
+
• Interactive prompts to reconcile
|
|
94
|
+
↓
|
|
95
|
+
5. Reconcile & Validate
|
|
96
|
+
• Add missing elements (gaps)
|
|
97
|
+
• Remove/update drifted elements
|
|
98
|
+
• Final validation
|
|
99
|
+
↓
|
|
100
|
+
6. Model Ready for Use
|
|
101
|
+
• Export, share, or enhance further
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Total Time:** 15-20 minutes for new project
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## 🎯 Choose Your Path
|
|
109
|
+
|
|
110
|
+
### "I have code, need a model"
|
|
111
|
+
|
|
112
|
+
→ Read [QUICK_START.md](QUICK_START.md) → Follow "Path A: New Project"
|
|
113
|
+
|
|
114
|
+
- Time: ~20 minutes
|
|
115
|
+
- Commands: `dr init` → `dr analyzer discover` → `dr analyzer index` → `/dr-map` → `/dr-verify`
|
|
116
|
+
|
|
117
|
+
### "I have a model, want to verify it"
|
|
118
|
+
|
|
119
|
+
→ Read [QUICK_START.md](QUICK_START.md) → Follow "Path B: Existing Project"
|
|
120
|
+
|
|
121
|
+
- Time: ~5-10 minutes
|
|
122
|
+
- Commands: `/dr-verify` → reconcile → `dr validate`
|
|
123
|
+
|
|
124
|
+
### "I want detailed guidance"
|
|
125
|
+
|
|
126
|
+
→ Read [END_TO_END_WALKTHROUGH.md](END_TO_END_WALKTHROUGH.md)
|
|
127
|
+
|
|
128
|
+
- Time: ~20 minutes reading + 15-20 minutes execution
|
|
129
|
+
- Covers every step, concept, and decision point
|
|
130
|
+
|
|
131
|
+
### "I need command reference"
|
|
132
|
+
|
|
133
|
+
→ See [Command Reference](#command-reference) section above
|
|
134
|
+
|
|
135
|
+
- Detailed usage, options, examples for each command
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## 📖 Documentation Structure
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
integrations/claude_code/
|
|
143
|
+
├── docs/ ← You are here
|
|
144
|
+
│ ├── README.md ← This file
|
|
145
|
+
│ ├── QUICK_START.md ← 5-minute overview
|
|
146
|
+
│ └── END_TO_END_WALKTHROUGH.md ← Complete workflow
|
|
147
|
+
│
|
|
148
|
+
├── commands/ ← Command documentation
|
|
149
|
+
│ ├── dr-map.md ← Extract architecture
|
|
150
|
+
│ ├── dr-verify.md ← Verify alignment
|
|
151
|
+
│ ├── dr-validate.md ← Validate model
|
|
152
|
+
│ ├── dr-model.md ← Edit elements
|
|
153
|
+
│ ├── dr-init.md ← Initialize model
|
|
154
|
+
│ ├── dr-sync.md ← Sync with code changes
|
|
155
|
+
│ ├── dr-design.md ← Design elements
|
|
156
|
+
│ ├── dr-info.md ← Get model information
|
|
157
|
+
│ ├── dr-changeset.md ← Manage changesets
|
|
158
|
+
│ └── dr-relate.md ← Establish relationships
|
|
159
|
+
│
|
|
160
|
+
├── skills/ ← Specialized knowledge modules
|
|
161
|
+
│ ├── dr_codebase_memory/
|
|
162
|
+
│ ├── dr_01_motivation_layer/
|
|
163
|
+
│ ├── ... (all 12 layers)
|
|
164
|
+
│ └── dr_engineering_guide/
|
|
165
|
+
│
|
|
166
|
+
└── agents/ ← Specialized agents
|
|
167
|
+
├── dr-architect.md
|
|
168
|
+
├── dr-advisor.md
|
|
169
|
+
└── dr-extractor.md
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 🔑 Key Concepts
|
|
175
|
+
|
|
176
|
+
### Source Provenance
|
|
177
|
+
|
|
178
|
+
Every extracted element includes:
|
|
179
|
+
|
|
180
|
+
- **source_file** — The file path (relative to repo root)
|
|
181
|
+
- **source_symbol** — The specific class/function/symbol
|
|
182
|
+
- **source_provenance** — "extracted" (from code) or "inferred" (from patterns)
|
|
183
|
+
|
|
184
|
+
This link back to code is critical for:
|
|
185
|
+
|
|
186
|
+
- `/dr-sync` — Detecting when code changes
|
|
187
|
+
- `dr validate` — Verifying files still exist
|
|
188
|
+
- Reconciliation — Tracing elements to source
|
|
189
|
+
|
|
190
|
+
### Analyzer Pre-Briefs
|
|
191
|
+
|
|
192
|
+
When `/dr-map` runs with an indexed analyzer:
|
|
193
|
+
|
|
194
|
+
- **Endpoints brief** — Authoritative checklist of all routes
|
|
195
|
+
- **Services brief** — Suggested application services
|
|
196
|
+
- **Datastores brief** — Suggested data stores
|
|
197
|
+
|
|
198
|
+
Pre-briefs enable high-confidence extraction without scanning the entire codebase each time.
|
|
199
|
+
|
|
200
|
+
### Three-Bucket Verification
|
|
201
|
+
|
|
202
|
+
`/dr-verify` always reports:
|
|
203
|
+
|
|
204
|
+
- ✓ **Matched** — Routes in code AND model (good alignment)
|
|
205
|
+
- ⚠ **Graph-only** — Routes in code but NOT in model (suspected gaps)
|
|
206
|
+
- ? **Model-only** — Routes in model but NOT in code (possible drift)
|
|
207
|
+
|
|
208
|
+
Goal: Maximize matched, minimize gaps and drift.
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## ❓ FAQ
|
|
213
|
+
|
|
214
|
+
### "How long does extraction take?"
|
|
215
|
+
|
|
216
|
+
2-5 minutes depending on codebase size. Recipe Mode (recommended for new models) includes checkpoint pauses for validation.
|
|
217
|
+
|
|
218
|
+
### "Do I need a code analyzer?"
|
|
219
|
+
|
|
220
|
+
No, it's optional. `/dr-map` works without one. But with an analyzer:
|
|
221
|
+
|
|
222
|
+
- Verification is possible (`/dr-verify`)
|
|
223
|
+
- Pre-briefs enable more confident extraction
|
|
224
|
+
- Gap/drift detection is automated
|
|
225
|
+
|
|
226
|
+
### "Can I extract incrementally?"
|
|
227
|
+
|
|
228
|
+
Yes. Use `/dr-map --layers <layers>` to extract specific layers. Combine with previous extractions to build your model over time.
|
|
229
|
+
|
|
230
|
+
### "What if I already have a model?"
|
|
231
|
+
|
|
232
|
+
Run `/dr-verify` to check alignment. Add gaps and remove drift interactively. Then validate and you're done.
|
|
233
|
+
|
|
234
|
+
### "Where's the CLI documentation?"
|
|
235
|
+
|
|
236
|
+
See the [main CLI README](../../cli/README.md)
|
|
237
|
+
|
|
238
|
+
### "Where are the changelog and version info?"
|
|
239
|
+
|
|
240
|
+
- Spec version: `spec/VERSION`
|
|
241
|
+
- Spec changelog: `spec/CHANGELOG.md`
|
|
242
|
+
- CLI version: `cli/package.json` (version field)
|
|
243
|
+
- CLI changelog: `cli/CHANGELOG.md`
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## 🔗 Related Documentation
|
|
248
|
+
|
|
249
|
+
- **[CLI README](../../cli/README.md)** — Complete CLI reference and usage
|
|
250
|
+
- **[Specification](../../spec/)** — Layer definitions, schemas, and constraints
|
|
251
|
+
- **[Architecture Guide](./END_TO_END_WALKTHROUGH.md)** — How all pieces fit together
|
|
252
|
+
- **[CLAUDE.md](../../CLAUDE.md)** — Project-wide conventions and guidelines
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## 🎬 Quick Examples
|
|
257
|
+
|
|
258
|
+
### Extract Python FastAPI backend
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
/dr-map ./backend --tech "Python FastAPI PostgreSQL"
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### Verify API layer
|
|
265
|
+
|
|
266
|
+
```bash
|
|
267
|
+
/dr-verify --layer api
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Search for an element
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
dr search "order"
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
### View element details
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
dr show api.operation.create-order
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### Add a new element
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
dr add api operation "list-orders" \
|
|
286
|
+
--description "GET /api/v1/orders" \
|
|
287
|
+
--source-file "src/routes/orders.ts"
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
### Export to ArchiMate
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
dr export archimate --output model.xml
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
## 🤝 Getting Help
|
|
299
|
+
|
|
300
|
+
- **Quick answer?** → [QUICK_START.md](QUICK_START.md)
|
|
301
|
+
- **Step-by-step guide?** → [END_TO_END_WALKTHROUGH.md](END_TO_END_WALKTHROUGH.md)
|
|
302
|
+
- **Specific command?** → See [Command Reference](#command-reference)
|
|
303
|
+
- **Stuck?** → Check troubleshooting sections in relevant docs
|
|
304
|
+
- **Bug or feature request?** → See CLAUDE.md for contributing guidelines
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
## 📋 Workflow Checklist
|
|
309
|
+
|
|
310
|
+
**First Time Using DR?**
|
|
311
|
+
|
|
312
|
+
- [ ] Read QUICK_START.md (5 min)
|
|
313
|
+
- [ ] Run `dr init my-project`
|
|
314
|
+
- [ ] Run `dr analyzer discover` and select an analyzer
|
|
315
|
+
- [ ] Run `dr analyzer index` (wait for completion)
|
|
316
|
+
- [ ] Run `/dr-map ./src` (choose Recipe Mode if first time)
|
|
317
|
+
- [ ] Run `/dr-verify` (reconcile gaps and drift)
|
|
318
|
+
- [ ] Run `dr validate --strict` (check for issues)
|
|
319
|
+
- [ ] ✓ Done! Model is ready.
|
|
320
|
+
|
|
321
|
+
**Verifying Existing Model?**
|
|
322
|
+
|
|
323
|
+
- [ ] Run `/dr-verify --layer api`
|
|
324
|
+
- [ ] Follow interactive prompts to add/remove/update
|
|
325
|
+
- [ ] Run `dr validate --strict`
|
|
326
|
+
- [ ] ✓ Done!
|
|
327
|
+
|
|
328
|
+
**Extracting Incrementally?**
|
|
329
|
+
|
|
330
|
+
- [ ] Run `/dr-map ./src --layers <specific-layers>`
|
|
331
|
+
- [ ] Run `/dr-verify --layer <same-layers>`
|
|
332
|
+
- [ ] Reconcile
|
|
333
|
+
- [ ] Repeat for other layers
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
## 🌟 Start Now
|
|
338
|
+
|
|
339
|
+
**Just want to get started?** → [QUICK_START.md](QUICK_START.md)
|
|
340
|
+
|
|
341
|
+
**Want comprehensive walkthrough?** → [END_TO_END_WALKTHROUGH.md](END_TO_END_WALKTHROUGH.md)
|
|
342
|
+
|
|
343
|
+
**Looking for specific command?** → [Command Reference](#command-reference)
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
347
|
+
**Last Updated:** 2026-04-21
|