cartograph-cli 0.7.4__tar.gz → 0.7.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.
Files changed (237) hide show
  1. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/.github/workflows/fresh-install.yml +36 -3
  2. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/.github/workflows/publish.yml +3 -3
  3. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/.github/workflows/test.yml +50 -6
  4. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/PKG-INFO +4 -2
  5. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/README.md +3 -1
  6. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/VALIDATION.md +73 -0
  7. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/pyproject.toml +1 -1
  8. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/cli.py +1 -1
  9. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/dashboard_ui.py +12 -0
  10. cartograph_cli-0.7.6/src/cartograph/languages/go.py +456 -0
  11. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/openscad.py +6 -7
  12. cartograph_cli-0.7.6/src/cartograph/languages/scanners/go_scanner.go +571 -0
  13. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/systemverilog.py +6 -15
  14. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/library_config.json +2 -1
  15. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/rules.py +87 -0
  16. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_blueprint_languages.py +186 -0
  17. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_contamination.py +226 -4
  18. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_create.py +26 -0
  19. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_language_engines.py +73 -0
  20. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/.githooks/pre-push +0 -0
  21. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/.github/FUNDING.yml +0 -0
  22. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/.gitignore +0 -0
  23. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/CLAUDE.md +0 -0
  24. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/CONTRIBUTING.md +0 -0
  25. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/LICENSE +0 -0
  26. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/architect.mmd +0 -0
  27. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/architect.py +0 -0
  28. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_graph_cycles_python/.cartograph_source +0 -0
  29. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_graph_cycles_python/.validation_stamp.json +0 -0
  30. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_graph_cycles_python/examples/example_usage.py +0 -0
  31. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_graph_cycles_python/src/__init__.py +0 -0
  32. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_graph_cycles_python/src/graph_cycles.py +0 -0
  33. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_graph_cycles_python/tests/test_graph_cycles.py +0 -0
  34. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_graph_cycles_python/widget.json +0 -0
  35. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_mermaid_graph_renderer_python/.validation_stamp.json +0 -0
  36. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_mermaid_graph_renderer_python/examples/example_usage.py +0 -0
  37. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_mermaid_graph_renderer_python/src/__init__.py +0 -0
  38. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_mermaid_graph_renderer_python/src/mermaid_graph_renderer.py +0 -0
  39. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_mermaid_graph_renderer_python/tests/test_mermaid_graph_renderer.py +0 -0
  40. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_mermaid_graph_renderer_python/widget.json +0 -0
  41. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_python_module_loader_python/examples/example_usage.py +0 -0
  42. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_python_module_loader_python/src/__init__.py +0 -0
  43. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_python_module_loader_python/src/python_module_loader.py +0 -0
  44. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_python_module_loader_python/tests/test_python_module_loader.py +0 -0
  45. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/cg_universal_python_module_loader_python/widget.json +0 -0
  46. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_agent_cli_python/.cartograph_source +0 -0
  47. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_agent_cli_python/examples/example_usage.py +0 -0
  48. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_agent_cli_python/src/__init__.py +0 -0
  49. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_agent_cli_python/src/agent_cli.py +0 -0
  50. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_agent_cli_python/tests/test_agent_cli.py +0 -0
  51. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_agent_cli_python/widget.json +0 -0
  52. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_archive_manifest_consistency_python/examples/example_usage.py +0 -0
  53. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_archive_manifest_consistency_python/src/__init__.py +0 -0
  54. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_archive_manifest_consistency_python/src/archive_manifest_consistency.py +0 -0
  55. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_archive_manifest_consistency_python/tests/test_archive_manifest_consistency.py +0 -0
  56. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_archive_manifest_consistency_python/widget.json +0 -0
  57. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_binary_resolver_python/.validation_stamp.json +0 -0
  58. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_binary_resolver_python/examples/example_usage.py +0 -0
  59. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_binary_resolver_python/src/__init__.py +0 -0
  60. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_binary_resolver_python/src/binary_resolver.py +0 -0
  61. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_binary_resolver_python/tests/test_binary_resolver.py +0 -0
  62. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_binary_resolver_python/widget.json +0 -0
  63. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_command_catalog_python/.validation_stamp.json +0 -0
  64. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_command_catalog_python/examples/example_usage.py +0 -0
  65. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_command_catalog_python/src/__init__.py +0 -0
  66. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_command_catalog_python/src/command_catalog.py +0 -0
  67. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_command_catalog_python/tests/test_command_catalog.py +0 -0
  68. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_command_catalog_python/widget.json +0 -0
  69. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_directory_tarball_python/examples/example_usage.py +0 -0
  70. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_directory_tarball_python/src/__init__.py +0 -0
  71. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_directory_tarball_python/src/directory_tarball.py +0 -0
  72. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_directory_tarball_python/tests/test_directory_tarball.py +0 -0
  73. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_directory_tarball_python/widget.json +0 -0
  74. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_file_stamp_python/.validation_stamp.json +0 -0
  75. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_file_stamp_python/examples/example_usage.py +0 -0
  76. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_file_stamp_python/src/__init__.py +0 -0
  77. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_file_stamp_python/src/file_stamp.py +0 -0
  78. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_file_stamp_python/tests/test_file_stamp.py +0 -0
  79. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_file_stamp_python/widget.json +0 -0
  80. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_http_endpoint_registry_python/.validation_stamp.json +0 -0
  81. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_http_endpoint_registry_python/examples/example_usage.py +0 -0
  82. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_http_endpoint_registry_python/src/__init__.py +0 -0
  83. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_http_endpoint_registry_python/src/http_endpoint_registry.py +0 -0
  84. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_http_endpoint_registry_python/tests/test_http_endpoint_registry.py +0 -0
  85. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_http_endpoint_registry_python/widget.json +0 -0
  86. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_openapi_generator_python/.validation_stamp.json +0 -0
  87. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_openapi_generator_python/examples/example_usage.py +0 -0
  88. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_openapi_generator_python/src/__init__.py +0 -0
  89. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_openapi_generator_python/src/openapi_generator.py +0 -0
  90. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_openapi_generator_python/tests/test_openapi_generator.py +0 -0
  91. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_openapi_generator_python/widget.json +0 -0
  92. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_pinned_deps_resolver_python/examples/example_usage.py +0 -0
  93. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_pinned_deps_resolver_python/src/__init__.py +0 -0
  94. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_pinned_deps_resolver_python/src/pinned_deps_resolver.py +0 -0
  95. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_pinned_deps_resolver_python/tests/test_pinned_deps_resolver.py +0 -0
  96. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_pinned_deps_resolver_python/widget.json +0 -0
  97. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_prefix_router_python/examples/example_usage.py +0 -0
  98. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_prefix_router_python/src/__init__.py +0 -0
  99. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_prefix_router_python/src/prefix_router.py +0 -0
  100. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_prefix_router_python/tests/test_prefix_router.py +0 -0
  101. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_prefix_router_python/widget.json +0 -0
  102. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_urllib_client_python/.validation_stamp.json +0 -0
  103. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_urllib_client_python/examples/example_usage.py +0 -0
  104. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_urllib_client_python/src/__init__.py +0 -0
  105. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_urllib_client_python/src/urllib_client.py +0 -0
  106. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_urllib_client_python/tests/test_urllib_client.py +0 -0
  107. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_urllib_client_python/widget.json +0 -0
  108. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_version_bump_policy_python/examples/example_usage.py +0 -0
  109. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_version_bump_policy_python/src/__init__.py +0 -0
  110. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_version_bump_policy_python/src/version_bump_policy.py +0 -0
  111. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_version_bump_policy_python/tests/test_version_bump_policy.py +0 -0
  112. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/infra_version_bump_policy_python/widget.json +0 -0
  113. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_block_walker_python/.validation_stamp.json +0 -0
  114. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_block_walker_python/examples/example_usage.py +0 -0
  115. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_block_walker_python/src/__init__.py +0 -0
  116. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_block_walker_python/src/block_walker.py +0 -0
  117. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_block_walker_python/tests/test_block_walker.py +0 -0
  118. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_block_walker_python/widget.json +0 -0
  119. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_build_artifact_ignore_python/.validation_stamp.json +0 -0
  120. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_build_artifact_ignore_python/examples/example_usage.py +0 -0
  121. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_build_artifact_ignore_python/src/__init__.py +0 -0
  122. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_build_artifact_ignore_python/src/build_artifact_ignore.py +0 -0
  123. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_build_artifact_ignore_python/tests/test_build_artifact_ignore.py +0 -0
  124. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_build_artifact_ignore_python/widget.json +0 -0
  125. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_list_paginator_python/.validation_stamp.json +0 -0
  126. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_list_paginator_python/examples/example_usage.py +0 -0
  127. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_list_paginator_python/src/__init__.py +0 -0
  128. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_list_paginator_python/src/list_paginator.py +0 -0
  129. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_list_paginator_python/tests/test_list_paginator.py +0 -0
  130. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_list_paginator_python/widget.json +0 -0
  131. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_ttl_disk_cache_python/.validation_stamp.json +0 -0
  132. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_ttl_disk_cache_python/examples/example_usage.py +0 -0
  133. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_ttl_disk_cache_python/src/__init__.py +0 -0
  134. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_ttl_disk_cache_python/src/ttl_disk_cache.py +0 -0
  135. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_ttl_disk_cache_python/tests/test_ttl_disk_cache.py +0 -0
  136. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/cg/universal_ttl_disk_cache_python/widget.json +0 -0
  137. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/docs/languages/nim.md +0 -0
  138. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-1024.png +0 -0
  139. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-128.png +0 -0
  140. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-256.png +0 -0
  141. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-512.png +0 -0
  142. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-black-1024.png +0 -0
  143. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-black-128.png +0 -0
  144. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-black-256.png +0 -0
  145. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-black-512.png +0 -0
  146. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-black.svg +0 -0
  147. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-white-1024.png +0 -0
  148. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-white-128.png +0 -0
  149. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-white-256.png +0 -0
  150. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-white-512.png +0 -0
  151. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph-white.svg +0 -0
  152. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/logo/logo-cartograph.svg +0 -0
  153. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/pytest.ini +0 -0
  154. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/scripts/bump_version.sh +0 -0
  155. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/scripts/preflight.sh +0 -0
  156. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/__init__.py +0 -0
  157. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/__main__.py +0 -0
  158. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/architect/__init__.py +0 -0
  159. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/architect/loader.py +0 -0
  160. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/architect/markdown.py +0 -0
  161. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/architect/mutate.py +0 -0
  162. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/architect/paths.py +0 -0
  163. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/architect/renderer.py +0 -0
  164. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/architect/scaffold.py +0 -0
  165. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/architect/schema.py +0 -0
  166. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/architect/validator.py +0 -0
  167. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/auth.py +0 -0
  168. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/blueprint_checkin.py +0 -0
  169. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/blueprint_deps.py +0 -0
  170. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/blueprint_install.py +0 -0
  171. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/blueprint_publish.py +0 -0
  172. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/blueprint_status.py +0 -0
  173. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/blueprint_validator.py +0 -0
  174. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/blueprints.py +0 -0
  175. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/checkin.py +0 -0
  176. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/cloud.py +0 -0
  177. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/config.py +0 -0
  178. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/contamination.py +0 -0
  179. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/dashboard.py +0 -0
  180. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/engine.py +0 -0
  181. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/inspector.py +0 -0
  182. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/installer.py +0 -0
  183. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/__init__.py +0 -0
  184. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/angular.py +0 -0
  185. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/base.py +0 -0
  186. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/javascript.py +0 -0
  187. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/nim.py +0 -0
  188. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/php.py +0 -0
  189. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/python.py +0 -0
  190. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/registry.py +0 -0
  191. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/scanners/js_scanner.js +0 -0
  192. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/scanners/nim_scanner.nim +0 -0
  193. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/languages/terraform.py +0 -0
  194. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/manifest.py +0 -0
  195. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/scaffolding/__init__.py +0 -0
  196. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/search/__init__.py +0 -0
  197. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/search/filters.py +0 -0
  198. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/search/hybrid.py +0 -0
  199. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/search/ngram.py +0 -0
  200. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/search/synonyms.json +0 -0
  201. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/search/tfidf.py +0 -0
  202. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/trust.py +0 -0
  203. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/update_check.py +0 -0
  204. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/validation_stamp.py +0 -0
  205. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/src/cartograph/validator.py +0 -0
  206. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/__init__.py +0 -0
  207. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/cloud_health.py +0 -0
  208. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/conftest.py +0 -0
  209. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/fresh_install/Dockerfile +0 -0
  210. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/fresh_install/test_fresh_install.sh +0 -0
  211. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_auth.py +0 -0
  212. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_blueprint_checkin.py +0 -0
  213. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_blueprint_contamination.py +0 -0
  214. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_blueprint_create.py +0 -0
  215. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_blueprint_deps.py +0 -0
  216. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_blueprint_install.py +0 -0
  217. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_blueprint_publish.py +0 -0
  218. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_blueprint_search_inspect.py +0 -0
  219. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_blueprint_status.py +0 -0
  220. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_blueprint_validator.py +0 -0
  221. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_blueprints.py +0 -0
  222. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_checkin.py +0 -0
  223. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_checkin_publish.py +0 -0
  224. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_cli_contract.py +0 -0
  225. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_cloud_zip.py +0 -0
  226. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_config.py +0 -0
  227. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_inspect.py +0 -0
  228. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_install.py +0 -0
  229. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_library_integrity.py +0 -0
  230. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_loading.py +0 -0
  231. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_manifest.py +0 -0
  232. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_rules.py +0 -0
  233. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_search.py +0 -0
  234. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_setup.py +0 -0
  235. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_update_check.py +0 -0
  236. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_upgrade.py +0 -0
  237. {cartograph_cli-0.7.4 → cartograph_cli-0.7.6}/tests/test_validate.py +0 -0
