@ngocsangairvds/vsaf 3.2.15 → 4.0.0

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 (2337) hide show
  1. package/README.md +638 -302
  2. package/package.json +51 -13
  3. package/packages/cli/dist/commands/doctor.d.ts +9 -0
  4. package/packages/cli/dist/commands/doctor.d.ts.map +1 -0
  5. package/packages/cli/dist/commands/doctor.js +49 -0
  6. package/packages/cli/dist/commands/doctor.js.map +1 -0
  7. package/packages/cli/dist/commands/init.d.ts +6 -0
  8. package/packages/cli/dist/commands/init.d.ts.map +1 -0
  9. package/packages/cli/dist/commands/init.js +66 -0
  10. package/packages/cli/dist/commands/init.js.map +1 -0
  11. package/packages/cli/dist/commands/install.d.ts +38 -0
  12. package/packages/cli/dist/commands/install.d.ts.map +1 -0
  13. package/packages/cli/dist/commands/install.js +246 -0
  14. package/packages/cli/dist/commands/install.js.map +1 -0
  15. package/packages/cli/dist/commands/list.d.ts +7 -0
  16. package/packages/cli/dist/commands/list.d.ts.map +1 -0
  17. package/packages/cli/dist/commands/list.js +40 -0
  18. package/packages/cli/dist/commands/list.js.map +1 -0
  19. package/packages/cli/dist/commands/mcp.d.ts +2 -0
  20. package/packages/cli/dist/commands/mcp.d.ts.map +1 -0
  21. package/packages/cli/dist/commands/mcp.js +8 -0
  22. package/packages/cli/dist/commands/mcp.js.map +1 -0
  23. package/packages/cli/dist/commands/run.d.ts +13 -0
  24. package/packages/cli/dist/commands/run.d.ts.map +1 -0
  25. package/packages/cli/dist/commands/run.js +90 -0
  26. package/packages/cli/dist/commands/run.js.map +1 -0
  27. package/packages/cli/dist/commands/serve.d.ts +6 -0
  28. package/packages/cli/dist/commands/serve.d.ts.map +1 -0
  29. package/packages/cli/dist/commands/serve.js +28 -0
  30. package/packages/cli/dist/commands/serve.js.map +1 -0
  31. package/packages/cli/dist/commands/skill.d.ts +48 -0
  32. package/packages/cli/dist/commands/skill.d.ts.map +1 -0
  33. package/packages/cli/dist/commands/skill.js +283 -0
  34. package/packages/cli/dist/commands/skill.js.map +1 -0
  35. package/packages/cli/dist/commands/status.d.ts +4 -0
  36. package/packages/cli/dist/commands/status.d.ts.map +1 -0
  37. package/packages/cli/dist/commands/status.js +21 -0
  38. package/packages/cli/dist/commands/status.js.map +1 -0
  39. package/packages/cli/dist/index.d.ts +3 -0
  40. package/packages/cli/dist/index.d.ts.map +1 -0
  41. package/packages/cli/dist/index.js +218 -0
  42. package/packages/cli/dist/index.js.map +1 -0
  43. package/packages/cli/dist/mcp/server.d.ts +40 -0
  44. package/packages/cli/dist/mcp/server.d.ts.map +1 -0
  45. package/packages/cli/dist/mcp/server.js +219 -0
  46. package/packages/cli/dist/mcp/server.js.map +1 -0
  47. package/packages/cli/dist/server/app.d.ts +8 -0
  48. package/packages/cli/dist/server/app.d.ts.map +1 -0
  49. package/packages/cli/dist/server/app.js +29 -0
  50. package/packages/cli/dist/server/app.js.map +1 -0
  51. package/packages/cli/dist/server/routes/health.d.ts +3 -0
  52. package/packages/cli/dist/server/routes/health.d.ts.map +1 -0
  53. package/packages/cli/dist/server/routes/health.js +13 -0
  54. package/packages/cli/dist/server/routes/health.js.map +1 -0
  55. package/packages/cli/dist/server/routes/runs.d.ts +9 -0
  56. package/packages/cli/dist/server/routes/runs.d.ts.map +1 -0
  57. package/packages/cli/dist/server/routes/runs.js +57 -0
  58. package/packages/cli/dist/server/routes/runs.js.map +1 -0
  59. package/packages/cli/dist/server/routes/workflows.d.ts +5 -0
  60. package/packages/cli/dist/server/routes/workflows.d.ts.map +1 -0
  61. package/packages/cli/dist/server/routes/workflows.js +56 -0
  62. package/packages/cli/dist/server/routes/workflows.js.map +1 -0
  63. package/packages/cli/dist/server/services/execution-manager.d.ts +15 -0
  64. package/packages/cli/dist/server/services/execution-manager.d.ts.map +1 -0
  65. package/packages/cli/dist/server/services/execution-manager.js +78 -0
  66. package/packages/cli/dist/server/services/execution-manager.js.map +1 -0
  67. package/packages/cli/dist/server/services/sse-manager.d.ts +9 -0
  68. package/packages/cli/dist/server/services/sse-manager.d.ts.map +1 -0
  69. package/packages/cli/dist/server/services/sse-manager.js +41 -0
  70. package/packages/cli/dist/server/services/sse-manager.js.map +1 -0
  71. package/packages/cli/dist/server/static.d.ts +3 -0
  72. package/packages/cli/dist/server/static.d.ts.map +1 -0
  73. package/packages/cli/dist/server/static.js +30 -0
  74. package/packages/cli/dist/server/static.js.map +1 -0
  75. package/packages/cli/dist/ui/progress.d.ts +3 -0
  76. package/packages/cli/dist/ui/progress.d.ts.map +1 -0
  77. package/packages/cli/dist/ui/progress.js +27 -0
  78. package/packages/cli/dist/ui/progress.js.map +1 -0
  79. package/packages/core/dist/commands/command-loader.d.ts +9 -0
  80. package/packages/core/dist/commands/command-loader.d.ts.map +1 -0
  81. package/packages/core/dist/commands/command-loader.js +32 -0
  82. package/packages/core/dist/commands/command-loader.js.map +1 -0
  83. package/packages/core/dist/commands/prompt-builder.d.ts +3 -0
  84. package/packages/core/dist/commands/prompt-builder.d.ts.map +1 -0
  85. package/packages/core/dist/commands/prompt-builder.js +9 -0
  86. package/packages/core/dist/commands/prompt-builder.js.map +1 -0
  87. package/packages/core/dist/config/config-loader.d.ts +13 -0
  88. package/packages/core/dist/config/config-loader.d.ts.map +1 -0
  89. package/packages/core/dist/config/config-loader.js +40 -0
  90. package/packages/core/dist/config/config-loader.js.map +1 -0
  91. package/packages/core/dist/engine/condition-evaluator.d.ts +7 -0
  92. package/packages/core/dist/engine/condition-evaluator.d.ts.map +1 -0
  93. package/packages/core/dist/engine/condition-evaluator.js +37 -0
  94. package/packages/core/dist/engine/condition-evaluator.js.map +1 -0
  95. package/packages/core/dist/engine/contract-validator.d.ts +2 -0
  96. package/packages/core/dist/engine/contract-validator.d.ts.map +1 -0
  97. package/packages/core/dist/engine/contract-validator.js +8 -0
  98. package/packages/core/dist/engine/contract-validator.js.map +1 -0
  99. package/packages/core/dist/engine/cycle-detector.d.ts +4 -0
  100. package/packages/core/dist/engine/cycle-detector.d.ts.map +1 -0
  101. package/packages/core/dist/engine/cycle-detector.js +39 -0
  102. package/packages/core/dist/engine/cycle-detector.js.map +1 -0
  103. package/packages/core/dist/engine/dag-executor.d.ts +58 -0
  104. package/packages/core/dist/engine/dag-executor.d.ts.map +1 -0
  105. package/packages/core/dist/engine/dag-executor.js +262 -0
  106. package/packages/core/dist/engine/dag-executor.js.map +1 -0
  107. package/packages/core/dist/engine/dag-parser.d.ts +3 -0
  108. package/packages/core/dist/engine/dag-parser.d.ts.map +1 -0
  109. package/packages/core/dist/engine/dag-parser.js +83 -0
  110. package/packages/core/dist/engine/dag-parser.js.map +1 -0
  111. package/packages/core/dist/engine/node-runner.d.ts +16 -0
  112. package/packages/core/dist/engine/node-runner.d.ts.map +1 -0
  113. package/packages/core/dist/engine/node-runner.js +54 -0
  114. package/packages/core/dist/engine/node-runner.js.map +1 -0
  115. package/packages/core/dist/engine/variable-resolver.d.ts +10 -0
  116. package/packages/core/dist/engine/variable-resolver.d.ts.map +1 -0
  117. package/packages/core/dist/engine/variable-resolver.js +25 -0
  118. package/packages/core/dist/engine/variable-resolver.js.map +1 -0
  119. package/packages/core/dist/index.d.ts +20 -0
  120. package/packages/core/dist/index.d.ts.map +1 -0
  121. package/packages/core/dist/index.js +55 -0
  122. package/packages/core/dist/index.js.map +1 -0
  123. package/packages/core/dist/isolation/artifact-store.d.ts +9 -0
  124. package/packages/core/dist/isolation/artifact-store.d.ts.map +1 -0
  125. package/packages/core/dist/isolation/artifact-store.js +30 -0
  126. package/packages/core/dist/isolation/artifact-store.js.map +1 -0
  127. package/packages/core/dist/isolation/workspace-manager.d.ts +36 -0
  128. package/packages/core/dist/isolation/workspace-manager.d.ts.map +1 -0
  129. package/packages/core/dist/isolation/workspace-manager.js +189 -0
  130. package/packages/core/dist/isolation/workspace-manager.js.map +1 -0
  131. package/packages/core/dist/providers/provider-registry.d.ts +8 -0
  132. package/packages/core/dist/providers/provider-registry.d.ts.map +1 -0
  133. package/packages/core/dist/providers/provider-registry.js +21 -0
  134. package/packages/core/dist/providers/provider-registry.js.map +1 -0
  135. package/packages/core/dist/schema/ajv-instance.d.ts +3 -0
  136. package/packages/core/dist/schema/ajv-instance.d.ts.map +1 -0
  137. package/packages/core/dist/schema/ajv-instance.js +12 -0
  138. package/packages/core/dist/schema/ajv-instance.js.map +1 -0
  139. package/packages/core/dist/schema/validators.d.ts +11 -0
  140. package/packages/core/dist/schema/validators.d.ts.map +1 -0
  141. package/packages/core/dist/schema/validators.js +68 -0
  142. package/packages/core/dist/schema/validators.js.map +1 -0
  143. package/packages/core/dist/schema/workflow-schema.d.ts +158 -0
  144. package/packages/core/dist/schema/workflow-schema.d.ts.map +1 -0
  145. package/packages/core/dist/schema/workflow-schema.js +84 -0
  146. package/packages/core/dist/schema/workflow-schema.js.map +1 -0
  147. package/packages/core/dist/skills/skill-loader.d.ts +9 -0
  148. package/packages/core/dist/skills/skill-loader.d.ts.map +1 -0
  149. package/packages/core/dist/skills/skill-loader.js +37 -0
  150. package/packages/core/dist/skills/skill-loader.js.map +1 -0
  151. package/packages/core/dist/store/event-log.d.ts +8 -0
  152. package/packages/core/dist/store/event-log.d.ts.map +1 -0
  153. package/packages/core/dist/store/event-log.js +30 -0
  154. package/packages/core/dist/store/event-log.js.map +1 -0
  155. package/packages/core/dist/store/run-store.d.ts +20 -0
  156. package/packages/core/dist/store/run-store.d.ts.map +1 -0
  157. package/packages/core/dist/store/run-store.js +113 -0
  158. package/packages/core/dist/store/run-store.js.map +1 -0
  159. package/packages/core/dist/store/types.d.ts +30 -0
  160. package/packages/core/dist/store/types.d.ts.map +1 -0
  161. package/packages/core/dist/store/types.js +3 -0
  162. package/packages/core/dist/store/types.js.map +1 -0
  163. package/packages/core/dist/types/dag.d.ts +36 -0
  164. package/packages/core/dist/types/dag.d.ts.map +1 -0
  165. package/packages/core/dist/types/dag.js +3 -0
  166. package/packages/core/dist/types/dag.js.map +1 -0
  167. package/packages/core/dist/types/index.d.ts +4 -0
  168. package/packages/core/dist/types/index.d.ts.map +1 -0
  169. package/packages/core/dist/types/index.js +20 -0
  170. package/packages/core/dist/types/index.js.map +1 -0
  171. package/packages/core/dist/types/provider.d.ts +19 -0
  172. package/packages/core/dist/types/provider.d.ts.map +1 -0
  173. package/packages/core/dist/types/provider.js +3 -0
  174. package/packages/core/dist/types/provider.js.map +1 -0
  175. package/packages/core/dist/types/workflow.d.ts +47 -0
  176. package/packages/core/dist/types/workflow.d.ts.map +1 -0
  177. package/packages/core/dist/types/workflow.js +3 -0
  178. package/packages/core/dist/types/workflow.js.map +1 -0
  179. package/skills/sdlc/architecture/SKILL.md +202 -0
  180. package/skills/sdlc/diagnose/SKILL.md +117 -0
  181. package/skills/sdlc/discovery/SKILL.md +182 -0
  182. package/skills/sdlc/feature-complete/SKILL.md +159 -0
  183. package/skills/sdlc/grill-me/SKILL.md +10 -0
  184. package/skills/sdlc/hotfix-analyze/SKILL.md +174 -0
  185. package/skills/sdlc/hotfix-green/SKILL.md +101 -0
  186. package/skills/sdlc/hotfix-red/SKILL.md +96 -0
  187. package/skills/sdlc/hotfix-review/SKILL.md +151 -0
  188. package/skills/sdlc/implement/SKILL.md +234 -0
  189. package/skills/sdlc/improve-codebase-architecture/SKILL.md +70 -0
  190. package/skills/sdlc/init/SKILL.md +195 -0
  191. package/skills/sdlc/install-deps.mjs +139 -0
  192. package/skills/sdlc/onboard-code/SKILL.md +193 -0
  193. package/skills/sdlc/onboard-docs/SKILL.md +121 -0
  194. package/skills/sdlc/pack.yaml +59 -0
  195. package/skills/sdlc/prd/SKILL.md +163 -0
  196. package/skills/sdlc/review/SKILL.md +229 -0
  197. package/skills/sdlc/sdlc-health/SKILL.md +165 -0
  198. package/skills/sdlc/setup/SKILL.md +162 -0
  199. package/skills/sdlc/ship/SKILL.md +279 -0
  200. package/skills/sdlc/srs/SKILL.md +135 -0
  201. package/skills/sdlc/tdd/SKILL.md +107 -0
  202. package/skills/sdlc/test-design/SKILL.md +126 -0
  203. package/skills/sdlc/workflows/hotfix-tdd.yaml +20 -0
  204. package/skills/sdlc/workflows/hotfix.yaml +34 -0
  205. package/skills/sdlc/workflows/master-sdlc.yaml +45 -0
  206. package/skills/sdlc/workflows/onboarding.yaml +9 -0
  207. package/skills/sdlc/workflows/sdlc-build.yaml +16 -0
  208. package/skills/sdlc/workflows/sdlc-design.yaml +12 -0
  209. package/skills/sdlc/workflows/sdlc-qa.yaml +17 -0
  210. package/skills/sdlc/workflows/sdlc-testcase.yaml +7 -0
  211. package/skills/sdlc/workflows/sdlc-thinking.yaml +12 -0
  212. package/skills/sdlc/zoom-out/SKILL.md +7 -0
  213. package/assets/templates/.claude/settings.json +0 -48
  214. package/assets/templates/.codex/instructions.md +0 -143
  215. package/assets/templates/CLAUDE.md +0 -161
  216. package/bin/vsaf.js +0 -141
  217. package/src/config.js +0 -167
  218. package/src/global.js +0 -261
  219. package/src/project.js +0 -190
  220. package/src/status.js +0 -91
  221. package/src/utils.js +0 -126
  222. package/src/workflow.js +0 -106
  223. package/tools/bmad/_config/agent-manifest.csv +0 -7
  224. package/tools/bmad/_config/bmad-help.csv +0 -44
  225. package/tools/bmad/_config/files-manifest.csv +0 -261
  226. package/tools/bmad/_config/manifest.yaml +0 -21
  227. package/tools/bmad/_config/skill-manifest.csv +0 -42
  228. package/tools/bmad/bmm/1-analysis/bmad-document-project/templates/srs-feature-template.md +0 -669
  229. package/tools/bmad/bmm/1-analysis/bmad-document-project/templates/srs-system-template.md +0 -430
  230. package/tools/bmad/bmm/config.yaml +0 -20
  231. package/tools/bmad/bmm/module-help.csv +0 -33
  232. package/tools/bmad/core/config.yaml +0 -9
  233. package/tools/bmad/core/module-help.csv +0 -12
  234. package/tools/skills/bmad-agent-architect/SKILL.md +0 -54
  235. package/tools/skills/bmad-agent-architect/bmad-skill-manifest.yaml +0 -11
  236. package/tools/skills/bmad-agent-dev/SKILL.md +0 -69
  237. package/tools/skills/bmad-agent-dev/bmad-skill-manifest.yaml +0 -11
  238. package/tools/skills/bmad-agent-pm/SKILL.md +0 -59
  239. package/tools/skills/bmad-agent-pm/bmad-skill-manifest.yaml +0 -11
  240. package/tools/skills/bmad-agent-tech-writer/SKILL.md +0 -57
  241. package/tools/skills/bmad-agent-tech-writer/bmad-skill-manifest.yaml +0 -11
  242. package/tools/skills/bmad-agent-tech-writer/explain-concept.md +0 -20
  243. package/tools/skills/bmad-agent-tech-writer/mermaid-gen.md +0 -20
  244. package/tools/skills/bmad-agent-tech-writer/validate-doc.md +0 -19
  245. package/tools/skills/bmad-agent-tech-writer/write-document.md +0 -20
  246. package/tools/skills/bmad-agent-ux-designer/SKILL.md +0 -55
  247. package/tools/skills/bmad-agent-ux-designer/bmad-skill-manifest.yaml +0 -11
  248. package/tools/skills/bmad-checkpoint-preview/SKILL.md +0 -29
  249. package/tools/skills/bmad-checkpoint-preview/generate-trail.md +0 -38
  250. package/tools/skills/bmad-checkpoint-preview/step-01-orientation.md +0 -105
  251. package/tools/skills/bmad-checkpoint-preview/step-02-walkthrough.md +0 -89
  252. package/tools/skills/bmad-checkpoint-preview/step-03-detail-pass.md +0 -106
  253. package/tools/skills/bmad-checkpoint-preview/step-04-testing.md +0 -74
  254. package/tools/skills/bmad-checkpoint-preview/step-05-wrapup.md +0 -24
  255. package/tools/skills/bmad-correct-course/SKILL.md +0 -6
  256. package/tools/skills/bmad-correct-course/checklist.md +0 -288
  257. package/tools/skills/bmad-correct-course/workflow.md +0 -267
  258. package/tools/skills/bmad-create-story/SKILL.md +0 -6
  259. package/tools/skills/bmad-create-story/checklist.md +0 -357
  260. package/tools/skills/bmad-create-story/discover-inputs.md +0 -88
  261. package/tools/skills/bmad-create-story/template.md +0 -49
  262. package/tools/skills/bmad-create-story/workflow.md +0 -380
  263. package/tools/skills/bmad-create-ux-design/SKILL.md +0 -6
  264. package/tools/skills/bmad-create-ux-design/steps/step-01-init.md +0 -135
  265. package/tools/skills/bmad-create-ux-design/steps/step-01b-continue.md +0 -127
  266. package/tools/skills/bmad-create-ux-design/steps/step-02-discovery.md +0 -190
  267. package/tools/skills/bmad-create-ux-design/steps/step-03-core-experience.md +0 -217
  268. package/tools/skills/bmad-create-ux-design/steps/step-04-emotional-response.md +0 -220
  269. package/tools/skills/bmad-create-ux-design/steps/step-05-inspiration.md +0 -235
  270. package/tools/skills/bmad-create-ux-design/steps/step-06-design-system.md +0 -253
  271. package/tools/skills/bmad-create-ux-design/steps/step-07-defining-experience.md +0 -255
  272. package/tools/skills/bmad-create-ux-design/steps/step-08-visual-foundation.md +0 -225
  273. package/tools/skills/bmad-create-ux-design/steps/step-09-design-directions.md +0 -225
  274. package/tools/skills/bmad-create-ux-design/steps/step-10-user-journeys.md +0 -242
  275. package/tools/skills/bmad-create-ux-design/steps/step-11-component-strategy.md +0 -249
  276. package/tools/skills/bmad-create-ux-design/steps/step-12-ux-patterns.md +0 -238
  277. package/tools/skills/bmad-create-ux-design/steps/step-13-responsive-accessibility.md +0 -265
  278. package/tools/skills/bmad-create-ux-design/steps/step-14-complete.md +0 -171
  279. package/tools/skills/bmad-create-ux-design/ux-design-template.md +0 -13
  280. package/tools/skills/bmad-create-ux-design/workflow.md +0 -35
  281. package/tools/skills/bmad-dev-story/SKILL.md +0 -6
  282. package/tools/skills/bmad-dev-story/checklist.md +0 -80
  283. package/tools/skills/bmad-dev-story/workflow.md +0 -450
  284. package/tools/skills/bmad-distillator/SKILL.md +0 -177
  285. package/tools/skills/bmad-distillator/agents/distillate-compressor.md +0 -116
  286. package/tools/skills/bmad-distillator/agents/round-trip-reconstructor.md +0 -68
  287. package/tools/skills/bmad-distillator/resources/compression-rules.md +0 -51
  288. package/tools/skills/bmad-distillator/resources/distillate-format-reference.md +0 -227
  289. package/tools/skills/bmad-distillator/resources/splitting-strategy.md +0 -78
  290. package/tools/skills/bmad-distillator/scripts/analyze_sources.py +0 -300
  291. package/tools/skills/bmad-distillator/scripts/tests/test_analyze_sources.py +0 -204
  292. package/tools/skills/bmad-document-project/SKILL.md +0 -6
  293. package/tools/skills/bmad-document-project/checklist.md +0 -245
  294. package/tools/skills/bmad-document-project/documentation-requirements.csv +0 -12
  295. package/tools/skills/bmad-document-project/instructions.md +0 -128
  296. package/tools/skills/bmad-document-project/templates/deep-dive-template.md +0 -345
  297. package/tools/skills/bmad-document-project/templates/index-template.md +0 -169
  298. package/tools/skills/bmad-document-project/templates/project-overview-template.md +0 -103
  299. package/tools/skills/bmad-document-project/templates/project-scan-report-schema.json +0 -160
  300. package/tools/skills/bmad-document-project/templates/source-tree-template.md +0 -135
  301. package/tools/skills/bmad-document-project/workflow.md +0 -25
  302. package/tools/skills/bmad-document-project/workflows/deep-dive-instructions.md +0 -299
  303. package/tools/skills/bmad-document-project/workflows/deep-dive-workflow.md +0 -34
  304. package/tools/skills/bmad-document-project/workflows/full-scan-instructions.md +0 -1107
  305. package/tools/skills/bmad-document-project/workflows/full-scan-workflow.md +0 -34
  306. package/tools/skills/bmad-edit-prd/SKILL.md +0 -6
  307. package/tools/skills/bmad-edit-prd/steps-e/step-e-01-discovery.md +0 -242
  308. package/tools/skills/bmad-edit-prd/steps-e/step-e-01b-legacy-conversion.md +0 -204
  309. package/tools/skills/bmad-edit-prd/steps-e/step-e-02-review.md +0 -245
  310. package/tools/skills/bmad-edit-prd/steps-e/step-e-03-edit.md +0 -250
  311. package/tools/skills/bmad-edit-prd/steps-e/step-e-04-complete.md +0 -163
  312. package/tools/skills/bmad-edit-prd/workflow.md +0 -62
  313. package/tools/skills/bmad-editorial-review-prose/SKILL.md +0 -86
  314. package/tools/skills/bmad-editorial-review-structure/SKILL.md +0 -179
  315. package/tools/skills/bmad-generate-project-context/SKILL.md +0 -6
  316. package/tools/skills/bmad-generate-project-context/project-context-template.md +0 -21
  317. package/tools/skills/bmad-generate-project-context/steps/step-01-discover.md +0 -186
  318. package/tools/skills/bmad-generate-project-context/steps/step-02-generate.md +0 -321
  319. package/tools/skills/bmad-generate-project-context/steps/step-03-complete.md +0 -278
  320. package/tools/skills/bmad-generate-project-context/workflow.md +0 -39
  321. package/tools/skills/bmad-help/SKILL.md +0 -75
  322. package/tools/skills/bmad-index-docs/SKILL.md +0 -66
  323. package/tools/skills/bmad-market-research/SKILL.md +0 -6
  324. package/tools/skills/bmad-market-research/research.template.md +0 -29
  325. package/tools/skills/bmad-market-research/steps/step-01-init.md +0 -184
  326. package/tools/skills/bmad-market-research/steps/step-02-customer-behavior.md +0 -239
  327. package/tools/skills/bmad-market-research/steps/step-03-customer-pain-points.md +0 -251
  328. package/tools/skills/bmad-market-research/steps/step-04-customer-decisions.md +0 -261
  329. package/tools/skills/bmad-market-research/steps/step-05-competitive-analysis.md +0 -173
  330. package/tools/skills/bmad-market-research/steps/step-06-research-completion.md +0 -478
  331. package/tools/skills/bmad-market-research/workflow.md +0 -51
  332. package/tools/skills/bmad-product-brief/SKILL.md +0 -82
  333. package/tools/skills/bmad-product-brief/agents/artifact-analyzer.md +0 -60
  334. package/tools/skills/bmad-product-brief/agents/opportunity-reviewer.md +0 -44
  335. package/tools/skills/bmad-product-brief/agents/skeptic-reviewer.md +0 -44
  336. package/tools/skills/bmad-product-brief/agents/web-researcher.md +0 -49
  337. package/tools/skills/bmad-product-brief/bmad-manifest.json +0 -17
  338. package/tools/skills/bmad-product-brief/prompts/contextual-discovery.md +0 -57
  339. package/tools/skills/bmad-product-brief/prompts/draft-and-review.md +0 -86
  340. package/tools/skills/bmad-product-brief/prompts/finalize.md +0 -75
  341. package/tools/skills/bmad-product-brief/prompts/guided-elicitation.md +0 -70
  342. package/tools/skills/bmad-product-brief/resources/brief-template.md +0 -60
  343. package/tools/skills/bmad-quick-dev/SKILL.md +0 -6
  344. package/tools/skills/bmad-quick-dev/compile-epic-context.md +0 -62
  345. package/tools/skills/bmad-quick-dev/spec-template.md +0 -88
  346. package/tools/skills/bmad-quick-dev/step-01-clarify-and-route.md +0 -91
  347. package/tools/skills/bmad-quick-dev/step-02-plan.md +0 -47
  348. package/tools/skills/bmad-quick-dev/step-03-implement.md +0 -39
  349. package/tools/skills/bmad-quick-dev/step-04-review.md +0 -49
  350. package/tools/skills/bmad-quick-dev/step-05-present.md +0 -63
  351. package/tools/skills/bmad-quick-dev/step-oneshot.md +0 -61
  352. package/tools/skills/bmad-quick-dev/workflow.md +0 -75
  353. package/tools/skills/bmad-retrospective/SKILL.md +0 -6
  354. package/tools/skills/bmad-retrospective/workflow.md +0 -1479
  355. package/tools/skills/bmad-shard-doc/SKILL.md +0 -105
  356. package/tools/skills/bmad-sprint-planning/SKILL.md +0 -6
  357. package/tools/skills/bmad-sprint-planning/checklist.md +0 -33
  358. package/tools/skills/bmad-sprint-planning/sprint-status-template.yaml +0 -56
  359. package/tools/skills/bmad-sprint-planning/workflow.md +0 -263
  360. package/tools/skills/bmad-sprint-status/SKILL.md +0 -6
  361. package/tools/skills/bmad-sprint-status/workflow.md +0 -261
  362. package/tools/skills/bmad-technical-research/SKILL.md +0 -6
  363. package/tools/skills/bmad-technical-research/research.template.md +0 -29
  364. package/tools/skills/bmad-technical-research/technical-steps/step-01-init.md +0 -137
  365. package/tools/skills/bmad-technical-research/technical-steps/step-02-technical-overview.md +0 -239
  366. package/tools/skills/bmad-technical-research/technical-steps/step-03-integration-patterns.md +0 -248
  367. package/tools/skills/bmad-technical-research/technical-steps/step-04-architectural-patterns.md +0 -202
  368. package/tools/skills/bmad-technical-research/technical-steps/step-05-implementation-research.md +0 -233
  369. package/tools/skills/bmad-technical-research/technical-steps/step-06-research-synthesis.md +0 -487
  370. package/tools/skills/bmad-technical-research/workflow.md +0 -52
  371. package/tools/skills/bmad-validate-prd/data/prd-purpose.md +0 -197
  372. package/tools/skills/gitnexus/gitnexus-cli/SKILL.md +0 -82
  373. package/tools/skills/gitnexus/gitnexus-debugging/SKILL.md +0 -89
  374. package/tools/skills/gitnexus/gitnexus-exploring/SKILL.md +0 -78
  375. package/tools/skills/gitnexus/gitnexus-guide/SKILL.md +0 -64
  376. package/tools/skills/gitnexus/gitnexus-impact-analysis/SKILL.md +0 -97
  377. package/tools/skills/gitnexus/gitnexus-refactoring/SKILL.md +0 -121
  378. package/tools/skills/vds-scripts-skill/.openskills.json +0 -6
  379. package/tools/skills/vds-scripts-skill/QUALITY.md +0 -44
  380. package/tools/skills/vds-scripts-skill/SKILL.md +0 -127
  381. package/tools/skills/vds-scripts-skill/references/audit-commands.md +0 -171
  382. package/tools/skills/vds-scripts-skill/references/capability-index.md +0 -34
  383. package/tools/skills/vds-scripts-skill/references/development-commands.md +0 -12
  384. package/tools/skills/vds-scripts-skill/references/google-sheets.md +0 -71
  385. package/tools/skills/vds-scripts-skill/references/integration-commands.md +0 -17
  386. package/tools/skills/vds-scripts-skill/references/platform-bootstrap.md +0 -31
  387. package/tools/skills/vds-scripts-skill/references/specialist-routing.md +0 -14
  388. package/tools/skills/vds-scripts-skill/references/validation-commands.md +0 -15
  389. package/tools/skills/vsaf-build/SKILL.md +0 -146
  390. package/tools/skills/vsaf-discover/SKILL.md +0 -92
  391. package/tools/skills/vsaf-doc/SKILL.md +0 -22
  392. package/tools/skills/vsaf-doc-prd/SKILL.md +0 -58
  393. package/tools/skills/vsaf-doc-srs/SKILL.md +0 -170
  394. package/tools/skills/vsaf-docs/SKILL.md +0 -81
  395. package/tools/skills/vsaf-onboard/SKILL.md +0 -81
  396. package/tools/skills/vsaf-plan/SKILL.md +0 -101
  397. package/tools/skills/vsaf-push-prd/SKILL.md +0 -154
  398. package/tools/skills/vsaf-push-srs/SKILL.md +0 -166
  399. package/tools/skills/vsaf-retro/SKILL.md +0 -94
  400. package/tools/skills/vsaf-ship/SKILL.md +0 -142
  401. package/tools/skills/vsaf-sprint/SKILL.md +0 -111
  402. package/tools/skills/vsaf-test/SKILL.md +0 -207
  403. package/tools/vds-scripts/.claude/phase7-CLOSURE.md +0 -100
  404. package/tools/vds-scripts/.dockerignore +0 -62
  405. package/tools/vds-scripts/.github/ISSUE_TEMPLATE/cli-change.md +0 -92
  406. package/tools/vds-scripts/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +0 -48
  407. package/tools/vds-scripts/.github/workflows/chaos-smoke.yml +0 -266
  408. package/tools/vds-scripts/.github/workflows/confluence-sync.yml +0 -44
  409. package/tools/vds-scripts/.github/workflows/docs-confluence-evidence.yml +0 -170
  410. package/tools/vds-scripts/.github/workflows/docs-quality.yml +0 -59
  411. package/tools/vds-scripts/.github/workflows/lint-and-test.yml +0 -90
  412. package/tools/vds-scripts/.github/workflows/scheduler-load-smoke.yml +0 -104
  413. package/tools/vds-scripts/.github/workflows/telegram-bridge-ci.yml +0 -131
  414. package/tools/vds-scripts/.graphifyignore +0 -29
  415. package/tools/vds-scripts/.importlinter +0 -86
  416. package/tools/vds-scripts/.mcp.json +0 -11
  417. package/tools/vds-scripts/.pre-commit-config.yaml +0 -62
  418. package/tools/vds-scripts/.ruffignore +0 -3
  419. package/tools/vds-scripts/.secrets.baseline +0 -133
  420. package/tools/vds-scripts/AGENTS.md +0 -250
  421. package/tools/vds-scripts/AGENTS.vi.md +0 -92
  422. package/tools/vds-scripts/Makefile +0 -97
  423. package/tools/vds-scripts/README.md +0 -103
  424. package/tools/vds-scripts/bitbucket_manifest_mapping.toml +0 -34
  425. package/tools/vds-scripts/bitbucket_orchestrator/ARCHITECTURE_ANALYSIS.md +0 -258
  426. package/tools/vds-scripts/bitbucket_orchestrator/BITBUCKET_API_PRACTICES.md +0 -393
  427. package/tools/vds-scripts/bitbucket_orchestrator/EVALUATION_REPORT.md +0 -61
  428. package/tools/vds-scripts/bitbucket_orchestrator/FEATURES.md +0 -908
  429. package/tools/vds-scripts/bitbucket_orchestrator/README.md +0 -817
  430. package/tools/vds-scripts/bitbucket_orchestrator/pyproject.toml +0 -49
  431. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/__init__.py +0 -50
  432. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/async_client.py +0 -641
  433. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/cli.py +0 -2271
  434. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/client.py +0 -2693
  435. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/config.py +0 -186
  436. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/errors.py +0 -34
  437. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/factory.py +0 -185
  438. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/parsers.py +0 -113
  439. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/protocols.py +0 -244
  440. package/tools/vds-scripts/bitbucket_orchestrator/src/vds_bitbucket_orchestrator/repo_ops.py +0 -325
  441. package/tools/vds-scripts/bitbucket_orchestrator/tests/__init__.py +0 -8
  442. package/tools/vds-scripts/bitbucket_orchestrator/tests/conftest.py +0 -65
  443. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_advanced_search.py +0 -155
  444. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_async_client.py +0 -505
  445. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_branch_permissions.py +0 -172
  446. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_cli.py +0 -113
  447. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_cli_archive.py +0 -122
  448. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_cli_clone.py +0 -131
  449. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client.py +0 -207
  450. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_archive.py +0 -73
  451. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_branch_conditions.py +0 -101
  452. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_code_advanced.py +0 -180
  453. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_code_file.py +0 -33
  454. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_deployment_environments.py +0 -193
  455. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_issues.py +0 -163
  456. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_pipelines_advanced.py +0 -171
  457. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_pr_blockers.py +0 -118
  458. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_client_repository_variables.py +0 -155
  459. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code.py +0 -98
  460. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code_advanced.py +0 -279
  461. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_code_insights.py +0 -334
  462. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_conditions.py +0 -149
  463. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_config.py +0 -297
  464. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_deployment_env.py +0 -352
  465. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_errors.py +0 -67
  466. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_factory.py +0 -352
  467. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_fork_operations.py +0 -203
  468. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_issue_cli.py +0 -262
  469. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_pipeline_advanced.py +0 -265
  470. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_pr_blocker.py +0 -206
  471. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_protocols.py +0 -336
  472. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_ops_archive.py +0 -169
  473. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_ops_clone.py +0 -115
  474. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_ops_parsing.py +0 -149
  475. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_settings.py +0 -336
  476. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_repo_variables.py +0 -266
  477. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_webhooks.py +0 -188
  478. package/tools/vds-scripts/bitbucket_orchestrator/tests/test_workspace.py +0 -234
  479. package/tools/vds-scripts/bitbucket_orchestrator/tests/unit/__init__.py +0 -0
  480. package/tools/vds-scripts/bitbucket_orchestrator/tests/unit/test_parsers.py +0 -254
  481. package/tools/vds-scripts/code/code_evidence_pack.json +0 -435
  482. package/tools/vds-scripts/confluence_orchestrator/Dockerfile +0 -19
  483. package/tools/vds-scripts/confluence_orchestrator/README.md +0 -479
  484. package/tools/vds-scripts/confluence_orchestrator/SYNC_SCRIPTS.md +0 -127
  485. package/tools/vds-scripts/confluence_orchestrator/SYNC_STANDARDIZATION.md +0 -108
  486. package/tools/vds-scripts/confluence_orchestrator/pyproject.toml +0 -50
  487. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/__init__.py +0 -56
  488. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/async_client.py +0 -100
  489. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/cli.py +0 -3160
  490. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/config.py +0 -215
  491. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/content.py +0 -368
  492. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/content_v2.py +0 -144
  493. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/crawl_tree.py +0 -1833
  494. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/errors.py +0 -44
  495. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/eventing.py +0 -111
  496. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/http.py +0 -1850
  497. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/orchestration.py +0 -166
  498. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/protocols.py +0 -61
  499. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/reporting.py +0 -78
  500. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/tree.py +0 -122
  501. package/tools/vds-scripts/confluence_orchestrator/src/confluence_orchestrator/tree_copier.py +0 -431
  502. package/tools/vds-scripts/confluence_orchestrator/sync_pdfs_from_markdown.py +0 -203
  503. package/tools/vds-scripts/confluence_orchestrator/sync_pdfs_to_confluence.py +0 -299
  504. package/tools/vds-scripts/confluence_orchestrator/sync_png_attachments.py +0 -299
  505. package/tools/vds-scripts/confluence_orchestrator/tests/conftest.py +0 -46
  506. package/tools/vds-scripts/confluence_orchestrator/tests/test_advanced_content.py +0 -252
  507. package/tools/vds-scripts/confluence_orchestrator/tests/test_advanced_search.py +0 -193
  508. package/tools/vds-scripts/confluence_orchestrator/tests/test_async_client.py +0 -104
  509. package/tools/vds-scripts/confluence_orchestrator/tests/test_cache_management.py +0 -246
  510. package/tools/vds-scripts/confluence_orchestrator/tests/test_cli.py +0 -716
  511. package/tools/vds-scripts/confluence_orchestrator/tests/test_config.py +0 -130
  512. package/tools/vds-scripts/confluence_orchestrator/tests/test_content.py +0 -192
  513. package/tools/vds-scripts/confluence_orchestrator/tests/test_content_flags.py +0 -27
  514. package/tools/vds-scripts/confluence_orchestrator/tests/test_content_labels.py +0 -94
  515. package/tools/vds-scripts/confluence_orchestrator/tests/test_crawl_tree.py +0 -2252
  516. package/tools/vds-scripts/confluence_orchestrator/tests/test_degraded_write_safety.py +0 -176
  517. package/tools/vds-scripts/confluence_orchestrator/tests/test_draft_management.py +0 -225
  518. package/tools/vds-scripts/confluence_orchestrator/tests/test_errors.py +0 -75
  519. package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing.py +0 -73
  520. package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_chaos.py +0 -37
  521. package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_rate_limit.py +0 -44
  522. package/tools/vds-scripts/confluence_orchestrator/tests/test_eventing_timeout.py +0 -49
  523. package/tools/vds-scripts/confluence_orchestrator/tests/test_export.py +0 -231
  524. package/tools/vds-scripts/confluence_orchestrator/tests/test_history.py +0 -217
  525. package/tools/vds-scripts/confluence_orchestrator/tests/test_http.py +0 -375
  526. package/tools/vds-scripts/confluence_orchestrator/tests/test_orchestration.py +0 -93
  527. package/tools/vds-scripts/confluence_orchestrator/tests/test_protocols.py +0 -23
  528. package/tools/vds-scripts/confluence_orchestrator/tests/test_reporting.py +0 -24
  529. package/tools/vds-scripts/confluence_orchestrator/tests/test_search_cql.py +0 -36
  530. package/tools/vds-scripts/confluence_orchestrator/tests/test_space_management.py +0 -236
  531. package/tools/vds-scripts/confluence_orchestrator/tests/test_space_permissions.py +0 -384
  532. package/tools/vds-scripts/confluence_orchestrator/tests/test_tree_copier.py +0 -644
  533. package/tools/vds-scripts/confluence_orchestrator/tests/test_tree_copier_remap.py +0 -289
  534. package/tools/vds-scripts/confluence_orchestrator/tests/test_user_group_management.py +0 -387
  535. package/tools/vds-scripts/db_query_orchestrator/Dockerfile +0 -64
  536. package/tools/vds-scripts/db_query_orchestrator/README.md +0 -105
  537. package/tools/vds-scripts/db_query_orchestrator/pyproject.toml +0 -67
  538. package/tools/vds-scripts/db_query_orchestrator/src/vds_db_query_orchestrator/__init__.py +0 -5
  539. package/tools/vds-scripts/db_query_orchestrator/src/vds_db_query_orchestrator/cli.py +0 -545
  540. package/tools/vds-scripts/db_query_orchestrator/tests/__init__.py +0 -0
  541. package/tools/vds-scripts/db_query_orchestrator/tests/test_cli.py +0 -171
  542. package/tools/vds-scripts/docker/.dockerignore +0 -38
  543. package/tools/vds-scripts/docker/ADR.md +0 -392
  544. package/tools/vds-scripts/docker/Dockerfile +0 -68
  545. package/tools/vds-scripts/docker/MIGRATION.md +0 -453
  546. package/tools/vds-scripts/docker/README.md +0 -347
  547. package/tools/vds-scripts/docker/ROLLBACK.md +0 -596
  548. package/tools/vds-scripts/docker/docker-compose.cli.yml +0 -90
  549. package/tools/vds-scripts/docker/docker-compose.infra.yml +0 -276
  550. package/tools/vds-scripts/docker/docker-compose.services.yml +0 -386
  551. package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -143
  552. package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +0 -71
  553. package/tools/vds-scripts/docker/infrastructure/pgbouncer/userlist.txt +0 -50
  554. package/tools/vds-scripts/docker/infrastructure/pgbouncer/userlist.txt.template +0 -36
  555. package/tools/vds-scripts/docs/.confluence-evidence/.gitkeep +0 -0
  556. package/tools/vds-scripts/docs/.confluence-evidence/PREFLIGHT.md +0 -132
  557. package/tools/vds-scripts/docs/.confluence-evidence/README.md +0 -84
  558. package/tools/vds-scripts/docs/.confluence.yaml +0 -157
  559. package/tools/vds-scripts/docs/.freshness.yaml +0 -54
  560. package/tools/vds-scripts/docs/README.md +0 -235
  561. package/tools/vds-scripts/docs/agents/README.md +0 -33
  562. package/tools/vds-scripts/docs/agents/explanation/data-flow.md +0 -132
  563. package/tools/vds-scripts/docs/agents/explanation/development-roadmap.md +0 -49
  564. package/tools/vds-scripts/docs/agents/explanation/features-overview.md +0 -62
  565. package/tools/vds-scripts/docs/agents/explanation/index.md +0 -36
  566. package/tools/vds-scripts/docs/agents/explanation/runtime-verification-and-gap-reporting.md +0 -127
  567. package/tools/vds-scripts/docs/agents/explanation/system-architecture.md +0 -139
  568. package/tools/vds-scripts/docs/agents/explanation/whats-new.md +0 -75
  569. package/tools/vds-scripts/docs/agents/explanation/who-ecosystem-introduction.md +0 -65
  570. package/tools/vds-scripts/docs/agents/explanation/who-ecosystem-model.md +0 -41
  571. package/tools/vds-scripts/docs/agents/how-to/02-using-vds-ai-memory.md +0 -98
  572. package/tools/vds-scripts/docs/agents/how-to/03-memory-cross-agent.md +0 -241
  573. package/tools/vds-scripts/docs/agents/how-to/04-using-progress-reports.md +0 -240
  574. package/tools/vds-scripts/docs/agents/how-to/08-semantic-search.md +0 -46
  575. package/tools/vds-scripts/docs/agents/how-to/apply-phase3-migration.md +0 -148
  576. package/tools/vds-scripts/docs/agents/how-to/choose-the-right-command-or-skill.md +0 -34
  577. package/tools/vds-scripts/docs/agents/how-to/contribute-new-orchestrator.md +0 -149
  578. package/tools/vds-scripts/docs/agents/how-to/decision-tree.md +0 -63
  579. package/tools/vds-scripts/docs/agents/how-to/first-audit-run.md +0 -83
  580. package/tools/vds-scripts/docs/agents/how-to/index.md +0 -49
  581. package/tools/vds-scripts/docs/agents/how-to/install-and-bootstrap-who-scripts-and-skills.md +0 -314
  582. package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/analytics-pipeline-workflow.md +0 -165
  583. package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/code-quality-gate-workflow.md +0 -138
  584. package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/confluence-bitbucket-sync-workflow.md +0 -130
  585. package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/document-delivery-workflow.md +0 -142
  586. package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/memory-progress-workflow.md +0 -140
  587. package/tools/vds-scripts/docs/agents/how-to/orchestrator-workflows/research-spec-audit-workflow.md +0 -135
  588. package/tools/vds-scripts/docs/agents/how-to/phase131-all-project-preparation.md +0 -211
  589. package/tools/vds-scripts/docs/agents/how-to/phase131-bounded-parallel-analysis.md +0 -123
  590. package/tools/vds-scripts/docs/agents/how-to/phase131-confluence-upload-recovery.md +0 -204
  591. package/tools/vds-scripts/docs/agents/how-to/phase132-department-preparation.md +0 -144
  592. package/tools/vds-scripts/docs/agents/how-to/run-ecosystem-daily-report.md +0 -213
  593. package/tools/vds-scripts/docs/agents/how-to/tips-and-tricks.md +0 -138
  594. package/tools/vds-scripts/docs/agents/how-to/troubleshooting-guide.md +0 -221
  595. package/tools/vds-scripts/docs/agents/reference/agent-operational-contract.md +0 -162
  596. package/tools/vds-scripts/docs/agents/reference/alignment-phase179-report.md +0 -144
  597. package/tools/vds-scripts/docs/agents/reference/audit-triage-playbook.md +0 -256
  598. package/tools/vds-scripts/docs/agents/reference/backup-restore.md +0 -132
  599. package/tools/vds-scripts/docs/agents/reference/bitbucket-orchestrator.md +0 -56
  600. package/tools/vds-scripts/docs/agents/reference/brd-orchestrator.md +0 -52
  601. package/tools/vds-scripts/docs/agents/reference/capability-coverage-review.md +0 -51
  602. package/tools/vds-scripts/docs/agents/reference/ci-workflows.md +0 -98
  603. package/tools/vds-scripts/docs/agents/reference/circular-dependency-orchestrator.md +0 -55
  604. package/tools/vds-scripts/docs/agents/reference/cli-commands.md +0 -583
  605. package/tools/vds-scripts/docs/agents/reference/cli-development-standards.md +0 -41
  606. package/tools/vds-scripts/docs/agents/reference/cli-help-matrix.md +0 -84
  607. package/tools/vds-scripts/docs/agents/reference/common-errors.md +0 -126
  608. package/tools/vds-scripts/docs/agents/reference/configuration-reference.md +0 -128
  609. package/tools/vds-scripts/docs/agents/reference/confluence-orchestrator.md +0 -56
  610. package/tools/vds-scripts/docs/agents/reference/confluence-sync-target.md +0 -111
  611. package/tools/vds-scripts/docs/agents/reference/confluence-sync.md +0 -46
  612. package/tools/vds-scripts/docs/agents/reference/db-query-orchestrator.md +0 -93
  613. package/tools/vds-scripts/docs/agents/reference/diagrams-orchestrator.md +0 -52
  614. package/tools/vds-scripts/docs/agents/reference/ecosystem-daily-report.md +0 -229
  615. package/tools/vds-scripts/docs/agents/reference/elastic-orchestrator.md +0 -57
  616. package/tools/vds-scripts/docs/agents/reference/env-git-helper.md +0 -216
  617. package/tools/vds-scripts/docs/agents/reference/evolution-orchestrator.md +0 -113
  618. package/tools/vds-scripts/docs/agents/reference/excel-orchestrator.md +0 -51
  619. package/tools/vds-scripts/docs/agents/reference/git-orchestrator.md +0 -62
  620. package/tools/vds-scripts/docs/agents/reference/google-sheets-orchestrator.md +0 -51
  621. package/tools/vds-scripts/docs/agents/reference/grafana-orchestrator.md +0 -52
  622. package/tools/vds-scripts/docs/agents/reference/hexagonal-orchestrator.md +0 -64
  623. package/tools/vds-scripts/docs/agents/reference/index.md +0 -36
  624. package/tools/vds-scripts/docs/agents/reference/infrastructure-v2.15.md +0 -67
  625. package/tools/vds-scripts/docs/agents/reference/intellij-orchestrator.md +0 -50
  626. package/tools/vds-scripts/docs/agents/reference/jira-orchestrator.md +0 -60
  627. package/tools/vds-scripts/docs/agents/reference/links-orchestrator.md +0 -57
  628. package/tools/vds-scripts/docs/agents/reference/lint-cli.md +0 -99
  629. package/tools/vds-scripts/docs/agents/reference/lsp-orchestrator.md +0 -51
  630. package/tools/vds-scripts/docs/agents/reference/markdown-orchestrator.md +0 -53
  631. package/tools/vds-scripts/docs/agents/reference/mcp-orchestrator.md +0 -88
  632. package/tools/vds-scripts/docs/agents/reference/memory-orchestrator.md +0 -53
  633. package/tools/vds-scripts/docs/agents/reference/metabase-orchestrator.md +0 -51
  634. package/tools/vds-scripts/docs/agents/reference/migration-playbook.md +0 -71
  635. package/tools/vds-scripts/docs/agents/reference/multi-agent-orchestrator.md +0 -52
  636. package/tools/vds-scripts/docs/agents/reference/openapi-orchestrator.md +0 -57
  637. package/tools/vds-scripts/docs/agents/reference/orchestrator-architecture.md +0 -194
  638. package/tools/vds-scripts/docs/agents/reference/orchestrator-comparison-matrix.md +0 -79
  639. package/tools/vds-scripts/docs/agents/reference/orchestrator-index.md +0 -73
  640. package/tools/vds-scripts/docs/agents/reference/pdf-orchestrator.md +0 -57
  641. package/tools/vds-scripts/docs/agents/reference/portable-paths-and-config.md +0 -0
  642. package/tools/vds-scripts/docs/agents/reference/portable-paths-validation-matrix.md +0 -129
  643. package/tools/vds-scripts/docs/agents/reference/progress-orchestrator.md +0 -51
  644. package/tools/vds-scripts/docs/agents/reference/progress-report-cli.md +0 -215
  645. package/tools/vds-scripts/docs/agents/reference/public-interface-orchestrator.md +0 -73
  646. package/tools/vds-scripts/docs/agents/reference/research-orchestrator.md +0 -53
  647. package/tools/vds-scripts/docs/agents/reference/schema-orchestrator.md +0 -57
  648. package/tools/vds-scripts/docs/agents/reference/search-tools.md +0 -34
  649. package/tools/vds-scripts/docs/agents/reference/skills-commands.md +0 -256
  650. package/tools/vds-scripts/docs/agents/reference/skills-reference.md +0 -32
  651. package/tools/vds-scripts/docs/agents/reference/sonarqube-orchestrator.md +0 -62
  652. package/tools/vds-scripts/docs/agents/reference/spec-orchestrator.md +0 -56
  653. package/tools/vds-scripts/docs/agents/reference/structure-orchestrator.md +0 -69
  654. package/tools/vds-scripts/docs/agents/reference/system-requirements.md +0 -76
  655. package/tools/vds-scripts/docs/agents/reference/tasks-orchestrator.md +0 -53
  656. package/tools/vds-scripts/docs/agents/reference/validation-and-sync-notes.md +0 -54
  657. package/tools/vds-scripts/docs/agents/reference/vds-ai-memory-api.md +0 -51
  658. package/tools/vds-scripts/docs/agents/reference/vds-cli-reference.md +0 -34
  659. package/tools/vds-scripts/docs/agents/reference/who-capability-inventory.md +0 -96
  660. package/tools/vds-scripts/docs/agents/reference/who-capability-routing-matrix.md +0 -14
  661. package/tools/vds-scripts/docs/agents/tutorials/feature-progression-guide.md +0 -112
  662. package/tools/vds-scripts/docs/agents/tutorials/index.md +0 -36
  663. package/tools/vds-scripts/docs/agents/tutorials/quick-start.md +0 -50
  664. package/tools/vds-scripts/docs/agents/tutorials/who-skills-and-scripts-onboarding.md +0 -47
  665. package/tools/vds-scripts/docs/agents/tutorials/zero-to-productive-developer.md +0 -339
  666. package/tools/vds-scripts/docs/confluence/IMPLEMENTATION-SUMMARY.md +0 -78
  667. package/tools/vds-scripts/docs/confluence/SYNC-GUIDE.md +0 -47
  668. package/tools/vds-scripts/docs/deployment/offline-docker-image-load.md +0 -59
  669. package/tools/vds-scripts/docs/evolution-auto-run-rollout.md +0 -325
  670. package/tools/vds-scripts/docs/evolution-loop-deep-integration.md +0 -496
  671. package/tools/vds-scripts/docs/evolution-loop-integration-guide.md +0 -359
  672. package/tools/vds-scripts/docs/openspace-schema-snapshot.md +0 -73
  673. package/tools/vds-scripts/docs/operations/sla-mttr-policy.md +0 -44
  674. package/tools/vds-scripts/docs/p0-closure-evidence/SUMMARY.md +0 -58
  675. package/tools/vds-scripts/docs/p4-closure-evidence/.gitkeep +0 -0
  676. package/tools/vds-scripts/docs/p4-closure-evidence/smoke-20260427T024137Z-b95b586b.json +0 -15
  677. package/tools/vds-scripts/docs/p8-preflight-evidence/alembic-and-runtime-advisory-locks.md +0 -45
  678. package/tools/vds-scripts/docs/p8-preflight-evidence/dbos-listen-notify.md +0 -54
  679. package/tools/vds-scripts/docs/p8-preflight-evidence/pgbouncer-search-path-empirical.md +0 -110
  680. package/tools/vds-scripts/docs/p8-preflight-evidence/pgvector-set-local-audit.md +0 -51
  681. package/tools/vds-scripts/docs/p8-preflight-evidence/topology-decision-session-mode.md +0 -57
  682. package/tools/vds-scripts/docs/phases/CHANGELOG.md +0 -103
  683. package/tools/vds-scripts/docs/phases/PHASE_125_COMPLETION_AND_MERGE.md +0 -212
  684. package/tools/vds-scripts/docs/phases/phase125/IMPLEMENTATION_REPORT.md +0 -227
  685. package/tools/vds-scripts/docs/phases/phase125/TSK-125.10-11-implementation-summary.md +0 -196
  686. package/tools/vds-scripts/docs/phases/phase125/profile-patch-ollama-local-anthropic.md +0 -122
  687. package/tools/vds-scripts/docs/phases/phase125_completion_summary.md +0 -369
  688. package/tools/vds-scripts/docs/phases/phase125_llm_analysis_skill.md +0 -164
  689. package/tools/vds-scripts/docs/phases/phase125_merge_complete.md +0 -147
  690. package/tools/vds-scripts/docs/phases/phase125_skill_runtime_closure_20260321.md +0 -91
  691. package/tools/vds-scripts/docs/phases/phase2-portable-paths/closure-handoff-summary-2026-03-23.md +0 -290
  692. package/tools/vds-scripts/docs/phases/phase2-portable-paths/remaining-risk-register-2026-03-25.md +0 -143
  693. package/tools/vds-scripts/docs/phases/phase2-portable-paths/verification-evidence-2026-03-23.md +0 -135
  694. package/tools/vds-scripts/docs/v0-sunset-known-issues.md +0 -88
  695. package/tools/vds-scripts/docs/vi/TRANSLATION-BACKLOG.md +0 -72
  696. package/tools/vds-scripts/docs/vi/agents/README.md +0 -41
  697. package/tools/vds-scripts/docs/vi/agents/explanation/features-overview.md +0 -29
  698. package/tools/vds-scripts/docs/vi/agents/explanation/index.md +0 -14
  699. package/tools/vds-scripts/docs/vi/agents/explanation/runtime-verification-and-gap-reporting.md +0 -129
  700. package/tools/vds-scripts/docs/vi/agents/explanation/whats-new.md +0 -37
  701. package/tools/vds-scripts/docs/vi/agents/explanation/who-ecosystem-introduction.md +0 -21
  702. package/tools/vds-scripts/docs/vi/agents/explanation/who-ecosystem-model.md +0 -36
  703. package/tools/vds-scripts/docs/vi/agents/how-to/02-using-vds-ai-memory.md +0 -100
  704. package/tools/vds-scripts/docs/vi/agents/how-to/03-memory-cross-agent.md +0 -243
  705. package/tools/vds-scripts/docs/vi/agents/how-to/04-using-progress-reports.md +0 -242
  706. package/tools/vds-scripts/docs/vi/agents/how-to/08-semantic-search.md +0 -16
  707. package/tools/vds-scripts/docs/vi/agents/how-to/choose-the-right-command-or-skill.md +0 -36
  708. package/tools/vds-scripts/docs/vi/agents/how-to/decision-tree.md +0 -77
  709. package/tools/vds-scripts/docs/vi/agents/how-to/first-audit-run.md +0 -85
  710. package/tools/vds-scripts/docs/vi/agents/how-to/index.md +0 -21
  711. package/tools/vds-scripts/docs/vi/agents/how-to/install-and-bootstrap-who-scripts-and-skills.md +0 -156
  712. package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/analytics-pipeline-workflow.md +0 -174
  713. package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/code-quality-gate-workflow.md +0 -147
  714. package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/confluence-bitbucket-sync-workflow.md +0 -139
  715. package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/document-delivery-workflow.md +0 -151
  716. package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/memory-progress-workflow.md +0 -149
  717. package/tools/vds-scripts/docs/vi/agents/how-to/orchestrator-workflows/research-spec-audit-workflow.md +0 -144
  718. package/tools/vds-scripts/docs/vi/agents/how-to/phase131-all-project-preparation.md +0 -213
  719. package/tools/vds-scripts/docs/vi/agents/how-to/phase131-bounded-parallel-analysis.md +0 -125
  720. package/tools/vds-scripts/docs/vi/agents/how-to/phase131-confluence-upload-recovery.md +0 -206
  721. package/tools/vds-scripts/docs/vi/agents/how-to/phase132-department-preparation.md +0 -146
  722. package/tools/vds-scripts/docs/vi/agents/how-to/tips-and-tricks.md +0 -34
  723. package/tools/vds-scripts/docs/vi/agents/how-to/troubleshooting-guide.md +0 -36
  724. package/tools/vds-scripts/docs/vi/agents/reference/agent-operational-contract.md +0 -98
  725. package/tools/vds-scripts/docs/vi/agents/reference/audit-triage-playbook.md +0 -258
  726. package/tools/vds-scripts/docs/vi/agents/reference/bitbucket-orchestrator.md +0 -30
  727. package/tools/vds-scripts/docs/vi/agents/reference/brd-orchestrator.md +0 -29
  728. package/tools/vds-scripts/docs/vi/agents/reference/capability-coverage-review.md +0 -46
  729. package/tools/vds-scripts/docs/vi/agents/reference/circular-dependency-orchestrator.md +0 -29
  730. package/tools/vds-scripts/docs/vi/agents/reference/cli-commands.md +0 -409
  731. package/tools/vds-scripts/docs/vi/agents/reference/cli-development-standards.md +0 -19
  732. package/tools/vds-scripts/docs/vi/agents/reference/cli-help-matrix.md +0 -71
  733. package/tools/vds-scripts/docs/vi/agents/reference/common-errors.md +0 -133
  734. package/tools/vds-scripts/docs/vi/agents/reference/configuration-reference.md +0 -25
  735. package/tools/vds-scripts/docs/vi/agents/reference/confluence-orchestrator.md +0 -30
  736. package/tools/vds-scripts/docs/vi/agents/reference/db-query-orchestrator.md +0 -34
  737. package/tools/vds-scripts/docs/vi/agents/reference/diagrams-orchestrator.md +0 -31
  738. package/tools/vds-scripts/docs/vi/agents/reference/elastic-orchestrator.md +0 -30
  739. package/tools/vds-scripts/docs/vi/agents/reference/evolution-orchestrator.md +0 -31
  740. package/tools/vds-scripts/docs/vi/agents/reference/excel-orchestrator.md +0 -60
  741. package/tools/vds-scripts/docs/vi/agents/reference/git-orchestrator.md +0 -31
  742. package/tools/vds-scripts/docs/vi/agents/reference/google-sheets-orchestrator.md +0 -60
  743. package/tools/vds-scripts/docs/vi/agents/reference/grafana-orchestrator.md +0 -30
  744. package/tools/vds-scripts/docs/vi/agents/reference/hexagonal-orchestrator.md +0 -73
  745. package/tools/vds-scripts/docs/vi/agents/reference/index.md +0 -25
  746. package/tools/vds-scripts/docs/vi/agents/reference/intellij-orchestrator.md +0 -59
  747. package/tools/vds-scripts/docs/vi/agents/reference/jira-orchestrator.md +0 -32
  748. package/tools/vds-scripts/docs/vi/agents/reference/links-orchestrator.md +0 -66
  749. package/tools/vds-scripts/docs/vi/agents/reference/lsp-orchestrator.md +0 -60
  750. package/tools/vds-scripts/docs/vi/agents/reference/markdown-orchestrator.md +0 -62
  751. package/tools/vds-scripts/docs/vi/agents/reference/mcp-orchestrator.md +0 -34
  752. package/tools/vds-scripts/docs/vi/agents/reference/memory-orchestrator.md +0 -45
  753. package/tools/vds-scripts/docs/vi/agents/reference/metabase-orchestrator.md +0 -30
  754. package/tools/vds-scripts/docs/vi/agents/reference/multi-agent-orchestrator.md +0 -61
  755. package/tools/vds-scripts/docs/vi/agents/reference/openapi-orchestrator.md +0 -66
  756. package/tools/vds-scripts/docs/vi/agents/reference/orchestrator-architecture.md +0 -24
  757. package/tools/vds-scripts/docs/vi/agents/reference/orchestrator-index.md +0 -73
  758. package/tools/vds-scripts/docs/vi/agents/reference/pdf-orchestrator.md +0 -30
  759. package/tools/vds-scripts/docs/vi/agents/reference/portable-paths-and-config.md +0 -123
  760. package/tools/vds-scripts/docs/vi/agents/reference/portable-paths-validation-matrix.md +0 -131
  761. package/tools/vds-scripts/docs/vi/agents/reference/progress-orchestrator.md +0 -43
  762. package/tools/vds-scripts/docs/vi/agents/reference/progress-report-cli.md +0 -217
  763. package/tools/vds-scripts/docs/vi/agents/reference/public-interface-orchestrator.md +0 -82
  764. package/tools/vds-scripts/docs/vi/agents/reference/research-orchestrator.md +0 -45
  765. package/tools/vds-scripts/docs/vi/agents/reference/schema-orchestrator.md +0 -66
  766. package/tools/vds-scripts/docs/vi/agents/reference/search-tools.md +0 -19
  767. package/tools/vds-scripts/docs/vi/agents/reference/skills-reference.md +0 -27
  768. package/tools/vds-scripts/docs/vi/agents/reference/sonarqube-orchestrator.md +0 -71
  769. package/tools/vds-scripts/docs/vi/agents/reference/spec-orchestrator.md +0 -56
  770. package/tools/vds-scripts/docs/vi/agents/reference/structure-orchestrator.md +0 -78
  771. package/tools/vds-scripts/docs/vi/agents/reference/system-requirements.md +0 -30
  772. package/tools/vds-scripts/docs/vi/agents/reference/tasks-orchestrator.md +0 -45
  773. package/tools/vds-scripts/docs/vi/agents/reference/validation-and-sync-notes.md +0 -26
  774. package/tools/vds-scripts/docs/vi/agents/reference/vds-ai-memory-api.md +0 -53
  775. package/tools/vds-scripts/docs/vi/agents/reference/vds-cli-reference.md +0 -34
  776. package/tools/vds-scripts/docs/vi/agents/reference/who-capability-inventory.md +0 -98
  777. package/tools/vds-scripts/docs/vi/agents/reference/who-capability-routing-matrix.md +0 -16
  778. package/tools/vds-scripts/docs/vi/agents/tutorials/feature-progression-guide.md +0 -124
  779. package/tools/vds-scripts/docs/vi/agents/tutorials/index.md +0 -13
  780. package/tools/vds-scripts/docs/vi/agents/tutorials/quick-start.md +0 -30
  781. package/tools/vds-scripts/docs/vi/agents/tutorials/who-skills-and-scripts-onboarding.md +0 -42
  782. package/tools/vds-scripts/docs/vi/agents/tutorials/zero-to-productive-developer.md +0 -137
  783. package/tools/vds-scripts/elastic_orchestrator/README.md +0 -450
  784. package/tools/vds-scripts/elastic_orchestrator/pyproject.toml +0 -97
  785. package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/__init__.py +0 -81
  786. package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/cli.py +0 -652
  787. package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/client.py +0 -743
  788. package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/config.py +0 -208
  789. package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/errors.py +0 -34
  790. package/tools/vds-scripts/elastic_orchestrator/src/vds_elastic_orchestrator/py.typed +0 -0
  791. package/tools/vds-scripts/elastic_orchestrator/tests/__init__.py +0 -0
  792. package/tools/vds-scripts/elastic_orchestrator/tests/conftest.py +0 -227
  793. package/tools/vds-scripts/elastic_orchestrator/tests/test_client.py +0 -990
  794. package/tools/vds-scripts/elastic_orchestrator/tests/test_config.py +0 -268
  795. package/tools/vds-scripts/elastic_orchestrator/tests/test_e2e_verification.py +0 -272
  796. package/tools/vds-scripts/elastic_orchestrator/tests/test_errors.py +0 -78
  797. package/tools/vds-scripts/git_orchestrator/ENHANCEMENT_SUMMARY.md +0 -119
  798. package/tools/vds-scripts/git_orchestrator/README.md +0 -286
  799. package/tools/vds-scripts/git_orchestrator/VERIFICATION_REPORT.md +0 -152
  800. package/tools/vds-scripts/git_orchestrator/pyproject.toml +0 -37
  801. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/__init__.py +0 -30
  802. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/__main__.py +0 -4
  803. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/branch_probe.py +0 -271
  804. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/cli.py +0 -892
  805. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/logging_config.py +0 -63
  806. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/manifest.py +0 -249
  807. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/orchestrator.py +0 -1647
  808. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/protocols.py +0 -35
  809. package/tools/vds-scripts/git_orchestrator/src/vds_git_orchestrator/reporting.py +0 -55
  810. package/tools/vds-scripts/git_orchestrator/tests/__init__.py +0 -0
  811. package/tools/vds-scripts/git_orchestrator/tests/test_cli_settings.py +0 -19
  812. package/tools/vds-scripts/git_orchestrator/tests/test_integration.py +0 -79
  813. package/tools/vds-scripts/git_orchestrator/tests/test_manifest.py +0 -79
  814. package/tools/vds-scripts/git_orchestrator/tests/test_orchestrator.py +0 -207
  815. package/tools/vds-scripts/git_orchestrator/tests/test_public_api.py +0 -235
  816. package/tools/vds-scripts/git_orchestrator/tests/test_resilience.py +0 -343
  817. package/tools/vds-scripts/git_orchestrator/tests/unit/__init__.py +0 -0
  818. package/tools/vds-scripts/git_orchestrator/tests/unit/test_branch_probe.py +0 -327
  819. package/tools/vds-scripts/git_orchestrator/tests/unit/test_protocols.py +0 -132
  820. package/tools/vds-scripts/google_sheets_orchestrator/README.md +0 -241
  821. package/tools/vds-scripts/google_sheets_orchestrator/pyproject.toml +0 -45
  822. package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/__init__.py +0 -69
  823. package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/cli.py +0 -568
  824. package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/client.py +0 -186
  825. package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/config.py +0 -46
  826. package/tools/vds-scripts/google_sheets_orchestrator/src/vds_google_sheets_orchestrator/errors.py +0 -41
  827. package/tools/vds-scripts/google_sheets_orchestrator/tests/__init__.py +0 -1
  828. package/tools/vds-scripts/google_sheets_orchestrator/tests/conftest.py +0 -1
  829. package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/__init__.py +0 -1
  830. package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/test_cli.py +0 -212
  831. package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/test_client.py +0 -24
  832. package/tools/vds-scripts/google_sheets_orchestrator/tests/unit/test_config.py +0 -16
  833. package/tools/vds-scripts/grafana_orchestrator/README.md +0 -572
  834. package/tools/vds-scripts/grafana_orchestrator/pyproject.toml +0 -102
  835. package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/__init__.py +0 -78
  836. package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/cli.py +0 -455
  837. package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/client.py +0 -700
  838. package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/config.py +0 -243
  839. package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/errors.py +0 -34
  840. package/tools/vds-scripts/grafana_orchestrator/src/vds_grafana_orchestrator/py.typed +0 -1
  841. package/tools/vds-scripts/grafana_orchestrator/tests/__init__.py +0 -1
  842. package/tools/vds-scripts/grafana_orchestrator/tests/conftest.py +0 -308
  843. package/tools/vds-scripts/grafana_orchestrator/tests/test_client.py +0 -458
  844. package/tools/vds-scripts/grafana_orchestrator/tests/test_config.py +0 -203
  845. package/tools/vds-scripts/grafana_orchestrator/tests/test_errors.py +0 -78
  846. package/tools/vds-scripts/jira_orchestrator/README.md +0 -864
  847. package/tools/vds-scripts/jira_orchestrator/pyproject.toml +0 -43
  848. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/__init__.py +0 -65
  849. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/adapter.py +0 -1685
  850. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/cli.py +0 -2806
  851. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/config.py +0 -168
  852. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/errors.py +0 -34
  853. package/tools/vds-scripts/jira_orchestrator/src/vds_jira_orchestrator/reporting.py +0 -66
  854. package/tools/vds-scripts/jira_orchestrator/tests/__init__.py +0 -1
  855. package/tools/vds-scripts/jira_orchestrator/tests/conftest.py +0 -86
  856. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_agile_list_payloads.py +0 -54
  857. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_bulk_operations.py +0 -91
  858. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_components.py +0 -56
  859. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_createmeta.py +0 -45
  860. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_dashboard.py +0 -119
  861. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_issue_properties.py +0 -53
  862. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_permissions_compat.py +0 -41
  863. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_reindex.py +0 -42
  864. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_remote_links.py +0 -75
  865. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_transitions.py +0 -90
  866. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_user_management.py +0 -116
  867. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_version_management.py +0 -181
  868. package/tools/vds-scripts/jira_orchestrator/tests/test_adapter_watchers.py +0 -43
  869. package/tools/vds-scripts/jira_orchestrator/tests/test_advanced_search.py +0 -179
  870. package/tools/vds-scripts/jira_orchestrator/tests/test_agile.py +0 -304
  871. package/tools/vds-scripts/jira_orchestrator/tests/test_application_properties.py +0 -243
  872. package/tools/vds-scripts/jira_orchestrator/tests/test_backlog.py +0 -91
  873. package/tools/vds-scripts/jira_orchestrator/tests/test_bulk_operations.py +0 -403
  874. package/tools/vds-scripts/jira_orchestrator/tests/test_cli.py +0 -108
  875. package/tools/vds-scripts/jira_orchestrator/tests/test_components.py +0 -119
  876. package/tools/vds-scripts/jira_orchestrator/tests/test_config.py +0 -166
  877. package/tools/vds-scripts/jira_orchestrator/tests/test_dashboard.py +0 -122
  878. package/tools/vds-scripts/jira_orchestrator/tests/test_discover_fields.py +0 -207
  879. package/tools/vds-scripts/jira_orchestrator/tests/test_errors.py +0 -72
  880. package/tools/vds-scripts/jira_orchestrator/tests/test_filter_management.py +0 -411
  881. package/tools/vds-scripts/jira_orchestrator/tests/test_issue_archiving.py +0 -179
  882. package/tools/vds-scripts/jira_orchestrator/tests/test_issue_links.py +0 -257
  883. package/tools/vds-scripts/jira_orchestrator/tests/test_issue_properties.py +0 -189
  884. package/tools/vds-scripts/jira_orchestrator/tests/test_link_types.py +0 -407
  885. package/tools/vds-scripts/jira_orchestrator/tests/test_parse_set.py +0 -37
  886. package/tools/vds-scripts/jira_orchestrator/tests/test_permissions.py +0 -343
  887. package/tools/vds-scripts/jira_orchestrator/tests/test_reindex.py +0 -81
  888. package/tools/vds-scripts/jira_orchestrator/tests/test_remote_links.py +0 -269
  889. package/tools/vds-scripts/jira_orchestrator/tests/test_security_schemes.py +0 -202
  890. package/tools/vds-scripts/jira_orchestrator/tests/test_transitions_changelog.py +0 -109
  891. package/tools/vds-scripts/jira_orchestrator/tests/test_user_management.py +0 -246
  892. package/tools/vds-scripts/jira_orchestrator/tests/test_version_management.py +0 -503
  893. package/tools/vds-scripts/jira_orchestrator/tests/test_watchers.py +0 -116
  894. package/tools/vds-scripts/jira_orchestrator/tests/test_worklog.py +0 -243
  895. package/tools/vds-scripts/jira_viettelmoney_orchestrator/README.md +0 -864
  896. package/tools/vds-scripts/jira_viettelmoney_orchestrator/pyproject.toml +0 -43
  897. package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/__init__.py +0 -65
  898. package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/adapter.py +0 -1689
  899. package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/cli.py +0 -2799
  900. package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/config.py +0 -137
  901. package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/errors.py +0 -34
  902. package/tools/vds-scripts/jira_viettelmoney_orchestrator/src/vds_jira_viettelmoney_orchestrator/reporting.py +0 -65
  903. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/__init__.py +0 -1
  904. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/conftest.py +0 -86
  905. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_agile_list_payloads.py +0 -54
  906. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_bulk_operations.py +0 -101
  907. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_components.py +0 -64
  908. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_createmeta.py +0 -45
  909. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_dashboard.py +0 -135
  910. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_issue_properties.py +0 -63
  911. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_permissions_compat.py +0 -42
  912. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_reindex.py +0 -42
  913. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_remote_links.py +0 -89
  914. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_transitions.py +0 -91
  915. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_user_management.py +0 -130
  916. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_version_management.py +0 -189
  917. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_adapter_watchers.py +0 -49
  918. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_advanced_search.py +0 -213
  919. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_agile.py +0 -334
  920. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_application_properties.py +0 -261
  921. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_backlog.py +0 -91
  922. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_bulk_operations.py +0 -443
  923. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_cli.py +0 -106
  924. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_components.py +0 -133
  925. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_config.py +0 -166
  926. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_dashboard.py +0 -130
  927. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_discover_fields.py +0 -207
  928. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_errors.py +0 -61
  929. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_filter_management.py +0 -478
  930. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_issue_archiving.py +0 -181
  931. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_issue_links.py +0 -257
  932. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_issue_properties.py +0 -203
  933. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_link_types.py +0 -426
  934. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_parse_set.py +0 -37
  935. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_permissions.py +0 -358
  936. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_reindex.py +0 -81
  937. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_remote_links.py +0 -292
  938. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_security_schemes.py +0 -218
  939. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_transitions_changelog.py +0 -121
  940. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_user_management.py +0 -283
  941. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_version_management.py +0 -561
  942. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_watchers.py +0 -128
  943. package/tools/vds-scripts/jira_viettelmoney_orchestrator/tests/test_worklog.py +0 -265
  944. package/tools/vds-scripts/llms.txt +0 -159
  945. package/tools/vds-scripts/mcp_server/Dockerfile +0 -63
  946. package/tools/vds-scripts/mcp_server/README.md +0 -140
  947. package/tools/vds-scripts/mcp_server/pyproject.toml +0 -41
  948. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/__init__.py +0 -3
  949. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/config.py +0 -36
  950. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/server.py +0 -111
  951. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/__init__.py +0 -15
  952. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/bitbucket_tools.py +0 -47
  953. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/confluence_tools.py +0 -53
  954. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/git_tools.py +0 -71
  955. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/jira_tools.py +0 -63
  956. package/tools/vds-scripts/mcp_server/src/vds_mcp_server/tools/vidp_tools.py +0 -64
  957. package/tools/vds-scripts/mcp_server/tests/__init__.py +0 -1
  958. package/tools/vds-scripts/mcp_server/tests/conftest.py +0 -31
  959. package/tools/vds-scripts/mcp_server/tests/unit/__init__.py +0 -1
  960. package/tools/vds-scripts/mcp_server/tests/unit/test_bitbucket_tools.py +0 -28
  961. package/tools/vds-scripts/mcp_server/tests/unit/test_confluence_tools.py +0 -28
  962. package/tools/vds-scripts/mcp_server/tests/unit/test_git_tools.py +0 -35
  963. package/tools/vds-scripts/mcp_server/tests/unit/test_jira_tools.py +0 -35
  964. package/tools/vds-scripts/mcp_server/tests/verification/__init__.py +0 -6
  965. package/tools/vds-scripts/mcp_server/tests/verification/conftest.py +0 -51
  966. package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_confluence_tools.py +0 -40
  967. package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_jira_tools.py +0 -39
  968. package/tools/vds-scripts/mcp_server/tests/verification/test_mcp_tool_registration.py +0 -50
  969. package/tools/vds-scripts/memory_orchestrator/.env.example +0 -109
  970. package/tools/vds-scripts/memory_orchestrator/Dockerfile +0 -103
  971. package/tools/vds-scripts/memory_orchestrator/README.md +0 -203
  972. package/tools/vds-scripts/memory_orchestrator/alembic/env.py +0 -35
  973. package/tools/vds-scripts/memory_orchestrator/alembic/script.py.mako +0 -28
  974. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0001_add_team_id_to_vector_search_history.py +0 -57
  975. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0002_nullable_query_text_vector_search_history.py +0 -47
  976. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0003_create_memory_vectors_if_missing.py +0 -49
  977. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0004_create_memory_duplicate_groups_and_members.py +0 -61
  978. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0005_create_search_queries_if_missing.py +0 -57
  979. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0006_create_export_import_jobs_if_missing.py +0 -52
  980. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0007_create_remaining_orm_tables.py +0 -145
  981. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0008_alter_export_import_jobs_user_id_to_varchar.py +0 -55
  982. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0009_create_core_tables_if_missing.py +0 -197
  983. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0010_create_service_accounts.py +0 -75
  984. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0011_create_users_table.py +0 -106
  985. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0012_audit_log_v3.py +0 -107
  986. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0042_memory_dedup_resolutions.py +0 -67
  987. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0043_memory_records_tombstones.py +0 -68
  988. package/tools/vds-scripts/memory_orchestrator/alembic/versions/0044_memory_evolution_shadow_soak_state.py +0 -69
  989. package/tools/vds-scripts/memory_orchestrator/alembic.ini +0 -65
  990. package/tools/vds-scripts/memory_orchestrator/conftest.py +0 -42
  991. package/tools/vds-scripts/memory_orchestrator/create_analytics_tables.sql +0 -289
  992. package/tools/vds-scripts/memory_orchestrator/create_memory_evolution_tables.sql +0 -104
  993. package/tools/vds-scripts/memory_orchestrator/create_memory_vectors_table.sql +0 -26
  994. package/tools/vds-scripts/memory_orchestrator/init-db-simple.sql +0 -16
  995. package/tools/vds-scripts/memory_orchestrator/pyproject.toml +0 -169
  996. package/tools/vds-scripts/memory_orchestrator/scripts/__init__.py +0 -0
  997. package/tools/vds-scripts/memory_orchestrator/scripts/deploy.sh +0 -112
  998. package/tools/vds-scripts/memory_orchestrator/scripts/entrypoint.sh +0 -130
  999. package/tools/vds-scripts/memory_orchestrator/scripts/mint_memory_client_service_token.py +0 -179
  1000. package/tools/vds-scripts/memory_orchestrator/scripts/recover_with_infer_false.py +0 -224
  1001. package/tools/vds-scripts/memory_orchestrator/scripts/soak-stalled-rate.sh +0 -95
  1002. package/tools/vds-scripts/memory_orchestrator/scripts/verify-track-alpha.sh +0 -110
  1003. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/__init__.py +0 -5
  1004. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/__init__.py +0 -15
  1005. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/_model_factory.py +0 -37
  1006. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/consolidation.py +0 -49
  1007. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/extraction.py +0 -56
  1008. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/agents/intent.py +0 -40
  1009. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/cli.py +0 -1457
  1010. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/client.py +0 -204
  1011. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/__init__.py +0 -0
  1012. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/memory_evolution.toml +0 -20
  1013. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/rules/__init__.py +0 -0
  1014. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/rules/storage_rules.yaml +0 -281
  1015. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/config/session_templates.json +0 -63
  1016. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/db/__init__.py +0 -10
  1017. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/db/alembic_filters.py +0 -66
  1018. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/formatters.py +0 -82
  1019. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/__init__.py +0 -25
  1020. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/__init__.py +0 -0
  1021. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/ai_memory_api.py +0 -1172
  1022. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/mcp_api.py +0 -854
  1023. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/openapi_config.py +0 -426
  1024. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/status_mapping.py +0 -91
  1025. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/__init__.py +0 -0
  1026. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/analytics.py +0 -1406
  1027. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/auth.py +0 -409
  1028. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/authorization.py +0 -474
  1029. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/cache.py +0 -51
  1030. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/cleanup.py +0 -286
  1031. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/deduplication.py +0 -546
  1032. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/dependencies.py +0 -349
  1033. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/embedding.py +0 -190
  1034. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/export_import.py +0 -596
  1035. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/health.py +0 -35
  1036. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/hooks.py +0 -145
  1037. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/maintenance.py +0 -653
  1038. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/promotion.py +0 -68
  1039. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/reconciliation.py +0 -102
  1040. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/sharing.py +0 -674
  1041. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/tasks.py +0 -72
  1042. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/api/v1/versioning.py +0 -483
  1043. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/__init__.py +0 -0
  1044. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/memory_manager.py +0 -914
  1045. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/research_analyzer.py +0 -839
  1046. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/brain/vds_brain_agent.py +0 -1120
  1047. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/config/memory_dedup.toml +0 -15
  1048. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/__init__.py +0 -0
  1049. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/ai_memory_exceptions.py +0 -225
  1050. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/audit_log_writer.py +0 -59
  1051. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/auth.py +0 -350
  1052. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/config.py +0 -836
  1053. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/exceptions.py +0 -203
  1054. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/identity.py +0 -175
  1055. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/input_validation.py +0 -785
  1056. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/legacy_claim_normalizer.py +0 -142
  1057. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/rate_limit.py +0 -587
  1058. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/rbac_decorators.py +0 -531
  1059. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/redis.py +0 -446
  1060. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/scope_validator.py +0 -125
  1061. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/security.py +0 -109
  1062. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/security_middleware.py +0 -535
  1063. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/tests/__init__.py +0 -0
  1064. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/core/tests/test_input_validation.py +0 -68
  1065. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/__init__.py +0 -0
  1066. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/analytics_repository.py +0 -38
  1067. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/postgres_manager.py +0 -1897
  1068. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/rbac_migration.py +0 -57
  1069. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/database/redis_manager.py +0 -617
  1070. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/domain/__init__.py +0 -1
  1071. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/domain/entities/__init__.py +0 -1
  1072. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/domain/entities/user.py +0 -96
  1073. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/hooks/__init__.py +0 -0
  1074. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/hooks/storage_strategy_hook.py +0 -465
  1075. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/integrations/__init__.py +0 -0
  1076. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/integrations/memory_transformer.py +0 -827
  1077. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/main.py +0 -491
  1078. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/__init__.py +0 -20
  1079. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/env_config_parser.py +0 -188
  1080. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/official_mcp_client.py +0 -1574
  1081. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/mcp/working_mcp_interface.py +0 -340
  1082. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/__init__.py +0 -125
  1083. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/ai_memory_models.py +0 -1587
  1084. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/analytics_models.py +0 -766
  1085. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/auth_models.py +0 -460
  1086. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/database.py +0 -841
  1087. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/deduplication_models.py +0 -354
  1088. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/export_import_models.py +0 -353
  1089. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/rbac.py +0 -9
  1090. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/resource_ownership.py +0 -282
  1091. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/search_models.py +0 -427
  1092. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/search_models_additional.py +0 -322
  1093. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/models/sharing_models.py +0 -366
  1094. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/perf/__init__.py +0 -0
  1095. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/__init__.py +0 -1
  1096. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/dev_mode_user_repository.py +0 -194
  1097. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/postgres_user_repository.py +0 -280
  1098. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/service_account_repository.py +0 -330
  1099. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/repositories/user_repository.py +0 -77
  1100. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/__init__.py +0 -0
  1101. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/ai_memory_service.py +0 -2754
  1102. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/analytics_events.py +0 -104
  1103. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/analytics_service.py +0 -2825
  1104. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/auth.py +0 -207
  1105. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/embedding_service.py +0 -51
  1106. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/entity_backfill_service.py +0 -343
  1107. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/fallback_search_service.py +0 -327
  1108. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/health_check.py +0 -1556
  1109. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mcp_integration_service.py +0 -224
  1110. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mem0_adapter.py +0 -796
  1111. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mem0_client.py +0 -48
  1112. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/mem0_sync_service.py +0 -484
  1113. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_admin_service.py +0 -1011
  1114. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_crud_service.py +0 -1469
  1115. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_deduplication.py +0 -1761
  1116. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/__init__.py +0 -17
  1117. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/celery_app.py +0 -70
  1118. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/celery_entrypoint.py +0 -15
  1119. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/config_loader.py +0 -275
  1120. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/consolidation_executor.py +0 -309
  1121. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/processor.py +0 -574
  1122. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/rules.py +0 -136
  1123. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/shadow_soak.py +0 -161
  1124. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/sweeper.py +0 -216
  1125. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/tracker.py +0 -265
  1126. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_evolution/worker.py +0 -780
  1127. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_export_import.py +0 -1403
  1128. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_search_service.py +0 -1164
  1129. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_sharing.py +0 -741
  1130. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/memory_versioning.py +0 -592
  1131. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/ownership_service.py +0 -798
  1132. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/promotion_service.py +0 -187
  1133. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/query_router_service.py +0 -523
  1134. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/rbac_service.py +0 -711
  1135. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/semantic_cache_service.py +0 -605
  1136. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/session_template_service.py +0 -76
  1137. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/__init__.py +0 -35
  1138. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/consolidation_worker.py +0 -384
  1139. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/content_analyzer.py +0 -482
  1140. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/pattern_matcher.py +0 -363
  1141. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/rule_engine.py +0 -447
  1142. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/storage_strategy/storage_engine.py +0 -299
  1143. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/tool_registry_service.py +0 -544
  1144. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/triage_service.py +0 -250
  1145. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/services/vector_search_service.py +0 -497
  1146. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/__init__.py +0 -1
  1147. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/__init__.py +0 -1
  1148. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/create_user_use_case.py +0 -96
  1149. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/exceptions.py +0 -94
  1150. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/login_use_case.py +0 -217
  1151. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/policies.py +0 -102
  1152. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/use_cases/auth/refresh_token_use_case.py +0 -86
  1153. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/utils/__init__.py +0 -0
  1154. package/tools/vds-scripts/memory_orchestrator/src/vds_memory_orchestrator/service/utils/data_transformer.py +0 -28
  1155. package/tools/vds-scripts/memory_orchestrator/tests/__init__.py +0 -0
  1156. package/tools/vds-scripts/memory_orchestrator/tests/auth/__init__.py +0 -6
  1157. package/tools/vds-scripts/memory_orchestrator/tests/auth/conftest.py +0 -124
  1158. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_acquire_jwt_token_deprecation.py +0 -176
  1159. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_alembic_0010_migration.py +0 -193
  1160. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_alembic_0011_users_migration.py +0 -234
  1161. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_alembic_0012_audit_log_v3_migration.py +0 -184
  1162. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_analytics_stream_machine_hint.py +0 -149
  1163. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_audit_log_identity_fields.py +0 -369
  1164. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_audit_log_v3_schema.py +0 -186
  1165. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_auth_api_endpoints.py +0 -264
  1166. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_authenticators.py +0 -343
  1167. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_conftest_factory.py +0 -108
  1168. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_create_user_use_case.py +0 -246
  1169. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dependencies.py +0 -232
  1170. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dev_mode_claim_fidelity.py +0 -87
  1171. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dev_mode_parity.py +0 -187
  1172. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_dev_mode_user_repository.py +0 -271
  1173. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_get_current_identity.py +0 -403
  1174. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_identity.py +0 -272
  1175. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_jwt_auth.py +0 -658
  1176. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_legacy_callers_smoke.py +0 -141
  1177. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_legacy_claim_compat.py +0 -234
  1178. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_legacy_claim_normalizer.py +0 -315
  1179. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_lockout_policy.py +0 -124
  1180. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_login_use_case.py +0 -455
  1181. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_lsp_regression_contracts.py +0 -259
  1182. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_machine_context_detection.py +0 -160
  1183. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_me_endpoint_no_deprecation.py +0 -199
  1184. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_mint_service_token.py +0 -244
  1185. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_postgres_service_account_repository.py +0 -222
  1186. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_postgres_user_repository.py +0 -302
  1187. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_refresh_token_use_case.py +0 -187
  1188. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_scope_validator.py +0 -249
  1189. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_security.py +0 -158
  1190. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_service_account_entity.py +0 -146
  1191. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_service_account_repository_protocol.py +0 -60
  1192. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_token_precedence.py +0 -205
  1193. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_user_entity.py +0 -217
  1194. package/tools/vds-scripts/memory_orchestrator/tests/auth/test_user_repository_protocol.py +0 -141
  1195. package/tools/vds-scripts/memory_orchestrator/tests/cli/__init__.py +0 -1
  1196. package/tools/vds-scripts/memory_orchestrator/tests/cli/test_memory_create_user.py +0 -208
  1197. package/tools/vds-scripts/memory_orchestrator/tests/conftest.py +0 -184
  1198. package/tools/vds-scripts/memory_orchestrator/tests/integration/__init__.py +0 -0
  1199. package/tools/vds-scripts/memory_orchestrator/tests/integration/api/__init__.py +0 -0
  1200. package/tools/vds-scripts/memory_orchestrator/tests/integration/api/test_auth_login_e2e.py +0 -425
  1201. package/tools/vds-scripts/memory_orchestrator/tests/integration/api/test_health_strict_json.py +0 -197
  1202. package/tools/vds-scripts/memory_orchestrator/tests/integration/test_async_mode_status.py +0 -192
  1203. package/tools/vds-scripts/memory_orchestrator/tests/integration/test_vami020_dual_correctness.py +0 -218
  1204. package/tools/vds-scripts/memory_orchestrator/tests/integration/test_worktree_compose.py +0 -257
  1205. package/tools/vds-scripts/memory_orchestrator/tests/service/TEST_DOCUMENTATION.md +0 -467
  1206. package/tools/vds-scripts/memory_orchestrator/tests/service/__init__.py +0 -0
  1207. package/tools/vds-scripts/memory_orchestrator/tests/service/conftest.py +0 -1040
  1208. package/tools/vds-scripts/memory_orchestrator/tests/service/conftest_root.py +0 -63
  1209. package/tools/vds-scripts/memory_orchestrator/tests/service/postman/Local Environment.postman_environment.json +0 -46
  1210. package/tools/vds-scripts/memory_orchestrator/tests/service/postman/README.md +0 -302
  1211. package/tools/vds-scripts/memory_orchestrator/tests/service/postman/VDS Analytics API.postman_collection.json +0 -562
  1212. package/tools/vds-scripts/memory_orchestrator/tests/service/pytest.integration.ini +0 -21
  1213. package/tools/vds-scripts/memory_orchestrator/tests/service/pytest.unit.ini +0 -21
  1214. package/tools/vds-scripts/memory_orchestrator/tests/service/services/__init__.py +0 -0
  1215. package/tools/vds-scripts/memory_orchestrator/tests/service/services/test_health_aggregation.py +0 -370
  1216. package/tools/vds-scripts/memory_orchestrator/tests/service/test_ai_memory_api.py +0 -797
  1217. package/tools/vds-scripts/memory_orchestrator/tests/service/test_ai_memory_service.py +0 -1661
  1218. package/tools/vds-scripts/memory_orchestrator/tests/service/test_ai_memory_service_routing.py +0 -165
  1219. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_alerts.py +0 -89
  1220. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_api_integration.py +0 -604
  1221. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_bi.py +0 -49
  1222. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_dashboard_e2e.py +0 -106
  1223. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_dashboards.py +0 -127
  1224. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_enhanced.py +0 -575
  1225. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_external.py +0 -44
  1226. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_performance_metrics.py +0 -60
  1227. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_realtime.py +0 -63
  1228. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_reports.py +0 -138
  1229. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_service.py +0 -59
  1230. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_stream_cli.py +0 -305
  1231. package/tools/vds-scripts/memory_orchestrator/tests/service/test_analytics_websocket.py +0 -145
  1232. package/tools/vds-scripts/memory_orchestrator/tests/service/test_basic.py +0 -29
  1233. package/tools/vds-scripts/memory_orchestrator/tests/service/test_cache_warm_endpoint.py +0 -38
  1234. package/tools/vds-scripts/memory_orchestrator/tests/service/test_cache_warming_simple.py +0 -197
  1235. package/tools/vds-scripts/memory_orchestrator/tests/service/test_cache_warming_validation.py +0 -378
  1236. package/tools/vds-scripts/memory_orchestrator/tests/service/test_circuit_breaker_integration.py +0 -336
  1237. package/tools/vds-scripts/memory_orchestrator/tests/service/test_cleanup_endpoint.py +0 -126
  1238. package/tools/vds-scripts/memory_orchestrator/tests/service/test_concurrent_load.py +0 -603
  1239. package/tools/vds-scripts/memory_orchestrator/tests/service/test_cors_origins_validator.py +0 -48
  1240. package/tools/vds-scripts/memory_orchestrator/tests/service/test_drain_evolution.py +0 -130
  1241. package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_lifecycle.py +0 -34
  1242. package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_migration.py +0 -167
  1243. package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_protocol_shape.py +0 -84
  1244. package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_routes_w9.py +0 -340
  1245. package/tools/vds-scripts/memory_orchestrator/tests/service/test_embedding_service.py +0 -291
  1246. package/tools/vds-scripts/memory_orchestrator/tests/service/test_entity_backfill.py +0 -248
  1247. package/tools/vds-scripts/memory_orchestrator/tests/service/test_fallback_metrics.py +0 -582
  1248. package/tools/vds-scripts/memory_orchestrator/tests/service/test_fallback_search.py +0 -397
  1249. package/tools/vds-scripts/memory_orchestrator/tests/service/test_hooks.py +0 -149
  1250. package/tools/vds-scripts/memory_orchestrator/tests/service/test_include_internal_filter.py +0 -301
  1251. package/tools/vds-scripts/memory_orchestrator/tests/service/test_input_validation.py +0 -713
  1252. package/tools/vds-scripts/memory_orchestrator/tests/service/test_load_batch_endpoint.py +0 -300
  1253. package/tools/vds-scripts/memory_orchestrator/tests/service/test_maintenance_endpoints.py +0 -576
  1254. package/tools/vds-scripts/memory_orchestrator/tests/service/test_mcp_integration_service.py +0 -99
  1255. package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_cloud.py +0 -111
  1256. package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_dual_mode.py +0 -112
  1257. package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_hybrid.py +0 -187
  1258. package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_adapter_return_shape.py +0 -188
  1259. package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_crud_integration.py +0 -190
  1260. package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_sync_fix.py +0 -349
  1261. package/tools/vds-scripts/memory_orchestrator/tests/service/test_mem0_sync_service_resolver.py +0 -106
  1262. package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_client_maintenance.py +0 -121
  1263. package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_consolidation_executor.py +0 -47
  1264. package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_deduplication_service.py +0 -1275
  1265. package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_phase232.py +0 -427
  1266. package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_processor.py +0 -110
  1267. package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_rules.py +0 -29
  1268. package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_sweeper.py +0 -17
  1269. package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_evolution_tracker.py +0 -190
  1270. package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_export_import.py +0 -79
  1271. package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_sharing_service.py +0 -121
  1272. package/tools/vds-scripts/memory_orchestrator/tests/service/test_memory_versioning.py +0 -155
  1273. package/tools/vds-scripts/memory_orchestrator/tests/service/test_ollama_gating.py +0 -58
  1274. package/tools/vds-scripts/memory_orchestrator/tests/service/test_ownership_integration.py +0 -678
  1275. package/tools/vds-scripts/memory_orchestrator/tests/service/test_phase175_health_probe_and_get_event_guard.py +0 -131
  1276. package/tools/vds-scripts/memory_orchestrator/tests/service/test_postgres_pool_settings.py +0 -38
  1277. package/tools/vds-scripts/memory_orchestrator/tests/service/test_postgres_query_metrics.py +0 -28
  1278. package/tools/vds-scripts/memory_orchestrator/tests/service/test_postgres_update_cas.py +0 -86
  1279. package/tools/vds-scripts/memory_orchestrator/tests/service/test_rate_limit.py +0 -551
  1280. package/tools/vds-scripts/memory_orchestrator/tests/service/test_rbac.py +0 -661
  1281. package/tools/vds-scripts/memory_orchestrator/tests/service/test_recover_with_infer_false.py +0 -210
  1282. package/tools/vds-scripts/memory_orchestrator/tests/service/test_remote_endpoints.py +0 -59
  1283. package/tools/vds-scripts/memory_orchestrator/tests/service/test_schema_migration.py +0 -267
  1284. package/tools/vds-scripts/memory_orchestrator/tests/service/test_search_service_unwrap.py +0 -38
  1285. package/tools/vds-scripts/memory_orchestrator/tests/service/test_security_integration.py +0 -699
  1286. package/tools/vds-scripts/memory_orchestrator/tests/service/test_security_middleware.py +0 -532
  1287. package/tools/vds-scripts/memory_orchestrator/tests/service/test_semantic_cache_telemetry.py +0 -300
  1288. package/tools/vds-scripts/memory_orchestrator/tests/service/test_session_template_endpoints.py +0 -99
  1289. package/tools/vds-scripts/memory_orchestrator/tests/service/test_session_template_service.py +0 -77
  1290. package/tools/vds-scripts/memory_orchestrator/tests/service/test_sharing_api.py +0 -202
  1291. package/tools/vds-scripts/memory_orchestrator/tests/service/test_storage_strategy.py +0 -46
  1292. package/tools/vds-scripts/memory_orchestrator/tests/service/test_tasks_endpoint.py +0 -80
  1293. package/tools/vds-scripts/memory_orchestrator/tests/service/test_temporal_filters.py +0 -653
  1294. package/tools/vds-scripts/memory_orchestrator/tests/service/test_topic_clustering_benchmark.py +0 -657
  1295. package/tools/vds-scripts/memory_orchestrator/tests/service/test_triage.py +0 -346
  1296. package/tools/vds-scripts/memory_orchestrator/tests/service/test_unit_comprehensive.py +0 -1054
  1297. package/tools/vds-scripts/memory_orchestrator/tests/service/test_versioning_api.py +0 -81
  1298. package/tools/vds-scripts/memory_orchestrator/tests/service/test_wave2a_reconciliation.py +0 -422
  1299. package/tools/vds-scripts/memory_orchestrator/tests/service/test_wave3_stall_metrics.py +0 -578
  1300. package/tools/vds-scripts/memory_orchestrator/tests/service/test_websocket_auth.py +0 -227
  1301. package/tools/vds-scripts/memory_orchestrator/tests/service/test_writeback_classification.py +0 -55
  1302. package/tools/vds-scripts/memory_orchestrator/tests/test_agents/__init__.py +0 -0
  1303. package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_consolidation_agent.py +0 -128
  1304. package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_extraction_agent.py +0 -140
  1305. package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_intent_agent.py +0 -120
  1306. package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_model_factory.py +0 -85
  1307. package/tools/vds-scripts/memory_orchestrator/tests/test_agents/test_wiring.py +0 -267
  1308. package/tools/vds-scripts/memory_orchestrator/tests/test_alembic_migrations_phase229.py +0 -433
  1309. package/tools/vds-scripts/memory_orchestrator/tests/test_async_compat_lint.py +0 -178
  1310. package/tools/vds-scripts/memory_orchestrator/tests/test_cache_metrics_status.py +0 -124
  1311. package/tools/vds-scripts/memory_orchestrator/tests/test_cli.py +0 -517
  1312. package/tools/vds-scripts/memory_orchestrator/tests/test_cli_health.py +0 -68
  1313. package/tools/vds-scripts/memory_orchestrator/tests/test_client.py +0 -434
  1314. package/tools/vds-scripts/memory_orchestrator/tests/test_config_lazy_validation.py +0 -96
  1315. package/tools/vds-scripts/memory_orchestrator/tests/test_log_hygiene.py +0 -148
  1316. package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_adapter.py +0 -810
  1317. package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_adapter_dual_inversion.py +0 -185
  1318. package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_event_resolver.py +0 -158
  1319. package/tools/vds-scripts/memory_orchestrator/tests/test_mem0_synced_subscriber.py +0 -294
  1320. package/tools/vds-scripts/memory_orchestrator/tests/test_postgres_vector_search_warning.py +0 -176
  1321. package/tools/vds-scripts/memory_orchestrator/tests/test_processor_adapter_diagnostic_phase216.py +0 -71
  1322. package/tools/vds-scripts/memory_orchestrator/tests/test_promotion_cli.py +0 -218
  1323. package/tools/vds-scripts/memory_orchestrator/tests/test_promotion_service.py +0 -322
  1324. package/tools/vds-scripts/memory_orchestrator/tests/test_status_endpoint.py +0 -193
  1325. package/tools/vds-scripts/memory_orchestrator/tests/test_worker_status_emission.py +0 -150
  1326. package/tools/vds-scripts/memory_orchestrator/tests/verification/__init__.py +0 -0
  1327. package/tools/vds-scripts/memory_orchestrator/tests/verification/conftest.py +0 -33
  1328. package/tools/vds-scripts/memory_orchestrator/tests/verification/test_live_api.py +0 -98
  1329. package/tools/vds-scripts/memory_orchestrator/uv.lock +0 -8875
  1330. package/tools/vds-scripts/metabase_orchestrator/pyproject.toml +0 -40
  1331. package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/__init__.py +0 -3
  1332. package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/cli.py +0 -519
  1333. package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/client.py +0 -417
  1334. package/tools/vds-scripts/metabase_orchestrator/src/vds_metabase_orchestrator/config.py +0 -172
  1335. package/tools/vds-scripts/metabase_orchestrator/tests/__init__.py +0 -1
  1336. package/tools/vds-scripts/platform_core/pyproject.toml +0 -49
  1337. package/tools/vds-scripts/platform_core/src/vds_platform_core/__init__.py +0 -16
  1338. package/tools/vds-scripts/platform_core/src/vds_platform_core/alembic/__init__.py +0 -18
  1339. package/tools/vds-scripts/platform_core/src/vds_platform_core/alembic/runtime.py +0 -139
  1340. package/tools/vds-scripts/platform_core/src/vds_platform_core/config.py +0 -88
  1341. package/tools/vds-scripts/platform_core/src/vds_platform_core/credentials.py +0 -40
  1342. package/tools/vds-scripts/platform_core/src/vds_platform_core/env.py +0 -24
  1343. package/tools/vds-scripts/platform_core/src/vds_platform_core/errors.py +0 -127
  1344. package/tools/vds-scripts/platform_core/src/vds_platform_core/http/__init__.py +0 -18
  1345. package/tools/vds-scripts/platform_core/src/vds_platform_core/http/auth.py +0 -32
  1346. package/tools/vds-scripts/platform_core/src/vds_platform_core/http/errors.py +0 -47
  1347. package/tools/vds-scripts/platform_core/src/vds_platform_core/http/pagination.py +0 -65
  1348. package/tools/vds-scripts/platform_core/src/vds_platform_core/http/retry.py +0 -62
  1349. package/tools/vds-scripts/platform_core/src/vds_platform_core/http/stack.py +0 -61
  1350. package/tools/vds-scripts/platform_core/src/vds_platform_core/logging.py +0 -132
  1351. package/tools/vds-scripts/platform_core/src/vds_platform_core/protocols.py +0 -77
  1352. package/tools/vds-scripts/platform_core/src/vds_platform_core/serialization.py +0 -80
  1353. package/tools/vds-scripts/platform_core/src/vds_platform_core/severity.py +0 -175
  1354. package/tools/vds-scripts/platform_core/tests/__init__.py +0 -0
  1355. package/tools/vds-scripts/platform_core/tests/conftest.py +0 -1
  1356. package/tools/vds-scripts/platform_core/tests/test_alembic_runtime.py +0 -300
  1357. package/tools/vds-scripts/platform_core/tests/test_auth.py +0 -84
  1358. package/tools/vds-scripts/platform_core/tests/test_config.py +0 -83
  1359. package/tools/vds-scripts/platform_core/tests/test_credentials.py +0 -73
  1360. package/tools/vds-scripts/platform_core/tests/test_env.py +0 -56
  1361. package/tools/vds-scripts/platform_core/tests/test_errors.py +0 -201
  1362. package/tools/vds-scripts/platform_core/tests/test_errors_http.py +0 -74
  1363. package/tools/vds-scripts/platform_core/tests/test_http_settings.py +0 -116
  1364. package/tools/vds-scripts/platform_core/tests/test_logging.py +0 -148
  1365. package/tools/vds-scripts/platform_core/tests/test_pagination.py +0 -153
  1366. package/tools/vds-scripts/platform_core/tests/test_protocols.py +0 -132
  1367. package/tools/vds-scripts/platform_core/tests/test_retry.py +0 -151
  1368. package/tools/vds-scripts/platform_core/tests/test_serialization.py +0 -92
  1369. package/tools/vds-scripts/platform_core/tests/test_severity.py +0 -178
  1370. package/tools/vds-scripts/platform_core/tests/test_stack.py +0 -130
  1371. package/tools/vds-scripts/platform_core/uv.lock +0 -341
  1372. package/tools/vds-scripts/pyproject.toml +0 -153
  1373. package/tools/vds-scripts/pyrightconfig.json +0 -82
  1374. package/tools/vds-scripts/repo-manifest.yaml +0 -380
  1375. package/tools/vds-scripts/repo-manifest.yaml.example +0 -25
  1376. package/tools/vds-scripts/ruff.toml +0 -103
  1377. package/tools/vds-scripts/scheduler_orchestrator/CLOSURE-v2.0.18.md +0 -99
  1378. package/tools/vds-scripts/scheduler_orchestrator/DEPLOYMENT-RUNBOOK.md +0 -655
  1379. package/tools/vds-scripts/scheduler_orchestrator/Dockerfile +0 -110
  1380. package/tools/vds-scripts/scheduler_orchestrator/GV-VERIFICATION.md +0 -81
  1381. package/tools/vds-scripts/scheduler_orchestrator/README.md +0 -96
  1382. package/tools/vds-scripts/scheduler_orchestrator/WAVE-2-GUARDRAILS.md +0 -89
  1383. package/tools/vds-scripts/scheduler_orchestrator/alembic/env.py +0 -41
  1384. package/tools/vds-scripts/scheduler_orchestrator/alembic/script.py.mako +0 -28
  1385. package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/0001_create_sched_schema.py +0 -57
  1386. package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_04f7169497f6_create_domain_tables.py +0 -166
  1387. package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_a1b2c3d4e5f6_add_overlap_policy_to_schedules.py +0 -57
  1388. package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_b2c3d4e5f6a7_add_dispatcher_state_machine.py +0 -100
  1389. package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_c3d4e5f6a7b8_add_audit_log.py +0 -141
  1390. package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_d4e5f6a7b8c9_celery_retirement.py +0 -161
  1391. package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260424_e5f6a7b8c9d0_add_udf_enqueue.py +0 -154
  1392. package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260426_f6a7b8c9d0e1_add_owner_orchestrator_to_chain_definitions.py +0 -62
  1393. package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260427_a1b2c3d4e5f7_ecosystem_report_runs.py +0 -57
  1394. package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260428_a1b2c3d4e5f8_add_phase2_report_columns.py +0 -95
  1395. package/tools/vds-scripts/scheduler_orchestrator/alembic/versions/20260430_b2c3d4e5f8a9_add_phase3_report_columns.py +0 -199
  1396. package/tools/vds-scripts/scheduler_orchestrator/alembic.ini +0 -70
  1397. package/tools/vds-scripts/scheduler_orchestrator/config/llm_pricing.yaml +0 -51
  1398. package/tools/vds-scripts/scheduler_orchestrator/config/prometheus-alerts.yaml +0 -277
  1399. package/tools/vds-scripts/scheduler_orchestrator/dashboards/slo-dashboard.json +0 -665
  1400. package/tools/vds-scripts/scheduler_orchestrator/design-notes/dedupe-design.md +0 -324
  1401. package/tools/vds-scripts/scheduler_orchestrator/docs/Q3-2026-GAME-DAY-PREFLIGHT.md +0 -217
  1402. package/tools/vds-scripts/scheduler_orchestrator/docs/authoring-workflows.md +0 -302
  1403. package/tools/vds-scripts/scheduler_orchestrator/docs/autoscaling-k8s-hpa.yaml +0 -193
  1404. package/tools/vds-scripts/scheduler_orchestrator/docs/capability-red-team.md +0 -153
  1405. package/tools/vds-scripts/scheduler_orchestrator/docs/celery-migration-procedure.md +0 -151
  1406. package/tools/vds-scripts/scheduler_orchestrator/docs/celery-retirement-checklist.md +0 -144
  1407. package/tools/vds-scripts/scheduler_orchestrator/docs/chaos-runbook.md +0 -395
  1408. package/tools/vds-scripts/scheduler_orchestrator/docs/conductor-decision.md +0 -232
  1409. package/tools/vds-scripts/scheduler_orchestrator/docs/cross-orchestrator-rollout-checklist.md +0 -223
  1410. package/tools/vds-scripts/scheduler_orchestrator/docs/dr-drill-report.md +0 -173
  1411. package/tools/vds-scripts/scheduler_orchestrator/docs/ecosystem-daily-report-runbook.md +0 -344
  1412. package/tools/vds-scripts/scheduler_orchestrator/docs/error-budget-policy.md +0 -228
  1413. package/tools/vds-scripts/scheduler_orchestrator/docs/evolution-daemon-retirement.md +0 -214
  1414. package/tools/vds-scripts/scheduler_orchestrator/docs/evolution-retirement-files.md +0 -171
  1415. package/tools/vds-scripts/scheduler_orchestrator/docs/game-day-phase2.md +0 -243
  1416. package/tools/vds-scripts/scheduler_orchestrator/docs/mcp-governance-review.md +0 -250
  1417. package/tools/vds-scripts/scheduler_orchestrator/docs/mcp-scheduler-surface.md +0 -317
  1418. package/tools/vds-scripts/scheduler_orchestrator/docs/performance-baseline.md +0 -343
  1419. package/tools/vds-scripts/scheduler_orchestrator/docs/pitr-drill-protocol.md +0 -162
  1420. package/tools/vds-scripts/scheduler_orchestrator/docs/quarterly-game-day.md +0 -206
  1421. package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/dr-postgres-restore.md +0 -268
  1422. package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/evolution-auto-promote-runbook.md +0 -194
  1423. package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-dispatcher-stalled.md +0 -188
  1424. package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-postgres-unavailable.md +0 -206
  1425. package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-secret-leaked-in-event.md +0 -170
  1426. package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/incident-workflow-backlog.md +0 -201
  1427. package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/orphan-reconciliation-alert.md +0 -140
  1428. package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/postmortem-template.md +0 -156
  1429. package/tools/vds-scripts/scheduler_orchestrator/docs/runbooks/rollback-deploy.md +0 -209
  1430. package/tools/vds-scripts/scheduler_orchestrator/docs/scaling-decision-phase4.md +0 -176
  1431. package/tools/vds-scripts/scheduler_orchestrator/docs/secret-rotation-drill.md +0 -202
  1432. package/tools/vds-scripts/scheduler_orchestrator/docs/sharding-decision.md +0 -111
  1433. package/tools/vds-scripts/scheduler_orchestrator/docs/sharding-implementation-plan.md +0 -189
  1434. package/tools/vds-scripts/scheduler_orchestrator/docs/udf-enqueue-benchmark.md +0 -209
  1435. package/tools/vds-scripts/scheduler_orchestrator/docs/udf-trigger-demo-plan.md +0 -273
  1436. package/tools/vds-scripts/scheduler_orchestrator/pyproject.toml +0 -129
  1437. package/tools/vds-scripts/scheduler_orchestrator/scripts/autoscale/scale-compose.sh +0 -125
  1438. package/tools/vds-scripts/scheduler_orchestrator/scripts/backfill_last_run_at_from_dbos.py +0 -105
  1439. package/tools/vds-scripts/scheduler_orchestrator/scripts/benchmarks/phase4-sharding-remeasure.sh +0 -244
  1440. package/tools/vds-scripts/scheduler_orchestrator/scripts/benchmarks/udf-vs-dispatcher.sh +0 -157
  1441. package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c1-api-kill.sh +0 -226
  1442. package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c2-executor-kill.sh +0 -243
  1443. package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c3-dispatcher-kill.sh +0 -314
  1444. package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c4-postgres-failover.sh +0 -288
  1445. package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c5-network-partition.sh +0 -351
  1446. package/tools/vds-scripts/scheduler_orchestrator/scripts/chaos/c6-outbox-storm.sh +0 -403
  1447. package/tools/vds-scripts/scheduler_orchestrator/scripts/collector-diagnostics.py +0 -125
  1448. package/tools/vds-scripts/scheduler_orchestrator/scripts/dr/pitr-drill.sh +0 -363
  1449. package/tools/vds-scripts/scheduler_orchestrator/scripts/entrypoint.sh +0 -100
  1450. package/tools/vds-scripts/scheduler_orchestrator/scripts/generate-report.py +0 -96
  1451. package/tools/vds-scripts/scheduler_orchestrator/scripts/mint_scheduler_service_token.py +0 -76
  1452. package/tools/vds-scripts/scheduler_orchestrator/scripts/verify-phase3-live.py +0 -158
  1453. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/__init__.py +0 -21
  1454. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/__init__.py +0 -1
  1455. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/__init__.py +0 -5
  1456. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/chains.py +0 -131
  1457. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/events.py +0 -106
  1458. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/health.py +0 -101
  1459. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/router.py +0 -34
  1460. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/schedules.py +0 -241
  1461. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/api/v1/workflows.py +0 -189
  1462. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/app.py +0 -429
  1463. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/__init__.py +0 -1
  1464. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/registry.py +0 -397
  1465. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/resolver.py +0 -144
  1466. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/chains/triggers.py +0 -626
  1467. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/cli.py +0 -1112
  1468. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/config.py +0 -394
  1469. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/dashboards/__init__.py +0 -1
  1470. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/dashboards/ecosystem-scheduler.json +0 -550
  1471. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/db/__init__.py +0 -1
  1472. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/db/alembic_filters.py +0 -52
  1473. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/db/models.py +0 -428
  1474. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/__init__.py +0 -10
  1475. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/bus.py +0 -161
  1476. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/dispatcher.py +0 -501
  1477. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/outbox.py +0 -213
  1478. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/retention.py +0 -224
  1479. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/schema.py +0 -226
  1480. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/events/ws_server.py +0 -328
  1481. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/__init__.py +0 -26
  1482. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/auth.py +0 -184
  1483. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/server.py +0 -146
  1484. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/mcp/tools_readonly.py +0 -259
  1485. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/__init__.py +0 -15
  1486. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/logging.py +0 -196
  1487. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/metrics.py +0 -347
  1488. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/slo.py +0 -217
  1489. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/observability/workflow_trace_context.py +0 -149
  1490. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/__init__.py +0 -1
  1491. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/backfill.py +0 -160
  1492. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/models.py +0 -88
  1493. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/schedules.py +0 -927
  1494. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/state_pg.py +0 -55
  1495. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/state_ports.py +0 -23
  1496. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/scheduler/writeback.py +0 -153
  1497. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/__init__.py +0 -1
  1498. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/audit_log.py +0 -238
  1499. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/auth.py +0 -49
  1500. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/capabilities.py +0 -111
  1501. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/middleware.py +0 -54
  1502. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/security/secret_scanner.py +0 -126
  1503. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/__init__.py +0 -1
  1504. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/agent_step.py +0 -30
  1505. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/anomaly.py +0 -67
  1506. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/autoscale.py +0 -452
  1507. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collector_registry.py +0 -89
  1508. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/__init__.py +0 -12
  1509. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/dora_metrics.py +0 -520
  1510. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/infra_health_collector.py +0 -378
  1511. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/llm_usage.py +0 -475
  1512. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/memory_collector.py +0 -101
  1513. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/phase1_adapters.py +0 -181
  1514. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/prometheus_collector.py +0 -442
  1515. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/protocol.py +0 -94
  1516. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/security_advisory.py +0 -399
  1517. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/spec_phase_collector.py +0 -137
  1518. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/test_suite_collector.py +0 -231
  1519. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/trend_forecast.py +0 -417
  1520. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/collectors/worktree_collector.py +0 -121
  1521. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/discovery.py +0 -97
  1522. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/ecosystem_report.py +0 -1406
  1523. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/envelope.py +0 -210
  1524. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/evolution/__init__.py +0 -1
  1525. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/evolution/auto_promote.py +0 -206
  1526. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/health_score.py +0 -112
  1527. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_dedup/__init__.py +0 -69
  1528. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_dedup/auto_resolve.py +0 -139
  1529. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_dedup/tombstone_purge.py +0 -128
  1530. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/__init__.py +0 -146
  1531. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/dispatch.py +0 -140
  1532. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/replay_dlq.py +0 -123
  1533. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/repush_local_only.py +0 -129
  1534. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/repush_stalled.py +0 -123
  1535. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/resolve_pending_ids.py +0 -125
  1536. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/memory_evolution/sweep.py +0 -121
  1537. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/provider.py +0 -83
  1538. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/queues.py +0 -225
  1539. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/registry.py +0 -351
  1540. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/report_formatter.py +0 -743
  1541. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/slack_formatter.py +0 -110
  1542. package/tools/vds-scripts/scheduler_orchestrator/src/vds_scheduler_orchestrator/workflows/udf_trigger.py +0 -186
  1543. package/tools/vds-scripts/scheduler_orchestrator/tests/__init__.py +0 -8
  1544. package/tools/vds-scripts/scheduler_orchestrator/tests/_mocks/__init__.py +0 -28
  1545. package/tools/vds-scripts/scheduler_orchestrator/tests/_mocks/llm_mock.py +0 -322
  1546. package/tools/vds-scripts/scheduler_orchestrator/tests/conftest.py +0 -339
  1547. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/__init__.py +0 -1
  1548. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_agent_step.py +0 -400
  1549. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_api_v1_auth.py +0 -424
  1550. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_api_v1_reads.py +0 -579
  1551. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_api_v1_writes.py +0 -609
  1552. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_audit_drift_scan.py +0 -205
  1553. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_audit_log_grants.py +0 -231
  1554. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_capability_red_team.py +0 -266
  1555. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_chain_triggers_integration.py +0 -365
  1556. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_chaos_smoke.py +0 -871
  1557. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_cli_http_contract.py +0 -262
  1558. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_cli_schedule_roundtrip.py +0 -297
  1559. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_ecosystem_report_integration.py +0 -461
  1560. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_ecosystem_report_phase3_integration.py +0 -686
  1561. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_fairness.py +0 -373
  1562. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_full_ecosystem.py +0 -638
  1563. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_multi_day_workflow.py +0 -563
  1564. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_outbox_listen.py +0 -327
  1565. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_priority_queues.py +0 -288
  1566. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_queues_rate_limit.py +0 -272
  1567. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_retention_smoke.py +0 -259
  1568. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_secret_rotation_drill.py +0 -215
  1569. package/tools/vds-scripts/scheduler_orchestrator/tests/integration/test_tier1_collectors_live.py +0 -270
  1570. package/tools/vds-scripts/scheduler_orchestrator/tests/load/__init__.py +0 -29
  1571. package/tools/vds-scripts/scheduler_orchestrator/tests/load/capture_pg_metrics.py +0 -198
  1572. package/tools/vds-scripts/scheduler_orchestrator/tests/load/common.py +0 -163
  1573. package/tools/vds-scripts/scheduler_orchestrator/tests/load/nfr_check.py +0 -235
  1574. package/tools/vds-scripts/scheduler_orchestrator/tests/load/run_baselines.sh +0 -167
  1575. package/tools/vds-scripts/scheduler_orchestrator/tests/load/s1_baseline.py +0 -68
  1576. package/tools/vds-scripts/scheduler_orchestrator/tests/load/s2_phase1.py +0 -71
  1577. package/tools/vds-scripts/scheduler_orchestrator/tests/load/s3_phase2.py +0 -108
  1578. package/tools/vds-scripts/scheduler_orchestrator/tests/load/s4_event_storm.py +0 -131
  1579. package/tools/vds-scripts/scheduler_orchestrator/tests/load/s5_chain_fanout.py +0 -105
  1580. package/tools/vds-scripts/scheduler_orchestrator/tests/load/smoke.py +0 -69
  1581. package/tools/vds-scripts/scheduler_orchestrator/tests/test_alembic_downgrade.py +0 -297
  1582. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/__init__.py +0 -1
  1583. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_alembic_include_name.py +0 -82
  1584. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_anomaly.py +0 -135
  1585. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_app_health.py +0 -102
  1586. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_app_memory_evolution_bootstrap.py +0 -65
  1587. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_audit_log_writer.py +0 -321
  1588. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_auth_brute_force_middleware.py +0 -175
  1589. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_autoscale_helpers.py +0 -91
  1590. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_autoscale_helpers_deep.py +0 -271
  1591. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_backfill.py +0 -153
  1592. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_backfill_coverage.py +0 -219
  1593. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_capabilities.py +0 -175
  1594. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_celery_migration_workflows.py +0 -461
  1595. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_branches.py +0 -387
  1596. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_registry.py +0 -504
  1597. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_triggers_complete.py +0 -800
  1598. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_chains_triggers_event.py +0 -649
  1599. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_cli_branches.py +0 -396
  1600. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_cli_capability_attach.py +0 -111
  1601. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_cli_schedules.py +0 -540
  1602. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_collector_protocol.py +0 -180
  1603. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_config.py +0 -62
  1604. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_decimal_json_and_phase3_columns.py +0 -372
  1605. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_dispatcher.py +0 -376
  1606. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_dockerfile_phase213_patch.py +0 -74
  1607. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_dora_metrics_collector.py +0 -740
  1608. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_ecosystem_report_config.py +0 -159
  1609. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_ecosystem_report_coverage.py +0 -1891
  1610. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_envelope.py +0 -256
  1611. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_error_budget_policy_signoff.py +0 -95
  1612. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_branches.py +0 -664
  1613. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_outbox.py +0 -364
  1614. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_retention.py +0 -206
  1615. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_events_schema.py +0 -279
  1616. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_evolution_auto_promote.py +0 -340
  1617. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_health_redact.py +0 -64
  1618. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_health_score.py +0 -240
  1619. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_last_run_at_writeback.py +0 -226
  1620. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_llm_usage_collector.py +0 -1095
  1621. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_mcp_auth.py +0 -204
  1622. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_mcp_readonly_gate.py +0 -273
  1623. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_mcp_tools_readonly.py +0 -382
  1624. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_memory_evolution_branches.py +0 -422
  1625. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_metrics.py +0 -318
  1626. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_observability_and_step_branches.py +0 -247
  1627. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_prometheus_collector_sli.py +0 -186
  1628. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_queues_config.py +0 -203
  1629. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_reconcile_dbos_schedules.py +0 -300
  1630. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_remaining_coverage.py +0 -666
  1631. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_report_formatter.py +0 -388
  1632. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_scheduled_workflow_signatures.py +0 -136
  1633. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_schedules.py +0 -552
  1634. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_schedules_branches.py +0 -772
  1635. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_secret_scanner.py +0 -81
  1636. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_security_advisory_collector.py +0 -495
  1637. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_security_auth_dep.py +0 -182
  1638. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_slack_notification.py +0 -356
  1639. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_slo_metrics.py +0 -204
  1640. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_tier1_collectors.py +0 -717
  1641. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_tier2_collectors.py +0 -867
  1642. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_tier3_collectors.py +0 -185
  1643. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_trend_forecast_collector.py +0 -617
  1644. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_udf_trigger.py +0 -180
  1645. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_discovery.py +0 -121
  1646. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_http_refactor_phase217.py +0 -309
  1647. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_registry.py +0 -398
  1648. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_registry_branches.py +0 -126
  1649. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_workflow_trace_context.py +0 -295
  1650. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_writeback.py +0 -461
  1651. package/tools/vds-scripts/scheduler_orchestrator/tests/unit/test_ws_server.py +0 -291
  1652. package/tools/vds-scripts/scripts/BRD-Validation-API.postman_collection.json +0 -706
  1653. package/tools/vds-scripts/scripts/BRD-Validation-README.md +0 -308
  1654. package/tools/vds-scripts/scripts/README.md +0 -271
  1655. package/tools/vds-scripts/scripts/_validate_alias_phase2.py +0 -137
  1656. package/tools/vds-scripts/scripts/audit-cli-patterns.sh +0 -135
  1657. package/tools/vds-scripts/scripts/audit-dashboard.sh +0 -525
  1658. package/tools/vds-scripts/scripts/backup.sh +0 -123
  1659. package/tools/vds-scripts/scripts/bootstrap_uv.sh +0 -69
  1660. package/tools/vds-scripts/scripts/brd-validation-environment.json +0 -51
  1661. package/tools/vds-scripts/scripts/brd-validation-test-results.json +0 -13023
  1662. package/tools/vds-scripts/scripts/brd_coverage_report.json +0 -276
  1663. package/tools/vds-scripts/scripts/check-future-annotations.py +0 -22
  1664. package/tools/vds-scripts/scripts/check-invalid-symlinks.py +0 -183
  1665. package/tools/vds-scripts/scripts/check-no-debug-markers.py +0 -21
  1666. package/tools/vds-scripts/scripts/check-no-unittest.py +0 -21
  1667. package/tools/vds-scripts/scripts/ci/assert_no_openspace_commits.sh +0 -37
  1668. package/tools/vds-scripts/scripts/ci/verify_branch_protection.sh +0 -64
  1669. package/tools/vds-scripts/scripts/closure/phase1_check.sh +0 -483
  1670. package/tools/vds-scripts/scripts/closure/phase2_check.sh +0 -500
  1671. package/tools/vds-scripts/scripts/create_memory_session.py +0 -36
  1672. package/tools/vds-scripts/scripts/deploy-bootstrap.sh +0 -201
  1673. package/tools/vds-scripts/scripts/deployment/load_docker_images_offline.sh +0 -90
  1674. package/tools/vds-scripts/scripts/dev/cli_smoke.sh +0 -259
  1675. package/tools/vds-scripts/scripts/final_completion_report.md +0 -139
  1676. package/tools/vds-scripts/scripts/folder_structure_report.json +0 -321
  1677. package/tools/vds-scripts/scripts/generate_completion_report.py +0 -132
  1678. package/tools/vds-scripts/scripts/generate_intellij_modules.py +0 -154
  1679. package/tools/vds-scripts/scripts/init-pgbouncer-userlist.sh +0 -154
  1680. package/tools/vds-scripts/scripts/link_integrity_report.json +0 -807
  1681. package/tools/vds-scripts/scripts/move_audit_artifact_pages.py +0 -252
  1682. package/tools/vds-scripts/scripts/move_audit_artifact_pages_rest.py +0 -165
  1683. package/tools/vds-scripts/scripts/move_wrong_dept_pages.py +0 -235
  1684. package/tools/vds-scripts/scripts/openspace_bootstrap.sh +0 -56
  1685. package/tools/vds-scripts/scripts/openspace_common.sh +0 -75
  1686. package/tools/vds-scripts/scripts/openspace_doctor.sh +0 -61
  1687. package/tools/vds-scripts/scripts/openspace_sync_shadow.sh +0 -65
  1688. package/tools/vds-scripts/scripts/phase7-baseline.sh +0 -77
  1689. package/tools/vds-scripts/scripts/preflight/env_check.sh +0 -102
  1690. package/tools/vds-scripts/scripts/repair_autopay_reports.sh +0 -173
  1691. package/tools/vds-scripts/scripts/rollback_drill.sh +0 -659
  1692. package/tools/vds-scripts/scripts/run-audit-in-tmux.sh +0 -286
  1693. package/tools/vds-scripts/scripts/run-department-audit.sh +0 -495
  1694. package/tools/vds-scripts/scripts/run-project-audit.sh +0 -267
  1695. package/tools/vds-scripts/scripts/save_intellij_memories.py +0 -112
  1696. package/tools/vds-scripts/scripts/save_memories_to_vds_ai.py +0 -81
  1697. package/tools/vds-scripts/scripts/save_memories_vds_style.py +0 -133
  1698. package/tools/vds-scripts/scripts/search_intellij_memories.py +0 -48
  1699. package/tools/vds-scripts/scripts/setup_intellij_workspace.py +0 -71
  1700. package/tools/vds-scripts/scripts/smoke-test-deploy.sh +0 -137
  1701. package/tools/vds-scripts/scripts/smoke_deploy_lib.py +0 -205
  1702. package/tools/vds-scripts/scripts/target-state-automation/README.md +0 -89
  1703. package/tools/vds-scripts/scripts/target-state-automation/confluence_sync_coordinator.sh +0 -27
  1704. package/tools/vds-scripts/scripts/target-state-automation/coordination.sh +0 -114
  1705. package/tools/vds-scripts/scripts/target-state-automation/diagram_coordinator.sh +0 -25
  1706. package/tools/vds-scripts/scripts/target-state-automation/docs_root.sh +0 -22
  1707. package/tools/vds-scripts/scripts/target-state-automation/generate_diagrams.sh +0 -22
  1708. package/tools/vds-scripts/scripts/target-state-automation/markdown_coordinator.sh +0 -25
  1709. package/tools/vds-scripts/scripts/target-state-automation/progress_dashboard.sh +0 -17
  1710. package/tools/vds-scripts/scripts/target-state-automation/schema_coordinator.sh +0 -25
  1711. package/tools/vds-scripts/scripts/target-state-automation/sync_confluence.sh +0 -30
  1712. package/tools/vds-scripts/scripts/target-state-automation/update_dependencies.sh +0 -19
  1713. package/tools/vds-scripts/scripts/target-state-automation/validate_links.sh +0 -86
  1714. package/tools/vds-scripts/scripts/target-state-automation/validate_markdown.sh +0 -52
  1715. package/tools/vds-scripts/scripts/target-state-automation/validate_schemas.sh +0 -26
  1716. package/tools/vds-scripts/scripts/target-state-automation/validate_structure.sh +0 -98
  1717. package/tools/vds-scripts/scripts/tests/__init__.py +0 -1
  1718. package/tools/vds-scripts/scripts/tests/test_dockerfile_correctness.py +0 -815
  1719. package/tools/vds-scripts/scripts/tests/test_makefile_loadouts.py +0 -560
  1720. package/tools/vds-scripts/scripts/tests/test_smoke_deploy.py +0 -313
  1721. package/tools/vds-scripts/scripts/tests/test_verify_alembic.py +0 -581
  1722. package/tools/vds-scripts/scripts/tests/test_verify_infra_topology.py +0 -254
  1723. package/tools/vds-scripts/scripts/update_modules_xml.py +0 -194
  1724. package/tools/vds-scripts/scripts/uv-workspace-alignment-verification-2026-03-25.md +0 -128
  1725. package/tools/vds-scripts/scripts/uv-workspace-alignment-verification-2026-04-18.md +0 -100
  1726. package/tools/vds-scripts/scripts/validate-cli-standardization.sh +0 -188
  1727. package/tools/vds-scripts/scripts/validate_brd_coverage.py +0 -197
  1728. package/tools/vds-scripts/scripts/validate_folder_structure.py +0 -234
  1729. package/tools/vds-scripts/scripts/validate_link_integrity.py +0 -274
  1730. package/tools/vds-scripts/scripts/vami017-caller-compat-report.md +0 -62
  1731. package/tools/vds-scripts/scripts/vami017-phase-b-scaffold-notes.md +0 -79
  1732. package/tools/vds-scripts/scripts/vds_sh_helpers.sh +0 -180
  1733. package/tools/vds-scripts/scripts/verification/phase2_portable_paths_ubuntu_docker.sh +0 -26
  1734. package/tools/vds-scripts/scripts/verify-infra-topology.py +0 -868
  1735. package/tools/vds-scripts/scripts/verify-memory-cli-e2e.sh +0 -598
  1736. package/tools/vds-scripts/scripts/verify-worktree-features.sh +0 -306
  1737. package/tools/vds-scripts/scripts/worktree-add.sh +0 -128
  1738. package/tools/vds-scripts/scripts/worktree-remove.sh +0 -112
  1739. package/tools/vds-scripts/scripts/worktree_compose.sh +0 -269
  1740. package/tools/vds-scripts/scripts/worktree_uv.sh +0 -77
  1741. package/tools/vds-scripts/setup-icloud-nosync.sh +0 -91
  1742. package/tools/vds-scripts/sonarqube_orchestrator/IMPLEMENTATION_AUDIT.md +0 -376
  1743. package/tools/vds-scripts/sonarqube_orchestrator/README.md +0 -507
  1744. package/tools/vds-scripts/sonarqube_orchestrator/pyproject.toml +0 -106
  1745. package/tools/vds-scripts/sonarqube_orchestrator/scripts/ensure_symlink.sh +0 -38
  1746. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/__init__.py +0 -164
  1747. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/batch.py +0 -212
  1748. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/cli.py +0 -1407
  1749. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/client.py +0 -608
  1750. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/config.py +0 -260
  1751. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/diff.py +0 -220
  1752. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/errors.py +0 -34
  1753. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/external_sca.py +0 -932
  1754. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/portfolio.py +0 -225
  1755. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/pr.py +0 -505
  1756. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/reports.py +0 -342
  1757. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/scanner.py +0 -351
  1758. package/tools/vds-scripts/sonarqube_orchestrator/src/vds_sonarqube_orchestrator/webhooks.py +0 -269
  1759. package/tools/vds-scripts/sonarqube_orchestrator/tests/__init__.py +0 -0
  1760. package/tools/vds-scripts/sonarqube_orchestrator/tests/conftest.py +0 -134
  1761. package/tools/vds-scripts/sonarqube_orchestrator/tests/test_batch.py +0 -419
  1762. package/tools/vds-scripts/sonarqube_orchestrator/tests/test_config.py +0 -145
  1763. package/tools/vds-scripts/sonarqube_orchestrator/tests/test_errors.py +0 -78
  1764. package/tools/vds-scripts/sonarqube_orchestrator/tests/test_external_sca.py +0 -466
  1765. package/tools/vds-scripts/sonarqube_orchestrator/tests/test_pr.py +0 -471
  1766. package/tools/vds-scripts/sonarqube_orchestrator/tests/test_reports.py +0 -511
  1767. package/tools/vds-scripts/sonarqube_orchestrator/tests/test_webhooks.py +0 -660
  1768. package/tools/vds-scripts/telegram_bridge/Dockerfile +0 -44
  1769. package/tools/vds-scripts/telegram_bridge/__init__.py +0 -6
  1770. package/tools/vds-scripts/telegram_bridge/alembic/__init__.py +0 -0
  1771. package/tools/vds-scripts/telegram_bridge/alembic/env.py +0 -63
  1772. package/tools/vds-scripts/telegram_bridge/alembic/script.py.mako +0 -24
  1773. package/tools/vds-scripts/telegram_bridge/alembic/versions/0001_telegram_bridge_init.py +0 -193
  1774. package/tools/vds-scripts/telegram_bridge/alembic/versions/0002_polling_state.py +0 -48
  1775. package/tools/vds-scripts/telegram_bridge/alembic/versions/0003_claude_session_store.py +0 -62
  1776. package/tools/vds-scripts/telegram_bridge/alembic.ini +0 -47
  1777. package/tools/vds-scripts/telegram_bridge/cli.py +0 -708
  1778. package/tools/vds-scripts/telegram_bridge/daemon/__init__.py +0 -1
  1779. package/tools/vds-scripts/telegram_bridge/daemon/__main__.py +0 -351
  1780. package/tools/vds-scripts/telegram_bridge/daemon/alembic_head_check.py +0 -116
  1781. package/tools/vds-scripts/telegram_bridge/daemon/audit.py +0 -255
  1782. package/tools/vds-scripts/telegram_bridge/daemon/bot.py +0 -52
  1783. package/tools/vds-scripts/telegram_bridge/daemon/bot_gateway.py +0 -114
  1784. package/tools/vds-scripts/telegram_bridge/daemon/bus.py +0 -106
  1785. package/tools/vds-scripts/telegram_bridge/daemon/commands.py +0 -457
  1786. package/tools/vds-scripts/telegram_bridge/daemon/config.py +0 -129
  1787. package/tools/vds-scripts/telegram_bridge/daemon/dispatcher.py +0 -107
  1788. package/tools/vds-scripts/telegram_bridge/daemon/health_server.py +0 -130
  1789. package/tools/vds-scripts/telegram_bridge/daemon/job_scheduler.py +0 -213
  1790. package/tools/vds-scripts/telegram_bridge/daemon/lifecycle.py +0 -100
  1791. package/tools/vds-scripts/telegram_bridge/daemon/middleware/__init__.py +0 -1
  1792. package/tools/vds-scripts/telegram_bridge/daemon/middleware/allowlist.py +0 -70
  1793. package/tools/vds-scripts/telegram_bridge/daemon/middleware/offset_tracker.py +0 -49
  1794. package/tools/vds-scripts/telegram_bridge/daemon/pg.py +0 -53
  1795. package/tools/vds-scripts/telegram_bridge/daemon/pg_outage_watchdog.py +0 -180
  1796. package/tools/vds-scripts/telegram_bridge/daemon/polling_state.py +0 -64
  1797. package/tools/vds-scripts/telegram_bridge/daemon/preflight.py +0 -106
  1798. package/tools/vds-scripts/telegram_bridge/daemon/registry_loader.py +0 -79
  1799. package/tools/vds-scripts/telegram_bridge/daemon/runner_orchestrator.py +0 -371
  1800. package/tools/vds-scripts/telegram_bridge/daemon/session_registry.py +0 -188
  1801. package/tools/vds-scripts/telegram_bridge/daemon/shim_server.py +0 -331
  1802. package/tools/vds-scripts/telegram_bridge/daemon/throttler.py +0 -501
  1803. package/tools/vds-scripts/telegram_bridge/daemon/topic_promoter.py +0 -343
  1804. package/tools/vds-scripts/telegram_bridge/daemon/uploads.py +0 -165
  1805. package/tools/vds-scripts/telegram_bridge/docker-compose.server.yml +0 -37
  1806. package/tools/vds-scripts/telegram_bridge/docker-compose.telegram.yml +0 -65
  1807. package/tools/vds-scripts/telegram_bridge/jobs/__init__.py +0 -6
  1808. package/tools/vds-scripts/telegram_bridge/jobs/archive_topics.py +0 -161
  1809. package/tools/vds-scripts/telegram_bridge/jobs/rotate_audit.py +0 -264
  1810. package/tools/vds-scripts/telegram_bridge/models/__init__.py +0 -27
  1811. package/tools/vds-scripts/telegram_bridge/models/events.py +0 -123
  1812. package/tools/vds-scripts/telegram_bridge/models/sessions.py +0 -52
  1813. package/tools/vds-scripts/telegram_bridge/models/topics.py +0 -41
  1814. package/tools/vds-scripts/telegram_bridge/pyproject.toml +0 -97
  1815. package/tools/vds-scripts/telegram_bridge/registry.yaml +0 -81
  1816. package/tools/vds-scripts/telegram_bridge/runners/__init__.py +0 -6
  1817. package/tools/vds-scripts/telegram_bridge/runners/_base/__init__.py +0 -1
  1818. package/tools/vds-scripts/telegram_bridge/runners/_base/protocol.py +0 -192
  1819. package/tools/vds-scripts/telegram_bridge/runners/_base/runner.py +0 -245
  1820. package/tools/vds-scripts/telegram_bridge/runners/_base/secret_patterns.py +0 -130
  1821. package/tools/vds-scripts/telegram_bridge/runners/acp/__init__.py +0 -7
  1822. package/tools/vds-scripts/telegram_bridge/runners/acp/__main__.py +0 -56
  1823. package/tools/vds-scripts/telegram_bridge/runners/acp/adapter.py +0 -272
  1824. package/tools/vds-scripts/telegram_bridge/runners/claude/__init__.py +0 -7
  1825. package/tools/vds-scripts/telegram_bridge/runners/claude/__main__.py +0 -61
  1826. package/tools/vds-scripts/telegram_bridge/runners/claude/adapter.py +0 -267
  1827. package/tools/vds-scripts/telegram_bridge/runners/claude/session_store.py +0 -191
  1828. package/tools/vds-scripts/telegram_bridge/runners/claude/upload_tool.py +0 -83
  1829. package/tools/vds-scripts/telegram_bridge/runners/codex/__init__.py +0 -7
  1830. package/tools/vds-scripts/telegram_bridge/runners/codex/__main__.py +0 -50
  1831. package/tools/vds-scripts/telegram_bridge/scripts/verify-tier1.sh +0 -54
  1832. package/tools/vds-scripts/telegram_bridge/scripts/verify-tier3-smoke.sh +0 -145
  1833. package/tools/vds-scripts/telegram_bridge/shim.py +0 -220
  1834. package/tools/vds-scripts/telegram_bridge/skill_content/QUALITY.md +0 -47
  1835. package/tools/vds-scripts/telegram_bridge/skill_content/SKILL.md +0 -99
  1836. package/tools/vds-scripts/telegram_bridge/skill_content/references/CHANGELOG.md +0 -47
  1837. package/tools/vds-scripts/telegram_bridge/skill_content/references/agent-onboarding.md +0 -84
  1838. package/tools/vds-scripts/telegram_bridge/skill_content/references/architecture.md +0 -116
  1839. package/tools/vds-scripts/telegram_bridge/skill_content/references/audit-queries.md +0 -123
  1840. package/tools/vds-scripts/telegram_bridge/skill_content/references/commands.md +0 -84
  1841. package/tools/vds-scripts/telegram_bridge/skill_content/references/setup.md +0 -132
  1842. package/tools/vds-scripts/telegram_bridge/skill_content/references/troubleshooting.md +0 -162
  1843. package/tools/vds-scripts/telegram_bridge/skill_content/references/verification.md +0 -312
  1844. package/tools/vds-scripts/telegram_bridge/skill_content/references/wave-0-spike-results.md +0 -559
  1845. package/tools/vds-scripts/telegram_bridge/tests/__init__.py +0 -0
  1846. package/tools/vds-scripts/telegram_bridge/tests/acceptance/__init__.py +0 -0
  1847. package/tools/vds-scripts/telegram_bridge/tests/acceptance/conftest.py +0 -381
  1848. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_01_first_run_setup.py +0 -47
  1849. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_02_notifier_approver.py +0 -42
  1850. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_03_mobile_remote_control.py +0 -42
  1851. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_04_handoff_continuity.py +0 -88
  1852. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_05_multi_agent.py +0 -132
  1853. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_06_subagent_topic_promotion.py +0 -150
  1854. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_07_subscribe_immediate_promote.py +0 -116
  1855. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_08_file_upload_in.py +0 -215
  1856. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_09_long_block_spill.py +0 -121
  1857. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_10_streaming_throttle.py +0 -90
  1858. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_11_audit_invariant.py +0 -156
  1859. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_12_pg_outage_strict.py +0 -171
  1860. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_13_redaction_in_blob.py +0 -146
  1861. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_14_cli_status_full.py +0 -184
  1862. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_15_allowlist_drop_counter.py +0 -84
  1863. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_16_topic_title_128_cap.py +0 -73
  1864. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_17_idle_timeout_ends.py +0 -110
  1865. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_18_hang_watchdog.py +0 -102
  1866. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_19_topic_creation_race.py +0 -91
  1867. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_20_acp_resource_link.py +0 -121
  1868. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_21_softcap_archive.py +0 -247
  1869. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_22_daemon_restart_continuity.py +0 -47
  1870. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_23_audit_query_cli.py +0 -39
  1871. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_24_cold_rotation.py +0 -38
  1872. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_25_advisory_lock_failfast.py +0 -35
  1873. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_26_token_bucket_fairness.py +0 -34
  1874. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_27_silent_degradation.py +0 -36
  1875. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_28_jsonl_secondary_sink.py +0 -35
  1876. package/tools/vds-scripts/telegram_bridge/tests/acceptance/test_ac_29_ro_mount.py +0 -33
  1877. package/tools/vds-scripts/telegram_bridge/tests/integration/__init__.py +0 -0
  1878. package/tools/vds-scripts/telegram_bridge/tests/integration/conftest.py +0 -196
  1879. package/tools/vds-scripts/telegram_bridge/tests/integration/test_ac_10_audit_forensic_query.py +0 -253
  1880. package/tools/vds-scripts/telegram_bridge/tests/integration/test_ac_11_cold_rotation_roundtrip.py +0 -204
  1881. package/tools/vds-scripts/telegram_bridge/tests/integration/test_ac_25_append_only_trigger.py +0 -188
  1882. package/tools/vds-scripts/telegram_bridge/tests/integration/test_archive_jobs.py +0 -265
  1883. package/tools/vds-scripts/telegram_bridge/tests/integration/test_audit_writer_invariant.py +0 -310
  1884. package/tools/vds-scripts/telegram_bridge/tests/integration/test_claude_session_store.py +0 -202
  1885. package/tools/vds-scripts/telegram_bridge/tests/integration/test_migration_roundtrip.py +0 -231
  1886. package/tools/vds-scripts/telegram_bridge/tests/integration/test_offset_persistence.py +0 -210
  1887. package/tools/vds-scripts/telegram_bridge/tests/integration/test_polling_singleton_constraint.py +0 -81
  1888. package/tools/vds-scripts/telegram_bridge/tests/integration/test_subscriptions.py +0 -194
  1889. package/tools/vds-scripts/telegram_bridge/tests/integration/test_topics_fk_chain.py +0 -216
  1890. package/tools/vds-scripts/telegram_bridge/tests/integration/test_uploads_cas_dedup.py +0 -265
  1891. package/tools/vds-scripts/telegram_bridge/tests/spikes/__init__.py +0 -0
  1892. package/tools/vds-scripts/telegram_bridge/tests/spikes/conftest.py +0 -5
  1893. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_10_acp_schema_drift.py +0 -259
  1894. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_11_telegram_general_topic_api.py +0 -63
  1895. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_12_last_processed_offset.py +0 -56
  1896. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_13_resume_corrupted.py +0 -77
  1897. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_1_telegram_forum_smoke.py +0 -42
  1898. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_2_telegram_file_smoke.py +0 -38
  1899. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_3_telegram_permission_smoke.py +0 -40
  1900. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_4_claude_sdk_hooks_mcp_smoke.py +0 -45
  1901. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_5_session_store_conformance.py +0 -37
  1902. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_6_claude_lock_jsonl_smoke.py +0 -51
  1903. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_7_codex_acp_smoke.py +0 -58
  1904. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_8_generic_acp_smoke.py +0 -57
  1905. package/tools/vds-scripts/telegram_bridge/tests/spikes/test_0_9_daemon_restart_vs_container.py +0 -55
  1906. package/tools/vds-scripts/telegram_bridge/tests/unit/__init__.py +0 -0
  1907. package/tools/vds-scripts/telegram_bridge/tests/unit/test_acp_adapter_full.py +0 -567
  1908. package/tools/vds-scripts/telegram_bridge/tests/unit/test_acp_runner_translate.py +0 -140
  1909. package/tools/vds-scripts/telegram_bridge/tests/unit/test_allowlist_middleware.py +0 -101
  1910. package/tools/vds-scripts/telegram_bridge/tests/unit/test_audit_archive_topics.py +0 -134
  1911. package/tools/vds-scripts/telegram_bridge/tests/unit/test_audit_postgres_unavailable.py +0 -151
  1912. package/tools/vds-scripts/telegram_bridge/tests/unit/test_audit_redact_existing.py +0 -134
  1913. package/tools/vds-scripts/telegram_bridge/tests/unit/test_bot_factory.py +0 -98
  1914. package/tools/vds-scripts/telegram_bridge/tests/unit/test_bot_gateway.py +0 -201
  1915. package/tools/vds-scripts/telegram_bridge/tests/unit/test_bus.py +0 -84
  1916. package/tools/vds-scripts/telegram_bridge/tests/unit/test_claude_adapter.py +0 -580
  1917. package/tools/vds-scripts/telegram_bridge/tests/unit/test_cli_commands.py +0 -459
  1918. package/tools/vds-scripts/telegram_bridge/tests/unit/test_cli_restart.py +0 -65
  1919. package/tools/vds-scripts/telegram_bridge/tests/unit/test_commands.py +0 -641
  1920. package/tools/vds-scripts/telegram_bridge/tests/unit/test_daemon_boot.py +0 -431
  1921. package/tools/vds-scripts/telegram_bridge/tests/unit/test_dispatcher.py +0 -198
  1922. package/tools/vds-scripts/telegram_bridge/tests/unit/test_health_server.py +0 -521
  1923. package/tools/vds-scripts/telegram_bridge/tests/unit/test_job_scheduler.py +0 -226
  1924. package/tools/vds-scripts/telegram_bridge/tests/unit/test_lifecycle_extra.py +0 -149
  1925. package/tools/vds-scripts/telegram_bridge/tests/unit/test_migration_check.py +0 -201
  1926. package/tools/vds-scripts/telegram_bridge/tests/unit/test_models_events.py +0 -72
  1927. package/tools/vds-scripts/telegram_bridge/tests/unit/test_models_sessions.py +0 -34
  1928. package/tools/vds-scripts/telegram_bridge/tests/unit/test_offset_tracker.py +0 -200
  1929. package/tools/vds-scripts/telegram_bridge/tests/unit/test_pg_outage_watchdog.py +0 -207
  1930. package/tools/vds-scripts/telegram_bridge/tests/unit/test_pg_pool.py +0 -124
  1931. package/tools/vds-scripts/telegram_bridge/tests/unit/test_preflight.py +0 -188
  1932. package/tools/vds-scripts/telegram_bridge/tests/unit/test_redaction.py +0 -193
  1933. package/tools/vds-scripts/telegram_bridge/tests/unit/test_registry.py +0 -71
  1934. package/tools/vds-scripts/telegram_bridge/tests/unit/test_registry_loader.py +0 -133
  1935. package/tools/vds-scripts/telegram_bridge/tests/unit/test_rotate_audit.py +0 -416
  1936. package/tools/vds-scripts/telegram_bridge/tests/unit/test_rotate_audit_paths.py +0 -57
  1937. package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_entrypoints.py +0 -309
  1938. package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_internals.py +0 -327
  1939. package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_lifecycle.py +0 -309
  1940. package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_orchestrator.py +0 -895
  1941. package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_orchestrator_translate.py +0 -162
  1942. package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_protocol.py +0 -156
  1943. package/tools/vds-scripts/telegram_bridge/tests/unit/test_runner_reconnect.py +0 -184
  1944. package/tools/vds-scripts/telegram_bridge/tests/unit/test_session_store.py +0 -264
  1945. package/tools/vds-scripts/telegram_bridge/tests/unit/test_session_store_resume_validator.py +0 -109
  1946. package/tools/vds-scripts/telegram_bridge/tests/unit/test_shim.py +0 -52
  1947. package/tools/vds-scripts/telegram_bridge/tests/unit/test_shim_full.py +0 -413
  1948. package/tools/vds-scripts/telegram_bridge/tests/unit/test_shim_server.py +0 -498
  1949. package/tools/vds-scripts/telegram_bridge/tests/unit/test_throttler.py +0 -208
  1950. package/tools/vds-scripts/telegram_bridge/tests/unit/test_throttler_spill.py +0 -176
  1951. package/tools/vds-scripts/telegram_bridge/tests/unit/test_topic_promoter.py +0 -229
  1952. package/tools/vds-scripts/telegram_bridge/tests/unit/test_upload_tool.py +0 -227
  1953. package/tools/vds-scripts/telegram_bridge/tests/unit/test_uploads.py +0 -337
  1954. package/tools/vds-scripts/telegram_bridge/tests/unit/test_uploads_meta.py +0 -91
  1955. package/tools/vds-scripts/uv.lock +0 -6603
  1956. package/tools/vds-scripts/vds-evolution-mono.sh +0 -59
  1957. package/tools/vds-scripts/vds-mail/SKILL.md +0 -185
  1958. package/tools/vds-scripts/vds-mail/scripts/fetch_mail.py +0 -116
  1959. package/tools/vds-scripts/vds-mail/scripts/search_mail.py +0 -131
  1960. package/tools/vds-scripts/vds-mail/scripts/send_mail.py +0 -150
  1961. package/tools/vds-scripts/vds_agent_core/CHANGELOG.md +0 -36
  1962. package/tools/vds-scripts/vds_agent_core/README.md +0 -453
  1963. package/tools/vds-scripts/vds_agent_core/docs/PHASE9A_ASSESSMENT.md +0 -50
  1964. package/tools/vds-scripts/vds_agent_core/docs/embedding.md +0 -468
  1965. package/tools/vds-scripts/vds_agent_core/pyproject.toml +0 -51
  1966. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/__init__.py +0 -29
  1967. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/__init__.py +0 -26
  1968. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/hooks.py +0 -119
  1969. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/loop.py +0 -864
  1970. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/agents/tools.py +0 -41
  1971. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/config.py +0 -252
  1972. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/__init__.py +0 -55
  1973. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/_cascade.py +0 -143
  1974. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/budget.py +0 -353
  1975. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/cache.py +0 -373
  1976. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/embedding.py +0 -815
  1977. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/provider.py +0 -173
  1978. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/llm/schemas.py +0 -45
  1979. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/__init__.py +0 -77
  1980. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/decorators.py +0 -258
  1981. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/jsonl_exporter.py +0 -236
  1982. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/observability/tracer.py +0 -497
  1983. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/profiles.py +0 -2015
  1984. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/runtime/__init__.py +0 -0
  1985. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/runtime/agent_id.py +0 -60
  1986. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/security/__init__.py +0 -13
  1987. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/security/credentials.py +0 -106
  1988. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/__init__.py +0 -1
  1989. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/executor.py +0 -238
  1990. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/manager.py +0 -381
  1991. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/skills/policy.py +0 -568
  1992. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/workflows/__init__.py +0 -19
  1993. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/workflows/langgraph_runner.py +0 -102
  1994. package/tools/vds-scripts/vds_agent_core/src/vds_agent_core/workflows/protocols.py +0 -81
  1995. package/tools/vds-scripts/vds_agent_core/tests/__init__.py +0 -0
  1996. package/tools/vds-scripts/vds_agent_core/tests/conftest.py +0 -62
  1997. package/tools/vds-scripts/vds_agent_core/tests/integration/__init__.py +0 -0
  1998. package/tools/vds-scripts/vds_agent_core/tests/integration/test_audit_loop_hooks_integration.py +0 -135
  1999. package/tools/vds-scripts/vds_agent_core/tests/integration/test_audit_observability_integration.py +0 -246
  2000. package/tools/vds-scripts/vds_agent_core/tests/integration/test_public_api_stability.py +0 -91
  2001. package/tools/vds-scripts/vds_agent_core/tests/unit/__init__.py +0 -0
  2002. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/__init__.py +0 -0
  2003. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_call_site_parallelism.py +0 -30
  2004. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_dimension_guardrail.py +0 -25
  2005. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_drop_in_provider_extensibility.py +0 -76
  2006. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding.py +0 -393
  2007. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding_cache.py +0 -302
  2008. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding_extra.py +0 -696
  2009. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_embedding_subclass.py +0 -49
  2010. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_no_provider_leakage_in_env.py +0 -34
  2011. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_provider_auto_route.py +0 -48
  2012. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_runtime_log_clean.py +0 -111
  2013. package/tools/vds-scripts/vds_agent_core/tests/unit/llm/test_w7_logic_fixes.py +0 -219
  2014. package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/__init__.py +0 -0
  2015. package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_embedding_block_parser.py +0 -194
  2016. package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_env_resolver_allowlist.py +0 -141
  2017. package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_profile_authorization.py +0 -158
  2018. package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_profiles_w3_extra.py +0 -547
  2019. package/tools/vds-scripts/vds_agent_core/tests/unit/profiles/test_real_audit_profile_compat.py +0 -129
  2020. package/tools/vds-scripts/vds_agent_core/tests/unit/runtime/__init__.py +0 -0
  2021. package/tools/vds-scripts/vds_agent_core/tests/unit/runtime/test_for_agent.py +0 -337
  2022. package/tools/vds-scripts/vds_agent_core/tests/unit/runtime/test_w9_cascade_edges.py +0 -369
  2023. package/tools/vds-scripts/vds_agent_core/tests/unit/security/__init__.py +0 -0
  2024. package/tools/vds-scripts/vds_agent_core/tests/unit/security/test_credentials.py +0 -132
  2025. package/tools/vds-scripts/vds_agent_core/tests/unit/test_agent_loop.py +0 -663
  2026. package/tools/vds-scripts/vds_agent_core/tests/unit/test_agent_loop_coverage.py +0 -429
  2027. package/tools/vds-scripts/vds_agent_core/tests/unit/test_agents_hooks_defaults.py +0 -22
  2028. package/tools/vds-scripts/vds_agent_core/tests/unit/test_budget.py +0 -155
  2029. package/tools/vds-scripts/vds_agent_core/tests/unit/test_budget_coverage.py +0 -264
  2030. package/tools/vds-scripts/vds_agent_core/tests/unit/test_budget_tracking_only.py +0 -71
  2031. package/tools/vds-scripts/vds_agent_core/tests/unit/test_cache.py +0 -251
  2032. package/tools/vds-scripts/vds_agent_core/tests/unit/test_cache_context.py +0 -62
  2033. package/tools/vds-scripts/vds_agent_core/tests/unit/test_config.py +0 -155
  2034. package/tools/vds-scripts/vds_agent_core/tests/unit/test_langgraph_runner.py +0 -45
  2035. package/tools/vds-scripts/vds_agent_core/tests/unit/test_langgraph_runner_coverage.py +0 -98
  2036. package/tools/vds-scripts/vds_agent_core/tests/unit/test_llm_cache_deep.py +0 -113
  2037. package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_decorators.py +0 -697
  2038. package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_hooks.py +0 -217
  2039. package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_jsonl_exporter.py +0 -542
  2040. package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_jsonl_wiring.py +0 -313
  2041. package/tools/vds-scripts/vds_agent_core/tests/unit/test_observability_tracer.py +0 -896
  2042. package/tools/vds-scripts/vds_agent_core/tests/unit/test_profiles.py +0 -1571
  2043. package/tools/vds-scripts/vds_agent_core/tests/unit/test_profiles_coverage.py +0 -444
  2044. package/tools/vds-scripts/vds_agent_core/tests/unit/test_provider.py +0 -316
  2045. package/tools/vds-scripts/vds_agent_core/tests/unit/test_schemas.py +0 -63
  2046. package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_executor.py +0 -297
  2047. package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_manager.py +0 -370
  2048. package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_manager_coverage.py +0 -364
  2049. package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_policy.py +0 -402
  2050. package/tools/vds-scripts/vds_agent_core/tests/unit/test_skill_rubric.py +0 -47
  2051. package/tools/vds-scripts/vds_agent_core/tests/unit/test_tools.py +0 -51
  2052. package/tools/vds-scripts/vds_agent_core/tests/unit/test_workflow_protocols.py +0 -136
  2053. package/tools/vds-scripts/vds_cli/README.md +0 -201
  2054. package/tools/vds-scripts/vds_cli/VERIFICATION_REPORT.md +0 -41
  2055. package/tools/vds-scripts/vds_cli/pyproject.toml +0 -53
  2056. package/tools/vds-scripts/vds_cli/src/vds_cli/__init__.py +0 -3
  2057. package/tools/vds-scripts/vds_cli/src/vds_cli/assets/git-credential-helper.py +0 -235
  2058. package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +0 -1166
  2059. package/tools/vds-scripts/vds_cli/src/vds_cli/commands/__init__.py +0 -1
  2060. package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +0 -370
  2061. package/tools/vds-scripts/vds_cli/src/vds_cli/confluence_sync.py +0 -846
  2062. package/tools/vds-scripts/vds_cli/src/vds_cli/docs/consumption/__init__.py +0 -7
  2063. package/tools/vds-scripts/vds_cli/src/vds_cli/docs/consumption/funnel.py +0 -105
  2064. package/tools/vds-scripts/vds_cli/src/vds_cli/docs/consumption/scanner.py +0 -211
  2065. package/tools/vds-scripts/vds_cli/src/vds_cli/docs/freshness/report.py +0 -90
  2066. package/tools/vds-scripts/vds_cli/src/vds_cli/docs/types.py +0 -27
  2067. package/tools/vds-scripts/vds_cli/src/vds_cli/docs_cmd.py +0 -672
  2068. package/tools/vds-scripts/vds_cli/src/vds_cli/docs_metrics.py +0 -75
  2069. package/tools/vds-scripts/vds_cli/src/vds_cli/docs_sync.py +0 -1171
  2070. package/tools/vds-scripts/vds_cli/src/vds_cli/ecosystem/__init__.py +0 -39
  2071. package/tools/vds-scripts/vds_cli/src/vds_cli/ecosystem/report.py +0 -439
  2072. package/tools/vds-scripts/vds_cli/src/vds_cli/ecosystem_docs.py +0 -164
  2073. package/tools/vds-scripts/vds_cli/src/vds_cli/env.py +0 -111
  2074. package/tools/vds-scripts/vds_cli/src/vds_cli/env_git_helper.py +0 -281
  2075. package/tools/vds-scripts/vds_cli/src/vds_cli/google_sheets_orchestrator/__init__.py +0 -3
  2076. package/tools/vds-scripts/vds_cli/src/vds_cli/google_sheets_orchestrator/google_sheets_orchestrator.py +0 -173
  2077. package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -258
  2078. package/tools/vds-scripts/vds_cli/src/vds_cli/skills_cmd.py +0 -274
  2079. package/tools/vds-scripts/vds_cli/src/vds_cli/sync_api.py +0 -613
  2080. package/tools/vds-scripts/vds_cli/src/vds_cli/sync_service.py +0 -283
  2081. package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -60
  2082. package/tools/vds-scripts/vds_cli/tests/test_env_git_helper_lifecycle.py +0 -261
  2083. package/tools/vds-scripts/vds_cli/tests/test_git_credential_helper.py +0 -240
  2084. package/tools/vds-scripts/vds_cli/tests/test_router_help_proxy.py +0 -43
  2085. package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -245
  2086. package/tools/vds-scripts/vds_cli/tests/unit/test_cli_DOC004.py +0 -110
  2087. package/tools/vds-scripts/vds_cli/tests/unit/test_confluence_sync.py +0 -315
  2088. package/tools/vds-scripts/vds_cli/tests/unit/test_confluence_sync_wave7.py +0 -375
  2089. package/tools/vds-scripts/vds_cli/tests/unit/test_consumption_funnel.py +0 -106
  2090. package/tools/vds-scripts/vds_cli/tests/unit/test_consumption_scanner.py +0 -144
  2091. package/tools/vds-scripts/vds_cli/tests/unit/test_docs_cmd.py +0 -89
  2092. package/tools/vds-scripts/vds_cli/tests/unit/test_docs_cmd_wave8.py +0 -161
  2093. package/tools/vds-scripts/vds_cli/tests/unit/test_docs_metrics.py +0 -16
  2094. package/tools/vds-scripts/vds_cli/tests/unit/test_docs_quality_score.py +0 -61
  2095. package/tools/vds-scripts/vds_cli/tests/unit/test_docs_sync.py +0 -417
  2096. package/tools/vds-scripts/vds_cli/tests/unit/test_ecosystem_cli_dashboard.py +0 -667
  2097. package/tools/vds-scripts/vds_cli/tests/unit/test_ecosystem_cli_dashboard_rendering.py +0 -143
  2098. package/tools/vds-scripts/vds_cli/tests/unit/test_ecosystem_docs.py +0 -63
  2099. package/tools/vds-scripts/vds_cli/tests/unit/test_env.py +0 -85
  2100. package/tools/vds-scripts/vds_cli/tests/unit/test_freshness_report.py +0 -125
  2101. package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +0 -224
  2102. package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -135
  2103. package/tools/vds-scripts/vds_cli/tests/unit/test_skills_cmd.py +0 -419
  2104. package/tools/vds-scripts/vds_cli/tests/unit/test_sync_api.py +0 -357
  2105. package/tools/vds-scripts/vds_cli/tests/unit/test_sync_service.py +0 -170
  2106. package/tools/vds-scripts/vds_cli/tests/verification/conftest.py +0 -51
  2107. package/tools/vds-scripts/vds_cli/tests/verification/test_bitbucket_real.py +0 -32
  2108. package/tools/vds-scripts/vds_cli/tests/verification/test_confluence_real.py +0 -32
  2109. package/tools/vds-scripts/vds_cli/tests/verification/test_jira_real.py +0 -40
  2110. package/tools/vds-scripts/vds_cli_common/README.md +0 -190
  2111. package/tools/vds-scripts/vds_cli_common/pyproject.toml +0 -96
  2112. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/__init__.py +0 -36
  2113. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/app.py +0 -55
  2114. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/completers.py +0 -139
  2115. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/context.py +0 -201
  2116. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/env.py +0 -163
  2117. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/errors.py +0 -440
  2118. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/output.py +0 -284
  2119. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/paths.py +0 -78
  2120. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/testing.py +0 -211
  2121. package/tools/vds-scripts/vds_cli_common/src/vds_cli_common/version.py +0 -85
  2122. package/tools/vds-scripts/vds_cli_common/tests/__init__.py +0 -0
  2123. package/tools/vds-scripts/vds_cli_common/tests/test_app.py +0 -126
  2124. package/tools/vds-scripts/vds_cli_common/tests/test_completers.py +0 -148
  2125. package/tools/vds-scripts/vds_cli_common/tests/test_context.py +0 -192
  2126. package/tools/vds-scripts/vds_cli_common/tests/test_env.py +0 -235
  2127. package/tools/vds-scripts/vds_cli_common/tests/test_errors.py +0 -275
  2128. package/tools/vds-scripts/vds_cli_common/tests/test_output.py +0 -229
  2129. package/tools/vds-scripts/vds_cli_common/tests/test_paths.py +0 -61
  2130. package/tools/vds-scripts/vds_cli_common/tests/test_testing.py +0 -138
  2131. package/tools/vds-scripts/vds_cli_common/tests/test_version.py +0 -64
  2132. package/tools/vds-scripts/vds_evolution/README.md +0 -123
  2133. package/tools/vds-scripts/vds_evolution/collaboration/tests/__init__.py +0 -0
  2134. package/tools/vds-scripts/vds_evolution/collaboration/tests/test_capability_registry.py +0 -177
  2135. package/tools/vds-scripts/vds_evolution/pyproject.toml +0 -66
  2136. package/tools/vds-scripts/vds_evolution/src/vds_evolution/__init__.py +0 -26
  2137. package/tools/vds-scripts/vds_evolution/src/vds_evolution/audit.py +0 -210
  2138. package/tools/vds-scripts/vds_evolution/src/vds_evolution/auto_promote.py +0 -220
  2139. package/tools/vds-scripts/vds_evolution/src/vds_evolution/branch_guard.py +0 -522
  2140. package/tools/vds-scripts/vds_evolution/src/vds_evolution/classifier.py +0 -181
  2141. package/tools/vds-scripts/vds_evolution/src/vds_evolution/cli.py +0 -831
  2142. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/__init__.py +0 -3
  2143. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/capability_registry.py +0 -191
  2144. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/cross_skill_detector.py +0 -180
  2145. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/integration_pattern_gen.py +0 -154
  2146. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/propagator.py +0 -99
  2147. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/router_integration.py +0 -72
  2148. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/schemas/tool-decision-matrix-schema.json +0 -50
  2149. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/skill_graph_indexer.py +0 -46
  2150. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/__init__.py +0 -0
  2151. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_capability_registry.py +0 -177
  2152. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_cross_skill_detector.py +0 -131
  2153. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_integration_pattern_gen.py +0 -94
  2154. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_propagator.py +0 -94
  2155. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_router_integration.py +0 -63
  2156. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_skill_graph_indexer.py +0 -31
  2157. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tests/test_tool_decision_matrix.py +0 -100
  2158. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tool_decision_matrix.py +0 -142
  2159. package/tools/vds-scripts/vds_evolution/src/vds_evolution/collaboration/tool_decision_matrix.yaml +0 -82
  2160. package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/__init__.py +0 -40
  2161. package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/behavioral.py +0 -232
  2162. package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/ensemble_judge.py +0 -461
  2163. package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/schemas/calibration-manifest.schema.json +0 -49
  2164. package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/schemas/test-dataset.schema.json +0 -43
  2165. package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/semantic.py +0 -290
  2166. package/tools/vds-scripts/vds_evolution/src/vds_evolution/gates/structural.py +0 -297
  2167. package/tools/vds-scripts/vds_evolution/src/vds_evolution/hmac_binding.py +0 -233
  2168. package/tools/vds-scripts/vds_evolution/src/vds_evolution/models.py +0 -381
  2169. package/tools/vds-scripts/vds_evolution/src/vds_evolution/openspace_integration.py +0 -1300
  2170. package/tools/vds-scripts/vds_evolution/src/vds_evolution/promote.py +0 -327
  2171. package/tools/vds-scripts/vds_evolution/src/vds_evolution/reconciler.py +0 -880
  2172. package/tools/vds-scripts/vds_evolution/src/vds_evolution/router.py +0 -435
  2173. package/tools/vds-scripts/vds_evolution/src/vds_evolution/shadow.py +0 -156
  2174. package/tools/vds-scripts/vds_evolution/src/vds_evolution/switch.py +0 -154
  2175. package/tools/vds-scripts/vds_evolution/tests/__init__.py +0 -0
  2176. package/tools/vds-scripts/vds_evolution/tests/integration/__init__.py +0 -0
  2177. package/tools/vds-scripts/vds_evolution/tests/integration/test_killswitch_cycle_boundary.py +0 -837
  2178. package/tools/vds-scripts/vds_evolution/tests/integration/test_openspace_integration.py +0 -1342
  2179. package/tools/vds-scripts/vds_evolution/tests/unit/__init__.py +0 -0
  2180. package/tools/vds-scripts/vds_evolution/tests/unit/test_classifier.py +0 -110
  2181. package/tools/vds-scripts/vds_evolution/tests/unit/test_cli_openspace_runtime.py +0 -43
  2182. package/tools/vds-scripts/vds_evolution/tests/unit/test_gate1.py +0 -216
  2183. package/tools/vds-scripts/vds_evolution/tests/unit/test_gate2.py +0 -178
  2184. package/tools/vds-scripts/vds_evolution/tests/unit/test_gate3.py +0 -221
  2185. package/tools/vds-scripts/vds_evolution/tests/unit/test_models.py +0 -340
  2186. package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/__init__.py +0 -0
  2187. package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/test_auto_promote.py +0 -44
  2188. package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/test_ensemble_judge.py +0 -79
  2189. package/tools/vds-scripts/vds_evolution/tests/unit/test_phase3_plus/test_hmac_binding.py +0 -86
  2190. package/tools/vds-scripts/vds_evolution/tests/unit/test_reconciler.py +0 -315
  2191. package/tools/vds-scripts/vds_evolution/tests/unit/test_router.py +0 -90
  2192. package/tools/vds-scripts/vds_evolution/uv.lock +0 -797
  2193. package/tools/vds-scripts/vds_memory_client/pyproject.toml +0 -61
  2194. package/tools/vds-scripts/vds_memory_client/src/vds_memory_client/__init__.py +0 -7
  2195. package/tools/vds-scripts/vds_memory_client/src/vds_memory_client/client.py +0 -876
  2196. package/tools/vds-scripts/vds_memory_client/tests/__init__.py +0 -0
  2197. package/tools/vds-scripts/vds_memory_client/tests/test_client.py +0 -821
  2198. package/tools/vds-scripts/vds_memory_client/tests/test_dedup_threshold_phase216.py +0 -69
  2199. package/tools/vds-scripts/vds_memory_client/tests/test_maintenance_methods_phase217.py +0 -403
  2200. package/tools/vds-scripts/vds_memory_client/tests/test_warm_cache.py +0 -70
  2201. package/tools/vds-scripts/vds_sync_orchestrator/pyproject.toml +0 -65
  2202. package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/__init__.py +0 -22
  2203. package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/discovery.py +0 -60
  2204. package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/executor.py +0 -226
  2205. package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/facade.py +0 -103
  2206. package/tools/vds-scripts/vds_sync_orchestrator/src/vds_sync_orchestrator/models.py +0 -103
  2207. package/tools/vds-scripts/vds_sync_orchestrator/tests/__init__.py +0 -0
  2208. package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/__init__.py +0 -0
  2209. package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_discovery.py +0 -115
  2210. package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_executor.py +0 -259
  2211. package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_facade.py +0 -181
  2212. package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_isolation.py +0 -58
  2213. package/tools/vds-scripts/vds_sync_orchestrator/tests/unit/test_models.py +0 -172
  2214. package/tools/vds-scripts/vidp_orchestrator/README.md +0 -31
  2215. package/tools/vds-scripts/vidp_orchestrator/pyproject.toml +0 -50
  2216. package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/__init__.py +0 -26
  2217. package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/cli.py +0 -246
  2218. package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/client.py +0 -104
  2219. package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/config.py +0 -82
  2220. package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/workflows.json +0 -3
  2221. package/tools/vds-scripts/vidp_orchestrator/src/vds_vidp_orchestrator/workflows.py +0 -130
  2222. /package/{tools/skills → skills/sdlc}/bmad-advanced-elicitation/SKILL.md +0 -0
  2223. /package/{tools/skills → skills/sdlc}/bmad-advanced-elicitation/methods.csv +0 -0
  2224. /package/{tools/skills → skills/sdlc}/bmad-agent-analyst/SKILL.md +0 -0
  2225. /package/{tools/skills → skills/sdlc}/bmad-agent-analyst/bmad-skill-manifest.yaml +0 -0
  2226. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/SKILL.md +0 -0
  2227. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/brain-methods.csv +0 -0
  2228. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-01-session-setup.md +0 -0
  2229. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-01b-continue.md +0 -0
  2230. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02a-user-selected.md +0 -0
  2231. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02b-ai-recommended.md +0 -0
  2232. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02c-random-selection.md +0 -0
  2233. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-02d-progressive-flow.md +0 -0
  2234. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-03-technique-execution.md +0 -0
  2235. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/steps/step-04-idea-organization.md +0 -0
  2236. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/template.md +0 -0
  2237. /package/{tools/skills → skills/sdlc}/bmad-brainstorming/workflow.md +0 -0
  2238. /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/SKILL.md +0 -0
  2239. /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-01-document-discovery.md +0 -0
  2240. /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-02-prd-analysis.md +0 -0
  2241. /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-03-epic-coverage-validation.md +0 -0
  2242. /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-04-ux-alignment.md +0 -0
  2243. /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-05-epic-quality-review.md +0 -0
  2244. /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/steps/step-06-final-assessment.md +0 -0
  2245. /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/templates/readiness-report-template.md +0 -0
  2246. /package/{tools/skills → skills/sdlc}/bmad-check-implementation-readiness/workflow.md +0 -0
  2247. /package/{tools/skills → skills/sdlc}/bmad-code-review/SKILL.md +0 -0
  2248. /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-01-gather-context.md +0 -0
  2249. /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-02-review.md +0 -0
  2250. /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-03-triage.md +0 -0
  2251. /package/{tools/skills → skills/sdlc}/bmad-code-review/steps/step-04-present.md +0 -0
  2252. /package/{tools/skills → skills/sdlc}/bmad-code-review/workflow.md +0 -0
  2253. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/SKILL.md +0 -0
  2254. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/architecture-decision-template.md +0 -0
  2255. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/data/domain-complexity.csv +0 -0
  2256. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/data/project-types.csv +0 -0
  2257. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-01-init.md +0 -0
  2258. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-01b-continue.md +0 -0
  2259. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-02-context.md +0 -0
  2260. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-03-starter.md +0 -0
  2261. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-04-decisions.md +0 -0
  2262. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-05-patterns.md +0 -0
  2263. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-06-structure.md +0 -0
  2264. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-07-validation.md +0 -0
  2265. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/steps/step-08-complete.md +0 -0
  2266. /package/{tools/skills → skills/sdlc}/bmad-create-architecture/workflow.md +0 -0
  2267. /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/SKILL.md +0 -0
  2268. /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-01-validate-prerequisites.md +0 -0
  2269. /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-02-design-epics.md +0 -0
  2270. /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-03-create-stories.md +0 -0
  2271. /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/steps/step-04-final-validation.md +0 -0
  2272. /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/templates/epics-template.md +0 -0
  2273. /package/{tools/skills → skills/sdlc}/bmad-create-epics-and-stories/workflow.md +0 -0
  2274. /package/{tools/skills → skills/sdlc}/bmad-create-prd/SKILL.md +0 -0
  2275. /package/{tools/skills → skills/sdlc}/bmad-create-prd/data/domain-complexity.csv +0 -0
  2276. /package/{tools/skills → skills/sdlc}/bmad-create-prd/data/prd-purpose.md +0 -0
  2277. /package/{tools/skills → skills/sdlc}/bmad-create-prd/data/project-types.csv +0 -0
  2278. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-01-init.md +0 -0
  2279. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-01b-continue.md +0 -0
  2280. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-02-discovery.md +0 -0
  2281. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-02b-vision.md +0 -0
  2282. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-02c-executive-summary.md +0 -0
  2283. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-03-success.md +0 -0
  2284. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-04-journeys.md +0 -0
  2285. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-05-domain.md +0 -0
  2286. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-06-innovation.md +0 -0
  2287. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-07-project-type.md +0 -0
  2288. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-08-scoping.md +0 -0
  2289. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-09-functional.md +0 -0
  2290. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-10-nonfunctional.md +0 -0
  2291. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-11-polish.md +0 -0
  2292. /package/{tools/skills → skills/sdlc}/bmad-create-prd/steps-c/step-12-complete.md +0 -0
  2293. /package/{tools/skills → skills/sdlc}/bmad-create-prd/templates/prd-template.md +0 -0
  2294. /package/{tools/skills → skills/sdlc}/bmad-create-prd/workflow.md +0 -0
  2295. /package/{tools/skills → skills/sdlc}/bmad-domain-research/SKILL.md +0 -0
  2296. /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-01-init.md +0 -0
  2297. /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-02-domain-analysis.md +0 -0
  2298. /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-03-competitive-landscape.md +0 -0
  2299. /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-04-regulatory-focus.md +0 -0
  2300. /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-05-technical-trends.md +0 -0
  2301. /package/{tools/skills → skills/sdlc}/bmad-domain-research/domain-steps/step-06-research-synthesis.md +0 -0
  2302. /package/{tools/skills → skills/sdlc}/bmad-domain-research/research.template.md +0 -0
  2303. /package/{tools/skills → skills/sdlc}/bmad-domain-research/workflow.md +0 -0
  2304. /package/{tools/skills → skills/sdlc}/bmad-party-mode/SKILL.md +0 -0
  2305. /package/{tools/skills → skills/sdlc}/bmad-prfaq/SKILL.md +0 -0
  2306. /package/{tools/skills → skills/sdlc}/bmad-prfaq/agents/artifact-analyzer.md +0 -0
  2307. /package/{tools/skills → skills/sdlc}/bmad-prfaq/agents/web-researcher.md +0 -0
  2308. /package/{tools/skills → skills/sdlc}/bmad-prfaq/assets/prfaq-template.md +0 -0
  2309. /package/{tools/skills → skills/sdlc}/bmad-prfaq/bmad-manifest.json +0 -0
  2310. /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/customer-faq.md +0 -0
  2311. /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/internal-faq.md +0 -0
  2312. /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/press-release.md +0 -0
  2313. /package/{tools/skills → skills/sdlc}/bmad-prfaq/references/verdict.md +0 -0
  2314. /package/{tools/skills → skills/sdlc}/bmad-qa-generate-e2e-tests/SKILL.md +0 -0
  2315. /package/{tools/skills → skills/sdlc}/bmad-qa-generate-e2e-tests/checklist.md +0 -0
  2316. /package/{tools/skills → skills/sdlc}/bmad-qa-generate-e2e-tests/workflow.md +0 -0
  2317. /package/{tools/skills → skills/sdlc}/bmad-review-adversarial-general/SKILL.md +0 -0
  2318. /package/{tools/skills → skills/sdlc}/bmad-review-edge-case-hunter/SKILL.md +0 -0
  2319. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/SKILL.md +0 -0
  2320. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/data/domain-complexity.csv +0 -0
  2321. /package/{tools/skills/bmad-edit-prd → skills/sdlc/bmad-validate-prd}/data/prd-purpose.md +0 -0
  2322. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/data/project-types.csv +0 -0
  2323. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-01-discovery.md +0 -0
  2324. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-02-format-detection.md +0 -0
  2325. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-02b-parity-check.md +0 -0
  2326. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-03-density-validation.md +0 -0
  2327. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-04-brief-coverage-validation.md +0 -0
  2328. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-05-measurability-validation.md +0 -0
  2329. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-06-traceability-validation.md +0 -0
  2330. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -0
  2331. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-08-domain-compliance-validation.md +0 -0
  2332. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-09-project-type-validation.md +0 -0
  2333. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-10-smart-validation.md +0 -0
  2334. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-11-holistic-quality-validation.md +0 -0
  2335. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-12-completeness-validation.md +0 -0
  2336. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/steps-v/step-v-13-report-complete.md +0 -0
  2337. /package/{tools/skills → skills/sdlc}/bmad-validate-prd/workflow.md +0 -0
