@ngocsangairvds/vsaf 3.1.27 → 3.2.1

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 (303) hide show
  1. package/package.json +2 -2
  2. package/src/global.js +70 -10
  3. package/tools/skills/vds-scripts-skill/.openskills.json +6 -0
  4. package/tools/skills/vds-scripts-skill/QUALITY.md +44 -0
  5. package/tools/skills/vds-scripts-skill/SKILL.md +135 -0
  6. package/tools/skills/vds-scripts-skill/references/audit-commands.md +171 -0
  7. package/tools/skills/vds-scripts-skill/references/capability-index.md +34 -0
  8. package/tools/skills/vds-scripts-skill/references/development-commands.md +12 -0
  9. package/tools/skills/vds-scripts-skill/references/google-sheets.md +73 -0
  10. package/tools/skills/vds-scripts-skill/references/integration-commands.md +17 -0
  11. package/tools/skills/vds-scripts-skill/references/platform-bootstrap.md +31 -0
  12. package/tools/skills/vds-scripts-skill/references/specialist-routing.md +14 -0
  13. package/tools/skills/vds-scripts-skill/references/validation-commands.md +15 -0
  14. package/tools/skills/vsaf-build/SKILL.md +32 -2
  15. package/tools/skills/vsaf-ship/SKILL.md +41 -10
  16. package/tools/skills/vsaf-test/SKILL.md +8 -0
  17. package/tools/vds-scripts/.mcp.json +11 -0
  18. package/tools/vds-scripts/.secrets.baseline +133 -0
  19. package/tools/vds-scripts/AGENTS.md +152 -0
  20. package/tools/vds-scripts/CLAUDE.md +101 -0
  21. package/tools/vds-scripts/CLI_COMMAND_OPTIMIZATION.md +156 -0
  22. package/tools/vds-scripts/PACKAGE_P125B_IMPLEMENTATION_SUMMARY.md +131 -0
  23. package/tools/vds-scripts/PROJECT_COMPLETION_SUMMARY.md +45 -0
  24. package/tools/vds-scripts/README.md +97 -0
  25. package/tools/vds-scripts/bitbucket_manifest_mapping.toml +34 -0
  26. package/tools/vds-scripts/bitbucket_orchestrator/ARCHITECTURE_ANALYSIS.md +258 -0
  27. package/tools/vds-scripts/bitbucket_orchestrator/BITBUCKET_API_PRACTICES.md +393 -0
  28. package/tools/vds-scripts/bitbucket_orchestrator/EVALUATION_REPORT.md +61 -0
  29. package/tools/vds-scripts/bitbucket_orchestrator/FEATURES.md +908 -0
  30. package/tools/vds-scripts/bitbucket_orchestrator/README.md +687 -0
  31. package/tools/vds-scripts/bitbucket_orchestrator/pyproject.toml +40 -0
  32. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/__init__.py +20 -0
  33. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/async_client.py +657 -0
  34. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/cli.py +2108 -0
  35. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/client.py +2534 -0
  36. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/config.py +171 -0
  37. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/errors.py +67 -0
  38. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/factory.py +185 -0
  39. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/protocols.py +244 -0
  40. package/tools/vds-scripts/bitbucket_orchestrator/tests/__init__.py +8 -0
  41. package/tools/vds-scripts/bitbucket_orchestrator/tests/conftest.py +65 -0
  42. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_advanced_search.py +151 -0
  43. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_async_client.py +546 -0
  44. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_branch_permissions.py +145 -0
  45. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_cli.py +115 -0
  46. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client.py +157 -0
  47. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_branch_conditions.py +79 -0
  48. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_code_advanced.py +163 -0
  49. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_code_file.py +32 -0
  50. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_deployment_environments.py +194 -0
  51. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_issues.py +164 -0
  52. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_pipelines_advanced.py +179 -0
  53. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_pr_blockers.py +119 -0
  54. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_repository_variables.py +156 -0
  55. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code.py +98 -0
  56. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code_advanced.py +282 -0
  57. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code_insights.py +335 -0
  58. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_conditions.py +147 -0
  59. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_config.py +131 -0
  60. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_deployment_env.py +352 -0
  61. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_factory.py +371 -0
  62. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_fork_operations.py +204 -0
  63. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_issue_cli.py +261 -0
  64. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_pipeline_advanced.py +270 -0
  65. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_pr_blocker.py +204 -0
  66. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_protocols.py +334 -0
  67. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_settings.py +343 -0
  68. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_variables.py +270 -0
  69. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_webhooks.py +189 -0
  70. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_workspace.py +233 -0
  71. package/tools/vds-scripts/bitbucket_orchestrator/uv.lock +742 -0
  72. package/tools/vds-scripts/confluence_orchestrator/Dockerfile +19 -0
  73. package/tools/vds-scripts/confluence_orchestrator/README.md +412 -0
  74. package/tools/vds-scripts/confluence_orchestrator/SYNC_SCRIPTS.md +127 -0
  75. package/tools/vds-scripts/confluence_orchestrator/SYNC_STANDARDIZATION.md +108 -0
  76. package/tools/vds-scripts/confluence_orchestrator/pyproject.toml +48 -0
  77. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/__init__.py +20 -0
  78. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/cli.py +2532 -0
  79. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/config.py +175 -0
  80. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/content.py +290 -0
  81. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/content_v2.py +94 -0
  82. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/crawl_tree.py +1835 -0
  83. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/errors.py +80 -0
  84. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/eventing.py +109 -0
  85. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/http.py +1114 -0
  86. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/orchestration.py +165 -0
  87. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/reporting.py +78 -0
  88. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/tree.py +121 -0
  89. package/tools/vds-scripts/confluence_orchestrator/sync_pdfs_from_markdown.py +213 -0
  90. package/tools/vds-scripts/confluence_orchestrator/sync_pdfs_to_confluence.py +305 -0
  91. package/tools/vds-scripts/confluence_orchestrator/sync_png_attachments.py +305 -0
  92. package/tools/vds-scripts/confluence_orchestrator/tests/__init__.py +0 -0
  93. package/tools/vds-scripts/confluence_orchestrator/tests/conftest.py +8 -0
  94. package/tools/vds-scripts/confluence_orchestrator/tests/test_advanced_content.py +224 -0
  95. package/tools/vds-scripts/confluence_orchestrator/tests/test_advanced_search.py +188 -0
  96. package/tools/vds-scripts/confluence_orchestrator/tests/test_cache_management.py +247 -0
  97. package/tools/vds-scripts/confluence_orchestrator/tests/test_cli.py +499 -0
  98. package/tools/vds-scripts/confluence_orchestrator/tests/test_config.py +83 -0
  99. package/tools/vds-scripts/confluence_orchestrator/tests/test_content.py +186 -0
  100. package/tools/vds-scripts/confluence_orchestrator/tests/test_content_flags.py +27 -0
  101. package/tools/vds-scripts/confluence_orchestrator/tests/test_crawl_tree.py +2250 -0
  102. package/tools/vds-scripts/confluence_orchestrator/tests/test_draft_management.py +223 -0
  103. package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing.py +71 -0
  104. package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_chaos.py +37 -0
  105. package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_rate_limit.py +44 -0
  106. package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_timeout.py +49 -0
  107. package/tools/vds-scripts/confluence_orchestrator/tests/test_export.py +230 -0
  108. package/tools/vds-scripts/confluence_orchestrator/tests/test_history.py +204 -0
  109. package/tools/vds-scripts/confluence_orchestrator/tests/test_http.py +117 -0
  110. package/tools/vds-scripts/confluence_orchestrator/tests/test_orchestration.py +91 -0
  111. package/tools/vds-scripts/confluence_orchestrator/tests/test_reporting.py +24 -0
  112. package/tools/vds-scripts/confluence_orchestrator/tests/test_search_cql.py +34 -0
  113. package/tools/vds-scripts/confluence_orchestrator/tests/test_space_management.py +237 -0
  114. package/tools/vds-scripts/confluence_orchestrator/tests/test_space_permissions.py +332 -0
  115. package/tools/vds-scripts/confluence_orchestrator/tests/test_user_group_management.py +388 -0
  116. package/tools/vds-scripts/confluence_orchestrator/uv.lock +1023 -0
  117. package/tools/vds-scripts/git_orchestrator/ENHANCEMENT_SUMMARY.md +119 -0
  118. package/tools/vds-scripts/git_orchestrator/README.md +280 -0
  119. package/tools/vds-scripts/git_orchestrator/VERIFICATION_REPORT.md +152 -0
  120. package/tools/vds-scripts/git_orchestrator/pyproject.toml +35 -0
  121. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/__init__.py +7 -0
  122. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/__main__.py +4 -0
  123. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/cli.py +847 -0
  124. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/logging_config.py +63 -0
  125. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/manifest.py +129 -0
  126. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/orchestrator.py +819 -0
  127. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/reporting.py +53 -0
  128. package/tools/vds-scripts/git_orchestrator/tests/__init__.py +0 -0
  129. package/tools/vds-scripts/git_orchestrator/tests/test_cli_settings.py +21 -0
  130. package/tools/vds-scripts/git_orchestrator/tests/test_integration.py +74 -0
  131. package/tools/vds-scripts/git_orchestrator/tests/test_manifest.py +79 -0
  132. package/tools/vds-scripts/git_orchestrator/tests/test_orchestrator.py +204 -0
  133. package/tools/vds-scripts/git_orchestrator/tests/test_public_api.py +236 -0
  134. package/tools/vds-scripts/git_orchestrator/tests/test_resilience.py +345 -0
  135. package/tools/vds-scripts/git_orchestrator/uv.lock +271 -0
  136. package/tools/vds-scripts/jira_orchestrator/README.md +770 -0
  137. package/tools/vds-scripts/jira_orchestrator/pyproject.toml +39 -0
  138. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/__init__.py +1 -0
  139. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/adapter.py +1320 -0
  140. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/cli.py +2271 -0
  141. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/config.py +138 -0
  142. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/errors.py +67 -0
  143. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/reporting.py +65 -0
  144. package/tools/vds-scripts/jira_orchestrator/tests/__init__.py +1 -0
  145. package/tools/vds-scripts/jira_orchestrator/tests/conftest.py +86 -0
  146. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_agile_list_payloads.py +54 -0
  147. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_bulk_operations.py +69 -0
  148. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_components.py +57 -0
  149. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_createmeta.py +45 -0
  150. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_dashboard.py +117 -0
  151. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_issue_properties.py +54 -0
  152. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_permissions_compat.py +42 -0
  153. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_reindex.py +42 -0
  154. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_remote_links.py +76 -0
  155. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_transitions.py +91 -0
  156. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_user_management.py +110 -0
  157. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_version_management.py +133 -0
  158. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_watchers.py +41 -0
  159. package/tools/vds-scripts/jira_orchestrator/tests/test_advanced_search.py +164 -0
  160. package/tools/vds-scripts/jira_orchestrator/tests/test_agile.py +256 -0
  161. package/tools/vds-scripts/jira_orchestrator/tests/test_application_properties.py +193 -0
  162. package/tools/vds-scripts/jira_orchestrator/tests/test_backlog.py +91 -0
  163. package/tools/vds-scripts/jira_orchestrator/tests/test_bulk_operations.py +277 -0
  164. package/tools/vds-scripts/jira_orchestrator/tests/test_cli.py +106 -0
  165. package/tools/vds-scripts/jira_orchestrator/tests/test_components.py +106 -0
  166. package/tools/vds-scripts/jira_orchestrator/tests/test_config.py +164 -0
  167. package/tools/vds-scripts/jira_orchestrator/tests/test_dashboard.py +122 -0
  168. package/tools/vds-scripts/jira_orchestrator/tests/test_discover_fields.py +207 -0
  169. package/tools/vds-scripts/jira_orchestrator/tests/test_filter_management.py +333 -0
  170. package/tools/vds-scripts/jira_orchestrator/tests/test_issue_archiving.py +164 -0
  171. package/tools/vds-scripts/jira_orchestrator/tests/test_issue_links.py +257 -0
  172. package/tools/vds-scripts/jira_orchestrator/tests/test_issue_properties.py +171 -0
  173. package/tools/vds-scripts/jira_orchestrator/tests/test_link_types.py +314 -0
  174. package/tools/vds-scripts/jira_orchestrator/tests/test_parse_set.py +37 -0
  175. package/tools/vds-scripts/jira_orchestrator/tests/test_permissions.py +273 -0
  176. package/tools/vds-scripts/jira_orchestrator/tests/test_reindex.py +81 -0
  177. package/tools/vds-scripts/jira_orchestrator/tests/test_remote_links.py +254 -0
  178. package/tools/vds-scripts/jira_orchestrator/tests/test_security_schemes.py +170 -0
  179. package/tools/vds-scripts/jira_orchestrator/tests/test_transitions_changelog.py +114 -0
  180. package/tools/vds-scripts/jira_orchestrator/tests/test_user_management.py +226 -0
  181. package/tools/vds-scripts/jira_orchestrator/tests/test_version_management.py +339 -0
  182. package/tools/vds-scripts/jira_orchestrator/tests/test_watchers.py +101 -0
  183. package/tools/vds-scripts/jira_orchestrator/tests/test_worklog.py +223 -0
  184. package/tools/vds-scripts/jira_orchestrator/uv.lock +738 -0
  185. package/tools/vds-scripts/mcp_server/Dockerfile +34 -0
  186. package/tools/vds-scripts/mcp_server/README.md +140 -0
  187. package/tools/vds-scripts/mcp_server/pyproject.toml +42 -0
  188. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/__init__.py +4 -0
  189. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/config.py +36 -0
  190. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/server.py +66 -0
  191. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/__init__.py +14 -0
  192. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/bitbucket_tools.py +47 -0
  193. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/confluence_tools.py +59 -0
  194. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/git_tools.py +71 -0
  195. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/jira_tools.py +63 -0
  196. package/tools/vds-scripts/mcp_server/tests/__init__.py +2 -0
  197. package/tools/vds-scripts/mcp_server/tests/conftest.py +29 -0
  198. package/tools/vds-scripts/mcp_server/tests/unit/__init__.py +2 -0
  199. package/tools/vds-scripts/mcp_server/tests/unit/test_bitbucket_tools.py +25 -0
  200. package/tools/vds-scripts/mcp_server/tests/unit/test_confluence_tools.py +25 -0
  201. package/tools/vds-scripts/mcp_server/tests/unit/test_git_tools.py +32 -0
  202. package/tools/vds-scripts/mcp_server/tests/unit/test_jira_tools.py +32 -0
  203. package/tools/vds-scripts/mcp_server/tests/verification/__init__.py +2 -0
  204. package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_confluence_tools.py +40 -0
  205. package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_jira_tools.py +37 -0
  206. package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_tool_registration.py +47 -0
  207. package/tools/vds-scripts/mcp_server/uv.lock +1032 -0
  208. package/tools/vds-scripts/mypy.ini +5 -0
  209. package/tools/vds-scripts/pyproject.toml +29 -0
  210. package/tools/vds-scripts/repo-manifest.yaml +273 -0
  211. package/tools/vds-scripts/repo-manifest.yaml.example +25 -0
  212. package/tools/vds-scripts/scripts/BRD-Validation-API.postman_collection.json +706 -0
  213. package/tools/vds-scripts/scripts/BRD-Validation-README.md +308 -0
  214. package/tools/vds-scripts/scripts/README.md +162 -0
  215. package/tools/vds-scripts/scripts/bootstrap_uv.sh +30 -0
  216. package/tools/vds-scripts/scripts/brd-validation-environment.json +51 -0
  217. package/tools/vds-scripts/scripts/brd-validation-test-results.json +13023 -0
  218. package/tools/vds-scripts/scripts/brd_coverage_report.json +276 -0
  219. package/tools/vds-scripts/scripts/create_memory_session.py +35 -0
  220. package/tools/vds-scripts/scripts/deployment/load_docker_images_offline.sh +90 -0
  221. package/tools/vds-scripts/scripts/final_completion_report.md +139 -0
  222. package/tools/vds-scripts/scripts/folder_structure_report.json +321 -0
  223. package/tools/vds-scripts/scripts/generate_completion_report.py +125 -0
  224. package/tools/vds-scripts/scripts/generate_intellij_modules.py +150 -0
  225. package/tools/vds-scripts/scripts/link_integrity_report.json +807 -0
  226. package/tools/vds-scripts/scripts/move_audit_artifact_pages.py +255 -0
  227. package/tools/vds-scripts/scripts/move_audit_artifact_pages_rest.py +165 -0
  228. package/tools/vds-scripts/scripts/move_wrong_dept_pages.py +216 -0
  229. package/tools/vds-scripts/scripts/save_intellij_memories.py +120 -0
  230. package/tools/vds-scripts/scripts/save_memories_to_vds_ai.py +83 -0
  231. package/tools/vds-scripts/scripts/save_memories_vds_style.py +129 -0
  232. package/tools/vds-scripts/scripts/search_intellij_memories.py +50 -0
  233. package/tools/vds-scripts/scripts/setup_intellij_workspace.py +65 -0
  234. package/tools/vds-scripts/scripts/target-state-automation/README.md +89 -0
  235. package/tools/vds-scripts/scripts/target-state-automation/confluence_sync_coordinator.sh +27 -0
  236. package/tools/vds-scripts/scripts/target-state-automation/coordination.sh +114 -0
  237. package/tools/vds-scripts/scripts/target-state-automation/diagram_coordinator.sh +25 -0
  238. package/tools/vds-scripts/scripts/target-state-automation/docs_root.sh +22 -0
  239. package/tools/vds-scripts/scripts/target-state-automation/generate_diagrams.sh +22 -0
  240. package/tools/vds-scripts/scripts/target-state-automation/markdown_coordinator.sh +25 -0
  241. package/tools/vds-scripts/scripts/target-state-automation/progress_dashboard.sh +17 -0
  242. package/tools/vds-scripts/scripts/target-state-automation/schema_coordinator.sh +25 -0
  243. package/tools/vds-scripts/scripts/target-state-automation/sync_confluence.sh +30 -0
  244. package/tools/vds-scripts/scripts/target-state-automation/update_dependencies.sh +19 -0
  245. package/tools/vds-scripts/scripts/target-state-automation/validate_links.sh +86 -0
  246. package/tools/vds-scripts/scripts/target-state-automation/validate_markdown.sh +52 -0
  247. package/tools/vds-scripts/scripts/target-state-automation/validate_schemas.sh +26 -0
  248. package/tools/vds-scripts/scripts/target-state-automation/validate_structure.sh +98 -0
  249. package/tools/vds-scripts/scripts/update_modules_xml.py +190 -0
  250. package/tools/vds-scripts/scripts/uv-workspace-alignment-verification-2026-03-25.md +128 -0
  251. package/tools/vds-scripts/scripts/validate_brd_coverage.py +179 -0
  252. package/tools/vds-scripts/scripts/validate_folder_structure.py +240 -0
  253. package/tools/vds-scripts/scripts/validate_link_integrity.py +272 -0
  254. package/tools/vds-scripts/scripts/vds_sh_helpers.sh +180 -0
  255. package/tools/vds-scripts/scripts/verification/phase2_portable_paths_ubuntu_docker.sh +26 -0
  256. package/tools/vds-scripts/scripts/worktree_uv.sh +48 -0
  257. package/tools/vds-scripts/uv.lock +8 -0
  258. package/tools/vds-scripts/vds_cli/README.md +126 -0
  259. package/tools/vds-scripts/vds_cli/VERIFICATION_REPORT.md +41 -0
  260. package/tools/vds-scripts/vds_cli/pyproject.toml +38 -0
  261. package/tools/vds-scripts/vds_cli/src/vds_cli/__init__.py +3 -0
  262. package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +173 -0
  263. package/tools/vds-scripts/vds_cli/src/vds_cli/docs_sync.py +1203 -0
  264. package/tools/vds-scripts/vds_cli/src/vds_cli/env.py +41 -0
  265. package/tools/vds-scripts/vds_cli/src/vds_cli/google_sheets_orchestrator/__init__.py +3 -0
  266. package/tools/vds-scripts/vds_cli/src/vds_cli/google_sheets_orchestrator/google_sheets_orchestrator.py +198 -0
  267. package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +93 -0
  268. package/tools/vds-scripts/vds_cli/src/vds_cli/sync_api.py +647 -0
  269. package/tools/vds-scripts/vds_cli/src/vds_cli/sync_service.py +266 -0
  270. package/tools/vds-scripts/vds_cli/tests/__init__.py +2 -0
  271. package/tools/vds-scripts/vds_cli/tests/conftest.py +49 -0
  272. package/tools/vds-scripts/vds_cli/tests/unit/__init__.py +2 -0
  273. package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +143 -0
  274. package/tools/vds-scripts/vds_cli/tests/unit/test_docs_sync.py +422 -0
  275. package/tools/vds-scripts/vds_cli/tests/unit/test_env.py +51 -0
  276. package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +72 -0
  277. package/tools/vds-scripts/vds_cli/tests/unit/test_sync_api.py +357 -0
  278. package/tools/vds-scripts/vds_cli/tests/unit/test_sync_service.py +160 -0
  279. package/tools/vds-scripts/vds_cli/tests/verification/__init__.py +2 -0
  280. package/tools/vds-scripts/vds_cli/tests/verification/test_bitbucket_real.py +33 -0
  281. package/tools/vds-scripts/vds_cli/tests/verification/test_confluence_real.py +35 -0
  282. package/tools/vds-scripts/vds_cli/tests/verification/test_jira_real.py +41 -0
  283. package/tools/vds-scripts/vds_cli/uv.lock +524 -0
  284. package/tools/vds-scripts/vds_cli_common/README.md +190 -0
  285. package/tools/vds-scripts/vds_cli_common/pyproject.toml +92 -0
  286. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/__init__.py +34 -0
  287. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/completers.py +139 -0
  288. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/context.py +201 -0
  289. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/env.py +119 -0
  290. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/errors.py +318 -0
  291. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/output.py +284 -0
  292. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/paths.py +78 -0
  293. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/testing.py +213 -0
  294. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/version.py +85 -0
  295. package/tools/vds-scripts/vds_cli_common/tests/__init__.py +1 -0
  296. package/tools/vds-scripts/vds_cli_common/tests/test_completers.py +148 -0
  297. package/tools/vds-scripts/vds_cli_common/tests/test_context.py +192 -0
  298. package/tools/vds-scripts/vds_cli_common/tests/test_env.py +102 -0
  299. package/tools/vds-scripts/vds_cli_common/tests/test_errors.py +186 -0
  300. package/tools/vds-scripts/vds_cli_common/tests/test_output.py +229 -0
  301. package/tools/vds-scripts/vds_cli_common/tests/test_paths.py +61 -0
  302. package/tools/vds-scripts/vds_cli_common/tests/test_testing.py +138 -0
  303. package/tools/vds-scripts/vds_cli_common/tests/test_version.py +64 -0