@@ -11,9 +11,9 @@ jobs:
11
11
 
12
12
  # Wait for PyPI to have the package available
13
13
  steps:
14
- - uses: actions/checkout@v4
14
+ - uses: actions/checkout@v6
15
15
 
16
- - uses: actions/setup-python@v5
16
+ - uses: actions/setup-python@v6
17
17
  with:
18
18
  python-version: "3.12"
19
19
 
@@ -35,6 +35,22 @@ jobs:
35
35
  - name: cartograph --help
36
36
  run: cartograph --help
37
37
 
38
+ # Engines import bundled cg/ widgets; a path or shadowing bug makes one
39
+ # silently vanish from the registry in wheel installs while repo CI stays
40
+ # green (openscad was missing from every wheel v0.5.17-v0.7.4 this way).
41
+ - name: Verify all engines register in wheel install
42
+ run: |
43
+ python -c "
44
+ from cartograph.languages import supported_languages
45
+ langs = set(supported_languages())
46
+ expected = {'angular', 'go', 'javascript', 'nim', 'openscad',
47
+ 'php', 'python', 'systemverilog', 'terraform',
48
+ 'typescript'}
49
+ missing = expected - langs
50
+ assert not missing, f'engines missing from wheel install: {missing}'
51
+ print('all engines registered:', sorted(langs))
52
+ "
53
+
38
54
  - name: cartograph doctor