@@ -1,3160 +0,0 @@
1
- """Typer CLI wrapper for Confluence operations during the native Python implementations."""
2
-
3
- from __future__ import annotations
4
-
5
- import json
6
- import logging
7
- import os
8
- import sys
9
- from dataclasses import asdict, dataclass
10
- from datetime import UTC, datetime
11
- from pathlib import Path
12
- from typing import Any, cast
13
- from urllib.parse import urlparse
14
-
15
- import structlog
16
- import typer
17
- from vds_platform_core.logging import configure_structlog
18
-
19
- from .config import ConfluenceSettings, load_settings
20
- from .content import ContentClient
21
- from .content_v2 import ContentClientV2
22
- from .crawl_tree import CrawlOptions, crawl_tree_to_disk
23
- from .errors import VDSClientError
24
- from .eventing import Poller
25
- from .http import ConfluenceClient
26
- from .orchestration import BatchRunner, WebhookClient
27
- from .reporting import RunSummary, write_reports
28
- from .tree_copier import CopyOptions, TreeCopier
29
-
30
- # ---------------------------------------------------------------------------
31
- # Typer setup & logging
32
- # ---------------------------------------------------------------------------
33
-
34
- app = typer.Typer(add_completion=False, help="Confluence operations orchestrator")
35
- content_app = typer.Typer(help="Native Confluence API commands")
36
- batch_app = typer.Typer(help="Batch polling utilities (REST v1)")
37
- webhook_app = typer.Typer(help="Webhook management (REST v1)")
38
- app.add_typer(content_app, name="content")
39
- app.add_typer(batch_app, name="batch-native")
40
- app.add_typer(webhook_app, name="webhook-native")
41
-
42
- # Logger will be configured in main() callback
43
- logger = logging.getLogger("confluence_cli")
44
-
45
- # ---------------------------------------------------------------------------
46
- # Paths and legacy script mapping
47
- # ---------------------------------------------------------------------------
48
-
49
- _SCRIPTS_DIR = Path(__file__).resolve().parents[3]
50
- _DEFAULT_REPORT_DIR = (_SCRIPTS_DIR / "reports" / "confluence_runs").resolve()
51
-
52
-
53
- @dataclass(slots=True)
54
- class CLIContext:
55
- report_dir: Path
56
- markdown: bool
57
- api_version: str
58
- reports: bool
59
-
60
-
61
- # ---------------------------------------------------------------------------
62
- # Helper functions
63
- # ---------------------------------------------------------------------------
64
-
65
-
66
- def _normalise_server(server: str | None, settings: ConfluenceSettings) -> str:
67
- return server.lower() if server else settings.default_server.lower()
68
-
69
-
70
- def _infer_server_from_root_ref(root_ref: str, settings: ConfluenceSettings) -> str | None:
71
- root_ref = (root_ref or "").strip()
72
- if not root_ref:
73
- return None
74
-
75
- parsed = urlparse(root_ref)
76
- if not parsed.scheme or not parsed.netloc:
77
- return None
78
-
79
- target = parsed.netloc.lower()
80
- internal = urlparse(str(settings.internal_url)).netloc.lower()
81
- external = urlparse(str(settings.external_url)).netloc.lower()
82
-
83
- if target == internal:
84
- return "internal"
85
- if target == external:
86
- return "external"
87
- return None
88
-
89
-
90
- def _build_env(server: str, settings: ConfluenceSettings) -> dict:
91
- token = settings.token_for(server)
92
- if not token and not (settings.username and settings.password):
93
- raise VDSClientError(
94
- f"Credentials for server '{server}' are missing. Provide VDS_USERNAME+VDS_PASSWORD as the primary auth mechanism or tokens "
95
- "(INTERNAL_CONFLUENCE_TOKEN/EXTERNAL_CONFLUENCE_TOKEN) as fallback.",
96
- context={"server": server},
97
- )
98
- env = os.environ.copy()
99
- env.update(
100
- {
101
- "CONFLUENCE_SERVER": server,
102
- "CONFLUENCE_TOKEN": token or "",
103
- "CONFLUENCE_URL": str(settings.url_for(server)),
104
- "INTERNAL_CONFLUENCE_TOKEN": settings.internal_token or "",
105
- "EXTERNAL_CONFLUENCE_TOKEN": settings.external_token or "",
106
- }
107
- )
108
- return env
109
-
110
-
111
- def _build_http_client(settings: ConfluenceSettings, server: str) -> ConfluenceClient:
112
- return ConfluenceClient(settings, server=server)
113
-
114
-
115
- def _get_cli_ctx(ctx: typer.Context) -> CLIContext:
116
- cli_ctx = ctx.obj
117
- if not isinstance(cli_ctx, CLIContext):
118
- raise RuntimeError("CLI context not initialised")
119
- return cli_ctx
120
-
121
-
122
- def _ensure_v1_api(_ctx: typer.Context, _command: str) -> None:
123
- """Legacy command guard - redirects to native implementations."""
124
- settings = load_settings(strict=False)
125
- if settings is None:
126
- typer.echo("Error: configuration not found", err=True)
127
- raise typer.Exit(code=1) from None
128
-
129
-
130
- def _build_content_client(
131
- settings: ConfluenceSettings,
132
- server: str,
133
- api_version: str,
134
- ):
135
- http_client = _build_http_client(settings, server)
136
- if not http_client.supports_api_version(api_version):
137
- raise VDSClientError(
138
- f"API version '{api_version}' is not supported for server '{server}'.",
139
- context={"server": server, "api_version": api_version},
140
- )
141
- if api_version == "v1":
142
- return ContentClient(http_client)
143
- if api_version == "v2":
144
- return ContentClientV2(http_client)
145
- raise VDSClientError(f"Unsupported API version '{api_version}'")
146
-
147
-
148
- def _record_summary(
149
- ctx: typer.Context,
150
- *,
151
- command: str,
152
- args: list[str],
153
- server: str,
154
- exit_code: int,
155
- started_at: datetime,
156
- finished_at: datetime,
157
- ) -> None:
158
- cli_ctx = _get_cli_ctx(ctx)
159
- summary = RunSummary(
160
- command=command,
161
- args=args,
162
- server=server,
163
- exit_code=exit_code,
164
- duration_ms=int((finished_at - started_at).total_seconds() * 1000),
165
- started_at=started_at,
166
- finished_at=finished_at,
167
- )
168
- if cli_ctx.reports:
169
- write_reports(summary, base_dir=cli_ctx.report_dir, include_markdown=cli_ctx.markdown)
170
-
171
-
172
- def _emit_json(payload: object) -> None:
173
- text = json.dumps(payload, indent=2, sort_keys=True)
174
- if sys.stdout.isatty():
175
- typer.echo(text)
176
- else:
177
- sys.stdout.write(text + "\n")
178
-
179
-
180
- def _expand_option(value: str | None) -> list[str] | None:
181
- if not value:
182
- return None
183
- return [part.strip() for part in value.split(",") if part.strip()]
184
-
185
-
186
- def _content_summary_args(
187
- *, cql: str | None = None, limit: int | None = None, start: int | None = None, space: str | None = None
188
- ) -> list[str]:
189
- parts: list[str] = []
190
- if cql is not None:
191
- parts.append(cql)
192
- if limit is not None:
193
- parts.append(f"limit={limit}")
194
- if start is not None:
195
- parts.append(f"start={start}")
196
- if space is not None:
197
- parts.append(f"space={space}")
198
- return parts
199
-
200
-
201
- def _read_text_file(path: Path) -> str:
202
- if not path.exists():
203
- raise typer.BadParameter(f"File not found: {path}")
204
- if path.is_dir():
205
- raise typer.BadParameter(f"Expected file but found directory: {path}")
206
- try:
207
- return path.read_text(encoding="utf-8")
208
- except OSError as exc:
209
- raise typer.BadParameter(f"Unable to read file {path}: {exc}") from exc
210
-
211
-
212
- def _parse_json_option(value: str | None, option_name: str) -> dict[str, Any] | None:
213
- if value is None:
214
- return None
215
- try:
216
- parsed = json.loads(value)
217
- except json.JSONDecodeError as exc:
218
- raise typer.BadParameter(f"Invalid JSON for {option_name}: {exc}") from exc
219
- if not isinstance(parsed, dict):
220
- raise typer.BadParameter(f"{option_name} must decode to a JSON object")
221
- return parsed
222
-
223
-
224
- def _parent_context(ctx: typer.Context) -> typer.Context:
225
- return cast("typer.Context", ctx.parent or ctx)
226
-
227
-
228
- # ---------------------------------------------------------------------------
229
- # Typer callbacks & native commands
230
- # ---------------------------------------------------------------------------
231
-
232
-
233
- @app.callback()
234
- def main(
235
- ctx: typer.Context,
236
- report_dir: Path | None = typer.Option(
237
- None, help="Directory for run reports (default: <vds-scripts>/reports/confluence_runs)"
238
- ),
239
- markdown: bool = typer.Option(True, help="Emit Markdown summaries alongside JSON reports"),
240
- reports: bool = typer.Option(True, "--reports/--no-reports", help="Persist run reports to disk"),
241
- json_only: bool = typer.Option(
242
- False,
243
- "--json-only",
244
- help="Emit JSON to stdout only (disables reports and markdown)",
245
- ),
246
- api_version: str = typer.Option("v1", "--api-version", "-A", help="Select REST API version (v1 or v2)"),
247
- structured_logs: bool = typer.Option(
248
- False, "--structured-logs/--no-structured-logs", help="Emit structured JSON logs to stderr"
249
- ),
250
- ) -> None:
251
- resolved = report_dir.resolve() if report_dir else _DEFAULT_REPORT_DIR
252
- version = api_version.lower()
253
- if version not in {"v1", "v2"}:
254
- raise typer.BadParameter("api-version must be one of: v1, v2")
255
- if json_only:
256
- markdown = False
257
- reports = False
258
-
259
- # Configure logging/structlog
260
- if structured_logs or json_only:
261
- configure_structlog(
262
- json_logs=structured_logs, quiet=json_only and not structured_logs, cache_logger=structured_logs
263
- )
264
- if structured_logs:
265
- global logger
266
- logger = structlog.get_logger("confluence_cli") # type: ignore[assignment]
267
-
268
- ctx.obj = CLIContext(report_dir=resolved, markdown=markdown, api_version=version, reports=reports)
269
-
270
-
271
- @app.command("templates")
272
- def cmd_templates(
273
- ctx: typer.Context,
274
- args: list[str] | None = typer.Argument(
275
- None, help="Additional arguments for template operations", show_default=False, metavar="ARGS"
276
- ),
277
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
278
- limit: int = typer.Option(20, "--limit", "-l", help="Number of templates to list"),
279
- space_key: str | None = typer.Option(None, "--space", "-k", help="Space key filter"),
280
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
281
- ) -> None:
282
- """Native Python template management"""
283
- parent_ctx = _parent_context(ctx)
284
- started_at = datetime.now(UTC)
285
-
286
- try:
287
- settings = load_settings(strict=True)
288
- server_key = _normalise_server(server, settings)
289
- client = _build_content_client(settings, server_key, parent_ctx.obj.api_version)
290
-
291
- # Use native Python implementation
292
- if hasattr(client, "list_templates"):
293
- result = client.list_templates(space_key=space_key)
294
- else:
295
- result = {"templates": [], "message": "Templates API not available for this server"}
296
-
297
- if json_output:
298
- _emit_json(result)
299
- else:
300
- templates_payload = []
301
- if isinstance(result, dict):
302
- templates_payload = (
303
- result.get("blueprints")
304
- or result.get("templates")
305
- or result.get("results")
306
- or result.get("contentTemplates")
307
- or []
308
- )
309
- elif isinstance(result, list):
310
- templates_payload = result
311
-
312
- count = len(templates_payload)
313
- typer.echo(f"Found {count} templates:")
314
- for template in templates_payload[:limit]:
315
- if isinstance(template, dict):
316
- name = template.get("name", "Unknown")
317
- template_id = template.get("templateId") or template.get("id") or template.get("uuid") or "Unknown"
318
- else:
319
- name = str(template)
320
- template_id = "Unknown"
321
- typer.echo(f" - {name} (ID: {template_id})")
322
-
323
- exit_code = 0
324
- finished_at = datetime.now(UTC)
325
- _record_summary(
326
- parent_ctx,
327
- command="templates",
328
- args=args or [],
329
- server=server_key,
330
- exit_code=exit_code,
331
- started_at=started_at,
332
- finished_at=finished_at,
333
- )
334
-
335
- if exit_code != 0:
336
- raise typer.Exit(code=exit_code) from None
337
-
338
- except Exception as exc:
339
- logger.exception("templates_command_failed: %s", exc)
340
- typer.echo(f"Error: {exc}", err=True)
341
- raise typer.Exit(code=1) from None
342
-
343
-
344
- @app.command("batch")
345
- def cmd_batch(
346
- _ctx: typer.Context,
347
- _args: list[str] | None = typer.Argument(
348
- None, help="Use 'confluence content batch --help' for available subcommands", show_default=False, metavar="ARGS"
349
- ),
350
- _server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
351
- ) -> None:
352
- """Legacy batch command - use 'confluence content batch' subcommands instead."""
353
- typer.echo("Error: The 'batch' command is deprecated. Use 'confluence content batch' subcommands:", err=True)
354
- typer.echo(" confluence content batch scan --cql '<query>' [options]", err=True)
355
- typer.echo(" confluence content batch snapshot --cql '<query>' [options]", err=True)
356
- raise typer.Exit(code=1) from None
357
-
358
-
359
- @app.command("webhooks")
360
- def cmd_webhooks(
361
- ctx: typer.Context,
362
- args: list[str] | None = typer.Argument(
363
- None, help="Additional arguments for webhook operations", show_default=False, metavar="ARGS"
364
- ),
365
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
366
- list_webhooks: bool = typer.Option(False, "--list", "-l", help="List existing webhooks"),
367
- create_name: str | None = typer.Option(None, "--name", "-n", help="Webhook name"),
368
- create_url: str | None = typer.Option(None, "--url", "-u", help="Webhook URL"),
369
- create_event: str | None = typer.Option(None, "--event", "-e", help="Event type"),
370
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
371
- ) -> None:
372
- """Native Python webhook management"""
373
- parent_ctx = _parent_context(ctx)
374
- started_at = datetime.now(UTC)
375
-
376
- server_key = "internal"
377
- try:
378
- settings = load_settings(strict=True)
379
- server_key = _normalise_server(server, settings)
380
- webhook_client = WebhookClient(_build_http_client(settings, server_key))
381
-
382
- if list_webhooks or (not create_name and not create_url and not create_event):
383
- # List webhooks
384
- result = webhook_client.list()
385
- if json_output or not sys.stdout.isatty():
386
- _emit_json(result)
387
- else:
388
- result_payload = result if isinstance(result, dict) else {"webhooks": result}
389
- webhooks_raw = result_payload.get("webhooks", [])
390
- webhooks = (
391
- [item for item in webhooks_raw if isinstance(item, dict)] if isinstance(webhooks_raw, list) else []
392
- )
393
- count = len(webhooks)
394
- typer.echo(f"Found {count} webhooks:")
395
- for webhook in webhooks:
396
- name = webhook.get("name", "Unknown")
397
- url = webhook.get("url", "Unknown")
398
- events = webhook.get("events", [])
399
- typer.echo(f" - {name}: {url} (events: {', '.join(events)})")
400
-
401
- elif create_name and create_url and create_event:
402
- # Create webhook
403
- result = webhook_client.create(name=create_name, url=create_url, events=[create_event])
404
- if json_output or not sys.stdout.isatty():
405
- _emit_json(result)
406
- else:
407
- webhook_id = result.get("id", "Unknown")
408
- typer.echo(f"Created webhook '{create_name}' with ID: {webhook_id}")
409
-
410
- else:
411
- typer.echo(
412
- "Error: Either use --list to list webhooks or provide --name, --url, and --event to create", err=True
413
- )
414
- raise typer.Exit(code=1) from None
415
-
416
- exit_code = 0
417
- finished_at = datetime.now(UTC)
418
- _record_summary(
419
- parent_ctx,
420
- command="webhooks",
421
- args=args or [],
422
- server=server_key,
423
- exit_code=exit_code,
424
- started_at=started_at,
425
- finished_at=finished_at,
426
- )
427
-
428
- if exit_code != 0:
429
- raise typer.Exit(code=exit_code) from None
430
-
431
- except Exception as exc:
432
- logger.exception("webhooks_command_failed: %s", exc)
433
- typer.echo(f"Error: {exc}", err=True)
434
- raise typer.Exit(code=1) from None
435
-
436
-
437
- @app.command("search")
438
- def cmd_search(
439
- ctx: typer.Context,
440
- args: list[str] | None = typer.Argument(
441
- None, help="Additional arguments for CQL search", show_default=False, metavar="ARGS"
442
- ),
443
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
444
- cql: str = typer.Option(..., "--cql", "-q", help="CQL query string"),
445
- limit: int = typer.Option(25, "--limit", "-l", help="Number of results"),
446
- start: int = typer.Option(0, "--start", help="Pagination start"),
447
- expand: str | None = typer.Option(None, "--expand", help="Comma separated expansions"),
448
- excerpt: str | None = typer.Option(None, "--excerpt", help="Excerpt strategy (e.g., 'highlighted', 'indexed')"),
449
- advanced: bool = typer.Option(False, "--advanced", help="Use advanced CQL search with additional options"),
450
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
451
- ) -> None:
452
- """Native Python CQL search. Use --advanced for additional options like excerpt."""
453
- parent_ctx = _parent_context(ctx)
454
- started_at = datetime.now(UTC)
455
- server_key = "internal"
456
-
457
- try:
458
- settings = load_settings(strict=True)
459
- server_key = _normalise_server(server, settings)
460
- client = _build_content_client(settings, server_key, parent_ctx.obj.api_version)
461
-
462
- # Use native Python implementation
463
- expand_list = _expand_option(expand) if expand else None
464
- if advanced or excerpt:
465
- result = client.cql_advanced(cql, limit=limit, start=start, expand=expand_list, excerpt=excerpt)
466
- else:
467
- result = client.search_cql(cql, limit=limit, start=start, expand=expand_list)
468
-
469
- if json_output or not sys.stdout.isatty():
470
- _emit_json(result)
471
- else:
472
- results = result.get("results", [])
473
- count = len(results)
474
- total = result.get("size", 0)
475
- typer.echo(f"Found {count} of {total} results for CQL: {cql}")
476
- for item in results:
477
- title = item.get("title", "Unknown")
478
- page_id = item.get("id", "Unknown")
479
- space = item.get("space", {}).get("key", "Unknown")
480
- typer.echo(f" - {title} (ID: {page_id}, Space: {space})")
481
-
482
- exit_code = 0
483
- finished_at = datetime.now(UTC)
484
- _record_summary(
485
- parent_ctx,
486
- command="search",
487
- args=args or [],
488
- server=server_key,
489
- exit_code=exit_code,
490
- started_at=started_at,
491
- finished_at=finished_at,
492
- )
493
-
494
- if exit_code != 0:
495
- raise typer.Exit(code=exit_code) from None
496
-
497
- except Exception as exc:
498
- logger.exception("search_command_failed: %s", exc)
499
-
500
-
501
- @content_app.command("child-pages")
502
- def cmd_child_pages(
503
- ctx: typer.Context,
504
- page_id: str = typer.Argument(..., help="Parent page ID"),
505
- expand: str | None = typer.Option(None, "--expand", help="Comma separated expansions"),
506
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
507
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
508
- ) -> None:
509
- """Get child pages using the direct API endpoint (faster than CQL)."""
510
- parent_ctx = _parent_context(ctx)
511
- started_at = datetime.now(UTC)
512
- exit_code = 0
513
- server_key = "internal"
514
-
515
- try:
516
- settings = load_settings(strict=True)
517
- server_key = _normalise_server(server, settings)
518
- client = _build_content_client(settings, server_key, parent_ctx.obj.api_version)
519
- expand_list = _expand_option(expand)
520
-
521
- results = client.get_child_pages(page_id, expand=expand_list)
522
-
523
- if json_output or not sys.stdout.isatty():
524
- _emit_json(results)
525
- else:
526
- count = len(results)
527
- typer.echo(f"Found {count} child pages for {page_id}:")
528
- for item in results:
529
- title = item.get("title", "Unknown")
530
- child_id = item.get("id", "Unknown")
531
- typer.echo(f" - {title} (ID: {child_id})")
532
-
533
- except Exception as exc:
534
- exit_code = 1
535
- logger.exception("child_pages_failed: %s", exc)
536
- typer.echo(f"Error: {exc}", err=True)
537
- finally:
538
- finished_at = datetime.now(UTC)
539
- _record_summary(
540
- parent_ctx,
541
- command="child-pages",
542
- args=[page_id],
543
- server=server_key if "server_key" in locals() else "internal",
544
- exit_code=exit_code,
545
- started_at=started_at,
546
- finished_at=finished_at,
547
- )
548
- if exit_code != 0:
549
- raise typer.Exit(code=exit_code) from None
550
-
551
-
552
- @app.command("search-by-space-type")
553
- def cmd_search_by_space_type(
554
- ctx: typer.Context,
555
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
556
- space_key: str | None = typer.Option(None, "--space", help="Space key to filter by"),
557
- content_type: str | None = typer.Option(None, "--type", help="Content type (e.g., 'page', 'blogpost', 'comment')"),
558
- limit: int = typer.Option(25, "--limit", "-l", help="Number of results"),
559
- start: int = typer.Option(0, "--start", help="Pagination start"),
560
- expand: str | None = typer.Option(None, "--expand", help="Comma separated expansions"),
561
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
562
- ) -> None:
563
- """Search by space and/or content type (helper that builds CQL automatically)."""
564
- parent_ctx = _parent_context(ctx)
565
- started_at = datetime.now(UTC)
566
- exit_code = 0
567
- server_key = "internal"
568
-
569
- try:
570
- if not space_key and not content_type:
571
- raise typer.BadParameter("At least one of --space or --type must be provided")
572
-
573
- settings = load_settings(strict=True)
574
- server_key = _normalise_server(server, settings)
575
- client = _build_content_client(settings, server_key, parent_ctx.obj.api_version)
576
-
577
- expand_list = _expand_option(expand) if expand else None
578
- result = client.search_by_space_and_type(
579
- space_key=space_key,
580
- content_type=content_type,
581
- limit=limit,
582
- start=start,
583
- expand=expand_list,
584
- )
585
-
586
- if json_output or not sys.stdout.isatty():
587
- _emit_json(result)
588
- else:
589
- results = result.get("results", [])
590
- count = len(results)
591
- total = result.get("size", 0)
592
- typer.echo(f"Found {count} of {total} results")
593
- for item in results:
594
- title = item.get("title", "Unknown")
595
- page_id = item.get("id", "Unknown")
596
- space = item.get("space", {}).get("key", "Unknown")
597
- item_type = item.get("type", "Unknown")
598
- typer.echo(f" - {title} (ID: {page_id}, Space: {space}, Type: {item_type})")
599
-
600
- exit_code = 0
601
- except (typer.BadParameter, Exception) as exc:
602
- exit_code = 1
603
- logger.exception("search_by_space_type_failed: %s", exc)
604
- typer.echo(f"Error: {exc}", err=True)
605
- finally:
606
- finished_at = datetime.now(UTC)
607
- args_list: list[str] = []
608
- if space_key:
609
- args_list.append(f"space={space_key}")
610
- if content_type:
611
- args_list.append(f"type={content_type}")
612
- _record_summary(
613
- parent_ctx,
614
- command="search-by-space-type",
615
- args=args_list,
616
- server=server_key,
617
- exit_code=exit_code,
618
- started_at=started_at,
619
- finished_at=finished_at,
620
- )
621
- if exit_code != 0:
622
- raise typer.Exit(code=exit_code) from None
623
-
624
-
625
- @app.command("attachments")
626
- def cmd_attachments(
627
- ctx: typer.Context,
628
- args: list[str] | None = typer.Argument(
629
- None, help="Additional arguments for attachment operations", show_default=False, metavar="ARGS"
630
- ),
631
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
632
- page_id: str | None = typer.Option(None, "--page", "-p", help="Page ID for attachments"),
633
- list_attachments: bool = typer.Option(False, "--list", "-l", help="List attachments for page"),
634
- upload_file: str | None = typer.Option(None, "--upload", "-f", help="File to upload"),
635
- comment: str | None = typer.Option(None, "--comment", "-c", help="Upload comment"),
636
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
637
- ) -> None:
638
- """Native Python attachment management"""
639
- parent_ctx = _parent_context(ctx)
640
- started_at = datetime.now(UTC)
641
-
642
- try:
643
- settings = load_settings(strict=True)
644
- server_key = _normalise_server(server, settings)
645
- client = _build_content_client(settings, server_key, parent_ctx.obj.api_version)
646
-
647
- if list_attachments or (page_id and not upload_file):
648
- # List attachments
649
- if not page_id:
650
- typer.echo("Error: --page ID required for listing attachments", err=True)
651
- raise typer.Exit(code=1) from None
652
-
653
- result = client.list_attachments(page_id)
654
- if json_output or not sys.stdout.isatty():
655
- _emit_json(result)
656
- else:
657
- attachments = result.get("results", [])
658
- count = len(attachments)
659
- typer.echo(f"Found {count} attachments for page {page_id}:")
660
- for attachment in attachments:
661
- name = attachment.get("title", "Unknown")
662
- size = attachment.get("size", 0)
663
- typer.echo(f" - {name} ({size} bytes)")
664
-
665
- elif upload_file and page_id:
666
- # Upload attachment
667
- file_path = Path(upload_file)
668
- if not file_path.exists():
669
- typer.echo(f"Error: File not found: {upload_file}", err=True)
670
- raise typer.Exit(code=1) from None
671
-
672
- result = client.upload_attachment(page_id, file_path, comment=comment)
673
- if json_output or not sys.stdout.isatty():
674
- _emit_json(result)
675
- else:
676
- attachment_id = result.get("id", "Unknown")
677
- typer.echo(f"Uploaded attachment '{file_path.name}' with ID: {attachment_id}")
678
-
679
- else:
680
- typer.echo("Error: Either use --list with --page or provide --page and --upload", err=True)
681
- raise typer.Exit(code=1) from None
682
-
683
- exit_code = 0
684
- finished_at = datetime.now(UTC)
685
- _record_summary(
686
- parent_ctx,
687
- command="attachments",
688
- args=args or [],
689
- server=server_key,
690
- exit_code=exit_code,
691
- started_at=started_at,
692
- finished_at=finished_at,
693
- )
694
-
695
- if exit_code != 0:
696
- raise typer.Exit(code=exit_code) from None
697
-
698
- except Exception as exc:
699
- logger.exception("attachments_command_failed: %s", exc)
700
- typer.echo(f"Error: {exc}", err=True)
701
- raise typer.Exit(code=1) from None
702
-
703
-
704
- @app.command("space-permissions")
705
- def cmd_space_permissions(
706
- ctx: typer.Context,
707
- action: str = typer.Argument(..., help="Action: get, set, remove"),
708
- space_key: str = typer.Option(..., "--space-key", "-k", help="Confluence space key"),
709
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
710
- user_key: str | None = typer.Option(None, "--user", "-u", help="User key for user-targeted operations"),
711
- group_name: str | None = typer.Option(None, "--group", "-g", help="Group name for group-targeted operations"),
712
- anonymous: bool = typer.Option(False, "--anonymous", help="Target anonymous permissions"),
713
- operations: list[str] = typer.Option(
714
- [],
715
- "--operation",
716
- "-o",
717
- help="Space permission operation key (repeatable, e.g., administer, read)",
718
- ),
719
- permissions_file: Path | None = typer.Option(
720
- None,
721
- "--permissions-file",
722
- help="JSON object/array with bulk permission definitions (target.type: user|group|anonymous, operations: [...])",
723
- ),
724
- yes: bool = typer.Option(False, "--yes", help="Confirm write operations"),
725
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
726
- ) -> None:
727
- """Manage Confluence space permissions."""
728
-
729
- parent_ctx = _parent_context(ctx)
730
- started_at = datetime.now(UTC)
731
- exit_code = 0
732
- result_payload: dict[str, Any] = {}
733
- args_summary: list[str] = []
734
- server_key: str | None = None
735
- settings: ConfluenceSettings | None = None
736
-
737
- try:
738
- settings = load_settings(strict=True)
739
- server_key = _normalise_server(server, settings)
740
- client = _build_http_client(settings, server_key)
741
-
742
- resolved_operations = operations or None
743
- args_summary = [
744
- action,
745
- f"space={space_key}",
746
- f"user={user_key}",
747
- f"group={group_name}",
748
- f"anonymous={anonymous}",
749
- f"operations={operations}",
750
- f"permissions_file={permissions_file}",
751
- ]
752
-
753
- if action == "get":
754
- result = client.get_space_permissions(space_key)
755
- result_payload = {"space": space_key, "permissions": result}
756
-
757
- elif action == "set":
758
- if not yes:
759
- raise typer.BadParameter("--yes required for write operations")
760
-
761
- targets = [bool(user_key), bool(group_name), anonymous, bool(permissions_file)]
762
- if sum(1 for flag in targets if flag) != 1:
763
- raise typer.BadParameter(
764
- "Provide exactly one of --user, --group, --anonymous, or --permissions-file for set action"
765
- )
766
-
767
- if permissions_file:
768
- file_content = _read_text_file(permissions_file)
769
- try:
770
- parsed = json.loads(file_content)
771
- except json.JSONDecodeError as exc:
772
- raise typer.BadParameter(f"Invalid JSON in permissions file: {exc}") from exc
773
-
774
- if isinstance(parsed, dict):
775
- items: list[dict[str, Any]] = [parsed]
776
- elif isinstance(parsed, list):
777
- if not all(isinstance(item, dict) for item in parsed):
778
- raise typer.BadParameter("--permissions-file list entries must be JSON objects")
779
- items = parsed # type: ignore[assignment]
780
- else:
781
- raise typer.BadParameter("--permissions-file must contain a JSON object or array")
782
-
783
- result = client.set_permissions_to_multiple_items_for_space(space_key, items)
784
- result_payload = {"space": space_key, "bulk": True, "items_processed": len(items), "result": result}
785
-
786
- elif user_key:
787
- if not resolved_operations:
788
- raise typer.BadParameter("At least one --operation required when setting user permissions")
789
- result = client.set_permissions_to_user_for_space(
790
- space_key,
791
- user_key,
792
- operations=resolved_operations,
793
- )
794
- result_payload = {
795
- "space": space_key,
796
- "target": {"type": "user", "key": user_key},
797
- "operations": resolved_operations,
798
- "result": result,
799
- }
800
-
801
- elif group_name:
802
- if not resolved_operations:
803
- raise typer.BadParameter("At least one --operation required when setting group permissions")
804
- result = client.set_permissions_to_group_for_space(
805
- space_key,
806
- group_name,
807
- operations=resolved_operations,
808
- )
809
- result_payload = {
810
- "space": space_key,
811
- "target": {"type": "group", "name": group_name},
812
- "operations": resolved_operations,
813
- "result": result,
814
- }
815
-
816
- elif anonymous:
817
- if not resolved_operations:
818
- raise typer.BadParameter("At least one --operation required when setting anonymous permissions")
819
- result = client.set_permissions_to_anonymous_for_space(
820
- space_key,
821
- operations=resolved_operations,
822
- )
823
- result_payload = {
824
- "space": space_key,
825
- "target": {"type": "anonymous"},
826
- "operations": resolved_operations,
827
- "result": result,
828
- }
829
-
830
- elif action == "remove":
831
- if not yes:
832
- raise typer.BadParameter("--yes required for write operations")
833
-
834
- targets = [bool(user_key), bool(group_name), anonymous]
835
- if sum(1 for flag in targets if flag) != 1:
836
- raise typer.BadParameter("Provide exactly one of --user, --group, or --anonymous for remove action")
837
-
838
- if user_key:
839
- result = client.remove_permissions_from_user_for_space(space_key, user_key)
840
- result_payload = {
841
- "space": space_key,
842
- "target": {"type": "user", "key": user_key},
843
- "result": result,
844
- }
845
-
846
- elif group_name:
847
- result = client.remove_permissions_from_group_for_space(space_key, group_name)
848
- result_payload = {
849
- "space": space_key,
850
- "target": {"type": "group", "name": group_name},
851
- "result": result,
852
- }
853
-
854
- elif anonymous:
855
- result = client.remove_permissions_from_anonymous_for_space(space_key)
856
- result_payload = {
857
- "space": space_key,
858
- "target": {"type": "anonymous"},
859
- "result": result,
860
- }
861
-
862
- else:
863
- raise typer.BadParameter(f"Unknown action: {action}")
864
-
865
- if json_output or not sys.stdout.isatty():
866
- _emit_json(result_payload)
867
- else:
868
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
869
-
870
- except (VDSClientError, typer.BadParameter) as exc:
871
- exit_code = 1
872
- logger.exception("space_permissions_command_failed: %s", exc)
873
- typer.echo(f"Error: {exc}", err=True)
874
- except Exception as exc: # pragma: no cover - unexpected errors
875
- exit_code = 1
876
- logger.exception("space_permissions_command_unexpected")
877
- typer.echo(f"Error: {exc}", err=True)
878
- finally:
879
- finished_at = datetime.now(UTC)
880
- server_label = server_key or (server.lower() if server else "internal")
881
- _record_summary(
882
- parent_ctx,
883
- command="space-permissions",
884
- args=args_summary,
885
- server=server_label,
886
- exit_code=exit_code,
887
- started_at=started_at,
888
- finished_at=finished_at,
889
- )
890
- if exit_code != 0:
891
- raise typer.Exit(code=exit_code) from None
892
-
893
-
894
- @app.command("space-management")
895
- def cmd_space_management(
896
- ctx: typer.Context,
897
- action: str = typer.Argument(..., help="Action: archive, trash-list, trash-remove"),
898
- space_key: str = typer.Option(..., "--space-key", "-k", help="Confluence space key"),
899
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
900
- cursor: str | None = typer.Option(None, "--cursor", help="Pagination cursor for trash-list"),
901
- limit: int = typer.Option(50, "--limit", help="Limit for trash-list (max 100)"),
902
- expand: str | None = typer.Option(None, "--expand", help="Comma separated expansions for trash-list"),
903
- yes: bool = typer.Option(False, "--yes", help="Confirm write operations"),
904
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
905
- ) -> None:
906
- """Manage Confluence space lifecycle operations."""
907
-
908
- parent_ctx = _parent_context(ctx)
909
- started_at = datetime.now(UTC)
910
- exit_code = 0
911
- result_payload: dict[str, Any] = {}
912
- args_summary: list[str] = []
913
- server_key: str | None = None
914
- settings: ConfluenceSettings | None = None
915
-
916
- try:
917
- if limit < 1 or limit > 100:
918
- raise typer.BadParameter("--limit must be between 1 and 100")
919
-
920
- settings = load_settings(strict=True)
921
- server_key = _normalise_server(server, settings)
922
- client = _build_http_client(settings, server_key)
923
-
924
- expand_value = expand if expand else None
925
- args_summary = [
926
- action,
927
- f"space={space_key}",
928
- f"cursor={cursor}",
929
- f"limit={limit}",
930
- f"expand={expand_value}",
931
- ]
932
-
933
- if action == "archive":
934
- if not yes:
935
- raise typer.BadParameter("--yes required for archive")
936
- result = client.archive_space(space_key)
937
- result_payload = {"space": space_key, "action": "archive", "result": result}
938
-
939
- elif action == "trash-list":
940
- result = client.get_trashed_contents_by_space(
941
- space_key,
942
- cursor=cursor,
943
- expand=expand_value,
944
- limit=limit,
945
- )
946
- result_payload = {
947
- "space": space_key,
948
- "action": "trash-list",
949
- "result": result,
950
- }
951
-
952
- elif action == "trash-remove":
953
- if not yes:
954
- raise typer.BadParameter("--yes required for trash-remove")
955
- result = client.remove_trashed_contents_by_space(space_key)
956
- result_payload = {"space": space_key, "action": "trash-remove", "result": result}
957
-
958
- else:
959
- raise typer.BadParameter(f"Unknown action: {action}")
960
-
961
- if json_output or not sys.stdout.isatty():
962
- _emit_json(result_payload)
963
- else:
964
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
965
-
966
- except (VDSClientError, typer.BadParameter) as exc:
967
- exit_code = 1
968
- logger.exception("space_management_failed: %s", exc)
969
- typer.echo(f"Error: {exc}", err=True)
970
- except Exception as exc: # pragma: no cover - unexpected errors
971
- exit_code = 1
972
- logger.exception("space_management_unexpected_error")
973
- typer.echo(f"Error: {exc}", err=True)
974
- finally:
975
- finished_at = datetime.now(UTC)
976
- server_label = server_key or (server.lower() if server else "internal")
977
- _record_summary(
978
- parent_ctx,
979
- command="space-management",
980
- args=args_summary,
981
- server=server_label,
982
- exit_code=exit_code,
983
- started_at=started_at,
984
- finished_at=finished_at,
985
- )
986
- if exit_code != 0:
987
- raise typer.Exit(code=exit_code) from None
988
-
989
-
990
- @app.command("group")
991
- def cmd_group(
992
- ctx: typer.Context,
993
- action: str = typer.Argument(..., help="Action: list, members"),
994
- group_name: str | None = typer.Option(None, "--group", "-g", help="Group name (for members)"),
995
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
996
- start: int = typer.Option(0, "--start", help="Start index for pagination"),
997
- limit: int = typer.Option(1000, "--limit", help="Limit for pagination (max 1000)"),
998
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
999
- ) -> None:
1000
- """Manage Confluence groups."""
1001
- parent_ctx = _parent_context(ctx)
1002
- started_at = datetime.now(UTC)
1003
- exit_code = 0
1004
- result_payload: dict[str, Any] = {}
1005
- args_summary: list[str] = []
1006
- server_key: str | None = None
1007
- settings: ConfluenceSettings | None = None
1008
-
1009
- try:
1010
- if limit < 1 or limit > 1000:
1011
- raise typer.BadParameter("--limit must be between 1 and 1000")
1012
-
1013
- settings = load_settings(strict=True)
1014
- server_key = _normalise_server(server, settings)
1015
- client = _build_http_client(settings, server_key)
1016
-
1017
- args_summary = [action, f"start={start}", f"limit={limit}"]
1018
-
1019
- if action == "list":
1020
- result = client.get_all_groups(start=start, limit=limit)
1021
- result_payload = {"count": len(result), "groups": result}
1022
-
1023
- elif action == "members":
1024
- if not group_name:
1025
- raise typer.BadParameter("--group required for members action")
1026
- args_summary.append(f"group={group_name}")
1027
- result = client.get_group_members(group_name, start=start, limit=limit)
1028
- result_payload = {"group": group_name, "count": len(result), "members": result}
1029
-
1030
- else:
1031
- raise typer.BadParameter(f"Unknown action: {action}")
1032
-
1033
- if json_output or not sys.stdout.isatty():
1034
- _emit_json(result_payload)
1035
- else:
1036
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
1037
-
1038
- except (VDSClientError, typer.BadParameter) as exc:
1039
- exit_code = 1
1040
- logger.exception("group_failed: %s", exc)
1041
- typer.echo(f"Error: {exc}", err=True)
1042
- except Exception as exc: # pragma: no cover - unexpected errors
1043
- exit_code = 1
1044
- logger.exception("group_unexpected_error")
1045
- typer.echo(f"Error: {exc}", err=True)
1046
- finally:
1047
- finished_at = datetime.now(UTC)
1048
- server_label = server_key or (server.lower() if server else "internal")
1049
- _record_summary(
1050
- parent_ctx,
1051
- command="group",
1052
- args=args_summary,
1053
- server=server_label,
1054
- exit_code=exit_code,
1055
- started_at=started_at,
1056
- finished_at=finished_at,
1057
- )
1058
- if exit_code != 0:
1059
- raise typer.Exit(code=exit_code) from None
1060
-
1061
-
1062
- @app.command("user")
1063
- def cmd_user(
1064
- ctx: typer.Context,
1065
- action: str = typer.Argument(..., help="Action: get, password, group-add, group-remove"),
1066
- username: str | None = typer.Option(None, "--username", "-u", help="Username"),
1067
- userkey: str | None = typer.Option(None, "--userkey", help="User key"),
1068
- group_name: str | None = typer.Option(None, "--group", "-g", help="Group name (for group-add/group-remove)"),
1069
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
1070
- expand: str | None = typer.Option(None, "--expand", help="Comma-separated fields to expand (for get)"),
1071
- new_password: str | None = typer.Option(None, "--new-password", help="New password (for password)"),
1072
- yes: bool = typer.Option(False, "--yes", help="Confirm write operations"),
1073
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
1074
- ) -> None:
1075
- """Manage Confluence users."""
1076
- parent_ctx = _parent_context(ctx)
1077
- started_at = datetime.now(UTC)
1078
- exit_code = 0
1079
- result_payload: dict[str, Any] = {}
1080
- args_summary: list[str] = []
1081
- server_key: str | None = None
1082
- settings: ConfluenceSettings | None = None
1083
-
1084
- try:
1085
- settings = load_settings(strict=True)
1086
- server_key = _normalise_server(server, settings)
1087
- client = _build_http_client(settings, server_key)
1088
-
1089
- args_summary = [action]
1090
-
1091
- if action == "get":
1092
- if not username and not userkey:
1093
- raise typer.BadParameter("Provide --username or --userkey for get action")
1094
- if username and userkey:
1095
- raise typer.BadParameter("Provide either --username or --userkey, not both")
1096
- expand_value = expand if expand else None
1097
- args_summary.append(f"username={username}" if username else f"userkey={userkey}")
1098
- if expand_value:
1099
- args_summary.append(f"expand={expand_value}")
1100
-
1101
- if username:
1102
- result = client.get_user_details_by_username(username, expand=expand_value)
1103
- else:
1104
- assert userkey is not None
1105
- result = client.get_user_details_by_userkey(userkey, expand=expand_value)
1106
- result_payload = {"user": result}
1107
-
1108
- elif action == "password":
1109
- if not yes:
1110
- raise typer.BadParameter("--yes required for password change")
1111
- if not username:
1112
- raise typer.BadParameter("--username required for password action")
1113
- if not new_password:
1114
- raise typer.BadParameter("--new-password required for password action")
1115
- args_summary.append(f"username={username}")
1116
- client.change_user_password(username, new_password)
1117
- result_payload = {"username": username, "status": "password_changed"}
1118
-
1119
- elif action == "group-add":
1120
- if not yes:
1121
- raise typer.BadParameter("--yes required for group-add")
1122
- if not username:
1123
- raise typer.BadParameter("--username required for group-add")
1124
- if not group_name:
1125
- raise typer.BadParameter("--group required for group-add")
1126
- args_summary.append(f"username={username}")
1127
- args_summary.append(f"group={group_name}")
1128
- client.add_user_to_group(username, group_name)
1129
- result_payload = {"username": username, "group": group_name, "status": "added"}
1130
-
1131
- elif action == "group-remove":
1132
- if not yes:
1133
- raise typer.BadParameter("--yes required for group-remove")
1134
- if not username:
1135
- raise typer.BadParameter("--username required for group-remove")
1136
- if not group_name:
1137
- raise typer.BadParameter("--group required for group-remove")
1138
- args_summary.append(f"username={username}")
1139
- args_summary.append(f"group={group_name}")
1140
- client.remove_user_from_group(username, group_name)
1141
- result_payload = {"username": username, "group": group_name, "status": "removed"}
1142
-
1143
- else:
1144
- raise typer.BadParameter(f"Unknown action: {action}")
1145
-
1146
- if json_output or not sys.stdout.isatty():
1147
- _emit_json(result_payload)
1148
- else:
1149
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
1150
-
1151
- except (VDSClientError, typer.BadParameter) as exc:
1152
- exit_code = 1
1153
- logger.exception("user_failed: %s", exc)
1154
- typer.echo(f"Error: {exc}", err=True)
1155
- except Exception as exc: # pragma: no cover - unexpected errors
1156
- exit_code = 1
1157
- logger.exception("user_unexpected_error")
1158
- typer.echo(f"Error: {exc}", err=True)
1159
- finally:
1160
- finished_at = datetime.now(UTC)
1161
- server_label = server_key or (server.lower() if server else "internal")
1162
- _record_summary(
1163
- parent_ctx,
1164
- command="user",
1165
- args=args_summary,
1166
- server=server_label,
1167
- exit_code=exit_code,
1168
- started_at=started_at,
1169
- finished_at=finished_at,
1170
- )
1171
- if exit_code != 0:
1172
- raise typer.Exit(code=exit_code) from None
1173
-
1174
-
1175
- @app.command("export")
1176
- def cmd_export(
1177
- ctx: typer.Context,
1178
- action: str = typer.Argument(..., help="Action: page, space"),
1179
- page_id: str | None = typer.Option(None, "--page-id", help="Page ID (for page)"),
1180
- space_key: str | None = typer.Option(None, "--space-key", "-k", help="Space key (for space)"),
1181
- export_type: str | None = typer.Option(None, "--export-type", help="Export type: pdf, html, xml (for space)"),
1182
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
1183
- output: Path | None = typer.Option(None, "--output", "-o", help="Output file path (for page PDF)"),
1184
- api_version: str | None = typer.Option(
1185
- None, "--api-version", help="API version: cloud, server (for page, auto-detected if not specified)"
1186
- ),
1187
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
1188
- ) -> None:
1189
- """Export Confluence pages or spaces."""
1190
- parent_ctx = _parent_context(ctx)
1191
- started_at = datetime.now(UTC)
1192
- exit_code = 0
1193
- result_payload: dict[str, Any] = {}
1194
- args_summary: list[str] = []
1195
- server_key: str | None = None
1196
- settings: ConfluenceSettings | None = None
1197
-
1198
- try:
1199
- settings = load_settings(strict=True)
1200
- server_key = _normalise_server(server, settings)
1201
- client = _build_http_client(settings, server_key)
1202
-
1203
- args_summary = [action]
1204
-
1205
- if action == "page":
1206
- if not page_id:
1207
- raise typer.BadParameter("--page-id required for page action")
1208
- args_summary.append(f"page_id={page_id}")
1209
- if api_version:
1210
- args_summary.append(f"api_version={api_version}")
1211
-
1212
- pdf_bytes = client.export_page(page_id, api_version=api_version)
1213
-
1214
- if output:
1215
- output.write_bytes(pdf_bytes)
1216
- result_payload = {"page_id": page_id, "output_file": str(output), "size_bytes": len(pdf_bytes)}
1217
- typer.echo(f"Exported page {page_id} to {output} ({len(pdf_bytes)} bytes)")
1218
- else:
1219
- # Write to stdout as binary
1220
- sys.stdout.buffer.write(pdf_bytes)
1221
- result_payload = {"page_id": page_id, "size_bytes": len(pdf_bytes), "format": "pdf"}
1222
-
1223
- elif action == "space":
1224
- if not space_key:
1225
- raise typer.BadParameter("--space-key required for space action")
1226
- if not export_type:
1227
- raise typer.BadParameter("--export-type required for space action")
1228
- if export_type not in ("pdf", "html", "xml"):
1229
- raise typer.BadParameter("--export-type must be one of: pdf, html, xml")
1230
- args_summary.append(f"space_key={space_key}")
1231
- args_summary.append(f"export_type={export_type}")
1232
-
1233
- download_url = client.get_space_export(space_key, export_type)
1234
- result_payload = {"space_key": space_key, "export_type": export_type, "download_url": download_url}
1235
-
1236
- if json_output or not sys.stdout.isatty():
1237
- _emit_json(result_payload)
1238
- else:
1239
- typer.echo(f"Space export URL: {download_url}")
1240
-
1241
- else:
1242
- raise typer.BadParameter(f"Unknown action: {action}")
1243
-
1244
- # For page action, JSON output only if explicitly requested or output file specified
1245
- if action == "page" and (json_output or output) and json_output:
1246
- _emit_json(result_payload)
1247
-
1248
- except (VDSClientError, typer.BadParameter) as exc:
1249
- exit_code = 1
1250
- logger.exception("export_failed: %s", exc)
1251
- typer.echo(f"Error: {exc}", err=True)
1252
- except Exception as exc: # pragma: no cover - unexpected errors
1253
- exit_code = 1
1254
- logger.exception("export_unexpected_error")
1255
- typer.echo(f"Error: {exc}", err=True)
1256
- finally:
1257
- finished_at = datetime.now(UTC)
1258
- server_label = server_key or (server.lower() if server else "internal")
1259
- _record_summary(
1260
- parent_ctx,
1261
- command="export",
1262
- args=args_summary,
1263
- server=server_label,
1264
- exit_code=exit_code,
1265
- started_at=started_at,
1266
- finished_at=finished_at,
1267
- )
1268
- if exit_code != 0:
1269
- raise typer.Exit(code=exit_code) from None
1270
-
1271
-
1272
- @app.command("crawl-tree")
1273
- def cmd_crawl_tree(
1274
- ctx: typer.Context,
1275
- root: str = typer.Argument(..., help="Root page reference (numeric ID, ?pageId= URL, or /display/<SPACE>/<Title>)"),
1276
- output_dir: Path = typer.Option(..., "--out", "-o", help="Output directory for downloaded pages/attachments"),
1277
- depth: int = typer.Option(
1278
- 3,
1279
- "--depth",
1280
- "--crawl-max-depth",
1281
- min=0,
1282
- max=20,
1283
- help="Recursive child-page crawl depth (0 = only root).",
1284
- ),
1285
- include_attachments: bool = typer.Option(
1286
- True,
1287
- "--include-attachments/--no-include-attachments",
1288
- help="Download attachments for each visited page",
1289
- ),
1290
- emit_corpus: bool = typer.Option(
1291
- False,
1292
- "--emit-corpus/--no-emit-corpus",
1293
- help="Emit `corpus.jsonl` chunked by headings for LLM ingestion",
1294
- ),
1295
- emit_link_graph: bool = typer.Option(
1296
- False,
1297
- "--emit-link-graph/--no-emit-link-graph",
1298
- help="Emit `link-graph.json` (normalized outbound links) for doc↔code alignment",
1299
- ),
1300
- emit_tables: bool = typer.Option(
1301
- False,
1302
- "--emit-tables",
1303
- help="Emit `tables.jsonl` (extracted HTML tables) for downstream analysis",
1304
- ),
1305
- emit_mentions: bool = typer.Option(
1306
- False,
1307
- "--emit-mentions",
1308
- help="Emit `mentions.jsonl` (cross-system refs: Confluence/Jira/Bitbucket/external/email) for downstream analysis",
1309
- ),
1310
- body_format: str = typer.Option(
1311
- "view",
1312
- "--body-format",
1313
- help="Body representation to store/analyze: view|export_view|storage (default: view)",
1314
- ),
1315
- chunk_max_chars: int = typer.Option(
1316
- 4000,
1317
- "--chunk-max-chars",
1318
- help="Max characters per corpus chunk (emit-corpus only). Oversized heading chunks are split into ordered subchunks (0 disables splitting).",
1319
- ),
1320
- cache_mode: str = typer.Option(
1321
- "read-write",
1322
- "--cache-mode",
1323
- help="Compatibility cache mode flag (off|read|read-write|refresh) for downstream orchestrators.",
1324
- ),
1325
- cache_ttl_hours: int | None = typer.Option(
1326
- None,
1327
- "--cache-ttl-hours",
1328
- min=1,
1329
- help="Compatibility cache TTL (hours) for downstream orchestrators.",
1330
- ),
1331
- incremental: bool = typer.Option(
1332
- True,
1333
- "--incremental/--no-incremental",
1334
- help="Compatibility incremental mode flag; enables resume semantics by default.",
1335
- ),
1336
- incremental_overlap_minutes: int = typer.Option(
1337
- 5,
1338
- "--incremental-overlap-minutes",
1339
- min=0,
1340
- help="Incremental crawl overlap window in minutes for last-modified high-water mark refresh.",
1341
- ),
1342
- full_reconciliation_interval_days: int = typer.Option(
1343
- 7,
1344
- "--full-reconciliation-interval-days",
1345
- min=1,
1346
- help="Interval in days for full reconciliation sweep when incremental mode is enabled.",
1347
- ),
1348
- content_root: Path | None = typer.Option(
1349
- None,
1350
- "--content-root",
1351
- help="Compatibility content root for downstream orchestrators (diagnostic metadata only).",
1352
- ),
1353
- project_storage_key: str | None = typer.Option(
1354
- None,
1355
- "--project-storage-key",
1356
- help="Compatibility project storage namespace key (diagnostic metadata only).",
1357
- ),
1358
- resume: bool = typer.Option(
1359
- False,
1360
- "--resume",
1361
- help="Resume from previous crawl state; skip unchanged pages (TSK-188)",
1362
- ),
1363
- max_nodes: int | None = typer.Option(
1364
- 500,
1365
- "--max-nodes",
1366
- "--crawl-max-nodes",
1367
- min=1,
1368
- help="Safety limit: max pages to process before stopping (default: 500).",
1369
- ),
1370
- page_concurrency: int = typer.Option(
1371
- 5,
1372
- "--page-concurrency",
1373
- "--crawl-concurrency",
1374
- min=1,
1375
- help="Bounded page fetch concurrency (default: 5).",
1376
- ),
1377
- staged_mode: str = typer.Option(
1378
- "off",
1379
- "--staged-mode",
1380
- "--staged-crawl-mode",
1381
- help="Optional staged crawl mode: off|structure-first (default: off).",
1382
- ),
1383
- rate_limit_budget: int = typer.Option(
1384
- 50000,
1385
- "--rate-limit-budget",
1386
- min=100,
1387
- help="Hourly Confluence API points budget used for proactive crawl throttling.",
1388
- ),
1389
- bundle: bool = typer.Option(
1390
- False,
1391
- "--bundle",
1392
- help="Create zip bundle of all artifacts for offline handoff (TSK-189)",
1393
- ),
1394
- manifest_path: Path | None = typer.Option(
1395
- None,
1396
- "--manifest",
1397
- help="Optional manifest file path (default: <out>/crawl_manifest.json)",
1398
- ),
1399
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
1400
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
1401
- ) -> None:
1402
- """Crawl a Confluence page tree and download content + attachments to disk."""
1403
- parent_ctx = _parent_context(ctx)
1404
- started_at = datetime.now(UTC)
1405
- exit_code = 0
1406
- server_key: str | None = None
1407
- result_payload: dict[str, Any] = {}
1408
- args_summary: list[str] = []
1409
-
1410
- try:
1411
- settings = load_settings(strict=True)
1412
- if server is None:
1413
- inferred = _infer_server_from_root_ref(root, settings)
1414
- if inferred:
1415
- server = inferred
1416
- server_key = _normalise_server(server, settings)
1417
- client = _build_http_client(settings, server_key)
1418
-
1419
- body_format = (body_format or "view").strip().lower().replace("-", "_")
1420
- if body_format not in {"view", "export_view", "storage"}:
1421
- raise typer.BadParameter("--body-format must be one of: view, export_view, storage")
1422
- cache_mode = (cache_mode or "read-write").strip().lower()
1423
- if cache_mode not in {"off", "read", "read-write", "refresh"}:
1424
- raise typer.BadParameter("--cache-mode must be one of: off, read, read-write, refresh")
1425
- staged_mode = (staged_mode or "off").strip().lower().replace("-", "_")
1426
- if staged_mode not in {"off", "structure_first"}:
1427
- raise typer.BadParameter("--staged-mode must be one of: off, structure-first")
1428
- if chunk_max_chars < 0:
1429
- raise typer.BadParameter("--chunk-max-chars must be >= 0")
1430
- effective_resume = bool(resume or incremental)
1431
-
1432
- args_summary = [
1433
- root,
1434
- f"depth={depth}",
1435
- f"out={output_dir!s}",
1436
- f"attachments={include_attachments}",
1437
- f"body_format={body_format}",
1438
- f"chunk_max_chars={chunk_max_chars}",
1439
- f"resume={resume}",
1440
- f"incremental={incremental}",
1441
- f"incremental_overlap_minutes={incremental_overlap_minutes}",
1442
- f"full_reconciliation_interval_days={full_reconciliation_interval_days}",
1443
- f"effective_resume={effective_resume}",
1444
- f"cache_mode={cache_mode}",
1445
- f"cache_ttl_hours={cache_ttl_hours}",
1446
- f"content_root={content_root}",
1447
- f"project_storage_key={project_storage_key}",
1448
- f"max_nodes={max_nodes}",
1449
- f"page_concurrency={page_concurrency}",
1450
- f"staged_mode={staged_mode}",
1451
- f"rate_limit_budget={rate_limit_budget}",
1452
- f"bundle={bundle}",
1453
- ]
1454
-
1455
- runtime_event_logger = logging.getLogger("confluence_cli.crawl_tree")
1456
-
1457
- def _runtime_event_sink(event_name: str, payload: dict[str, Any]) -> None:
1458
- runtime_event_logger.info(
1459
- "crawl_tree_runtime_event %s %s",
1460
- event_name,
1461
- json.dumps(payload, ensure_ascii=False, sort_keys=True),
1462
- )
1463
-
1464
- result_payload = crawl_tree_to_disk(
1465
- http=client,
1466
- root_ref=root,
1467
- output_dir=output_dir,
1468
- options=CrawlOptions(
1469
- max_depth=depth,
1470
- include_attachments=include_attachments,
1471
- emit_corpus=emit_corpus,
1472
- emit_link_graph=emit_link_graph,
1473
- emit_tables=emit_tables,
1474
- emit_mentions=emit_mentions,
1475
- body_format=body_format,
1476
- chunk_max_chars=None if chunk_max_chars == 0 else chunk_max_chars,
1477
- resume=effective_resume,
1478
- max_nodes=max_nodes,
1479
- page_concurrency=page_concurrency,
1480
- staged_mode=staged_mode,
1481
- incremental_cql=incremental,
1482
- incremental_overlap_minutes=incremental_overlap_minutes,
1483
- full_reconciliation_interval_days=full_reconciliation_interval_days,
1484
- rate_limit_budget=rate_limit_budget,
1485
- runtime_event_sink=_runtime_event_sink,
1486
- bundle=bundle,
1487
- ),
1488
- manifest_path=manifest_path,
1489
- )
1490
- result_payload["cache"] = {
1491
- "mode": cache_mode,
1492
- "ttl_hours": cache_ttl_hours,
1493
- "incremental": incremental,
1494
- "incremental_overlap_minutes": incremental_overlap_minutes,
1495
- "full_reconciliation_interval_days": full_reconciliation_interval_days,
1496
- "effective_resume": effective_resume,
1497
- "content_root": str(content_root) if content_root else None,
1498
- "project_storage_key": project_storage_key,
1499
- }
1500
-
1501
- if json_output or not sys.stdout.isatty():
1502
- _emit_json(result_payload)
1503
- else:
1504
- root_id = result_payload.get("root_page_id")
1505
- pages = 1 + len(result_payload.get("child_pages") or [])
1506
- atts = len(result_payload.get("attachments") or [])
1507
- resume_state = result_payload.get("resume_state") or {}
1508
- skipped = resume_state.get("skipped_unchanged", 0)
1509
- typer.echo(f"Crawled {pages} page(s), downloaded {atts} attachment(s). Root: {root_id}.")
1510
- if skipped > 0:
1511
- typer.echo(f"Skipped {skipped} unchanged page(s) (resume mode).")
1512
- if max_nodes and not resume_state.get("completed", True):
1513
- typer.echo(f"Stopped at max_nodes={max_nodes}. Use --resume to continue.")
1514
- typer.echo(f"Output: {result_payload.get('out_dir')}")
1515
- if result_payload.get("bundle_path"):
1516
- typer.echo(f"Bundle: {result_payload.get('bundle_path')}")
1517
-
1518
- except (VDSClientError, typer.BadParameter) as exc:
1519
- exit_code = 1
1520
- logger.exception("crawl_tree_failed: %s", exc)
1521
- typer.echo(f"Error: {exc}", err=True)
1522
- except Exception as exc: # pragma: no cover - unexpected errors
1523
- exit_code = 1
1524
- logger.exception("crawl_tree_unexpected_error")
1525
- typer.echo(f"Error: {exc}", err=True)
1526
- finally:
1527
- finished_at = datetime.now(UTC)
1528
- server_label = server_key or (server.lower() if server else "internal")
1529
- _record_summary(
1530
- parent_ctx,
1531
- command="crawl-tree",
1532
- args=args_summary,
1533
- server=server_label,
1534
- exit_code=exit_code,
1535
- started_at=started_at,
1536
- finished_at=finished_at,
1537
- )
1538
- if exit_code != 0:
1539
- raise typer.Exit(code=exit_code) from None
1540
-
1541
-
1542
- @app.command("draft")
1543
- def cmd_draft(
1544
- ctx: typer.Context,
1545
- action: str = typer.Argument(..., help="Action: get, list, remove"),
1546
- page_id: str | None = typer.Option(None, "--page-id", help="Page ID (for get/remove)"),
1547
- space_key: str | None = typer.Option(None, "--space-key", "-k", help="Space key (for list)"),
1548
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
1549
- limit: int = typer.Option(25, "--limit", help="Limit for list (max 100)"),
1550
- yes: bool = typer.Option(False, "--yes", help="Confirm write operations (for remove)"),
1551
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
1552
- ) -> None:
1553
- """Manage Confluence draft pages (Server-only)."""
1554
- parent_ctx = _parent_context(ctx)
1555
- started_at = datetime.now(UTC)
1556
- exit_code = 0
1557
- result_payload: dict[str, Any] = {}
1558
- args_summary: list[str] = []
1559
- server_key: str | None = None
1560
- settings: ConfluenceSettings | None = None
1561
-
1562
- try:
1563
- if limit < 1 or limit > 100:
1564
- raise typer.BadParameter("--limit must be between 1 and 100")
1565
-
1566
- settings = load_settings(strict=True)
1567
- server_key = _normalise_server(server, settings)
1568
- client = _build_http_client(settings, server_key)
1569
-
1570
- args_summary = [action]
1571
-
1572
- if action == "get":
1573
- if not page_id:
1574
- raise typer.BadParameter("--page-id required for get action")
1575
- args_summary.append(f"page_id={page_id}")
1576
- result = client.get_draft_page_by_id(page_id)
1577
- result_payload = {"draft_page": result}
1578
-
1579
- elif action == "list":
1580
- if not space_key:
1581
- raise typer.BadParameter("--space-key required for list action")
1582
- args_summary.append(f"space_key={space_key}")
1583
- args_summary.append(f"limit={limit}")
1584
- result = client.get_all_draft_pages_from_space(space_key, limit=limit)
1585
- result_payload = {"space": space_key, "count": len(result), "drafts": result}
1586
-
1587
- elif action == "remove":
1588
- if not yes:
1589
- raise typer.BadParameter("--yes required for remove action")
1590
- if not page_id:
1591
- raise typer.BadParameter("--page-id required for remove action")
1592
- args_summary.append(f"page_id={page_id}")
1593
- client.remove_page_as_draft(page_id)
1594
- result_payload = {"page_id": page_id, "status": "removed"}
1595
-
1596
- else:
1597
- raise typer.BadParameter(f"Unknown action: {action}")
1598
-
1599
- if json_output or not sys.stdout.isatty():
1600
- _emit_json(result_payload)
1601
- else:
1602
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
1603
-
1604
- except (VDSClientError, typer.BadParameter) as exc:
1605
- exit_code = 1
1606
- logger.exception("draft_failed: %s", exc)
1607
- typer.echo(f"Error: {exc}", err=True)
1608
- except Exception as exc: # pragma: no cover - unexpected errors
1609
- exit_code = 1
1610
- logger.exception("draft_unexpected_error")
1611
- typer.echo(f"Error: {exc}", err=True)
1612
- finally:
1613
- finished_at = datetime.now(UTC)
1614
- server_label = server_key or (server.lower() if server else "internal")
1615
- _record_summary(
1616
- parent_ctx,
1617
- command="draft",
1618
- args=args_summary,
1619
- server=server_label,
1620
- exit_code=exit_code,
1621
- started_at=started_at,
1622
- finished_at=finished_at,
1623
- )
1624
- if exit_code != 0:
1625
- raise typer.Exit(code=exit_code) from None
1626
-
1627
-
1628
- @app.command("history")
1629
- def cmd_history(
1630
- ctx: typer.Context,
1631
- action: str = typer.Argument(..., help="Action: get, version, remove"),
1632
- page_id: str | None = typer.Option(None, "--page-id", help="Page ID"),
1633
- version: int | None = typer.Option(None, "--version", help="Version number (for version/remove)"),
1634
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
1635
- yes: bool = typer.Option(False, "--yes", help="Confirm write operations (for remove)"),
1636
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
1637
- ) -> None:
1638
- """Manage Confluence page history and versioning."""
1639
- parent_ctx = _parent_context(ctx)
1640
- started_at = datetime.now(UTC)
1641
- exit_code = 0
1642
- result_payload: dict[str, Any] = {}
1643
- args_summary: list[str] = []
1644
- server_key: str | None = None
1645
- settings: ConfluenceSettings | None = None
1646
-
1647
- try:
1648
- settings = load_settings(strict=True)
1649
- server_key = _normalise_server(server, settings)
1650
- client = _build_http_client(settings, server_key)
1651
-
1652
- args_summary = [action]
1653
-
1654
- if action == "get":
1655
- if not page_id:
1656
- raise typer.BadParameter("--page-id required for get action")
1657
- args_summary.append(f"page_id={page_id}")
1658
- result = client.history(page_id)
1659
- result_payload = {"page_id": page_id, "history": result}
1660
-
1661
- elif action == "version":
1662
- if not page_id:
1663
- raise typer.BadParameter("--page-id required for version action")
1664
- if version is None:
1665
- raise typer.BadParameter("--version required for version action")
1666
- args_summary.append(f"page_id={page_id}")
1667
- args_summary.append(f"version={version}")
1668
- result = client.get_content_history_by_version_number(page_id, version)
1669
- result_payload = {"page_id": page_id, "version": version, "content": result}
1670
-
1671
- elif action == "remove":
1672
- if not yes:
1673
- raise typer.BadParameter("--yes required for remove action (experimental feature)")
1674
- if not page_id:
1675
- raise typer.BadParameter("--page-id required for remove action")
1676
- if version is None:
1677
- raise typer.BadParameter("--version required for remove action")
1678
- args_summary.append(f"page_id={page_id}")
1679
- args_summary.append(f"version={version}")
1680
- typer.echo("Warning: remove_content_history is an experimental feature", err=True)
1681
- client.remove_content_history(page_id, version)
1682
- result_payload = {"page_id": page_id, "version": version, "status": "removed"}
1683
-
1684
- else:
1685
- raise typer.BadParameter(f"Unknown action: {action}")
1686
-
1687
- if json_output or not sys.stdout.isatty():
1688
- _emit_json(result_payload)
1689
- else:
1690
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
1691
-
1692
- except (VDSClientError, typer.BadParameter) as exc:
1693
- exit_code = 1
1694
- logger.exception("history_failed: %s", exc)
1695
- typer.echo(f"Error: {exc}", err=True)
1696
- except Exception as exc: # pragma: no cover - unexpected errors
1697
- exit_code = 1
1698
- logger.exception("history_unexpected_error")
1699
- typer.echo(f"Error: {exc}", err=True)
1700
- finally:
1701
- finished_at = datetime.now(UTC)
1702
- server_label = server_key or (server.lower() if server else "internal")
1703
- _record_summary(
1704
- parent_ctx,
1705
- command="history",
1706
- args=args_summary,
1707
- server=server_label,
1708
- exit_code=exit_code,
1709
- started_at=started_at,
1710
- finished_at=finished_at,
1711
- )
1712
- if exit_code != 0:
1713
- raise typer.Exit(code=exit_code) from None
1714
-
1715
-
1716
- @app.command("cache")
1717
- def cmd_cache(
1718
- ctx: typer.Context,
1719
- action: str = typer.Argument(..., help="Action: statistics, flush, size"),
1720
- cache_name: str | None = typer.Option(None, "--cache-name", help="Cache name (for flush)"),
1721
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
1722
- yes: bool = typer.Option(False, "--yes", help="Confirm write operation (for flush)"),
1723
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
1724
- ) -> None:
1725
- """Manage Confluence cache (Server-only)."""
1726
- parent_ctx = _parent_context(ctx)
1727
- started_at = datetime.now(UTC)
1728
- exit_code = 0
1729
- result_payload: dict[str, Any] = {}
1730
- args_summary: list[str] = []
1731
- server_key: str | None = None
1732
- settings: ConfluenceSettings | None = None
1733
-
1734
- try:
1735
- settings = load_settings(strict=True)
1736
- server_key = _normalise_server(server, settings)
1737
- client = _build_http_client(settings, server_key)
1738
-
1739
- args_summary = [action]
1740
-
1741
- if action == "statistics":
1742
- result = client.get_cache_statistics()
1743
- result_payload = {"cache_statistics": result}
1744
- elif action == "flush":
1745
- if not yes:
1746
- raise typer.BadParameter("Refusing to flush cache without --yes")
1747
- if cache_name:
1748
- args_summary.append(f"cache_name={cache_name}")
1749
- client.flush_cache(cache_name=cache_name)
1750
- result_payload = {"status": "success", "cache_flushed": cache_name or "all"}
1751
- elif action == "size":
1752
- result = client.get_cache_size()
1753
- result_payload = {"cache_size": result}
1754
- else:
1755
- raise typer.BadParameter(f"Unknown action: {action}")
1756
-
1757
- if json_output or not sys.stdout.isatty():
1758
- _emit_json(result_payload)
1759
- else:
1760
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
1761
-
1762
- except (VDSClientError, typer.BadParameter) as exc:
1763
- exit_code = 1
1764
- logger.exception("cache_failed: %s", exc)
1765
- typer.echo(f"Error: {exc}", err=True)
1766
- except Exception as exc: # pragma: no cover - unexpected errors
1767
- exit_code = 1
1768
- logger.exception("cache_unexpected_error")
1769
- typer.echo(f"Error: {exc}", err=True)
1770
- finally:
1771
- finished_at = datetime.now(UTC)
1772
- server_label = server_key or (server.lower() if server else "internal")
1773
- _record_summary(
1774
- parent_ctx,
1775
- command="cache",
1776
- args=args_summary,
1777
- server=server_label,
1778
- exit_code=exit_code,
1779
- started_at=started_at,
1780
- finished_at=finished_at,
1781
- )
1782
- if exit_code != 0:
1783
- raise typer.Exit(code=exit_code) from None
1784
-
1785
-
1786
- @app.command("get")
1787
- def cmd_get(
1788
- ctx: typer.Context,
1789
- page_id: str = typer.Argument(..., help="Confluence page ID"),
1790
- expand: str | None = typer.Option(
1791
- None, "--expand", "-e", help="Comma separated expansions (e.g., 'body.storage,version')"
1792
- ),
1793
- format: str | None = typer.Option(None, "--format", "-f", help="Output format (storage|editor|view)"),
1794
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
1795
- ) -> None:
1796
- """Get Confluence content by page ID."""
1797
- parent_ctx = _parent_context(ctx)
1798
- _ensure_v1_api(parent_ctx, "get")
1799
- started_at = datetime.now(UTC)
1800
- settings = load_settings(strict=True)
1801
- server_key = _normalise_server(server, settings)
1802
-
1803
- try:
1804
- client = ContentClientV2(_build_http_client(settings, server_key))
1805
- content = client.get_content(page_id, expand=_expand_option(expand), format=format)
1806
-
1807
- if content:
1808
- _emit_json(content)
1809
- else:
1810
- typer.echo(f"Content not found: {page_id}", err=True)
1811
- raise typer.Exit(code=1) from None
1812
-
1813
- finished_at = datetime.now(UTC)
1814
- _record_summary(
1815
- parent_ctx,
1816
- command="get",
1817
- args=[page_id],
1818
- server=server_key,
1819
- exit_code=0,
1820
- started_at=started_at,
1821
- finished_at=finished_at,
1822
- )
1823
-
1824
- except Exception as exc:
1825
- logger.exception("get_command_failed: %s", exc)
1826
- typer.echo(f"Error: {exc}", err=True)
1827
- raise typer.Exit(code=1) from None
1828
-
1829
-
1830
- # ---------------------------------------------------------------------------
1831
- # Native content commands
1832
- # ---------------------------------------------------------------------------
1833
-
1834
-
1835
- @batch_app.command("scan")
1836
- def batch_scan(
1837
- ctx: typer.Context,
1838
- cql: str = typer.Option(..., "--cql", "-q", help="CQL query string"),
1839
- limit: int = typer.Option(25, "--limit", help="Number of results per request"),
1840
- max_results: int | None = typer.Option(None, "--max-results", help="Total results to fetch"),
1841
- start: int = typer.Option(0, "--start", help="Pagination start offset"),
1842
- expand: str | None = typer.Option(None, "--expand", help="Comma separated expansions"),
1843
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
1844
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
1845
- ) -> None:
1846
- parent_ctx = _parent_context(ctx)
1847
- _ensure_v1_api(parent_ctx, "batch.scan")
1848
- started_at = datetime.now(UTC)
1849
- settings = load_settings(strict=True)
1850
- server_key = _normalise_server(server, settings)
1851
- runner = BatchRunner(_build_http_client(settings, server_key), expand=_expand_option(expand))
1852
- results: list[dict[str, Any]] = []
1853
- for item in runner.scan(cql, limit=limit, max_results=max_results, start=start):
1854
- results.append(item)
1855
- metrics = runner.last_metrics
1856
- payload: dict[str, Any] = {
1857
- "cql": cql,
1858
- "count": len(results),
1859
- "limit": limit,
1860
- "maxResults": max_results,
1861
- "start": start,
1862
- "results": results,
1863
- }
1864
- if metrics is not None:
1865
- payload["metrics"] = {
1866
- "requests": metrics.requests,
1867
- "pagesProcessed": metrics.pages_processed,
1868
- "durationSeconds": metrics.duration_seconds,
1869
- }
1870
- if json_output or not sys.stdout.isatty():
1871
- _emit_json(payload)
1872
- else:
1873
- typer.echo(
1874
- f"Scanned {payload['count']} results (requests={payload['metrics']['requests'] if 'metrics' in payload else '?'})"
1875
- )
1876
- finished_at = datetime.now(UTC)
1877
- _record_summary(
1878
- parent_ctx,
1879
- command="batch.scan",
1880
- args=[cql, f"limit={limit}", f"start={start}"],
1881
- server=server_key,
1882
- exit_code=0,
1883
- started_at=started_at,
1884
- finished_at=finished_at,
1885
- )
1886
-
1887
-
1888
- @batch_app.command("snapshot")
1889
- def batch_snapshot(
1890
- ctx: typer.Context,
1891
- cql: str = typer.Option(..., "--cql", "-q", help="CQL query string"),
1892
- limit: int = typer.Option(25, "--limit", help="Number of results per request"),
1893
- max_results: int | None = typer.Option(None, "--max-results", help="Total results to fetch"),
1894
- expand: str | None = typer.Option(None, "--expand", help="Comma separated expansions"),
1895
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
1896
- ) -> None:
1897
- parent_ctx = _parent_context(ctx)
1898
- _ensure_v1_api(parent_ctx, "batch.snapshot")
1899
- started_at = datetime.now(UTC)
1900
- settings = load_settings(strict=True)
1901
- server_key = _normalise_server(server, settings)
1902
- runner = BatchRunner(_build_http_client(settings, server_key))
1903
- payload = runner.snapshot(cql, limit=limit, max_results=max_results, expand=_expand_option(expand))
1904
- _emit_json(payload)
1905
- finished_at = datetime.now(UTC)
1906
- _record_summary(
1907
- parent_ctx,
1908
- command="batch.snapshot",
1909
- args=[cql, f"limit={limit}"],
1910
- server=server_key,
1911
- exit_code=0,
1912
- started_at=started_at,
1913
- finished_at=finished_at,
1914
- )
1915
-
1916
-
1917
- @batch_app.command("poll")
1918
- def batch_poll(
1919
- ctx: typer.Context,
1920
- cql: str = typer.Option(..., "--cql", "-q", help="Base CQL query (will be augmented with lastmodified filter)"),
1921
- state_file: Path = typer.Option(..., "--state-file", help="Path to persistent cursor file (JSON)"),
1922
- limit: int = typer.Option(25, "--limit", help="Page size per request"),
1923
- max_results: int | None = typer.Option(None, "--max-results", help="Max results this run"),
1924
- expand: str | None = typer.Option(
1925
- "version", "--expand", help="Comma separated expansions (default includes 'version')"
1926
- ),
1927
- out_jsonl: Path | None = typer.Option(None, "--out-jsonl", help="Write results to JSONL (one object per line)"),
1928
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
1929
- ) -> None:
1930
- parent_ctx = _parent_context(ctx)
1931
- _ensure_v1_api(parent_ctx, "batch.poll")
1932
- started_at = datetime.now(UTC)
1933
- server_key = "internal"
1934
- try:
1935
- settings = load_settings(strict=True)
1936
- server_key = _normalise_server(server, settings)
1937
- client = _build_http_client(settings, server_key)
1938
- poller = Poller(client)
1939
- expand_list = _expand_option(expand) or ["version"]
1940
- count = poller.poll_once(
1941
- base_cql=cql,
1942
- state_file=state_file,
1943
- limit=limit,
1944
- max_results=max_results,
1945
- expand=expand_list,
1946
- out_jsonl=out_jsonl,
1947
- )
1948
- typer.echo(f"Polled {count} items")
1949
- except Exception as exc:
1950
- logger.exception("batch.poll failed", extra={"cql": cql})
1951
- typer.echo(f"Error: {exc}", err=True)
1952
- raise typer.Exit(code=1) from None
1953
- finally:
1954
- finished_at = datetime.now(UTC)
1955
- _record_summary(
1956
- parent_ctx,
1957
- command="batch.poll",
1958
- args=[cql, f"limit={limit}", f"out={str(out_jsonl) if out_jsonl else '-'}"],
1959
- server=server_key,
1960
- exit_code=0,
1961
- started_at=started_at,
1962
- finished_at=finished_at,
1963
- )
1964
-
1965
-
1966
- @webhook_app.command("create")
1967
- def webhook_create(
1968
- ctx: typer.Context,
1969
- name: str = typer.Option(..., "--name", "-n", help="Webhook name"),
1970
- url: str = typer.Option(..., "--url", help="Destination URL"),
1971
- event: list[str] = typer.Option(["page_created"], "--event", "-e", help="Event identifier"),
1972
- active: bool = typer.Option(True, "--active/--inactive", help="Toggle webhook activation"),
1973
- filters: str | None = typer.Option(None, "--filters", help="JSON object filters"),
1974
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
1975
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
1976
- ) -> None:
1977
- parent_ctx = _parent_context(ctx)
1978
- _ensure_v1_api(parent_ctx, "webhook.create")
1979
- started_at = datetime.now(UTC)
1980
- settings = load_settings(strict=True)
1981
- server_key = _normalise_server(server, settings)
1982
- client = WebhookClient(_build_http_client(settings, server_key))
1983
- payload = client.create(
1984
- name=name,
1985
- url=url,
1986
- events=event,
1987
- active=active,
1988
- filters=_parse_json_option(filters, "--filters"),
1989
- )
1990
- if json_output:
1991
- _emit_json(payload)
1992
- else:
1993
- typer.echo(f"Created webhook {payload.get('id')}")
1994
- finished_at = datetime.now(UTC)
1995
- _record_summary(
1996
- parent_ctx,
1997
- command="webhook.create",
1998
- args=[name, f"events={len(event)}"],
1999
- server=server_key,
2000
- exit_code=0,
2001
- started_at=started_at,
2002
- finished_at=finished_at,
2003
- )
2004
-
2005
-
2006
- @webhook_app.command("list")
2007
- def webhook_list(
2008
- ctx: typer.Context,
2009
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2010
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
2011
- ) -> None:
2012
- parent_ctx = _parent_context(ctx)
2013
- _ensure_v1_api(parent_ctx, "webhook.list")
2014
- started_at = datetime.now(UTC)
2015
- settings = load_settings(strict=True)
2016
- server_key = _normalise_server(server, settings)
2017
- client = WebhookClient(_build_http_client(settings, server_key))
2018
- payload = client.list()
2019
- if json_output:
2020
- _emit_json(payload)
2021
- else:
2022
- typer.echo(f"{len(payload)} webhooks")
2023
- finished_at = datetime.now(UTC)
2024
- _record_summary(
2025
- parent_ctx,
2026
- command="webhook.list",
2027
- args=[f"count={len(payload)}"],
2028
- server=server_key,
2029
- exit_code=0,
2030
- started_at=started_at,
2031
- finished_at=finished_at,
2032
- )
2033
-
2034
-
2035
- @webhook_app.command("delete")
2036
- def webhook_delete(
2037
- ctx: typer.Context,
2038
- webhook_id: str = typer.Argument(..., help="Webhook identifier"),
2039
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2040
- ) -> None:
2041
- parent_ctx = _parent_context(ctx)
2042
- _ensure_v1_api(parent_ctx, "webhook.delete")
2043
- started_at = datetime.now(UTC)
2044
- settings = load_settings(strict=True)
2045
- server_key = _normalise_server(server, settings)
2046
- client = WebhookClient(_build_http_client(settings, server_key))
2047
- client.delete(webhook_id)
2048
- typer.echo(f"Deleted webhook {webhook_id}")
2049
- finished_at = datetime.now(UTC)
2050
- _record_summary(
2051
- parent_ctx,
2052
- command="webhook.delete",
2053
- args=[webhook_id],
2054
- server=server_key,
2055
- exit_code=0,
2056
- started_at=started_at,
2057
- finished_at=finished_at,
2058
- )
2059
-
2060
-
2061
- @content_app.command("page")
2062
- def content_page(
2063
- ctx: typer.Context,
2064
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2065
- expand: str | None = typer.Option(None, "--expand", help="Comma separated expansions"),
2066
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2067
- ) -> None:
2068
- """Fetch a Confluence page by ID."""
2069
- parent_ctx = _parent_context(ctx)
2070
- started_at = datetime.now(UTC)
2071
- try:
2072
- settings = load_settings(strict=True)
2073
- server_key = _normalise_server(server, settings)
2074
- cli_ctx = _get_cli_ctx(parent_ctx)
2075
- client = _build_content_client(settings, server_key, cli_ctx.api_version)
2076
- expand_list = _expand_option(expand)
2077
- payload = client.get_page(page_id, expand=expand_list)
2078
- _emit_json(payload)
2079
- except Exception as exc:
2080
- logger.exception("content.page failed", extra={"page_id": page_id})
2081
- typer.echo(f"Error: {exc}", err=True)
2082
- raise typer.Exit(code=1) from None
2083
- else:
2084
- finished_at = datetime.now(UTC)
2085
- _record_summary(
2086
- parent_ctx,
2087
- command="content.page",
2088
- args=[page_id],
2089
- server=server_key,
2090
- exit_code=0,
2091
- started_at=started_at,
2092
- finished_at=finished_at,
2093
- )
2094
-
2095
-
2096
- @content_app.command("search")
2097
- def content_search(
2098
- ctx: typer.Context,
2099
- cql: str = typer.Argument(..., help="CQL query string"),
2100
- limit: int = typer.Option(25, "--limit", help="Number of results"),
2101
- start: int = typer.Option(0, "--start", help="Pagination start"),
2102
- expand: str | None = typer.Option(None, "--expand", help="Comma separated expansions"),
2103
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2104
- ) -> None:
2105
- """Search Confluence pages by CQL query."""
2106
- parent_ctx = _parent_context(ctx)
2107
- started_at = datetime.now(UTC)
2108
- exit_code = 0
2109
- server_key: str = ""
2110
- try:
2111
- settings = load_settings(strict=True)
2112
- server_key = _normalise_server(server, settings)
2113
- cli_ctx = _get_cli_ctx(parent_ctx)
2114
- client = _build_content_client(settings, server_key, cli_ctx.api_version)
2115
- expand_list = _expand_option(expand)
2116
- payload = client.search_cql(cql, limit=limit, start=start, expand=expand_list)
2117
- _emit_json(payload)
2118
- except Exception as exc:
2119
- exit_code = 1
2120
- logger.exception("content.search failed", extra={"cql": cql})
2121
- # Provide targeted guidance for CQL auth failures
2122
- from .errors import AuthError # local import to avoid top-level cycles
2123
-
2124
- if isinstance(exc, AuthError):
2125
- typer.echo("Error: Authentication failed for CQL search.", err=True)
2126
- typer.echo("Hint: We default to Basic auth (VDS_USERNAME/PASSWORD). If using token, ensure:", err=True)
2127
- typer.echo(" - Token has permission to use CQL (/rest/api/*search)", err=True)
2128
- typer.echo(" - Or set VDS_USERNAME/VDS_PASSWORD to use Basic auth", err=True)
2129
- typer.echo(
2130
- " - Quick check: curl -u \"$VDS_USERNAME:$VDS_PASSWORD\" 'http://confluence.digital.vn/rest/api/search?cql=type=page&limit=1'",
2131
- err=True,
2132
- )
2133
- else:
2134
- typer.echo(f"Error: {exc}", err=True)
2135
- finally:
2136
- finished_at = datetime.now(UTC)
2137
- _record_summary(
2138
- parent_ctx,
2139
- command="content.search",
2140
- args=_content_summary_args(cql=cql, limit=limit, start=start),
2141
- server=server_key,
2142
- exit_code=exit_code,
2143
- started_at=started_at,
2144
- finished_at=finished_at,
2145
- )
2146
- if exit_code != 0:
2147
- raise typer.Exit(code=exit_code) from None
2148
-
2149
-
2150
- @content_app.command("templates")
2151
- def content_templates(
2152
- ctx: typer.Context,
2153
- space_key: str | None = typer.Option(None, "--space", help="Space key"),
2154
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2155
- ) -> None:
2156
- """List available Confluence page templates."""
2157
- parent_ctx = _parent_context(ctx)
2158
- started_at = datetime.now(UTC)
2159
- try:
2160
- settings = load_settings(strict=True)
2161
- server_key = _normalise_server(server, settings)
2162
- cli_ctx = _get_cli_ctx(parent_ctx)
2163
- client = _build_content_client(settings, server_key, cli_ctx.api_version)
2164
- if hasattr(client, "list_templates"):
2165
- payload = client.list_templates(space_key=space_key)
2166
- else:
2167
- payload = {"templates": [], "message": "Templates API not available for this server"}
2168
- _emit_json(payload)
2169
- except Exception as exc:
2170
- logger.exception("content.templates failed", extra={"space": space_key})
2171
- typer.echo(f"Error: {exc}", err=True)
2172
- raise typer.Exit(code=1) from None
2173
- else:
2174
- finished_at = datetime.now(UTC)
2175
- _record_summary(
2176
- parent_ctx,
2177
- command="content.templates",
2178
- args=_content_summary_args(space=space_key or "*"),
2179
- server=server_key,
2180
- exit_code=0,
2181
- started_at=started_at,
2182
- finished_at=finished_at,
2183
- )
2184
-
2185
-
2186
- @content_app.command("create-page")
2187
- def content_create_page(
2188
- ctx: typer.Context,
2189
- space_key: str = typer.Option(..., "--space", "-S", help="Space key to create the page in"),
2190
- title: str = typer.Option(..., "--title", "-t", help="Page title"),
2191
- body_file: Path = typer.Option(
2192
- ..., "--body-file", exists=True, file_okay=True, dir_okay=False, help="Path to storage-format body"
2193
- ),
2194
- parent_id: str | None = typer.Option(None, "--parent", help="Ancestor page id"),
2195
- representation: str = typer.Option(
2196
- "storage", "--representation", help="Content representation (storage, wiki, view)"
2197
- ),
2198
- status: str = typer.Option("current", "--status", help="Target page status (current, draft)"),
2199
- notify_watchers: bool = typer.Option(
2200
- False, "--notify-watchers/--no-notify-watchers", help="Send notifications to watchers"
2201
- ),
2202
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2203
- ) -> None:
2204
- """Create a new Confluence page."""
2205
- parent_ctx = _parent_context(ctx)
2206
- _ensure_v1_api(parent_ctx, "content.create-page")
2207
- started_at = datetime.now(UTC)
2208
- try:
2209
- settings = load_settings(strict=True)
2210
- server_key = _normalise_server(server, settings)
2211
- client = ContentClient(_build_http_client(settings, server_key))
2212
- body = _read_text_file(body_file)
2213
- payload = client.create_page(
2214
- space_key=space_key,
2215
- title=title,
2216
- body=body,
2217
- parent_id=parent_id,
2218
- representation=representation,
2219
- status=status,
2220
- notify_watchers=notify_watchers,
2221
- )
2222
- _emit_json(payload)
2223
- except Exception as exc:
2224
- logger.exception("content.create-page failed", extra={"space": space_key, "title": title})
2225
- typer.echo(f"Error: {exc}", err=True)
2226
- raise typer.Exit(code=1) from None
2227
- else:
2228
- finished_at = datetime.now(UTC)
2229
- _record_summary(
2230
- parent_ctx,
2231
- command="content.create-page",
2232
- args=[f"space={space_key}", f"title={title}"],
2233
- server=server_key,
2234
- exit_code=0,
2235
- started_at=started_at,
2236
- finished_at=finished_at,
2237
- )
2238
-
2239
-
2240
- @content_app.command("update-page")
2241
- def content_update_page(
2242
- ctx: typer.Context,
2243
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2244
- title: str | None = typer.Option(None, "--title", help="New page title"),
2245
- body_file: Path | None = typer.Option(
2246
- None, "--body-file", exists=True, file_okay=True, dir_okay=False, help="Path to storage-format body"
2247
- ),
2248
- space_key: str | None = typer.Option(None, "--space", help="Move page to this space"),
2249
- version: int | None = typer.Option(None, "--version", help="Explicit version number"),
2250
- representation: str = typer.Option("storage", "--representation", help="Content representation for --body-file"),
2251
- minor_edit: bool = typer.Option(False, "--minor-edit/--no-minor-edit", help="Mark version as minor edit"),
2252
- message: str | None = typer.Option(None, "--message", help="Version comment"),
2253
- status: str = typer.Option("current", "--status", help="Target page status"),
2254
- notify_watchers: bool = typer.Option(
2255
- False, "--notify-watchers/--no-notify-watchers", help="Send notifications to watchers"
2256
- ),
2257
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2258
- ) -> None:
2259
- """Update an existing Confluence page."""
2260
- parent_ctx = _parent_context(ctx)
2261
- _ensure_v1_api(parent_ctx, "content.update-page")
2262
- if body_file is None and title is None and space_key is None:
2263
- raise typer.BadParameter("Provide at least one of --title, --body-file or --space")
2264
- body = _read_text_file(body_file) if body_file else None
2265
- started_at = datetime.now(UTC)
2266
- try:
2267
- settings = load_settings(strict=True)
2268
- server_key = _normalise_server(server, settings)
2269
- client = ContentClient(_build_http_client(settings, server_key))
2270
- payload = client.update_page(
2271
- page_id,
2272
- title=title,
2273
- body=body,
2274
- space_key=space_key,
2275
- representation=representation,
2276
- version=version,
2277
- minor_edit=minor_edit,
2278
- message=message,
2279
- status=status,
2280
- notify_watchers=notify_watchers,
2281
- )
2282
- _emit_json(payload)
2283
- except Exception as exc:
2284
- logger.exception("content.update-page failed", extra={"page_id": page_id})
2285
- typer.echo(f"Error: {exc}", err=True)
2286
- raise typer.Exit(code=1) from None
2287
- else:
2288
- finished_at = datetime.now(UTC)
2289
- args = [page_id]
2290
- if version is not None:
2291
- args.append(f"version={version}")
2292
- if title is not None:
2293
- args.append(f"title={title}")
2294
- _record_summary(
2295
- parent_ctx,
2296
- command="content.update-page",
2297
- args=args,
2298
- server=server_key,
2299
- exit_code=0,
2300
- started_at=started_at,
2301
- finished_at=finished_at,
2302
- )
2303
-
2304
-
2305
- @content_app.command("delete-page")
2306
- def content_delete_page(
2307
- ctx: typer.Context,
2308
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2309
- status: str = typer.Option("current", "--status", help="Specify current or draft"),
2310
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2311
- ) -> None:
2312
- """Delete a Confluence page."""
2313
- parent_ctx = _parent_context(ctx)
2314
- _ensure_v1_api(parent_ctx, "content.delete-page")
2315
- started_at = datetime.now(UTC)
2316
- try:
2317
- settings = load_settings(strict=True)
2318
- server_key = _normalise_server(server, settings)
2319
- client = ContentClient(_build_http_client(settings, server_key))
2320
- client.delete_page(page_id, status=status)
2321
- typer.echo(f"Deleted page {page_id} (status={status})")
2322
- except Exception as exc:
2323
- logger.exception("content.delete-page failed", extra={"page_id": page_id})
2324
- typer.echo(f"Error: {exc}", err=True)
2325
- raise typer.Exit(code=1) from None
2326
- else:
2327
- finished_at = datetime.now(UTC)
2328
- _record_summary(
2329
- parent_ctx,
2330
- command="content.delete-page",
2331
- args=[page_id, f"status={status}"],
2332
- server=server_key,
2333
- exit_code=0,
2334
- started_at=started_at,
2335
- finished_at=finished_at,
2336
- )
2337
-
2338
-
2339
- @content_app.command("add-attachment")
2340
- def content_add_attachment(
2341
- ctx: typer.Context,
2342
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2343
- file_path: Path = typer.Option(..., "--file", exists=True, file_okay=True, dir_okay=False, help="File to upload"),
2344
- filename: str | None = typer.Option(None, "--filename", help="Override uploaded filename"),
2345
- content_type: str | None = typer.Option(None, "--content-type", help="MIME type for the attachment"),
2346
- comment: str | None = typer.Option(None, "--comment", help="Attachment comment"),
2347
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2348
- ) -> None:
2349
- """Add an attachment to a Confluence page."""
2350
- parent_ctx = _parent_context(ctx)
2351
- _ensure_v1_api(parent_ctx, "content.add-attachment")
2352
- started_at = datetime.now(UTC)
2353
- try:
2354
- settings = load_settings(strict=True)
2355
- server_key = _normalise_server(server, settings)
2356
- client = ContentClient(_build_http_client(settings, server_key))
2357
- payload = client.upload_attachment(
2358
- page_id,
2359
- str(file_path),
2360
- filename=filename,
2361
- content_type=content_type,
2362
- comment=comment,
2363
- )
2364
- _emit_json(payload)
2365
- except Exception as exc:
2366
- logger.exception("content.add-attachment failed", extra={"page_id": page_id, "file": str(file_path)})
2367
- typer.echo(f"Error: {exc}", err=True)
2368
- raise typer.Exit(code=1) from None
2369
- else:
2370
- finished_at = datetime.now(UTC)
2371
- _record_summary(
2372
- parent_ctx,
2373
- command="content.add-attachment",
2374
- args=[page_id, file_path.name],
2375
- server=server_key,
2376
- exit_code=0,
2377
- started_at=started_at,
2378
- finished_at=finished_at,
2379
- )
2380
-
2381
-
2382
- @content_app.command("download-attachment")
2383
- def content_download_attachment(
2384
- ctx: typer.Context,
2385
- attachment_id: str = typer.Argument(..., help="Attachment ID"),
2386
- output_path: Path = typer.Option(
2387
- ..., "--out", "-o", file_okay=True, dir_okay=True, help="Output file path or directory"
2388
- ),
2389
- filename: str | None = typer.Option(None, "--filename", help="Override downloaded filename"),
2390
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2391
- ) -> None:
2392
- """Download a Confluence attachment by ID to a local file."""
2393
- parent_ctx = _parent_context(ctx)
2394
- _ensure_v1_api(parent_ctx, "content.download-attachment")
2395
- started_at = datetime.now(UTC)
2396
- try:
2397
- settings = load_settings(strict=True)
2398
- server_key = _normalise_server(server, settings)
2399
- client = ContentClient(_build_http_client(settings, server_key))
2400
- output = client.download_attachment(attachment_id, output_path, filename=filename)
2401
- _emit_json({"attachment_id": attachment_id, "output_path": str(output)})
2402
- except Exception as exc:
2403
- logger.exception("content.download-attachment failed", extra={"attachment_id": attachment_id})
2404
- typer.echo(f"Error: {exc}", err=True)
2405
- raise typer.Exit(code=1) from None
2406
- else:
2407
- finished_at = datetime.now(UTC)
2408
- _record_summary(
2409
- parent_ctx,
2410
- command="content.download-attachment",
2411
- args=[attachment_id, str(output_path)],
2412
- server=server_key,
2413
- exit_code=0,
2414
- started_at=started_at,
2415
- finished_at=finished_at,
2416
- )
2417
-
2418
-
2419
- @content_app.command("add-comment")
2420
- def content_add_comment(
2421
- ctx: typer.Context,
2422
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2423
- body: str | None = typer.Option(None, "--body", help="Comment body in Confluence storage format"),
2424
- body_file: Path | None = typer.Option(
2425
- None, "--body-file", exists=True, file_okay=True, dir_okay=False, help="Path to file containing comment body"
2426
- ),
2427
- parent_id: str | None = typer.Option(
2428
- None,
2429
- "--parent-id",
2430
- help="Optional parent comment ID to create a threaded reply instead of a top-level comment",
2431
- ),
2432
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2433
- ) -> None:
2434
- """Add a comment to a Confluence page."""
2435
- parent_ctx = _parent_context(ctx)
2436
- _ensure_v1_api(parent_ctx, "content.add-comment")
2437
- started_at = datetime.now(UTC)
2438
-
2439
- if bool(body) == bool(body_file):
2440
- raise typer.BadParameter("Provide either --body or --body-file")
2441
-
2442
- try:
2443
- settings = load_settings(strict=True)
2444
- server_key = _normalise_server(server, settings)
2445
- client = ContentClient(_build_http_client(settings, server_key))
2446
- if body is not None:
2447
- comment_body = body
2448
- else:
2449
- assert body_file is not None
2450
- comment_body = _read_text_file(body_file)
2451
- payload = client.add_comment(page_id, comment_body, parent_id=parent_id)
2452
- _emit_json(payload)
2453
- except Exception as exc:
2454
- logger.exception("content.add-comment failed", extra={"page_id": page_id})
2455
- typer.echo(f"Error: {exc}", err=True)
2456
- raise typer.Exit(code=1) from None
2457
- else:
2458
- finished_at = datetime.now(UTC)
2459
- _record_summary(
2460
- parent_ctx,
2461
- command="content.add-comment",
2462
- args=[page_id],
2463
- server=server_key,
2464
- exit_code=0,
2465
- started_at=started_at,
2466
- finished_at=finished_at,
2467
- )
2468
-
2469
-
2470
- @content_app.command("update-attachment")
2471
- def content_update_attachment(
2472
- ctx: typer.Context,
2473
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2474
- attachment_id: str = typer.Argument(..., help="Attachment ID"),
2475
- file_path: Path = typer.Option(..., "--file", exists=True, file_okay=True, dir_okay=False, help="Replacement file"),
2476
- filename: str | None = typer.Option(None, "--filename", help="Override uploaded filename"),
2477
- content_type: str | None = typer.Option(None, "--content-type", help="MIME type for the attachment"),
2478
- comment: str | None = typer.Option(None, "--comment", help="Attachment comment"),
2479
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2480
- ) -> None:
2481
- """Update an existing attachment on a Confluence page."""
2482
- parent_ctx = _parent_context(ctx)
2483
- _ensure_v1_api(parent_ctx, "content.update-attachment")
2484
- started_at = datetime.now(UTC)
2485
- try:
2486
- settings = load_settings(strict=True)
2487
- server_key = _normalise_server(server, settings)
2488
- client = ContentClient(_build_http_client(settings, server_key))
2489
- payload = client.update_attachment(
2490
- page_id,
2491
- attachment_id,
2492
- str(file_path),
2493
- filename=filename,
2494
- content_type=content_type,
2495
- comment=comment,
2496
- )
2497
- _emit_json(payload)
2498
- except Exception as exc:
2499
- logger.exception("content.update-attachment failed", extra={"page_id": page_id, "attachment_id": attachment_id})
2500
- typer.echo(f"Error: {exc}", err=True)
2501
- raise typer.Exit(code=1) from None
2502
- else:
2503
- finished_at = datetime.now(UTC)
2504
- _record_summary(
2505
- parent_ctx,
2506
- command="content.update-attachment",
2507
- args=[page_id, attachment_id],
2508
- server=server_key,
2509
- exit_code=0,
2510
- started_at=started_at,
2511
- finished_at=finished_at,
2512
- )
2513
-
2514
-
2515
- @content_app.command("delete-attachment")
2516
- def content_delete_attachment(
2517
- ctx: typer.Context,
2518
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2519
- attachment_id: str | None = typer.Argument(None, help="Attachment ID"),
2520
- version: int | None = typer.Option(None, "--version", help="Delete a specific attachment version"),
2521
- filename: str | None = typer.Option(None, "--filename", help="Attachment filename (delete all versions)"),
2522
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2523
- ) -> None:
2524
- """Delete an attachment from a Confluence page."""
2525
- parent_ctx = _parent_context(ctx)
2526
- _ensure_v1_api(parent_ctx, "content.delete-attachment")
2527
- started_at = datetime.now(UTC)
2528
- try:
2529
- settings = load_settings(strict=True)
2530
- server_key = _normalise_server(server, settings)
2531
- if not attachment_id and not filename:
2532
- raise typer.BadParameter("Provide either attachment_id or --filename")
2533
-
2534
- client = ContentClient(_build_http_client(settings, server_key))
2535
- client.delete_attachment(page_id, attachment_id=attachment_id, version=version, filename=filename)
2536
- target = filename or attachment_id
2537
- typer.echo(f"Deleted attachment {target} from page {page_id}")
2538
- except Exception as exc:
2539
- logger.exception("content.delete-attachment failed", extra={"page_id": page_id, "attachment_id": attachment_id})
2540
- typer.echo(f"Error: {exc}", err=True)
2541
- raise typer.Exit(code=1) from None
2542
- else:
2543
- finished_at = datetime.now(UTC)
2544
- _record_summary(
2545
- parent_ctx,
2546
- command="content.delete-attachment",
2547
- args=[
2548
- page_id,
2549
- filename or attachment_id or "<unspecified>",
2550
- f"version={version}" if version is not None else "all_versions",
2551
- ],
2552
- server=server_key,
2553
- exit_code=0,
2554
- started_at=started_at,
2555
- finished_at=finished_at,
2556
- )
2557
-
2558
-
2559
- @content_app.command("ancestors")
2560
- def content_ancestors(
2561
- ctx: typer.Context,
2562
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2563
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2564
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
2565
- ) -> None:
2566
- """Get page ancestors (parent pages)."""
2567
- parent_ctx = _parent_context(ctx)
2568
- started_at = datetime.now(UTC)
2569
- exit_code = 0
2570
- result_payload: dict[str, Any] = {}
2571
- server_key: str | None = None
2572
-
2573
- try:
2574
- settings = load_settings(strict=True)
2575
- server_key = _normalise_server(server, settings)
2576
- client = _build_http_client(settings, server_key)
2577
-
2578
- result = client.get_page_ancestors(page_id)
2579
- result_payload = {"page_id": page_id, "count": len(result), "ancestors": result}
2580
-
2581
- if json_output or not sys.stdout.isatty():
2582
- _emit_json(result_payload)
2583
- else:
2584
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
2585
-
2586
- except (VDSClientError, typer.BadParameter) as exc:
2587
- exit_code = 1
2588
- logger.exception("content.ancestors_failed: %s", exc)
2589
- typer.echo(f"Error: {exc}", err=True)
2590
- except Exception as exc: # pragma: no cover - unexpected errors
2591
- exit_code = 1
2592
- logger.exception("content.ancestors_unexpected_error")
2593
- typer.echo(f"Error: {exc}", err=True)
2594
- finally:
2595
- finished_at = datetime.now(UTC)
2596
- server_label = server_key or (server.lower() if server else "internal")
2597
- _record_summary(
2598
- parent_ctx,
2599
- command="content.ancestors",
2600
- args=[page_id],
2601
- server=server_label,
2602
- exit_code=exit_code,
2603
- started_at=started_at,
2604
- finished_at=finished_at,
2605
- )
2606
- if exit_code != 0:
2607
- raise typer.Exit(code=exit_code) from None
2608
-
2609
-
2610
- @content_app.command("move")
2611
- def content_move(
2612
- ctx: typer.Context,
2613
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2614
- target_title: str = typer.Option(..., "--target-title", help="Target page title to move under"),
2615
- position: str = typer.Option("append", "--position", help="Position: append, before, after"),
2616
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2617
- yes: bool = typer.Option(False, "--yes", help="Confirm move operation"),
2618
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
2619
- ) -> None:
2620
- """Move page to a new location."""
2621
- parent_ctx = _parent_context(ctx)
2622
- started_at = datetime.now(UTC)
2623
- exit_code = 0
2624
- result_payload: dict[str, Any] = {}
2625
- server_key: str | None = None
2626
-
2627
- try:
2628
- if not yes:
2629
- raise typer.BadParameter("--yes required for move operation")
2630
- if position not in ("append", "before", "after"):
2631
- raise typer.BadParameter("--position must be one of: append, before, after")
2632
-
2633
- settings = load_settings(strict=True)
2634
- server_key = _normalise_server(server, settings)
2635
- client = _build_http_client(settings, server_key)
2636
-
2637
- result = client.move_page(page_id, target_title, position=position)
2638
- result_payload = {"page_id": page_id, "target_title": target_title, "position": position, "result": result}
2639
-
2640
- if json_output or not sys.stdout.isatty():
2641
- _emit_json(result_payload)
2642
- else:
2643
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
2644
-
2645
- except (VDSClientError, typer.BadParameter) as exc:
2646
- exit_code = 1
2647
- logger.exception("content.move_failed: %s", exc)
2648
- typer.echo(f"Error: {exc}", err=True)
2649
- except Exception as exc: # pragma: no cover - unexpected errors
2650
- exit_code = 1
2651
- logger.exception("content.move_unexpected_error")
2652
- typer.echo(f"Error: {exc}", err=True)
2653
- finally:
2654
- finished_at = datetime.now(UTC)
2655
- server_label = server_key or (server.lower() if server else "internal")
2656
- _record_summary(
2657
- parent_ctx,
2658
- command="content.move",
2659
- args=[page_id, f"target={target_title}", f"position={position}"],
2660
- server=server_label,
2661
- exit_code=exit_code,
2662
- started_at=started_at,
2663
- finished_at=finished_at,
2664
- )
2665
- if exit_code != 0:
2666
- raise typer.Exit(code=exit_code) from None
2667
-
2668
-
2669
- @content_app.command("tables")
2670
- def content_tables(
2671
- ctx: typer.Context,
2672
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2673
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2674
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
2675
- ) -> None:
2676
- """Extract tables from page."""
2677
- parent_ctx = _parent_context(ctx)
2678
- started_at = datetime.now(UTC)
2679
- exit_code = 0
2680
- result_payload: dict[str, Any] = {}
2681
- server_key: str | None = None
2682
-
2683
- try:
2684
- settings = load_settings(strict=True)
2685
- server_key = _normalise_server(server, settings)
2686
- client = _build_http_client(settings, server_key)
2687
-
2688
- result = client.get_tables_from_page(page_id)
2689
- result_payload = {"page_id": page_id, "count": len(result), "tables": result}
2690
-
2691
- if json_output or not sys.stdout.isatty():
2692
- _emit_json(result_payload)
2693
- else:
2694
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
2695
-
2696
- except (VDSClientError, typer.BadParameter) as exc:
2697
- exit_code = 1
2698
- logger.exception("content.tables_failed: %s", exc)
2699
- typer.echo(f"Error: {exc}", err=True)
2700
- except Exception as exc: # pragma: no cover - unexpected errors
2701
- exit_code = 1
2702
- logger.exception("content.tables_unexpected_error")
2703
- typer.echo(f"Error: {exc}", err=True)
2704
- finally:
2705
- finished_at = datetime.now(UTC)
2706
- server_label = server_key or (server.lower() if server else "internal")
2707
- _record_summary(
2708
- parent_ctx,
2709
- command="content.tables",
2710
- args=[page_id],
2711
- server=server_label,
2712
- exit_code=exit_code,
2713
- started_at=started_at,
2714
- finished_at=finished_at,
2715
- )
2716
- if exit_code != 0:
2717
- raise typer.Exit(code=exit_code) from None
2718
-
2719
-
2720
- @content_app.command("regex")
2721
- def content_regex(
2722
- ctx: typer.Context,
2723
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2724
- pattern: str = typer.Option(..., "--pattern", help="Regex pattern to match"),
2725
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2726
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
2727
- ) -> None:
2728
- """Extract regex matches from page."""
2729
- parent_ctx = _parent_context(ctx)
2730
- started_at = datetime.now(UTC)
2731
- exit_code = 0
2732
- result_payload: dict[str, Any] = {}
2733
- server_key: str | None = None
2734
-
2735
- try:
2736
- settings = load_settings(strict=True)
2737
- server_key = _normalise_server(server, settings)
2738
- client = _build_http_client(settings, server_key)
2739
-
2740
- result = client.scrap_regex_from_page(page_id, pattern)
2741
- result_payload = {"page_id": page_id, "pattern": pattern, "count": len(result), "matches": result}
2742
-
2743
- if json_output or not sys.stdout.isatty():
2744
- _emit_json(result_payload)
2745
- else:
2746
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
2747
-
2748
- except (VDSClientError, typer.BadParameter) as exc:
2749
- exit_code = 1
2750
- logger.exception("content.regex_failed: %s", exc)
2751
- typer.echo(f"Error: {exc}", err=True)
2752
- except Exception as exc: # pragma: no cover - unexpected errors
2753
- exit_code = 1
2754
- logger.exception("content.regex_unexpected_error")
2755
- typer.echo(f"Error: {exc}", err=True)
2756
- finally:
2757
- finished_at = datetime.now(UTC)
2758
- server_label = server_key or (server.lower() if server else "internal")
2759
- _record_summary(
2760
- parent_ctx,
2761
- command="content.regex",
2762
- args=[page_id, f"pattern={pattern}"],
2763
- server=server_label,
2764
- exit_code=exit_code,
2765
- started_at=started_at,
2766
- finished_at=finished_at,
2767
- )
2768
- if exit_code != 0:
2769
- raise typer.Exit(code=exit_code) from None
2770
-
2771
-
2772
- @content_app.command("restrictions")
2773
- def content_restrictions(
2774
- ctx: typer.Context,
2775
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2776
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2777
- json_output: bool = typer.Option(False, "--json", help="Emit JSON payload"),
2778
- ) -> None:
2779
- """Get all restrictions for content."""
2780
- parent_ctx = _parent_context(ctx)
2781
- started_at = datetime.now(UTC)
2782
- exit_code = 0
2783
- result_payload: dict[str, Any] = {}
2784
- server_key: str | None = None
2785
-
2786
- try:
2787
- settings = load_settings(strict=True)
2788
- server_key = _normalise_server(server, settings)
2789
- client = _build_http_client(settings, server_key)
2790
-
2791
- result = client.get_all_restrictions_for_content(page_id)
2792
- result_payload = {"page_id": page_id, "restrictions": result}
2793
-
2794
- if json_output or not sys.stdout.isatty():
2795
- _emit_json(result_payload)
2796
- else:
2797
- typer.echo(json.dumps(result_payload, indent=2, sort_keys=True))
2798
-
2799
- except (VDSClientError, typer.BadParameter) as exc:
2800
- exit_code = 1
2801
- logger.exception("content.restrictions_failed: %s", exc)
2802
- typer.echo(f"Error: {exc}", err=True)
2803
- except Exception as exc: # pragma: no cover - unexpected errors
2804
- exit_code = 1
2805
- logger.exception("content.restrictions_unexpected_error")
2806
- typer.echo(f"Error: {exc}", err=True)
2807
- finally:
2808
- finished_at = datetime.now(UTC)
2809
- server_label = server_key or (server.lower() if server else "internal")
2810
- _record_summary(
2811
- parent_ctx,
2812
- command="content.restrictions",
2813
- args=[page_id],
2814
- server=server_label,
2815
- exit_code=exit_code,
2816
- started_at=started_at,
2817
- finished_at=finished_at,
2818
- )
2819
- if exit_code != 0:
2820
- raise typer.Exit(code=exit_code) from None
2821
-
2822
-
2823
- @content_app.command("create-template")
2824
- def content_create_template(
2825
- ctx: typer.Context,
2826
- name: str = typer.Option(..., "--name", "-n", help="Template name"),
2827
- body_file: Path = typer.Option(
2828
- ..., "--body-file", exists=True, file_okay=True, dir_okay=False, help="Path to storage-format body"
2829
- ),
2830
- template_type: str = typer.Option("page", "--type", help="Template type (page or other supported types)"),
2831
- space_key: str | None = typer.Option(None, "--space", help="Limit template to space key"),
2832
- description: str | None = typer.Option(None, "--description", help="Template description"),
2833
- representation: str = typer.Option("storage", "--representation", help="Content representation"),
2834
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2835
- ) -> None:
2836
- """Create a new Confluence page template."""
2837
- parent_ctx = _parent_context(ctx)
2838
- _ensure_v1_api(parent_ctx, "content.create-template")
2839
- started_at = datetime.now(UTC)
2840
- try:
2841
- settings = load_settings(strict=True)
2842
- server_key = _normalise_server(server, settings)
2843
- client = ContentClient(_build_http_client(settings, server_key))
2844
- body = _read_text_file(body_file)
2845
- payload = client.create_template(
2846
- name=name,
2847
- body=body,
2848
- template_type=template_type,
2849
- space_key=space_key,
2850
- description=description,
2851
- representation=representation,
2852
- )
2853
- _emit_json(payload)
2854
- except Exception as exc:
2855
- logger.exception("content.create-template failed", extra={"name": name, "space": space_key})
2856
- typer.echo(f"Error: {exc}", err=True)
2857
- raise typer.Exit(code=1) from None
2858
- else:
2859
- finished_at = datetime.now(UTC)
2860
- args = [name, f"type={template_type}"]
2861
- if space_key:
2862
- args.append(f"space={space_key}")
2863
- _record_summary(
2864
- parent_ctx,
2865
- command="content.create-template",
2866
- args=args,
2867
- server=server_key,
2868
- exit_code=0,
2869
- started_at=started_at,
2870
- finished_at=finished_at,
2871
- )
2872
-
2873
-
2874
- @content_app.command("update-template")
2875
- def content_update_template(
2876
- ctx: typer.Context,
2877
- template_id: str = typer.Argument(..., help="Template identifier"),
2878
- name: str | None = typer.Option(None, "--name", help="Template name"),
2879
- body_file: Path | None = typer.Option(
2880
- None, "--body-file", exists=True, file_okay=True, dir_okay=False, help="Path to storage-format body"
2881
- ),
2882
- description: str | None = typer.Option(None, "--description", help="Template description"),
2883
- template_type: str | None = typer.Option(None, "--type", help="Template type"),
2884
- representation: str = typer.Option("storage", "--representation", help="Representation for --body-file"),
2885
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2886
- ) -> None:
2887
- """Update an existing Confluence page template."""
2888
- parent_ctx = _parent_context(ctx)
2889
- _ensure_v1_api(parent_ctx, "content.update-template")
2890
- if name is None and body_file is None and description is None and template_type is None:
2891
- raise typer.BadParameter("Provide at least one of --name, --body-file, --description, or --type")
2892
- body = _read_text_file(body_file) if body_file else None
2893
- started_at = datetime.now(UTC)
2894
- try:
2895
- settings = load_settings(strict=True)
2896
- server_key = _normalise_server(server, settings)
2897
- client = ContentClient(_build_http_client(settings, server_key))
2898
- payload = client.update_template(
2899
- template_id,
2900
- name=name,
2901
- body=body,
2902
- description=description,
2903
- representation=representation,
2904
- template_type=template_type,
2905
- )
2906
- _emit_json(payload)
2907
- except Exception as exc:
2908
- logger.exception("content.update-template failed", extra={"template_id": template_id})
2909
- typer.echo(f"Error: {exc}", err=True)
2910
- raise typer.Exit(code=1) from None
2911
- else:
2912
- finished_at = datetime.now(UTC)
2913
- args = [template_id]
2914
- if name:
2915
- args.append(f"name={name}")
2916
- _record_summary(
2917
- parent_ctx,
2918
- command="content.update-template",
2919
- args=args,
2920
- server=server_key,
2921
- exit_code=0,
2922
- started_at=started_at,
2923
- finished_at=finished_at,
2924
- )
2925
-
2926
-
2927
- @content_app.command("delete-template")
2928
- def content_delete_template(
2929
- ctx: typer.Context,
2930
- template_id: str = typer.Argument(..., help="Template identifier"),
2931
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2932
- ) -> None:
2933
- """Delete a Confluence page template."""
2934
- parent_ctx = _parent_context(ctx)
2935
- _ensure_v1_api(parent_ctx, "content.delete-template")
2936
- started_at = datetime.now(UTC)
2937
- try:
2938
- settings = load_settings(strict=True)
2939
- server_key = _normalise_server(server, settings)
2940
- client = ContentClient(_build_http_client(settings, server_key))
2941
- client.delete_template(template_id)
2942
- typer.echo(f"Deleted template {template_id}")
2943
- except Exception as exc:
2944
- logger.exception("content.delete-template failed", extra={"template_id": template_id})
2945
- typer.echo(f"Error: {exc}", err=True)
2946
- raise typer.Exit(code=1) from None
2947
- else:
2948
- finished_at = datetime.now(UTC)
2949
- _record_summary(
2950
- parent_ctx,
2951
- command="content.delete-template",
2952
- args=[template_id],
2953
- server=server_key,
2954
- exit_code=0,
2955
- started_at=started_at,
2956
- finished_at=finished_at,
2957
- )
2958
-
2959
-
2960
- # ---------------------------------------------------------------------------
2961
- # Diagnostics
2962
- # ---------------------------------------------------------------------------
2963
-
2964
-
2965
- @app.command("env")
2966
- def cmd_env(_ctx: typer.Context) -> None:
2967
- """Show Confluence connection environment variable status."""
2968
- settings = load_settings(strict=False)
2969
- typer.echo(
2970
- f"Default server: {settings.default_server}\n"
2971
- f"Internal URL: {settings.internal_url}\n"
2972
- f"External URL: {settings.external_url}\n"
2973
- f"Internal token set: {bool(settings.internal_token)}\n"
2974
- f"External token set: {bool(settings.external_token)}"
2975
- )
2976
-
2977
-
2978
- # ---------------------------------------------------------------------------
2979
- # Sync Commands (delegate to standalone scripts)
2980
- # ---------------------------------------------------------------------------
2981
-
2982
- sync_app = typer.Typer(help="Sync attachments from local files to Confluence")
2983
- app.add_typer(sync_app, name="sync")
2984
-
2985
-
2986
- @sync_app.command("pngs")
2987
- def cmd_sync_pngs(
2988
- _ctx: typer.Context,
2989
- page_id: str = typer.Argument(..., help="Confluence page ID"),
2990
- directory: Path = typer.Option(..., "--dir", "-d", help="Directory containing PNG files"),
2991
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
2992
- pattern: str | None = typer.Option(None, "--pattern", "-p", help="Filter PNG files by pattern"),
2993
- dry_run: bool = typer.Option(False, "--dry-run", help="Show what would be done without making changes"),
2994
- comment: str | None = typer.Option(None, "--comment", "-c", help="Comment for attachment updates"),
2995
- yes: bool = typer.Option(False, "--yes", "-y", help="Auto-confirm without prompting"),
2996
- ) -> None:
2997
- """Sync local PNG files with Confluence page attachments."""
2998
- import subprocess
2999
- import sys
3000
-
3001
- # Project root for confluence_orchestrator (where sync scripts live)
3002
- script_path = Path(__file__).resolve().parents[2] / "sync_png_attachments.py"
3003
- if not script_path.exists():
3004
- typer.echo(f"Error: Sync script not found: {script_path}", err=True)
3005
- raise typer.Exit(code=1) from None
3006
-
3007
- cmd = [
3008
- sys.executable,
3009
- str(script_path),
3010
- "sync",
3011
- page_id,
3012
- "--dir",
3013
- str(directory),
3014
- ]
3015
- if server:
3016
- cmd.extend(["--server", server])
3017
- if pattern:
3018
- cmd.extend(["--pattern", pattern])
3019
- if dry_run:
3020
- cmd.append("--dry-run")
3021
- if comment:
3022
- cmd.extend(["--comment", comment])
3023
- if yes:
3024
- cmd.append("--yes")
3025
-
3026
- result = subprocess.run(cmd, check=False)
3027
- raise typer.Exit(code=result.returncode) from None
3028
-
3029
-
3030
- @sync_app.command("pdfs")
3031
- def cmd_sync_pdfs(
3032
- _ctx: typer.Context,
3033
- page_id: str = typer.Argument(..., help="Confluence page ID"),
3034
- directory: Path = typer.Option(..., "--dir", "-d", help="Directory containing PDF files"),
3035
- server: str | None = typer.Option(None, "--server", "-s", help="internal|external"),
3036
- pattern: str | None = typer.Option(None, "--pattern", "-p", help="Filter PDF files by pattern"),
3037
- dry_run: bool = typer.Option(False, "--dry-run", help="Show what would be done without making changes"),
3038
- comment: str | None = typer.Option(None, "--comment", "-c", help="Comment for attachment updates"),
3039
- yes: bool = typer.Option(False, "--yes", "-y", help="Auto-confirm without prompting"),
3040
- ) -> None:
3041
- """Sync local PDF files with Confluence page attachments.
3042
-
3043
- This command delegates to the standalone sync_pdfs_to_confluence.py script.
3044
- For markdown-to-PDF sync, use the PDF orchestrator: vds-cli pdf -- md2pdf
3045
- """
3046
- import subprocess
3047
- import sys
3048
-
3049
- # Look for script in confluence_orchestrator/ directory (standard location)
3050
- script_path = Path(__file__).resolve().parents[2] / "sync_pdfs_to_confluence.py"
3051
-
3052
- if not script_path.exists():
3053
- typer.echo(
3054
- f"Error: Sync script not found: {script_path}\n"
3055
- "Note: Ensure sync_pdfs_to_confluence.py exists in confluence_orchestrator/ directory.",
3056
- err=True,
3057
- )
3058
- raise typer.Exit(code=1) from None
3059
-
3060
- cmd = [
3061
- sys.executable,
3062
- str(script_path),
3063
- "sync",
3064
- page_id,
3065
- "--dir",
3066
- str(directory),
3067
- ]
3068
- if server:
3069
- cmd.extend(["--server", server])
3070
- if pattern:
3071
- cmd.extend(["--pattern", pattern])
3072
- if dry_run:
3073
- cmd.append("--dry-run")
3074
- if comment:
3075
- cmd.extend(["--comment", comment])
3076
- if yes:
3077
- cmd.append("--yes")
3078
-
3079
- result = subprocess.run(cmd, check=False)
3080
- raise typer.Exit(code=result.returncode) from None
3081
-
3082
-
3083
- # ---------------------------------------------------------------------------
3084
- # content copy-tree
3085
- # ---------------------------------------------------------------------------
3086
-
3087
-
3088
- @content_app.command("copy-tree")
3089
- def content_copy_tree(
3090
- ctx: typer.Context,
3091
- source_page_id: str = typer.Argument(..., help="Source root page ID"),
3092
- target_page_id: str = typer.Option(..., "--target-page-id", help="Target root page ID"),
3093
- source_server: str = typer.Option(
3094
- "external", "--source-server", help="Source Confluence server (internal|external)"
3095
- ),
3096
- target_server: str = typer.Option(
3097
- "internal", "--target-server", help="Target Confluence server (internal|external)"
3098
- ),
3099
- source_space: str | None = typer.Option(
3100
- None, "--source-space", help="Source space key (auto-detected from source page if omitted)"
3101
- ),
3102
- target_space: str = typer.Option(..., "--target-space", help="Target space key"),
3103
- skip_attachments: bool = typer.Option(False, "--skip-attachments", help="Skip attachment copy"),
3104
- skip_labels: bool = typer.Option(False, "--skip-labels", help="Skip label copy"),
3105
- skip_link_remap: bool = typer.Option(False, "--skip-link-remap", help="Skip link remapping"),
3106
- max_depth: int | None = typer.Option(None, "--max-depth", help="Max BFS depth (0=root only; max: 100)"),
3107
- dry_run: bool = typer.Option(False, "--dry-run", help="Report what would be copied without writing"),
3108
- ) -> None:
3109
- """Copy a Confluence page tree from one space/server to another."""
3110
- parent_ctx = _parent_context(ctx)
3111
- if max_depth is not None and max_depth > 100:
3112
- raise typer.BadParameter("--max-depth cannot exceed 100 (NFR-05)")
3113
- started_at = datetime.now(UTC)
3114
- source_server_key: str = ""
3115
- try:
3116
- settings = load_settings(strict=True)
3117
- source_server_key = _normalise_server(source_server, settings)
3118
- target_server_key = _normalise_server(target_server, settings)
3119
- source_client = ContentClient(_build_http_client(settings, source_server_key))
3120
- target_client = ContentClient(_build_http_client(settings, target_server_key))
3121
- if source_space:
3122
- resolved_source_space = source_space
3123
- else:
3124
- src_page = source_client.get_page(source_page_id, expand=["space"])
3125
- space_info = src_page.get("space")
3126
- if not isinstance(space_info, dict) or not space_info.get("key"):
3127
- raise VDSClientError(
3128
- f"Cannot determine source space key from page {source_page_id}. Pass --source-space explicitly.",
3129
- context={"source_page_id": source_page_id},
3130
- )
3131
- resolved_source_space = str(space_info["key"])
3132
- options = CopyOptions(
3133
- skip_attachments=skip_attachments,
3134
- skip_labels=skip_labels,
3135
- skip_link_remap=skip_link_remap,
3136
- dry_run=dry_run,
3137
- max_depth=max_depth,
3138
- )
3139
- copier = TreeCopier(source_client, target_client, target_space, resolved_source_space, options)
3140
- result = copier.copy_tree(source_page_id, target_page_id)
3141
- _emit_json(asdict(result))
3142
- except Exception as exc:
3143
- logger.exception("content.copy-tree failed", extra={"source_page_id": source_page_id})
3144
- typer.echo(f"Error: {exc}", err=True)
3145
- raise typer.Exit(code=1) from None
3146
- else:
3147
- finished_at = datetime.now(UTC)
3148
- _record_summary(
3149
- parent_ctx,
3150
- command="content.copy-tree",
3151
- args=[source_page_id, f"target={target_page_id}", f"target_space={target_space}"],
3152
- server=source_server_key,
3153
- exit_code=0,
3154
- started_at=started_at,
3155
- finished_at=finished_at,
3156
- )
3157
-
3158
-
3159
- if __name__ == "__main__":
3160
- app()