@@ -0,0 +1,120 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Script to save IntelliJ IDEA workspace setup memories to VDS-AI-Memory service
4
+ following the AGENTS.md guide.
5
+ """
6
+
7
+ import json
8
+ import httpx
9
+ import time
10
+
11
+ # Memory data to save
12
+ MEMORIES = [
13
+ {
14
+ "content": "Successfully implemented and verified IntelliJ IDEA multi-project workspace setup for the VDS monorepo following the AGENTS.md guide principles. The setup includes: 1. Created automation scripts in vds-scripts/scripts/: - generate_intellij_modules.py: Generates .iml files for all projects - update_modules_xml.py: Updates .idea/modules.xml with all projects - setup_intellij_workspace.py: One-command setup that runs both scripts 2. Configured IntelliJ IDEA workspace with: - All modules organized by project groups (LEP, INSURANCE, SAVING, EKYC) - Proper XML formatting in modules.xml - No duplicate entries - Correct module file generation for all 57+ services 3. Following AGENTS.md Python standards: - Used Python scripts for automation (not manual processes) - Leveraged standard library for XML processing - Created reusable, integrated solutions - Maintained consistent code style across scripts 4. Verified setup works correctly: - All module files generated in correct locations - modules.xml properly updated and formatted - No duplicate entries in configuration - Infrastructure projects (VDS-AI-Memory, vds-scripts, docs-nttc) correctly configured. This setup transforms the VDS monorepo into a well-organized multi-project workspace that's much easier to navigate and work with in IntelliJ IDEA.",
15
+ "category": "project",
16
+ "importance": "high",
17
+ "metadata": {
18
+ "org_id": "vds-internal",
19
+ "agent_id": "dev-agent",
20
+ "project": "IntelliJ-Workspace-Setup"
21
+ }
22
+ },
23
+ {
24
+ "content": "Created three Python automation scripts for setting up IntelliJ IDEA workspace in the VDS monorepo: 1. generate_intellij_modules.py: - Generates IntelliJ IDEA module files (.iml) for all projects in the VDS monorepo - Automatically detects project types (Java, Python, Web) and configures modules appropriately - Places module files in the appropriate project directories 2. update_modules_xml.py: - Updates the IntelliJ IDEA modules.xml file to include all projects - Organizes modules by project groups (LEP-Project, INSURANCE-Project, SAVING-Project, EKYC-Project, Infrastructure, Documentation) - Prevents duplicate entries and maintains proper XML formatting - Clears existing VDS module entries before adding updated ones 3. setup_intellij_workspace.py: - One-command setup that runs both generation and update scripts - Provides clear output and next steps for users - Follows VDS Python project standards from AGENTS.md. All scripts are located in vds-scripts/scripts/ directory and are executable. They follow the AGENTS.md guide for Python project standards: - Using standard Python libraries - Consistent code style - Reusable, integrated solutions over manual commands - Proper error handling and user feedback",
25
+ "category": "project",
26
+ "importance": "high",
27
+ "metadata": {
28
+ "org_id": "vds-internal",
29
+ "agent_id": "dev-agent",
30
+ "project": "IntelliJ-Workspace-Setup"
31
+ }
32
+ },
33
+ {
34
+ "content": "Key IntelliJ IDEA configuration files for the VDS monorepo multi-project workspace: 1. .idea/modules.xml: - Central configuration file that defines all modules in the workspace - Contains references to all project modules organized by groups - Properly formatted XML with all 57+ services from LEP, INSURANCE, SAVING, EKYC projects - Includes infrastructure projects (VDS-AI-Memory, vds-scripts, docs-nttc) - No duplicate entries after script execution 2. Individual project .iml files: - Generated for each service in their respective directories - Properly configured based on project type (Java, Python, Web) - Example: LEP-project/document-management/document-management.iml - Example: VDS-AI-Memory/.idea/VDS-AI-Memory.iml 3. Main workspace file .idea/vds.iml: - Configured to exclude sub-project directories to prevent conflicts - Contains Go plugin configuration - Proper content root configuration 4. Documentation: - WORKSPACE.md: Comprehensive guide for setting up and using the multi-project workspace - vds-scripts/scripts/README.md: Detailed information about automation scripts. These configuration files transform the VDS monorepo into a well-organized multi-project workspace that's easier to navigate and work with in IntelliJ IDEA.",
35
+ "category": "project",
36
+ "importance": "high",
37
+ "metadata": {
38
+ "org_id": "vds-internal",
39
+ "agent_id": "dev-agent",
40
+ "project": "IntelliJ-Workspace-Setup"
41
+ }
42
+ }
43
+ ]
44
+
45
+ def create_session():
46
+ """Create a session in VDS-AI-Memory service."""
47
+ url = "http://localhost:8000/api/v1/sessions"
48
+ payload = {
49
+ "user_id": "dev-agent",
50
+ "project_domain": "PLATFORM",
51
+ "context": "Saving IntelliJ IDEA workspace setup memories",
52
+ "ttl_hours": 24
53
+ }
54
+
55
+ try:
56
+ response = httpx.post(url, json=payload, timeout=30.0)
57
+ if response.status_code == 200:
58
+ session_data = response.json()
59
+ print(f"✅ Session created successfully: {session_data['session_id']}")
60
+ return session_data.get("session_id")
61
+ else:
62
+ print(f"❌ Failed to create session. Status code: {response.status_code}")
63
+ print(f"Response: {response.text}")
64
+ return None
65
+ except Exception as e:
66
+ print(f"❌ Error creating session: {e}")
67
+ return None
68
+
69
+ def save_memory(memory_data, session_id):
70
+ """Save a memory to VDS-AI-Memory service."""
71
+ url = "http://localhost:8000/api/v1/memories"
72
+ payload = {
73
+ "content": memory_data["content"],
74
+ "category": memory_data["category"],
75
+ "importance": memory_data["importance"],
76
+ "user_id": "dev-agent",
77
+ "session_id": session_id,
78
+ "metadata": memory_data["metadata"]
79
+ }
80
+
81
+ try:
82
+ response = httpx.post(url, json=payload, timeout=30.0)
83
+ if response.status_code == 200:
84
+ memory_result = response.json()
85
+ print(f"✅ Memory saved successfully: {memory_result.get('memory_id', 'Unknown ID')}")
86
+ return True
87
+ else:
88
+ print(f"❌ Failed to save memory. Status code: {response.status_code}")
89
+ print(f"Response: {response.text}")
90
+ return False
91
+ except Exception as e:
92
+ print(f"❌ Error saving memory: {e}")
93
+ return False
94
+
95
+ def main():
96
+ """Main function to save all memories."""
97
+ print("Starting to save IntelliJ IDEA workspace setup memories to VDS-AI-Memory service...")
98
+
99
+ # Create session
100
+ session_id = create_session()
101
+ if not session_id:
102
+ print("Failed to create session. Exiting.")
103
+ return
104
+
105
+ # Save each memory
106
+ for i, memory in enumerate(MEMORIES, 1):
107
+ print(f"\nSaving memory {i}/{len(MEMORIES)}...")
108
+ success = save_memory(memory, session_id)
109
+ if success:
110
+ print(f"✅ Memory {i} saved successfully")
111
+ else:
112
+ print(f"❌ Failed to save memory {i}")
113
+
114
+ # Small delay between requests
115
+ time.sleep(1)
116
+
117
+ print("\n🎉 All memories saved successfully to VDS-AI-Memory service!")
118
+
119
+ if __name__ == "__main__":
120
+ main()
@@ -0,0 +1,83 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Script to save our IntelliJ IDEA workspace setup memories to the VDS-AI-Memory service.
4
+ """
5
+
6
+ import os
7
+ import sys
8
+ import json
9
+ from mem0 import MemoryClient
10
+
11
+ def save_memories_to_vds_ai():
12
+ """
13
+ Save our IntelliJ IDEA workspace setup memories to the VDS-AI-Memory service.
14
+ """
15
+ print("Saving IntelliJ IDEA workspace setup memories to VDS-AI-Memory service...")
16
+
17
+ # Get the VDS root directory
18
+ vds_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
19
+ print(f"VDS Root: {vds_root}")
20
+
21
+ # Initialize the MemoryClient
22
+ try:
23
+ # Connect to the local VDS-AI-Memory service
24
+ memory_client = MemoryClient(host="http://localhost:8000")
25
+ print("Connected to VDS-AI-Memory service")
26
+ except Exception as e:
27
+ print(f"Error connecting to VDS-AI-Memory service: {e}")
28
+ print("Please ensure the VDS-AI-Memory service is running.")
29
+ return False
30
+
31
+ # Define the memories to save
32
+ memories = [
33
+ {
34
+ "data": "Successfully implemented and verified IntelliJ IDEA multi-project workspace setup for the VDS monorepo following the AGENTS.md guide principles. The setup includes: 1. Created automation scripts in vds-scripts/scripts/: - generate_intellij_modules.py: Generates .iml files for all projects - update_modules_xml.py: Updates .idea/modules.xml with all projects - setup_intellij_workspace.py: One-command setup that runs both scripts 2. Configured IntelliJ IDEA workspace with: - All modules organized by project groups (LEP, INSURANCE, SAVING, EKYC) - Proper XML formatting in modules.xml - No duplicate entries - Correct module file generation for all 57+ services 3. Following AGENTS.md Python standards: - Used Python scripts for automation (not manual processes) - Leveraged standard library for XML processing - Created reusable, integrated solutions - Maintained consistent code style across scripts 4. Verified setup works correctly: - All module files generated in correct locations - modules.xml properly updated and formatted - No duplicate entries in configuration - Infrastructure projects (VDS-AI-Memory, vds-scripts, docs-nttc) correctly configured. This setup transforms the VDS monorepo into a well-organized multi-project workspace that's much easier to navigate and work with in IntelliJ IDEA.",
35
+ "metadata": {
36
+ "category": "experience_lessons",
37
+ "scope": "workspace",
38
+ "source": "user",
39
+ "keywords": "IntelliJ IDEA, multi-project workspace, VDS monorepo, automation scripts, module configuration"
40
+ },
41
+ "user_id": "intellij-workspace-setup"
42
+ },
43
+ {
44
+ "data": "Created three Python automation scripts for setting up IntelliJ IDEA workspace in the VDS monorepo: 1. generate_intellij_modules.py: - Generates IntelliJ IDEA module files (.iml) for all projects in the VDS monorepo - Automatically detects project types (Java, Python, Web) and configures modules appropriately - Places module files in the appropriate project directories 2. update_modules_xml.py: - Updates the IntelliJ IDEA modules.xml file to include all projects - Organizes modules by project groups (LEP-Project, INSURANCE-Project, SAVING-Project, EKYC-Project, Infrastructure, Documentation) - Prevents duplicate entries and maintains proper XML formatting - Clears existing VDS module entries before adding updated ones 3. setup_intellij_workspace.py: - One-command setup that runs both generation and update scripts - Provides clear output and next steps for users - Follows VDS Python project standards from AGENTS.md. All scripts are located in vds-scripts/scripts/ directory and are executable. They follow the AGENTS.md guide for Python project standards: - Using standard Python libraries - Consistent code style - Reusable, integrated solutions over manual commands - Proper error handling and user feedback",
45
+ "metadata": {
46
+ "category": "project_info",
47
+ "scope": "workspace",
48
+ "source": "user",
49
+ "keywords": "IntelliJ IDEA, workspace automation, Python scripts, VDS monorepo, module configuration"
50
+ },
51
+ "user_id": "intellij-workspace-setup"
52
+ },
53
+ {
54
+ "data": "Key IntelliJ IDEA configuration files for the VDS monorepo multi-project workspace: 1. .idea/modules.xml: - Central configuration file that defines all modules in the workspace - Contains references to all project modules organized by groups - Properly formatted XML with all 57+ services from LEP, INSURANCE, SAVING, EKYC projects - Includes infrastructure projects (VDS-AI-Memory, vds-scripts, docs-nttc) - No duplicate entries after script execution 2. Individual project .iml files: - Generated for each service in their respective directories - Properly configured based on project type (Java, Python, Web) - Example: LEP-project/document-management/document-management.iml - Example: VDS-AI-Memory/.idea/VDS-AI-Memory.iml 3. Main workspace file .idea/vds.iml: - Configured to exclude sub-project directories to prevent conflicts - Contains Go plugin configuration - Proper content root configuration 4. Documentation: - WORKSPACE.md: Comprehensive guide for setting up and using the multi-project workspace - vds-scripts/scripts/README.md: Detailed information about automation scripts. These configuration files transform the VDS monorepo into a well-organized multi-project workspace that's easier to navigate and work with in IntelliJ IDEA.",
55
+ "metadata": {
56
+ "category": "project_info",
57
+ "scope": "workspace",
58
+ "source": "user",
59
+ "keywords": "IntelliJ IDEA, configuration files, modules.xml, .iml files, VDS monorepo"
60
+ },
61
+ "user_id": "intellij-workspace-setup"
62
+ }
63
+ ]
64
+
65
+ # Save each memory to the VDS-AI-Memory service
66
+ for i, memory in enumerate(memories, 1):
67
+ try:
68
+ result = memory_client.add(
69
+ data=memory["data"],
70
+ metadata=memory["metadata"],
71
+ user_id=memory["user_id"]
72
+ )
73
+ print(f"Saved memory {i} to VDS-AI-Memory service: {result}")
74
+ except Exception as e:
75
+ print(f"Error saving memory {i} to VDS-AI-Memory service: {e}")
76
+ return False
77
+
78
+ print("\nAll memories successfully saved to VDS-AI-Memory service!")
79
+ return True
80
+
81
+ if __name__ == "__main__":
82
+ success = save_memories_to_vds_ai()
83
+ sys.exit(0 if success else 1)
@@ -0,0 +1,129 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Script to save IntelliJ IDEA workspace setup memories to VDS-AI-Memory service
4
+ following the exact format specified in AGENTS.md guide.
5
+ """
6
+
7
+ import httpx
8
+ import json
9
+ import time
10
+
11
+ # Memory data to save - following AGENTS.md format exactly
12
+ MEMORIES = [
13
+ {
14
+ "content": "Successfully implemented and verified IntelliJ IDEA multi-project workspace setup for the VDS monorepo following the AGENTS.md guide principles. The setup includes automation scripts for generating module files and updating modules.xml. This transforms the VDS monorepo into a well-organized multi-project workspace that's much easier to navigate and work with in IntelliJ IDEA.",
15
+ "category": "project",
16
+ "importance": "high",
17
+ "force_mem0": True,
18
+ "metadata": {
19
+ "org_id": "vds-internal",
20
+ "agent_id": "dev-agent",
21
+ "project": "IntelliJ-Workspace-Setup",
22
+ "decision_type": "implementation"
23
+ }
24
+ },
25
+ {
26
+ "content": "Created three Python automation scripts for IntelliJ IDEA workspace: generate_intellij_modules.py, update_modules_xml.py, and setup_intellij_workspace.py. These scripts follow VDS Python project standards using standard libraries and consistent code style.",
27
+ "category": "business-logic",
28
+ "importance": "critical",
29
+ "force_mem0": True,
30
+ "metadata": {
31
+ "org_id": "vds-internal",
32
+ "agent_id": "dev-agent",
33
+ "project": "IntelliJ-Workspace-Setup",
34
+ "decision_type": "automation"
35
+ }
36
+ },
37
+ {
38
+ "content": "Key IntelliJ IDEA configuration files for VDS monorepo: .idea/modules.xml organizes all modules by project groups. Individual project .iml files are generated for each service. Main workspace file .idea/vds.iml excludes sub-project directories to prevent conflicts.",
39
+ "category": "project",
40
+ "importance": "high",
41
+ "metadata": {
42
+ "org_id": "vds-internal",
43
+ "agent_id": "dev-agent",
44
+ "project": "IntelliJ-Workspace-Setup",
45
+ "decision_type": "configuration"
46
+ }
47
+ }
48
+ ]
49
+
50
+ def create_session():
51
+ """Create a session following AGENTS.md guide."""
52
+ url = "http://localhost:8000/api/v1/sessions"
53
+ payload = {
54
+ "user_id": "dev-agent",
55
+ "project_domain": "PLATFORM",
56
+ "context": "IntelliJ IDEA workspace setup for VDS monorepo",
57
+ "ttl_hours": 24
58
+ }
59
+
60
+ try:
61
+ response = httpx.post(url, json=payload, timeout=30.0)
62
+ response.raise_for_status()
63
+ session_data = response.json()
64
+ print(f"✅ Session created: {session_data['session_id']}")
65
+ return session_data['session_id']
66
+ except Exception as e:
67
+ print(f"❌ Failed to create session: {e}")
68
+ return None
69
+
70
+ def save_memory(memory_data, session_id):
71
+ """Save a memory following AGENTS.md guide."""
72
+ url = "http://localhost:8000/api/v1/memories"
73
+ payload = {
74
+ "content": memory_data["content"],
75
+ "category": memory_data["category"],
76
+ "importance": memory_data["importance"],
77
+ "user_id": "dev-agent",
78
+ "session_id": session_id,
79
+ "metadata": memory_data["metadata"]
80
+ }
81
+
82
+ # Add force_mem0 if specified
83
+ if memory_data.get("force_mem0"):
84
+ payload["force_mem0"] = True
85
+
86
+ try:
87
+ response = httpx.post(url, json=payload, timeout=30.0)
88
+ response.raise_for_status()
89
+ result = response.json()
90
+ print(f"✅ Memory saved: {result.get('memory_id', 'Unknown')}")
91
+ return True
92
+ except Exception as e:
93
+ print(f"❌ Failed to save memory: {e}")
94
+ print(f" Response: {response.text if 'response' in locals() else 'No response'}")
95
+ return False
96
+
97
+ def main():
98
+ """Main function following AGENTS.md workflow."""
99
+ print("🚀 Saving IntelliJ IDEA workspace setup memories to VDS-AI-Memory service")
100
+ print("=" * 70)
101
+
102
+ # Step 1: Create session (as specified in AGENTS.md)
103
+ print("\n1️⃣ Creating VDS-AI-Memory session...")
104
+ session_id = create_session()
105
+ if not session_id:
106
+ print("❌ Failed to create session. Exiting.")
107
+ return
108
+
109
+ # Step 2: Save memories (as specified in AGENTS.md)
110
+ print(f"\n2️⃣ Saving {len(MEMORIES)} memories...")
111
+ success_count = 0
112
+
113
+ for i, memory in enumerate(MEMORIES, 1):
114
+ print(f"\n Saving memory {i}/{len(MEMORIES)}...")
115
+ if save_memory(memory, session_id):
116
+ success_count += 1
117
+ time.sleep(1) # Brief pause between requests
118
+
119
+ # Step 3: Summary
120
+ print(f"\n3️⃣ Summary")
121
+ print(f" Successfully saved {success_count}/{len(MEMORIES)} memories")
122
+
123
+ if success_count == len(MEMORIES):
124
+ print("🎉 All memories saved successfully to VDS-AI-Memory service!")
125
+ else:
126
+ print("⚠️ Some memories failed to save. Check output above for details.")
127
+
128
+ if __name__ == "__main__":
129
+ main()
@@ -0,0 +1,50 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Script to search for IntelliJ IDEA workspace setup memories in VDS-AI-Memory service.
4
+ """
5
+
6
+ import httpx
7
+ import json
8
+
9
+ def search_memories(query, user_id="dev-agent"):
10
+ """Search for memories in VDS-AI-Memory service."""
11
+ url = "http://localhost:8000/api/v1/memories/search"
12
+ payload = {
13
+ "query": query,
14
+ "user_id": user_id,
15
+ "limit": 10
16
+ }
17
+
18
+ try:
19
+ response = httpx.post(url, json=payload, timeout=30.0)
20
+ if response.status_code == 200:
21
+ results = response.json()
22
+ print(f"✅ Found {len(results)} memories matching '{query}':")
23
+ for i, memory in enumerate(results, 1):
24
+ print(f"\n--- Memory {i} ---")
25
+ print(f"ID: {memory.get('memory_id', 'Unknown')}")
26
+ print(f"Content: {memory.get('content', 'No content')[:200]}...")
27
+ print(f"Category: {memory.get('category', 'Unknown')}")
28
+ print(f"Importance: {memory.get('importance', 'Unknown')}")
29
+ print(f"Metadata: {memory.get('metadata', {})}")
30
+ return results
31
+ else:
32
+ print(f"❌ Failed to search memories. Status code: {response.status_code}")
33
+ print(f"Response: {response.text}")
34
+ return []
35
+ except Exception as e:
36
+ print(f"❌ Error searching memories: {e}")
37
+ return []
38
+
39
+ def main():
40
+ """Main function to search for memories."""
41
+ print("Searching for IntelliJ IDEA workspace setup memories...")
42
+
43
+ # Search for memories related to IntelliJ IDEA workspace
44
+ search_memories("IntelliJ IDEA workspace")
45
+
46
+ # Search for memories related to VDS monorepo
47
+ search_memories("VDS monorepo")
48
+
49
+ if __name__ == "__main__":
50
+ main()
@@ -0,0 +1,65 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ VDS CLI command to set up IntelliJ IDEA workspace for the VDS monorepo.
4
+ """
5
+
6
+ import os
7
+ import sys
8
+ import subprocess
9
+
10
+ def setup_intellij_workspace():
11
+ """
12
+ Set up IntelliJ IDEA workspace by generating module files and updating modules.xml.
13
+ """
14
+ # Get the VDS root directory
15
+ vds_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))
16
+ scripts_dir = os.path.join(vds_root, "vds-scripts", "scripts")
17
+
18
+ print("Setting up IntelliJ IDEA workspace for VDS monorepo...")
19
+ print(f"VDS Root: {vds_root}")
20
+
21
+ # Run the module generation script
22
+ print("\n1. Generating IntelliJ IDEA module files...")
23
+ try:
24
+ result = subprocess.run([
25
+ sys.executable,
26
+ os.path.join(scripts_dir, "generate_intellij_modules.py")
27
+ ], cwd=scripts_dir, capture_output=True, text=True)
28
+
29
+ if result.returncode != 0:
30
+ print(f"Error generating module files: {result.stderr}")
31
+ return False
32
+
33
+ print(result.stdout)
34
+ except Exception as e:
35
+ print(f"Error running module generation script: {e}")
36
+ return False
37
+
38
+ # Run the modules.xml update script
39
+ print("\n2. Updating modules.xml file...")
40
+ try:
41
+ result = subprocess.run([
42
+ sys.executable,
43
+ os.path.join(scripts_dir, "update_modules_xml.py")
44
+ ], cwd=scripts_dir, capture_output=True, text=True)
45
+
46
+ if result.returncode != 0:
47
+ print(f"Error updating modules.xml: {result.stderr}")
48
+ return False
49
+
50
+ print(result.stdout)
51
+ except Exception as e:
52
+ print(f"Error running modules.xml update script: {e}")
53
+ return False
54
+
55
+ print("\n3. IntelliJ IDEA workspace setup complete!")
56
+ print("\nNext steps:")
57
+ print("1. Refresh your project in IntelliJ IDEA (Ctrl+Alt+Y / Cmd+Alt+Y)")
58
+ print("2. The project should now be organized with all modules grouped by project type")
59
+ print("3. If modules don't appear, go to File → Project Structure → Modules to import them")
60
+
61
+ return True
62
+
63
+ if __name__ == "__main__":
64
+ success = setup_intellij_workspace()
65
+ sys.exit(0 if success else 1)
@@ -0,0 +1,89 @@
1
+ # Target-State Documentation Automation Scripts
2
+
3
+ ## Overview
4
+
5
+ Automation scripts for generating, validating, and managing target-state documentation across all VDS Insurance Platform services.
6
+
7
+ ## Scripts
8
+
9
+ ### 1. generate_diagrams.sh
10
+ Generate component, sequence, and use case diagrams for services using VDS Diagram Generator.
11
+
12
+ ### 2. validate_diagrams.sh
13
+ Validate existing PlantUML and Mermaid diagrams for syntax errors.
14
+
15
+ ### 3. validate_markdown.sh
16
+ Validate markdown files against VDS documentation standards.
17
+
18
+ ### 4. sync_confluence.sh
19
+ Upload documentation and diagrams to Confluence.
20
+
21
+ ### 5. validate_brd_coverage.sh
22
+ Validate BRD coverage for completed services.
23
+
24
+ ### 6. multi_agent_coordinator.py
25
+ Python script for coordinating multi-agent execution with task queue and file locking.
26
+
27
+ ## UV Contract
28
+
29
+ All scripts in this directory route Python tool invocations through the
30
+ worktree-safe wrapper stack. See [`../README.md`](../README.md#uv-contract--canonical-usage)
31
+ for the full contract. Key points specific to this directory:
32
+
33
+ ### Sourcing the helper
34
+
35
+ Every script sources `scripts/vds_sh_helpers.sh` (one level up):
36
+
37
+ ```/dev/null/target-state-automation-source.sh#L1-2
38
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
39
+ source "$SCRIPT_DIR/../vds_sh_helpers.sh"
40
+ ```
41
+
42
+ ### Standard invocation pattern
43
+
44
+ ```/dev/null/target-state-automation-run.sh#L1-5
45
+ # Run a vds_cli command
46
+ vds_uv_run_package vds_cli vds-cli <subcommand> [args...]
47
+
48
+ # Run a markdown_orchestrator command (note the -- separator)
49
+ vds_uv_run_package markdown_orchestrator -- vds-markdown <subcommand> [args...]
50
+ ```
51
+
52
+ Do **not** use `uv run --project <path>` or a monorepo-relative `cd` before
53
+ `uv run`. Both patterns break in worktrees and alternate checkouts.
54
+
55
+ ### Intentional exception — validate_markdown.sh
56
+
57
+ `validate_markdown.sh` uses an editable install (`uv pip install -e .`) for
58
+ local-dev iteration on `markdown_orchestrator` source. This is documented in
59
+ the script header. Do not migrate it to the standard wrapper pattern without
60
+ evaluating whether editable-install semantics are still required.
61
+
62
+ ### Backward-compatible helper — docs_root.sh
63
+
64
+ `docs_root.sh` is now a shim that delegates to `vds_sh_helpers.sh`. Existing
65
+ scripts that source it continue to work. New scripts should source
66
+ `../vds_sh_helpers.sh` directly.
67
+
68
+ ## Configuration
69
+
70
+ All scripts use environment variables from the shared VDS env/config layer.
71
+
72
+ - `VDS_INSURANCE_DOCS_ROOT` overrides the documentation root.
73
+ - Without the override, scripts prefer `WHO-project/insurance-document` and then fall back to the first `*-project/insurance-document` match.
74
+ - `AGENT_ID` sets the coordination lock identity (default: `markdown-agent-01`).
75
+
76
+ ## Dependencies
77
+
78
+ - PlantUML CLI (latest version)
79
+ - markdownlint-cli2 (npm package)
80
+ - Bash 4.0+
81
+ - Python 3.14+ preferred for integrated `vds-scripts` workspace usage
82
+ - VDS-AI-Memory service running
83
+
84
+ ## Version
85
+
86
+ **Automation Scripts Version**: 1.0
87
+ **Created**: 2025-01-06
88
+ **Author**: OpenCode Agent
89
+ **Status**: Draft - Ready for Implementation
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
+ # shellcheck source=scripts/vds_sh_helpers.sh
6
+ source "$SCRIPT_DIR/../vds_sh_helpers.sh"
7
+
8
+ ROOT="$(vds_resolve_scripts_root)"
9
+ DOCS_ROOT="$(resolve_insurance_docs_root "$ROOT")"
10
+ TARGET_STATE_ROOT="$DOCS_ROOT/projects/INSURANCE/analysis/target-state"
11
+ COORD="$ROOT/scripts/target-state-automation/coordination.sh"
12
+ AGENT_ID="${AGENT_ID:-confluence-agent-01}"
13
+ PAGE_ID="${PAGE_ID:?Set PAGE_ID for Confluence sync}"
14
+ SERVER="${SERVER:-external}"
15
+
16
+ lock_file="$TARGET_STATE_ROOT/README.md"
17
+ "$COORD" lock "$AGENT_ID" "$lock_file" "confluence-sync" >/dev/null || true
18
+
19
+ vds_uv_run_package vds_cli vds-cli confluence sync pngs "$PAGE_ID" \
20
+ --dir "$TARGET_STATE_ROOT/architecture" \
21
+ --server "$SERVER"
22
+
23
+ vds_uv_run_package vds_cli vds-cli confluence sync pdfs "$PAGE_ID" \
24
+ --dir "$TARGET_STATE_ROOT" \
25
+ --server "$SERVER"
26
+
27
+ "$COORD" unlock "$AGENT_ID" "$lock_file" >/dev/null || true