39
55
  run: cartograph doctor || true
40
56
 
@@ -93,7 +109,7 @@ jobs:
93
109
  test -d "$WIDGET_DIR/tests"
94
110
 
95
111
  - name: Install Terraform
96
- uses: hashicorp/setup-terraform@v3
112
+ uses: hashicorp/setup-terraform@v4
97
113
  with:
98
114
  terraform_version: '1.9.0'
99
115
  terraform_wrapper: false
@@ -113,5 +129,22 @@ jobs:
113
129
  test -d "$WIDGET_DIR/tests"
114
130
  test -d "$WIDGET_DIR/examples"
115
131
 
132
+ - name: Install Go
133
+ uses: actions/setup-go@v6
134
+ with:
135
+ go-version: 'stable'
136
+
137
+ - name: cartograph create (go)
138
+ run: cartograph create universal-ci-test-go --language go --domain universal --name "CI Go Test"
139
+
140
+ - name: Verify go widget structure
141
+ run: |
142
+ WIDGET_DIR=$(find cg -maxdepth 2 -name "go.mod" -printf "%h" -quit)
143
+ echo "Go widget at: $WIDGET_DIR"
144
+ test -f "$WIDGET_DIR/go.mod"
145
+ test -d "$WIDGET_DIR/src"
146
+ test -d "$WIDGET_DIR/tests"
147
+ test -d "$WIDGET_DIR/examples"
148
+
116
149
  - name: cartograph stats
117
150
  run: cartograph stats
@@ -25,9 +25,9 @@ jobs:
25
25
  permissions:
26
26
  id-token: write
27
27
  steps:
28
- - uses: actions/checkout@v4
28
+ - uses: actions/checkout@v6
29
29
 
30
- - uses: actions/setup-python@v5
30
+ - uses: actions/setup-python@v6
31
31
  with:
32
32
  python-version: "3.12"
33
33
 
@@ -54,7 +54,7 @@ jobs:
54
54
  permissions:
55
55
  contents: write
56
56
  steps:
57
- - uses: actions/checkout@v4
57
+ - uses: actions/checkout@v6
58
58
  with:
59
59
  fetch-depth: 0
60
60
 
@@ -31,13 +31,13 @@ jobs:
31
31
  runs-on: ${{ matrix.os }}
32
32
 
33
33
  steps:
34
- - uses: actions/checkout@v4
34
+ - uses: actions/checkout@v6
35
35
 
36
36
  # Detect which engines are affected by this change so we can skip
37
37
  # unneeded tool installs on unrelated commits. Any edit to a cross-
38
38
  # cutting file (base.py, registry.py, validator.py, contamination.py,
39
39
  # pyproject.toml, or the workflow itself) triggers every install.
40
- - uses: dorny/paths-filter@v3
40
+ - uses: dorny/paths-filter@v4
41
41
  id: changes
42
42
  with:
43
43
  filters: |
@@ -56,8 +56,11 @@ jobs:
56
56
  - 'src/cartograph/languages/php.py'
57
57
  terraform:
58
58
  - 'src/cartograph/languages/terraform.py'
59
+ go:
60
+ - 'src/cartograph/languages/go.py'
61
+ - 'src/cartograph/languages/scanners/go_scanner.go'
59
62
 
60
- - uses: actions/setup-python@v5
63
+ - uses: actions/setup-python@v6
61
64
  with:
62
65
  python-version: ${{ matrix.python-version }}
63
66
 
@@ -87,11 +90,18 @@ jobs:
87
90
 
88
91
  - name: Install Terraform
89
92
  if: inputs.full_install || steps.changes.outputs.core == 'true' || steps.changes.outputs.terraform == 'true'
90
- uses: hashicorp/setup-terraform@v3
93
+ uses: hashicorp/setup-terraform@v4
91
94
  with:
92
95
  terraform_version: '1.9.0'
93
96
  terraform_wrapper: false
94
97
 
98
+ # setup-go works identically on all three platforms - no per-OS steps.
99
+ - name: Install Go
100
+ if: inputs.full_install || steps.changes.outputs.core == 'true' || steps.changes.outputs.go == 'true'
101
+ uses: actions/setup-go@v6
102
+ with:
103
+ go-version: 'stable'
104
+
95
105
  - name: Install dependencies
96
106
  run: pip install -e . && pip install pytest pytest-cov
97
107
 
@@ -110,20 +120,54 @@ jobs:
110
120
  - name: Run tests
111
121
  run: pytest --tb=short -q
112
122
 
123
+ # Repo tests run against the checkout (editable install + repo cwd), which
124
+ # hides wheel-layout bugs: openscad's engine was missing from every wheel
125
+ # v0.5.17-v0.7.4 because its bundled-widget path only resolved in the repo.
126
+ # Build the real wheel, install it clean, and verify away from the repo.
127
+ wheel-verify:
128
+ name: Verify engines in built wheel
129
+ runs-on: ubuntu-latest
130
+ steps:
131
+ - uses: actions/checkout@v6
132
+
133
+ - uses: actions/setup-python@v6
134
+ with:
135
+ python-version: "3.12"
136
+
137
+ - name: Build and install wheel
138
+ run: |
139
+ pip install build
140
+ python -m build --wheel
141
+ pip install dist/*.whl
142
+
143
+ - name: Verify all engines register (outside repo)
144
+ working-directory: /tmp
145
+ run: |
146
+ python -c "
147
+ from cartograph.languages import supported_languages
148
+ langs = set(supported_languages())
149
+ expected = {'angular', 'go', 'javascript', 'nim', 'openscad',
150
+ 'php', 'python', 'systemverilog', 'terraform',
151
+ 'typescript'}
152
+ missing = expected - langs
153
+ assert not missing, f'engines missing from wheel install: {missing}'
154
+ print('all engines registered:', sorted(langs))
155
+ "
156
+
113
157
  # After tests pass on master, auto-tag if pyproject.toml's version was
114
158
  # bumped. The tag push then fires publish.yml (PyPI -> fresh-install ->
115
159
  # GitHub release) on its own. Skipped on PRs and on workflow_call from
116
160
  # publish.yml (that workflow already triggered from a tag).
117
161
  auto-tag:
118
162
  name: Auto-tag on version bump
119
- needs: test
163
+ needs: [test, wheel-verify]
120
164
  if: github.event_name == 'push' && github.ref == 'refs/heads/master'
121
165
  runs-on: ubuntu-latest
122
166
  permissions:
123
167
  contents: write
124
168
  actions: write
125
169
  steps:
126
- - uses: actions/checkout@v4
170
+ - uses: actions/checkout@v6
127
171
  with:
128
172
  fetch-depth: 0
129
173
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cartograph-cli
3
- Version: 0.7.4
3
+ Version: 0.7.6
4
4
  Summary: Widget library manager for AI agents — CLI
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -121,6 +121,8 @@ what the tool actually supports.
121
121
  - **SystemVerilog**: Icarus Verilog (iverilog + vvp), `-g2012` mode. Enforces `always_comb`/`always_ff` (legacy `always @(...)` blocked). Contamination scanner checks vendor primitives, simulation-only constructs (`initial`, `#delay`, `$display`), blocking/non-blocking assignment misuse, and hardcoded constants. Vendor primitives allowed when the vendor library is declared as a dependency.
122
122
  - **Angular**: Angular CLI (`ng test` + `ng build`), Karma + Jasmine with ChromeHeadless, 80% coverage via `karma.conf.js` thresholds. Standalone components (Angular 14+). Reuses JS contamination scanner. Example validation: `ng build` (build artifact, not script execution). Requires `@angular/cli` globally and Chrome/Chromium installed.
123
123
  - **PHP**: Composer + PHPUnit 11, Xdebug or PCOV for coverage, 80% threshold via `--min-coverage`. PSR-4 autoloading under `Cartograph\` namespace. Contamination scanner blocks WordPress globals (`wp_*`, `add_action`, `$wpdb`, etc.) and `echo` in src/ to enforce pure PHP utility widgets.
124
+ - **Terraform**: `terraform validate` against src/, tests/, and examples/ (shape-only - no test runner, no coverage; modules harden through use). Blocks provider/backend blocks in src/, real AWS account IDs, and credential-shaped assignments. Providers cached via `TF_PLUGIN_CACHE_DIR`.
125
+ - **Go**: `go test` with built-in coverage (80% via `-coverpkg`), `go vet` + build check, native `go/ast` contamination scanner. Single-binary toolchain. Widgets are libraries: console output, `os.Exit`, and `panic` in `init()` are blocked in src/.
124
126
 
125
127
  Each language has its own validation engine. The contamination scanners are written in the target language itself where possible (Python uses AST, JS uses a token-based parser, Nim uses a line-based scanner). OpenSCAD and SystemVerilog use Python-based scanners since neither language has general-purpose file I/O suitable for static analysis tooling.
126
128
 
@@ -148,7 +150,7 @@ pytest
148
150
 
149
151
  The widget library lives in your platform's user data directory. To override the location, set `WIDGET_LIBRARY_PATH`. When running from source, a `Widget_Library/` directory alongside this repo takes precedence so local edits work without configuration.
150
152
 
151
- Run `cartograph doctor` to check that all language engine dependencies (pytest, coverage, node, npx, vitest, nim, nimble, openscad, iverilog) are installed correctly.
153
+ Run `cartograph doctor` to check that all language engine dependencies (pytest, coverage, node, npx, vitest, nim, nimble, openscad, iverilog, terraform, go) are installed correctly.
152
154
 
153
155
  ### Pre-push checks and release preflight
154
156
 
@@ -112,6 +112,8 @@ what the tool actually supports.
112
112
  - **SystemVerilog**: Icarus Verilog (iverilog + vvp), `-g2012` mode. Enforces `always_comb`/`always_ff` (legacy `always @(...)` blocked). Contamination scanner checks vendor primitives, simulation-only constructs (`initial`, `#delay`, `$display`), blocking/non-blocking assignment misuse, and hardcoded constants. Vendor primitives allowed when the vendor library is declared as a dependency.
113
113
  - **Angular**: Angular CLI (`ng test` + `ng build`), Karma + Jasmine with ChromeHeadless, 80% coverage via `karma.conf.js` thresholds. Standalone components (Angular 14+). Reuses JS contamination scanner. Example validation: `ng build` (build artifact, not script execution). Requires `@angular/cli` globally and Chrome/Chromium installed.
114
114
  - **PHP**: Composer + PHPUnit 11, Xdebug or PCOV for coverage, 80% threshold via `--min-coverage`. PSR-4 autoloading under `Cartograph\` namespace. Contamination scanner blocks WordPress globals (`wp_*`, `add_action`, `$wpdb`, etc.) and `echo` in src/ to enforce pure PHP utility widgets.
115
+ - **Terraform**: `terraform validate` against src/, tests/, and examples/ (shape-only - no test runner, no coverage; modules harden through use). Blocks provider/backend blocks in src/, real AWS account IDs, and credential-shaped assignments. Providers cached via `TF_PLUGIN_CACHE_DIR`.
116
+ - **Go**: `go test` with built-in coverage (80% via `-coverpkg`), `go vet` + build check, native `go/ast` contamination scanner. Single-binary toolchain. Widgets are libraries: console output, `os.Exit`, and `panic` in `init()` are blocked in src/.
115
117
 
116
118
  Each language has its own validation engine. The contamination scanners are written in the target language itself where possible (Python uses AST, JS uses a token-based parser, Nim uses a line-based scanner). OpenSCAD and SystemVerilog use Python-based scanners since neither language has general-purpose file I/O suitable for static analysis tooling.
117
119
 
@@ -139,7 +141,7 @@ pytest
139
141
 
140
142
  The widget library lives in your platform's user data directory. To override the location, set `WIDGET_LIBRARY_PATH`. When running from source, a `Widget_Library/` directory alongside this repo takes precedence so local edits work without configuration.
141
143
 
142
- Run `cartograph doctor` to check that all language engine dependencies (pytest, coverage, node, npx, vitest, nim, nimble, openscad, iverilog) are installed correctly.
144
+ Run `cartograph doctor` to check that all language engine dependencies (pytest, coverage, node, npx, vitest, nim, nimble, openscad, iverilog, terraform, go) are installed correctly.
143
145
 
144
146
  ### Pre-push checks and release preflight
145
147
 
@@ -43,6 +43,7 @@ These are requirements. Validation fails if any are not met.
43
43
  | Nim | No | N/A | No stdlib coverage tool exists |
44
44
  | OpenSCAD | No | N/A | Render passes = validation passes |
45
45
  | SystemVerilog | No | N/A | Testbench `$finish` exit code = pass; no per-line coverage |
46
+ | Go | Yes | 80% | go test -coverpkg=./src/... (built into the toolchain) |
46
47
 
47
48
  Nim coverage would require compiling via `--debugger:native` and running `gcov`/`lcov` on the generated C code. This produces C-level line coverage, not Nim source-level coverage. Decided it was too unreliable and confusing to impose on widget authors.
48
49
 
@@ -145,6 +146,78 @@ Nim coverage would require compiling via `--debugger:native` and running `gcov`/
145
146
  | examples/example_usage.sv compiles and simulates | iverilog or vvp non-zero exit | iverilog + vvp subprocess |
146
147
  | Python fallback contamination scanner passes | issues found | regex + block_walker primitives |
147
148
 
149
+
150
+ ### Go
151
+
152
+ | Check | Fails if | Method |
153
+ |-------|----------|--------|
154
+ | go.mod exists | missing | file check |
155
+ | src/ has .go files | missing | file check |
156
+ | gofmt formatting | any .go file differs from gofmt | `gofmt -l` over src/, tests/, examples/ |
157
+ | go vet passes on ./... | analyzer/type errors | subprocess (includes tests/ and examples/) |
158
+ | go build ./src/... passes | compile errors | subprocess (library only - no artifacts) |
159
+ | Native Go scanner passes on src/ | issues found | go_scanner.go (go/ast) |
160
+ | All declared dependencies are version-pinned | unpinned dep found | dep pinning check |
161
+ | go test ./tests/... passes | any test fails | subprocess |
162
+ | Coverage meets threshold | below 80% | -coverpkg=./src/... + go tool cover -func |
163
+ | Example runs and exits cleanly | non-zero exit | go run ./examples |
164
+
165
+ **Layout:** `go.mod` at the widget root declares `module <widget-slug>`. The
166
+ library package lives in `src/` and is imported by module path
167
+ (`"<module>/src"`); tests in `tests/` are black-box (`package tests`,
168
+ `*_test.go` filenames); `examples/example_usage.go` is `package main`.
169
+
170
+ **Coverage:** 80% enforced. `go test ./tests/... -coverpkg=./src/...
171
+ -coverprofile=<tmp>` followed by `go tool cover -func` to read the `total:`
172
+ line. Coverage support is built into the toolchain - no extra dependency.
173
+
174
+ **Dependencies:** declared in widget.json as `<module-path>>=<version>`
175
+ (e.g. `github.com/google/uuid>=1.6.0`). The validator runs `go get
176
+ <module>@v<floor>` plus `go mod tidy`, so the floor becomes the go.mod
177
+ requirement (Go's minimal-version selection resolves exactly the floor
178
+ unless a consumer raises it). No per-validation isolation: GOMODCACHE is
179
+ version-addressed and checksummed (go.sum), so the shared cache is safe.
180
+
181
+ **Formatting (gofmt):** a hard block, run over every `.go` file in src/,
182
+ tests/, and examples/. `gofmt -l` lists files whose formatting differs from
183
+ canonical; a non-empty list fails validation with a `gofmt -w .` hint.
184
+ gofmt ships with the toolchain (no extra dependency) and is the single
185
+ strongest convention signal in the Go ecosystem - no widely-used Go project
186
+ accepts unformatted code, so it is a floor guarantee, not a nudge.
187
+
188
+ **Scanner:** native `go_scanner.go`, stdlib-only (`go/ast` + `go/parser`,
189
+ parsed with `ParseComments` so doc-comment presence is checkable),
190
+ string- and comment-aware by construction. Compiled once to a cached binary
191
+ because `go run scanner.go <files...>` would consume the target files as
192
+ additional sources rather than passing them as argv. Blocks in src/:
193
+ `fmt.Print*/print/println`, `os.Exit`/`log.Fatal*`, `panic` inside
194
+ `init()`, credentials, absolute paths, hardcoded IPs, `time.Sleep`, and the
195
+ deprecated `io/ioutil` import (named replacements live in `io`/`os` since
196
+ Go 1.16). Warnings: hardcoded URLs, env var access
197
+ (`os.Getenv`/`os.LookupEnv`), top-level mutable `var`s, hardcoded numeric
198
+ tunables, unlisted module imports (resolved against go.mod's module path
199
+ and widget.json deps; stdlib detected by the no-dot-in-first-path-element
200
+ rule). Sleeps in tests warn only above 1s, with durations estimated
201
+ statically from `N * time.Second`-shaped expressions.
202
+
203
+ **Modern-standards warnings** (overridable at checkin, all src/-only):
204
+ - `math/rand` -> prefer `math/rand/v2` (Go 1.22+); `math/rand/v2` is exempt
205
+ - `interface{}` -> use the `any` alias (Go 1.18+); the `any` spelling parses
206
+ as an identifier, so only the literal empty-interface type trips it
207
+ - exported func/type/var/const without a doc comment - the exported surface
208
+ is the widget's product; a group doc on a `GenDecl` covers its specs, so
209
+ enum blocks stay quiet. Methods on unexported receivers are exempt.
210
+ - anonymous `go func(){...}()` goroutines - confirm a `WaitGroup`/context
211
+ governs the lifetime (named `go worker()` calls are left alone)
212
+ - errors compared with `==`/`!=` against a sentinel (`Err*` ident/selector
213
+ or `io.EOF`) - use `errors.Is` so wrapped errors match. `err == nil` is
214
+ exempt because neither side is a sentinel.
215
+
216
+ **Blueprints:** Go composition uses `require` + `replace` directives
217
+ pointing at `./cg/<dep-widget>/` in the blueprint's go.mod.
218
+ `run_blueprint_example` additionally synthesizes a temporary `go.work`
219
+ spanning the sandbox root and each dep widget module.
220
+
148
221
  ## Contamination Scanning
149
222
 
150
223
  Each language has a native scanner written in that language (not regex from Python).
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "cartograph-cli"
7
- version = "0.7.4"
7
+ version = "0.7.6"
8
8
  description = "Widget library manager for AI agents — CLI"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -2196,7 +2196,7 @@ def cmd_doctor(args):
2196
2196
 
2197
2197
  # --- Language engines (auto-discovered) ---
2198
2198
  from .languages.registry import _ENGINES
2199
- _lang_order = {"python": 0, "javascript": 1, "typescript": 2, "nim": 3, "openscad": 4, "angular": 5, "php": 6, "terraform": 7}
2199
+ _lang_order = {"python": 0, "javascript": 1, "typescript": 2, "nim": 3, "openscad": 4, "angular": 5, "php": 6, "terraform": 7, "go": 8}
2200
2200
  lang_checks = []
2201
2201
  for lang_name, engine in sorted(_ENGINES.items(), key=lambda x: _lang_order.get(x[0], 99)):
2202
2202
  available, message = engine.check_available()
@@ -226,6 +226,10 @@ _HTML = r"""<!DOCTYPE html>
226
226
  .lang-text-nim { color: #e85d00; }
227
227
  .lang-text-angular { color: #dd0031; }
228
228
  .lang-text-php { color: #8892bf; }
229
+ .lang-text-openscad { color: #f9d72c; }
230
+ .lang-text-systemverilog { color: #178600; }
231
+ .lang-text-terraform { color: #7b42bc; }
232
+ .lang-text-go { color: #00add8; }
229
233
  .widget-owner { font-size: 13px; color: var(--muted); }
230
234
  .widget-version { font-size: 12px; color: var(--muted); background: var(--surface2); padding: 1px 6px; border-radius: 4px; }
231
235
  .widget-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; max-width: 700px; }
@@ -238,6 +242,10 @@ _HTML = r"""<!DOCTYPE html>
238
242
  .lang-nim { background: #e85d00; }
239
243
  .lang-angular { background: #dd0031; }
240
244
  .lang-php { background: #8892bf; }
245
+ .lang-openscad { background: #f9d72c; }
246
+ .lang-systemverilog { background: #178600; }
247
+ .lang-terraform { background: #7b42bc; }
248
+ .lang-go { background: #00add8; }
241
249
  .lang-unknown { background: var(--muted); }
242
250
 
243
251
  .domain-tag {
@@ -565,6 +573,10 @@ function langClass(lang) {
565
573
  if (l === 'nim') return 'lang-nim';
566
574
  if (l === 'angular' || l === 'ang' || l === 'ng') return 'lang-angular';
567
575
  if (l === 'php') return 'lang-php';
576
+ if (l === 'openscad' || l === 'scad') return 'lang-openscad';
577
+ if (l === 'systemverilog' || l === 'sv') return 'lang-systemverilog';
578
+ if (l === 'terraform' || l === 'tf') return 'lang-terraform';
579
+ if (l === 'go' || l === 'golang') return 'lang-go';
568
580
  return 'lang-unknown';
569
581
  }
570
582